I have a streams replication related user in Oracle 11g. I see the user in dba_users table and was anle to login using the user but when I try to drop the user i get the error.
SQL> drop user <username> cascade;
Error at line 1:
ORA-1403: no data found.
Loos like data got corrupted in internal tables.
Any idea how to fix this mess and remove the user?
2 Answers 2
The ORA-01403
seems to indicate that you have a System Event Trigger for DROP USER.
You'll need to hunt down the appropriate trigger.
SELECT *
from dba_triggers
where base_object_type like 'DATABASE%'
and triggering_event like 'DROP%'
and status='ENABLED'
;
If that doesn't work, then I recommend that you open a ticket with Oracle Support.
-
Can you please explain more in detail as to what to do and how to fix the error. I see a trigger for the above query in dba_ triggers table.user147814– user1478142018年03月27日 18:24:34 +00:00Commented Mar 27, 2018 at 18:24
Check te user exist:
select * from all_users
or
select * from dba_users;
and see if exist or no.
-
The user exists in both the tables all_users and dba_users.user147814– user1478142018年03月27日 15:19:26 +00:00Commented Mar 27, 2018 at 15:19
drop user cascade;
isn't the correct Oracle syntax: dbfiddle.uk/…