易截截图软件、单文件、免安装、纯绿色、仅160KB

Oracle Job 不执行

关于Oracle Job 不执行
2008-11-11 19:48
我们用的生产环境Job是可以正常执行的,但是在测试环境是不可以执行的
在网上查了一下原因如下
SQL> show parameter job
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
job_queue_processes                  integer     0
job_queue_processes 这个参数设置成了0,可以通过语句
ALTER SYSTEM SET JOB_QUEUE_PROCESSES = 10
来解决
另外,看了一下Eygle的文章也有帮助,下面是链接过来的文章
转自:http://www.eygle.com/archives/2004/11/job_can_not_execute_auto.html
昨天接到研发人员报告,数据库定时任务未正常执行,导致某些操作失败。
开始介入处理该事故.
系统环境:
SunOS DB 5.8 Generic_108528-21 sun4u sparc SUNW,Ultra-4
Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
1.首先介入检查数据库任务
$ sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.3.0 - Production on Wed Nov 17 20:23:53 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.3.0 - Production
SQL> select job,last_date,last_sec,next_date,next_sec,broken,failures from dba_jobs;
JOB LAST_DATE LAST_SEC NEXT_DATE NEXT_SEC B FAILURES INTERVAL
---------- --------- ---------------- --------- ---------------- - ---------- ----------------------------
31 16-NOV-04 01:00:02 17-NOV-04 01:00:00 N 0 trunc(sysdate+1)+1/24
27 16-NOV-04 00:00:04 17-NOV-04 00:00:00 N 0 TRUNC(SYSDATE) + 1
35 16-NOV-04 01:00:02 17-NOV-04 01


相关文档:

Oracle临时表的建立及使用....

在Oracle8i或以上版本中,可以创建以下两种临时表:    
  1。会话特有的临时表    
          CREATE   GLOBAL   TEMPORARY   <TABLE_NAME>   (<column   specification>)    
        &nbs ......

oracle keep(first/last)


 先看一段ORACLE官方文档
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96520/analysis.htm#25806:
FIRST/LAST Functions
The FIRST/LAST aggregate functions allow you to return the result of an aggregate applied over a set of rows that rank as the first or last with respect to a ......

Oracle Logminer

Logminer是oracle从8i开始提供的用于分析重做日志信息的工具,它包括DBMS_LOGMNR和DBMS_LOGMNR_D两个package,后边的D是字典的意思。它既能分析redo log file,也能分析归档后的archive log file。在分析日志的过程中需要使用数据字典,一般先生成数据字典文件后使用,10g以后的版本还可以使用在线数据字典。
Logminer可以 ......

Oracle时间日期操作

Oracle时间日期操作
sysdate+(5/24/60/60) 在系统时间基础上延迟5秒
sysdate+5/24/60 在系统时间基础上延迟5分钟
sysdate+5/24 在系统时间基础上延迟5小时
sysdate+5 在系统时间基础上延迟5天
add_months(sysdate,-5) 在系统时间基础上延迟5月
add_months(sysdate,-5*12) 在系统时间基础上延迟5年
上月末的日期:sel ......

oracle里常用命令

第一章:日志管理
1.forcing log switches
sql> alter system switch logfile;
2.forcing checkpoints
sql> alter system checkpoint;
3.adding online redo log groups
sql> alter database add logfile [group 4]
sql> ('/disk3/log4a.rdo','/disk4/log4b.rdo') size 1m;
4.adding online re ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号