如何复制控制文件在ASM实例存储[转帖]_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3493 | 回复: 0   主题: 如何复制控制文件在ASM实例存储[转帖]        下一篇 
大红薯
注册用户
等级:少校
经验:1440
发帖:159
精华:0
注册:2011-7-21
状态:离线
发送短消息息给大红薯 加好友    发送短消息息给大红薯 发消息
发表于: IP:您无权察看 2011-8-1 11:17:44 | [全部帖] [楼主帖] 楼主

本文介绍如何在ASM实例的环境下,去复制2个控制文件的过程。

如果在文件系统,相对比较简单了。

##Make sure db is in the archived mode
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination +ARCH_01/t/
Oldest online log sequence 24
Next log sequence to archive 25
Current log sequence 25
##Make sure all of online redo is done backup
alter system switch logfile;
...
## If you are using spfile parameter file ,please convert it to pfile first
create pfile='/u01/app/oracle/initt.ora' from spfile='+ARCH_01/t/spfilet.ora';
## Backup controlfile in mount stage
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 1191182336 bytes
Fixed Size 2072288 bytes
Variable Size 318767392 bytes
Database Buffers 855638016 bytes
Redo Buffers 14704640 bytes
Database mounted.
alter database backup controlfile to '/u01/app/oracle/test_ctl.ctl';
##Edit the parameter: controlfile in the pfile
SQL> show parameter control
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time integer 7
control_files string +DATA_01/t/controlfile/current
.285.640542545, +DATA_01/t/con
trolfile/current.286.640542545
## Duplicate controlfile from file system to ASM instance
SQL> startup nomount pfile=/u01/app/oracle/initt1.ora
ORACLE instance started.
Total System Global Area 1191182336 bytes
Fixed Size 2072288 bytes
Variable Size 318767392 bytes
Database Buffers 855638016 bytes
Redo Buffers 14704640 bytes
$ ./rman target /
Recovery Manager: Release 10.2.0.3.0 - Production on Fri Dec 7 11:54:15 2007
Copyright (c) 1982,




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论