This question already has answers here:
How to find out when a particular table was created in Oracle?
(5 answers)
Closed 6 years ago.
Is there any Oracle metadata table that show me the created date from a specific table?
Try this:
select object_name, created
from user_objects
where object_type = 'TABLE'
and object_name = '...'
You can user all_objects or dba_objects instead of user_objects, depending on your privileges and on the users you are interested in
Related
This question already has answers here:
How to delete trigger in oracle that contain special character?
(1 answer)
What are the BIN$... tables in Oracle's ALL_TAB_COLUMNS table?
(1 answer)
How to remove a strange table named "BIN$c+eOnMB3RbKSEfg/rsxtAQ==$0" from oracle database?
(1 answer)
Closed 3 years ago.
I have some trigger in a table but the trigger name is showing some object name instead of original trigger name:
select * from user_triggers where table_name='NVT_VEHICLE';
Trigger name:
BIN$j1ygh/CFFDXgVWVB5LsGMg==$1
BIN$j1ygh/CEFDXgVWVB5LsGMg==$1
NVT_LOG_TRIG
These weird names are the name of the objects which are dropped by the user. You can get the original names of the objects from a table: USER_RECYCLEBIN
USER_RECYCLEBIN displays information about the recycle bin owned by the current user.
It contains ORIGINAL_NAME and OBJECT_NAME of the recycled objects.
In your case, you can try this query
SELECT
*
FROM
USER_RECYCLEBIN
WHERE
NAME IN (
'BIN$j1ygh/CFFDXgVWVB5LsGMg==$1',
'BIN$j1ygh/CEFDXgVWVB5LsGMg==$1'
);
Cheers!!
This question already has answers here:
Grant Select on all Tables Owned By Specific User
(5 answers)
Closed 5 years ago.
I am trying to give schema permissions on all tables in a single instance.
For example, I am in Schema A, and I need to access the tables in Schema A from Schema B.
I tried to grant select on A. * to B and I am getting an invalid table name.
Any idea why I'm getting this error?
Afaik, there's not a direct way to do this. The easiest shortcut I know is to run something like
select 'grant select on A.' || table_name || ' to B;'
from user_tables;
And then copy/paste the results and run that.
This question already has answers here:
How can I create a table as a select from another database in Oracle?
(4 answers)
Closed 8 years ago.
I am using following query to get details of function (which is on another database) through dblink
SELECT text
FROM all_source
where name = 'FUN_INSERT_XXDETAIL#XXDBLINK'
order by line;
You are using the database link at the wrong place.
SELECT text
FROM all_source#XXDBLINK
WHERE NAME = 'FUN_INSERT_INTERFACEDETAIL'
order by line;
This question already has answers here:
How do I find the definition of a named constraint in Oracle?
(4 answers)
Closed 8 years ago.
All I know about the constraint is it's name, but I want to see the columns it is using.
Try this :
select OWNER, CONSTRAINT_NAME, CONSTRAINT_TYPE, TABLE_NAME, SEARCH_CONDITION from
ALL_CONSTRAINTS where CONSTRAINT_NAME = 'Constraint_name';
or
DBMS_METADATA.GET_DDL('CONSTRAINT', 'constraint_name')
This question already has answers here:
Getting a list of functions and procedure signature from oracle
(2 answers)
Closed 9 years ago.
How to go about retrieving a list of the parameters defined in the supplied stored procedure. The database is Oracle 11g.
Here's the sql statement you should use:
select argument_name, in_out, data_type
from all_arguments
where owner = 'schema_name' and
package_name = 'package_name or null' and
object_name = 'sp_name'
order by position