查看: 7749|回复: 10

关于log_archive_dest_n的一点疑惑

[复制链接]
论坛徽章:
4
ITPUB 11周年纪念徽章
日期:2012-10-09 18:16:00三菱
日期:2013-08-08 23:40:03海蓝宝石
日期:2014-08-06 14:09:32马上有车
日期:2014-08-14 15:36:06
跳转到指定楼层
1#
发表于 2013-1-11 23:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 Roy杰 于 2013-1-12 15:47 编辑

问题源于:QUESTION 111 You have configured flash recovery area in your database and you set the following Initialization
parameters for your database instance:

LOG_ARCHIVE_DEST 1 = ,,LOCATION=/disk1/arch MANDATORY'
LOG _ARCHIEVE_DEST 2 = ,,LOCATION=/disk2/arch'
LOG_ARCHIVK_DEST_3 = ,,LOCATION=/diSk3/arch
LOG_ARCH1VK_DEST_4 = ' LOCATION=/disk4/arch'
LOG_ARCHIVE_MIN-SUCCEED_DEST = 2

While the database instance is functional, you realized that the destination set by the
LOG_ARCHIVE_DEST_I parameter Is not available for the archived redo log file to be created in.
All redo log groups have been used. What happens in an event of log switch?

A.  The online redo log file Is not allowed to be overwritten.
B.  The archived redo log files are written to the flash recovery area until the MANDATORY destination is  
made available.
C.  The database instance will crash because the archived redo log file cannot be created in a destination  
set as MANDATORY.
D.  The destination set by the LOG_ARCHIVE_DEST_1 parameter is ignored and the archived redo log files  
are created in the next two available locations to guarantee archive log success.

Answer: D


我的理解:
如归档路径参数设置为:
log_archive_dest_1="LOCATION=/archive MANDATORY "  
log_archive_dest_2="SERVICE=standby_db1 OPTIONAL"  
log_archive_dest_3="LOCATION=/archive2 OPTIONAL"  
则log_archive_dest_1必须归档成功(MANDATORY),log_archive_dest_2、  log_archive_dest_3中必须有一个归档成功(log_archive_min_succeed_dest=2)后才能覆写联机日志文件。 同样,如果log_archive_dest_n中的MANDATORY关键字个数大于log_archive_min_succeed_dest,则  log_archive_min_succeed_dest的设置不起作用。



于是我做了一个实验如下:
oracle version
SQL> r
  1* select * from v$version

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production


alter system set log_archive_dest_1='location=/home/oracle/test/1 ' mandatory scope=both;
alter system set log_archive_dest_2='location=/home/oracle/test/2 ' scope=both;
alter system set log_archive_dest_3='location=/home/oracle/test/3 ' scope=both;
alter system set log_archive_dest_4='location=/home/oracle/test/4 ' scope=both;
alter system set LOG_ARCHIVE_MIN_SUCCEED_DEST =2  scope=both;


SQL> show parameter archive

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target                   integer     0
log_archive_config                   string
log_archive_dest                     string
log_archive_dest_1                   string      location=/home/oracle/test/1 mandatory
log_archive_dest_10                  string
log_archive_dest_11                  string
log_archive_dest_12                  string
log_archive_dest_13                  string
log_archive_dest_14                  string
log_archive_dest_15                  string
log_archive_dest_16                  string

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_17                  string
log_archive_dest_18                  string
log_archive_dest_19                  string
log_archive_dest_2                   string      location=/home/oracle/test/2
log_archive_dest_20                  string
log_archive_dest_21                  string
log_archive_dest_22                  string
log_archive_dest_23                  string
log_archive_dest_24                  string
log_archive_dest_25                  string
log_archive_dest_26                  string

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_27                  string
log_archive_dest_28                  string
log_archive_dest_29                  string
log_archive_dest_3                   string      location=/home/oracle/test/3
log_archive_dest_30                  string
log_archive_dest_31                  string
log_archive_dest_4                   string      location=/home/oracle/test/4
log_archive_dest_5                   string


SQL> show parameter LOG_ARCHIVE_MIN_SUCCEED_DEST

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_min_succeed_dest         integer     2


执行几次alter system switch logfile
然后将/home/oracle/test/1 改为 /home/oracle/test/5

