Академический Документы
Профессиональный Документы
Культура Документы
2) create the tablespace and assign that tablespace to the user and temp for the
tempory.
4) Assing the role that must be import and export role or what ever you role
assing. I suggest you first assign DBA role. Remeber after importing the user you
should to revoke the DBA Role. if its not the DBA User.
5) import has to be done by two methods one is parfile and second is type the imp
command on the command prompt.
Parfile method
-----------------
USERNAME=ABC/ABC
FILE=C:/ABC.DMP
LOG=C/:ABC.LOG
FROMUSER=XYZ
TOUSER=ABC
///////////////////////////////////////////////////////////////////////////////////
///
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
STEP -1)
####### CREATE A FOLDER IN YOUR SYSTEM DRIVE WHERE YOU CAN DEFINE THE PATH OF
DIRECTORY #######
CREATE A DIRECTORY
Directory created.
9 rows selected.
STEP -2) CONNECT WITH THE USER IN WHICH YOU WANT TO CREATE A TABLE
Table created.
SQL> COMMIT;
Commit complete.
11 rows selected.
NOW I'LL TAKE A EXPORT OF A TABLE NAMED CALLED ORACLE_MASTER WHICH EXIST IN HR
USER
I'LL GIVE A NAMED CALLED ORM TO MY DUMPFILE WHICH ACTUALLY KEEP THE BACKUP OF
ORACLE_MASTER TABLE
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
Starting "HR"."SYS_EXPORT_TABLE_01": HR/******** DIRECTORY=EXPORT_EXAMPLE TABLE
S=ORACLE_MASTER DUMPFILE=ORM.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 "HR"."ORACLE_MASTER" 23.32 KB 214 rows
Master table "HR"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for HR.SYS_EXPORT_TABLE_01 is:
C:\ROHIT_BLOG\ORM.DMP;
Job "HR"."SYS_EXPORT_TABLE_01" successfully completed at 23:46:21
STEP -4) AFTER TAKING A EXPORT OF A TABLE OUR NEXT STEP WILL BE DROP THE EXISTNG
TABLE NAMED ORACLE_MASTER
Table dropped.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
Master table "HR"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "HR"."SYS_IMPORT_TABLE_01": HR/******** DIRECTORY=EXPORT_EXAMPLE TABLE
S=ORACLE_MASTER DUMPFILE=ORM.DMP;
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "HR"."ORACLE_MASTER" 23.32 KB 214 rows
Job "HR"."SYS_IMPORT_TABLE_01" successfully completed at 23:47:58
STEP -6) NOW CHECK TABLE NAMED ORACLE_MASTER TABLE IN THE HR SCHEMA HAD WE RECOVER
IT OR NOT ?
11 rows selected.
COUNT(*)
----------
214
DONE :-)