Error in drop user Error:ORA-00942
While I want to drop some Oracle users, the following error exists:
SQL> drop user simon cascade;
drop user simon cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
However, I can select data from dba_users and not problem on create user or alter user password, etc.
Which views / synonyms I need to re-create? Where is the file location?
Hi,
I droped all object from scheme but one package I can't drop.
Now when I try drop this package or user,
I get ORA-00600: internal error code, arguments: [psdtyfnd_with_suffix], [], [], [], [], [], [], []
follow the link ..
http://www.dba-oracle.com/oracle_tips_ora_600.htm
u may not be able to re-create the package as u have already dropped some of the dependent packages which it calles internally..I cannot guess anything else...
Hope the link helps..
Regards
Bharath
Similar Messages
-
Error(20,22): PL/SQL: ORA-00942: table or view does not exist
I am getting currently getting an error when I try and insert into a table from a different schema from my Stored Procedure:
Error(20,22): PL/SQL: ORA-00942: table or view does not exist
I am explicitly calling the table with the schema name infront i.e.
INSERT INTO SAPSR3.ZTREC_NAME_TYPE
MASTER_ID,
NAME_TYPE,
FAMILY_NAME,
FIRST_NAME,
MIDDLE_NAME,
TITLE
VALUES
In_MasterID,
In_NameType,
In_FamilyName,
In_FirstName,
In_MiddleName,
In_Title
I only get this error when I try and compile my stored procedure. If I try this insert not within a stored procedure (i.e. a blank script) it works perfectly.
Can anyone tell me what Im doing wrong?
Thanks.Hi,
It sounds like you (the procedure owner) have privileges on that table only through a role.
Roles don't count in stored procedures created with AUTHID OWNER (which is the default).
Either
(1) Have user SAPSR3 grant the necessary privileges directly to you (or to PUBLIC), or
(2) change the procedure so that it runs with the caller's privileges, by adding AUTHID CURRENT_USER after the argument list but before the keyword IS (os AS) like this:
CREATE OR REPLACE PROCEDURE foo
( x IN NUMBER
AUTHID CURRENT_USER
IS ... -
Dear Experts,
I got Error While Drop User.
This is the Error msg.
SQL> DROP USER FORPROCURE CASCADE;
DROP USER FORPROCURE CASCADE
ERROR at line 1:
ORA-00600: internal error code, arguments: [16201], [], [], [], [], [], [], []ORA-600 is Oracle's generic error code for unhandled exceptional behaviour (a bug to you or me). these things tend to be version and OS specific.
The standard advice is to contact Oracle Support. Frequently the solution is to upgrade to a later patch version.
But you might be fortunate. If you tell us your database version and OS platform we might be able to help you. Do you have any wrapped PL/SQL?
Cheers, APC -
Error rendering element. Exception: ORA-00942: table or view does not exist
Guru,
We are maintaining 10 internal Database through OEM 10g and using seesded reports.
When we try to create simple custom reports against one of the Target database , its failing with following error message ,
Query : select * from v$database
Error rendering element.
Exception: ORA-00942: table or view does not exist
select * from dual & v$session working ( But query execution happeniing from Reposistory Database not from Target instance )
Note:
I have reviewed thred "getting ORA-00942 while running report in GC"
Please give some light .
Regards,
RajuThis is an EM related question so I would suggest you post in the appropriate space "Enterprise Manager" -- https://forums.oracle.com/community/developer/english/enterprise_management/enterprise_manager/enterprise_manager_6
You may also review (In Grid Control 10.2, Creating a Report to Query 'V$SESSION 'Fails: 'Error Rendering Element. Exception: ORA-00942 Table Or View Does Not Exist' (Doc ID 356755.1)) and implement the solution for v$database
Thanks,
Hussein -
ORA 3113 error when dropping user
I have an instance of oracle 9.2 that when I drop a user I get the ORA-3113 error.
I have no other problems with this database, It can be started and stopped with out error, users can connect...etc.
I tried the following oracle solution without success
Subject: ORA-03113 While Dropping a User
Doc ID: Note:291186.1 Type: PROBLEM
Last Revision Date: 21-JUL-2005 Status: MODERATED
The information in this document applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.5
This problem can occur on any platform.
Errors
ORA-03113 "end-of-file on communication channel"
Symptoms
ORA-03113 is thrown, while dropping a User
SQL> drop user test9 cascade;
ORA-03113 end-of-file on communication channel
Cause
Corrupted password file
Check whether REMOTE_LOGIN_PASSWORDFILE is set to { SHARED | EXCLUSIVE}
Fix
-- Recreate the password file.
++ $ orapwd file=orapw<sid> password=<sys's password> entries=<max # user's>
NOTE:
-- Set the REMOTE_LOGIN_PASSWORDFILE=NONE
-- Drop the user
-- If it is successful, You are hitting this problem.Are u getting this error sometimes while connecting to DB.
If not check the trace file generated on the server at failure time.
Regards
Raman -
Cant Drop User (Error Ora-24005)
Hello,
I am using Oracle 10g Express Edition.
I have a problem in my Schema. Can any one help me out, i need to drop schema. But when i use drop user tt cascade; i get the Error saying Ora-24005 Must use DBMS_AQADM.DROP_QUEUE_TABLE.
I tried to execute the package, but i get an error saying....
Ora-24012 Queue_Table
Ora-06512 at SYS.DBMS_AQADM, line 4084
Ora-06512 at SYS.DBMS_AQADM, line 197
Can any one let me know how should i drop my schema.
MehulMehul Mehta wrote:
Hello,
I am using Oracle 10g Express Edition.
I have a problem in my Schema. Can any one help me out, i need to drop schema. But when i use drop user tt cascade; i get the Error saying Ora-24005 Must use DBMS_AQADM.DROP_QUEUE_TABLE.
I tried to execute the package, but i get an error saying....
Ora-24012 Queue_Table
Ora-06512 at SYS.DBMS_AQADM, line 4084
Ora-06512 at SYS.DBMS_AQADM, line 197
Can any one let me know how should i drop my schema.
MehulFirst identify queue table as select queue_table from dba_queue_tables where owner = 'TT'
then connect sqlplus tt/ttpass and
exec dbms_aqadm.drop_queue_table(queue_table=>'identifiedfromabove',force =>true)
finally drop user tt cascade -
I accidently created several users that have an apostrophe attatched to the end of the user name.
The database versions are 10.2.0.2 and 10.2.0.3.0
The way I initially created the users was in SQLPLUS like : create user "SCOTT'";
Now, when I go to try to drop the user fro the database, I receive the following error:
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01740: missing double quote in identifier
ORA-06512: at line 7
I have also tried to drop the users in Enterprise Manager Console and received the same error.
Any ideas how else I can drop these users?
Thanks!
Edited by: 897877 on Aug 20, 2012 3:33 PMThank you. I can reproduce the problem in 10.2.0.1.0 on Windows.
A search indicates this is a known bug and I found this article that gives an explanation and shows a way around it.
http://mikesmithers.wordpress.com/2010/02/17/dropping-quoted-users-%E2%80%93-why-sometimes-oracle-cant-bear-to-say-goodbye/
This query
SELECT owner, trigger_name, trigger_type
FROM dba_triggers
WHERE base_object_type LIKE 'DATABASE%' shows three triggers owned by MDSYS and after the author disabled the triggers the user could be dropped.
SDO_DROP_USER, SDO_DROP_USER_BEFORE, SDO_GEOR_DROP_USER
Edited to add the commands needed - but you should read the post
ALTER TRIGGER mdsys.sdo_drop_user disable;
ALTER TRIGGER mdsys.sdo_drop_user_before disable;
drop user "SCOTT'";
ALTER TRIGGER mdsys.sdo_drop_user enable;
ALTER TRIGGER mdsys.sdo_drop_user_before enable; -
Hi,
While i m trying to drop a user it shows the following error:
ora -04021:timeout occurred while waiting to lock object sys.dbms_lock;
The user is not dropped.How to avoid this error???
Thanx..hello,
issue
sqlplus / as sysdba.
select SID,username,BLOCKING_SESSION,EVENT,LOGON_TIME from v$session where username='YOUR_USERNAME_In_CAPITAL';
please after this.
get the session blocking the username and call the user who is blocking you.if this is non production machine kill this session.
kind regards
Mohamed -
Install Error (Operating System User Error)
Hello,
I am having a problem installing Oracle 9ias application server. I installed it once and then thought I messed the install up because I couldn't log on to the application manager. Anyway I deinstalled it using the product installer software they supply and then I rebooted and now I continue to get the following error. I am the only user who has ever tried to install the software.
All Oracle 9iAS installations on a host must be installed by the same operating system user. The initial Oracle 9iAS installation located at C:\ora9ias was installed by a different operating system user. Please exit the install, log in as the user who installed the inital Oracle 9iAS installation and restart the install.
Any ideas?Hi,
you must drop manually the references in regedit to old iAs orcle home. Then you must drop the key 'em_loc' in regedit located in HKEY_LOCAL_MACHINE>Software>ORACLE if this key is pointing to Oracle 9iAS home.
I have done this and I've installed my ias instance right in W2K. -
Error when dropping a user/tablespace
Hi
I am trying to drop user/tablespaces, but I got the following error
SQL> drop user SM92 cascade;
drop user SM92 cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
Currently this user has not tables or view, the statement select * from all_tables where owner='SM92' return no row
ANyone knows why I can't drop this user? What should I check?
Thanks
LiHi, probably the user has dependency with other schemas, please review the Note:361576.1 into metalink site.
Good luck.
Regards. -
ORA-00942 Error during unicode export of BI 7.0
Hello Everyone,
I am doing an export of a non-unicode BI 7.0 system to convert and import it into a Unicode database. All the jobs have passed except one and I see the following error in the log file (SAPAPPL0_3.log)
/usr/sap/ABD/SYS/exe/run/R3load: START OF LOG: 20080302124247
/usr/sap/ABD/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#13 $ SAP
/usr/sap/ABD/SYS/exe/run/R3load: version R7.00/V1.4
Compiled Jun 9 2007 09:20:06
/usr/sap/ABD/SYS/exe/run/R3load -e SAPAPPL0_3.cmd -datacodepage 4102 -l SAPAPPL0_3.log -stop_on_error
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
(RSCP) INFO: I18N_NAMETAB_TIMESTAMPS not in env: checks are ON (Note 738858)
(RSCP) WARN: UMGCONTAINER has 1 problems.
(RSCP) INFO: UMGSETTINGS nametab creation: ok.
(RSCP) INFO: Global fallback code page = 1100
(RSCP) INFO: Common character set is not 7-bit-ASCII
(RSCP) INFO: Collision resolution method is 'fine'
(RSCP) INFO: R3trans code pages = Normal
(RSCP) INFO: EXPORT TO ... code pages = Normal
(RSCP) INFO: Check for invalid language keys: active, by default
(RSCP) INFO: I18N_NAMETAB_NORM_ALLOW = 999999999
(RSCP) INFO: I18N_NAMETAB_NORM_LOG = 1000000002
(RSCP) INFO: I18N_NAMETAB_ALT_ALLOW = 10000
(RSCP) INFO: I18N_NAMETAB_ALT_LOG = 10003
(RSCP) INFO: I18N_NAMETAB_OLD_ALLOW = 0
(RSCP) INFO: I18N_NAMETAB_OLD_LOG = 500
(GSI) INFO: dbname = "ABD20070922100908
(GSI) INFO: vname = "ORACLE "
(GSI) INFO: hostname = "ussbbdd5 "
(GSI) INFO: sysname = "HP-UX"
(GSI) INFO: nodename = "ussbbdd5"
(GSI) INFO: release = "B.11.23"
(GSI) INFO: version = "U"
(GSI) INFO: machine = "ia64"
(GSI) INFO: instno = "INITIAL "
(EXP) ERROR: DbSlExeRead failed
rc = 103, table "/BIC/SZTERR_CD"
(SQL error 942)
error message returned by DbSl:
ORA-00942: table or view does not exist
(DB) INFO: disconnected from DB
/usr/sap/ABD/SYS/exe/run/R3load: job finished with 1 error(s)
/usr/sap/ABD/SYS/exe/run/R3load: END OF LOG: 20080302124251
When I run the following command on /BIC/SZTERR_CD, I do not get any table information back. I am not sure how to fix it though.
SELECT * FROM DBA_OBJECTS WHERE OBJECT_NAME = '/BIC/SZTERR_CD ';
I did finish all the unicode preconversion steps and also ran the SMIGR_CREATE_DDL program. I had exported recently from the same system but I never got this error during that run.
Another question is about the order in which the steps need to be performed. I completed the preconversion steps, then ran the SMIGR_CREATE_DDL program before proceeding to the export phase. Is this right or does it not matter?
Thanks again for your help!Hello Stacy,
> When I run the following command on /BIC/SZTERR_CD, I do not get any table information back. I am not sure how to fix it though.
> SELECT * FROM DBA_OBJECTS WHERE OBJECT_NAME = '/BIC/SZTERR_CD ';
If the object does not exists on the source target database, please check if the ddic of sap still contains the table definition. (SE11 or SE14)
If yes you can set the status of the table /BIC/SZTERR_CD to "ok" in the corresponding task file.
You can not fix this problem in other way after you have started the conversion, because of the export files are already generated (with the information of the sap ddic)...
> I completed the preconversion steps, then ran the SMIGR_CREATE_DDL program before proceeding to the export phase. Is this right or does it not matter?
That was the right way.
Regards
Stefan -
Error in Phase EXPORT of CU&UC Migration 46C to ECC60: ORA-00942
Hi,
We are making a 46C to ECC 6.0 upgrade EHP4 Stack 8.
We have migrated to the system ECC6.0 not Unicode. Now we're in the
process of Export to Unicode and we got the following errors:
(EXP) ERROR: failed DbSlExeRead rc = 103, table "/ BI0/PTCTUSERNM"
(SQL error 942) error message returned by DbSl: ORA-00942: table or
view does not exist
(DB) INFO: disconnected from DB
(EXP) ERROR: failed DbSlExeRead rc = 103, table "DFKKCOLFILE_P_W (SQL
error 942) error message returned by DbSl: ORA-00942: table or view
does not exist
(DB) INFO: disconnected from DB
We found that the 2 tables do not exist in previous 46C release but
exist in other systems with ECC6.0 release.
We found that, at least, DFKKCOLFILE_P_W table did not exist in our
system migrated not unicode.
We have reviewed the OSS Note 1156968 (Add. info. EHP on upgrading to 4
for ERP SAP ABAP 6.0) and we did not find a solution to our errors.
Is there a process or mechanism to put these tables in the system if
the migration process has not created them? or is it possible to ignore
these errors in the export and go on with the migration and fix the
tables when we are done with the migration? If we ignore these errors
will we encounter problems because of that?
Can you help us?
Thank you in advance.Hello, we have solved the problem.
To help someone with the same error, what we have done is:
1.- wait until all the processes has finished and the export is stopped.
2.- startup SAP
3.- SE14 and look up the tables. Crete the tables in the database.
4.- stop SAP
5.- Retry the export (if you did all the steps with sapinst running but the dialogue window in the screen) or begin the sapinst again with the option: "continue with the old options".
Regards to all. -
Error creating a user defined report in the grid control
I am trying to create a simple User Defined report in the Grid OEM
Under the 'Elements' tab I have a 'Type' - 'Database Table from SQL'
And I have this 'Statement' - SELECT * FROM SYS.DBA_USERS
When I Click the 'Preview' button I get this error.
Error rendering element. Exception: ORA-00942: table or view does not exist
I'm logged on as SYSTEM.
Isn't the SYS.DBA_USERS table accessible by SYSTEM?
Any advice on what I'm doing wrong/
Edited by: bfee_sdc on Oct 19, 2010 9:12 AMWhat are the tricks?
It has to be some what supported since I found this somewhere in an Oracle note...
How to create custom reports on tables other than mgmt* views.
To create reports on other tables, grant permissions to MGMT_VIEW user as MGMT_VIEW is responsible for creating reports in grid control
SQL> GRANT SELECT on SYSMAN.<table_name> to MGMT_VIEW;
And then create the reports in the reporting framework referencing SYSMAN.<table_name> in the query.
I tried GRANT SELECT on SYS.DBA_USERS to MGNT_VIEW but this did not work. -
ORA-00942: table or view does not exist
select
nvl(appr.APPROVER_NAME, org.APPROVER_NAME) as APPROVER_NAME,
nvl(appr.APPROVER, org.APPROVER) as APPROVER,
nvl(appr.APPROVER_TYPE, org.APPROVER_TYPE) as APPROVER_TYPE,
nvl(appr.ASSIGNED_DATE, org.ASSIGNED_DATE) as ASSIGNED_DATE,
nvl(appr.APPROVAL_DATE, '-') as APPROVAL_DATE,
nvl(appr.STATE, org.STATE) as STATE,
org.SEQ as numberoftimesmodified,
nvl(appr.PROCESS, org.PROCESS) as PROCESS,
appr.seq2
from (
select a.seq,
b.usr_display_name as APPROVER_NAME,
b.usr_login as APPROVER,
'User' as APPROVER_TYPE,
'-' as ASSIGNED_DATE,
'-' as STATE,
a.seq as numberoftimesmodified,
'-' as PROCESS
from(
SELECT 1 as seq, USR_UDF_MANAGER_LOGIN as GID, '' as approver_name, 'user' as approver_type FROM DEVT_OIM.USR WHERE USR_LOGIN =:BENEFICIARY_GID AND :APPLICATION = 'Oracle 11i On demand'
UNION
select rownum as seq, regexp_substr(:APPROVERPAYLOAD,'[^,]+', 1, level) as gid, '' as approver_name, 'user' as approver_type from dual
where :APPLICATION != 'Oracle 11i On demand'
connect by regexp_substr(:APPROVERPAYLOAD, '[^,]+', 1, level) is not null
) a
inner join DEVT_OIM.usr b on a.gid = b.usr_login
) org
left join(
select b.numberoftimesmodified as seq, rownum as seq2, a.*
from
select
LEAD(a.ASSIGNEES) OVER(ORDER BY a.numberoftimesmodified) as prev_gid,
LEAD(a.pushbacksequence) OVER(ORDER BY a.numberoftimesmodified) as prev_pushbacksequence,
a.ASSIGNEES as current_gid,
nvl(retrieveGidName(a.ASSIGNEES), '-') as APPROVER_NAME,
(DEVT_OIM.TOKNEW(REPLACE(a.ASSIGNEES, ',', ':'))) as APPROVER,
'User' as APPROVER_TYPE,
a.pushbacksequence,
TO_CHAR(a.assigneddate,'DD-Mon-YYYY HH:MI:SS AM') as ASSIGNED_DATE,
case when a.state = 'WITHDRAWN' then TO_CHAR(a.updateddate,'DD-Mon-YYYY HH:MI:SS AM') else TO_CHAR(d.updateddate,'DD-Mon-YYYY HH:MI:SS AM') end as APPROVAL_DATE,
a.numberoftimesmodified,
case when a.state = 'EXPIRED' then 'Expired' when a.approvalduration is null then 'Pending' when a.outcome = 'REJECT' then 'Rejected' else 'Approved' end as PROCESS,
d.state as process2,
case when d.substate = 'REASSIGNED' then 'Reassigned' when d.state = 'INFO_REQUESTED' then 'Request Info' when a.state = 'EXPIRED' then 'Expired'
when a.outcome = 'REJECT' then 'Rejected' when d.substate = 'INFO_SUBMITTED' then 'Submitted' when a.state = 'WITHDRAWN' then 'Withdrawn' when e.state is null then 'Pending' else 'Approved' end as state,
e.ASSIGNEES, d.substate
from WFTASKHISTORY a
left join WFTASKHISTORY d on d.IDENTIFICATIONKEY = a.IDENTIFICATIONKEY and d.numberoftimesmodified = (a.numberoftimesmodified+1)
left join WFTASKHISTORY e on e.IDENTIFICATIONKEY = a.IDENTIFICATIONKEY and e.numberoftimesmodified = (a.numberoftimesmodified-1) and e.ASSIGNEES = a.ASSIGNEES
where a.IDENTIFICATIONKEY = :IDENTIFICATIONKEY and a.state is not null
order by a.numberoftimesmodified
) a
inner join (select rownum as numberoftimesmodified, pushbacksequence from (select distinct pushbacksequence from WFTASKHISTORY a where a.IDENTIFICATIONKEY = :IDENTIFICATIONKEY order by pushbacksequence)) b
on b.pushbacksequence = a.pushbacksequence
where a.prev_gid != a.current_gid or prev_gid is null
order by a.numberoftimesmodified
) appr on org.seq = appr.seqORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"
*Cause:
*Action:
Error at Line: 55 Column: 172Hi User,
The ORA - 00942 indicates that the Underlying object is not present in the Database.
Just Check whether the Table you are used in the Select statement exists in the user/Schema.
To check this..
SELECT *
FROM USER_TABLES
WHERE TABLE_NAME = 'YOUR_TABLE_NAME';Or
Simply,
SELECT *
FROM TAB;If you are using the Table from other Schema, Just give the table name like this..
SELECT *
FROM SCHEMA_USER.table_name;Thanks,
Shankar -
Cannot insert PS_TXN ORA-00942 table or view does not exist
We are using jdev 11.1.1.4.0
We have two users in the database and various application modules which connect to these users using datasources
We have tested the application with applicatin module pooling enabled off to test for passivation and activation errors and the application works fine.
Also on our internal test enviorment which has more then 10 concurrent users the application works fine
But at UAT it has started suddenly to give errors Cannot insert in PS_TXN ORA-00942 table or view does not exist
When I see the data in PS_TXN tables in various users I can see that passivation has taken place for the same day when there sporadic errors have been reported all having the cause as ORA-00942 table or view does not exist.
But one strange thing that I have observed is that the COLLID column has sequence numbers interchanged for the users randomly, database user 1 has sequence number from database user 2 seq and vice a versa in COLLID
As far as this problem goes the passivation should have failed with ORA-00001 primary key voilated but that is not the case
May be the keys have still not got to a number where they collide.
But I am totally taken aback on such a behaviour and I am not sure how to correct it.
So we have two porblems here
1) why did this error come in first place PS_TXN ORA-00942 table or view does not exist
2) Why are the sequence numbers interchanged for the databse users ?
Edited by: user3067156 on Jun 19, 2012 3:12 AMI got reply to my second question
It looks like a bug in the framework and the suggestions are to use only one ps_txn and ps_txn_seq by modifying the internal connection
But the first problem is not yet known why did it appear suddenly
Edited by: user3067156 on Jun 19, 2012 3:12 AM
Maybe you are looking for
-
My sister is not able to power on her HP Mini 1010NR netbook. I was looking at the HP Mini 1000 Mainteance ans Service guild and could not find a part number for the replacement switch. Is there a parts manual and breakdown on this hardware area?
-
Customer Aging Report by Highest Due Sorted List
Hi Can any one tell me is there any report where i get Customer Aging Details like S_ALR_87012178 - Customer Open Item Analysis by Balance of Overdue Items. and sorted by highest Due balance Accounts first rather than by Account No. Thanks Sivaram
-
HI all; I want to cancel the process type if it takes let's say more than 2 hrs.; the reason is sometimes the rollup job don't finish and just hang it forever...until more than 12 hrs and we have to manually cancel the job in the morning when we come
-
Change document serie when using a drop shipment warehouse
Hey all, I have the following question: We have a customer wich has 2 document series related to purchase orders. When we use a drop shipment warehouse in our sales documents the SAP system runs the procurement wizard to add a purchase orders relate
-
Hi Can somebody give step by step details to do setting/configuration to provide access to Abap part of the system to functional consultants for learning their related abap part. When they try to access,the system ask for access key. Thanks dm