执行了几十次
alter system switch logfile;
后发现如下:

[oracle@oracle11g test]$ tree
.
|-- 11_103_789708408.dbf
|-- 11_104_789708408.dbf
|-- 11_105_789708408.dbf
|-- 11_106_789708408.dbf
|-- 11_107_789708408.dbf
|-- 11_108_789708408.dbf
|-- 11_109_789708408.dbf
|-- 11_110_789708408.dbf
|-- 11_111_789708408.dbf
|-- 11_112_789708408.dbf
|-- 11_113_789708408.dbf
|-- 11_114_789708408.dbf
|-- 11_115_789708408.dbf
|-- 11_116_789708408.dbf
|-- 11_117_789708408.dbf
|-- 11_118_789708408.dbf
|-- 2
|   |-- 1_100_789708408.dbf
|   |-- 1_101_789708408.dbf
|   |-- 1_102_789708408.dbf
|   |-- 1_103_789708408.dbf
|   |-- 1_104_789708408.dbf
|   |-- 1_105_789708408.dbf
|   |-- 1_106_789708408.dbf
|   |-- 1_107_789708408.dbf
|   |-- 1_108_789708408.dbf
|   |-- 1_109_789708408.dbf
|   |-- 1_110_789708408.dbf
|   |-- 1_111_789708408.dbf
|   |-- 1_112_789708408.dbf
|   |-- 1_113_789708408.dbf
|   |-- 1_114_789708408.dbf
|   |-- 1_115_789708408.dbf
|   |-- 1_116_789708408.dbf
|   |-- 1_117_789708408.dbf
|   |-- 1_118_789708408.dbf
|   |-- 1_97_789708408.dbf
|   |-- 1_98_789708408.dbf
|   `-- 1_99_789708408.dbf
|-- 3
|   |-- 1_100_789708408.dbf
|   |-- 1_101_789708408.dbf
|   |-- 1_102_789708408.dbf
|   |-- 1_103_789708408.dbf
|   |-- 1_104_789708408.dbf
|   |-- 1_105_789708408.dbf
|   |-- 1_106_789708408.dbf
|   |-- 1_107_789708408.dbf
|   |-- 1_108_789708408.dbf
|   |-- 1_109_789708408.dbf
|   |-- 1_110_789708408.dbf
|   |-- 1_111_789708408.dbf
|   |-- 1_112_789708408.dbf
|   |-- 1_113_789708408.dbf
|   |-- 1_114_789708408.dbf
|   |-- 1_115_789708408.dbf
|   |-- 1_116_789708408.dbf
|   |-- 1_117_789708408.dbf
|   |-- 1_118_789708408.dbf
|   |-- 1_97_789708408.dbf
|   |-- 1_98_789708408.dbf
|   `-- 1_99_789708408.dbf
|-- 4
|   |-- 1_100_789708408.dbf
|   |-- 1_101_789708408.dbf
|   |-- 1_102_789708408.dbf
|   |-- 1_103_789708408.dbf
|   |-- 1_104_789708408.dbf
|   |-- 1_105_789708408.dbf
|   |-- 1_106_789708408.dbf
|   |-- 1_107_789708408.dbf
|   |-- 1_108_789708408.dbf
|   |-- 1_109_789708408.dbf
|   |-- 1_110_789708408.dbf
|   |-- 1_111_789708408.dbf
|   |-- 1_112_789708408.dbf
|   |-- 1_113_789708408.dbf
|   |-- 1_114_789708408.dbf
|   |-- 1_115_789708408.dbf
|   |-- 1_116_789708408.dbf
|   |-- 1_117_789708408.dbf
|   |-- 1_118_789708408.dbf
|   |-- 1_97_789708408.dbf
|   |-- 1_98_789708408.dbf
|   `-- 1_99_789708408.dbf
`-- 5
    |-- 1_100_789708408.dbf
    |-- 1_101_789708408.dbf
    |-- 1_102_789708408.dbf
    |-- 1_97_789708408.dbf
    |-- 1_98_789708408.dbf
    `-- 1_99_789708408.dbf

4 directories, 88 files



[oracle@oracle11g test]$ ll
total 1184
-rw-r----- 1 oracle oinstall 699392 Jan 11 10:20 11_103_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_104_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_105_789708408.dbf
-rw-r----- 1 oracle oinstall   6144 Jan 11 10:20 11_106_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_107_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_108_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_109_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_110_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_111_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_112_789708408.dbf
-rw-r----- 1 oracle oinstall 425472 Jan 11 10:23 11_113_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:23 11_114_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:23 11_115_789708408.dbf
-rw-r----- 1 oracle oinstall   2048 Jan 11 10:23 11_116_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:23 11_117_789708408.dbf
-rw-r----- 1 oracle oinstall   1536 Jan 11 10:25 11_118_789708408.dbf
drwxr-xr-x 2 oracle oinstall   4096 Jan 11 10:25 2
drwxr-xr-x 2 oracle oinstall   4096 Jan 11 10:25 3
drwxr-xr-x 2 oracle oinstall   4096 Jan 11 10:25 4
drwxr-xr-x 2 oracle oinstall   4096 Jan 11 10:17 5
[oracle@oracle11g test]$



我比较疑惑,为什么log switch 没有hang住,反而把归档日志写到了/../test/的外面?
还是我的实验有问题,请大家拍装!

论坛徽章:
3
Jeep
日期:2013-11-27 13:33:41ITPUB社区OCM联盟徽章
日期:2014-01-22 09:51:49暖羊羊
日期:2015-05-27 10:46:57
2#
发表于 2013-1-12 09:42 | 只看该作者
你是在更换dest1的时候先把文件夹更名,然后再改dest1的?

[oracle@oel1 test]$ mv 1 5

alter system set log_archive_dest_1='location=/home/oracle/test/5 mandatory' scope=both;


[oracle@oel1 test]$ tree
.
|-- 2
|   |-- 1_47_798117079.dbf
|   |-- 1_48_798117079.dbf
|   |-- 1_49_798117079.dbf
|   |-- 1_50_798117079.dbf
|   |-- 1_51_798117079.dbf
|   |-- 1_52_798117079.dbf
|   `-- 1_53_798117079.dbf
|-- 3
|   |-- 1_47_798117079.dbf
|   |-- 1_48_798117079.dbf
|   |-- 1_49_798117079.dbf
|   |-- 1_50_798117079.dbf
|   |-- 1_51_798117079.dbf
|   |-- 1_52_798117079.dbf
|   `-- 1_53_798117079.dbf
|-- 4
|   |-- 1_47_798117079.dbf
|   |-- 1_48_798117079.dbf
|   |-- 1_49_798117079.dbf
|   |-- 1_50_798117079.dbf
|   |-- 1_51_798117079.dbf
|   |-- 1_52_798117079.dbf
|   `-- 1_53_798117079.dbf
`-- 5
    |-- 1_47_798117079.dbf
    |-- 1_48_798117079.dbf
    |-- 1_49_798117079.dbf
    |-- 1_50_798117079.dbf
    |-- 1_51_798117079.dbf
    |-- 1_52_798117079.dbf
    `-- 1_53_798117079.dbf

