Home » RDBMS Server » Server Administration » Urgent! Cannot Change sys pw.
Urgent! Cannot Change sys pw. [message #56675] Wed, 16 April 2003 07:47 Go to next message
newbie2
Messages: 8
Registered: October 2002
Junior Member
How do you change the sys password in 9i?
It is still saying it is "change_on_install".
I logged in as sys/change_on_install as sysdba and then made and alter statement.

Here is the log file from what I have done:

SQL> set echo on
SQL> connect sys@imrs_test as sysdba
Connected.
SQL> sho user
USER is "SYS"
SQL> alter user sys identified by gondola;

User altered.

SQL> connect sys/gondola@imrs_test as sysdba
ERROR:
ORA-01017: invalid username/password; logon denied

Warning: You are no longer connected to ORACLE.
SQL> spool off

For some reason, this did not work.
Please Help!
Re: Urgent! Cannot Change sys pw. [message #56676 is a reply to message #56675] Wed, 16 April 2003 08:22 Go to previous messageGo to next message
psmyth
Messages: 81
Registered: October 2002
Member
you can't include the password on the 'conn' line...

if you use

connect sys@imrs_test as sysdba

it will prompt you for the password and connect you successfully.

Good luck!
Re: Urgent! Cannot Change sys pw. [message #56678 is a reply to message #56675] Wed, 16 April 2003 09:21 Go to previous messageGo to next message
newbie2
Messages: 8
Registered: October 2002
Junior Member
Psmyth,

Thank you!
I tried that and it still does not work.
Re: Urgent! Cannot Change sys pw. [message #56690 is a reply to message #56675] Wed, 16 April 2003 16:00 Go to previous messageGo to next message
Trifon Anguelov
Messages: 514
Registered: June 2002
Senior Member
You have to make sure that the user has SYSDBA role granted before trying to connect as such:

SQL> select * from v$pwfile_users;

USERNAME SYSDB SYSOP
------------------------------ ----- -----
INTERNAL TRUE TRUE
SYS TRUE TRUE

To grant the SYSDBA role use:

SQL> GRANT SYSDBA TO "username";

Hope that helps,

clio_usa
OCP - DBA

Visit our Web site

Re: Urgent! Cannot Change sys pw. [message #56693 is a reply to message #56675] Thu, 17 April 2003 01:38 Go to previous message
psmyth
Messages: 81
Registered: October 2002
Member
ok, can you cut'n'paste the details of the new attempt please?
Previous Topic: how to monitor the table changes (Newbie)
Next Topic: Oracle Installation
Goto Forum:
  


Current Time: Fri Sep 20 09:46:21 CDT 2024