在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

expdp ORA

108次阅读
没有评论

共计 5651 个字符,预计需要花费 15 分钟才能阅读完成。

本篇文章给大家分享的是有关 expdp ORA-31626: job does not exist 的解决及分析过程是怎样的,丸趣 TV 小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着丸趣 TV 小编一起来看看吧。

问题描述:在执行数据库备份时报 ORA-31626: job does not exist 错误,详细错误信息如下所示:

[root@localhost backup]# /home/oracle/backup.sh

Starting bakup…

Bakup file path /backup

Export: Release 11.2.0.4.0 – Production on Mon Oct 23 11:20:37 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

ORA-31626: job does not exist

Delete the file bakup before 15 days…

Delete the file bakup successfully.

Bakup completed.

在网上搜索类似错误信息,执行以下 sql 脚本。

@?/rdbms/admin/catalog.sql

@?/rdbms/admin/catproc.sql

执行完之后,错误依旧,所以原因不是升级导致的数据字典信息不一致造成的,从字面理解该错误信息,是 job 不存在,通过执行备份脚本跟踪发现,执行备份脚本时,会创建相关的 job 及会话信息,监控告警日志信息如下:

DM00 started with pid=121, OS id=22111, job SYSTEM.SYS_EXPORT_FULL_06

所以 expdp 本身执行过程是没有问题的,结合告警日志中提示:Restarting dead background process QMNC,可能问题出现在 qmnc 或者 jnnn 进程上,检查系统数据库后台进程,如下所示:

[oracle@localhost ~]$ ps -ef | grep ora_

oracle  12877  1  0 Oct11 ?  00:01:30 ora_smco_sltwzdb

oracle  27283  1  0 Mar12 ?  00:43:33 ora_pmon_sltwzdb

oracle  27285  1  0 Mar12 ?  00:39:31 ora_psp0_sltwzdb

oracle  27287  1  0 Mar12 ?  00:45:05 ora_vktm_sltwzdb

oracle  27291  1  0 Mar12 ?  00:07:21 ora_gen0_sltwzdb

oracle  27293  1  0 Mar12 ?  00:13:07 ora_diag_sltwzdb

oracle  27295  1  0 Mar12 ?  00:38:05 ora_dbrm_sltwzdb

oracle  27297  1  0 Mar12 ?  16:52:06 ora_dia0_sltwzdb

oracle  27299  1  0 Mar12 ?  00:07:57 ora_mman_sltwzdb

oracle  27301  1  0 Mar12 ?  00:31:36 ora_dbw0_sltwzdb

oracle  27303  1  0 Mar12 ?  01:25:22 ora_lgwr_sltwzdb

oracle  27305  1  0 Mar12 ?  02:08:36 ora_ckpt_sltwzdb

oracle  27307  1  0 Mar12 ?  01:03:43 ora_smon_sltwzdb

oracle  27310  1  0 Mar12 ?  00:02:41 ora_reco_sltwzdb

oracle  27316  1  0 Mar12 ?  00:03:04 ora_d000_sltwzdb

oracle  27318  1  0 Mar12 ?  00:02:56 ora_s000_sltwzdb

oracle  29939 29616  0 11:13 pts/3  00:00:00 grep ora_

未看到有 qmnc 和 jnnn 进程,我们先来看一下官方文档对于这 2 个后台进程的描述:

QMNC is responsible for facilitating various background activities required by AQ and Oracle Streams: time management of messages, management of nonpersistent queues, cleanup of resources, and so on. QMNC dynamically spawns Qnnn processes as needed for performing these tasks.

Note that if the AQ_TM_PROCESSES initialization parameter is set to 0, this process will not start. The database writes the following message to the alert log: WARNING: AQ_TM_PROCESSES is set to 0. System might be adversely affected.

Qnnn acts as a slave process for QMNC and carry out tasks assigned by QMNC. The number of these processes is dynamically managed by QMNC based on load.

Jnnn:Job slave processes are created or awakened by the job coordinator when it is time for a job to be executed.

Job slaves gather all the metadata required to run the job from the data dictionary. The slave processes start a database session as the owner of the job, execute triggers, and then execute the job. After the job is complete, the slave processes commit and then execute appropriate triggers and close the session. The slave can repeat this operation in case additional jobs need to be run.

可以看到,QMNC 负责协助 AQ 和 Oracle Streams 所需的各种背景活动:消息的时间管理,非持久性队列的管理,资源清理等。而 Jnnn 进程是执行作业的子进程,是由作业调度器唤醒的。我们在执行 expdp 时,作业调度已经完成,但是由于 QMNC 及 Qnnn 进程异常,调度作业无法进入消息队列。反过来就是说作业进程在消息队列中查找相关作业时,是查不到的,所以会出现执行 expdp 时作业不存在的错误信息。根据官网对 QMNC 的描述,我们先检查 AQ_TM_PROCESSES 进程的值:

SQL show parameter aq

NAME  TYPE  VALUE

———————————— ———– ——————————

aq_tm_processes  integer  1

AQ_TM_PROCESSES 进程的值是 1,也是说 QMNC 是异常结束的,不是由于配置而导致的进程未能启动,尝试通过更改 AQ_TM_PROCESSES 参数的值来唤醒 QMNC 进程:

