利用外部表查询alert日志中的ora错误
SQL> show parameter dump
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
background_core_dump string partial
background_dump_dest string /oracle/oracle/diag/rdbms/orcldb/orcldb1/trace
core_dump_dest string /oracle/oracle/diag/rdbms/orcldb/orcldb1/cdump
max_dump_file_size string unlimited
shadow_core_dump string partial
user_dump_dest string /oracle/oracle/diag/rdbms/orcldb/orcldb1/trace
SQL> create directory alert as'/oracle/oracle/diag/rdbms/orcldb/orcldb1/trace';
SQL> grant read,write on directory alert to public;
Grant succeeded.
SQL> desc dba_directories
Name Null? Type
----------------------------------------------------- -------- ------------------------------------
OWNER NOT NULL VARCHAR2(30)
DIRECTORY_NAME NOT NULL VARCHAR2(30)
DIRECTORY_PATH VARCHAR2(4000)
SQL> col OWNER for a30
SQL> col DIRECTORY_NAME for a30
SQL> col DIRECTORY_PATH for a100
SQL> select * from dba_directories where DIRECTORY_NAME='ALERT';
OWNER DIRECTORY_NAME DIRECTORY_PATH
SYS ALERT /oracle/oracle/diag/rdbms/orcldb/orcldb1/trace
SQL> !
[oracle@linux01 ~]$ cd /oracle/oracle/diag/rdbms/orcldb/orcldb1/trace
[oracle@linux01 trace]$ ls
alert_orcldb1.log orcldb1_gen0_4646.trc orcldb1_lms0_4701.trm orcldb1_p000_4882.trc orcldb1_rsmn_4802.trm
orcldb1_asmb_4737.trc orcldb1_gen0_4646.trm orcldb1_lms1_4666.trc orcldb1_p000_4882.trm orcldb1_vkrm_10819.trc
orcldb1_asmb_4737.trm orcldb1_j000_22025.trc orcldb1_lms1_4666.trm orcldb1_p001_4884.trc orcldb1_vkrm_10819.trm
orcldb1_cjq0_4949.trc orcldb1_j000_22025.trm orcldb1_lms1_4705.trc orcldb1_p001_4884.trm orcldb1_vkrm_18720.trc
orcldb1_cjq0_4949.trm orcldb1_j005_4968.trc orcldb1_lms1_4705.trm orcldb1_p002_4886.trc orcldb1_vkrm_18720.trm
orcldb1_dbrm_4650.trc orcldb1_j005_4968.trm orcldb1_mark_4747.trc orcldb1_p002_4886.trm orcldb1_vkrm_18893.trc
orcldb1_dbrm_4650.trm orcldb1_lck0_4787.trc orcldb1_mark_4747.trm orcldb1_ping_4685.trc orcldb1_vkrm_18893.trm
orcldb1_dbrm_4683.trc orcldb1_lck0_4787.trm orcldb1_mman_4715.trc orcldb1_ping_4685.trm orcldb1_vktm_4675.trc
orcldb1_dbrm_4683.trm orcldb1_lmd0_4695.trc orcldb1_mman_4715.trm orcldb1_q001_4912.trc orcldb1_vktm_4675.trm
orcldb1_dbw0_4717.trc orcldb1_lmd0_4695.trm orcldb1_mmon_4690.trc orcldb1_q001_4912.trm orcldb1_w000_17178.trc
orcldb1_dbw0_4717.trm orcldb1_lmhb_4711.trc orcldb1_mmon_4690.trm orcldb1_qmnc_4908.trc orcldb1_w000_17178.trm
orcldb1_dia0_4691_base_1.trc orcldb1_lmhb_4711.trm orcldb1_mmon_4739.trc orcldb1_qmnc_4908.trm orcldb1_w001_20637.trc
orcldb1_dia0_4691_base_1.trm orcldb1_lmon_4693.trc orcldb1_mmon_4739.trm orcldb1_rcbg_4906.trc orcldb1_w001_20637.trm
orcldb1_dia0_4691.trc orcldb1_lmon_4693.trm orcldb1_ora_4610.trc orcldb1_rcbg_4906.trm
orcldb1_dia0_4691.trm orcldb1_lms0_4662.trc orcldb1_ora_4610.trm orcldb1_rms0_4709.trc
orcldb1_diag_4681.trc orcldb1_lms0_4662.trm orcldb1_ora_4804.trc orcldb1_rms0_4709.trm
orcldb1_diag_4681.trm orcldb1_lms0_4701.trc orcldb1_ora_4804.trm orcldb1_rsmn_4802.trc
[oracle@linux01 trace]$ exit
SQL> create table db_alert
2 (log varchar2(4000))
3 organization external
4 (type oracle_loader
5 default directory alert
6 access parameters
7 (records delimited by newline
8 nobadfile
9 nodiscardfile
10 nologfile
11 )
12 location ('alert_orcldb1.log'))
13 reject limit unlimited;
Table created.
SQL> select * from db_alert where log like '%ORA-%';
LOG
ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00313: open failed for members of log group 2 of thread 1
Non critical error ORA-48113 caught while writing to trace file "/oracle/oracle/diag/rdbms/orcldb/orcldb1/trace/orcldb1_dbrm_7968.trc"
Non critical error ORA-48181 caught while writing to trace file "/oracle/oracle/diag/rdbms/orcldb/orcldb1/trace/orcldb1_ora_32461.trc"
Non critical error ORA-48181 caught while writing to trace file "/oracle/oracle/diag/rdbms/orcldb/orclMon Mar 21 21:59:57 2016
10 rows selected.
利用外部表查询alert日志中的ora错误的更多相关文章
- 外部表查询时出现ORA-29913和ORA-29400错误
create table t_ext_tab(id char(1),name char(6)) organization external( type oracle_loader default di ...
- ALERT日志中常见监听相关报错之三:ORA-609 TNS-12537 and TNS-12547 or TNS-12170 TNS-12535错误的排查
1.11G中ALERT日志中有报错ORA-609 TNS-12537 and TNS-12547 or TNS-12170 12170, 'TNS-12535等问题的解决方法: Troublesho ...
- oracle 外部表查alter日志
--创建文件夹,路径是alter日志的路径 create or replace directory data_dir as '/u01/app/oracle/diag/rdbms/orcl/orcl/ ...
- ALERT日志中常见监听相关报错之中的一个:ORA-609错误的排查
參考MOS文档有: Troubleshooting Guide ORA-609 : Opiodr aborting process unknown ospid (文档 ID 1121357.1) Al ...
- mapper语句的一些问题,union连表查询和mapper中根据条件不同采用不同语句的查询问题
根据业务要求,不同表查出来的内容天需要一起展示出来,并且还有分页之类的,不同表查询字段也不完全相同,这样就有一个问题,不同表如何接合在一起,不同字段怎么办? 这个问题就需要用到union联合查询,并将 ...
- Monkey日志中如何找错误
无响应问题可以在日志中搜索 “ANR” ,崩溃问题搜索 “CRASH” ,内存泄露问题搜索"GC"(需进一步分析),异常问题搜索 “Exception” monkey执行时未 ...
- 利用SQL语句查询一个数据库中的所有表
SQL : select * from information_schema.tables ORACLE: select table_name from user_tables ACCESS: s ...
- 在hibernate3中如何利用HQL语句查询出对象中的部分数据并且返回该对象?
例如现在有一个Customer对象 public class Customer{ private Integer cid; private String cname; private Integer ...
- ALERT日志中常见监听相关报错之二:ORA-3136错误的排查
最近在多个大型系统中遇到此问题,一般来说假设client未反映异常的话能够忽略的. 假设是client登陆时遇到ORA-12170: TNS:Connect timeout occurred,能够參考 ...
随机推荐
- RGB与HSV颜色空间
RGB颜色空间 1.三基色原理:大多数的颜色可以通过红.绿.蓝三色按照不同的比例合成产生,同样绝大多数单色光也可以分解成红绿蓝三种色光 红绿蓝三基色按照不同的比例相加合成混色称为相加混色.其中一 ...
- css中的背景、边框、补丁相关属性
css中的背景.边框.补丁相关属性 关于背景涉及到背景颜色与背景图片 背景颜色background-color即可设定: 背景图片background-image即可设定: 但是背景图片还涉及到其他的 ...
- linq之将IEnumerable<T>类型的集合转换为DataTable类型 (转载)
在考虑将表格数据导出成excel的时候,网上搜的时候找到一个特别合适的公共方法,可以将query查询出来的集合转换为datatable 需引用using System.Reflection; publ ...
- php 屏蔽NOTICE报错机制代码
error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT^E_NOTICE
- 用js判断页面刷新或关闭的方法
Onunload,onbeforeunload都是在刷新或关闭时调用,可以在<script>脚本中通过window.onunload来指定或者在<body>里指定.区别在于on ...
- el表达式无法获取springmvc的model封装好的数据之解决方法
近日碰到奇怪的问题,应该挺好解决的,可是就是卡住我两天 下面我来描述一下问题 用的是springmvc,自然需要controller,假设我现在所有的配置都是对的. controller代码 @Req ...
- 在线markdown编辑器
https://www.zybuluo.com/mdeditor http://mahua.jser.me/
- linux for循环更改文件名字
#!/bin/bash # for a in CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo Ce ...
- spring mvc 参数
Struts(表示层)+Spring(业务层)+Hibernate(持久层) Struts: Struts是一个表示层框架,主要作用是界面展示,接收请求,分发请求. 在MVC框架中,Struts属于V ...
- css3 打勾 打叉
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...