Oracle 作業設定完不執行解決

來源:互聯網
上載者:User

標籤:

  

 

 在日常的工作當中,已經幾次遇到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 作業設定完不執行解決

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.