ORA-01031:insufficient privileges的解决方法

远程登录并启动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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值