oracle log_archive_dest_1 未指定导致flash_recovery_area引发数据库挂起

简介:

 

 
  1. 故障现象: 
  2. 一、错误日志 
  3. Thu Nov 10 17:08:43 2011 
  4. ORACLE Instance zjport - Archival Error 
  5. Thu Nov 10 17:08:43 2011 
  6. ORA-16038: log 1 sequence# 101 cannot be archived 
  7. ORA-19809: limit exceeded for recovery files 
  8. ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log' 
  9. Thu Nov 10 17:08:43 2011 
  10. Errors in file /home/oracle/admin/online/bdump/online_arc1_30097.trc: 
  11. ORA-16038: log 1 sequence# 101 cannot be archived 
  12. ORA-19809: limit exceeded for recovery files 
  13. ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log' 
  14. Thu Nov 10 17:09:43 2011 
  15. ARCH: Archival stopped, error occurred. Will continue retrying 
  16. Thu Nov 10 17:09:43 2011 
  17. ORACLE Instance online - Archival Error 
  18. Thu Nov 10 17:09:43 2011 
  19. ORA-16014: log 1 sequence# 101 not archived, no available destinations 
  20. ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log' 
  21. Thu Nov 10 17:09:43 2011 
  22. Errors in file /home/oracle/admin/online/bdump/online_arc0_30095.trc: 
  23. ORA-16014: log 1 sequence# 101 not archived, no available destinations 
  24. ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log' 
  25. Thu Nov 10 17:14:43 2011 
  26. Errors in file /home/oracle/admin/online/bdump/online_arc1_30097.trc: 
  27. ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available. 
  28. Thu Nov 10 17:14:43 2011 
  29. ************************************************************************ 
  30. You have following choices to free up space from flash recovery area: 
  31. 1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard, 
  32.    then consider changing RMAN ARCHIVELOG DELETION POLICY. 
  33. 2. Back up files to tertiary device such as tape using RMAN 
  34.    BACKUP RECOVERY AREA command. 
  35. 3. Add disk space and increase db_recovery_file_dest_size parameter to 
  36.    reflect the new space. 
  37. 4. Delete unnecessary files using RMAN DELETE command. If an operating 
  38.    system command was used to delete files, then use RMAN CROSSCHECK and 
  39.    DELETE EXPIRED commands. 
  40. ************************************************************************ 
  41.  
  42. 二、日志切换失败 
  43. SQL> alter system switch logfile; 
  44. alter system switch logfile 
  45.  
  46. 长时间无响应,后台日志提示 
  47. Thu Nov 10 17:14:43 2011 
  48. ORACLE Instance online - Archival Error 
  49. Thu Nov 10 17:14:43 2011 
  50. ORA-16038: log 1 sequence# 101 cannot be archived 
  51. ORA-19809: limit exceeded for recovery files 
  52. ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log' 
  53. Thu Nov 10 17:14:43 2011 
  54. Errors in file /home/oracle/admin/online/bdump/online_arc1_30097.trc: 
  55. ORA-16038: log 1 sequence# 101 cannot be archived 
  56. ORA-19809: limit exceeded for recovery files 
  57. ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log' 
  58. Thu Nov 10 17:15:43 2011 
  59. ARCH: Archival stopped, error occurred. Will continue retrying 
  60. Thu Nov 10 17:15:43 2011 
  61. ORACLE Instance online - Archival Error 
  62. Thu Nov 10 17:15:43 2011 
  63. ORA-16014: log 1 sequence# 101 not archived, no available destinations 
  64. ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log' 
  65. Thu Nov 10 17:15:43 2011 
  66. Errors in file /home/oracle/admin/online/bdump/online_arc0_30095.trc: 
  67. ORA-16014: log 1 sequence# 101 not archived, no available destinations 
  68. ORA-00312: online log 1 thread 1: '/home/oracle/oradata/online/redo01.log' 

原因分析:

