Cannot drop user -must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
Hi,
I had this issue before, but forgot the command that should be used to flush some kind of a trash bin.
Can someone assist me?
Thanks!
Hi,
Use this link :
Re: Unable to drop USERS tablespace.
Similar Messages
-
hi
I am tryin to drop a schema devj2ee with the following command:
SQL> drop user devj2ee cascade;
drop user devj2ee cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
Now if try to see which queue tables exist for devj2ee it returns no rows.
SQL> select count(*) FROM DBA_QUEUE_TABLES WHERE owner ='DEVJ2EE';
COUNT(*)
0
The DBA_QUEUE_TABLES has all the sys/system queue tables as find below;
select owner, queue_table from dba_queue_tables;
OWNER QUEUE_TABLE
SYS ALERT_QT
SYS AQ$_MEM_MC
SYS AQ_EVENT_TABLE
SYS AQ_SRVNTFN_TABLE
SYS KUPC$DATAPUMP_QUETAB
SYS SCHEDULER$_EVENT_QTAB
SYS SCHEDULER$_JOBQTAB
SYS SYS$SERVICE_METRICS_TAB
SYSMAN MGMT_NOTIFY_QTABLE
SYSTEM DEF$_AQCALL
SYSTEM DEF$_AQERROR
11 rows selected.
Please advice how to remove the user DEVJ2EE.
My db is 10gR2 on solaris10 box.SQL> select object_name,object_type from dba_objects where owner='DEVJ2EE' and object_name like '%AQ%';
OBJECT_NAME OBJECT_TYPE
CMN_AQ_MESSAGE_TYPE TYPE
DLS_AQ_QUEUE TABLE
Now if I try to drop this table i get the following error:
SQL> begin
2 DBMS_AQADM.DROP_QUEUE_TABLE('DLS_AQ_QUEUE');
3 end;
4 /
DBMS_AQADM.DROP_QUEUE_TABLE('DLS_AQ_QUEUE');
ERROR at line 2:
ORA-06550: line 2, column 1:
PLS-00201: identifier 'DBMS_AQADM' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
SQL> EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'DLS_AQ_QUEUE');
BEGIN DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'DLS_AQ_QUEUE'); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBMS_AQADM' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
So, i thought this is a privelege issue.
SQL> conn sys@dbklsdev as sysdba
Enter password:
Connected.
SQL> begin
2 DBMS_AQADM.DROP_QUEUE_TABLE('DEVJ2EE.DLS_AQ_QUEUE');
3 end;
4 /
begin
ERROR at line 1:
ORA-24002: QUEUE_TABLE DEVJ2EE.DLS_AQ_QUEUE does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4084
ORA-06512: at "SYS.DBMS_AQADM", line 197
ORA-06512: at line 2
Alternatively, I tried granting privs to devj2ee and tried to drop the table from this user but the result was same.
SQL> GRANT RESOURCE TO devj2ee;
GRANT CONNECT TO devj2ee;
GRANT EXECUTE ANY PROCEDURE TO devj2ee;
GRANT aq_administrator_role TO devj2ee;
GRANT aq_user_role TO devj2ee;
GRANT EXECUTE ON dbms_aqadm TO devj2ee;
GRANT EXECUTE ON dbms_aq TO devj2ee;
GRANT EXECUTE ON dbms_aqin TO devj2ee;
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL> conn devj2ee/devj2ee@dbklsdev
Connected.
SQL> begin
2 DBMS_AQADM.DROP_QUEUE_TABLE('DLS_AQ_QUEUE');
3 end;
4 /
begin
ERROR at line 1:
ORA-24002: QUEUE_TABLE DEVJ2EE.DLS_AQ_QUEUE does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4084
ORA-06512: at "SYS.DBMS_AQADM", line 197
ORA-06512: at line 2
At this point I tried the same old query again to find out if the queue table really exist:
SQL> select object_name,object_type from user_objects where object_name like '%AQ%';
OBJECT_NAME OBJECT_TYPE
CMN_AQ_MESSAGE_TYPE TYPE
DLS_AQ_QUEUE TABLE
I hope you have any further tricks to try on this. -
Hi Every one,
An error has occurred during report processing. (rsProcessingAborted)
Get Online Help
Query execution failed for data set 'NonFinTran'. (rsErrorExecutingCommand)
Get Online Help
Cannot drop the table '#NonFinTran', because it does not exist in the system catalog. Cannot drop the table '#MultipleNonFinTran',
because it does not exist in the system catalog. Transaction context in use by another session.
NOTE: NonFinTran &
MultipleNonFinTran are
the Temp table in my storedPoc.
Please any help me to solve this issue.
Thanks & Regards,
Anil Kumar
Anil KumarHi Harsh,
Below is my Stored Proc
SELECT @ServerName=datasource from master.dbo.sysservers WHERE catalog='Voyager'
SELECT @ServerName3=datasource from master.dbo.sysservers WHERE catalog='AuditLog'
SELECT @ServerName2=datasource from master.dbo.sysservers WHERE catalog='Portal'
IF @ServerName IS NOT NULL SET @ServerName='[' + @ServerName + '].' ELSE SET @ServerName=''
IF @ServerName3 IS NOT NULL SET @ServerName3='[' + @ServerName3 + '].' ELSE SET @ServerName3=''
IF @ServerName2 IS NOT NULL SET @ServerName2='[' + @ServerName2 + '].' ELSE SET @ServerName2=''
IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#NonFinTran%')
DROP TABLE #NonFinTran
IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#MultipleNonFinTran%')
DROP TABLE #MultipleNonFinTran
CREATE TABLE #NonFinTran (FirstName VARCHAR(40), TaxId VARCHAR(40), TrxID VARCHAR(40), Status VARCHAR(255), Field1 VARCHAR(255), Field2 VARCHAR(255),
Field3 VARCHAR(255), Field4 VARCHAR(255), Field5 VARCHAR(255), Field6 VARCHAR(255), DateTime DATETIME,
BranchID CHAR(3), BankID CHAR(1), FromAccountID VARCHAR(255), FromAccountType VARCHAR(255))
CREATE TABLE #MultipleNonFinTran (FirstName VARCHAR(40), TaxId VARCHAR(40), TrxID VARCHAR(40), Status VARCHAR(255), Field1 VARCHAR(255), Field2 VARCHAR(255),
Field3 VARCHAR(255), Field4 VARCHAR(255), Field5 VARCHAR(255), Field6 VARCHAR(255), DateTime DATETIME,
BranchID CHAR(3), BankID CHAR(1), FromAccountID VARCHAR(255), FromAccountType VARCHAR(255))
INSERT #NonFinTran
EXEC('SELECT FirstName, TaxID,
TrxID, Status, TrxField1, TrxField2, TrxField3, TrxField4, TrxField5, TrxField6, DateTime, '''', '''', '''', ''''
FROM ' + @ServerName3 + 'AuditLog.dbo.CCAuditLogEntryView AS Audit, ' + @ServerName + 'Voyager.dbo.CCUser AS CCUser
WHERE CCUser.UserID = Audit.UserID
AND Audit.Succeeded = 1
AND Audit.TrxID IN (''ChangeBillPayDefaultAccountEdit'',''ChangeExpiryUserPassword'',''ChangePasswordEdit'',
''ChangeUserPassword'',''ManageAddressMaint'',''ManageContactMaint'',''ManageSecretQuestionAnswerEdit'',
''ManageTransLimitMaint'',''OtherBankAccountMaintAdd'',''OtherBankAccountMaintDelete'',''OtherBankAccountMaintEdit'',
''WithinAmBankAccountMaintAdd'',''WithinAmBankAccountMaintDelete'',''WithinAmBankAccountMaintEdit'',
''SetAccountMaskPreferenceAudit'',''ChangeLoginIdAudit'')
AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @StartDate + '''), 103), Audit.DateTime) >= 0
AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @EndDate + '''), 103), Audit.DateTime) <= 0 ')
INSERT #MultipleNonFinTran
EXEC('SELECT DISTINCT FirstName, TaxID,
TrxID, Status, TrxField1, TrxField2, TrxField3, TrxField4, TrxField5, TrxField6, Audit.DateTime as AuditDateTime,
(SELECT DISTINCT SUBSTRING(A.BranchCode,3,3) FROM ' + @ServerName + 'AuditLog.dbo.CCAuditLogEntryView X INNER JOIN ' + @ServerName + 'Voyager.dbo.CCuser U
ON X.UserId = U.UserId INNER JOIN ' + @ServerName + 'Voyager.dbo.AMHZ_CustomerProfile P ON P.EnrolId = U.TAXID
INNER JOIN ' + @ServerName + 'Voyager.dbo.AMHZ_AccountListing A ON A.CIFNO = P.CIFNO
WHERE X.UserId = Audit.UserId AND A.AccountNo = SUBSTRING(Audit.TrxField1,11,16) AND P.CIFNO = A.CIFNO
AND (SUBSTRING(A.BranchCode,3,3) <> NULL OR SUBSTRING(A.BranchCode,3,3) <> '''')
AND CHARINDEX(''AccountID='', Audit.TrxField1, 1) > 0),
SUBSTRING(TrxField1,14,1), CASE WHEN CHARINDEX(''AccountID='', TrxField1, 1) > 0 THEN
SUBSTRING(TrxField1,11,16) ELSE '''' END, CASE WHEN CHARINDEX(''AccountType='', TrxField2, 1) > 0 THEN SUBSTRING(TrxField2,13,3) ELSE '''' END
FROM ' + @ServerName3 + 'AuditLog.dbo.CCAuditLogEntryView AS Audit, ' + @ServerName + 'Voyager.dbo.CCUser AS CCUser
WHERE CCUser.UserID = Audit.UserID
AND Audit.Succeeded = 1
AND Audit.TrxID IN (''SetAccountAttributesAudit'',''SetAccountFriendlyNameAudit'',
''AccountProfileMaintULDelete'',''AccountProfileMaintLHAAdd'',''AccountProfileMaintLSCAdd'')
AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @StartDate + '''), 103), Audit.DateTime) >= 0
AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @EndDate + '''), 103), Audit.DateTime) <= 0 ')
SET @stmt = '
SELECT * FROM
SELECT BranchName,
CASE WHEN SUBSTRING(FromAccountID,1,6) IN (''519901'',''559409'') THEN ''DC''
ELSE
CASE FromAccountType WHEN ''01'' THEN ''SA '' WHEN ''02'' THEN ''CA '' WHEN ''03'' THEN ''FD ''
WHEN ''SA'' THEN ''SA '' WHEN ''CA'' THEN ''CA '' WHEN ''FD'' THEN ''FD '' ELSE FromAccountType + '' ''
END
END +
case when Len(FromAccountID) =16 Then
CASE FromAccountType WHEN ''VC'' THEN
SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,4)
WHEN ''MC'' THEN SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,4) END
when Len(FromAccountID) =15 Then
CASE FromAccountType WHEN ''VC'' THEN
SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,3)
WHEN ''MC'' THEN SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,3) END
ELSE FromAccountID
ENd
AS FromAcctNo,
CASE TrxId
WHEN ''AccountProfileMaintLHAAdd'' THEN ''Link Account/Card''
WHEN ''AccountProfileMaintLSCAdd'' THEN ''Link Account/Card''
WHEN ''APMFamilyFirstAdd'' THEN ''Link Family First Account''
WHEN ''AccountProfileMaintULDelete'' THEN ''Unlink Account/Card''
WHEN ''BalInqFD'' THEN CASE WHEN Field3 IN (''APMLink=SUCCESS'') THEN ''APMLink Success'' ELSE ''Fixed Deposit Balance Inquiry'' END
WHEN ''BalInqCASA'' THEN CASE WHEN Field3 IN (''APMLink=SUCCESS'') THEN ''APMLink Success'' ELSE
CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Balance Inquiry''
ELSE ''Current Account Balance Inquiry''
END
END
WHEN ''StopCheck'' THEN ''Stop Cheque Request''
WHEN ''CheckReorder'' THEN ''Order Your Cheque''
WHEN ''CheckInquiry'' THEN ''Cheque Inquiry''
WHEN ''TransHistFD'' THEN ''Fixed Deposit Transaction History''
WHEN ''TransHistCASA'' THEN
CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Transaction History'' ELSE ''Current Account Transaction History'' END
WHEN ''StmtInqCC'' THEN
CASE WHEN FromAccountType IN (''DR'',''03'') THEN ''Debit Card Statement Inquiry'' ELSE ''Credit Card Statement Inquiry'' END
WHEN ''StmtInqDA'' THEN
CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Statement Inquiry'' ELSE ''Current Account Statement Inquiry'' END
WHEN ''StmtReq'' THEN ''Printed Statement Request''
WHEN ''StmtInqIAMSTAR'' THEN ''E-AMSTAR Statement Inquiry''
WHEN ''Repayment/Transfer Inquiry'' THEN ''Repayment/Transfer Inquiry''
WHEN ''Account Inquiry'' THEN ''Account Inquiry''
WHEN ''Payment Inquiry'' THEN ''Payment Inquiry''
END AS TransType,
FirstName AS CustomerName,
TaxId, CONVERT(VARCHAR, DateTime, 103) AS Date, CONVERT(VARCHAR, DateTime, 108) AS Time
FROM #NonFinTran, ' + @ServerName3 + 'Portal.dbo.TB_Branch AS TB_Branch
WHERE
BranchId = TB_Branch.BranchCode
AND (TB_Branch.InstCode IN (''00001'', ''00003'',''001'',''002''))
AND (FromAccountType IN (''SA'', ''CA'', ''FD'', ''01'', ''02'', ''03'')))'
EXEC (@stmt)
IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#NonFinTran%')
DROP TABLE #NonFinTran
IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#MultipleNonFinTran%')
DROP TABLE #MultipleNonFinTran
Anil Kumar -
Hi experts,
I need SP_TN for specific user must use specific document series and warehouses in Marketing Documents SAP B1.
Kindly give solution ASAP.
Thanks in advanceHi Nagarajan,
It show (1) Not allowed to add PO.
I used the following SP
IF @object_type = '22' AND @transaction_type IN (N'A',N'U')
BEGIN
IF Exists
(SELECT T0.DocEntry FROM POR1 T0 INNER JOIN OPOR T1 ON T0.DocEntry = T1.DocEntry
WHERE T1.DocType = 'I' AND T1.Series = '142' OR T1.Series = '145' AND T0.[WhsCode] = 'STEX-01'
or T0.[WhsCode] = 'STNEX-01' and T1.[UserSign] ='1'
and T1.docentry = @list_of_cols_val_tab_del)
BEGIN
SELECT @error = 1
SELECT @error_message = 'Not allowed to add PO'
END
END
warm regards,
Guhan -
Hi,
I have the streams admin user as "stradmin" and i have a queue table called "STREAMS_CAPTURE_QT"
I am not able to drop the streams user because i am not able to drop the queue table.
I tried the following.....
begin
DBMS_AQADM.DROP_QUEUE_TABLE(
queue_table => 'STREAMS_CAPTURE_QT',
force => TRUE);
end;
but i get below error....
begin
ERROR at line 1:
ORA-04031: unable to allocate 112 bytes of shared memory ("streams
pool","unknown object","streams pool","qulptr_kwqbscc")
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4102
ORA-06512: at "SYS.DBMS_AQADM", line 197
ORA-06512: at line 2
I checked my init.ora parameter file and i do have...
*.aq_tm_processes=0
*.shared_pool_size=500M
*.streams_pool_size=16777216
*.event='10298 trace name context forever, level 32'
Can someone help me to drop the queue table as well as the streams admin user.
Thanks in advance.Have you tried increasing the SGA size?
-
Cannot drop queue objects - invalid username/password
Folks - I'm having an issue where I cannot drop the user that owns my AQ/streams objects from an 11g database.
SYS@bwapepd1> drop user streams cascade;
drop user streams cascade
ERROR at line 1:
ORA-24008: queue table STREAMS.LB_SUBS_SOURCE_QT must be dropped first
So then I try to drop the queue -
SYS@bwapepd1> execute dbms_aqadm.drop_queue('STREAMS.LB_SUBS_SOURCE_Q');
BEGIN dbms_aqadm.drop_queue('STREAMS.LB_SUBS_SOURCE_Q'); END;
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 3472
ORA-06512: at "SYS.DBMS_AQADM", line 167
ORA-06512: at line 1
So, next I tried to drop the queue table with a force -
SYS@bwapepd1> BEGIN
dbms_aqadm.drop_queue_table(
queue_table => 'STREAMS.LB_SUBS_SOURCE_QT',
force => TRUE);
END;
BEGIN
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4215
ORA-06512: at "SYS.DBMS_AQADM", line 197
ORA-06512: at line 2
I've tried as both SYS and the STREAMS owner and both get the same invalid username/password error.
Any help is much appreciated.
Thx!
rbThere is insufficient information here to help you but my recommendation would be:
1. Stop the queue
2. Drop the queue
3. Drop the queue table
4. Drop the user with cascade
If you are getting an insufficient privs message when logged on as SYS then you need to make sure that you are where you think you are: You are not. Perhaps you have a remote connection, for example.
PS: Is this Windows and are you using the joke that is remote desktop? That is one example of not being where you think you are. -
Hi Gurus,
when i am trying to drop a table, getting the below error:
ora - 00942; table or view does not exists
when am doing "desc <table_name>", i can see the structure.
tried to rename the table still its giving ora 00942
can you please suggest why the table cannot be dropped?
thanks in advance!
//sabyTry this as user TEST2:
SQL> select 'drop table "'||table_name||'" purge;' from user_tables where upper(TABLE_NAME) like 'SKF_%' ;
'DROPTABLE"'||TABLE_NAME||'"PURGE;'
drop table "SKF_CL_AL_ROW_AVAILABILITY " purge;
SQL> drop table "SKF_CL_AL_ROW_AVAILABILITY " purge;
There COULD be a blank (or something else) at the end of the table name. -
I've been using Mozilla Firefox for a few years and love it. My home page is Google News, and Google is my chosen search engine. For the last three weeks, whenever I have Firefox/Google news open, then open another program, like Word, Quicken, maybe a downloaded game site, everything locks up - every single page including my Mozilla Firefox, my gmail account and whatever other page I have tried to open. I cannot minimize any screen, cannot X close any screen, this includes the original open Firefox Mozilla screens. The only way to be able to do anything on any screen is to use Task Manager to close the windows. My AVG protection runs scans every night. I have gone in and run my Malware protection program, another AVG scan, updated everything, flash players, run checks everywhere. Even ran a computer degrag, yet still the problem persists.
What now? I am frustrated having to completely shut down all programs running with task manager before I can proceed with any program.I found that logging into Google Docs would lock it up EVERY TIME. So I disabled every one of the Add-Ons one at a time, and found the offending Add-On: Shockwave Flash 11.3.300.268. Disable that one and see if it solves your problem, it did mine.
EDIT: Disabling this means you can't watch YouTube videos. The best fix is to do a search for Adobe's earlier versions of Flash. Uninstall Flash Player from your computer and reinstall an earlier version. I am successfully using 11.3.300.265. -
Cannot drop the table - cannot enable compression - cannot find the object
Hi,
I'm trying to install Database Instance as a 2nd part of distributed SAP system. There was already MS SQL 2008 STD installed, I installed another MS SQL 2008 STD instance manually (as described in PI installation guide) from original MS SQL 2008 STD DVD, not one provided by SAP. The database is created by SAPinst, and we have a crash at the beginning of ABAP import phase:
Here is a log: -> http://wklej.org/id/392174/
I thought I can run development SAP system on Standard Edition. Am I right and this is just permission problem? How to troubleshoot that?
Thanks for any suggestions.
Regards,
KHi Sven,
Thanks, &norowcompression& did the trick!
Does anyone know is this type of installation (not SAP's MSSQL media, STD Edition for dev/qas system, MS SQL instance for SAP with another MS SQL instances on the same server) is supported?
Thanks again,
K
//edit:
no it's not supported:
Note 62988 - Support Packages for Microsoft SQL Server
"Supported editions
All supported SQL server releases are tested by SAP in the Enterprise Edition only. Therefore, only the Enterprise Edition is supported. The SAP support may not be able to solve problems that occur with other editions."
Edited by: Konrad Kostecki on Sep 23, 2010 10:22 AM -
Hi masters
I cannot drop a user cascade, i'll get that error
drop user HOMER cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
I'''ve triied the work around given in metalink but i do not have
select owner, QUEUE_TABLE from dba_queue_tables for my HOMER user is empty.
What shall i do now?ajallen wrote:
Try note 236898.1. It is for 8 and 9 but may work for you. The symptoms seem similar.
Or note 203225.1.
I had the same problem (oracle 9.2.0.5 on Windows 2003).
The table was visible in TOAD under the tables tab.
SQL> EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE( queue_table => 'SYSADM.DOCDISTR_QTABLE
', FORCE => TRUE);
BEGIN DBMS_AQADM.DROP_QUEUE_TABLE( queue_table => 'SYSADM.DOCDISTR_QTABLE', FORC
E => TRUE); END;
ERROR at line 1:
ORA-24002: QUEUE_TABLE SYSADM.DOCDISTR_QTABLE does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2973
ORA-06512: at "SYS.DBMS_AQADM", line 197
ORA-06512: at line 1
SQL> select owner, queue_table from dba_queue_tables;
OWNER QUEUE_TABLE
SYS AQ_EVENT_TABLE
SYS AQ_SRVNTFN_TABLE
SYSTEM DEF$_AQCALL
SYSTEM DEF$_AQERROR
SQL> select object_name, object_type from user_objects where object_name like 'D
OCDI%';
OBJECT_NAME OBJECT_TYPE
DOCDISTR_QTABLE TABLE
I used note 236898.1 to drop this queue table. (read the statements carefully because the names of the functions can be confused with each other: corr_aq_92.drop_corrupted_ qt 92(..) and corr_aq_92.drop_corrupted_ q 92(..)
For me, this is the solution. -
Problem with Queue Table while dropping schema
Hi,
I want to DROP a schema, but it gives the following error while trying to drop it:
ORA-00604: error occurred at recursive SQL level 1
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
From TOAD, I found that no queue or queue_table exists in the database presently.
I'm using 10.2.0.2 RAC database.
Can anyone help me to drop the schema?
Thanks in advance..
Regards,
AnjanI have followed the doc 203225.1..
Now getting the following error:
ORA-00081: address range [0x60000000000A89A0, 0x60000000000A89A4) is not readable
ORA-00600: internal error code, arguments: [kzdukl3], [24], [], [], [], [], [], [] -
Versions are Oracle 11.2.0.1.0 and SQL Developer 4.0.0.12 on Windows 7 Ultimate SP1.
Hi
I'm following the CBT Nuggets SQL Fundementals training (video #11) and cannot drop a table I have just created. The command executed and error are:
drop table newprods;
Error starting at line : 1 in command -
drop table newprods
Error report -
SQL Error: ORA-00604: error occurred at recursive SQL level 1
ORA-20000: Cannot drop object
ORA-06512: at line 2
00604. 00000 - "error occurred at recursive SQL level %s"
*Cause: An error occurred while processing a recursive SQL statement
(a statement applying to internal dictionary tables).
*Action: If the situation described in the next error on the stack
can be corrected, do so; otherwise contact Oracle Support.
As the HR user I created two tables and created a FK constraint between them. After truncating the table with this FK, I am unable to drop it. Even if I remove the FK, the error is the same. Issing the command in SQL*Plus gives the same error.
This is the first time I have created any tables since installing Oracle on this machine and is my first attempt at dropping a table. I have not created any sequences, triggers or views based on these newly created tables.
Does anyone have any ideas?
CheersC:\Oracle>sqlplus hr@orcl
SQL*Plus: Release 11.2.0.1.0 Production on Wed Sep 4 18:58:55 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> CREATE TABLE table1 (column1 VARCHAR2(20 BYTE));
Table created.
SQL> select * from table1;
no rows selected
SQL> drop table table1;
drop table table1
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-20000: Cannot drop object
ORA-06512: at line 2
SQL>
Can I run a query to see if there are any triggeres on the table?
EDIT: Ok it looks like no triggers:
SQL> show user
USER is "SYS"
SQL> select * from DBA_TRIGGERS where table_name like '%table1%';
no rows selected
SQL> select * from USER_TRIGGERS where table_name like '%table1%';
no rows selected -
SSO means everyone must use the portal -- no GUI?
We are just transitioning from Blueprint to Realization and must make a decision. We'd like to use Single Sign-On. I was told that if we use SSO, then all users must use the portal, no-one can use the SAPGUI. Is this true?
Hi Leo,
Single Sign-on merely means that a user has to authenticate against a trusted party and and can access afterwards all other applications (if configured for SSO) without authentication.
There are quite a few SSO techniques. See the article in <a href="http://en.wikipedia.org/wiki/Single_sign_on">Wikipedia</a> to get a first impression.
If it comes to SAP NetWeaver Portal we talk about SSO between the portal and the integrated backend applications. That means once the user logged into the portal the user can access the integrated applications without giving his credentials. Basically, there are two SSO methods available:
- SAP Logon Ticket
- User Mapping
Find more information on these techniques in the SAP Library.
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/d6/031c3ac9fb1d75e10000000a114084/frameset.htm">Authentication and Single Sign-on</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/89/6eb8deaf2f11d5993700508b6b8b11/frameset.htm">Authentication on the Portal (Single Sign-on)</a>
Hope I could help a bit.
Best regards,
Martin -
Hi guys ,
am trying to drop my table . but it is used by another user . am getting error message.
can give a suggession .
Edited by: Balajiraam on Mar 2, 2011 1:33 AMHi,
You cannot drop the table without the other user completing the transaction on the table. So the user's transaction has to be completed before you drop the table. As hoek said the user should either commit or rollback the transaction.
cheers
VT -
We are currently converting our student information system from Sybase to Oracle. My task is to convert our existing sql scripts. A number of them use temp tables and I have successfully got them to run except that I cannot drop the tables at the end of the script because they are still in use *[Error Code: 14452, SQL State: 72000] ORA-14452: attempt to create, alter or drop an index on temporary table already in use*. For example:
/* Oracle Version */
-- Select Cactus ID ------------------------------------------------------------
CREATE GLOBAL TEMPORARY TABLE tch1
(name Varchar(45), tid Int, CactusID Varchar(12))
ON COMMIT PRESERVE ROWS;
INSERT INTO tch1
SELECT
t.lastfirst,
t.id teacherid,
c.value
FROM
teachers t
INNER JOIN customvarchars c ON t.id = c.KeyNo
AND fieldno = 148;
-- Select Core Codes ---------------------------------------------------------------
CREATE GLOBAL TEMPORARY TABLE crs1
(name Varchar(45), cid Int, CactusCd Varchar(12))
ON COMMIT PRESERVE ROWS;
INSERT INTO crs1
SELECT
cs.course_name,
cs.id courseid,
c.value
FROM
Courses cs
INNER JOIN customvarchars c ON cs.id = c.KeyNo
AND fieldno = 146;
-- Put it all together ---------------------------------------------------------
SELECT
t.lastfirst AS Teacher,
ct.CactusID,
s.schoolid AS Sch#,
s.TermID,
c.course_number AS Crs#,
s.section_number AS Sec#,
c.course_name AS Course,
cr.CactusCd,
COUNT(*) AS Enroll
FROM
cc
INNER JOIN sections s ON cc.sectionid = s.id
INNER JOIN courses c ON s.course_number = c.course_number
LEFT JOIN crs1 cr ON c.id = cr.cid
INNER JOIN teachers t ON s.teacher = t.id
LEFT JOIN tch1 ct ON t.id = ct.tid
WHERE s.schoolid NOT IN (701,711)
GROUP BY
s.schoolid,
t.lastfirst,
ct.CactusID,
c.course_number,
s.section_number,
c.course_name,
cr.CactusCd,
s.TermID
ORDER BY
s.schoolid,
t.lastfirst,
ct.CactusID,
c.course_number,
s.section_number,
c.course_name,
cr.CactusCd,
s.TermID;
-- Drop Tables -----------------------
DROP TABLE tch1;
DROP TABLE crs1;
I have an Oracle PL/SQL reference guide at hand, but I don't see any mention of dropping the tables when completed. I'm also curious if I'm using the terminator (;) correctly. MS SQL Server and Sybase did not require one.
Thanks.Christopher Soza wrote:
you need to issue a
COMMIT;
prior to issueing the drop table commands
COMMIT will not help since GTT is ON COMMIT PRESERVE ROWS:
Session 1:
SQL> CREATE GLOBAL TEMPORARY TABLE tch1
2 (name Varchar(45), tid Int, CactusID Varchar(12))
3 ON COMMIT PRESERVE ROWS;
Table created.
SQL> insert into tch1 values('A',1,'B');
1 row created.
SQL> commit;
Commit complete.
SQL> Session 2:
SQL> drop table tch1;
drop table tch1
ERROR at line 1:
ORA-14452: attempt to create, alter or drop an index on temporary table already
in use
SQL> SY.
Maybe you are looking for
-
InfoSet query - eliminate duplicates while calculating amounts
I got InfoSet consist of FI DSO and Dunning data DSO. FI fields in Infoset are: AC_DOC_NUM LINE_ITEM AMOUNT Dunn. fields in InfoSet are: AC_DOC_NUM LINE_ITEM DUNN_NUM DUNN_AMOUNT ODS are joined through AC_DOC_NUM + LINE_ITEM fields. Every combinatio
-
Palm Z22 Handheld and iSync - compatible?
Is the Palm Z22 Handheld compatible with iSync 2.1.1? It is sold online in the Apple Store but is not listed on the iSync compatible list on the Apple web site, nor does Palm list it as compatible except with PCs - via MS Outlook. Seems like it must
-
Index in classical report?
i want the serial numbers for my final output table to be displayed, ie. 1,2,..n. iam using classical report. pls tel the procedure.
-
IRISH ITUNES MUSIC STORE----- WE WANT MOVIES & TV SHOWS
First of all let me inform itunes as I would hope they are already aware but i'll reiterate it anyway, Ireland is not a country full of green leprachauns (see I can't even spell the word) with high pitched voices, We are infact the business and econo
-
Wireless: unable to create user
Hi, I got this error: "Resource /marconi/error not found" when trying to create a wireless user with using http://midtierhost:midtierport/marconi/welcome.uix. The user has been created in OID, and has been provisioned to use email, calendar, files su