Default path of oracle password file
Unix : $ORACLE_HOME/dbs
Window : %ORACLE_HOME%\database
This case I found because RMAN can't connect to database to do daily backup ..
วันก่อนมี case ที่ต้องแก้ไขการ Backup RMAN เพราะ RMAN เข้าใช้งานเป็น sysdba ไม่ได้
Because I create new password file .. after created found new password file contain only "SYS" schema
เพราะว่ามีการสร้าง password file ใหม่ .. หลังจากสร้างเสร็จลอง query ดู พบว่ามีแค่ schema "SYS" ที่ใช้ได้
see result from => SELECT * FROM V$PWFILE_USERS;
if you need to use sysdba for other schema need to grant sysdba to other like this
ถ้าคุณต้องการใช้ sysdba กับ schema อื่น ต้องทำการ GRANT SYSDBA ให้กับ schema อื่นก่อน
GRANT SYSDBA TO RMAN;
then see result from => SELECT * FROM V$PWFILE_USERS;
now, we can use RMAN schema like this => sqlplus rman/password as sysdba
ตอนนี้สามารถใช้งาน schema RMAN ได้แล้วตามตัวอย่างคำสั่ง => sqlplus rman/password as sysdba
How to create oracle password file
วิธีการสร้าง oracle password file
----------------------------------------------------------------------------------------------------
ORAPWD
You can create a password file using orapwd utility. For some Operating systems, you can create this file as part of standard installation.
Users are added to the password file when they are granted the SYSDBA or SYSOPER or SYSASM privilege.
The Oracle orapwd utility assists the DBA while granting SYSDBA, SYSOPER and SYSASM privileges to other users. By default, SYS is the only user that has SYSDBA and SYSOPER privileges. Creating a password file, via orapwd, enables remote users to connect with administrative privileges.
$ orapwd file=password_file_name [password=the_password] [entries=n] [force=Y|N] [ignorecase=Y|N] [nosysdba=Y|N]
Examples:
$ orapwd file=orapwSID password=sys_password force=y nosysdba=y
$ orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=secret
$ orapwd file=orapwprod entries=30 force=y
C:\orapwd file=%ORACLE_HOME%\database\PWD%ORACLE_SID%.ora password=2012 entries=20
C:\orapwd file=D:\oracle11g\product\11.1.0\db_1\database\pwdsfs.ora password=id entries=6 force=y
$ orapwd file=orapwPRODB3 password=abc123 entries=10 ignorecase=n
$ orapwd file=orapwprodb password=oracle1 ignorecase=y
----------------------------------------------------------------------------------------------------
hope this helps
Young Oracle DBA Thailand ..