Catt Solutions

Search
Skip to content

Daily Archives: October 4, 2009

11g, Oracle, Oracle 10g, oracle 9i

ORA-28046: Password change for SYS disallowed:

October 4, 2009 Larry Catt Leave a comment

Oracle provides the use of a password file and initialization parameters in order to control who can access the database with SYSDBA privileges. The error ORA-28046 is a result of using a single password file and the initialization parameters to access multiple databases with only one file. When the password file is used in this fashion, the ability to dynamically change the SYS password with the command “alter user” is disabled. In this procedure we will review how to change the SYS password after receiving this error.

1. Logon to your Oracle database server as the Oracle software owner.

2. Enter SQLPLUS as SYSDBA.

mylinux :> sqlplus ‘/ as SYSDBA’

SQL*Plus: Release 10.2.0.4.0 – Production on Sun Oct 04 11:39:34 2009

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

3. Attempt to change the SYS user password.

SQL> alter user sys identified by password1;
alter user sys identified by password1
*
ERROR at line 1:
ORA-28046: Password change for SYS disallowed

SQL>

NOTE: The alter user command failed.

4. Show the current definition of the initialization parameter
REMOTE_LOGIN_PASSWORDFILE with the SQLPLUS command show.

SQL> show parameter REMOTE_LOGIN_PASSWORDFILE

NAME TYPE VALUE
———————————— ———– —————-
REMOTE_LOGIN_PASSWORDFILE string SHARED
SQL>

NOTE: The current REMOTE_LOGIN_PASSWORDFILE is set to SHARED which disallows changing of the SYS password.

4. The initialization parameter REMOTE_LOGIN_PASSWORDFILE is not dynamic and thus we need to change its value and restart the database.

SQL> alter system set REMOTE_LOGIN_PASSWORDFILE=exclusive scope=spfile;

System altered.

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup open
ORACLE instance started.

Total System Global Area 1207959552 bytes
Fixed Size 2068728 bytes
Variable Size 654315272 bytes
Database Buffers 503316480 bytes
Redo Buffers 48259072 bytes
Database mounted.
Database opened.
SQL>

5. Now, show the current value of REMOTE_LOGIN_PASSWORDFILE.

SQL> show parameter REMOTE_LOGIN_PASSWORDFILE

NAME TYPE VALUE
———————————— ———– ————
REMOTE_LOGIN_PASSWORDFILE string EXCLUSIVE
SQL>

6. Re-execute the “ALTER USER” command to change SYS’s password and you will see that the command was successful.

SQL> alter user SYS identified by password1;

User altered.

SQL>

7. Change the REMOTE_LOGIN_PASSWORDFILE init parameter back to SHARED and restart the database.

SQL> alter system set REMOTE_LOGIN_PASSWORDFILE=shared scope=spfile;

System altered.

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup open
ORACLE instance started.

Total System Global Area 1207959552 bytes
Fixed Size 2068728 bytes
Variable Size 654315272 bytes
Database Buffers 503316480 bytes
Redo Buffers 48259072 bytes
Database mounted.
Database opened.
SQL>

8. Now, show the current value of REMOTE_LOGIN_PASSWORDFILE.

SQL> show parameter REMOTE_LOGIN_PASSWORDFILE

NAME TYPE VALUE
———————————— ———– ———–
REMOTE_LOGIN_PASSWORDFILE string SHARED
SQL>

This completes changing of SYS password when the init parameter
REMOTE_LOGIN_PASSWORDFILE is set to SHARED.

Larry J. Catt, OCP 9i, 10g
oracle@allcompute.com
www.allcompute.com

alter userchangeexclusiveORA-28046OraclepasswordREMOTE_LOGIN_PASSWORDFILEsharedSYSsysdba

Recent Posts

  • OpenJDK JVM not supported while installing Oracle Fusion Middleware on Linux 7
  • Changing command prompt in LINUX
  • Determining SID(s) from Database Server
  • Determining ORACLE_HOME(s) from Database Server
  • Determine the release of linux you are using