ORACLE log_archive_dest_1 未指定导致归档到flash_recovery_area路径,这点从后文的RMAN备份对归档部分的处理日志可以明显看出来,例如其中一个归档路径为“home/oracle/flash_recovery_area/online/archivelog/2011_10_13/o1_mf_1_52_79ftss3d_.arc”

 

 
  1. 解决方法: 
  2. 方法一:指定log_archive_dest_1到指定目录(此为永久解决方法,但是需要重启) 
  3. --归档路径 
  4. SQL> alter system set log_archive_dest_1='LOCATION=/u01/oracle/archivelog'; 
  5. --归档命名格式 
  6. SQL> alter system set log_archive_max_processes = 5; 
  7. SQL> alter system set log_archive_format = "archive_%t_%s_%r.arc" scope=spfile; 
  8.  
  9. 方法二:increase db_recovery_file_dest_size parameter to reflect the new space 
  10. 这种方法需要重启数据库才能使配置生效,在生产系统中显然不适合 
  11.  
  12. SQL> show parameter db_recovery_file_dest_size; 
  13.   
  14. NAME                                 TYPE        VALUE 
  15. ------------------------------------ ----------- ------------------------------ 
  16. db_recovery_file_dest_size           big integer 2G 
  17. SQL> alter system set db_recovery_file_dest_size=4G scope=spfile; 
  18.   
  19. System altered. 
  20.   
  21. 方法三:RMAN备份后删除归档,清空归档占用空间,对生产无影响(此为快速恢复数据库的方法) 
  22. [oracle@L-DB-128-46 ~]$ rman target / 
  23.   
  24. Recovery Manager: Release 10.2.0.4.0 - Production on 星期四 11月 10 17:11:10 2011 
  25.   
  26. Copyright (c) 1982, 2007, Oracle.  All rights reserved. 
  27.   
  28. connected to target database: online (DBID=2711954858) 
  29.   
  30. RMAN> run { 
  31. allocate channel 'c1' type disk format '/home/oracle/backup/full_db_20111110.bak'; 
  32. backup database plus archivelog delete all input; 
  33. release channel c1; 
  34. }2> 3> 4> 5>  
  35.   
  36. using target database control file instead of recovery catalog 
  37. allocated channel: c1 
  38. channel c1: sid=145 devtype=DISK 
  39.   
  40.   
  41. Starting backup at 2011-11-10 17:17:31 
  42. channel c1: starting archive log backupset 
  43. channel c1: specifying archive log(s) in backup set 
  44. input archive log thread=1 sequence=52 recid=51 stamp=764459065 
  45. input archive log thread=1 sequence=53 recid=53 stamp=764459065 
  46. input archive log thread=1 sequence=54 recid=52 stamp=764459065 
  47. input archive log thread=1 sequence=55 recid=54 stamp=764459071 
  48. input archive log thread=1 sequence=56 recid=55 stamp=764459076 
  49. input archive log thread=1 sequence=57 recid=56 stamp=764492454 
  50. input archive log thread=1 sequence=58 recid=57 stamp=764548216 
  51. input archive log thread=1 sequence=59 recid=58 stamp=764575211 
  52. input archive log thread=1 sequence=60 recid=59 stamp=764640050 
  53. input archive log thread=1 sequence=61 recid=60 stamp=764720252 
  54. input archive log thread=1 sequence=62 recid=61 stamp=764803366 
  55. input archive log thread=1 sequence=63 recid=62 stamp=764845224 
  56. input archive log thread=1 sequence=64 recid=63 stamp=764892556 
  57. input archive log thread=1 sequence=65 recid=64 stamp=764972503 
  58. input archive log thread=1 sequence=66 recid=65 stamp=765015358 
  59. input archive log thread=1 sequence=67 recid=66 stamp=765064813 
  60. input archive log thread=1 sequence=68 recid=67 stamp=765132696 
  61. input archive log thread=1 sequence=69 recid=68 stamp=765152438 
  62. input archive log thread=1 sequence=70 recid=69 stamp=765208861 
  63. input archive log thread=1 sequence=71 recid=70 stamp=765270027 
  64. input archive log thread=1 sequence=72 recid=71 stamp=765329990 
  65. input archive log thread=1 sequence=73 recid=72 stamp=765410404 
  66. input archive log thread=1 sequence=74 recid=73 stamp=765441266 
  67. input archive log thread=1 sequence=75 recid=74 stamp=765496803 
  68. input archive log thread=1 sequence=76 recid=75 stamp=765530600 
  69. input archive log thread=1 sequence=77 recid=76 stamp=765583207 
  70. input archive log thread=1 sequence=78 recid=77 stamp=765622706 
  71. input archive log thread=1 sequence=79 recid=78 stamp=765669611 
  72. input archive log thread=1 sequence=80 recid=79 stamp=765727244 
  73. input archive log thread=1 sequence=81 recid=80 stamp=765764533 
  74. input archive log thread=1 sequence=82 recid=81 stamp=765820824 
  75. input archive log thread=1 sequence=83 recid=82 stamp=765882059 
  76. input archive log thread=1 sequence=84 recid=83 stamp=765962785 
  77. input archive log thread=1 sequence=85 recid=84 stamp=766015206 
  78. input archive log thread=1 sequence=86 recid=85 stamp=766049222 
  79. input archive log thread=1 sequence=87 recid=86 stamp=766101611 
  80. input archive log thread=1 sequence=88 recid=87 stamp=766148505 
  81. input archive log thread=1 sequence=89 recid=88 stamp=766189244 
  82. input archive log thread=1 sequence=90 recid=89 stamp=766251727 
  83. input archive log thread=1 sequence=91 recid=90 stamp=766289777 
  84. input archive log thread=1 sequence=92 recid=91 stamp=766360805 
  85. input archive log thread=1 sequence=93 recid=92 stamp=766383429 
  86. input archive log thread=1 sequence=94 recid=93 stamp=766423722 
  87. input archive log thread=1 sequence=95 recid=94 stamp=766486811 
  88. input archive log thread=1 sequence=96 recid=95 stamp=766548055 
  89. input archive log thread=1 sequence=97 recid=96 stamp=766620005 
  90. input archive log thread=1 sequence=98 recid=97 stamp=766645228 
  91. input archive log thread=1 sequence=99 recid=98 stamp=766706408 
  92. input archive log thread=1 sequence=100 recid=99 stamp=766749605 
  93. channel c1: starting piece 1 at 2011-11-10 17:17:32 
  94. channel c1: finished piece 1 at 2011-11-10 17:17:57 
  95. piece handle=/home/oracle/backup/full_db_20111110.bak tag=TAG20111110T171731 comment=NONE 
  96. channel c1: backup set complete, elapsed time: 00:00:26 
  97. channel c1: deleting archive log(s) 
  98. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_13/o1_mf_1_52_79ftss3d_.arc recid=51 stamp=764459065 
  99. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_13/o1_mf_1_53_79ftss8m_.arc recid=53 stamp=764459065 
  100. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_13/o1_mf_1_54_79ftss8t_.arc recid=52 stamp=764459065 
  101. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_13/o1_mf_1_55_79ftsyyr_.arc recid=54 stamp=764459071 
  102. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_13/o1_mf_1_56_79ftt3tf_.arc recid=55 stamp=764459076 
  103. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_14/o1_mf_1_57_79gvf6p0_.arc recid=56 stamp=764492454 
  104. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_14/o1_mf_1_58_79jkvqxd_.arc recid=57 stamp=764548216 
  105. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_15/o1_mf_1_59_79kd7c5c_.arc recid=58 stamp=764575211 
  106. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_16/o1_mf_1_60_79mcklq6_.arc recid=59 stamp=764640050 
  107. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_16/o1_mf_1_61_79osvw5g_.arc recid=60 stamp=764720252 
  108. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_17/o1_mf_1_62_79rc16n2_.arc recid=61 stamp=764803366 
  109. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_18/o1_mf_1_63_79smx8qs_.arc recid=62 stamp=764845224 
  110. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_18/o1_mf_1_64_79v24d0y_.arc recid=63 stamp=764892556 
  111. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_19/o1_mf_1_65_79xj6pvv_.arc recid=64 stamp=764972503 
  112. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_20/o1_mf_1_66_79yt1y2z_.arc recid=65 stamp=765015358 
  113. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_20/o1_mf_1_67_7b0bcfbg_.arc recid=66 stamp=765064813 
  114. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_21/o1_mf_1_68_7b2dnr9h_.arc recid=67 stamp=765132696 
  115. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_21/o1_mf_1_69_7b2zxpbj_.arc recid=68 stamp=765152438 
  116. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_22/o1_mf_1_70_7b4q0x6c_.arc recid=69 stamp=765208861 
  117. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_23/o1_mf_1_71_7b6lrclk_.arc recid=70 stamp=765270027 
  118. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_23/o1_mf_1_72_7b8fb6lm_.arc recid=71 stamp=765329990 
  119. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_24/o1_mf_1_73_7bbvv4c6_.arc recid=72 stamp=765410404 
  120. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_25/o1_mf_1_74_7bcszloc_.arc recid=73 stamp=765441266 
  121. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_25/o1_mf_1_75_7bfj7389_.arc recid=74 stamp=765496803 
  122. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_26/o1_mf_1_76_7bgk782h_.arc recid=75 stamp=765530600 
  123. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_26/o1_mf_1_77_7bj4m6wd_.arc recid=76 stamp=765583207 
  124. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_27/o1_mf_1_78_7bkc5lpk_.arc recid=77 stamp=765622706 
  125. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_27/o1_mf_1_79_7blrzcps_.arc recid=78 stamp=765669611 
  126. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_28/o1_mf_1_80_7bnk8d5x_.arc recid=79 stamp=765727244 
  127. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_29/o1_mf_1_81_7boooo8f_.arc recid=80 stamp=765764533 
  128. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_29/o1_mf_1_82_7bqdnrc7_.arc recid=81 stamp=765820824 
  129. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_30/o1_mf_1_83_7bs8gbxh_.arc recid=82 stamp=765882059 
  130. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_31/o1_mf_1_84_7bvq91kg_.arc recid=83 stamp=765962785 
  131. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_10_31/o1_mf_1_85_7bxbh66d_.arc recid=84 stamp=766015206 
  132. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_01/o1_mf_1_86_7bycp6nw_.arc recid=85 stamp=766049222 
  133. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_01/o1_mf_1_87_7bzyvbv0_.arc recid=86 stamp=766101611 
  134. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_02/o1_mf_1_88_7c1dns1p_.arc recid=87 stamp=766148505 
  135. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_02/o1_mf_1_89_7c2nfwdp_.arc recid=88 stamp=766189244 
  136. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_03/o1_mf_1_90_7c4kgh7y_.arc recid=89 stamp=766251727 
  137. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_04/o1_mf_1_91_7c5pmk14_.arc recid=90 stamp=766289777 
  138. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_04/o1_mf_1_92_7c7vz5mp_.arc recid=91 stamp=766360805 
  139. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_05/o1_mf_1_93_7c8l259j_.arc recid=92 stamp=766383429 
  140. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_05/o1_mf_1_94_7c9sfbg5_.arc recid=93 stamp=766423722 
  141. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_06/o1_mf_1_95_7ccq0v8h_.arc recid=94 stamp=766486811 
  142. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_07/o1_mf_1_96_7cfltpy7_.arc recid=95 stamp=766548055 
  143. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_07/o1_mf_1_97_7chs35kp_.arc recid=96 stamp=766620005 
  144. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_08/o1_mf_1_98_7cjkqd4b_.arc recid=97 stamp=766645228 
  145. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_08/o1_mf_1_99_7clfh7z5_.arc recid=98 stamp=766706408 
  146. archive log filename=/home/oracle/flash_recovery_area/online/archivelog/2011_11_09/o1_mf_1_100_7cmqo581_.arc recid=99 stamp=766749605 
  147. Finished backup at 2011-11-10 17:17:58 
  148.   
  149. Starting backup at 2011-11-10 17:17:58 
  150. channel c1: starting full datafile backupset 
  151. channel c1: specifying datafile(s) in backupset 
  152. input datafile fno=00005 name=/home/oracle/oradata/online/cuteinfo02.dbf 
  153. input datafile fno=00006 name=/home/oracle/oradata/online/rman_tbs01.dbf 
  154. input datafile fno=00001 name=/home/oracle/oradata/online/system01.dbf 
  155. input datafile fno=00003 name=/home/oracle/oradata/online/sysaux01.dbf 
  156. input datafile fno=00002 name=/home/oracle/oradata/online/undotbs01.dbf 
  157. input datafile fno=00004 name=/home/oracle/oradata/online/users01.dbf 
  158. channel c1: starting piece 1 at 2011-11-10 17:17:58 
  159. released channel: c1 
  160. RMAN-00571: =========================================================== 
  161. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== 
  162. RMAN-00571: =========================================================== 
  163. RMAN-03002: failure of backup plus archivelog command at 11/10/2011 17:17:59------------------此错误是笔者输入了固定的文件名导致,如下改为full_db_%U.bak后输出正常 
  164. ORA-19504: failed to create file "/home/oracle/backup/full_db_20111110.bak" 
  165. ORA-27038: created file already exists 
  166. Additional information: 1 
  167.   
  168. RMAN> run { 
  169. allocate channel 'c1' type disk format '/home/oracle/backup/full_db_%U.bak'; 
  170. backup database plus archivelog delete all input; 
  171. release channel c1; 
  172. }2> 3> 4> 5>  
  173.   
  174. allocated channel: c1 
  175. channel c1: sid=145 devtype=DISK 
  176.   
  177.   
  178. Starting backup at 2011-11-10 17:20:22 
  179. specification does not match any archive log in the recovery catalog 
  180. backup cancelled because all files were skipped 
  181. Finished backup at 2011-11-10 17:20:22 
  182.   
  183. Starting backup at 2011-11-10 17:20:22 
  184. channel c1: starting full datafile backupset 
  185. channel c1: specifying datafile(s) in backupset 
  186. input datafile fno=00005 name=/home/oracle/oradata/online/cuteinfo02.dbf 
  187. input datafile fno=00006 name=/home/oracle/oradata/online/rman_tbs01.dbf 
  188. input datafile fno=00001 name=/home/oracle/oradata/online/system01.dbf 
  189. input datafile fno=00003 name=/home/oracle/oradata/online/sysaux01.dbf 
  190. input datafile fno=00002 name=/home/oracle/oradata/online/undotbs01.dbf 
  191. input datafile fno=00004 name=/home/oracle/oradata/online/users01.dbf 
  192. channel c1: starting piece 1 at 2011-11-10 17:20:22 
  193. channel c1: finished piece 1 at 2011-11-10 17:20:37 
  194. piece handle=/home/oracle/backup/full_db_03mrap2m_1_1.bak tag=TAG20111110T172022 comment=NONE 
  195. channel c1: backup set complete, elapsed time: 00:00:15 
  196. channel c1: starting full datafile backupset 
  197. channel c1: specifying datafile(s) in backupset 
  198. including current control file in backupset 
  199. including current SPFILE in backupset 
  200. channel c1: starting piece 1 at 2011-11-10 17:20:38 
  201. channel c1: finished piece 1 at 2011-11-10 17:20:39 
  202. piece handle=/home/oracle/backup/full_db_04mrap35_1_1.bak tag=TAG20111110T172022 comment=NONE 
  203. channel c1: backup set complete, elapsed time: 00:00:02 
  204. Finished backup at 2011-11-10 17:20:39 
  205.   
  206. Starting backup at 2011-11-10 17:20:39 
  207. specification does not match any archive log in the recovery catalog 
  208. backup cancelled because all files were skipped 
  209. Finished backup at 2011-11-10 17:20:39 
  210.   
  211. released channel: c1 
  212.   
  213. RMAN>  