SQL alter system set aq_tm_processes=0;

System altered.

SQL

SQL alter system set aq_tm_processes=1;

System altered.

SQL show parameter process

NAME  TYPE  VALUE

———————————— ———– ——————————

aq_tm_processes  integer  1

通过检查数据库后台进程,QMNC 进程依然不存在,所以该问题只能通过重启数据库的方式,将 QMNC 进程启动起来。

重启完成后,检查数据库进程,如下所示:

oracle  10768  1  0 Oct25 ?  00:00:08 ora_pmon_sltwzdb

oracle  10770  1  0 Oct25 ?  00:00:06 ora_psp0_sltwzdb

oracle  10773  1  0 Oct25 ?  00:00:08 ora_vktm_sltwzdb

oracle  10777  1  0 Oct25 ?  00:00:01 ora_gen0_sltwzdb

oracle  10779  1  0 Oct25 ?  00:00:02 ora_diag_sltwzdb

oracle  10781  1  0 Oct25 ?  00:00:07 ora_dbrm_sltwzdb

oracle  10783  1  0 Oct25 ?  00:02:56 ora_dia0_sltwzdb

oracle  10785  1  0 Oct25 ?  00:00:03 ora_mman_sltwzdb

oracle  10787  1  0 Oct25 ?  00:00:07 ora_dbw0_sltwzdb

oracle  10789  1  0 Oct25 ?  00:00:08 ora_lgwr_sltwzdb

oracle  10791  1  0 Oct25 ?  00:00:24 ora_ckpt_sltwzdb

oracle  10793  1  0 Oct25 ?  00:00:05 ora_smon_sltwzdb

oracle  10795  1  0 Oct25 ?  00:00:00 ora_reco_sltwzdb

oracle  10797  1  0 Oct25 ?  00:03:01 ora_mmon_sltwzdb

oracle  10799  1  0 Oct25 ?  00:02:58 ora_mmnl_sltwzdb

oracle  10801  1  0 Oct25 ?  00:00:00 ora_d000_sltwzdb

oracle  10803  1  0 Oct25 ?  00:00:00 ora_s000_sltwzdb

oracle  10813  1  0 Oct25 ?  00:00:00 ora_qmnc_sltwzdb

oracle  10827  1  0 Oct25 ?  00:00:07 ora_cjq0_sltwzdb

oracle  10855  1  0 Oct25 ?  00:00:00 ora_q000_sltwzdb

oracle  10918  1  0 Oct25 ?  00:00:00 ora_q002_sltwzdb

oracle  10965  1  0 Oct25 ?  00:00:01 ora_smco_sltwzdb

oracle  17790  1  0 02:00 ?  00:00:00 ora_q001_sltwzdb

oracle  26085  1  0 10:38 ?  00:00:00 ora_w000_sltwzdb

可以看到 QMNC、Qnnn 进程已经正常启动,我们再执行 expdp 操作:

;;;

Export: Release 11.2.0.4.0 – Production on Wed Oct 23 18:57:37 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

;;;

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Starting SYSTEM . SYS_EXPORT_FULL_07 :  system/******** directory=expdp_dir dumpfile=test.dmp logfile=test.log full=y

Estimate in progress using BLOCKS method…

Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 1.014 GB

Processing object type DATABASE_EXPORT/TABLESPACE

Processing object type DATABASE_EXPORT/PASSWORD_VERIFY_FUNCTION

Processing object type DATABASE_EXPORT/PROFILE

Processing object type DATABASE_EXPORT/SYS_USER/USER

……

Expdp 执行已不再报 ORA-31626: job does not exist,该问题也会导致数据库 job 无法正常执行。

以上就是 expdp ORA-31626: job does not exist 的解决及分析过程是怎样的,丸趣 TV 小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注丸趣 TV 行业资讯频道。

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-20发表,共计5651字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 老妇肥熟凸凹丰满刺激 | 狠狠色噜噜狠狠狠狠888奇禾 | 国产97人人超碰caoprom | 久久 在线| 四虎在线观看 | 免费激情片 | 成年人电影免费在线观看 | 久久免费视频在线观看 | 亚洲av成为人电影 | 免费观看小视频 | 日日摸天天摸狠狠摸视频 | 欧美成人免费一级人片 | 日韩中文字幕电影在线观看 | 亚洲国产成人精品一区91 | 国产青青青 | 人妻av无码一区二区三区 | 人人爽人人爽人人片av免费 | 日日干夜 | 经典国产一级毛片 | 自拍 亚洲 欧美 | 亚洲高清视频在线播放 | 国产美女一区 | 国产成人精品一区二区视频 | 双乳被一左一右吃着动态图 | 日本爱爱片 | 久久99精品久久久久久 | 亚洲大片免费观看 | 狠狠色噜噜狠狠狠888米奇视频 | 尤物yw午夜国产精品视频 | 亚洲国产精品sss在线观看av | 国产精品久久久久9999高清 | 国内精品自在欧美一区 | 草草免费观看视频在线 | 欧美一级专区免费大片野外交 | 午夜男女刺激爽爽影院 | 99re6在线视频免费精品 | 久久久受www免费人成 | 韩国一级淫片视频免费播放 | 免费 欧美 自拍 在线观看 | 操你妹影视 | 日本a级视频在线播放 |