跟踪事件(转帖)和linux-oerr

看到一篇文章,输出tracing events,在此记录。
[sql]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;[/sql]
另外记录下自己老是会忘记的一个linux下的查询oracle错误command,有了这个command,就不用老是去查找手册了。
[oracle@crmdb2 ~]$ oerr ora-1
Usage: oerr facility error

Facility is identified by the prefix string in the error message.
For example, if you get ORA-7300, "ora" is the facility and "7300"
is the error. So you should type "oerr ora 7300".

If you get LCD-111, type "oerr lcd 111", and so on.
[oracle@crmdb2 ~]$ oerr ora 10046
10046, 00000, "enable SQL statement timing"
// *Cause:
// *Action:
[oracle@crmdb2 ~]$ oerr ora 03114
03114, 00000, "not connected to ORACLE"
// *Cause:
// *Action:
[oracle@crmdb2 ~]$
-The End-

你可能感兴趣的:(跟踪事件(转帖)和linux-oerr)