壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5449|回复: 2

[Oracle数据库] 如何察看oracle事件代码信息

[复制链接]
发表于 2006/2/23 11:29:47 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
DECLARE   err_msg VARCHAR2(120);BEGIN   dbms_output.enable (1000000);  FOR err_num IN 10000..10999 LOOP    err_msg := SQLERRM (-err_num);    IF err_msg NOT LIKE '%Message '||err_num||' not found%' THEN     dbms_output.put_line (err_msg);    END IF;  END LOOP;END;
 楼主| 发表于 2006/2/23 11:30:50 | 显示全部楼层
输出如下:
ORA-10000: controlfile debug event, name 'control_file'ORA-10001: controlfile crash event1ORA-10002: controlfile crash event2ORA-10003: controlfile crash event3ORA-10004: controlfile crash event4ORA-10005: trace latch operations for debuggingORA-10006: testing - block recovery forcedORA-10007: log switch debug crash after new log select, thread ORA-10008: log switch debug crash after new log header write, thread ORA-10009: log switch debug crash after old log header write, thread ORA-10010: Begin TransactionORA-10011: End   TransactionORA-10012: Abort TransactionORA-10013: Instance RecoveryORA-10014: Roll Back to Save PointORA-10015: Undo Segment RecoveryORA-10016: Undo Segment extendORA-10017: Undo Segment WrapORA-10018: Data Segment CreateORA-10019: Data Segment RecoveryORA-10020: partial link restored to linked list (KSG)ORA-10021: latch cleanup for state objects (KSS)ORA-10022: trace ktsgspORA-10023: Create Save Undo SegmentORA-10024: Write to Save UndoORA-10025: Extend Save Undo SegmentORA-10026: Apply Save UndoORA-10027: latch cleanup for enqueue locks (KSQ)ORA-10028: latch cleanup for enqueue resources (KSQ)ORA-10029: session logon (KSU)ORA-10030: session logoff (KSU)ORA-10031: row source debug event (R*)ORA-10032: sort statistics (SOR*)ORA-10033: sort run information (SRD*/SRS*)ORA-10035: parse SQL statement (OPIPRS)ORA-10036: create remote row source (QKANET)ORA-10037: allocate remote row source (QKARWS)ORA-10038: dump row source tree (QBADRV)ORA-10039: type checking (OPITCA)ORA-10040: dirty cache listORA-10041: dump undo records skippedORA-10042: trap error during undo applicationORA-10043: check consistency of owner/waiter/converter lists in KSQORA-10044: free list undo operationsORA-10045: free list update operations - ktsrsp, ktsunlORA-10046: enable SQL statement timingORA-10047: trace switching of sessionsORA-10048: Undo segment shrinkORA-10049: protect library cache memory heapsORA-10050: sniper traceORA-10051: trace OPI callsORA-10052: don't clean up obj$ORA-10053: CBO Enable optimizer traceORA-10054: trace UNDO handling in MLSORA-10055: trace UNDO handingORA-10056: dump analyze stats (kdg)ORA-10057: suppress file names in error messagesORA-10058: use table scan cost in tab$.spare1ORA-10059: simulate error in logfile create/clearORA-10060: CBO Enable predicate dumpORA-10061: disable SMON from cleaning temp segmentORA-10062: disable usage of OS Roles in osdsORA-10063: disable usage of DBA and OPER privileges in osdsORA-10064: thread enable debug crash level , thread ORA-10065: limit library cache dump information for state object dumpORA-10066: simulate failure to verify fileORA-10067: force redo log checksum errors - block numberORA-10068: force redo log checksum errors - file numberORA-10069: Trusted Oracle test eventORA-10070: force datafile checksum errors - block numberORA-10071: force datafile checksum errors - file numberORA-10072: protect latch recovery memoryORA-10073: have PMON dump info before latch cleanupORA-10074: default trace function mask for kstORA-10075: CBO Disable outer-join to regular join conversionORA-10076: CBO Enable cartesian product join costingORA-10077: CBO Disable view-merging optimization for outer-joinsORA-10078: CBO Disable constant predicate elimination optimizationORA-10079: trace data sent/received via SQL*NetORA-10080: dump a block on a segment list which cannot be exchangedORA-10081: segment High Water Mark has been advancedORA-10082: free list head block is the same as the last blockORA-10083: a brand new block has been requested from space managementORA-10084: free list becomes emptyORA-10085: free lists have been mergedORA-10086: CBO Enable error if kko and qka disagree on oby sortORA-10087: disable repair of media corrupt data blocksORA-10088: CBO Disable new NOT IN optimizationORA-10089: CBO Disable index sortingORA-10090: invoke other events before crash recoveryORA-10091: CBO Disable constant predicate mergingORA-10092: CBO Disable hash joinORA-10093: CBO Enable force hash joinsORA-10094: before resizing a data fileORA-10095: dump debugger commands to trace fileORA-10096: after the cross instance call when resizing a data fileORA-10097: after generating redo when resizing a data fileORA-10098: after the OS has increased the size of a data fileORA-10099: after updating the file header with the new file sizeORA-10100: after the OS has decreased the size of a data fileORA-10101: atomic redo write recoveryORA-10102: switch off anti-joinsORA-10103: CBO Disable hash join swappingORA-10104: dump hash join statistics to trace fileORA-10105: CBO Enable constant pred trans and MPs w WHERE-clauseORA-10106: CBO Disable evaluating correlation pred last for NOT INORA-10107: CBO Always use bitmap indexORA-10108: CBO Don't use bitmap indexORA-10109: CBO Disable move of negated predicatesORA-10110: CBO Try index rowid range scansORA-10111: Bitmap index creation switchORA-10112: Bitmap index creation switchORA-10113: Bitmap index creation switchORA-10114: Bitmap index creation switchORA-10115: CBO Bitmap optimization use maximal expressionORA-10116: CBO Bitmap optimization switchORA-10117: CBO Disable new parallel cost model ORA-10118: CBO Enable hash join costing ORA-10119: QKA Disable GBY sort eliminationORA-10120: generate relative file # different from absoluteORA-10121: CBO Don't sort bitmap chainsORA-10122: Disable transformation of count(col) to count(*)ORA-10123: QKA Disable Bitmap And-EQualsORA-10124: Force creation of segmented arrays by kscsAllocateORA-10125: Disable remote sort eliminationORA-10126: Debug oracle java xaORA-10127: Disable remote query block operationORA-10128: Dump Partition Pruning InformationORA-10129: Alter histogram lookup for remote queriesORA-10130: sort disable readaheadsORA-10145: test auditing network errorsORA-10146: enable Oracle TRACE collectionORA-10147: CBO enhance cost info for rowsourcesORA-10148: Use pre-7.3.3 random generatorORA-10149: allow the creation of constraints with illegal date constantsORA-10150: import exceptionsORA-10151: Force duplicate dependency removalORA-10152: CBO don't consider function costs in plansORA-10153: Switch to use public synonym if private one does not translateORA-10154: Switch to disallow synonyms in DDL statementsORA-10155: CBO disable generation of transitive OR-chainsORA-10156: CBO disable index fast full scanORA-10157: CBO disable index access path for in-listORA-10158: CBO preserve predicate order in post-filtersORA-10159: CBO disable order-by sort pushdown into domain indexesORA-10160: CBO recursive semi-join on/off-switchORA-10161: CBO recursive semi-join on/off-switchORA-10162: CBO join-back elimination on/off-switchORA-10163: CBO join-back elimination on/off-switchORA-10164: CBO disable subquery-adjusted cardinality fixORA-10165: mark session to be aborted during shutdown normalORA-10166: trace long operation statistics updatesORA-10167: CBO use old index MIN/MAX optimizationORA-10168: CBO disable single-table predicate predicate generationORA-10169: CBO disable histograms for multi partitionsORA-10170: CBO use old bitmap costingORA-10171: CBO disable transitive join predicatesORA-10172: CBO force hash join backORA-10173: CBO no constraint-based join-back eliminationORA-10174: view join-back elimination switchORA-10175: CBO star transformation switchORA-10176: CBO colocated join switchORA-10177: CBO colocated join switchORA-10178: CBO turn off hash cluster filtering through memcmpORA-10179: CBO turn off transitive predicate replacementORA-10180: temp table transformation print error messagesORA-10183: CBO disable cost roundingORA-10185: CBO force index joinsORA-10186: CBO disable index joinORA-10187: CBO additional index join switchORA-10188: CBO additional index join switchORA-10189: CBO turn off FFS null fixORA-10190: Analyze use old frequency histogram collection and densityORA-10191: Avoid conversion of in-lists back to OR-expanded formORA-10192: nopushdown when number of groups exceed number of rowsORA-10194: CBO disable new LIKE selectivity heuristicORA-10195: CBO don't use check constraints for transitive predicatesORA-10196: CBO turn off fix for bug 1089848ORA-10199: set parameter in sessionORA-10200: consistent read buffer statusORA-10201: consistent read undo applicationORA-10202: consistent read block headerORA-10203: block cleanoutORA-10204: signal recursive extendORA-10205: row cache debuggingORA-10206: transaction table consistent readORA-10207: consistent read transactions' status reportORA-10208: consistent read loop checkORA-10209: enable simulated error on controlfileORA-10210: check data block integrityORA-10211: check index block integrityORA-10212: check cluster integrityORA-10213: crash after controlfile writeORA-10214: simulate write errors on controlfileORA-10215: simulate read errors on controlfileORA-10216: dump controlfile headerORA-10217: debug sequence numbersORA-10218: dump uba of applied undoORA-10219: monitor multi-pass row lockingORA-10220: show updates to the transaction tableORA-10221: show changes done with undoORA-10222: row cacheORA-10223: transaction layer - turn on verification codesORA-10224: index block split/delete traceORA-10225: free/used extent row cacheORA-10226: trace CR applications of undo for data operationsORA-10227: verify (multi-piece) row structureORA-10228: trace application of redo by kcocbkORA-10229: simulate I/O error against datafilesORA-10230: check redo generation by copying before applyingORA-10231: skip corrupted blocks on _table_scans_ORA-10232: dump corrupted blocks symbolically when kcbgottenORA-10233: skip corrupted blocks on index operationsORA-10234: trigger event after calling kcrapc to do redo N timesORA-10235: check memory manager internal structuresORA-10236: library cache managerORA-10237: simulate ^C (for testing purposes)ORA-10238: instantiation managerORA-10239: multi-instance library cache managerORA-10240: dump dba's of blocks that we wait forORA-10241: remote SQL execution tracing/validationORA-10242: suppress OER 2063 (for testing distrib w/o different error log)ORA-10243: simulated error for test  of K2GTAB latch cleanupORA-10244: make tranids in error msgs print as 0.0.0 (for testing)ORA-10245: simulate lock conflict error for testing PMONORA-10246: print trace of PMON actions to trace fileORA-10247: Turn on scgcmn tracing. (VMS ONLY)ORA-10248: turn on tracing for dispatchersORA-10249: turn on tracing for multi-stated serversORA-10250: Trace all allocate and free calls to the topmost SGA heapORA-10251: check consistency of transaction table and undo blockORA-10252: simulate write error to data file headerORA-10253: simulate write error to redo logORA-10254: trace cross-instance callsORA-10255: pl/sql parse checkingORA-10256: turn off multi-threaded server load balancingORA-10257: trace multi-threaded server load balancingORA-10258: force shared servers to be chosen round-robinORA-10259: get error message text from remote using explicit callORA-10260: Trace calls to SMPRSET (VMS ONLY)ORA-10261: Limit the size of the PGA heapORA-10262: Don't check for memory leaksORA-10263: Don't free empty PGA heap extentsORA-10264: Collect statistics on context area usage (x$ksmcx)ORA-10265: Keep random system generated output out of error messagesORA-10266: Trace OSD stack usageORA-10267: Inhibit KSEDMP for testingORA-10268: Don't do forward coalesce when deleting extentsORA-10269: Don't do coalesces of free space in SMONORA-10270: Debug shared cursorsORA-10271: distributed transaction after COLLECTORA-10272: distributed transaction before PREPAREORA-10273: distributed transaction after PREPAREORA-10274: distributed transaction before COMMITORA-10275: distributed transaction after COMMITORA-10276: distributed transaction before FORGETORA-10277: Cursor sharing (or not) related event (used for testing)ORA-10278: Internal testingORA-10279: Simulate block corruption in kdb4chkORA-10280: Internal testing - segmentation fault during crash recoveryORA-10281: maximum time to wait for process creationORA-10282: Inhibit signalling of other backgrounds when one diesORA-10283: simulate asynch I/O never completingORA-10284: simulate zero/infinite asynch I/O bufferingORA-10285: Simulate controlfile header corruptionORA-10286: Simulate controlfile open errorORA-10287: Simulate archiver errorORA-10288: Do not check block type in ktrgetORA-10289: Do block dumps to trace file in hex rather than fromattedORA-10290: kdnchk - checkvalid event - not for general purpose use.ORA-10291: die in tbsdrv to test controlfile undoORA-10292: dump uet entries on a 1561 from dtsdrvORA-10293: dump debugging information when doing block recoveryORA-10294: enable PERSISTENT DLM operations on non-compliant systemsORA-10295: die after file header update durning cf xactORA-10296: disable ORA-379ORA-10297: customize dictionary object number cacheORA-10300: disable undo compatibility check at database openORA-10301: Enable LCK timeout table consistency checkORA-10302: trace create or drop internal triggerORA-10303: trace loading of library cache for internal triggersORA-10304: trace replication triggerORA-10305: trace updatable snapshot triggerORA-10306: trace snapshot log triggerORA-10307: trace RepCat executionORA-10308: replication testing eventORA-10309: Trigger Debug eventORA-10320: Enable data layer (kdtgrs) tracing of space management callsORA-10323: before committing an add datafile commandORA-10324: Enable better checking of redo logs errorsORA-10325: Trace control file record section expand and shrink operationsORA-10326: clear logfile debug crash at , log ORA-10327: simulate ORA-00235 error for testingORA-10328: disable first-to-mount split-brain error, for testingORA-10336: Do remote object transfer using remote SQLORA-10340: Buffer Cache Sanity CheckORA-10341: Simulate out of PGA memory in DBWR during object reuseORA-10342: Raise unknown exception in ACQ_ADD when checkpointingORA-10343: Raise an out of memory exception-OER 4031 in ACQ_ADDORA-10344: Simulate kghxal returning 0 in ACQ_ADD but no exceptionORA-10345: validate queue when linking or unlinking a bufferORA-10346: check that all buffers for checkpoint have been writtenORA-10347: dump active checkpoint entries and checkpoint buffersORA-10348: test abnormal termination of process initiating file checkpointORA-10349: do not allow ckpt to completeORA-10350: Simulate more than one object & tsn id in object reuseORA-10352: report direct path statisticsORA-10353: number of slotsORA-10354: turn on direct read path for parallel queryORA-10355: turn on direct read path for scansORA-10356: turn on hint usage for direct readORA-10357: turn on debug information for direct pathORA-10359: turn off updates to control file for direct writesORA-10360: enable dbwr consistency checkingORA-10370: parallel query server kill eventORA-10371: disable TQ hintORA-10372: parallel query server kill event procORA-10373: parallel query server kill eventORA-10374: parallel query server interrupt (validate lock value)ORA-10375: turn on checks for statistics rollupsORA-10376: turn on table queue statisticsORA-10377: turn off load balancingORA-10378: force hard process/range affinityORA-10379: direct read for rowid range scans (unimplemented)ORA-10380: kxfp latch cleanup testing eventORA-10381: kxfp latch cleanup testing eventORA-10382: parallel query server interrupt (reset)ORA-10383: auto parallelization testing eventORA-10384: parallel dataflow scheduler tracingORA-10385: parallel table scan range sampling methodORA-10386: parallel SQL hash and range statisticsORA-10387: parallel query server interrupt (normal)ORA-10388: parallel query server interrupt (failure)ORA-10389: parallel query server interrupt (cleanup)ORA-10390: Trace parallel query slave executionORA-10391: trace PX granule allocation/assignmentORA-10392: parallel query debugging bitsORA-10393: print parallel query statisticsORA-10394: generate a fake load to test adaptive and load balancingORA-10395: adjust sample size for range table queuesORA-10396: circumvent range table queues for queriesORA-10397: suppress verbose parallel coordinator error reportingORA-10398: enable timeouts in parallel query threadsORA-10399: trace buffer allocationORA-10400: turn on system state dumps for shutdown debuggingORA-10402: turn on IPC (skgxp) debuggingORA-10403: fake CPU number for default degree of parallelismORA-10404: crash dbwr after writeORA-10405: emulate broken mirrorsORA-10406: enable datetime TIMESTAMP, INTERVAL datatype creationORA-10407: enable datetime TIME datatype creationORA-10408: disable OLAP builtin window function usageORA-10425: enable DLM lock open event traceORA-10426: enable DLM lock convert event traceORA-10427: enable DLM traffic controller event traceORA-10428: enable tracing of DLM distributed resource operationsORA-10429: enable tracing of DLM IPC callsORA-10430: enable tracing of DLM AST callsORA-10431: enable tracing of DLM CR server callsORA-10450: signal ctrl-c in kdddca (drop column) after n rowsORA-10500: turn on traces for SMONORA-10510: turn off SMON check to offline pending offline rollback segmentORA-10511: turn off SMON check to cleanup undo dictionaryORA-10512: turn off SMON check to shrink rollback segmentsORA-10515: turn on event to use physical cleanoutORA-10550: signal error during create as select/create index after n rowsORA-10600: check cursor frame allocationORA-10601: turn on debugging for cursor_sharing (literal replacement)ORA-10602: cause an access violation (for testing purposes)ORA-10603: cause an error to occur during truncate (for testing purposes)ORA-10604: trace parallel create indexORA-10605: enable parallel create index by defaultORA-10606: trace parallel create indexORA-10607: trace index rowid partition scanORA-10608: trace create bitmap indexORA-10609: trace for array index insertionORA-10610: trace create index pseudo optimizerORA-10611: causes migration to fail - testing onlyORA-10650: disable cache-callback optimisationORA-10666: Do not get database enqueue nameORA-10667: Cause sppst to check for valid process idsORA-10690: Set shadow process core file dump type (Unix only)ORA-10691: Set background process core file type (Unix only)ORA-10700: Alter access violation exception handlerORA-10701: Dump direct loader index keysORA-10702: Enable histogram data generationORA-10703: Simulate process death during enqueue getORA-10704: Print out information about what enqueues are being obtainedORA-10705: Print Out Tracing information for every I/O done by ODSsORA-10706: Print out information about instance lock manipulationORA-10707: Simulate process death for instance registrationORA-10708: Print out Tracing information for skxf multi instance commsORA-10709: enable parallel instances in create index by defaultORA-10710: trace bitmap index accessORA-10711: trace bitmap index mergeORA-10712: trace bitmap index orORA-10713: trace bitmap index andORA-10714: trace bitmap index minusORA-10715: trace bitmap index conversion to rowidsORA-10716: trace bitmap index compress/decompressORA-10717: trace bitmap index compaction trace for index creationORA-10718: event to disable automatic compaction after index creationORA-10719: trace bitmap index dmlORA-10720: trace db schedulingORA-10730: trace row level security policy predicatesORA-10731: dump SQL for CURSOR expressionsORA-10740: disables fix for bug 598861ORA-10800: disable Smart Disk scanORA-10801: enable Smart Disk traceORA-10802: reserved for Smart DiskORA-10803: write timing statistics on OPS recovery scanORA-10804: reserved for ksxbORA-10805: reserved for row source sortORA-10806: Switch to 7.3 mode when detaching sessionsORA-10807: Disable user id check when switching to a global transactionORA-10850: Enable time manager tracingORA-10851: Allow Drop command to drop queue tablesORA-10852: Enable dumping of the AQ statistics hash tableORA-10853: event for AQ statistics latch cleanup testingORA-10856: Disable AQ propagator from using streamingORA-10857: Force AQ propagator to use two-phase commitORA-10858: Crash the AQ propagator at different stages of commitORA-10859: Disable updates of message retry countORA-10860: event for AQ admin disable new name parserORA-10861: disable storing extended message propertiesORA-10900: extent manager fault insertion event #ORA-10902: disable seghdr conversion for ro operationORA-10903: Force tablespaces to become locally managedORA-10904: Allow locally managed tablespaces to have user allocationORA-10905: Do cache verification (kcbcxx) on extent allocationORA-10924: import storage parse error ignore eventORA-10925: trace name context foreverORA-10926: trace name context foreverORA-10927: trace name context foreverORA-10928: trace name context foreverORA-10929: trace name context foreverORA-10930: trace name context foreverORA-10931: trace name context foreverORA-10932: trace name context foreverORA-10933: trace name context foreverORA-10934: Reserved.  Used only in version 7.x.ORA-10935: Reserved.  Used only in version 7.x.ORA-10936: trace name context foreverORA-10937: trace name context foreverORA-10938: trace name context foreverORA-10939: trace name context foreverORA-10940: trace name context foreverORA-10941: trace name context foreverORA-10942: trace name context foreverORA-10943: trace name context foreverORA-10975: trace execution of parallel propagationORA-10976: internal package related tracingORA-10977: trace event for RepAPIORA-10979: trace flags for join index implementationORA-10980: prevent sharing of parsed query during Materialized View query generationORA-10981: dscn computation-related event in replicationORA-10999: do not get database enqueue name
 楼主| 发表于 2006/6/14 08:31:29 | 显示全部楼层
输出的结果放在这里有点乱,在pl/sql里直接执行上面的语句比较清楚。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/29 16:58 , Processed in 0.018068 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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