4 directories, 28 files

我再10g版本上没有问题

使用道具 举报

回复
论坛徽章:
3
Jeep
日期:2013-11-27 13:33:41ITPUB社区OCM联盟徽章
日期:2014-01-22 09:51:49暖羊羊
日期:2015-05-27 10:46:57
3#
发表于 2013-1-12 09:46 | 只看该作者
本帖最后由 jeanron100 于 2013-1-12 09:47 编辑

如果在以上的基础上,没有目录1,我做如下操作 alter system set log_archive_dest_1='location=/home/oracle/test/1 mandatory' scope=both;
[oracle@oel1 test]$ tree
.
|-- 11_54_798117079.dbf
|-- 2
|   |-- 1_47_798117079.dbf
|   |-- 1_48_798117079.dbf
|   |-- 1_49_798117079.dbf
|   |-- 1_50_798117079.dbf
|   |-- 1_51_798117079.dbf
|   |-- 1_52_798117079.dbf
|   |-- 1_53_798117079.dbf
|   `-- 1_54_798117079.dbf
|-- 3
|   |-- 1_47_798117079.dbf
|   |-- 1_48_798117079.dbf
|   |-- 1_49_798117079.dbf
|   |-- 1_50_798117079.dbf
|   |-- 1_51_798117079.dbf
|   |-- 1_52_798117079.dbf
|   |-- 1_53_798117079.dbf
|   `-- 1_54_798117079.dbf
|-- 4
|   |-- 1_47_798117079.dbf
|   |-- 1_48_798117079.dbf
|   |-- 1_49_798117079.dbf
|   |-- 1_50_798117079.dbf
|   |-- 1_51_798117079.dbf
|   |-- 1_52_798117079.dbf
|   |-- 1_53_798117079.dbf
|   `-- 1_54_798117079.dbf
`-- 5
    |-- 1_47_798117079.dbf
    |-- 1_48_798117079.dbf
    |-- 1_49_798117079.dbf
    |-- 1_50_798117079.dbf
    |-- 1_51_798117079.dbf
    |-- 1_52_798117079.dbf
    `-- 1_53_798117079.dbf

[oracle@oel1 test]$ ll
total 40
-rw-r----- 1 oracle dba 23040 Jan 12 09:43 11_54_798117079.dbf
drwxr-xr-x 2 oracle dba  4096 Jan 12 09:43 2
drwxr-xr-x 2 oracle dba  4096 Jan 12 09:43 3
drwxr-xr-x 2 oracle dba  4096 Jan 12 09:43 4
drwxr-xr-x 2 oracle dba  4096 Jan 12 09:39 5

使用道具 举报

回复
论坛徽章:
3
Jeep
日期:2013-11-27 13:33:41ITPUB社区OCM联盟徽章
日期:2014-01-22 09:51:49暖羊羊
日期:2015-05-27 10:46:57
4#
发表于 2013-1-12 09:52 | 只看该作者
本帖最后由 jeanron100 于 2013-1-12 10:03 编辑

然后做如下操作
SQL> alter system set log_archive_dest_2='';

System altered.

SQL> alter system set log_archive_dest_3='';

System altered.

SQL> alter system switch logfile;

System altered.
这样 LOG_ARCHIVE_MIN_SUCCEED_DEST =2的情况下,只有目录4是可用的了。
[oracle@oel1 test]$ tree
.
|-- 11_54_798117079.dbf
|-- 11_55_798117079.dbf
|-- 2
|   |-- 1_47_798117079.dbf
|   |-- 1_48_798117079.dbf
|   |-- 1_49_798117079.dbf
|   |-- 1_50_798117079.dbf
|   |-- 1_51_798117079.dbf
|   |-- 1_52_798117079.dbf
|   |-- 1_53_798117079.dbf
|   `-- 1_54_798117079.dbf
|-- 3
|   |-- 1_47_798117079.dbf
|   |-- 1_48_798117079.dbf
|   |-- 1_49_798117079.dbf
|   |-- 1_50_798117079.dbf
|   |-- 1_51_798117079.dbf
|   |-- 1_52_798117079.dbf
|   |-- 1_53_798117079.dbf
|   `-- 1_54_798117079.dbf
|-- 4
|   |-- 1_47_798117079.dbf
|   |-- 1_48_798117079.dbf
|   |-- 1_49_798117079.dbf
|   |-- 1_50_798117079.dbf
|   |-- 1_51_798117079.dbf
|   |-- 1_52_798117079.dbf
|   |-- 1_53_798117079.dbf
|   |-- 1_54_798117079.dbf
|   `-- 1_55_798117079.dbf
`-- 5
    |-- 1_47_798117079.dbf
    |-- 1_48_798117079.dbf
    |-- 1_49_798117079.dbf
    |-- 1_50_798117079.dbf
    |-- 1_51_798117079.dbf
    |-- 1_52_798117079.dbf
    `-- 1_53_798117079.dbf

