multiple DROP questions from balaji [message #506984] |
Thu, 12 May 2011 02:58  |
Database admin
Messages: 365 Registered: September 2006 Location: india
|
Senior Member |
 
|
|
Hi ,
When i tried to drop a type using below command , i received errors
DROP TYPE JAM_ACAS_MSG_TYPE
ERROR at line 1:
ORA-02303: cannot drop or replace a type with type or table dependents
How to resolve it?
Thanks
Edit :by ROD
modified title..previously its bajil..changed to balaji
[Updated on: Thu, 12 May 2011 08:02] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Drop queue [message #507001 is a reply to message #506998] |
Thu, 12 May 2011 04:10   |
Database admin
Messages: 365 Registered: September 2006 Location: india
|
Senior Member |
 
|
|
Thanks.
Is this the command to drop queue.Can you confirm ?
dbms_aqadm.drop_queue (
queue_name IN VARCHAR2,
auto_commit IN BOOLEAN DEFAULT TRUE);
And Am i suppose to run these 2 sql ?
$ORACLE_HOME/rdbms/admin/dbmsaqad.sql
also see: $ORACLE_HOME/rdbms/admin/catqueue.sql
Thanks
[Updated on: Thu, 12 May 2011 04:12] Report message to a moderator
|
|
|
|
|
|
|
Re: Drop queue [message #507017 is a reply to message #507014] |
Thu, 12 May 2011 04:43   |
cookiemonster
Messages: 13967 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
If you have a queue in your DB, which you presumably do since you are trying to drop it, then the dbms_aqadm package must exist, since you need it to create queues.
In which case those scipts (which create that package and associated objects) have already been run.
So, no, you don't need to run those sql scripts.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: How to drop lob [message #507276 is a reply to message #507271] |
Fri, 13 May 2011 07:59  |
 |
ramoradba
Messages: 2457 Registered: January 2009 Location: AndhraPradesh,Hyderabad,I...
|
Senior Member |
|
|
ind> select comments
2 from dict
3 where table_name='DBA_LOBS';
COMMENTS
------------------------------------------------------------------------
Description of LOBs contained in all tables
1 row selected.
ind> select comments
2 from dict
3 where table_name='USER_LOBS';
COMMENTS
------------------------------------------------------------------------
Description of the user's own LOBs contained in the user's own tables
1 row selected.
Quote:all the tables belonging
to lobs
Its a reverse statement.
Table contains LOB no LOB contain TABLE.
ramoradba wrote on Thu, 12 May 2011 16:53ind> select OWNER,SEGMENT_NAME,PARTITION_NAME,SEGMENT_TYPE,TABLESPACE_NAME
2 from dba_segments
3 where SEGMENT_NAME='SYS_LOB0000053285C00010$$';
OWNER
------------------------------
SEGMENT_NAME
-------------------------------------------------------------------------------
PARTITION_NAME SEGMENT_TYPE TABLESPACE_NAME
------------------------------ ------------------ --------------------
APPOWNER
SYS_LOB0000053285C00010$$
LOBSEGMENT DATA
1 row selected.
ind> select TABLE_NAME,COLUMN_NAME,SEGMENT_NAME
2 from user_lobs
3 where SEGMENT_NAME='SYS_LOB0000053285C00010$$';
TABLE_NAME
------------------------------
COLUMN_NAME
-------------------------------------------------------------------------------
SEGMENT_NAME
------------------------------
ORG_TEXT_CUSTOMIZATION
LONG_TEXT
SYS_LOB0000053285C00010$$
1 row selected.
I suggest you to read Oracle documents ...
Good luck
Sriram
Did you read it properly ?
Sriram
[Updated on: Fri, 13 May 2011 11:17] by Moderator Report message to a moderator
|
|
|