91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

通過外部表的方式訪問alert日志

發布時間:2020-04-04 23:37:08 來源:網絡 閱讀:329 作者:bsbforever 欄目:關系型數據庫
通過外部表的方式把alert日志文件映射到一個虛擬的表中
轉自:http://www.jb51.net/article/34590.htm
1、查看操作系統版本 
SQL> select * from v$version; 
BANNER 
---------------------------------------------------------------- 
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod 
PL/SQL Release 10.2.0.1.0 - Production 
CORE 10.2.0.1.0 Production 
TNS for Linux: Version 10.2.0.1.0 - Production 
NLSRTL Version 10.2.0.1.0 - Production 
SQL> 

2、查看預警日志文件(alert_sid.log)的位置 
SQL> show parameter dump 
NAME TYPE VALUE 
------------------------------------ ----------- ------------------------------ 
background_core_dump string partial 
background_dump_dest string /u01/oracle/admin/bdump 
core_dump_dest string /u01/oracle/admin/cdump 
max_dump_file_size string 10240 
shadow_core_dump string partial 
user_dump_dest string /u01/oracle/admin/udump 

3、創建目錄alert 
注意:directory不是實體,只是一個指向,指向os中一個路徑 
SQL> create or replace directory alert as '/u01/oracle/admin/bdump'; 
Directory created. 
SQL> 

4、創建外部表alert 
SQL> create table alert 
1 (log varchar2(1000)) 
2 organization external 
3 (type oracle_loader 
4 default directory alert 
5 access parameters 
6 (records delimited by newline) 
7 location ('alert_PROD.log')) 
8 reject limit unlimited; 
Table created. 

5、查看alert中的內容 
SQL> select * from alert where rownum<20; 
LOG 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
Wed Feb 27 11:05:11 2013 
Starting ORACLE instance (normal) 
Cannot determine all dependent dynamic libraries for /proc/self/exe 
Unable to find dynamic library libocr10.so in search paths 
RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/: 
LD_LIBRARY_PATH is not set! 
The default library directories are /lib and /usr/lib 
Unable to find dynamic library libocrb10.so in search paths 
Unable to find dynamic library libocrutl10.so in search paths 
Unable to find dynamic library libocrutl10.so in search paths 
LICENSE_MAX_SESSION = 0 
LICENSE_SESSIONS_WARNING = 0 
Picked latch-free SCN scheme 2 
Using LOG_ARCHIVE_DEST_1 parameter default value as /u01/oracle/product/10.2.0/db_1/dbs/arch 
Autotune of undo retention is turned on. 
IMODE=BR 
ILAT =10 
LICENSE_MAX_USERS = 0 
SYS auditing is disabled 
19 rows selected. 
SQL> 

6、看看數據庫有哪些 可愛的ORA- 錯誤吧 
SQL> select * from alert where log like '%ORA-%'; 
LOG 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
ORA-959 signalled during: alter database default tablespace users... 
ORA-959 signalled during: drop tablespace uses... 
ORA-12919 signalled during: drop tablespace users... 
ORA-1549 signalled during: drop tablespace users... 
ORA-1505 signalled during: alter database add logfile group 1 
ORA-1184 signalled during: alter database add logfile group 1 
ORA-1013 signalled during: alter tablespace tts read only... 
ORA-1013 signalled during: alter tablespace tts read only... 
ORA-1013 signalled during: alter tablespace users read only... 
ORA-1539 signalled during: alter tablespace users read only...
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

尖扎县| 密山市| 吴忠市| 车险| 邹城市| 新丰县| 南通市| 牙克石市| 巴里| 邮箱| 峡江县| 江华| 德安县| 平安县| 金湖县| 久治县| 砀山县| 威远县| 达孜县| 琼海市| 朝阳区| 临西县| 和林格尔县| 濮阳市| 望城县| 延边| 澄城县| 西和县| 扎囊县| 剑河县| 万全县| 泽库县| 利辛县| 海淀区| 德昌县| 兴国县| 博罗县| 长沙县| 新建县| 武夷山市| 双柏县|