免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2357 | 回复: 6
打印 上一主题 下一主题

RMAN问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-24 11:09 |只看该作者 |倒序浏览
RMAN无法用sys用户连接,提示用户权限不足!!怎么解决?另外数据库用的操作系统认证,好像sqlplus xxx/xxx as sysdba,其中xxx为任意字符串均可连接,改为ORACLE认证后用sys用户无法连接,可以保证用户名密码没错,使用orapwd重建密码文件同样错误,求解决方法。

论坛徽章:
0
2 [报告]
发表于 2007-12-24 12:09 |只看该作者
注释掉sqlnet.ora文件中类似SQLNET.AUTHENTICATION_SERVICES = (NTS)那行试试

论坛徽章:
0
3 [报告]
发表于 2007-12-24 12:15 |只看该作者
试过了,在initxx.ora里面也有remote_login_passwordfile='exclusive'这一行

论坛徽章:
0
4 [报告]
发表于 2007-12-24 12:43 |只看该作者
原帖由 FOR_FREE 于 2007-12-24 12:15 发表
试过了,在initxx.ora里面也有remote_login_passwordfile='exclusive'这一行


这个参数是针对密码文件的

论坛徽章:
0
5 [报告]
发表于 2007-12-24 12:47 |只看该作者
sqlnet注释掉前

C:\Documents and Settings\ThinkPad>sqlplus xxx/xxxx as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 12月 24 12:44:59 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> exit
注释掉后
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\ThinkPad>sqlplus xxx/xxxx as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 12月 24 12:45:09 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

ERROR:
ORA-01031: insufficient privileges


请输入用户名:
ERROR:
ORA-01017: 用户名/口令无效; 登录被拒绝


请输入用户名:
ERROR:
ORA-01017: 用户名/口令无效; 登录被拒绝


SP2-0157: 在 3 次尝试之后无法连接到 ORACLE, 退出 SQL*Plus

C:\Documents and Settings\ThinkPad>sqlplus sys/sys as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 12月 24 12:45:17 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\ThinkPad>rman target sys/sys nocatalog

恢复管理器: Release 10.2.0.1.0 - Production on 星期一 12月 24 12:45:42 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

连接到目标数据库: TEST (DBID=1934973662)
使用目标数据库控制文件替代恢复目录

RMAN> exit


恢复管理器完成。

C:\Documents and Settings\ThinkPad>sqlplus sys/sys as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 12月 24 12:45:49 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> show parameter login

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile            string      EXCLUSIVE

论坛徽章:
0
6 [报告]
发表于 2007-12-24 13:08 |只看该作者
-bash-3.00$ vi sqlnet.ora
"sqlnet.ora" 5 lines, 204 characters
D
# sqlnet.ora Network Configuration File: /data/oracle/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.

#NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
#SQLNET.AUTHENTICATION_SERVICES=NONE


-bash-3.00$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 24 13:07:22 2007

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>

还是可以连接

论坛徽章:
0
7 [报告]
发表于 2007-12-24 13:18 |只看该作者
SQL> select * from V_$PWFILE_USERS;

no rows selected

SQL>
发现PWFILE根本就没用起来,但是在initxx.ora中有这个参数
*.remote_login_passwordfile='EXCLUSIVE'
并且PWFILE用orapwd重新建过
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP