標籤:
在日常的工作當中,已經幾次遇到Oracle資料庫 建立了新的作業但是不執行的問題。寫下來給大家分享一下。
我們日常在
dbms_job這個包建立了相關作業,但是到點也不會執行,在百度上看了一下 並且給出以下的解決方案。a、job_queue_processes參數決定了job作業能夠使用的總進程數。
b、當該參數為0值,任何job都不會被執行,建議合理設定該值且至少大於1。
c、對於job已耗用時間也應該盡量合理的設定間隔以及啟動時間。
d、如果同一時間內啟動並執行Job數很多,過小的參數值導致job不得不進行等待。而過大的參數值則消耗更多的系統資源。
f、對於存在依賴關係的job,儘可能將其進行合并到一個job中,如使用chain等。
-bash-4.1$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 12 11:35:56 2016
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter job;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
job_queue_processes integer 0
SQL> alter system set job_queue_processes =10 scope=spfile;
System altered.
SQL> create pfile from spfile;
File created.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 5.3982E+10 bytes
Fixed Size 2218032 bytes
Variable Size 2.9796E+10 bytes
Database Buffers 2.3891E+10 bytes
Redo Buffers 292569088 bytes
Database mounted.
Database opened.
Oracle 作業設定完不執行解決