Categories

  • 11g (98)
  • 12c (159)
  • ADDM (6)
  • Administration (40)
  • ADR (2)
  • alert / logs (5)
  • archiving (1)
  • ASH (3)
  • ASM (7)
  • audit (19)
  • backup/recovery (18)
  • CDB (30)
  • Cloud Control (5)
  • data pump (8)
  • dbca (8)
  • EM (7)
  • EM Express (5)
  • error (16)
  • flashback (8)
  • FMW (1)
  • hp-ux (47)
  • ILM (2)
  • installer (35)
  • itanium (33)
  • linux (71)
  • listener (6)
  • Multitenant (25)
  • network (20)
  • OPatch (12)
  • ORA- (1)
  • Oracle (169)
  • Oracle 10g (122)
  • oracle 9i (97)
  • PDB (25)
  • Performance (24)
  • perl (2)
  • privileges (7)
  • RAC (37)
  • redaction (2)
  • replay (1)
  • RMAN (12)
  • RMAN (19)
  • script (13)
  • security (5)
  • SQL (32)
  • SQLLoader (2)
  • sqlplus (13)
  • storage (7)
  • tablespaces (6)
  • testing (3)
  • tnsnames (3)
  • troubleshooting (1)
  • uncategorized (376)
  • unix (49)
  • Users (10)
  • utility (14)
  • VM (3)
  • watches (9)
  • windows (18)
  • windows 7 (13)

Oracle tips and tricks.

October 2009
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031
« Sep   Nov »

Archive

  • July 2017 (7)
  • June 2017 (5)
  • May 2017 (5)
  • April 2017 (8)
  • March 2017 (7)
  • February 2017 (6)
  • January 2017 (6)
  • December 2016 (6)
  • November 2016 (7)
  • October 2016 (5)
  • September 2016 (7)
  • August 2016 (7)
  • July 2016 (7)
  • June 2016 (8)
  • May 2016 (4)
  • April 2016 (7)
  • March 2016 (7)
  • February 2016 (7)
  • January 2016 (7)
  • December 2015 (7)
  • November 2015 (7)
  • October 2015 (5)
  • September 2015 (7)
  • August 2015 (7)
  • July 2015 (3)
  • June 2015 (2)
  • May 2015 (1)
  • April 2015 (2)
  • March 2015 (2)
  • February 2015 (2)
  • January 2015 (1)
  • December 2014 (4)
  • November 2014 (2)
  • October 2014 (1)
  • August 2014 (1)
  • June 2014 (1)
  • May 2014 (1)
  • April 2014 (1)
  • January 2014 (1)
  • October 2013 (3)
  • September 2013 (2)
  • August 2013 (2)
  • July 2013 (1)
  • June 2013 (1)
  • April 2013 (1)
  • February 2013 (1)
  • December 2012 (1)
  • September 2012 (1)
  • June 2012 (1)
  • May 2012 (1)
  • February 2012 (1)
  • November 2011 (1)
  • September 2011 (1)
  • July 2011 (1)
  • May 2011 (1)
  • April 2011 (8)
  • March 2011 (2)
  • February 2011 (4)
  • January 2011 (4)
  • December 2010 (4)
  • November 2010 (4)
  • October 2010 (2)
  • September 2010 (2)
  • August 2010 (3)
  • July 2010 (2)
  • June 2010 (5)
  • May 2010 (10)
  • April 2010 (13)
  • March 2010 (10)
  • February 2010 (8)
  • January 2010 (6)
  • December 2009 (7)
  • November 2009 (4)
  • October 2009 (6)
  • September 2009 (5)
  • August 2009 (20)
  • July 2009 (4)
  • May 2009 (4)
  • April 2009 (1)
  • March 2009 (1)
  • February 2009 (1)
  • January 2009 (6)
  • September 2008 (6)
  • July 2008 (1)
  • June 2008 (1)
  • May 2008 (1)
  • April 2008 (1)
Proudly powered by WordPress