Home Database Oracle Where can I see the error message of Oracle scheduled task execution?

Where can I see the error message of Oracle scheduled task execution?

Apr 19, 2024 am 05:48 AM
oracle linux

Oracle scheduled task execution error information can be viewed in the following locations: job log (job_log) job scheduler log (scheduler_job_log) database alert log (alert_log.log) job queue job (job_queue_jobs) DBMS_SCHEDULER.GET_JOB_LOG package

Where can I see the error message of Oracle scheduled task execution?

Oracle scheduled task execution error information location

Oracle The error information generated during the execution of scheduled tasks can be viewed at the following location :

1. View the job log (job_log)

SELECT
  JOB_NAME,
  LOG_DATE,
  STATUS,
  LOG_DETAILS
FROM
  DBA_JOBS_LOG
WHERE
  JOB_NAME = '<作业名称>';
Copy after login

2. View the job scheduler log (scheduler_job_log)

SELECT
  SCHEDULER_JOB_NAME,
  RUN_DATE,
  STATUS,
  LOG_DETAILS
FROM
  DBA_SCHEDULER_JOB_LOG
WHERE
  SCHEDULER_JOB_NAME = '<作业名称>';
Copy after login

3. Check the database alarm log (alert_log.log)

If the error message is serious, it may be recorded in the database alarm log. By default, the alarm log is located in the following path:

  • ##Unix/Linux: /oracle//admin//bdump/< ;oracle_sid>.log
  • ##Windows:
  • ...\Oracle\diag\rdbms\\\trace
4. View job queue jobs (job_queue_jobs)

SELECT
  JOB_NAME,
  QUEUE_NAME,
  STATUS,
  MESSAGE
FROM
  DBA_JOB_QUEUE_JOBS
WHERE
  JOB_NAME = '<作业名称>';
Copy after login

5. Use the DBMS_SCHEDULER.GET_JOB_LOG package

<code>DECLARE
  jlob DBMS_LOB.CLOB;
BEGIN
  DBMS_SCHEDULER.GET_JOB_LOG(
    '作业名称',
    jlob
  );
  -- 将 CLOB 中的数据导出为字符串
  DBMS_OUTPUT.PUT_LINE(DBMS_LOB.SUBSTR(
    jlob,
    1,
    DBMS_LOB.GETLENGTH(jlob)
  ));
END;
/</code>
Copy after login

The above is the detailed content of Where can I see the error message of Oracle scheduled task execution?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1268
29
C# Tutorial
1246
24
Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

How to check the warehouse address of git How to check the warehouse address of git Apr 17, 2025 pm 01:54 PM

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

How to run java code in notepad How to run java code in notepad Apr 16, 2025 pm 07:39 PM

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

How to run sublime after writing the code How to run sublime after writing the code Apr 16, 2025 am 08:51 AM

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

laravel installation code laravel installation code Apr 18, 2025 pm 12:30 PM

To install Laravel, follow these steps in sequence: Install Composer (for macOS/Linux and Windows) Install Laravel Installer Create a new project Start Service Access Application (URL: http://127.0.0.1:8000) Set up the database connection (if required)

git software installation git software installation Apr 17, 2025 am 11:57 AM

Installing Git software includes the following steps: Download the installation package and run the installation package to verify the installation configuration Git installation Git Bash (Windows only)

MongoDB vs. Oracle: Choosing the Right Database for Your Needs MongoDB vs. Oracle: Choosing the Right Database for Your Needs Apr 22, 2025 am 12:10 AM

MongoDB is suitable for unstructured data and high scalability requirements, while Oracle is suitable for scenarios that require strict data consistency. 1.MongoDB flexibly stores data in different structures, suitable for social media and the Internet of Things. 2. Oracle structured data model ensures data integrity and is suitable for financial transactions. 3.MongoDB scales horizontally through shards, and Oracle scales vertically through RAC. 4.MongoDB has low maintenance costs, while Oracle has high maintenance costs but is fully supported.

See all articles