Use Oracle Data Pump command line interaction mode

Source: Internet
Author: User

Use ctrl + c to exit the current status output mode. Run the following command: expdp userid/password attach = job_name to connect to the currently running import/export task. You can use job_name to specify the task name.
1. add_file = test _ % U. pmp append the dump file
2. continue_client exits the interactive mode and enters the log mode.
3. The exit_client exits the interactive mode and enters the operating system command line. The task is converted to running in the background.
4. filesize = 1G specify the size of the dump file generated
5. help list supported Command help information
6. kill_job interrupts the ongoing task
7. parallel = 4 increase the degree of Parallelism
8. stop_job: stop the current task.
9. start_job start the stopped task
10. View task status information

First, execute a full-Database Export task.

  1. [Oracle @ linux exp] $ ll
  2. Total 0
  3. [Oracle @ linux exp] $ expdp system/oracle @ orcl directory = expFull= Y job_name = expfull-- The Task Name is specified here.
  4. Export: Release 10.2.0.4.0-ProductionOnWednesday, October, 2011 19:09:08
  5. Copyright (c) 2003,200 7, Oracle.AllRights reserved.
  6. Connect to: OracleDatabase10g Enterprise Edition Release 10.2.0.4.0-Production
  7. WithThe Partitioning, OLAP, Data MiningAnd RealApplication Testing options
  8. Start"SYSTEM"."EXPFULL": System/********* @ orcl directory = expFull= Y job_name = expfull
  9. Using the BLOCKS Method for estimation...
  10. Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
  11. -- Exit the current state output mode by pressing ctrl + c.
  12. Export> status-- View the status of a task.
  13. Job: EXPFULL
  14. Operation: EXPORT
  15. Mode:FULL
  16. Status: EXECUTING
  17. Bytes processed: 0
  18. Current degree of Parallelism: 1
  19. Job error count: 0
  20. Dump File:/u01/exp/expdat. dmp
  21. Written Bytes: 4,096
  22. Worker 1 status:
  23. Status: EXECUTING
  24. Export> stop_job-- Stop a task
  25. Are you sure you want to stop this job ([Y]/N): yes
  26. [Oracle @ linux exp] $ ll
  27. Total 120
  28. -Rw-r----- 1 oracle oinstall 114688 10-05 expdat. dmp
  29. -Rw-r-- R -- 1 oracle oinstall 1551 10-05 export. log

You can view the table created by the Export task in the database.

  1. SQL> showUser
  2. USERIs"SYSTEM"
  3. SQL>Select*FromTabWhereTname ='Expfull';
  4. TNAME TABTYPE CLUSTERID
  5. -----------------------------------------------
  6. EXPFULLTABLE

Connect to the stopped task again

  1. [Oracle @ linux exp] $ expdp system/oracle @ orcl attach = expfull-- Connect to the stopped user.
  2. Export: Release 10.2.0.4.0-ProductionOnWednesday, October, 2011 19:13:14
  3. Copyright (c) 2003,200 7, Oracle.AllRights reserved.
  4. Connect to: OracleDatabase10g Enterprise Edition Release 10.2.0.4.0-Production
  5. WithThe Partitioning, OLAP, Data MiningAnd RealApplication Testing options
  6. Job: EXPFULL
  7. Owner: SYSTEM
  8. Operation: EXPORT
  9. Creator permission:FALSE
  10. GUID: AE8C3CC6E83C634BE040007F010011B4
  11. Start Time: Wednesday, October, 2011 19:13:15
  12. Mode:FULL
  13. Instance: orcl
  14. Maximum degree of Parallelism: 1
  15. EXPORT job parameters:
  16. Parameter value:
  17. CLIENT_COMMAND system/******** @ orcl directory = expFull= Y job_name = expfull
  18. Status: IDLING
  19. Bytes processed: 0
  20. Current degree of Parallelism: 1
  21. Job error count: 0
  22. Dump File:/u01/exp/expdat. dmp
  23. Written Bytes: 114,688
  24. Worker 1 status:
  25. Status: UNDEFINED
  26. Export> start_job-- Start the task.
  27. Export> continue_client-- Exit interactive mode and enter log mode.
  28. The job EXPFULL has been re-opened at, January 26, October, 2011, on Wednesday.
  29. Restart"SYSTEM"."EXPFULL": System/********* @ orcl directory = expFull= Y job_name = expfull
  30. Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
  31. ......
  32. ......
  33. ......
  34. .. Exported"SYSTEM"."SYS_EXPORT_FULL_01"13.20 MB 8951 rows
  35. The master table is successfully loaded/uninstalled."SYSTEM"."EXPFULL"
  36. **************************************** **************************************
  37. The dump file set of SYSTEM. EXPFULL2 is:
  38. /U01/exp/expdat. dmp
  39. Job"SYSTEM"."EXPFULL"Completed, but there are 2 errors (completed at 19:17:38)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.