To Bottom |
In this Document
APPLIES TO:Oracle Database - Enterprise Edition - Version 10.1.0.2 and laterOracle Database Cloud Schema Service - Version N/A and later Oracle Database Exadata Cloud Machine - Version N/A and later Oracle Cloud Infrastructure - Database Service - Version N/A and later Oracle Database Cloud Exadata Service - Version N/A and later Information in this document applies to any platform. ***Checked for relevance on 09-Apr-2013*** GOALThe goal of this document is to demonstrate how a running Datapump job can be stopped. $ nohup expdp parfile=test.par &
SOLUTIONTo stop the running job the name of the job must first be retrieved. This can be done using: connect / as sysdba
select owner_name, job_name from dba_datapump_jobs;
$ expdp scott/<PASSWORD> attach=test
Export: Release 11.2.0.1.0 - Production on Sat Oct 24 12:47:28 2009 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Job: TEST Owner: TEST Operation: EXPORT Creator Privs: TRUE GUID: 76AA1EE3F300E784E040B10A543B0825 Start Time: Saturday, 24 October, 2009 12:47:28 Mode: SCHEMA Instance: ORA11GR2 Max Parallelism: 0 EXPORT Job Parameters: Parameter Name Parameter Value: CLIENT_COMMAND scott/<PASSWORD> parfile=test.par State: DEFINING Bytes Processed: 0 Job Error Count: 0 Dump File: /<DIRECTORY_PATH>/test_23oct_rr.dmp bytes written: 4,096 Export>
Export> stop_job=immediate
Are you sure you wish to stop this job ([yes]/no): yes <<==
SQL> select job_name,state from dba_datapump_jobs;
JOB_NAME STATE --------------------- ------------------------- TEST NOT RUNNING
|