- 论坛徽章:
- 0
|
遇到个奇怪问题
bserver003是legato 7.3服务器端
bserver006是要备份的数据库服务器 版本 10.2.0
操作系统aix 5.3
用legato networker console对oracle数据库备份
老报错
nsr日志中的报错
RMAN> connect target *
2> run {
3> allocate channel t1 type 'SBT_TAPE';
4> allocate channel t2 type 'SBT_TAPE';
5> allocate channel t3 type 'SBT_TAPE';
6> send 'NSR_ENV=(NSR_SERVER=berver003)';
7> crosscheck archivelog all;
8> backup
9> format "arch_%d_t%t_s%s_p%p"
10> (archivelog all delete input);
11> release channel t1;
12> release channel t2;
13> release channel t3;
14> }
15>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-12154: TNS:could not resolve the connect identifier specified
Recovery Manager complete.
SQLNET.ORA 的配置 也没错
NAMES.DIRECTORY_PATH=(TNSNAMES, ONAMES, HOSTNAME)
listener的配置
PROD =
(ADDRESS_LIST =
(ADDRESS= (PROTOCOL= IPC)(KEY= EXTPROCPROD))
(ADDRESS= (PROTOCOL= TCP)(Host= erpdb.bserver.com)(Port= 1521))
--- erpdb.bserver.com这个地址是21.8.143.227 这三个ip都是bserver006的
(ADDRESS= (PROTOCOL= TCP)(Host= 21.8.143.228 )(Port= 1521))
(ADDRESS= (PROTOCOL= TCP)(Host= 21.8.142.241 )(Port= 1521))
)
hosts的配置 21.8.142.241 bserver006
21.8.143.227 erpdb.bserver.com
21.8.143.226 bserver003
.....
tnsnames.ora的配置
PROD=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(erpdb.bserver.com)(PORT=1521))
(CONNECT_DATA=
(SERVICE_NAME=PROD)
(INSTANCE_NAME=PROD)
)
)
似乎都没错的
本地tnsping prod 也是正常的
$ tnsping prod
TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production on 30-DEC-2007 18:58:34
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
/ebs_db_180g/prod/proddb/10.2.0/network/admin/PROD_bserver006/sqlnet_ifile.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=21.8.143.227)(PORT=1521)) (CONNECT_DATA= (SERVICE_NAME=PROD) (INSTANCE_NAME=PROD)))
OK (0 msec)
而且本机运行同一 rman 脚本是正常的
rman脚本
connect target lgto/lgto@prod;
run {
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
allocate channel t3 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=bserver003)';
crosscheck archivelog all;
backup
format "arch_%d_t%t_s%s_p%p"
(archivelog all delete input);
release channel t1;
release channel t2;
release channel t3;
}
请指教 新年快乐 |
|