Oracle exports and imports windows 7

  • 33 views
Uploaded on

Oracle exports and imports windows 7 sample schema

Oracle exports and imports windows 7 sample schema

More in: Technology , Career
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
33
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Oracle Exports and Imports windows 7 Below is Export and Import step for example schema ( HR, OE , PM , IX , SH , BI ) Exports dump file from SERVER A for schema ( HR, OE , PM , IX , SH , BI ) 1. Creat directory c:Temphrdump Creat directory c:Tempxedump Creat directory c:Temppmdump Creat directory c:Tempixdump Creat directory c:Tempshdump Creat directory c:Tempbidump 2.Login in via sqlplus , connect system/passwd sqlplus> create directory hrdump as 'C:Temphrdump'; sqlplus> create directory xedump as 'C:Tempxedump'; sqlplus> create directory pmdump as 'C:Temppmdump'; sqlplus> create directory ixdump as 'C:Tempixdump'; sqlplus> create directory shdump as 'C:Tempshdump'; sqlplus> create directory bidump as 'C:Tempbidump'; sqlplus> commit;
  • 2. 3. start --> run --> cmd (full path to be mentioned ) oracleproduct11.2.0dbhome_1BIN> [One by one ] (for HR )expdp system/passwd schemas=HR directory=hrdump dumpfile=hrdump.dmp logfile=rexp.log (for OE )expdp system/passwd schemas=OE directory=oedump dumpfile=oedump.dmp logfile=rexp.log (for PM )expdp system/passwd schemas=PM directory=pmdump dumpfile=pmdump.dmp logfile=rexp.log (for IX )expdp system/passwd schemas=IX directory=ixdump dumpfile=ixdump.dmp logfile=rexp.log (for SH )expdp system/passwd schemas=SH directory=shdump dumpfile=shdump.dmp logfile=rexp.log (for BI )expdp system/passwd schemas=BI directory=bidump dumpfile=bidump.dmp logfile=rexp.log 4. Check c:/Temp/ you will find the dumps files.., Export done. Import dump file to SERVER B for schema ( HR, OE , PM , IX , SH , BI ) 1. login in to sqlplus .. system/passwd sql>create tablespace EXAMPLE datafile (full path to be mentioned )'/oradata/orcl/EXAMPLE01.DBF' size 10M autoextend on maxsize 250M extent management local uniform size 64K;
  • 3. (Info: EXAMPLE tablespace is newly created ) to check the existing or after create tablespace , you can check running select tablespace_name from dba_tablespaces; select name from v$datafile;) 2. Create the user CREATE USER HR IDENTIFIED BY hr DEFAULT TABLESPACE EXAMPLE TEMPORARY TABLESPACE TEMP; GRANT CONNECT , RESOURCE TO HR; CREATE USER OE IDENTIFIED BY oe DEFAULT TABLESPACE EXAMPLE TEMPORARY TABLESPACE TEMP; GRANT CONNECT , RESOURCE TO OE; CREATE USER PM IDENTIFIED BY pm DEFAULT TABLESPACE EXAMPLE TEMPORARY TABLESPACE TEMP; GRANT CONNECT , RESOURCE TO PM; CREATE USER SH IDENTIFIED BY sh DEFAULT TABLESPACE EXAMPLE TEMPORARY TABLESPACE TEMP; GRANT CONNECT , RESOURCE TO sh; CREATE USER BI IDENTIFIED BY bi DEFAULT TABLESPACE EXAMPLE TEMPORARY TABLESPACE TEMP; GRANT CONNECT , RESOURCE TO bi;
  • 4. 3. create Temp HR ,OE ,, PM , IX and SH dumps in window files first in SERVER B Create directory c:Temphrdump Create directory c:Tempxedump Create directory c:Temppmdump Create directory c:Tempixdump Create directory c:Tempshdump Create directory c:Tempbidump Copy the dumps files which you exported in SERVER A TO SERVER B 4. login to sqlplus conect system/passwd create directory hrdump as 'C:Temphrdump'; commit; create directory oedump as 'C:Tempoedump'; commit; create directory pmdump as 'C:Temppmdump'; commit; create directory ixdump as 'C:Tempixdump'; commit; create directory shdump as 'C:Tempshdump';
  • 5. commit; create directory bidump as 'C:Tempbidump'; commit; 5. start --> run --> cmd (full path to be mentioned ) oracleproduct11.2.0dbhome_1BIN> [Run One by one ] >impdp system/welcome schemas=HR directory=hrdump dumpfile=HRDUMP.DMP logfile=hrimp.log >impdp system/welcome schemas=OE directory=oedump dumpfile=OEDUMP.DMP logfile=oeimp.log >impdp system/welcome schemas=PM directory=pmdump dumpfile=PMDUMP.DMP logfile=pmimp.log >impdp system/welcome schemas=IX directory=ixdump dumpfile=IXDUMP.DMP logfile=iximp.log >impdp system/welcome schemas=SH directory=shdump dumpfile=SHDUMP.DMP logfile=shimp.log >impdp system/welcome schemas=BI directory=bidump dumpfile=BIDUMP.DMP logfile=biimp.log