droped user in my query result? [message #128300] |
Sun, 17 July 2005 08:16 |
sunil_v_mishra
Messages: 506 Registered: March 2005
|
Senior Member |
|
|
hi
I had droped one user from my oracle database....
but when i run this below query i found that user exist
SQL>select username from dba_users;
but when i try to connect that user i get result
SQL> connect sunil/sunil
ERROR:
ORA-01017: invalid username/password; logon denied
Now tell me how to remove this user from result of this query
SQL>select username from dba_users;
Thanks
From:-Sunilkumar Mishra
|
|
|
|
|
|
|
Re: droped user in my query result? [message #128344 is a reply to message #128329] |
Mon, 18 July 2005 02:21 |
milind_sri
Messages: 70 Registered: February 2005 Location: Pune
|
Member |
|
|
Hi,
I think you update the statistics for the database cause i think the statistics are not updated and the data dictionary is not having the current status of the database.
First, perform a clean shutdown if you can and then update the statistics of your database through DBMS_STATS package.
I think this can resolve your problem though I am not sure.
Milind.
|
|
|
Re: droped user in my query result? [message #128350 is a reply to message #128344] |
Mon, 18 July 2005 02:35 |
sunil_v_mishra
Messages: 506 Registered: March 2005
|
Senior Member |
|
|
hi
Milind thanks for your reply .. as my database is running 24x7 so difficult to shutdown .. even i was knowing that after shuting down the database and starting it again every thing will be fine ... but is there is any other solution to this without shuting down the database.
Thanks
From :- Sunilkumar Mishra
[Updated on: Mon, 18 July 2005 02:36] Report message to a moderator
|
|
|
Re: droped user in my query result? [message #128354 is a reply to message #128350] |
Mon, 18 July 2005 02:52 |
milind_sri
Messages: 70 Registered: February 2005 Location: Pune
|
Member |
|
|
Hi,
What you can try on this is collect the database stats through DBMS_STATS package without shutting down the db.
I think once the statistics will be updated your problem will get resolved.
Please let me know if your problem gets resolved after doing this.
Milind.
|
|
|
|
Re: droped user in my query result? [message #128407 is a reply to message #128402] |
Mon, 18 July 2005 06:53 |
milind_sri
Messages: 70 Registered: February 2005 Location: Pune
|
Member |
|
|
Hi Frank,
I have already said in my previous post that I am not sure about this. But, I have seen practically once or twice Oracle does not recognise Create table or Drop table or Drop user commands until statistics are updated as the data dictionary tables are not having the recent changes.
That is why I told Sunil to give this a try.
Milind.
|
|
|
Re: droped user in my query result? [message #459091 is a reply to message #128310] |
Thu, 03 June 2010 06:04 |
yasirshakil
Messages: 2 Registered: June 2010 Location: Karachi, Pakistan
|
Junior Member |
|
|
first connect to sysdab
SQL>conn / as sysdba
then type
SQL>drop user sunil cascade;
then user will remove from data base
then connect to sunil
SQL>conn sunil/sunil
oracle will not allow use to conn to sunil/sunil means your user is deleted
|
|
|
|