远程登录并启动oracle数据库
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
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、开启密码方式的用户认证
ORA-01031: insufficient privileges的解决方法
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