- 论坛徽章:
- 1
|
实验环境:Oracle11gR2 非rac, 单实例。spfileorcl.ora中的thread参数为:0(default)。
归档问题:有点多,请高手指定小弟一下,感激不尽!!!
情景描述:手动进行users表空的hot backup。 并且备份归档日志文件。
具体做法如下:
> alter tablespace users begin backup;
>!cp /u01/oracle/oradata/orcl/users01.dbf /tmp/orcl_bak/users01.dbf
------稍等片刻完成----
>alter system archive log current;
>!cp 找到归档日志文件的位置进行拷贝。
根据Oracle文档中说:《Oracle10gR2文档》
Specify CURRENT to manually archive the current redo log file group of the specified thread,
forcing a log switch. If you omit the THREAD parameter, then Oracle Database archives all redo
log file groups from all enabled threads, including logs previous to current logs. You can specify
CURRENT only when the database is open.
问题:
1. 我的instance中的thread为0,这个值是default。 当我执行alter system archive log current时,是归档
当前日志文件组并进行日志切换呢?还是,归档整个数据库中所有的日志文件组。也就是说,我这个thread为0值,算是
指定了thread了呢,还是当作没有指定thread值对待?
2. 如果问题1中是当作指定了thread值处理(即:归档当前日志文件组,并切换日志), 那么,如果我执行
alter system archive log current语句后,会不会,出现一下情况:
当前日志文件组的上一个日志文件组要归档的日志很多,还没有完成上一个日志文件归档结束,我就马上执行了归档当前
日志文件组的行为,而导致上一个日志文件组没有归档结束。最后备份走的归档日志文件不完整。
3. 当我执行了alter system archive log current语句之后,返回到了 “SQL> ”界面, 我怎么判断当前的日志文件已经归档
结束,如果不知道是否归档结束,就没法确定什么时间可以开始备份归档日志文件了。 |
|