RMAN 无法CONNECT数据库

[复制链接]
查看11 | 回复9 | 2007-2-10 01:03:12 | 显示全部楼层 |阅读模式
如题,刚开始学习rman,怎么老师连接不上目标数据库啊
RMAN> connect target SYS/oracle@RAC2;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-01017: invalid username/password; logon denied
说说我的环境: linux 3。0+ rac (两节点)oracle: 9204
提示无效的用户名和密码,可是我的都是正确的啊
另: 我需要连接其中的一个实例,想针对其中一个实例作全库备份
回复

使用道具 举报

千问 | 2007-2-10 01:03:12 | 显示全部楼层
tnsping RAC2正常吗?
回复

使用道具 举报

千问 | 2007-2-10 01:03:12 | 显示全部楼层
最初由 haha209 发布
[B]tnsping RAC2正常吗? [/B]

RAC2 是我的实例2,, TNSPING 正常
回复

使用道具 举报

千问 | 2007-2-10 01:03:12 | 显示全部楼层
直接登录到本机 进行 rman target /
回复

使用道具 举报

千问 | 2007-2-10 01:03:12 | 显示全部楼层
最初由 sydjd 发布
[B]
RAC2 是我的实例2,, TNSPING 正常 [/B]

用户名能正常登录吗?密码文件修改过吗?
回复

使用道具 举报

千问 | 2007-2-10 01:03:12 | 显示全部楼层
最初由 ddba 发布
[B]
用户名能正常登录吗?密码文件修改过吗? [/B]

没有,可以正常登陆
还有就是如果我 rman > vtarget/ 那么就提示
connected to target database PROD (RAC=)
我怎么知道连接的是那个实例? 好像直接连接到rac上了
回复

使用道具 举报

千问 | 2007-2-10 01:03:12 | 显示全部楼层
我在联机文档看到:
Connecting to a Target Database in an Oracle Real Application Cluster
RMAN can only connect to one instance in an Oracle Real Application Clusters database at a time. Assume that trgt1, trgt2, and trgt3 are net service names for three instances in an Oracle Real Application Clusters configuration. In this case, you can connect to the target database using only one of these net service names. For example, you can connect as follows:
% rman TARGET SYS/oracle@trgt2 CATALOG rman/cat@catdb

Each net service name must specify one and only one instance. You cannot specify a net service name that uses Oracle Net features to distribute connections to more than one instance.
Note that the fact that RMAN connects to only one instance for its initial target connection does not preclude running a backup using all three instances. For example, you can configure automatic channels to connect to each cluster instance as follows:
CONFIGURE DEFAULT DEVICE TYPE TO sbt;
CONFIGURE DEVICE TYPE sbt PARALLELISM 3;
CONFIGURE CHANNEL 1 DEVICE TYPE sbt CONNECT = 'SYS/oracle@trgt1';
CONFIGURE CHANNEL 2 DEVICE TYPE sbt CONNECT = 'SYS/oracle@trgt2';
CONFIGURE CHANNEL 3 DEVICE TYPE sbt CONNECT = 'SYS/oracle@trgt3';

% rman TARGET SYS/oracle@trgt2 CATALOG rman/cat@catdb [/COLOR]
这个不就是吗? 而且上面怎么没有connect?
回复

使用道具 举报

千问 | 2007-2-10 01:03:12 | 显示全部楼层
还有就是,我不想使用catalog模式,这样可以吗,,推荐哪种?
回复

使用道具 举报

千问 | 2007-2-10 01:03:12 | 显示全部楼层
继续顶啊,别沉了,大家是不是都去吃饭啦
在使用rman前,是不是要设定环境变量?
回复

使用道具 举报

千问 | 2007-2-10 01:03:12 | 显示全部楼层
RMAN> connect target SYS/oracle@RAC2;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-01017: invalid username/password; logon denied
就这里来看,是用户名和密码错了.
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行