SQLPLUS Commands [message #618448] |
Fri, 11 July 2014 16:33  |
 |
Scroopter
Messages: 2 Registered: July 2014
|
Junior Member |
|
|
Hello,
I'm a total newbie to Oracle so apolagies in advance for dumb questions.
I just added a new user from the command line like this:
net user zube password /add
net localgroup Administrators zube /add
net localgroup ORA_DBA zube /add
However, when I go to login, I get the following:
C:\WINNT\system32>sqlplus
sqlplus
SQL*Plus: Release 9.2.0.1.0 - Production on Fri Jul 11 15:10:13 2014
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: zube
Enter password: password
ERROR:
ORA-01017: invalid username/password; logon denied
Also, when I log in under the 'system' user and run the following command, I do not see the newly created user 'zube' listed:
SQL> select * from all_users;
So, I'm wondering if when I created the user zube, that that user is now in a different database? If so, how do I list the various databases on my server?
|
|
|
|
|
|
|
|
|
Re: SQLPLUS Commands [message #618460 is a reply to message #618453] |
Sat, 12 July 2014 01:33  |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
yaokevin1987@gmail.com wrote on Sat, 12 July 2014 11:13you can use sqlplus / as sysdba to login the database
OP wants to create an user, he is already logged in to DB as system and thus able to run select * from all_users
Quote:when I log in under the 'system' user and run the following command, I do not see the newly created user 'zube' listed:
SQL> select * from all_users;
Edit : I see Michel replied as well around same time and he added further as to not use SYSDBA, so this link would be useful to read SYSDBA is special
[Updated on: Sat, 12 July 2014 01:37] Report message to a moderator
|
|
|