配置 catalog 成功恢复crontrol file
来源:互联网 发布:qtsocket网络编程实例 编辑:程序博客网 时间:2024/06/06 01:23
再说catalog 的配置:
1: catalog 数据库上:
export ORACLE_SID=ezhoudg
1>在catalog数据库上创建一个表空间供catalog使用
create tablespace rman_ts datafile '/u02/ezhou/rman01.dbf' size 50m extent management local uniform size 126k;
2>在catalog数据库上创建用户并赋予权限
create user rman_user identified by rman_user default tablespace rman_ts quota unlimited on rman_ts;
grant recovery_catalog_owner to rman_user;
grant connect,resource to rman_user;
2: 在主数据库上ezhou:
vi tnsname.ora (这个文件是在ezhou 和ezhoudg)
[oracle@aoracle admin]$ vi tnsnames.ora
PRD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.190.140)(PORT = 1521))
)
(CONNECT_DATA =
(SID = EZHOU)
)
)
catalog =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.190.140)(PORT = 1521))
)
(CONNECT_DATA =
(SID = EZHOUDG)
)
)
启动监听lsnrctl start
在数据库上tnsping catalog
[oracle@aoracle ~]$ tnsping catalog
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 09-DEC-2011 19:41:31
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.190.140)(PORT = 1521))) (CONNECT_DATA = (SID = EZHOUDG)))
OK (10 msec)
3: 在主数据库上:
export ORACLE_SID=ezhou
注册主数据库 到catalog
[oracle@aoracle ~]$ rman target / catalog rman_user/rman_user@catalog
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Dec 9 19:45:32 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (started)
connected to recovery catalog database
RMAN> create catalog tablespace rman_ts;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
=====================
下面进行测试一下:
[oracle@aoracle ~]$ rman target / catalog rman_user/rman_user@catalog
RMAN> run {
2> restore controlfile;
3> }
Starting restore at 09-DEC-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=155 devtype=DISK
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: reading from backup piece /u02/rman/ctl_c-4046377924-20111209-00
channel ORA_DISK_1: restored backup piece 1
piece handle=/u02/rman/ctl_c-4046377924-20111209-00 tag=TAG20111209T115410
channel ORA_DISK_1: restore complete, elapsed time: 00:00:04
output filename=/u02/ezhou/control01.ctl
output filename=/u02/ezhou/control02.ctl
output filename=/u02/ezhou/control03.ctl
Finished restore at 09-DEC-11
- 配置 catalog 成功恢复crontrol file
- 自己catalog 配置 成功 + 别人的参考
- RMAN catalog恢复目录
- nbu备份恢复catalog
- rman catalog (rman 恢复目录)
- WHQL catalog file- by microsoft
- oracle10g的catalog配置
- eclipse 配置xml catalog
- RMAN CATALOG配置,不全
- oracle10g的catalog配置
- 配置mybatis Catalog xml
- catalog库配置
- catalog损坏情况下的恢复实例
- 使用NBU命令恢复CATALOG冷备份
- 基于catalog 的RMAN 备份与恢复
- -- 基于catalog 的RMAN 备份与恢复
- 恢复目录数据库(Recover Catalog)
- 使用恢复目录(catalog)数据库!
- Android 如何将定制的Launcher成为系统中唯一的Launcher
- hdu 1230 hdoj 1230
- java读取某目录下所有文件名
- 池"概念的自我理解
- hdu 1231 hdoj 1231
- 配置 catalog 成功恢复crontrol file
- 第12周 报告1 --- 2-1000内的完数
- Android Service生命周期及用法!
- Win32汇编教程3 - 创建简单的窗口
- hdu 1232 hdoj 1232
- 启动远程桌面
- hdu 1234 hdoj 1234
- PostgreSQL启动过程中的那些事三:加载GUC参数
- linux系统的挂载方式,修改menu.lst 是应注意