C:\Documents and Settings\Chetan>sqlplus
SQL*Plus: Release 10.2.0.3.0 - Production on Fri Jul 30 11:55:29 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select name from v$database;
NAME
---------
ORA9
SQL> create directory data_p_test as 'c;\data_p_test';
Directory created.
Create manually a directory in the same location with same name ..
SQL> grant read ,write on directory data_p_test to scott;
Grant succeeded.
SQL> select * from dba_directories;
to check you directory is created or not.........................
SQL> grant exp_full_database to scott;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options.
C:\Documents and Settings\Chetan>expdp scott/tiger@ora9 full=y directory=data_p_test dumpfile=full.dmp logfile=full.log
Now connect with your new database where u wanna import .
my database name is "newtest"
SQL> create directory data_p_test as 'c:\data_p_test';
Directory created.
SQL> grant read ,write on directory data_p_test to scott;
Grant succeeded.
SQL> grant imp_full_database to scott;
Grant succeeded.
SQL> alter tablespace temp add tempfile 'tempfilelocation' size 200M autoextend on next 30M;
Come on your command prompt
C:\Documents and Settings\Chetan>impdp scott/tiger@newtest full=y directory=data_p_test dumpfile=full.dmp logfile=full2.log
for export and import table use all above command and just use the blow command for imp and exp
export
SQL>expdp scott/tiger@new test tables=CHETAN directory=table_test dumpfile=table.dmp logfile=tableimp.log;
import
SQL>impdp scott/tiger@ora9 tables=CHETAN directory=table_test dumpfile=table.dmp logfile=tableimp2.log;
any mistake is there or u wanna give any suggestion so please write to me ............
any mistake is there or u wanna give any suggestion so please write to me ............
hey u ask me to check mistakes na, see the @new test. u issued new est...
ReplyDeleteha ha ha ha
SQL>expdp scott/tiger@new est tables=CHETAN directory=table_test dumpfile=table.dmp logfile=tableimp.log;
http://wiki.oracle.com/page/Data+Pump+Export+(expdp)+and+Data+Pump+Import(impdp)
ReplyDeletepl check the above link for dp rishi.....