ORA-01031:insufficient privileges的解决方法

来源:互联网 发布:敦煌694kk真假 知乎 编辑:程序博客网 时间:2024/05/21 17:43
远程登录并启动oracle数据库

ORA-01031: insufficient privileges的解决方法


[oracle@localhost ~]$ sqlplus sys/password@ORCL as sysdba 
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 13 18:43:01 2012 
Copyright (c) 1982, 2009, Oracle.  All rights reserved.  ERROR:
ORA-01031: insufficient privileges 
Enter user-name: sys Enter password:  ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory Process ID: 0

Session ID: 0 Serial number: 0  



解决方法:
1、创建密码文件
unix/linux(shell)下:
orapwd file=$ORACLE_HOME/dbs/orapw password=password_for_sys 
windows(命令行模式)
orapwd file=%ORACLE_HOME%\database\PWDsid_name.ora password=password_for_sys 
2、开启密码方式的用户认证

将以下内容添加到unix/linux中的initservice_name.ora或者windows中的init.ora中去

 REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE  


至此,客户端应该可以连接到远程关闭状态的数据库并启动

sqlplus sys/password_for_sys@tns_name_of_db

0 0
原创粉丝点击