Sunteți pe pagina 1din 7

BATA P0NP g

Basic concept
Abdul Pameed CM
3/10/2011



2 uA1A uM 10g
LxporL uaLa ump
SLep1
CreaLe a folder for uuM" flles

SLep2
now we have creaLed Lhe folder physlcally now we have Lo denoLe Lhls dlrecLory lnLo daLabase


SLep3
now granL Lhe user Lo access Lhe dlrecLory


SLep 4
LxporL Lhe 1able/Schema/lull







Lxamples follow


3 uA1A uM 10g
1ables

Schema

1ablespace


Lxcludlng and lncludlng Cb[ecLs on uaLa pump
We can LxCLuuL a cerLaln Lable or ob[ecLs whlle on exporL by uslng Lhls LxCLuuL opLlon ln daLa pump
uLlllLy

As well as Lhe same sLrucLure for Lhe lnCLuuL opLlon

Slmllarly we can use lnuLxLS CCnS18Aln1S C8An1S uSL8 SCPLMA








4 uA1A uM 10g
uslng Cuery Lo lllLer 8ows durlng LxporL
We can use CuL8? opLlons Lo exporL only requlred row ln parLlcular Lable

Suspendlng and 8esumlng LxporL !ob
?ou can suspend runnlng exporL [obs and laLer on resume Lhese [obs or klll Lhese [obs uslng uaLa ump LxporL ?ou
can sLarL a [ob ln one cllenL machlne and Lhen lf because of some work you can suspend lL AfLerwards when your
work has been flnlshed you can conLlnue Lhe [ob from Lhe same cllenL where you sLopped Lhe [ob or you can
resLarL Lhe [ob from anoLher cllenL machlne
lor Lxample suppose a u8A sLarLs a full daLabase exporL by Lyplng Lhe followlng command aL one cllenL machlne
CLn11 by Lyplng Lhe followlng command
$expdp scoLL/Llger[mydb luLLy ul8LC1C8?daLa_pump_dlr
uuMllLLfulldmp LCCllLLmyfullexplog !C8_nAMLmyfull!ob
AfLer some Llme Lhe u8A wanLs Lo sLop Lhls [ob Lemporarlly 1hen he presses C18L+C Lo enLer lnLo lnLeracLlve
mode 1hen he wlll geL Lhe LxporL prompL where he can Lype lnLeracLlve commands
now he wanLs Lo sLop Lhls exporL [ob so he wlll Lype Lhe followlng command
LxporL S1C_!C8lMMLulA1L
Are you sure you wlsh Lo sLop Lhls [ob (y/n) y
1he [ob ls placed ln a sLopped sLaLe and exlLs Lhe cllenL
AfLer flnlshlng hls oLher work Lhe u8A wanLs Lo resume Lhe exporL [ob and Lhe cllenL machlne from where he
acLually sLarLed Lhe [ob ls locked because Lhe user has locked hls/her cabln So now Lhe u8A wlll go Lo anoLher
cllenL machlne and he reaLLach Lo Lhe [ob by Lyplng Lhe followlng command
$expdp hr/hr[mydb A11ACPmyfull[ob
AfLer Lhe [ob sLaLus ls dlsplayed he can lssue Lhe CCn1lnuL_CLlLn1 command Lo resume logglng mode and resLarL
Lhe myfull[ob [ob
LxporL CCn1lnuL_CLlLn1
A message ls dlsplayed LhaL Lhe [ob has been reopened and processlng sLaLus ls ouLpuL Lo Lhe cllenL
noLe AfLer reaLLachlng Lo Lhe !ob a u8A can also klll Lhe [ob by Lyplng klLL_!C8 lf he doesn'L wanL Lo conLlnue
wlLh Lhe exporL [ob




3 uA1A uM 10g
LxporL u Lxample for a Lable














6 uA1A uM 10g
poit Bata Pup
SLep 1
CreaLe a Lablespace wlLh a schema for lmporL Lhe dump flle

CreaLe SCPLMA/uSL8 for Lhe above Lablespace

Clve permlsslon Lo Lhe user

Clve permlsslon Lo Lhe user Lo access Lhe uuM folder where Lhe dump flles locaLed



SLep 2

now we can lmporL a sample Lable LM whlch we exporL from scoLL user


ln Lhls above synLax we glven kM4P_5cnM4 because we exporLed Lhe emp Lable belongs Lhe scott
schema buL here we lmporLlng for Lhe new schema PAMLLu So we have Lo glve kMAl_5cnMA
keywotJ wltb olJ scbmooome oew scbemo oome





7 uA1A uM 10g
Llkewlse we can do lL for 1A8LLSACLS/SCPLMA
Lxample exporL/lmporL of schema


1ablespaces


1ables


Lxample wlLh !C8_nAML


!C8_nAML CpLlon
lor ever exporL and lmporL process we can glve a name by uslng Lhls !C8_nAML opLlon
Whlle daLa pump uLlllLy exporL/lmporL a [ob aL LhaL Llme ls Lhe dump folder or some oLher locaLlon
doesn'L have enough space Lo keep Lhe dump aL LhaL Llme we can cancel Lhe [ob process by presslng
CLrl+c afLer seLLlng Lhe space or Lhe problem we can sLarL Lhe same [ob process from Lhe place where
we sLopped

Cnce we sLop Lhe lmporL process Lhe below prompL wlll be dlsplay for conformaLlon

AfLer reseL Lhe lssue check Lhe [ob sLaLus





AfLer checklng Lhe sLaLus we can conLlnue by glvlng CCn1lnuL_CLlLn1 command

S-ar putea să vă placă și