用 sys/pass@alias as sysdba 连接本机数据库,出现ORA-01031: insufficient privileg

[复制链接]
查看11 | 回复9 | 2015-4-24 16:04:24 | 显示全部楼层 |阅读模式
首先祝 各位节日快乐。
环境: linux AS4 ,Oracle10.2 , 是data guard的 standby 数据库,是mount 状态。
不加别名是可以连接的
$ sqlplus sys/orademo1 as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Oct 3 01:30:41 2005
Copyright (c) 1982, 2005, Oracle.All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
加了别名就有
$ sqlplus sys/orademo1@demo1 as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Oct 3 01:30:16 2005
Copyright (c) 1982, 2005, Oracle.All rights reserved.
ERROR:
ORA-01031: insufficient privileges

tnsping demo1 , 可以
sqlnet.ora 也修改过。
--补充:
当初安装时用了oinstall , 但现在把所有的文件都改成oracle:dba 了

数据库是用rman duplicate过来的
REMOTE_LOGIN_PASSWORDFILE=' none'也不行。
passwordfile起作用了
回复

使用道具 举报

千问 | 2015-4-24 16:04:24 | 显示全部楼层
如果你确定是 password file 在起作用,可以重新建立一个 password file 呀。用:
orapwd 那个命令。
嗯,我好像记得,如果重新create control file 一次,可以自动再建立新的 password file, 但是原先的 sys password 不能被修改。
回复

使用道具 举报

千问 | 2015-4-24 16:04:24 | 显示全部楼层
那就重新建立pasword file 啊
回复

使用道具 举报

千问 | 2015-4-24 16:04:24 | 显示全部楼层
我也不能确信 password file 一定被用到了。
创建了 N 次了
回复

使用道具 举报

千问 | 2015-4-24 16:04:24 | 显示全部楼层
關注
回复

使用道具 举报

千问 | 2015-4-24 16:04:24 | 显示全部楼层
export ORACLE_SID=......
回复

使用道具 举报

千问 | 2015-4-24 16:04:24 | 显示全部楼层
password file should:


1)name:orapw<name_of_database

2) in $ORACLE_HOME/dbs

3)They should be-rwSr-----

For example:

-rwSr----- 1 server sdb 1536 Mar 25 08:12 orapwv901

//因为我给它另取了个名字,就不行


回复

使用道具 举报

千问 | 2015-4-24 16:04:24 | 显示全部楼层
REMOTE_LOGIN_PASSWORDFILE=' none' 为什么??
而且你的password文件的名字最好看看文档的描述
回复

使用道具 举报

千问 | 2015-4-24 16:04:24 | 显示全部楼层
在init(sid).ora 加上remote_login_passwordfile=exclusive,启用口令认证
回复

使用道具 举报

千问 | 2015-4-24 16:04:24 | 显示全部楼层
oracle_SID=?
export oracle_SID
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行