跟踪Oracle启动状态

浏览:
字体:
发布时间:2013-12-23 12:22:20
来源:

可以使用10046 event来跟踪

[oracle@ggos ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Fri Dec 20 19:48:00 2013Copyright (c) 1982, 2013, Oracle.  All rights reserved.Connected to an idle instance.SQL> startup mountORACLE instance started.Total System Global Area  835104768 bytesFixed Size                  2257840 bytesVariable Size             717229136 bytesDatabase Buffers          113246208 bytesRedo Buffers                2371584 bytesDatabase mounted.SQL> oradebug setmypidStatement processed.SQL> alter session set events '10046 trace name context forever,level 12';Session altered.SQL> alter database open;Database altered.SQL> oradebug tracefile_name/u01/app/oracle/diag/rdbms/oraprod/oraprod/trace/oraprod_ora_2820.trcSQL> alter session set events '10046 trace name context off';Session altered.SQL> 

WAIT #140190090045240: nam='db file sequential read' ela= 460 file#=1 block#=520 blocks=1 obj#=-1 tim=1387540363264254=====================PARSING IN CURSOR #140190090037016 len=188 dep=1 uid=0 oct=1 lid=0 tim=1387540363332140 hv=4006182593 ad='91871900' sqlid='32r4f1brckzq1'create table bootstrap$ (END OF STMT PARSE #140190090037016:c=9000,e=67806,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=4,plh=0,tim=1387540363332139EXEC #140190090037016:c=0,e=17461,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=0,tim=1387540363349678CLOSE #140190090037016:c=0,e=3,dep=1,type=0,tim=1387540363349760=====================PARSING IN CURSOR #140190090037016 len=55 dep=1 uid=0 oct=3 lid=0 tim=1387540363350500 hv=2111436465 ad='9185fc98' sqlid='6apq2rjyxmxpj'select line#, sql_text from bootstrap$ where obj# != :1END OF STMT PARSE #140190090037016:c=999,e=710,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=4,plh=0,tim=1387540363350482*** 2013-12-20 19:52:43.430BINDS #140190090037016: Bind#0  oacdty=02 mxl=22(22) mxlc=00 mal=00 scl=00 pre=00  oacflg=08 fl2=0001 frm=00 csi=00 siz=24 off=0  kxsbbbfp=7f808c8482d0  bln=22  avl=02  flg=05    value=59EXEC #140190090037016:c=2000,e=116005,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=4,plh=867914364,tim=1387540363466571WAIT #140190090037016: nam='db file sequential read' ela= 24 file#=1 block#=520 blocks=1 obj#=59 tim=1387540363466681

可以看到是加载BOOTSTRAP$表

SQL> select dbms_metadata.get_ddl('TABLE','BOOTSTRAP$','SYS') from dual;  CREATE TABLE "SYS"."BOOTSTRAP$"   (    "LINE#" NUMBER NOT NULL ENABLE,        "OBJ#" NUMBER NOT NULL ENABLE,        "SQL_TEXT" VARCHAR2(4000) NOT NULL ENABLE   ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING  STORAGE(INITIAL 57344 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)  TABLESPACE "SYSTEM"
SQL> select owner,OBJECT_ID from dba_objects where object_name=upper('bootstrap$');OWNER                           OBJECT_ID------------------------------ ----------SYS                                    59



>更多相关文章
24小时热门资讯
24小时回复排行
资讯 | QQ | 安全 | 编程 | 数据库 | 系统 | 网络 | 考试 | 站长 | 关于东联 | 安全雇佣 | 搞笑视频大全 | 微信学院 | 视频课程 |
关于我们 | 联系我们 | 广告服务 | 免责申明 | 作品发布 | 网站地图 | 官方微博 | 技术培训
Copyright © 2007 - 2024 Vm888.Com. All Rights Reserved
粤公网安备 44060402001498号 粤ICP备19097316号 请遵循相关法律法规
');})();