12
返回列表 发新帖
楼主: manzl

[备份恢复] rman使用字符串连接报用户名密码错误,但真没错!

[复制链接]
论坛徽章:
314
行业板块每日发贴之星
日期:2012-07-12 18:47:29双黄蛋
日期:2011-08-12 17:31:04咸鸭蛋
日期:2011-08-18 15:13:51迷宫蛋
日期:2011-08-18 16:58:25紫蛋头
日期:2011-08-31 10:57:28ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47蜘蛛蛋
日期:2011-10-20 15:51:25迷宫蛋
日期:2011-10-29 11:12:59ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41鲜花蛋
日期:2011-11-09 20:33:30
11#
发表于 2017-5-21 09:34 | 只看该作者
rman target system/xxx@ORCL as sysdba

使用道具 举报

回复
论坛徽章:
20
复活蛋
日期:2013-07-11 14:55:46喜羊羊
日期:2015-05-28 20:12:18水瓶座
日期:2015-08-07 11:20:35弗兰奇
日期:2016-10-08 11:07:27娜美
日期:2017-05-24 17:34:14ITPUB15周年纪念
日期:2017-11-22 09:34:06弗兰奇
日期:2018-01-26 11:29:14乌索普
日期:2018-11-01 14:46:24蒙奇·D·路飞
日期:2018-11-01 15:02:382015年新春福章
日期:2015-04-03 16:54:25
12#
 楼主| 发表于 2017-5-22 11:05 | 只看该作者
ZALBB 发表于 2017-5-21 09:34
rman target system/xxx@ORCL as sysdba

不行啊

使用道具 举报

回复
论坛徽章:
0
13#
发表于 2017-5-22 16:51 | 只看该作者
RMAN 远程连接,需要用户具有SYSDBA权限。我测试是这样的~

使用道具 举报

回复
论坛徽章:
314
行业板块每日发贴之星
日期:2012-07-12 18:47:29双黄蛋
日期:2011-08-12 17:31:04咸鸭蛋
日期:2011-08-18 15:13:51迷宫蛋
日期:2011-08-18 16:58:25紫蛋头
日期:2011-08-31 10:57:28ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47蜘蛛蛋
日期:2011-10-20 15:51:25迷宫蛋
日期:2011-10-29 11:12:59ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41鲜花蛋
日期:2011-11-09 20:33:30
14#
发表于 2017-5-22 21:51 | 只看该作者
select * from v$pwfile_users; 看看有无 system 用户,没有的话,加进去,

$rman target system/2

Recovery Manager: Release 11.2.0.3.0 - Production on Mon May 22 21:49:09 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ORCL (DBID=1325328971)

RMAN> exit


Recovery Manager complete.
[oracle@rac11 ~]
$rman target system/4

Recovery Manager: Release 11.2.0.3.0 - Production on Mon May 22 21:49:14 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ORCL (DBID=1325328971)

RMAN> exit


Recovery Manager complete.
[oracle@rac11 ~]
$rman target system/5

Recovery Manager: Release 11.2.0.3.0 - Production on Mon May 22 21:49:19 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ORCL (DBID=1325328971)

RMAN>


上面几个看似用 SYSTEM,其实是 SYS 身份登陆, 本机认证,不用密码,

使用道具 举报

回复
论坛徽章:
20
复活蛋
日期:2013-07-11 14:55:46喜羊羊
日期:2015-05-28 20:12:18水瓶座
日期:2015-08-07 11:20:35弗兰奇
日期:2016-10-08 11:07:27娜美
日期:2017-05-24 17:34:14ITPUB15周年纪念
日期:2017-11-22 09:34:06弗兰奇
日期:2018-01-26 11:29:14乌索普
日期:2018-11-01 14:46:24蒙奇·D·路飞
日期:2018-11-01 15:02:382015年新春福章
日期:2015-04-03 16:54:25
15#
 楼主| 发表于 2017-5-23 09:52 | 只看该作者
本帖最后由 manzl 于 2017-5-23 09:54 编辑
ZALBB 发表于 2017-5-22 21:51
select * from v$pwfile_users; 看看有无 system 用户,没有的话,加进去,

$rman target system/2

是的,即使密码错了rman也能登录,但是使用远程@依旧报密码错误
[oracle@oracle1 ~]$ rman

Recovery Manager: Release 11.2.0.4.0 - Production on Tue May 23 09:50:57 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

RMAN> connect  target bill/22222222222

connected to target database: cmdb (DBID=1119948960)

RMAN> exit


Recovery Manager complete.
[oracle@oracle1 ~]$ rman

Recovery Manager: Release 11.2.0.4.0 - Production on Tue May 23 09:51:08 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

RMAN> connect  target bill/33333333333333

connected to target database: cmdb (DBID=1119948960)

RMAN> exit


Recovery Manager complete.
[oracle@oracle1 ~]$ rman

Recovery Manager: Release 11.2.0.4.0 - Production on Tue May 23 09:51:20 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

RMAN> connect  target bill/33333333333333@cmdb

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-01017: invalid username/password; logon denied

RMAN> exit


Recovery Manager complete.
[oracle@oracle1 ~]$

使用道具 举报

回复
论坛徽章:
0
16#
发表于 2021-3-30 08:30 | 只看该作者
我也遇到这个问题了!
有几次是重新修改密码为不要特殊字符 就可以了。不知道是什么鬼!

使用道具 举报

回复
论坛徽章:
0
17#
发表于 2021-4-2 14:40 | 只看该作者
本帖最后由 cqiwen 于 2021-4-2 14:52 编辑

通过rman登录远程数据库,要么使用远程数据库的sys用户,要么先将远程数据库注册到catalog,授予recovery_catalog_owner权限,然后其它机器远程连接catalog方式登录。
可以查看论坛中之前的帖子:http://www.itpub.net/forum.php?m ... n%2B%2B%B5%C7%C2%BC

另外还有种方法:

服务器A:grant sysdba to test;
服务器B:rman target 'test/test@ora10g'

使用道具 举报

回复

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

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表