select XX_id
from tiantiantian
where sum_date=20110420
and XX_status <30
and XX_type in (1009, 1008, 1003, 1011)
and XX_date >to_date(20110420, 'yyyymmdd')
and not exists(
select xx_id from dididi
where sum_date=20110420
and XX_status <30
and XX_type in (1009, 1008, 1003, 1011)
and XX_date >to_date(20110420, 'yyyymmdd'))
--B:
select XX_id
from dididi
where sum_date=20110420
and XX_status <30
and XX_type in (2001)
and XX_date >to_date(20110420, 'yyyymmdd')
and not exists(
select xx_id from tiantiantian
where sum_date=20110420
and XX_status <30
and XX_type in (2001)
and XX_date >to_date(20110420, 'yyyymmdd'))
你说的是alert日志中过滤错误吧。oracle错误,大部分以ORA-开头,可以考虑利用awk寻找。
当然有些也有ERROR字样,所以一般为这二者.
比如,cat alert_sid.log| awk ORA-等。
当然具体的是不是报错还需要核实,而且这种写法也比较浪费,仅仅是举个例子而已。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)