故障解除确认:

尝试切换归档成功:

SQL> alter system switch logfile;

System altered.

SQL> 

后台日志如下:

Thu Nov 10 17:20:44 2011

db_recovery_file_dest_size of 2048 MB is 2.02% used. This is a

user-specified limit on the amount of space that will be used by this

database for recovery-related files, and does not reflect the amount of

space available in the underlying filesystem or ASM diskgroup.

kcrrdmx: Successful archiving of previously failed ORL

Archiver process freed from errors. No longer stopped

Thu Nov 10 17:21:33 2011

Thread 1 advanced to log sequence 104 (LGWR switch)

  Current log# 1 seq# 104 mem# 0: /home/oracle/oradata/online/redo01.log



后续解决方法:

修改初试化参数,使归档到相应的磁盘路径

--归档路径

SQL> alter system set log_archive_dest_1='LOCATION=/u01/oracle/archivelog';

--归档命名格式

SQL> alter system set log_archive_max_processes = 5;

SQL> alter system set log_archive_format = "archive_%t_%s_%r.arc" scope=spfile;



本文转自zylhsy 51CTO博客,原文链接:http://blog.51cto.com/yunlongzheng/710994,如需转载请自行联系原作者

 

相关实践学习
【涂鸦即艺术】基于云应用开发平台CAP部署AI实时生图绘板
【涂鸦即艺术】基于云应用开发平台CAP部署AI实时生图绘板
相关文章
|
Oracle 关系型数据库 Linux
【赵渝强老师】Oracle数据库配置助手:DBCA
Oracle数据库配置助手(DBCA)是用于创建和配置Oracle数据库的工具,支持图形界面和静默执行模式。本文介绍了使用DBCA在Linux环境下创建数据库的完整步骤,包括选择数据库操作类型、配置存储与网络选项、设置管理密码等,并提供了界面截图与视频讲解,帮助用户快速掌握数据库创建流程。
1157 93
|
Oracle 关系型数据库 Linux
【赵渝强老师】使用NetManager创建Oracle数据库的监听器
Oracle NetManager是数据库网络配置工具,用于创建监听器、配置服务命名与网络连接,支持多数据库共享监听,确保客户端与服务器通信顺畅。
665 0
|
SQL 存储 监控
SQL日志优化策略:提升数据库日志记录效率
通过以上方法结合起来运行调整方案, 可以显著地提升SQL环境下面向各种搜索引擎服务平台所需要满足标准条件下之数据库登记作业流程综合表现; 同时还能确保系统稳健运行并满越用户体验预期目标.
627 6
|
缓存 Java 应用服务中间件
Spring Boot配置优化:Tomcat+数据库+缓存+日志,全场景教程
本文详解Spring Boot十大核心配置优化技巧,涵盖Tomcat连接池、数据库连接池、Jackson时区、日志管理、缓存策略、异步线程池等关键配置,结合代码示例与通俗解释,助你轻松掌握高并发场景下的性能调优方法,适用于实际项目落地。
2222 5
|
SQL Oracle 关系型数据库
Oracle数据库创建表空间和索引的SQL语法示例
以上SQL语法提供了一种标准方式去组织Oracle数据库内部结构,并且通过合理使用可以显著改善查询速度及整体性能。需要注意,在实际应用过程当中应该根据具体业务需求、系统资源状况以及预期目标去合理规划并调整参数设置以达到最佳效果。
893 8
|
SQL Oracle 关系型数据库
比较MySQL和Oracle数据库系统,特别是在进行分页查询的方法上的不同
两者的性能差异将取决于数据量大小、索引优化、查询设计以及具体版本的数据库服务器。考虑硬件资源、数据库设计和具体需求对于实现优化的分页查询至关重要。开发者和数据库管理员需要根据自身使用的具体数据库系统版本和环境,选择最合适的分页机制,并进行必要的性能调优来满足应用需求。
831 11
|
存储 关系型数据库 数据库
【赵渝强老师】PostgreSQL数据库的WAL日志与数据写入的过程
PostgreSQL中的WAL(预写日志)是保证数据完整性的关键技术。在数据修改前,系统会先将日志写入WAL,确保宕机时可通过日志恢复数据。它减少了磁盘I/O,提升了性能,并支持手动切换日志文件。WAL文件默认存储在pg_wal目录下,采用16进制命名规则。此外,PostgreSQL提供pg_waldump工具解析日志内容。
1318 0
|
Oracle 关系型数据库 数据库
数据库数据恢复—服务器异常断电导致Oracle数据库报错的数据恢复案例
Oracle数据库故障: 某公司一台服务器上部署Oracle数据库。服务器意外断电导致数据库报错,报错内容为“system01.dbf需要更多的恢复来保持一致性”。该Oracle数据库没有备份,仅有一些断断续续的归档日志。 Oracle数据库恢复流程: 1、检测数据库故障情况; 2、尝试挂起并修复数据库; 3、解析数据库文件; 4、导出并验证恢复的数据库文件。
|
缓存 关系型数据库 BI
使用MYSQL Report分析数据库性能(下)
使用MYSQL Report分析数据库性能
808 158
|
关系型数据库 MySQL 数据库
自建数据库如何迁移至RDS MySQL实例
数据库迁移是一项复杂且耗时的工程,需考虑数据安全、完整性及业务中断影响。使用阿里云数据传输服务DTS,可快速、平滑完成迁移任务,将应用停机时间降至分钟级。您还可通过全量备份自建数据库并恢复至RDS MySQL实例,实现间接迁移上云。

推荐镜像

更多