<<Back to Oracle ASM Main Page
Using ASM diskgroup for export
I was finding it hard to find sufficient space to export a large amount of data, and therefore I thought to take an export on ASM. I faces few difficulties but managed to start the export in next 5 min. Keep on reading to get more understanding on exporting database in ASM diskgroup.
Step1> I have created the directory and also created the folder within the ASM diskgroup
$ asmcmd -p
ASMCMD> mkdir '+DATAC2/exp'
Step2> login to the database and create directory
SQL> create directory TEST_EXPORT as '+DATAC2/exp';
Directory created.
Step3> Grant read, write permission to the user supposed to perform the export.
SQL> grant read,write on directory TEST_EXPORT to admin;
Grant succeeded.
Step4>$ expdp admin/********@TEST_QA_EXP parfile=export_TEST_EXP.par
admin/********@TEST_QA_EXP parfile=export_TEST_EXP.par
xport: Release 12.1.0.2.0 - Production on Mon May 28 14:20:40 2018
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
OLAP, Advanced Analytics and Real Application Testing options
Starting "ADMIN"."SYS_EXPORT_SCHEMA_03": admin/********@TEST_QA_EXP parfile=export_TEST_EXP.par
;;;
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
OLAP, Advanced Analytics and Real Application Testing options
Starting "ADMIN"."SYS_EXPORT_SCHEMA_03": admin/********@TEST_QA_EXP parfile=export_TEST_EXP.par
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
Step5> Adjusted the logfile parameter in par file as highlighted below to fix the issue
Par file with above Issue
directory=TEST_EXPORT
dumpfile=TEST.dmp
logfile=TEST.log
flashback_scn=184542823592
schemas=TEST01, TEST02
parallel=4
dumpfile=TEST.dmp
logfile=TEST.log
flashback_scn=184542823592
schemas=TEST01, TEST02
parallel=4
Par file to without Issue
directory=TEST_EXPORT
dumpfile=TEST.dmp
logfile=EXT:TEST.log<= where EXT is another directory pointing to /u01/app/backup and admin user is having read/write access on this directory.
flashback_scn=184542823592
schemas=TEST01, TEST02
parallel=4
dumpfile=TEST.dmp
logfile=EXT:TEST.log<= where EXT is another directory pointing to /u01/app/backup and admin user is having read/write access on this directory.
flashback_scn=184542823592
schemas=TEST01, TEST02
parallel=4
Comments
Post a Comment