To take the full database export / Oracle 10g


Create a Export Directory:
##########################
On Solaris:
 -----------
 SQL> create or replace directory anar_dmp as '/u02/expdp';
 Directory created.
On Windows:
 -----------
 SQL> create or replace directory anar_dmp as 'D:\expdp';
 Directory created.
Create a separate export user:
 ##############################
SQL> Connect /as sysdba
SQL> CREATE USER anaradmin IDENTIFIED BY expdp default tablespace users;
 User created.
Grant Export and Import Privileges.
 ###################################
SQL> GRANT CONNECT,RESOURCE TO anaradmin;
 Grant succeeded.
SQL> GRANT exp_full_database to anaradmin;
 Grant succeeded.
SQL> alter user anaradmin quota unlimited on USERS;
 User altered.
SQL> GRANT READ, WRITE ON DIRECTORY anar_dmp to anaradmin;
 Grant succeeded.
To check on which directories you have privilege to read & write:
 #################################################################
SQL> SELECT privilege, directory_name
 2 FROM user_tab_privs t, all_directories d
 3 WHERE t.table_name(+)=d.directory_name
 4 ORDER BY 2,1;
Exporting Full Database:
 ########################
expdp anaradmin/XXXXXX full=y directory=anar_dmp dumpfile=full_db_expdp.dmp logfile=full_db_expdp.log

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: