首页 > Linux操作系统 > Linux操作系统 > Password file 认证
$ sqlplus /@jay as sysdba
ERROR:
ORA-01031: insufficient privileges
2) 修改参数remote_login_passwordfile
SQL> alter system set remote_login_passwordfile=exclusive scope=spfile;
System altered.
3) 创建password file(默认位置为:$ORACLE_HOME/dbs)
$ orapwd file=orapwmydb password=manager entries=20
4) 以sys用户远程连接到数据库
$ sqlplus sys/manager@jay as sysdba
SQL> show user
USER is "SYS"
5) 把sysdba权限赋予用户jay
SQL> grant sysdba to jay;
Grant succeeded.
6) 以jay用户远程连接到数据库
$ sqlplus jay/jay@jay as sysdba
SQL> show user
USER is "SYS"
参考资料: Normal 0 7.8 pt 0 2 false false false EN-US ZH-CN X-NONE”Apress.Expert.Oracle.Database.Architecture.9i.and.10g”第三章Password file部分,Chapter 1 of “Administrator’s Guide”来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24068527/viewspace-666504/ ,如需转载,请注明出处,否则将追究法律责任。