设为首页 收藏本站
查看: 700|回复: 0

[经验分享] 记一次sql执行卡死的问题

[复制链接]

尚未签到

发表于 2018-10-23 06:40:00 | 显示全部楼层 |阅读模式
  这几天一直在进行aix环境下10.2.0.1数据库升级为10.2.0.5的实验
  但是在跑数据库脚本的时候总是跑到某一步数据库就没反应了,然后检查数据库等待事件一直显示为空闲等待
  日志中报错
  Errors in file /u01/app/oracle/admin/test/bdump/test_arc1_23310.trc:
  ORA-16038: log 3 sequence# 90 cannot be archived
  ORA-19809: limit exceeded for recovery files
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:19:29 CDT 2015
  ARCH: Archival stopped, error occurred. Will continue retrying
  Sun May 31 20:19:29 CDT 2015
  ORACLE Instance test - Archival Error
  Sun May 31 20:19:29 CDT 2015
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:19:29 CDT 2015
  Errors in file /u01/app/oracle/admin/test/bdump/test_arc0_26602.trc:
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:24:07 CDT 2015
  Shutting down instance (immediate)
  Sun May 31 20:24:07 CDT 2015
  Shutting down instance: further logons disabled
  Sun May 31 20:24:07 CDT 2015
  Stopping background process CJQ0
  Sun May 31 20:24:07 CDT 2015
  Stopping background process MMNL
  Sun May 31 20:24:09 CDT 2015
  Stopping background process MMON
  License high water mark = 2
  Sun May 31 20:24:10 CDT 2015
  Job queue slave processes stopped
  Sun May 31 20:24:29 CDT 2015
  Errors in file /u01/app/oracle/admin/test/bdump/test_arc1_23310.trc:
  ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available.
  Sun May 31 20:24:29 CDT 2015
  ************************************************************************
  You have following choices to free up space from flash recovery area:
  1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
  then consider changing RMAN ARCHIVELOG DELETION POLICY.
  2. Back up files to tertiary device such as tape using RMAN
  BACKUP RECOVERY AREA command.
  3. Add disk space and increase db_recovery_file_dest_size parameter to
  reflect the new space.
  4. Delete unnecessary files using RMAN DELETE command. If an operating
  system command was used to delete files, then use RMAN CROSSCHECK and
  DELETE EXPIRED commands.
  ************************************************************************
  ARCH: Archival stopped, error occurred. Will continue retrying
  Sun May 31 20:24:29 CDT 2015
  ORACLE Instance test - Archival Error
  Sun May 31 20:24:29 CDT 2015
  ORA-16038: log 3 sequence# 90 cannot be archived
  ORA-19809: limit exceeded for recovery files
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:24:29 CDT 2015
  Errors in file /u01/app/oracle/admin/test/bdump/test_arc1_23310.trc:
  ORA-16038: log 3 sequence# 90 cannot be archived
  ORA-19809: limit exceeded for recovery files
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:25:29 CDT 2015
  ARCH: Archival stopped, error occurred. Will continue retrying
  Sun May 31 20:25:29 CDT 2015
  ORACLE Instance test - Archival Error
  Sun May 31 20:25:29 CDT 2015
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:25:29 CDT 2015
  Errors in file /u01/app/oracle/admin/test/bdump/test_arc0_26602.trc:
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:29:09 CDT 2015
  Active call for process 23850 user 'oracle' program 'oracle@boweston (TNS V1-V3)'
  System State dumped to trace file /u01/app/oracle/admin/test/udump/test_ora_18216.trc
  SHUTDOWN: waiting for active calls to complete.
  Sun May 31 20:30:29 CDT 2015
  Errors in file /u01/app/oracle/admin/test/bdump/test_arc1_23310.trc:
  ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% us
  Sun May 31 20:30:29 CDT 2015
  ************************************************************************
  You have following choices to free up space from flash recovery area:
  1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
  then consider changing RMAN ARCHIVELOG DELETION POLICY.
  2. Back up files to tertiary device such as tape using RMAN
  BACKUP RECOVERY AREA command.
  3. Add disk space and increase db_recovery_file_dest_size parameter to
  reflect the new space.
  4. Delete unnecessary files using RMAN DELETE command. If an operating
  system command was used to delete files, then use RMAN CROSSCHECK and
  DELETE EXPIRED commands.
  ************************************************************************
  ARCH: Archival stopped, error occurred. Will continue retrying
  Sun May 31 20:30:29 CDT 2015
  ORACLE Instance test - Archival Error
  Sun May 31 20:30:29 CDT 2015
  ORA-16038: log 3 sequence# 90 cannot be archived
  ORA-19809: limit exceeded for recovery files
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:30:29 CDT 2015
  Errors in file /u01/app/oracle/admin/test/bdump/test_arc1_23310.trc:
  ORA-16038: log 3 sequence# 90 cannot be archived
  ORA-19809: limit exceeded for recovery files
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:31:29 CDT 2015
  ARCH: Archival stopped, error occurred. Will continue retrying
  Sun May 31 20:31:29 CDT 2015
  ORACLE Instance test - Archival Error
  Sun May 31 20:31:29 CDT 2015
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:31:29 CDT 2015
  Errors in file /u01/app/oracle/admin/test/bdump/test_arc0_26602.trc:
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  Sun May 31 20:33:47 CDT 2015
  sculkget: failed to lock /u01/app/oracle/product/10.2.0/db_1/dbs/lkinsttest exclusive
  sculkget: lock held by PID: 18216
  Oracle Instance Startup operation failed. Another process may be attempting to startup or shutdown this Instance.
  Failed to acquire instance startup/shutdown serialization primitive
  Sun May 31 20:33:52 CDT 2015
  Instance shutdown cancelled
  Sun May 31 20:34:00 CDT 2015
  Starting ORACLE instance (normal)
  trace中报错
  *** 2015-05-31 18:56:48.308 64950 kcrr.c
  ARC0: Error 19809 Creating archive log file to '/u01/app/oracle/flash_recovery_area/TEST/archivelog/2015_05_31/o1_mf_1_90_%u_.arc'
  *** 2015-05-31 18:56:48.308 63059 kcrr.c
  kcrrfail: dest:10 err:19809 force:0 blast:1
  *** 2015-05-31 18:56:48.351 22402 kcrr.c
  ORA-16038: log 3 sequence# 90 cannot be archived
  ORA-19809: limit exceeded for recovery files
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  *** 2015-05-31 18:57:29.674
  *** 2015-05-31 18:57:29.674 22402 kcrr.c
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  *** 2015-05-31 19:03:29.671
  *** 2015-05-31 19:03:29.671 22402 kcrr.c
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  *** 2015-05-31 19:09:29.680
  *** 2015-05-31 19:09:29.680 22402 kcrr.c
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  *** 2015-05-31 19:15:29.688
  *** 2015-05-31 19:15:29.688 22402 kcrr.c
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  *** 2015-05-31 19:21:29.689
  *** 2015-05-31 19:21:29.689 22402 kcrr.c
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  *** 2015-05-31 19:26:48.410
  *** 2015-05-31 19:26:48.410 22402 kcrr.c
  ORA-16014: log 3 sequence# 90 not archived, no available destinations
  ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/test/redo03.log'
  *** 2015-05-31 19:31:48.505
  ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available.
  *** 2015-05-31 19:31:48.506
  经查找资料确认为db_recover_file_dest_size,大小设置不够,导致日志归档失败,sql无法继续执行
  修改参数
  SQL> show parameter db_recovery
  NAME                                 TYPE        VALUE
  ------------------------------------ ----------- ------------------------------
  db_recovery_file_dest                string      /u01/app/oracle/flash_recovery
  _area
  db_recovery_file_dest_size           big integer 2G

  SQL>>
  System>  修改成功
  修改后sql重新执行,执行通过


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-625106-1-1.html 上篇帖子: SQL Mirror 同时存在两个主体 下篇帖子: python访问sql server安装、配置、代码示例
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表