All technological notes.
password file:
$ORACLE_HOME/dbs$ORACLE_HOME%\databaseFile name:
orapw<ORACLE_SID>orapwORCLParameter REMOTE_LOGIN_PASSWORDFILE:
EXCLUSIVE: password file can be used by only one databaseSHARED: One or more databases can use the password file.NONE: Oracle ignores any password file. Therefore, privileged users must be authenticated by the operating system.Creation and Management:
orapwd utility.password file by using operating system commands and create a new password file by using the password utility.CREATE USER admin_user IDENTIFIED BY admin_password;
GRANT SYSDBA TO admin_user;
V$PWFILE_USERS view:
SELECT * FROM V$PWFILE_USERS;

SYSDBA privilege,
sys schema and not the schema associated with your username.When connecting with SYSOPER privilege:
PUBLIC schema.Typically, the password file is not included in backups
You should not remove or modify the password file if you have a database or instance mounted using REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE or SHARED.
Passwords are case-sensitive, so you must take that into consideration when **re-creating **the password file.
password file was created with the ITGNORECASE=Y option, then it must be re-created with the same option.Steps for re-creating the password file:
orapwd.orapwd file=filename password=password entries=max users
# example
orapwd file=$ORACLE_HOME/dbs/orapwUl5 password=admin entries=20
- There are no spaces around the “equal to” (=) character.
filename: the name of the password file (mandatory).password: the password forSYS(optional).
- You are prompted for the password if you do not include the password argument.
max_users: the maximum number of distinct users allowed to connect asSYSDBAorSYSOPER.
- If you exceed this number, you must create a new password file.
- It is safer to have a larger number.
CONNECT sys/admin AS SYSDBA
CREATE USER admin2 IDENTIFIED BY admin_password;
grant sysdba to admin2;
# copy pwd file to
cp $ORACLE_HOME/dbs/orapworcl /home/oracle/backup
# remove file
rm $ORACLE_HOME/dbs/orapworcl
# confirm file has been removed
ls $ORACLE_HOME/dbs/orapw*

sqlplus sys@orclpdb as sysdba

orapwd utility.# view the description of the orapwd parameters.
orapwd
orapwd FILE=$ORACLE_HOME/dbs/orapworcl ENTRIES=15

sqlplus sys@orclpdb as sysdba
-- view the users in pwf
SELECT * FROM V$PWFILE_USERS;

# remove the new created pwd file
rm $ORACLE_HOME/dbs/orapworcl
# copy back the old pwd file
cp /home/oracle/backup/orapworcl $ORACLE_HOME/dbs/orapworcl
# confirm file has been removed back
ls $ORACLE_HOME/dbs/orapw*