91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Oracle 數據泵終止任務

發布時間:2020-08-10 16:21:50 來源:ITPUB博客 閱讀:168 作者:DBhanG 欄目:關系型數據庫

當我們在生產環境下,不小心觸發了邏輯備份(expdp),可能會造成IO阻塞,影響生產業務

那么如何終止expdp導出任務呢

手動執行全庫導出腳本:

[oracle @server1 ~]$ ./expdp.sh

查看進程信息:
[root @server1 ~]# ps -ef | grep expdp
oracle 3233 2842 0 04:58 pts/1 00:00:00 /bin/bash ./expdp.sh
oracle 3247 3233 0 04:58 pts/1 00:00:00 expdp sysdba’ directory=dump_file dumpfile=prod_20200803.dmp log=prod_20200803.log full=y compression=ALL
root 3254 3081 0 04:58 pts/3 00:00:00 grep expdp

[root @server1 ~]# kill -9 3247

./expdp.sh: line 13: 3247 Killed expdp \’/as sysdba\’ directory=dump_file dumpfile=$FILE_NAME log=$FILE_LOG full=y compression=ALL

數據量還是在增長:(kill發送信號量無法終止expdp導出任務)

[oracle @server1 backup]$ du -sh
1.2G prod
48M prod_20200803.dmp
104K prod_20200803.log
[oracle @server1 backup]$ du -sh

1.2G prod
50M prod_20200803.dmp
104K prod_20200803.log
[oracle @server1 backup]$ du -sh *
1.2G prod
54M prod_20200803.dmp
108K prod_20200803.log

查詢數據泵作業:
SQL> select job_name,state,owner_name from dba_datapump_jobs;

JOB_NAME STATE OWNER_NAME


SYS_EXPORT_FULL_01 EXECUTING SYS

[oracle @server1 ~]$ expdp \’/ as sysdba\’ attach= SYS_EXPORT_FULL_01

Export: Release 11.2.0.4.0 - Production on Mon Aug 3 05:03:13 2020

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

Job: SYS_EXPORT_FULL_01
Owner: SYS
Operation: EXPORT
Creator Privs: TRUE
GUID: ABEC566151380D0DE05379C7A8C00DBB
Start Time: Monday, 03 August, 2020 5:02:18
Mode: FULL
Instance: prod
Max Parallelism: 1
EXPORT Job Parameters:
Parameter Name Parameter Value:
CLIENT_COMMAND “/ ** AS SYSDBA” directory=dump_file dumpfile=prod_20200803.dmp logfile=prod_20200803.log full=y reuse_dumpfiles=true
State: EXECUTING
Bytes Processed: 0
Current Parallelism: 1
Job Error Count: 0
Dump File: /backup/prod_20200803.dmp
bytes written: 4,096

Worker 1 Status:
Process Name: DW00
State: EXECUTING
Object Schema: APEX_030200
Object Name: WWV_FLOW_FL_CH_IDX
Object Type: DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEX
Completed Objects: 1,466
Worker Parallelism: 1

Export> status

Job: SYS_EXPORT_FULL_01
Operation: EXPORT
Mode: FULL
State: EXECUTING
Bytes Processed: 0
Current Parallelism: 1
Job Error Count: 0
Dump File: /backup/prod_20200803.dmp
bytes written: 4,096

Worker 1 Status:
Process Name: DW00
State: EXECUTING
Object Type: DATABASE_EXPORT/SCHEMA/VIEW/COMMENT
Completed Objects: 2,198
Total Objects: 2,198
Worker Parallelism: 1

停止數據泵作業:
Export> stop_job //或者 kill_job 該種方式會永久終止任務,并自動刪除產生的狀態表
Are you sure you wish to stop this job ([yes]/no): yes

再次查看狀態表:

SQL> select job_name,state,owner_name from dba_datapump_jobs;

JOB_NAME STATE OWNER_NAME


SYS_EXPORT_FULL_01 NOT RUNNING SYS

刪除狀態表:
SQL>drop table SYS_EXPORT_FULL_01 purge;

Table dropped.

當狀態表過多時,采用拼接刪除語句:

SQL> select ‘drop ‘ || ‘table ‘ || job_name || ‘ purge’ from dba_datapump_jobs;

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

金溪县| 仙居县| 徐闻县| 定襄县| 龙口市| 安陆市| 依安县| 固阳县| 拜城县| 深圳市| 莱阳市| 江华| 九龙城区| 苍南县| 务川| 德兴市| 镇康县| 平顶山市| 琼中| 文成县| 延津县| 都匀市| 河津市| 从化市| 天柱县| 民勤县| 定州市| 大宁县| 靖江市| 科技| 云南省| 泸西县| 南阳市| 呼伦贝尔市| 绥芬河市| 诸暨市| 安康市| 平果县| 兴业县| 长治县| 民权县|