How to Change Password file in Oracle RAC

Changing Password file in Oracle RAC

 

1. First check the current configuration of the system and the password file location .

[oracle@rac1-test ~]$ srvctl config database -d testdb
Database unique name: testdb
Database name: testdb
Oracle home: /home/oracle/DB/19.0.0/db_home
Oracle user: oracle
Spfile: +DATA/testdb/PARAMETERFILE/spfile.295.1172710733
Password file: +DATA/testdb/PASSWORD/pwdtestdb.318.1178841871
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups: DATA,ARCH
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: oinstall
OSOPER group: oinstall
Database instances: testdb1,testdb2
Configured nodes: rac1-test,rac2-test
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed
[oracle@rac1-test ~]$

 

2. Take Backup of the Password file

asmcmd
ASMCMD> pwcopy +DATA/BROK/PASSWORD/pwdbrok.256.1108650351 ‘/tmp’
copying +DATA/BROK/PASSWORD/pwdbrok.256.1108650351 -> /tmp/pwdbrok.256.1108650351

OR

cp +DATA/BROK/PASSWORD/pwdbrok.256.1108650351 ‘/tmp’

 

 

3. Modify the password parameter from the OCR.

srvctl modify database -d testdb -pwfile

 

 

4. Verify the changes again.

[oracle@rac1-test ~]$ srvctl config database -d testdb
Database unique name: testdb
Database name: testdb
Oracle home: /home/oracle/DB/19.0.0/db_home
Oracle user: oracle
Spfile: +DATA/testdb/PARAMETERFILE/spfile.295.1172710733
Password file:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups: DATA,ARCH
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: oinstall
OSOPER group: oinstall
Database instances: testdb1,testdb2
Configured nodes: rac1-test,rac2-test
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed

 

5. Add the new password file now.

orapwd file=’+DATA’ dbuniquename=’testdb’

it will prompt for the SYS password
once entered it will create a password file.

check the password file parameter using

srvctl config database -d testdb

 

6. Change the password in the database also (this will allow client to connect to the database).

Case:-
If we have an authentication enabled when logging into the database directly through the instance so password with “@” will not connect:-

Solution:-
To connect database in such cases we will have to disable the (SQLNET.Authentication service=NONE) parameter in the sqlnet.ora file

connect to the database as sys and change the password as:_

alter user sys identified by new_password;

 

7. Once done we can check the password by connecting through toad or any other client, and on database as:-

conn sys/new_passowrd

 

————————-  this should work ——————————

 

    About Abdul Khalique Siddique

    In addition to my proficiency in Oracle Database, I have also specialized in Oracle E-Business Suite. I have hands-on experience in implementing, configuring, and maintaining EBS applications, enabling organizations to streamline their business processes and achieve operational efficiency. Also I have hands-on experience in Oracle Cloud Infrastructure (OCI). I have worked with OCI services such as compute, storage, networking, and database offerings, leveraging the power of the cloud to deliver scalable and cost-effective solutions. My knowledge of OCI architecture and deployment models allows me to design and implement robust and secure cloud environments for various business requirements. Furthermore, I have specialized in disaster recovery solutions for Oracle technologies. I have designed and implemented comprehensive disaster recovery strategies, including backup and recovery procedures, standby databases, and high availability configurations. My expertise in data replication, failover mechanisms, and business continuity planning ensures that organizations can quickly recover from disruptions and maintain uninterrupted operations.

    Check Also

    Configuring EM Express on 19c Rac Database

    Configuring EM Express on 19c Rac Database   SQL> select dbms_xdb_config.getHttpPort() from dual; DBMS_XDB_CONFIG.GETHTTPPORT()—————————–0 SQL> …

    Leave a Reply