您的位置:首页 > 数据库 > Oracle

ORA-01031:insufficient privileges的解决方法

2015-05-13 15:56 1261 查看
远程登录并启动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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息