标签:
oracle10g数据库ora-38500it |
分类: IT |
author:skate
time :2009/08/03
在dataguard启用实时恢复的时候,报如下错误:
ORA-38500: USING CURRENT LOGFILE option not available without stand
实际操作:
SQL> alter database recover managed standby
database using current logfile disconnect from session;
alter database recover managed standby database using current
logfile disconnect from session
*
第 1 行出现错误:
ORA-38500: USING CURRENT LOGFILE option not available without
stand
这个错误说明,在standby库没有standby logfile,在maxmize pretection,maxmize
availability中必须
要有standby logfile,为了避免数据的损失最少,maxmize performance
也最好创建standbystandbi perform maxmiz logfile,考虑角色切换
primary库也要创建standby logfile,
standby logfile创建的要求, 与primary的redo logfile的大小相同,个数要至少多standbi primari logfil一个
SQL> shutdown immeidate;
SP2-0717: 非法的 SHUTDOWN 选项
SQL> shutdown immediate;
ORA-01109: 数据库未打开
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount;
ORACLE 例程已经启动。
Total System Global Area 612368384 bytes
Fixed
Size
1250428 bytes
Variable
Size
167775108 bytes
Database
Buffers
436207616 bytes
Redo
Buffers
7135232 bytes
数据库装载完毕。
SQL> select member from v$logfile;
MEMBER
--------------------------------------------------------------------------------
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLDG1\REDO03.LOG
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLDG1\REDO02.LOG
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLDG1\REDO01.LOG
SQL> alter database add standby logfile group 4 ‘D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLDG1\stdREDO01.LOG‘ size 50m;
数据库已更改。
SQL> alter database add standby logfile group 5 ‘D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLDG1\stdREDO02.LOG‘ size 50m;
数据库已更改。
SQL> alter database add standby logfile group 6 ‘D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLDG1\stdREDO03.LOG‘ size 50m;
数据库已更改。
SQL> alter database add standby logfile group 7 ‘D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLDG1\stdREDO04.LOG‘ size 50m;
数据库已更改。
现在,再启用实时应用, 就ok了!!!
SQL> alter database recover managed standby database using current logfile disconnect from session;
数据库已更改。
----end----