SQL*Plus: Release 11.1.0.7.0 - Production on Thu Nov 26 14:28:11 2009
Copyright (c) 1982, 2008, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied但是以sysdba用戶直接登錄,系統提示如下信息:
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Nov 26 14:28:35 2009
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, Data Mining and Real Application Testing options
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile string NONE由查詢結果可知:“REMOTE_LOGIN_PASSWORDFILE”的值為“NONE”。
% sqlplus / as sysdba
在主機節點通過spfile文件創建pfile文件。SQL> create pfile='/oracle/app/admin/ora11g/pfile/inittest.ora' from spfile;
創建成功,系統提示如下信息:
File created.修改新創建的pfile中的參數。
5. .....
6. *.remote_login_passwordfile='none'
.....
將“remote_login_passwordfile”值修改為“exclusive”。
關閉數據庫。SQL> shutdown immediate
通過新創建的pfile文件啟動數據庫。SQL> startup pfile='/oracle/app/admin/ora11g/pfile/inittest.ora'
通過pfile文件創建spfile文件。SQL> create spfile from pfile;
退出數據庫。SQL> quit
以sqlplus用戶重新登錄數據庫。% sqlplus <username>/<password>@<connect_string> as sysdba
登錄成功,系統顯示如下信息:
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Nov 26 14:28:35 2009
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, Data Mining and Real Application Testing options在備機節點執行與主機節點相同的操作。
Oracle初始化參數“REMOTE_LOGIN_PASSWORDFILE”是設置Oracle數據庫的密碼驗證方式。