Professional Documents
Culture Documents
OGG Init Load On Linux Oracle 11g
OGG Init Load On Linux Oracle 11g
OGG Init Load On Linux Oracle 11g
OracleGoldenGateonLinux:InitialLoadfromOracle11gR2toOracle11gR2
TopicList ExpandAllTopics HideAllImages Print
Overview
Purpose
ThisOracleByExample(OBE)tutorialcoversinitialdataloadoftablesusingOracleGoldenGateversion11.2.1.0.2onapairof
LinuxOracle11gR2databases.
TimetoComplete
Approximately1hour
Introduction
OracleGoldenGateprovidesveryfastreplicationofheterogeneousdatabasesbyreadingtransactionlogsandwritingthechangesto
oneormoretargetdatabases.Therearefiveprocessesinvolvedinatypicalenvironment:
Manager:
ThereisaManageronthesourcehostandaseparateManageronthetargethost.TheManagerstartsandstopstheother
processesonthesourceandtargetinstances.TheManagerisnotrequiredforpassingtrafficoncetheExtractorReplicatis
running.
InitialLoad:
Optional.Usedtopopulatethetargettablesonetime.ItcanreadeitherfromthesourcetablesdirectlyorfromASCIIfiles.This
OBEfocusesontheInitialLoadreadingfromsourcetablesdirectly.
Extract:
Runsonthesourcetocapturetransactiondatatotrailfiles.TherearetwoversionsofExtract:Classic(thisOBE)and
Integrated.
DataPump:
Optional,buthighlyrecommended.TheDataPumpsendstrailfilesfromthesourceinstancetothetargetinstanceoveranIP
network.TechnicallytheDataPumpisasecondaryExtract.ThisOBEdoesnothaveaDataPump.
Replicat:
Deliversdatatothetargetdatabase.NormallytheReplicatrunsonthetarget.
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 1/20
9/18/2015 OGGInitLoadonLinuxOracle11g
Scenario
TherearetwoLinuxhostsrunningOracle11gR2:host01(red)andhost02(green).Host01hasauser/schemaogguser1witha
passwordofpswd1u,andanadministratorwithauser/schemaoggadm1withapasswordofpswd1a.
Host02hasauser/schemaogguser2withapasswordofpswd2u,andanadministratorwithauser/schemaoggadm2withapassword
ofpswd2a.
Therearetablesonhost01(PRODUCTSandVENDORS)thatneedtobereplicatedtohost02.Payattentiontothecolorofthescreen
bannerstoknowwhichcommandsaregoingtowhichhost.AlsonotewhetheryouareenteringGGSCIcommands,SQLcommands,
orOScommands(thepromptwillguideyou).
Insummary,theenvironmentis:
Prerequisites
Beforestartingthistutorial,youshouldhavesuccessfullycompletedtheOBEtitledOracleGoldenGateonLinux:Bidirectional
ReplicationfromOracle11gR2toOracle11gR2.ThatestablishesthehardwareandsoftwareenvironmentforthisOBE.
Bearinmindthattherearetwohosts:host01andhost02andthateachhosthasthreeenvironmentprompts:OS,GGSCI,andSQL.
Thatmakessixdifferentplacesinwhichyoucouldbetyping!Trytobeextracarefulaboutwhichcommandyouenterinwhich
location.Thewrongcommandinthewrongcontextisthemostcommonerror.
TypographicConventions
Textcolorandfontinthedirectionsandinthescreensshouldbeinterpretedasfollows:
Some_Command
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 2/20
9/18/2015 OGGInitLoadonLinuxOracle11g
Youtypethisasacommandoravalue.Example:
Enter./ggscitostartthecommandlineinterpreter.
Some_Prompt
Thesystemrespondswiththisasapromptorreply.Example:
Afterthewelcomesplashbanner,youcanentercommandsattheGGSCI(host01)1>prompt.
Some_Button
Clickthisonscreenbutton.Example:
Afterselectingtheversionyouwant,clickContinuetostartthedownload.
Some_Variable
Avariablethatyousubstitutewitharealvalue.Example:
Enteryouruserid/passwordattheprompt.
Some_Filename
Afilename,path,orfolder/directory.Example:
Editthehostsfileinthe/etcdirectory.
Some_Code
Akeywordorcodeelement.Example:
ChangetheparameterHandleCollisionstoNoHandleCollisionsaftertheinitialload.
FileandProcessNamingConventions
Fileandprocessnamingconventionscanbewhateverworksforyouoryourcompany.Herearethesampleconventionsusedinthis
OBE:
pxxxxhh.ext
where:
p=process=
e(xtract),p(ump),r(eplicat),i(nitial),d(efgen),s(tartup).
xxxx=project=
Allfilesrelatedtoacommonprojectxxxx,forexamplehr,sales,engr,test.
hh=hosttohost=
aa,ab,ba,bb,asindicatedbysourceandtargethostnameswherea=host01,andb=host02.Lateronyouwillseethatyou
cannotusenumbersaspartofsomefilenames,sobetternottogothereatall.
ext=extension=
prm=parameter(storedindirprm/),dsc=discard,rpt=report(storedindirrpt/),def=definition(storedindirdef/),oby=obey
(storedininstallationdirectory),sql=SQL(storedindirsql/).
1.ConfiguringtheEnvironment
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 3/20
9/18/2015 OGGInitLoadonLinuxOracle11g
TheconfigurationoftheenvironmentisdonebyeditingASCIIfilesandrunningOSutilities.Toconfiguretheenvironment,perform
thefollowingsteps:
1.1CreatingTables
CreatetheemptyPRODUCTSandVENDORSsourcetablesonhost01inschemaogguser1.(Ifyouhaveanother
muchlargersetoftablesthatalreadyexistthatyouwanttouseasatest,thatisfinetoo.)
Host01Linux
[oggadm1@host01ogg01]sqlplusogguser1@orcl01/pswd1u
SQL>CREATETABLEvendors
(
codeNUMBER(5)PRIMARYKEY
,nameVARCHAR2(40)
,streetVARCHAR2(30)
,cityVARCHAR2(20)
,stateCHAR(2)
,zipNUMBER(5)
,phoneCHAR(12)
);
SQL>CREATETABLEproducts
(
codeNUMBER(5)PRIMARYKEY
,nameVARCHAR2(50)
,priceNUMBER(8,2)
,qty_ohNUMBER(6)
,vendorNUMBER(5)
,CONSTRAINTprod_vendor_fkFOREIGNKEY(vendor)REFERENCESvendors(code)
);
SQL>
HavingreferentialintegrityenforcedonthepairoftablesmakesthisInitalLoadmoreinterestingthanthesimple
TCUSTMERandTCUSTORDsampletables.Italsoforcesyoutocreatethetablesinthisorder.Sothe
VENDORStablemustexistbeforePRODUCTS.
Populatethetwotablesonhost01.
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 4/20
9/18/2015 OGGInitLoadonLinuxOracle11g
Host01Linux
SQL>
INSERTINTOvendorsVALUES(100,'AcmeCorp',
'10AcornSt','Albany','AL',12345,'1234567890');
INSERTINTOvendorsVALUES(200,'BankInc',
'20BrickSt','Buffalo','NY',23456,'2345678901');
INSERTINTOvendorsVALUES(300,'WhizLLC',
'30WalnutSt','Washington','DC',34567,'3456789012');
INSERTINTOproductsVALUES(1000,'wingnut',0.50,100,200);
INSERTINTOproductsVALUES(1010,'bushing',0.40,250,100);
INSERTINTOproductsVALUES(1020,'foobar',1.00,90,100);
INSERTINTOproductsVALUES(1030,'washer',0.15,300,100);
INSERTINTOproductsVALUES(1040,'doohick',3.10,20,200);
INSERTINTOproductsVALUES(1050,'spinner',0.75,15,200);
SQL>commit;
Commitcomplete.
SQL>exit
[oggadm1@host01ogg01]
Havingreferentialintegrityforcesyoutoinsertthevendorsbeforetheproducts.
Createemptytargettablesonhost02inschemaogguser2.
Host02Linux
[oggadm2@host02ogg02]sqlplusogguser2@orcl02/pswd2u
SQL>CREATETABLEvendors
(
codeNUMBER(5)PRIMARYKEY
,nameVARCHAR2(40)
,streetVARCHAR2(30)
,cityVARCHAR2(20)
,stateCHAR(2)
,zipNUMBER(5)
,phoneCHAR(12)
);
SQL>CREATETABLEproducts
(
codeNUMBER(5)PRIMARYKEY
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 5/20
9/18/2015 OGGInitLoadonLinuxOracle11g
,nameVARCHAR2(50)
,priceNUMBER(8,2)
,qty_ohNUMBER(6)
,vendorNUMBER(5)
,CONSTRAINTprod_vendor_fkFOREIGNKEY(vendor)REFERENCESvendors(code)
);
SQL>exit
[oggadm2@host02ogg02]
Oracle11gR2doessupportreplicatingDDLsuchasCREATETABLE,andthereforetheemptytablescouldbe
createdonthetargetinotherwaysbeforeanyDMLreplicationbegins.
YoucancheckonthetablesthatareavailabletoOracleGoldenGateatanytimeyouareloggedintothedatabasebyentering
theGGSCIcommands:
GGSCI(host)>ListTables*
GGSCI(host)>ListTablesogguser1.*
1.2AddingTransactionData
RestartGGSCIandrunAddTranDataforthetwonewtables.
Host01Linux
[oggadm1@host01ogg01]./ggsci
OracleGoldenGateCommandInterpreterforOracle
...manylinesomittedforclarity...
GGSCI(host01)1>Obeystartup.oby
...manylinesomittedforclarity...butmakesureeverythingstarted.
GGSCI(host01)>ListTablesogguser1.*
OGGUSER1.PRODUCTS
OGGUSER1.TCUSTMER
OGGUSER1.TCUSTORD
OGGUSER1.VENDORS
Found4tablesmatchinglistcriteria.
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 6/20
9/18/2015 OGGInitLoadonLinuxOracle11g
GGSCI(host01)>AddTranDataogguser1.products
LoggingofsupplementalredodataenabledfortableOGGUSER1.PRODUCTS.
GGSCI(host01)>AddTranDataogguser1.ven*
LoggingofsupplementalredodataenabledfortableOGGUSER1.VENDORS.
GGSCI(host01)>InfoTranDataogguser1.*
LoggingofsupplementalredologdataisenabledfortableOGGUSER1.PRODUCTS.
ColumnssupplementallyloggedfortableOGGUSER1.PRODUCTS:CODE.
...severallinesomittedforclarity...
LoggingofsupplementalredologdataisenabledfortableOGGUSER1.VENDORS.
ColumnssupplementallyloggedfortableOGGUSER1.VENDORS:CODE.
GGSCI(host01)xx>
Notethatyoucanaddtransactiondataforanindividualtableorforwildcards.Thewildcardscanbeforawhole
schema,butthereisabetterwaytodowholeschemasusingAddSchemaTranDataogguser1.Thereisnoharmin
addingtransactiondatatwice.
LeaveGGSCIrunningforthenextstep.
ThetransactiondatahasbeenenabledforallusertablesinvolvedwithOracleGoldenGate.
2.ConfiguringDataCaptureUsingExtract
Datacapture,alsoknownasExtract,isdoneonthesourceside.Aprimaryextractisrequiredasecondaryextract,knownasaData
Pump,isoptionalbuthighlyrecommended.Toconfiguredatacapture,performthefollowingsteps:
2.1ConfiguringtheInitialLoadExtract
Onsourcehost01,createtheInitialLoadExtractparameterfile.
UsingthenamingconventionsdiscussedintheOverview,thepath/filename.extwillbedirprm/itestab.prm,where
Initial=i,project=test,source=a,target=b.(Thisisjustaconvention,youcannametheprocessesanythingyou
want.)Thepathandextensionwillbeaddedautomatically.
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 7/20
9/18/2015 OGGInitLoadonLinuxOracle11g
Host01Linux
GGSCI(host01)>EditParamitestab
InitialLoadExtractfromhost01tohost02
CreatedbyJoeAdminon10/11/2012
SETENV(ORACLE_SID="orcl01")
Extractitestab
UserIDoggadm1@orcl01,Passwordpswd1a
RmtHosthost02,MgrPort15002
RmtTaskReplicat,Grouprtestab
Tableogguser1.vend*;
Tableogguser1.prod*;
GGSCI(host01)>
Someoftheparameters:
:
Acomment.Usefulforselfdocumentingfiles,aswellasstoringparametersinlinethatmaybeusedlater.
SETENV:
YouhavetodefineSID(theDatabaseSystemIdentifier)somewhere:eitherinthe.profileorintheUserIDor
hereintheSETENV.Onlyoneplaceisnecessary,thoughifyoudefineithereitoverrridesanyprevious
definitionsinthe.profile.
Table:
TheTablestatementsmustbeintheorderhonoringthereferentialintegrity,soVENDORSmustprecede
PRODUCTS.YoucanhavemultipleTablestatements,eachwithonetablename(withoptionalwildcards)
resolvingtozero,one,ormoretables.Youcannotuseawildcardintheschemaname.
Itispossibletoencryptthepasswordsinthefile,butthatisbeyondthescopeofthisexercise.
YoucancheckyourworkbyenteringViewParamitestabanytime.
CreatetheExtractgroup.
Host01Linux
GGSCI(host01)>AddExtractitestab,SourceIsTable
EXTRACTadded.
GGSCI(host01)>
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 8/20
9/18/2015 OGGInitLoadonLinuxOracle11g
NoticethereisnonamedtrailfileasyouwouldhaveinaregularExtract.
TheInitialLoadExtracthasbeencreatedandconfigured,butnotstarted.LeaveGGSCIrunningforthenextstep.
2.2VerifytheExtractProcess(Optional)
MakesuretheExtractprocesswascreatedandregisteredcorrectly.
Host01Linux
GGSCI(host01)>InfoExtract*,Tasks
EXTRACTITESTABInitialized2012092417:11StatusSTOPPED
CheckpointLagNotAvailable
LogReadCheckpointNotAvailable
FirstRecordRecord0
TaskSOURCEISTABLE
GGSCI(host01)>
TaskssuchasInitialLoaddonotshowupwithplainInfoAll.
LeaveGGSCIrunningforthenextstep.
3.ConfiguringDataDeliveryUsingReplicat
Datadelivery,alsoknownasReplicat(the"e"isleftoffintentionally),isdoneatthetargetside.Toconfiguredatadelivery,perform
thefollowingsteps:
3.1ConfiguringtheReplicat
Ontargethost02,createtheReplicatparameterfile.
Host02Linux
[oggadm2@host02ogg02]./ggsci
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 9/20
9/18/2015 OGGInitLoadonLinuxOracle11g
OracleGoldenGateCommandInterpreterforOracle
...manylinesomittedforclarity...
GGSCI(host02)1>Obeystartup.oby
...manylinesomittedforclarity...butmakesureeverythingstarted.
GGSCI(host02)>EditParamrtestab
Deliveryfromhost01tohost02
CreatedbyJoeAdminon10/11/2012
Replicatrtestab
UserIDoggadm2@orcl02,passwordpswd2a
HandleCollisions
AssumeTargetDefs
DiscardFiledirrpt/rtestab.dsc,Purge
Mapogguser1.*,Targetogguser2.*;
GGSCI(host02)>
HandleCollisionsisusedwithInitialLoadstoautomaticallyallowforerrors.Forexample,thetwotablesbeing
loadedhaveforeignkeycontraints,anditispossiblethattheorderofloadingtherowsissuchthataproductis
loadedbeforeitsreferencedvendorrowisloaded.HandleCollisionsallowsforthatcontingency.
TheMapstatementcanbesimple(asshownhere),orverycomplex,transformingcolumnsandfields.Forexample,
youcouldcombinethreesourcecolumnsfirst_name,middle_init,last_nameintoasingletargetcolumnfull_name.
CreatetheReplicatprocess.
Host02Linux
GGSCI(host02)>AddReplicatrtestab,SpecialRun
REPLICATadded.
GGSCI(host02)>
Notethereisnotrailfilespecified.YoucancheckyourworkbyenteringViewParamrtestabanytime.
MakesuretheReplicatprocesswascreatedandregisteredcorrectly.
Host02Linux
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 10/20
9/18/2015 OGGInitLoadonLinuxOracle11g
GGSCI(host02)>InfoReplicat*,Tasks
REPLICATRTESTABInitialized2012092417:15StatusSTOPPED
CheckpointLag00:00:00(updated00:00:18ago)
LogReadCheckpointNotAvailable
TaskSPECIALRUN
GGSCI(host02)>
SincenothingotherthantheManagerisstartedyet,theReplicatStatusshouldsaySTOPPED.
3.2StartingAllProcesses
StartallExtractprocessesonthesource.
Host01Linux
GGSCI(host01)>StartExtractitestab
SendingSTARTrequesttoMANAGER...
EXTRACTITESTABstarting
GGSCI(host01)>
NotethatyoustarttheExtract,butyoudonotstarttheReplicat.TheReplicatisstartedremotelybytheExtract.
TheInitialLoadisveryfast,soyoumaynotbeabletocatchitwithaStatusofRUNNING.
Displayinformationaboutallprocessesonthetarget.
Displaysummaryinformation.Thereisnonewinformation.
Host02Linux
GGSCI(host02)>Info*,Tasks
REPLICATRTESTABInitialized2012092417:15StatusSTOPPED
CheckpointLag00:00:00(updated03:32:27ago)
LogReadCheckpointNotAvailable
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 11/20
9/18/2015 OGGInitLoadonLinuxOracle11g
TaskSPECIALRUN
GGSCI(host02)>
Strictlyspeaking,the"(updatedhh:mm:ssago)"isnotcompletelycorrect:itcouldhavebeenupdatedwhenthe
ExtractstartedtheReplicat.However,sincethistimeitisnottrackinglagassuch,itismostlycorrect.Perhapsit
shouldsay,"NotApplicable"sinceInitialLoadisnotanongoingprocess,sotheconceptoflagdoesnotapplyon
anInitialLoad.
Displaythemostdetailedinformation.
Host02Linux
GGSCI(host02)>Infortestab,Detail
REPLICATRTESTABInitialized2012092417:15StatusSTOPPED
CheckpointLag00:00:00(updated03:34:44ago)
LogReadCheckpointNotAvailable
TaskSPECIALRUN
ExtractSourceBeginEnd
NotAvailable*Initialized*FirstRecord
Currentdirectory/u01/app/oracle/ogg02
Reportfile/u01/app/oracle/ogg02/dirrpt/RTESTAB.rpt
Parameterfile/u01/app/oracle/ogg02/dirprm/rtestab.prm
Checkpointfile/u01/app/oracle/ogg02/dirchk/RTESTAB.cpr
Processfile/u01/app/oracle/ogg02/dirpcs/RTESTAB.pcr
Stdoutfile/u01/app/oracle/ogg02/dirout/RTESTAB.out
Errorlog/u01/app/oracle/ogg02/ggserr.log
GGSCI(host02)>Exit
[oggadm2@host02ogg02]
Inallcases,theStatuswillprobablybeSTOPPED,andthetimesincethelastupdateorcheckpointmaybequitea
whileago.
Displayinformationaboutallprocessesonthesource.Thiswillgiveyouslightlymoreinformationthanthetarget.
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 12/20
9/18/2015 OGGInitLoadonLinuxOracle11g
Displaysummaryinformation.
Host01Linux
GGSCI(host01)>Info*,Tasks
EXTRACTITESTABLastStarted2012092417:53StatusSTOPPED
CheckpointLagNotAvailable
LogReadCheckpointTableOGGUSER1.PRODUCTS
2012092417:53:50Record6
TaskSOURCEISTABLE
GGSCI(host01)>Exit
[oggadm1@host01ogg01]
SimilartotheReplicat,theStatuswillverysoonbeSTOPPED,andthetimesincethelastupdateorcheckpoint
willcontinuetoage.Thisgivesyouthelasttableandlastrowprocessed.
4.ValidatingResults
Makesurethattherowsfromthesourcedatabasetableshaveallbeencopiedtothetargetdatabasetables.
4.1QueryAllRowsOntheSource
Onsourcehost01,attheOSprompt,runtheSQLqueryinsqlplus.
(Thesetandcolcommandsareusedjusttoprettyupthereportformatonthescreen.)
Host01Linux
[oggadm1@host01ogg01]sqlplusogguser1@orcl01/pswd1u
SQL*Plus:Release11.2.0.3.0ProductiononWedSep1919:27:032012
Copyright(c)1982,2011,Oracle.Allrightsreserved.
Connectedto:
OracleDatabase11gEnterpriseEditionRelease11.2.0.3.064bitProduction
WiththePartitioning,OLAP,DataMiningandRealApplicationTestingoptions
SQL>setpages20
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 13/20
9/18/2015 OGGInitLoadonLinuxOracle11g
SQL>setlines100
SQL>colnameformata10
SQL>colstreetformata15
SQL>colcityformata15
SQL>SELECT*FROMproducts;
CODENAMEPRICEQTY_OHVENDOR
1000wingnut.5100200
1010bushing.4250100
1020foobar190100
1030washer.15300100
1040doohick3.120200
1050spinner.7515200
6rowsselected.
SQL>SELECT*FROMvendors;
CODENAMESTREETCITYSTZIPPHONE
100AcmeCorp10AcornStAlbanyAL123451234567890
200BankInc20BrickStBuffaloNY234562345678901
300WhizLLC30WalnutStWashingtonDC345673456789012
SQL>
Thereshouldbesixrowsofproductsandthreerowsofvendors.LeaveSQL*Plusrunningforthenextstep.
TherearealternativewaysofdoingtheInitialLoadonthetargetbyreadingfromadelimitedASCIIfile(suchaswouldbeused
tofeedSQL*Loader),butthisisthesimplestwaywhenthetablesarealreadyloadedonthesourcedatabase.
4.2QueryAllRowsOntheTarget
Ontargethost02,attheOSprompt,runtheSQLqueryinsqlplus.
Host02Linux
[oggadm2@host02ogg02]sqlplusogguser2@orcl02/pswd2u
...severallinesomittedforclarity...
SQL>setpages20
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 14/20
9/18/2015 OGGInitLoadonLinuxOracle11g
SQL>setlines100
SQL>colnameformata10
SQL>colstreetformata15
SQL>colcityformata15
SQL>SELECT*FROMproducts;
CODENAMEPRICEQTY_OHVENDOR
1000wingnut.5100200
1010bushing.4250100
1020foobar190100
1030washer.15300100
1040doohick3.120200
1050spinner.7515200
6rowsselected.
SQL>SELECT*FROMvendors;
CODENAMESTREETCITYSTZIPPHONE
100AcmeCorp10AcornStAlbanyAL123451234567890
200BankInc20BrickStBuffaloNY234562345678901
300WhizLLC30WalnutStWashingtonDC345673456789012
SQL>
Thereshouldnotbeanyerrors.
Verifythattherowswerecopiedfromthesourcetablestothetargettables.Donotworryiftheyareinadifferentorder.
ThiscompletestheconfigurationandoperationofthebasicunidirectionalfunctionalityofOracleGoldenGate:InitialLoad
ExtractandReplicat.
5.ManagingtheOracleGoldenGateEnvironment
Therearereportsgeneratedduringandaftertheprocessesrun.Thesereportscontaininformation,warnings,anderrors(ifany)related
tothatrunoftheprocess.Toviewthereports,performthefollowingsteps:
5.1ViewingReports
Viewtheprocessreportsonthesource.
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 15/20
9/18/2015 OGGInitLoadonLinuxOracle11g
ViewtheprocessreportfortheExtract.
Host01Linux
GGSCI(host01)3>ViewReportitestab
2012092417:53:44INFOOGG01017WildcardresolutionsettoIMMEDIATE
becauseSOURCEISTABLEisused.
***********************************************************************
OracleGoldenGateCaptureforOracle
Version11.2.1.0.314400833OGGCORE_11.2.1.0.3_PLATFORMS_120823.1258_FBO
Linux,x64,64bit(optimized),Oracle11gonAug23201220:32:12
Copyright(C)1995,2012,Oracleand/oritsaffiliates.Allrightsreserved.
Startingat2012092417:53:44
***********************************************************************
OperatingSystemVersion:Linux
Version#1SMPWedJul2721:02:33EDT2011,Release2.6.32200.13.1.el5uek
Node:host01.example.com
Machine:x86_64
softlimithardlimit
AddressSpaceSize:unlimitedunlimited
HeapSize:unlimitedunlimited
FileSize:unlimitedunlimited
CPUTime:unlimitedunlimited
Processid:25816
Description:
***********************************************************************
**Runningwiththefollowingparameters**
***********************************************************************
ITESTAB.rpt(25%)
Youcanpress[Enter]tomoveonelineatatime,orpress[Space]tomoveapageatatime.Gotothebottomofthe
report.
Host01Linux
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 16/20
9/18/2015 OGGInitLoadonLinuxOracle11g
***********************************************************************
***RunTimeStatistics***
***********************************************************************
Reportat2012092417:53:50(activitysince2012092417:53:44)
Outputtortestab:
FromTableOGGUSER1.VENDORS:
#inserts:3
#updates:0
#deletes:0
#discards:0
FromTableOGGUSER1.PRODUCTS:
#inserts:6
#updates:0
#deletes:0
#discards:0
REDOLogStatistics
Bytesparsed0
Bytesoutput1349
GGSCI(host01)4>
NotethattheoutputoftheExtractisnotatrailfile,butstraighttoaReplicatprocess.
Viewtheprocessreportsforthetarget.
Onthetargethost02,viewtheprocessreportsfortheReplicat.
Host02Linux
GGSCI(host02)>ViewReportrtestab
***********************************************************************
OracleGoldenGateDeliveryforOracle
Version11.2.1.0.314400833OGGCORE_11.2.1.0.3_PLATFORMS_120823.1258_FBO
Linux,x64,64bit(optimized),Oracle11gonAug23201220:37:31
Copyright(C)1995,2012,Oracleand/oritsaffiliates.Allrightsreserved.
Startingat2012092417:53:45
***********************************************************************
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 17/20
9/18/2015 OGGInitLoadonLinuxOracle11g
OperatingSystemVersion:Linux
Version#1SMPWedJul2721:02:33EDT2011,Release2.6.32200.13.1.el5uek
Node:host02.example.com
Machine:x86_64
softlimithardlimit
AddressSpaceSize:unlimitedunlimited
HeapSize:unlimitedunlimited
FileSize:unlimitedunlimited
CPUTime:unlimitedunlimited
Processid:29769
Description:
***********************************************************************
**Runningwiththefollowingparameters**
***********************************************************************
More(25%)
Youcanpress[Enter]tomoveonelineatatime,orpress[Space]tomoveapageatatime.Gotothebottomofthe
report.
Host02Linux
***********************************************************************
***RunTimeStatistics***
***********************************************************************
Reportat2012092417:53:55(activitysince2012092417:53:50)
FromTableOGGUSER1.VENDORStoOGGUSER2.VENDORS:
#inserts:3
#updates:0
#deletes:0
#discards:0
FromTableOGGUSER1.PRODUCTStoOGGUSER2.PRODUCTS:
#inserts:6
#updates:0
#deletes:0
#discards:0
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 18/20
9/18/2015 OGGInitLoadonLinuxOracle11g
GGSCI(host02)>
Thecountofinserts/updates/deletesfortheReplicatshouldmatchthenumberfortheExtract.Iftherewereany
discards,theyshouldbeexaminedforthereasonwhytheywerediscarded.Iftherewereanycollisions,makesure
thoserowsmadeitintothetarget.
Reportsaregeneratedwhenyouaskforareporttobesentorwhenaprocessstops.Reportsarenamed/numbered
processname.rptforthemostcurrentone,andthenprocessname0.rpt,processname1.rpt,processname2.rptforthemostrecent,
uptoprocessname9.rptfortheoldest.Aseachnewreportiscreated,alltheoldreports"movedownone"getting
renamed/renumbereduntiltheoldestisdiscarded.Nomorethan11(themostrecentwithnonumberandtheprevious09)are
keptatatime.
5.2ViewingStatistics
ViewstatisticsforthesourceExtract.Thecatchisthatthestatisticsareonlykeptwhiletheprocessisactive,and
theInitialLoadprocessisdesignedtorunandterminateveryquickly.Soifyouhadalongrunning(anhour?)
InitialLoad,thenstatisticsmightmakesense,butatleastinthisexample,andperhapsinmostinstances,the
processistooshorttogetanymeaningfulstatistics.
Host01Linux
GGSCI(host01)>SendExtractitestab,Stats
ERROR:EXTRACTITESTABnotcurrentlyrunning.
GGSCI(host01)>
ThesamecommentsholdtruefortheReplicataswell:havingstopped,therearenostoredstatistics.
ThecommandStatsitestabdoesthesamething.Iftheprocessstopsforanyreason,completingnormallyor
abnormally,allstatisticsarelost.
Thereareotherkindsofstatisticsthatareavailableaswell.
Summary
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 19/20
9/18/2015 OGGInitLoadonLinuxOracle11g
OracleGoldenGatecandofarmorethanwasdemonstratedinthissimpleexercise.
Inthistutorial,youhavelearnedhowto:
ConfigureandstartExtractandReplicatprocessesforInitialLoadoftables
Generatesampledataandtestthevalidityofthereplication
Managethereportsproducedbytheprocesses
Resources
Helptopicsrelevanttothetopicofthistutorial:
OracleGoldenGateProductDocumentationversion11.2.1(E3520901)andotherolderversions
CoursesfromOracleUniversity
ExternalWebsitesforrelatedinformation
TolearnmoreaboutOracleGoldenGate,refertoadditionalOBEsintheOracleLearningLibrary
Credits
LeadCurriculumDeveloper:SteveFriedberg.
OtherContributors:RichardJohnston,HadiKoesnodihardjo,SimonWhitworth,JoedeBuzna,ChrisLawless.
TohelpnavigatethisOraclebyExample,notethefollowing:
HidingHeaderButtons:
ClicktheTitletohidethebuttonsintheheader.Toshowthebuttonsagain,simplyclicktheTitleagain.
TopicListButton:
Alistofallthetopics.Clickoneofthetopicstonavigatetothatsection.
Expand/CollapseAllTopics:
Toshow/hideallthedetailforallthesections.Bydefault,alltopicsarecollapsed.
Show/HideAllImages:
Toshow/hideallthescreenshots.Bydefault,allimagesaredisplayed.
Print:
Toprintthecontent.Thecontentcurrentlydisplayedorhiddenwillbeprinted.
Tonavigatetoaparticularsectioninthistutorial,selectthetopicfromthelist.
HelpOLLAboutOracleContactUsTermsofUse
http://www.oracle.com/technetwork/tutorials/tutorial1861053.html 20/20