[Translated from mos] place the dmp file of expdp from the asm disk to the local file system, expdpasm

Source: Internet
Author: User

[Translated from mos] place the dmp file of expdp from the asm disk to the local file system, expdpasm
Place the dmp file of expdp from the asm disk to the local file system.
Reference Original:
How To Extract Datapump File From ASM Diskgroup To Local Filesystem? (Docid 566941.1)

Applicable:
Oracle Database-Enterprise Edition-Version 11.1.0.6 to 11.1.0.7 [Release 11.1]
Information in this document applies to any platform.
Information in this document applies to any platform.

Objectives:
Starting from 11.1.0.6, asmcmd provides the cp command, which is similar to the cp command on the OS.
You can use the asmcmd cp command to copy all files in the asm disk group.

Solution:
Example:
1) create a directory in the asm instance
SQL> show parameter instance_name

NAME TYPE VALUE
-----------------------------------------------------------------------------
Instance_name string + ASM

SQL> alter diskgroup FRA add directory '+ FRA/dumpsets ';

Diskgroup altered.

2) create a directory in the database instance to store dmp files
SQL> show parameter instance_name

NAME TYPE VALUE
-----------------------------------------------------------------------------
Instance_name string DB11G

SQL> create directory dumpsets as '+ FRA/dumpsets ';

Directory created.

3) create a directory on the OS and create a directory in the database instance for this OS directory. This OS directory is used to store exported logfiles.

SQL>! Mkdir/home/oracle/dumpsets

SQL>! Ls-ld/home/oracle/dumpsets
Drwxr-xr-x 2 oracle oinstall 4096 May 7/home/oracle/dumpsets

SQL> create directory logfile_dest as '/home/oracle/dumpsets ';

Directory created.


4) execute expdp to export data
Expdp userid = system/storage01 directory = 'dumpsets 'dumpfile = expdp_5_5.dat job_name = full_export logfile = logfile_dest: exp5_5.log

Export: Release 11.1.0.6.0-Production on Wednesday, 07 May, 2008 10:22:57

Copyright (c) 2003,200 7, Oracle. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0-Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYSTEM". "FULL_EXPORT": userid = system/********* directory = DUMPSETS dumpfile = expdp_5_5.dat job_name = full_export logfile = logfile_dest: exp5_5.log
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 320 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/SYNONYM
Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
.
.
.
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/POST_TABLE_ACTION
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
.. Exported "SYSTEM". "REPCAT $ _ AUDIT_ATTRIBUTE" 6.398 KB 2 rows
.. Exported "SYSTEM". "REPCAT $ _ OBJECT_TYPES" 6.882 KB 28 rows
.. Exported "SYSTEM". "REPCAT $ _ RESOLUTION_METHOD" 5.875 KB 19 rows
.. Exported "SYSTEM". "REPCAT $ _ TEMPLATE_STATUS" 5.484 KB 3 rows
.. Exported "SYSTEM". "REPCAT $ _ TEMPLATE_TYPES" 6.289 KB 2 rows
.. Exported "SYSTEM". "DEF $ _ AQCALL" 0 KB 0 rows
.. Exported "SYSTEM". "DEF $ _ AQERROR" 0 KB 0 rows
.
.
.
.. Exported "SYSTEM". "REPCAT $ _ SITE_OBJECTS" 0 KB 0 rows
.. Exported "SYSTEM". "REPCAT $ _ SNAPGROUP" 0 KB 0 rows
.. Exported "SYSTEM". "REPCAT $ _ TEMPLATE_OBJECTS" 0 KB 0 rows
.. Exported "SYSTEM". "REPCAT $ _ TEMPLATE_PARMS" 0 KB 0 rows
.. Exported "SYSTEM". "REPCAT $ _ TEMPLATE_REFGROUPS" 0 KB 0 rows
.. Exported "SYSTEM". "REPCAT $ _ TEMPLATE_SITES" 0 KB 0 rows
.. Exported "SYSTEM". "REPCAT $ _ TEMPLATE_TARGETS" 0 KB 0 rows
.. Exported "SYSTEM". "REPCAT $ _ USER_AUTHORIZATIONS" 0 KB 0 rows
.. Exported "SYSTEM". "REPCAT $ _ USER_PARM_VALUES" 0 KB 0 rows
.. Exported "SYSTEM". "SQLPLUS_PRODUCT_PROFILE" 0 KB 0 rows
Master table "SYSTEM". "FULL_EXPORT" successfully loaded/unloaded
**************************************** **************************************
Dump file set for SYSTEM. FULL_EXPORT is:
+ FRA/dumpsets/expdp_5_5.dat


5) The dmp file is created under + FRA/dumpsets.

ASMCMD> ls-l + FRA/dumpsets/expdp_5_5.dat
Type Redund Striped Time Sys Name
N expdp_5_5.dat => + FRA/DB11G/DUMPSET/SYSTEMFULL_EXPORT_71029_1.303.654085391

6) copy the dmp file from the asm disk group to the OS directory.
ASMCMD> pwd
+ Fra/dumpsets
ASMCMD> ls
Expdp_5_5.dat
ASMCMD> cp expdp_5_5.dat/home/oracle/dumpsets/expdp_5_5.dat
Source + fra/dumpsets/expdp_5_5.dat
Target/home/oracle/dumpsets/expdp_5_5.dat
Copying file (s )...
File,/home/oracle/dumpsets/expdp_5_5.dat, copy committed.
ASMCMD> exit
$> Ls-l/home/oracle/dumpsets/expdp_5_5.dat
-Rw-r ----- 1 oracle oinstall 2289664 May 7 11: 05/home/oracle/dumpsets/expdp_5_5.dat




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.