11g ASM – Inside story – Part3 (Export Datapump)

March 11th, 2011 | Posted in 10g, 11gR2, ASM, Blog, datapump 11g | 1 Comment


Introduction
In the previous post of “11gR2 ASM – Inside story – Part2″, we have seen how to restore a diskgroup after a failure.
In this part 3, we will create datapump export dumpsets within ASM diskgroup.
The procedure is valid for 10g Oracle database,

We should follow the steps below:
1- Create a directory from ASM.
2- Create a directory object in the database.
3- Create log file directory. The datapump log file cannot be stored within ASM.
4- Run the datapump export.
5- Verify the file within the ASM diskgroup.

1- Create a directory from ASM:

From ASM instance:


SQL> ALTER DISKGROUP DATA_REPORTING ADD DIRECTORY '+DATA_REPORTING/oraw/dumpsets';

Diskgroup altered.

2- Create a directory object in the database:

From database instance:


SQL>  CREATE DIRECTORY DUMP_SETS AS '+DATA_REPORTING/oraw/dumpsets';

Directory created.

SQL>
SQL> create user wissem identified by wissem;

User created.

SQL> grant read,write on directory DUMP_SETS to wissem;

Grant succeeded.

SQL> grant EXP_FULL_DATABASE to wissem;

Grant succeeded.

SQL> 

SQL> create table wissem.dump (ID number);

Table created.

SQL> alter user wissem quota 1M on USERS;

User altered.

SQL> insert into wissem.dump values(1);

1 row created.

SQL> commit;

Commit complete.

SQL>

3- Create log file directory:


SQL> CREATE DIRECTORY LOGFILE_DEST AS '/tmp';

Directory created.

SQL> 

SQL> grant read,write on directory LOGFILE_DEST to wissem;

Grant succeeded.

SQL>

4- Run the datapump export:


[oracle@wissem ~]$ expdp wissem/wissem directory=DUMP_SETS dumpfile=wissem_dump.dmp TABLES=DUMP LOGFILE=LOGFILE_DEST:wissem_dump.dmp

Export: Release 11.2.0.1.0 - Production on Sat Mar 5 05:56:57 2011

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, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
Starting "WISSEM"."SYS_EXPORT_TABLE_01":  wissem/******** directory=DUMP_SETS dumpfile=wissem_dump.dmp TABLES=DUMP LOGFILE=LOGFILE_DEST:wissem_dump.dmp
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "WISSEM"."DUMP"                             5.007 KB       1 rows
Master table "WISSEM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for WISSEM.SYS_EXPORT_TABLE_01 is:
  +DATA_REPORTING/oraw/dumpsets/wissem_dump.dmp
Job "WISSEM"."SYS_EXPORT_TABLE_01" successfully completed at 05:57:04

[oracle@wissem ~]$

5- Verify the file within the ASM diskgroup:

You can verify the file is created within the ASM diskgroup by query the view v$ASM_FILE where TYPE=’DUMPSET’.

Scridb filter


One Comment to “11g ASM – Inside story – Part3 (Export Datapump)”

  1. Sarava says:

    Simple and nice article. Thanks


Leave a Comment





Subscribe


Polls

which oracle topic interests you most?

View Results

Loading ... Loading ...


Oracle Class Tweets


Recent Posts


Recent Comments

  • Jaspreet: Brilliant explanation.
  • Yousuf: Very Nice… Just wanted to check you have done all patching at Node 1 only.. is there any thing need to...
  • Yousuf: Very Nice.. Thanks for sharing.. Once question.. You have executed all commands on Node 1 only.. Is there any...
  • Emir: Thanks… Great article
  • borse firmate: Thank you for another informative blog. The place else may just I am getting that kind of information...
  • leandro: why this parameter is systemwide? could you read from a asm instance from one failure group and from the...
  • Mohammad: paul, we create pfile from target database to source database and later we change database name, and...
  • Muhammad Ikram: Thanks Brother for sharing pearls of knowledge. May ALLAH reward you for this both here and...
  • rgrover: Thanks for the POST. I recently encounter similar issue. Your POST helped.
  • gopalredy: really its very use full to dbas
  • Vivian: This is awesome! Thank you so much!
  • henry zhong: CDB=DB, and PDB=SCHEMA but in a sub dictionary?
  • Dehbashee: Salam Brother, Thanx for sharing, however, i would be interested in chaging the password for the grid user...
  • wissem: No we don’t need that :) Just the scripts I posted above
  • Md. Tanweer: Thanks for posting the material. I really appreciate if you can send me, if you have tutorial for 11g...
  • christiaan: Thanks!! This has been bugging the hell out of me for so long.
  • Rajasekhar: Thank you
  • Samarjit Panigrahy: Very Nice and Simple Demo… Cool :)
  • cq: Any reason not to use auto patch for both CRS and RAC homes with one command? Or use opatch auto for RAC home as...
  • Hitesh: Hi, Can we use this RACcheck tool on oracle SE version ? Thanks