0% found this document useful (0 votes)
85 views24 pages

ORACLE-BASE - Oracle Database 12c Release 1 (12

This document describes how to install Oracle Database 12c Release 1 in a RAC configuration on two Windows 2012 virtual machines using VirtualBox. It provides detailed steps for setting up the virtual machines, installing the operating systems, configuring networking and shared disks, installing Oracle prerequisites and grid infrastructure, and installing the database software.

Uploaded by

Benjamin Diaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views24 pages

ORACLE-BASE - Oracle Database 12c Release 1 (12

This document describes how to install Oracle Database 12c Release 1 in a RAC configuration on two Windows 2012 virtual machines using VirtualBox. It provides detailed steps for setting up the virtual machines, installing the operating systems, configuring networking and shared disks, installing Oracle prerequisites and grid infrastructure, and installing the database software.

Uploaded by

Benjamin Diaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

OracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox
ThisarticledescribestheinstallationofOracleDatabase12cRelease1(12.1)RAConWindows2012ServerStandardEditionusingVirtualBoxwithnoadditional
shareddiskdevices.
Introduction
DownloadSoftware
VirtualBoxInstallation
VirtualMachineSetup
GuestOperatingSystemInstallation
OracleInstallationPrerequisites
CreateSharedDisks
ClonetheVirtualMachine
InstalltheGridInfrastructure
InstalltheDatabaseSoftwareandCreateaDatabase
ChecktheStatusoftheRAC
Relatedarticles.
OracleDatabase12cRelease1(12.1.0.1)RACOnOracleLinux6UsingVirtualBox

Introduction
OneofthebiggestobstaclespreventingpeoplefromsettinguptestRACenvironmentsistherequirementforsharedstorage.Inaproductionenvironment,shared
storageisoftenprovidedbyaSANorhighendNASdevice,butbothoftheseoptionsareveryexpensivewhenallyouwanttodoisgetsomeexperienceinstalling
andusingRAC.AcheaperalternativeistouseaFireWirediskenclosuretoallowtwomachinestoaccessthesamedisk(s),butthatstillcostsmoneyandrequires
twoservers.Athirdoptionistousevirtualizationtofakethesharedstorage.
UsingVirtualBoxyoucanrunmultipleVirtualMachines(VMs)onasingleserver,allowingyoutorunbothRACnodesonasinglemachine.Inadditon,itallowsyou
tosetupsharedvirtualdisks,overcomingtheobstacleofexpensivesharedstorage.

Beforeyoulaunchintothisinstallation,hereareafewthingstoconsider.
Thefinishedsystemincludesthehostoperatingsystem,twoguestoperatingsystems,twosetsofOracleGridInfrastructure(Clusterware+ASM)andtwo
Databaseinstancesallonasingleserver.Asyoucanimagine,thisrequiresasignificantamountofdiskspace,CPUandmemory.
Followingonfromthelastpoint,theVMswilleachneedatleast3GofRAM,preferably4Gifyoudon'twanttheVMstoswaplikecrazy.Don'tassumeyou
willbeabletorunthisonasmallPCorlaptop.Youwon't.
ThisprocedureprovidesabarebonesinstallationtogettheRACworking.ThereisnoredundancyintheGridInfrastructureinstallationortheASM
installation.Toaddthis,simplycreatedoubletheamountofshareddisksandselectthe"Normal"redundancyoptionwhenitisoffered.Ofcourse,thiswill
takemorediskspace.
Duringthevirtualdiskcreation,Ialwayschoosenottopreallocatethediskspace.Thismakesvirtualdiskaccessslowerduringtheinstallation,butsaveson
wasteddiskspace.Theshareddisksmusthavetheirspacepreallocated.
Thisisnot,andshouldnotbeconsidered,aproductionreadysystem.It'ssimplytoallowyoutogetusedtoinstallingandusingRAC.
TheSingleClientAccessName(SCAN)shouldbedefinedintheDNSorGNSandroundrobinbetweenoneof3addresses,whichareonthesamesubnet
asthepublicandvirtualIPs.Priorto11.2.0.2itcouldbedefinedasasingleIPaddressinthe"/etc/hosts"file,whichiswrongandwillcausethecluster
verificationtofail,butitallowedyoutocompletetheinstallwithoutthepresenceofaDNS.Thisdoesnotseemtoworkfor11.2.0.2onward.
Thevirtualmachinescanbelimitedto2Gigofswap,whichcausesaprerequisitecheckfailure,butdoesn'tpreventtheinstallationworking.Ifyouwantto
avoidthis,define3+Gigofswap.
Thisarticleusesthe64bitversionsofWindowsandOracle11gRelease2.
InthisarticleIamusingaOracleLinuxasmyhostOS.

DownloadSoftware
Downloadthefollowingsoftware.
VirtualBox
OracleDatabase12cRelease1(12.1.0.1.0)GridandDBsoftware

VirtualBoxInstallation
First,installtheVirtualBoxsoftware.OnRHELanditsclonesyoudothiswiththefollowingcommandastherootuser.
#rpmUvhVirtualBox4.24.2.16_86992_el61.x86_64.rpm
Thepackagenamewillvarydependingonthehostdistributionyouareusing.Oncecomplete,VirtualBoxisstartedfromthemenu.

VirtualMachineSetup
NowwemustdefinethetwovirtualRACnodes.WecansavetimebydefiningoneVM,thencloningitwhenitisinstalled.
StartVirtualBoxandclickthe"New"buttononthetoolbar.Enterthename"w2012121rac1",OS"MicrosoftWindows"andVersion"Windows2012(64bit)",then
clickthe"Next"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

1/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Enter"4096"asthebasememorysize,thenclickthe"Next"button.

Acceptthedefaultoptiontocreateanewvirtualharddiskbyclickingthe"Create"button.

Accceptthedefaultharddrivefiletypebyclickingthe"Next"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

2/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Accceptthe"Dynamicallyallocated"optionbyclickingthe"Next"button.

Acceptthedefaultlocationandsetthesizeto"30G",thenclickthe"Create"button.Ifyoucanspreadthevirtualdisksontodifferentphysicaldisks,thatwillimprove
performance.

The"w2012121rac1"VMwillappearonthelefthandpane.Scrolldownthedetailsontherightandclickonthe"Network"link.

Makesure"Adapter1"isenabled,setto"BridgedAdapter",thenclickonthe"Adapter2"tab.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

3/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Makesure"Adapter2"isenabled,setto"InternalNetwork",thenclickonthe"System"section.

Move"HardDisk"tothetopofthebootorderanduncheckthe"Floppy"option,thenclickthe"OK"button.

Thevirtualmachineisnowconfiguredsowecanstarttheguestoperatingsysteminstallation.

GuestOperatingSystemInstallation
WiththenewVMhighlighted,clickthe"Start"buttononthetoolbar.Onthe"Selectstartupdisk"screen,choosetherelevantOracleLinuxISOimageandclickthe
"Start"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

4/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

TheresultingconsolewindowwillcontaintheWindows2012bootscreen.

ContinuethroughtheFullStandardEditioninstallationasyouwouldforanormalserver.InthiscaseIwasusinganevaluationversionofWindows2012,soIpicked
the"WindowsServer2012StandardEvaluation(ServerwithaGUI)"option.Pickthecustominstallwhendoingafreshinstallation.
Whentheinstallationiscomplete,installtheVirtualBoxGuestAdditionsontheserver.Thisisinitiatedfromthe"Devices>InstallGuestAdditions..."menu.Accept
allthedefaultsandreboottheserverwhenrequested.
Createasharedfolder(Devices>SharedFolders)onthevirtualmachine,pointingtothedirectoryonthehostwheretheOraclesoftwarewasunzipped.Checkthe
"Automount"and"MakePermanent"optionsbeforeclickingthe"OK"button.

TheVMwillneedtoberestartedfortheguestadditionstobeusedproperly.Thenextsectionrequiresashutdownsonoadditionalrestartisneededatthistime.
OncetheVMisrestarted,thesharedfolderwillbeavailableasthe"E:\"drive.

OracleInstallationPrerequisites
Performthefollowingstepswhilstloggedintothevirtualmachine.
TurnofftheWindowsfirewall"ServerManager>LocalServer>WindowsFirewall>Public:On>TurnWindowsFirewallonoroff"topreventitfrominterferingwith
thesevercommunication.Youcanturnitonlaterandopenupanyrequiredportsifyouwantto.
Amendthe"C:\windows\system32\drivers\etc\hosts"filetocontainthefollowinginformation.EvenifyouareusingDNStoresolvetheSCAN,includetheSCAN
entriesinthe"hosts"files.WithoutthemtheinstallerhadtroublerecognisingtheSCAN.
127.0.0.1localhost.localdomainlocalhost
#Public
192.168.0.151w2012121rac1.localdomainw2012121rac1
192.168.0.152w2012121rac2.localdomainw2012121rac2
#Private
192.168.1.151w2012121rac1priv.localdomainw2012121rac1priv
192.168.1.152w2012121rac2priv.localdomainw2012121rac2priv

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

5/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

#Virtual
192.168.0.153w2012121rac1vip.localdomainw2012121rac1vip
192.168.0.154w2012121rac2vip.localdomainw2012121rac2vip
#SCAN
192.168.0.155w2012121scan.localdomainw2012121scan
192.168.0.156w2012121scan.localdomainw2012121scan
192.168.0.157w2012121scan.localdomainw2012121scan
Openthe"NetworkConnections"screen(ServerManager>LocalServer>Ethernet(clicklinknexttoit)).
Renamethe"Ethernet"to"public"and"Ethernet2"to"private",makingsureyouapplythenamestothe
appropriateconnections.Youcandothisbyrightclickingontheconnectionandselecting"Rename"fromthe
popupmenu.
SetthecorrectIPinformationforthepublicandprivateconnections.Rightclickonaconnectionandselectthe
"Properties"menuoption.Clickon"InternetProtocolVersion4(TCP/IPv4)"optionandclickthe"Properties.
button.EntertheappropriateIP,subnet,defaultgatewayandDNSforthenetworks.
public:
IPAddress:192.168.0.151
Subnet:255.255.255.0
DefaultGateway:192.168.0.1
DNS:192.168.0.6
private:
IPAddress:192.168.1.151
Subnet:255.255.255.0
DefaultGateway:N/A
DNS:N/A
Clickonthe"Advanced"button,followedbythe"DNS"tab.Selectthe"AppendtheseDNSsuffixes(inorder)"optionandaddthedomainsuffix,inthiscase
"localdomain".Usethe"OK"buttonstoexitthedialogs.
Note.It'sworthdoublecheckingtheMACaddressesofthenetworkadaptersintheVMagainstthoseofthenetworkinterfacesontheguestoperatingsystem.
Makesurethepublicinterfaceisthebridgedconnection.TheguestOSsometimesshowstheinterfacesoutoforder.
Ifanyofthenetworkconnectionsareleftinadisabledstate,rightclickonthenandselectthe"Diagnose"optiontorepairthem.
Ensurethepublicinterfaceisfirstinthebindorder:
Onthe"NetworkConnections"dialog,press"Alt+N"toshowtheadvancedmenu.Select"AdvancedSettings...".
Onthe"AdaptersandBindings"tab,makesurethepublicinterfaceisthefirstinterfacelisted.
Clickoneachnetworkinturnandmakesurethe"TCP/IPv4"bindingscomebeforethe"TCP/IPv6"bindings.Thisshouldbecorrectbydefault.
Acceptanymodificationsbyclickingonthe"OK"buttonandexitingthe"NetworkConnections"dialog.
DisableWindowsMediaSensingforTCP/IP:
BackuptheWindowsregistry.
RuntheRegistryEditor(Regedit.exe)andfindthefollowingkey.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Addthefollowingregistryvalue.
ValueName:DisableDHCPMediaSense
DataType:DWORD
Value:1
Thischangewillnottakeeffectuntilthecomputerisrestarted.
Openthe"SystemProperties"dialog(Start>ControlPanel>SystemandSecurity>System>ChangeSettings)anddothefollowing:
Clickthe"Change"button,enterthemachinename"w2012121rac1"thenclickthe"OK"button.
ClickontheAdvancedtabandthe"EnvironmentVariables"button.
Editboththe"TEMP"and"TMP"environmentvariablestobe"%WINDIR%\temp",whichis"C:\Windows\temp".
Clickthe"OK"buttonand"Apply"outofthe"System"dialog.
Restarttheserver.

CreateSharedDisks
MakesuretheVMisshutdown,createadirectorytohostthesharedvirtualdisksonthehostOS,thencreatetheshareddisks.MyhostisLinux,sothepathsto
thevirtualdisksareUNIXstylepaths.IfyourhostisWindows,thenyouwillbeusingWindowsstylepaths.
$mkdirp/u04/VirtualBox/w2012121rac
$cd/u04/VirtualBox/w2012121rac
$
$#CreatethedisksandassociatethemwithVirtualBoxasvirtualmedia.
$VBoxManagecreatehdfilenameasm1.vdisize5120formatVDIvariantFixed
$VBoxManagecreatehdfilenameasm2.vdisize5120formatVDIvariantFixed
$VBoxManagecreatehdfilenameasm3.vdisize5120formatVDIvariantFixed
$VBoxManagecreatehdfilenameasm4.vdisize5120formatVDIvariantFixed
$
$#ConnectthemtotheVM.
$VBoxManagestorageattachw2012121rac1storagectl"SATA"port1device0typehddmediumasm1.vdimtypeshareable
$VBoxManagestorageattachw2012121rac1storagectl"SATA"port2device0typehddmediumasm2.vdimtypeshareable
$VBoxManagestorageattachw2012121rac1storagectl"SATA"port3device0typehddmediumasm3.vdimtypeshareable

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

6/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

$VBoxManagestorageattachw2012121rac1storagectl"SATA"port4device0typehddmediumasm4.vdimtypeshareable
$
$#Makeshareable.
$VBoxManagemodifyhdasm1.vditypeshareable
$VBoxManagemodifyhdasm2.vditypeshareable
$VBoxManagemodifyhdasm3.vditypeshareable
$VBoxManagemodifyhdasm4.vditypeshareable
Startthew2012121rac1virtualmachinebyclickingthe"Start"buttononthetoolbar.Whentheserverhasstarted,loginsoyoucanpartitionthedisks.
Wewillpartitionthedisksusingthe"DiskPart"utility.Togetalistofthecurrentdisksdothefollowing.
C:\>diskpart
MicrosoftDiskPartversion6.0.6001
Copyright(C)19992007MicrosoftCorporation.
Oncomputer:RAC1
DISKPART>listdisk
Disk###StatusSizeFreeDynGpt

Disk0Online30GB0B
Disk1Online10GB10GB
Disk2Online10GB10GB
Disk3Online10GB10GB
Disk4Online10GB10GB
DISKPART>
Inthediskpartutilitywewillperformthefollowingcommands.
automountenable
selectdisk1
createpartitionextended
createpartitionlogical
selectdisk2
createpartitionextended
createpartitionlogical
selectdisk3
createpartitionextended
createpartitionlogical
selectdisk4
createpartitionextended
createpartitionlogical
exit
StampthedisksforusewithASM.ThisisdoneusingtheasmtoolthatcomeswiththeGridInfrastructuremedia.
C:>E:
E:>cdgrid\asmtool
E:>asmtooladd\Device\HardDisk1\Partition1ORCLDISK1
E:>asmtooladd\Device\HardDisk2\Partition1ORCLDISK2
E:>asmtooladd\Device\HardDisk3\Partition1ORCLDISK3
E:>asmtooladd\Device\HardDisk4\Partition1ORCLDISK4
E:>asmtoollist
NTFS\Device\Harddisk0\Partition1350M
NTFS\Device\Harddisk0\Partition230368M
ORCLDISK1\Device\Harddisk1\Partition15117M
ORCLDISK2\Device\Harddisk2\Partition15117M
ORCLDISK3\Device\Harddisk3\Partition15117M
ORCLDISK4\Device\Harddisk4\Partition15117M
E:>
Theshareddisksarenowconfigured.

ClonetheVirtualMachine
VirtualBoxallowsyoutocloneVMs,butthesealsoattempttoclonetheshareddisks,whichisnotwhatwewant.InsteadwemustmanuallyclonetheVM.
Shutdownthe"w2012121rac1"VM.
Manuallyclonethevirtualdiskusingthefollowingcommandsonthehostserver.
$mkdirp/u03/VirtualBox/w2012121rac2
$VBoxManageclonehd/u02/VirtualBox/w2012121rac1/w2012121rac1.vdi/u03/VirtualBox/w2012121rac2/w2012121rac2.vdi
Createthe"w2012121rac2"virtualmachineinVirtualBoxinthesamewayasyoudidfor"w2012121rac1",withtheexceptionofusinganexisting"w2012121
rac2.vdi"virtualharddrive.
RemembertoaddthethreenetworkadaptorsasyoudidonthefirstVM.WhentheVMiscreated,attachtheshareddiskstothisVM.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

7/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

$cd/u04/VirtualBox/w2012121rac
$
$VBoxManagestorageattachw2012121rac2storagectl"SATA"port1device0typehddmediumasm1.vdimtypeshareable
$VBoxManagestorageattachw2012121rac2storagectl"SATA"port2device0typehddmediumasm2.vdimtypeshareable
$VBoxManagestorageattachw2012121rac2storagectl"SATA"port3device0typehddmediumasm3.vdimtypeshareable
$VBoxManagestorageattachw2012121rac2storagectl"SATA"port4device0typehddmediumasm4.vdimtypeshareable
Startthe"w2008112rac2"virtualmachine.
Openthe"NetworkConnections"screen(ServerManager>LocalServer>Ethernet(clicklinknexttoit))andamendtheIPaddressvaluesofeachnetworktothe
appropriatevaluesforthesecondnode.
Openthe"SystemProperties"dialog(Start>ControlPanel>SystemandSecurity>System>ChangeSettings)andchangethemachinenamebyclickingthe
"Change"button.Clickall"OK"buttonstoexitthe"SystemProperties"dialogandrestarttheserverwhenprompted.
OncetheRAC2virtualmachinehasrestarted,starttheRAC1virtualmachine.Whenbothnodeshavestarted,checktheycanbothpingallthepublicandprivateIP
addressesusingthefollowingcommands.
pingw2012121rac1
pingw2012121rac1priv
pingw2012121rac2
pingw2012121rac2priv
AtthispointthevirtualIPaddressesdefinedinthehostsfilewillnotwork,sodon'tbothertestingthem.
Thevirtualmachinesetupisnowcomplete.
BeforemovingforwardyoushouldprobablyshutdownyourVMsandtakesnapshotsofthem.Ifanyfailureshappenbeyondthispointitisprobablybettertoswitch
backtothosesnapshots,cleanuptheshareddrivesandstartthegridinstallationagain.Analternativetocleaninguptheshareddisksistobackthemupnowusing
zipandjustreplacethemintheeventofafailure.
$cd/u04/VirtualBox/w2012121rac
$zipPreGrid.zip*.vdi

InstalltheGridInfrastructure
Makesurebothvirtualmachinesarestarted.Loginto"w2012121rac1"andstarttheOracleinstaller.
e:
cdgrid
setup.exe
Selectthe"Skipsoftwareupdates"option,thenclickthe"Next"button.

Selectthe"InstallandConfigureOracleGridInfrastructureforaCluster"option,thenclickthe"Next"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

8/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Selectthe"TypicalInstallation"option,thenclickthe"Next"button.

Onthe"SpecifyClusterConfiguration"screen,enterthecorrectSCANNameandclickthe"Add"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

9/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Enterthedetailsofthesecondnodeinthecluster,thenclickthe"OK"button.

Clickthe"Identifynetworkinterfaces..."buttonandcheckthepublicandprivatenetworksarespecifiedcorrectly.RemembertomarktheNATinterfaceas"DoNot
Use".Onceyouarehappywiththem,clickthe"OK"buttonandthe"Next"buttononthepreviousscreen.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

10/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

EntertheORACLE_BASEof"c:\app\12.1.0.1",asoftwarelocationof"c:\app\12.1.0.1\grid"andtheSYSASMpassword.clickthe"Next"button.

Settheredundancyto"External",selectall4disksandclickthe"Next"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

11/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Waitwhiletheprerequisitecheckscomplete.Ifyouhaveanyissues,eitherfixthemorcheckthe"IgnoreAll"checkboxandclickthe"Next"button.Itislikelythe
"Windowsfirewallstatus","PhysicalMemory"and"Administrator"testswillfailforthistypeofinstallation.

Ifyouarehappywiththesummaryinformation,clickthe"Install"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

12/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Waitwhilethesetuptakesplace.

Clickthe"Close"buttontoexittheinstaller.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

13/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Thegridinfrastructureinstallationisnowcomplete.Wecancheckthestatusoftheinstallationusingthefollowingcommands.
C:\>C:\app\12.1.0.1\grid\bin\crsctlstatrest

NameTargetStateServerStatedetails

LocalResources

ora.DATA.dg
ONLINEONLINEw2012121rac1STABLE
ONLINEONLINEw2012121rac2STABLE
ora.LISTENER.lsnr
ONLINEONLINEw2012121rac1STABLE
ONLINEONLINEw2012121rac2STABLE
ora.asm
ONLINEONLINEw2012121rac1Started,STABLE
ONLINEONLINEw2012121rac2Started,STABLE
ora.net1.network
ONLINEONLINEw2012121rac1STABLE
ONLINEONLINEw2012121rac2STABLE
ora.ons
ONLINEONLINEw2012121rac1STABLE
ONLINEONLINEw2012121rac2STABLE

ClusterResources

ora.LISTENER_SCAN1.lsnr
1ONLINEONLINEw2012121rac2STABLE
ora.LISTENER_SCAN2.lsnr
1ONLINEONLINEw2012121rac1STABLE
ora.LISTENER_SCAN3.lsnr
1ONLINEONLINEw2012121rac1STABLE
ora.cvu
1ONLINEONLINEw2012121rac1STABLE
ora.oc4j
1OFFLINEOFFLINESTABLE
ora.scan1.vip
1ONLINEONLINEw2012121rac2STABLE
ora.scan2.vip
1ONLINEONLINEw2012121rac1STABLE
ora.scan3.vip
1ONLINEONLINEw2012121rac1STABLE
ora.w2012121rac1.vip
1ONLINEONLINEw2012121rac1STABLE
ora.w2012121rac2.vip
1ONLINEONLINEw2012121rac2STABLE

C:\>
AtthispointitisprobablyagoodideatoshutdownbothVMsandtakesnapshots.RemembertomakeafreshzipoftheASMdisksonthehostmachine,whichyou
willneedtorestoreifyoureverttothepostgridsnapshots.
$cd/u04/VirtualBox/w2012121rac
$zipPostGrid.zip*.vdi

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

14/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

InstalltheDatabaseSoftware
Makesurethe"w2012121rac1"and"w2012121rac2"virtualmachinesarestarted,thenloginto"w2012121rac1"andstarttheOracleinstaller.
e:
cddatabase
setup.exe
Uncheckthesecurityupdatescheckboxandclickthe"Next"buttonand"Yes"onthesubsequentwarningdialog.

Checkthe"Skipsoftwareupdates"checkboxandclickthe"Next"button.

Selectthe"Installdatabasesoftwareonly"option,thenclickthe"Next"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

15/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Acceptthe"OracleRealApplicationClustersdatabaseinstallation"optionbyclickingthe"Next"button.

Makesurebothnodesareselected,thenclickthe"Next"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

16/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Selecttherequiredlanguages,thenclickthe"Next"button.

Selectthe"EnterpriseEdition"option,thenclickthe"Next"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

17/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Decidethecredentialsforthedatabaseuser,thenclickthe"Next"button.InthiscaseIpickedthe"UseWindowsBuiltinAccount"option,whichisnot
recommended.Ifyoupickthisoption,acceptthefollowingwarningdialog.

Enter"c:\app\oracle"astheOraclebaseand"c:\app\oracle\product\12.1.0.1\db_1"asthesoftwarelocation,thenclickthe"Next"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

18/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Waitfortheprerequisitechecktocomplete.Ifthereareanyproblemseitherfixthem,orcheckthe"IgnoreAll"checkboxandclickthe"Next"button.

Ifyouarehappywiththesummaryinformation,clickthe"Install"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

19/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Waitwhiletheinstallationtakesplace.

Clickthe"Close"buttontoexittheinstaller.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

20/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

ShutdownbothVMsandtakesnapshots.RemembertomakeafreshzipoftheASMdisksonthehostmachine,whichyouwillneedtorestoreifyoureverttothe
postdbsnapshots.
$cd/u04/VirtualBox/w2012121rac
$zipPostDB.zip*.vdi

CreateaDatabase
Makesurethe"w2012121rac1"and"w2012121rac2"virtualmachinesarestarted,thenloginto"w2012121rac1"andstarttheDatabaseCreationAsistant
(DBCA).
c:\>dbca
Selectthe"CreateDatabase"optionandclickthe"Next"button.
Selectthe"Createadatabasewithdefaultconfiguration"option.Enterthecontainerdatabasename(cdbrac),pluggabledatabasename(pdbrac)andadministrator
password.Clickthe"Next"button.

Waitfortheprerequisitecheckstocomplete.Ifthereareanyproblemseitherfixthem,orcheckthe"IgnoreAll"checkboxandclickthe"Next"button.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

21/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Ifyouarehappywiththesummaryinformation,clickthe"Finish"button.

Waitwhilethedatabasecreationtakesplace.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

22/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

Ifyouwanttomodifypasswords,clickthe"PasswordManagement"button.Whenfinished,clickthe"Exit"button.

Clickthe"Close"buttontoexittheDBCA.

TheRACdatabasecreationisnowcomplete.

ChecktheStatusoftheRAC
data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

23/24

28/01/2015

ORACLEBASEOracleDatabase12cRelease1(12.1)RACOnWindows2012UsingVirtualBox

ThereareseveralwaystocheckthestatusoftheRAC.ThesrvctlutilityshowsthecurrentconfigurationandstatusoftheRACdatabase.
C:\>srvctlconfigdatabasedcdb12c
Databaseuniquename:cdb12c
Databasename:cdb12c
Oraclehome:C:\app\oracle\product\12.1.0.1\db_1
Oracleuser:ntauthority\system
Spfile:+DATA/cdb12c/spfilecdb12c.ora
Passwordfile:+DATA/cdb12c/orapwcdb12c
Domain:
Startoptions:open
Stopoptions:immediate
Databaserole:PRIMARY
Managementpolicy:AUTOMATIC
Serverpools:cdb12c
Databaseinstances:cdb12c1,cdb12c2
DiskGroups:DATA
Mountpointpaths:
Services:
Type:RAC
Startconcurrency:
Stopconcurrency:
Databaseisadministratormanaged
C:\>
C:\>srvctlstatusdatabasedcdb12c
Instancecdb12c1isrunningonnodew2012121rac1
Instancecdb12c2isrunningonnodew2012121rac2
C:\>
TheV$ACTIVE_INSTANCESviewcanalsodisplaythecurrentstatusoftheinstances.
C:\>sqlplus/assysdba
SQL*Plus:Release12.1.0.1.0ProductiononMonJul2223:12:222013
Copyright(c)1982,2013,Oracle.Allrightsreserved.
Connectedto:
OracleDatabase12cEnterpriseEditionRelease12.1.0.1.064bitProduction
WiththePartitioning,RealApplicationClusters,AutomaticStorageManagement,
AdvancedAnalyticsandRealApplicationTestingoptions
SQL>SELECTinst_nameFROMv$active_instances;
INST_NAME

W2012121RAC1:cdb12c1
W2012121RAC2:cdb12c2
SQL>
Formoreinformationsee:
OracleGridInfrastructureInstallationGuide12cRelease1(12.1)forMicrosoftWindowsx64(64Bit)
OracleRealApplicationClustersInstallationGuide12cRelease1(12.1)forMicrosoftWindowsx64(64Bit)
OracleDatabase12cRelease1(12.1.0.1)RACOnOracleLinux6UsingVirtualBox
Hopethishelps.RegardsTim...

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22fontsize%3A%201.4em%3B%20fontweight%3A%20bold%3B%20color%3A%20rgb(0%2C%200

24/24

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy