🍇Fix Password File Missing on Oracle

circle-info

ในกรณีที่เราทำการ Remote Login บน Oracle ด้วย Privilege DBA มันจะทำการ Authentication กับ Password File ซึ่งถ้าหากหายไป จะทำให้ไม่สามารทำการ Remote Login หรือแม้กระทั่ง Grant Privilege DBA ให้กับ User ได้ จะต้องทำการ Create ใหม่

triangle-exclamation
SQL> grant sysdba to scott ; 
ORA-01994: GRANT failed: password file missing or disabled

รวมถึงจะไม่สามารถทำการ Remote Login ด้วย User ที่มี Privilege DBA ได้เช่นเดียวกัน

Configuration

  • ทำการ Connect Database ด้วย SQL*Plus

  • Check User in Password File

  • Create Password File

  • Check User in Password File Again

  • Grant SYSDBA to SCOTT

  • Check User in Password File Again

  • Show Parameter Password

อ่านเพิ่มเติม : https://bit.ly/2XoFWMnarrow-up-right

Last updated