oracle 10g data guard 控制文件问题

[复制链接]
查看11 | 回复9 | 2014-12-31 06:00:15 | 显示全部楼层 |阅读模式
oracle 10g data guard 控制文件问题

主服务器系统 solaris 9 sparc
备份服务器系统 solaris 10 x86_64
oracle 10g 10.2.0.1
对主服务器rman备份后到备份服务器恢复
在对主服务器
alter database create standby controlfile as /data/standby.ctl;
然后复制standby.ctl 到备份服务器controlfile对应的位置,并且改名成control01.ctl ...
对备份服务器做
create spfile from pfile;
startup nomount;
当执行
alter database mount standby database;
时,数据库报错:
ORA-00205: error in identifying control file, check alert log for more info
查看日志:
alter database mount standby database
Tue Nov 20 10:57:36 2007
ORA-00202: control file: /data/oradata/grad/control01.ctl
ORA-27047: unable to read the header block of file
Additional information: 2
Tue Nov 20 10:57:39 2007
ORA-205 signalled during: alter database mount standby database...

请问这样做有什么问题吗?为啥不能读控制文件?
是不是两个操作系统直接文件格式不同?
回复

使用道具 举报

千问 | 2014-12-31 06:00:15 | 显示全部楼层
it is better to choose the same platform for your standby db.
Re-create the controlfile for a try.
回复

使用道具 举报

千问 | 2014-12-31 06:00:15 | 显示全部楼层
文件宿主、权限看看对不对
回复

使用道具 举报

千问 | 2014-12-31 06:00:15 | 显示全部楼层
原帖由 coco1960 于 2007-11-20 13:50 发表
oracle 10g data guard 控制文件问题

主服务器系统 solaris 9 sparc
备份服务器系统 solaris 10 x86_64
oracle 10g 10.2.0.1
对主服务器rman备份后到备份服务器恢复
在对主服务器
alter...


你是不是spfile中的controlfile没有修改啊
回复

使用道具 举报

千问 | 2014-12-31 06:00:15 | 显示全部楼层
恩,这种可能也有
回复

使用道具 举报

千问 | 2014-12-31 06:00:15 | 显示全部楼层
还有最好象2楼说的那样,主库和备库最好平台都一样。
回复

使用道具 举报

千问 | 2014-12-31 06:00:15 | 显示全部楼层
看看 init 里面定义了几个 控制文件和具体的位置
另外要保证控制文件在OS层的读写权限没问题
回复

使用道具 举报

千问 | 2014-12-31 06:00:15 | 显示全部楼层
SQL> select platform_name,endian_format from V$TRANSPORTABLE_PLATFORM
2where platform_name like 'Solaris%';
PLATFORM_NAME
--------------------------------------------------------------------------------
ENDIAN_FORMAT
--------------
Solaris[tm] OE (32-bit)
Big
Solaris[tm] OE (64-bit)
Big
Solaris Operating System (x86)
Little复制代码
应该是这个原因吧
回复

使用道具 举报

千问 | 2014-12-31 06:00:15 | 显示全部楼层
The hardware and operating system architecture on the primary and standby
locations must be the same. For example, this means a Data Guard
configuration with a primary database on a 32-bit Sun system must have a
standby database that is configured on a 32-bit Sun system. Similarly, a primary
database on a 64-bit HP-UX system must be configured with a standby database
on a 64-bit HP-UX system, and a primary database on a 32-bit Linux on Intel
system must be configured with a standby database on a 32-bit Linux on Intel
system, and so forth.
回复

使用道具 举报

千问 | 2014-12-31 06:00:15 | 显示全部楼层
看看 init 里面定义了几个 控制文件和具体的位置
另外要保证控制文件在OS层的读写权限没问题


__________________
我的Blog: www.dbanotes.net
点击即可用 Google Reader 订阅
支付宝公司招聘高级产品DBA / 开发DBA / 数据仓库工程师
支付宝招聘存储工程师
4nyth1n9 th4t can 90 wr0n9 wi11 9o wr0ng
不想做厨师的裁缝不是好司机
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行