4 directories, 34 files
在test下和目录4下都生成了文件,其实你仔细观察一下就能发现
[oracle@oel1 test]$ ll
total 2252
-rw-r----- 1 oracle dba   23040 Jan 12 09:43 11_54_798117079.dbf
-rw-r----- 1 oracle dba 2259968 Jan 12 09:48 11_55_798117079.dbf
drwxr-xr-x 2 oracle dba    4096 Jan 12 09:43 2
drwxr-xr-x 2 oracle dba    4096 Jan 12 09:43 3
drwxr-xr-x 2 oracle dba    4096 Jan 12 09:48 4
drwxr-xr-x 2 oracle dba    4096 Jan 12 09:39 5
生成的归档文件相当大,这应该是你所说的switch hang住的原因,产生了大量的Io.
我用logmnr分析,发现里面产生了7000多条undo sql,
[oracle@oel1 test]$ ll
total 4388
-rw-r----- 1 oracle dba   23040 Jan 12 09:43 11_54_798117079.dbf
-rw-r----- 1 oracle dba 2259968 Jan 12 09:48 11_55_798117079.dbf
drwxr-xr-x 2 oracle dba    4096 Jan 12 09:43 2
drwxr-xr-x 2 oracle dba    4096 Jan 12 09:43 3
drwxr-xr-x 2 oracle dba    4096 Jan 12 09:48 4
drwxr-xr-x 2 oracle dba    4096 Jan 12 09:39 5
-rw-r--r-- 1 oracle dba 2180276 Jan 12 10:00 test.log

