Home » RDBMS Server » Server Utilities » How to know if a user exist?
How to know if a user exist? [message #73666] Tue, 15 June 2004 19:36 Go to next message
rushing
Messages: 135
Registered: January 2004
Location: Beijing,China
Senior Member
I want to create a user if it is not existed.

However, how to judge if it is been created?

Thanks!
Re: How to know if a user exist? [message #73667 is a reply to message #73666] Wed, 16 June 2004 03:24 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
check dba_users.username
Re: How to know if a user exist? [message #73670 is a reply to message #73667] Wed, 16 June 2004 17:29 Go to previous messageGo to next message
rushing
Messages: 135
Registered: January 2004
Location: Beijing,China
Senior Member
Error: SP2-0734
Unknow command line.
Re: How to know if a user exist? [message #73672 is a reply to message #73670] Thu, 17 June 2004 03:02 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
-- check whether your USER is listed here
-- login as a DBA user or sys or system

sql>select username from dba_users;
Previous Topic: bad performance in import when table created previously
Next Topic: SQLLDR: path of the file!
Goto Forum:
  


Current Time: Mon Jul 01 02:34:00 CDT 2024