Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to stop and restart the data pump task in the database

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article is about how to stop the task of restarting the data pump in the database. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Find the corresponding job through the dba_datapump_jobs view. If the attach,attach parameter value is specified, it is job_name.

Select owner, job_name,state from dba_datapump_jobs

Ctrl c stop the data pump command, in interactive mode, use the stop_job=immediate command to stop the data pump task

...

Processing object type DATABASE_EXPORT/RESOURCE_COST

Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK

Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE

Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/GRANT/OWNER_GRANT/OBJECT_GRANT

^ C

Export > stop_job

Are you sure you wish to stop this job ([yes] / no): yes

At this point, the status of the data pump task in the view changes, but the task may still be executing, because the task process will not stop until all clients receive the task abort message. There is no risk of data loss using STOP_JOB=IMMEDIATE, and the yirestart task can do the rest of the work.

> expdp scott/tiger

Export: Release 11.2.0.3.0-Production on Sat Jul 15 02:23:26 2017

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

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0-64bit Production

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

Starting "SCOTT". "SYS_EXPORT_SCHEMA_04": scott/*

Estimate in progress using BLOCKS method...

Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 385 MB

Processing object type SCHEMA_EXPORT/USER

Processing object type SCHEMA_EXPORT/SYSTEM_GRANT

Processing object type SCHEMA_EXPORT/ROLE_GRANT

...

Because attach is not used, the default job is the same as the previous job

Thank you for reading! This is the end of the article on "how to stop restarting the data pump task in the database". I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report