oracle9iswitchlogfilehang

现象:
solaris 系统oracle 9i单实例数据库
SQL> alter system switch logfile;  ###hang住了

解决方法:
1、生成10046文件:
SQL>  select value from v$parameter where name = 'user_dump_dest';
VALUE
--------------------------------------------------------------------------------
/ora/szuat/szuatdb/9.2.0/admin/SZPRD_mis-uat/udump

SQL> alter session set events '10046 trace name context forever ,level 8';
Session altered

SQL>  alter system switch logfile;
^C alter system switch logfile
*
ERROR at line 1:
ORA-01013: user requested cancel of current operation

SQL>  alter session set events '10046 trace name context off' ;
Session altered.

2、查看等待事件:
WAIT #1: nam='switch logfile command' ela= 866 p1=0 p2=0 p3=0
WAIT #1: nam='switch logfile command' ela= 439 p1=0 p2=0 p3=0
WAIT #1: nam='switch logfile command' ela= 484 p1=0 p2=0 p3=0
WAIT #1: nam='switch logfile command' ela= 544 p1=0 p2=0 p3=0
WAIT #1: nam='switch logfile command' ela= 781 p1=0 p2=0 p3=0
WAIT #1: nam='switch logfile command' ela= 576 p1=0 p2=0 p3=0
WAIT #1: nam='switch logfile command' ela= 337 p1=0 p2=0 p3=0
WAIT #1: nam='switch logfile command' ela= 383 p1=0 p2=0 p3=0

3、修改参数:
SQL> show parameter log_archive_start
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_start                    boolean     FALSE

SQL> alter system archive log start;  ##alter system set log_archive_start=true scope=spfile;
System altered.

4、问题恢复:
SQL> alter system switch logfile;
System altered.

网站题目:oracle9iswitchlogfilehang
网页URL:http://bzwzjz.com/article/gphjsh.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 网站制作 定制网站建设 网站建设方案 成都网站制作 成都响应式网站建设公司 网站建设费用 响应式网站设计方案 重庆企业网站建设 网站建设开发 成都商城网站建设 重庆网站建设 重庆企业网站建设 成都网站建设公司 梓潼网站设计 高端定制网站设计 网站设计 成都网站建设 营销型网站建设 网站设计 高端网站设计 app网站建设 高端品牌网站建设