Object created in a different user [message #465708] |
Thu, 15 July 2010 06:44 |
jesuisantony
Messages: 166 Registered: July 2006 Location: Chennai
|
Senior Member |
|
|
Whenever I create a table using login A, the table gets created successfully. But when I query the dba_objects, the object owner is different, login B. What might be the reason behind this?
Please help.
Regards,
Antony
|
|
|
|
|
|
Re: Object created in a different user [message #465741 is a reply to message #465734] |
Thu, 15 July 2010 08:43 |
jesuisantony
Messages: 166 Registered: July 2006 Location: Chennai
|
Senior Member |
|
|
Please find the requested SQL session. I had created the table as APP, but the owner is APP_ADMIN. I need to replicate this setup in the new database. Kindly help.
Note : Proxy configuration is not used.
M:\>sqlplus
SQL*Plus: Release 10.2.0.3.0 - Production on Thu Jul 15 19:10:52 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Enter user-name: app@SEDB
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select username from user_users;
USERNAME
------------------------------
APP
SQL> create table test123 (name varchar2(10));
Table created.
SQL> select object_name,object_type,owner from dba_objects where object_name='TEST123';
OBJECT_NAME OBJECT_TYPE OWNER
-------------------- ------------------- ------------------------------
TEST123 TABLE APP_ADMIN
|
|
|
|
Re: Object created in a different user [message #465749 is a reply to message #465742] |
Thu, 15 July 2010 08:56 |
jesuisantony
Messages: 166 Registered: July 2006 Location: Chennai
|
Senior Member |
|
|
Please find the query output
M:\>sqlplus
SQL*Plus: Release 10.2.0.3.0 - Production on Thu Jul 15 19:10:52 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Enter user-name: app@SEDB
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select username from user_users;
USERNAME
------------------------------
APP
SQL> create table test123 (name varchar2(10));
Table created.
SQL> select object_name,object_type,owner from dba_objects where object_name='TEST123';
OBJECT_NAME OBJECT_TYPE OWNER
-------------------- ------------------- ------------------------------
TEST123 TABLE APP_ADMIN
|
|
|
|
|
|