语句类似:
insert into "UNKNOWN"."OBJ# 9199"("COL 1","COL 2","COL 3","COL 4","COL 5","COL 6
","COL 7","COL 8","COL 9","COL 10","COL 11","COL 12") values (HEXTORAW('c111'),H
EXTORAW('c5030a603710'),HEXTORAW('c102'),HEXTORAW('78700c0c183817'),HEXTORAW('78
710103130202171126c0'),HEXTORAW('787101031401361a67a4c0'),HEXTORAW('800000003c3c
3da3c34600'),HEXTORAW('c102'),HEXTORAW('c103'),HEXTORAW('80'),HEXTORAW('80'),HEX
TORAW('80'));

insert into "UNKNOWN"."OBJ# 9199"("COL 1","COL 2","COL 3","COL 4","COL 5","COL 6
","COL 7","COL 8","COL 9","COL 10","COL 11","COL 12") values (HEXTORAW('c112'),H
EXTORAW('c5030a603710'),HEXTORAW('c102'),HEXTORAW('78700c0c183817'),HEXTORAW('78
7101031401361a67a4c0'),HEXTORAW('787101031501281ad27480'),HEXTORAW('800000003c3c
3da3c34600'),HEXTORAW('c102'),HEXTORAW('c103'),HEXTORAW('80'),HEXTORAW('80'),HEX
TORAW('80'));


使用道具 举报

回复
论坛徽章:
4
ITPUB 11周年纪念徽章
日期:2012-10-09 18:16:00三菱
日期:2013-08-08 23:40:03海蓝宝石
日期:2014-08-06 14:09:32马上有车
日期:2014-08-14 15:36:06
5#
 楼主| 发表于 2013-1-12 15:57 | 只看该作者
jeanron100 发表于 2013-1-12 09:42
你是在更换dest1的时候先把文件夹更名,然后再改dest1的?

[oracle@oel1 test]$ mv 1 5

不好意思,我在写帖子时打了个字,“我比较疑惑,为什么log switch 没有hang住,反而把归档日志写到了/../test/的外面?” ,其实我是对 mandatory 和 log_archive_min_succeed_dest 这两个参数有点疑惑,我的理解:
如归档路径参数设置为:
log_archive_dest_1="LOCATION=/archive MANDATORY "  
log_archive_dest_2="SERVICE=standby_db1 OPTIONAL"  
log_archive_dest_3="LOCATION=/archive2 OPTIONAL"  
则log_archive_dest_1必须归档成功(MANDATORY),(如果没有写成功,就不能切换log,也就是说 alter system switch logfile  命令会hang住)log_archive_dest_2、  log_archive_dest_3中必须有一个归档成功(log_archive_min_succeed_dest=2)后才能覆写联机日志文件,如果但是我的实验的结果却没有,可以很流畅的切换,看了下/home/oracle/test/ 后发现,本应写到log_archive_dest_1的归档写到了外面:oracle@oracle11g test]$ ll
total 1184
-rw-r----- 1 oracle oinstall 699392 Jan 11 10:20 11_103_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_104_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_105_789708408.dbf
-rw-r----- 1 oracle oinstall   6144 Jan 11 10:20 11_106_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_107_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_108_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_109_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_110_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_111_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:20 11_112_789708408.dbf
-rw-r----- 1 oracle oinstall 425472 Jan 11 10:23 11_113_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:23 11_114_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:23 11_115_789708408.dbf
-rw-r----- 1 oracle oinstall   2048 Jan 11 10:23 11_116_789708408.dbf
-rw-r----- 1 oracle oinstall   1024 Jan 11 10:23 11_117_789708408.dbf
-rw-r----- 1 oracle oinstall   1536 Jan 11 10:25 11_118_789708408.dbf
drwxr-xr-x 2 oracle oinstall   4096 Jan 11 10:25 2
drwxr-xr-x 2 oracle oinstall   4096 Jan 11 10:25 3
drwxr-xr-x 2 oracle oinstall   4096 Jan 11 10:25 4
drwxr-xr-x 2 oracle oinstall   4096 Jan 11 10:17 5

使用道具 举报

回复
求职 : 数据库管理员
论坛徽章:
9
ITPUB社区千里马徽章
日期:2013-06-09 10:15:34奥迪
日期:2013-10-12 15:10:47优秀写手
日期:2014-03-19 06:00:25马上有车
日期:2014-03-20 16:13:24马上有房
日期:2014-03-20 16:14:11马上有钱
日期:2014-03-20 16:14:11马上有对象
日期:2014-03-20 16:14:11马上加薪
日期:2014-03-20 16:14:11问答徽章
日期:2014-03-26 10:07:34
6#
发表于 2013-12-9 11:23 | 只看该作者
楼主搞清楚了吗,我也在纠结这道题目,楼主可以讲解一下吧。

使用道具 举报

回复
论坛徽章:
4
ITPUB 11周年纪念徽章
日期:2012-10-09 18:16:00三菱
日期:2013-08-08 23:40:03海蓝宝石
日期:2014-08-06 14:09:32马上有车
日期:2014-08-14 15:36:06
7#
 楼主| 发表于 2013-12-9 14:23 | 只看该作者
goodboybing 发表于 2013-12-9 11:23
楼主搞清楚了吗,我也在纠结这道题目,楼主可以讲解一下吧。

已经搞清楚了

使用道具 举报

回复
求职 : 数据库管理员
论坛徽章:
9
ITPUB社区千里马徽章
日期:2013-06-09 10:15:34奥迪
日期:2013-10-12 15:10:47优秀写手
日期:2014-03-19 06:00:25马上有车
日期:2014-03-20 16:13:24马上有房
日期:2014-03-20 16:14:11马上有钱
日期:2014-03-20 16:14:11马上有对象
日期:2014-03-20 16:14:11马上加薪
日期:2014-03-20 16:14:11问答徽章
日期:2014-03-26 10:07:34
8#
发表于 2013-12-11 11:44 | 只看该作者
Roy杰 发表于 2013-12-9 14:23
已经搞清楚了

dest_1 都mandatory了,如果dest_1失败为什么还会继续?求教

使用道具 举报

回复
论坛徽章:
0
9#
发表于 2014-3-2 13:17 | 只看该作者
Roy杰 发表于 2013-12-9 14:23
已经搞清楚了

同问 为何mandatory参数被忽略了

使用道具 举报

回复
论坛徽章:
40
2014年新春福章
日期:2014-02-18 16:43:09喜羊羊
日期:2015-05-18 16:24:25慢羊羊
日期:2015-06-12 13:08:22暖羊羊
日期:2015-07-02 16:06:20暖羊羊
日期:2015-07-06 16:28:55狮子座
日期:2015-07-29 17:14:43摩羯座
日期:2015-09-02 13:58:47白羊座
日期:2015-09-08 10:39:06天枰座
日期:2015-09-17 21:41:53摩羯座
日期:2015-10-29 21:07:02
10#
发表于 2014-3-2 15:13 | 只看该作者
Roy杰 发表于 2013-12-9 14:23
已经搞清楚了

是否是楼主没有创建“/home/oracle/test/1”这个目录?归档操作发生时,因为找不到这个目录,就认为要保存在“/home/oracle/test/”这个目录下,但所有的归档文件前面加上“1”。所以,在“/home/oracle/test/1”这个目录下出现了大量形如“11_xxx_xxxxxxx.dbf"这样的文件。

因此,log_archive_dest_1这个路径上的强制归档已经成功了,并没有失败。

使用道具 举报

回复

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

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表