silent install of oracle 11.2.0

54
3/2/2015 Silent Install of Oracle 11.2.0.3 on Solaris 11 x86 | The Gruff DBA https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 1/54 T he Gruff DBA When you just want this Oracle @&$! to work… Silent Install of Oracle 11.2.0.3 on Solaris 11 x86 Posted on May 6, 2013 by oraclejedi • Posted in ASM , Oracle , Solaris , VMware • Tagged oracle 11gr2 on Solaris 11 , oracle install on solaris x86 , silent install on solaris • 1 Comment In this blog post, we are going to install Oracle 11.2.0.3 64‑bit on Solaris 11 x86 using VMWare Workstation 9. Solaris represents a popular alternative to Linux for many Oracle shops, especially since it offers some familiarity for System Admins and DBAs who were previously running Oracle on SPARC. Time Required: 120 minutes Class Materials: An x86 64‑bit computer with 4GB RAM and 10GB of hard disk space. A minimum of a 1024×768 display with 256 colors. VMWare Workstation 9 or better. Whatever OS VMWare Workstation needs to run on. In my case I run it on Windows 7 Professional. Oracle Solaris 11 11/11 Live install disc Oracle Grid and Database software version 11.2.0.3.

Upload: baraka08

Post on 05-Sep-2015

26 views

Category:

Documents


1 download

DESCRIPTION

Silent Install of Oracle 11.2.0

TRANSCRIPT

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 1/54

    TheGruffDBA

    WhenyoujustwantthisOracle@&$!towork

    SilentInstallofOracle11.2.0.3onSolaris11x86

    PostedonMay6,2013byoraclejediPostedinASM,Oracle,Solaris,VMwareTaggedoracle11gr2onSolaris11,oracleinstallonsolarisx86,silentinstallonsolaris1CommentInthisblogpost,wearegoingtoinstallOracle11.2.0.364bitonSolaris11x86usingVMWareWorkstation9.

    SolarisrepresentsapopularalternativetoLinuxformanyOracleshops,especiallysinceitofferssomefamiliarityforSystemAdminsandDBAswhowerepreviouslyrunningOracleonSPARC.

    TimeRequired:120minutes

    ClassMaterials:

    Anx8664bitcomputerwith4GBRAMand10GBofharddiskspace.Aminimumofa1024768displaywith256colors.VMWareWorkstation9orbetter.WhateverOSVMWareWorkstationneedstorunon.InmycaseIrunitonWindows7Professional.OracleSolaris1111/11LiveinstalldiscOracleGridandDatabasesoftwareversion11.2.0.3.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 2/54

    NotethatforOracle,weneedthe11.2.0.3versionofthesoftware,notthe11.2.0.1thatisavailablefromdownload.oracle.com.

    Oracle11.2.0.1isnotsupportedonSolaris11.AsfarasIknowyouwillneedtogetthisfromMyOracleSupport,andyouarelookingforpatchnumber10404530whichwillgiveyouaccesstosixzipfiles.Youonlyneedthefirstthreezipfiles.

    PartICreatetheSolarisVM.

    TimeRequired:10mins.

    FirstweneedtocreateaSolaris11VM.IcreatedanewVMusingtheVMWareWorkstationwizard.

    VMWareWorkstation9doesnotrecognizetheSolaris11installISOimageasSolaris64bitsotheEasyInstalleroptiondoesnotwork.Insteadyouwillhavetostepthroughtheinstallprocessmanually:

    IcreatedmyVMwithasingleCPU,4GBRAMandasingle40GBSCSIdisks.

    UsingFile>NewVirtualMachinelaunchtheprocesstocreateanewVM:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 3/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create01.png)

    CreateacustomWorkstation9VM:

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create02.png)

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 4/54

    Selecttheinstallmedia.InthisexampleIamusingtheSolaris11Liveinstalldisc,whichIhaveasanISO.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create03.jpg)

    Asstated,Workstation9doesnotrecognizetheSolaris11LiveCDmedia,sosetitmanuallytoSolaris11.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 5/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create04.jpg)

    Atthenextpage,chooseanameforyourVM.IhavechosentocallmineSolaris1164bitwithOracle11gR2andASM.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create05.jpg)

    Atthenextpage,settheprocessorcountto1.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 6/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create06.jpg)

    Atthenextpage,setthememory.Irecommendatleast4GB.Ihavenottriedless.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create07.jpg)

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 7/54

    Atthenextpage,setthenetworktypetobridged.ThiswillallowthefirstNICtoaquireanaddressfromthesamenetworkasthehostmachine.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create08.jpg)

    Atthenextpage,setthediskcontrollertoLSILogic(Recommended).

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 8/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create09.jpg)

    Atthenextpage,selectCreateanewvirtualdisk.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create10.jpg)

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 9/54

    Atthenextpage,selectSCSI(Recommended).

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create11.jpg)

    Setthediskto40GBandallowittobesplitinmultiplevirtualfiles.Itdoesnothavetobefullyprovisioned.

    Atthelastpage,reviewyoursettings.Ifalllookswell,pressFinishtocreatetheVM.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 10/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_create14.jpg)

    WhentheVMstarts,theSolarisX86OSwillstarttobootup.SelectthefirstoptionSolaris1111/11tostarttheinstall.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os01.jpg)

    Thenextscreenwillaskforthekeyboard,thedefaultis47forUSEnglish.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 11/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os02.jpg)

    Thedefaultlangaugeis3forEnglish.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os03.jpg)

    TheSolaris11x86LiveinstalldiscnowbootsintoaGnomeenvironment.Thisiscontainedentirelyinmemory,andgivestheusertheopportunitytoexplorealittlebeforedecidingtoinstallthefullOS.

    Ifyouarereadytoproceed,doubleclicktheInstallOracleSolarisiconinthetopleftofthescreen.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 12/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os04.png)

    Theinstallergivesustheopportunitytoreviewinstallnotes.Whenyouareready,clickNext.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os05.png)

    AttheDiskscreen,selectalldefaultsandclickNext.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 13/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os06.png)

    AttheTimeZonescreen,selectthelocationclosesttoyou.ForsomeoddreasonitdefaultstoGMT,butthenadjuststheclockwhenyouchooseyourlocation,requiringyoutosetitbacktotheactualtime.Odd.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os07.png)

    Atthenextscreenwecreateourdefaultuser.ThisisthefirstuserontheOSandwillhaverootroleprivileges.DoNOTcallthisdefault

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 14/54

    Atthenextscreenwecreateourdefaultuser.ThisisthefirstuserontheOSandwillhaverootroleprivileges.DoNOTcallthisdefaultuseroracleorgrid.

    Choosesomethingyouwillrememberanddonotforgetthepasswordyouselect.

    Youcanalsonameyourcomputeratthispoint.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os08.png)

    Thenextscreenallowsyoutoreviewyourchoicesbeforelaunchingtheinstall.Wheneverythinglooksright,clickNext.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 15/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os09.png)

    Theinstallerprovidesaprogressbarasitinstalls.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os10.png)

    Finallytheinstallationiscomplete.EjecttheinstallmediafromthevirtualdriveandrebootyourVM.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 16/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_os11.png)

    PartIIAddExtraHardware.

    TimeRequired:10mins.

    NowthatwehaveSolaris11installed,weneedtoaddsomenewhadrwaretoourVM.

    RightclickonyourVMnameintheVMWareWortstationinterface,andselectSettings.NowclickAddontheHardwaretabtoaddsomenewhardwaretotheVM.

    SincewearegoingtobeusingASM,weneedanotherdiskforASMtouse.

    SelectHardDiskandclickNext.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 17/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_addhw011.jpg)

    SelectCreateanewvirtualdiskandclickNext.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_addhw021.jpg)

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 18/54

    SelectSCSI(Recommended)andclickNext.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_addhw031.jpg)

    Atthenextscreen,specifythedisksizeat5GBandselectSplitvirtualdiskintomultiplefiles.ItisnotnecessarytoselectAllocatealldiskspacenow.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 19/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_addhw041.jpg)

    Atthenextscreen,chooseanametocallthevirtualdiskfiles.ThiswillonlybevisiblefromtheguestOS.

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_addhw051.jpg)

    NextIaddedasecondnetworkadapterconnectedtomyVMNet2virtualnetwork.ThefirstNICisabridgedadapterthatusesthesamenetworkasmyhostlaptop.AsImovefromsitetosite,thatIPaddresswillchange.

    ThesecondNICistiedtomyvirtualVMNet2andallowsforstaticIPaddressingregardlessofphysicalnetworks.MyVMNet2isdefinedwithasubnetof10.10.1.x.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 20/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_addhw061.jpg)

    NextIaddaUSBcontrollertomyVM.IdothissinceIwillstagetheOracleinstallmediaonanexternalUSBdrivetosavediskspaceonthefinishedVM.IfyoudonotplantouseUSBdeviceswithyourVMyoumayskipthis.

    FinallyIsetthedisplaytoafixed1024768resolution.IhavehadalotofproblemswiththeSolarisGnomedesktop,andthoseproblemsseemstobeexacerbatedbythescreenresolutionchanging.Settingafixedresolutionseemstohelpalittle.

    Thefinalhadrwareconfigurationshouldlooksomethinglikethis:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 21/54

    (https://gruffdba.files.wordpress.com/2013/03/solx86_vm_addhw091.jpg)

    PartIIIConfigureVMWareToolsandNetworking.

    TimeRequired:10mins.

    NowthatwehavecreatedourSolaris11VMandaddedextrahardwaretosupportOracle11.2.0.3,wecaninstalltheVMWaretools.

    PoweruptheVMandloginasthedefaultuseryouspecifiedduringtheinstallprocess.NotethatwithSolaris11,therootuserisnolongeratrueuserbutarole.Youcansutorootfromauthorizedaccountsonly.

    Althoughitispossibletosetrootbacktoarealuser,Iamtryingtosticktonewpreferredpractices,sowewillleaverootasarole.

    Thefirsttimeyousutorootfromthedefaultuser,usethesamepasswordasyouspecifiedforthedefaultuser.Solariswilltheninformyouthattherootpasswordhasexpiredandneedstobereset:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 22/54

    gruffdba@solaris:~$suPassword:su:Passwordforuser'root'hasexpiredNewPassword:ReenternewPassword:su:passwordsuccessfullychangedforrootOracleCorporation SunOS5.11 11.0 November2011root@solaris:~#

    NextIrecommendyouinstalltheVMwareToolspackageasthiswillgreatlyimprovetheusabilityofyourSolaris11VM.

    UsetheVMWareWorkstationmenutoselect

    VM>InstallVMWareTools

    OncethevirtualDVDopensontheGnomedesktop,useaterminalwindowtogunziptheGZipdVMWaretoolsfile,thenuntaritandruntheperlinstaller.Acceptalldefaults.

    NextweshouldnameourVM.TheinstallprocessallowedustoselectanameforourVM,butifweneedtochangeitforanyreasonwecandosonow.

    InthisexampleIamnamingmyVMrodolfoafteroneoftheleadcharactersinLaBoheme.

    MyvirtualnetworkdomainisagainhadesnetaftertheoriginalnetworkIcreatedforOrpheusandEurydiceforthe11gR2RAConVMWareWorkstationblogpostlastyear.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 23/54

    #svccfgssvc:/system/identity:nodesetpropconfig/nodename="rodolfo.hadesnet"#svcadmrefreshsvc:/system/identity:node#svcadmrestartsvc:/system/identity:node

    Nextweneedtoconfigureournetwork.Ifyouacceptedalldefaultsduringinstall,youwillhaveDHCPenabledonNIC1andnothingonNIC2.

    Inthefollowingexample,wearegoingtoreconfigureSolaristouseDHCPonNIC1buthaveastaticIPonNIC2.

    Firstletsenablemanualconfiguration:

    root@rodolfo:~#netadmenablepncpdefaultfixedEnablingncp'DefaultFixed'

    NextwearegoingtoconfigureNIC1,whichSolarisseesasnet0touseDHCP:

    root@rodolfo:~#ipadmdeleteipnet0root@rodolfo:~#ipadmcreateipnet0root@rodolfo:~#ipadmcreateaddrTdhcpnet0/addr

    Wewilladdthedefaultgatewayformyhomenetwork:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 24/54

    root@rodolfo:~#routepadddefault192.168.0.1addnetdefault:gateway192.168.0.1:entryexistsaddpersistentnetdefault:gateway192.168.0.1

    NowIwilladdtheDNSserverbacktoNet0

    root@rodolfo:~#svccfgsdns/clientsetpropconfig/nameserver=net_address:192.168.0.1

    Okay,thatsthebridgedadapterdone,nowletsconfigurethestaticIPontheVMNet2NIC,whichSolarisseesasNet1.InthisexampleIamassigningastaticIPof10.10.1.200.

    root@rodolfo:~#ipadmdeleteipnet1root@rodolfo:~#ipadmcreateipnet1root@rodolfo:~#ipadmcreateaddrTstaticalocal=10.10.1.200/24net1/addr

    Wecanchecktoseehowournetworklooksasfollows:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 25/54

    root@rodolfo:~#ipadmshowaddrADDROBJTYPESTATEADDRlo0/v4staticok127.0.0.1/8net0/addrdhcpok192.168.0.39/24net1/addrstaticok10.10.1.200/24lo0/v6staticok::1/128

    root@rodolfo:~$dladmshowphysmLINKSLOTADDRESSINUSECLIENTnet0primary0:c:29:65:57:1dyesnet0net1primary0:c:29:65:57:27yesnet1

    Finallywemustaddournewhostnametothe/etc/hostsfile.Ifwefailtodothis,theOracledatabaseinstallerwillfailwithaspectacularlyunhelpfulerrormessage.

    Modifyyour/etc/hostsfileasfollows:

    root@rodolfo:~#cat/etc/hosts##Copyright2009SunMicrosystems,Inc.Allrightsreserved.#Useissubjecttolicenseterms.##Internethosttable#::1rodolfolocalhost127.0.0.1localhostloghost10.10.1.200rodolforodolfo.hadesnet

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 26/54

    NowisagoodtimetorebootyourVMtomakesureallthechangeshavetakeneffectandarepermanent.

    PartIVAdjustKernelSettingsandCreateOracleandGridUsers.

    TimeRequired:20mins.

    BeforewecaninstalltheOracleGridInfrastructureorDatabaseonourSolaris11system,weneedtomakesomeadjustmentstotheOSsettings.

    EventhoughOracletoutsHardwareandSoftwareEngineeredtoWorkTogether,thereisstillalotofmanualtweakingthathastobedonetogettwopartsoftheirsolutiontoplaynicetogether.

    First,OracleDatabase11.2.0.3requires4GBofswapspace.BydefaultSolaris11installswith1GB.Oraclecompletelychangedtheprocesstoadjustswapspacein11,sodonttrytheold10methodasitwontworkhere.

    LogintotheVMasrootandusethefollowingtoincreasetheswapspace:

    root@rodolfo:/#zfsgetvolsizerpool/swapNAMEPROPERTYVALUESOURCErpool/swapvolsize1Glocalroot@rodolfo:/#zfssetvolsize=4097mrpool/swaproot@rodolfo:/#zfsgetvolsizerpool/swapNAMEPROPERTYVALUESOURCErpool/swapvolsize4.00Glocal

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 27/54

    Youmaywonderwhywesettheswapspaceto4097MBwhen4GBis4096MB.

    Indeedwhynotsimplystate4GB?Forsomereasonbestknowntoothers,whereastheinstallerstatesitneedsswapat4GB,itinfactneedsabout317KBmorethan4GB,resultinginanannoyingbutignorablewarningduringinstall.

    Theextra1MBherekeepstheinstallerquiet.

    NextwearegoingtomakesomeadjustmentstothenetworkingforOracle.

    Createafileinthe/etc/rc3.ddirectoryasfollows:

    root@rodolfo:/export#vi/etc/rc3.d/S01oranetwork#!/bin/sh#addedforOracle11gR2/usr/sbin/nddset/dev/tcptcp_smallest_anon_port9000/usr/sbin/nddset/dev/tcptcp_largest_anon_port65500/usr/sbin/nddset/dev/tcpudp_smallest_anon_port9000/usr/sbin/nddset/dev/tcpudp_largest_anon_port65500

    Nowsetthepermissionsonthefilesoitisexecutedduringstartup:

    root@rodolfo:~#chmod744/etc/rc3.d/S01oranetwork

    Adjustfiledescriptorlimitssystemwidebyeditingthe/etc/systemfile:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 28/54

    root@rodolfo:~#vi/etc/system

    #addedforOracle11gR2setrlim_fd_max=65536setrlim_fd_cur=65536

    NextwearegoingtocreategroupsforourOracleinstall:

    groupaddg1000oinstallgroupaddg1001asmadmingroupaddg1002asmdbagroupaddg1003asmopergroupaddg1004dbagroupaddg1005oper

    Nowwecancreatetwousers;gridandoracle.OracleisnowadvocatingseparatingtheGridInfrastructureownerfromtheOracledatabaseowner.

    useraddu500goinstallGasmoper,asmadmin,asmdba,dbad/export/home/gridmgrid

    useraddu501goinstallGoper,dba,asmdbad/export/home/oraclemoracle

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 29/54

    Setpasswordsforthegridandoracleuserswiththepasswdcommand.RememberSolaris11demandsthatpasswordshaveatleastonenumeric:

    root@rodolfo:~#passwdgridNewPassword:ReenternewPassword:passwd:passwordsuccessfullychangedforgrid

    root@rodolfo:~#passwdoracleNewPassword:ReenternewPassword:passwd:passwordsuccessfullychangedfororacle

    NextwewillcreatethedirectorieswherewewillinstalltheGridInfrastructureandOracledatabase.Sincewenowhavetwousersforthesepurposes,theywillnolongershareacommonOracleBaseaswithinstallationsonLinuxorearlierversionsofthedatabase.

    mkdirp/u01/app/gridmkdirp/u01/app/grid/11gR2mkdirp/u01/app/oraclemkdirp/u01/app/oracle/product/11.2.0.3/db_1

    chmodR775/u01chownRgrid:oinstall/u01chownRoracle:oinstall/u01/app/oracle

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 30/54

    WitholderreleasesofSolaris,kernelsettingswouldbeaddedtothe/etc/systemandwouldbehostwide.WithSolaris10and11,wenowuseprojectstosetkernelparametersforindividualusersorevenprocesses.

    Inthefollowingexample,wesetthekernelparametersforournewgridandoracleusers.Asrootexecutethefollowing:

    projaddUgridK"project.maxshmmemory=(priv,6g,deny)"user.gridprojmodsK"project.maxsemnsems=(priv,512,deny)"user.gridprojmodsK"project.maxsemids=(priv,128,deny)"user.gridprojmodsK"project.maxshmids=(priv,128,deny)"user.gridprojmodsK"process.maxfiledescriptor=(priv,65536,deny)"user.grid

    projaddUoracleK"project.maxshmmemory=(priv,6g,deny)"user.oracleprojmodsK"project.maxsemnsems=(priv,512,deny)"user.oracleprojmodsK"project.maxsemids=(priv,128,deny)"user.oracleprojmodsK"project.maxshmids=(priv,128,deny)"user.oracleprojmodsK"process.maxfiledescriptor=(priv,65536,deny)"user.oracle

    Nowweneedtoaddsomeadditionalentriestotheprofilescriptsofournewusers.

    Editthefile/export/home/grid/.profileandaddthefollowing:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 31/54

    umask022

    exportORACLE_BASE=/u01/app/gridexportORACLE_HOME=/u01/app/grid/11gR2exportORACLE_SID=+ASM

    exportPATH=$PATH:/usr/sbin:/usr/X11/bin:/usr/dt/bin:/usr/openwin/bin:/usr/sfw/bin:/usr/sfw/sbin:/usr/ccs/bin:/usr/local/bin:/usr/local/sbin:$ORACLE_HOME/bin:.

    exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/dt/lib:$ORACLE_HOME/oracm/libexportCLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib

    exportTEMP=/tmpexportTMPDIR=/tmp

    ulimitn65536ulimittunlimitedulimitfunlimitedulimitdunlimitedulimitsunlimitedulimitvunlimited

    Next,editthefile/export/home/oracle/.profileandaddthefollowing:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 32/54

    umask022

    exportORACLE_BASE=/u01/app/oracleexportORACLE_HOME=/u01/app/oracle/product/11.2.0.3/db_1exportORACLE_SID=gctdevexportPATH=/usr/sbin:/bin:/usr/X11/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/local/bin:$ORACLE_HOME/bin:/usr/local/bin:/home/oracle:.exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/oracm/libexportCLASSPATH=$ORACLE_HOME/jdbc:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib$ORACLE_HOME/network/jlibexportTEMP=/tmpexportTMPDIR=/tmp

    ulimitn65536ulimittunlimitedulimitfunlimitedulimitdunlimitedulimitsunlimitedulimitvunlimited

    NowlogintoeachaccountgridandoraclefromtheSolarisdesktop.Ineachcaseyouwillbepromptedtoselectthedesktopenvironment.SelectGnomeforbothusers.

    PartVAddDiskforASM.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 33/54

    TimeRequired:10mins.

    DuringourVMcreationweaddedasecondSCSIdisksizedat5GBthatwewillusetosupportASM.

    BeforeASMcanuseithowever,wemustpartitionit.TodothisweusetheSolaris11formatcommand.LogintoyourVMasthedefaultuserandthensutoroot:

    root@rodolfo:~#formatSearchingfordisks...done

    AVAILABLEDISKSELECTIONS:0.c4t0d0/pci@0,0/pci15ad,1976@10/sd@0,01.c4t1d0/pci@0,0/pci15ad,1976@10/sd@1,0Specifydisk(enteritsnumber):

    Intheaboveexamplewecanseetwodisksnumbered0and1.

    Disk0isthe40GBSCSIdiskwhereweinstalledSolaris.Disk1istheseconddiskweaddedforASM.Wecanenter1toselectthediskforpartitioning.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 34/54

    Specifydisk(enteritsnumber):1selectingc4t1d0[diskformatted]NoSolarisfdiskpartitionfound.

    FORMATMENU:diskselectadisktypeselect(define)adisktypepartitionselect(define)apartitiontablecurrentdescribethecurrentdiskformatformatandanalyzethediskfdiskrunthefdiskprogramrepairrepairadefectivesectorlabelwritelabeltothediskanalyzesurfaceanalysisdefectdefectlistmanagementbackupsearchforbackuplabelsverifyreadanddisplaylabelssavesavenewdisk/partitiondefinitionsinquiryshowdiskIDvolnameset8charactervolumename!execute,thenreturnquitformat>

    TheformatutilityreportsthatNoSolarisfdiskpartitionfoundsothisdiskhasnotbeenpreparedforusebySolaris.

    Tocreateapartitiontableonit,weusethefdiskoption:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 35/54

    format>fdiskNofdisktableexists.Thedefaultpartitionforthediskis:

    a100%"SOLARISSystem"partition

    Type"y"toacceptthedefaultpartition,otherwisetype"n"toeditthepartitiontable.

    AcceptthedefaultbytypingY.Wecannowreviewthedefaultpartitionsbyenteringpartition.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 36/54

    format>partition

    PARTITIONMENU:0change`0'partition1change`1'partition2change`2'partition3change`3'partition4change`4'partition5change`5'partition6change`6'partition7change`7'partitionselectselectapredefinedtablemodifymodifyapredefinedpartitiontablenamenamethecurrenttableprintdisplaythecurrenttablelabelwritepartitionmapandlabeltothedisk!execute,thenreturnquitpartition>

    Wearegoingtochangepartitionzero,soenter0.

    partition>0PartTagFlagCylindersSizeBlocks0unassignedwm00(0/0/0)0

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 37/54

    Enterdefaultsforthepartitionidtagandpermissionflags:

    Enterpartitionidtag[unassigned]:Enterpartitionpermissionflags[wm]:

    OnX86Solarissystems,thestartingcylinderforapartitoncannotbe0,becauseadditionalbootinformation,includingthemasterbootrecord,iswritteninsector0[OracleSolarisAdministration:DevicesandFileSystemsChapter13]

    Thereforethepartitonwillstartatcylinder1,andwesizeat4.95GB.

    Enternewstartingcyl[0]:1Enterpartitionsize[0b,0c,1e,0.00mb,0.00gb]:4.95g

    Wecannowreviewthepartitionwearecreating:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 38/54

    partition>printCurrentpartitiontable(unnamed):Totaldiskcylindersavailable:2557+2(reservedcylinders)

    PartTagFlagCylindersSizeBlocks0unassignedwm125354.95GB(2535/0/0)103833601unassignedwm00(0/0/0)02backupwu025564.99GB(2557/0/0)104734723unassignedwm00(0/0/0)04unassignedwm00(0/0/0)05unassignedwm00(0/0/0)06unassignedwm00(0/0/0)07unassignedwm00(0/0/0)08bootwu002.00MB(1/0/0)40969unassignedwm00(0/0/0)0

    Ifthisalllookscorrect,typelabeltocompletetheprocess.Thenenterquit:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 39/54

    partition>labelReadytolabeldisk,continue?y

    partition>quit

    FORMATMENU:diskselectadisktypeselect(define)adisktypepartitionselect(define)apartitiontablecurrentdescribethecurrentdiskformatformatandanalyzethediskfdiskrunthefdiskprogramrepairrepairadefectivesectorlabelwritelabeltothediskanalyzesurfaceanalysisdefectdefectlistmanagementbackupsearchforbackuplabelsverifyreadanddisplaylabelssavesavenewdisk/partitiondefinitionsinquiryshowdiskIDvolnameset8charactervolumename!execute,thenreturnquitformat>

    IrecommendyoulabelthediskyoujustcreatedsothatyouwillrememberthatishasbeenpreparedforusewithASM.Usethevolnamecommandtonamethedisk:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 40/54

    format>volnameasmdisk1Enter8charactervolumename(rememberquotes)[""]:Readytolabeldisk,continue?y

    Wecannowverifyourworkwiththeverifycommand:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 41/54

    format>verify

    Primarylabelcontents:

    Volumename=asciiname=pcyl=2559ncyl=2557acyl=2bcyl=0nhead=128nsect=32PartTagFlagCylindersSizeBlocks0unassignedwm125354.95GB(2535/0/0)103833601unassignedwm00(0/0/0)02backupwu025564.99GB(2557/0/0)104734723unassignedwm00(0/0/0)04unassignedwm00(0/0/0)05unassignedwm00(0/0/0)06unassignedwm00(0/0/0)07unassignedwm00(0/0/0)08bootwu002.00MB(1/0/0)40969unassignedwm00(0/0/0)0

    Thisalllooksgood,soletsquitbacktotheOS:

    format>quit

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 42/54

    Finallyweneedtochangetheownershipofthenewlypartitioneddisk:

    chowngrid:asmadmin/dev/rdsk/c4t1d0s0chmod660/dev/rdsk/c4t1d0s0

    PartVIInstallGridInfrastructure.

    TimeRequired:30mins.

    InthenextstepwearegoingtoinstalltheGridInfrastructure.Rememberwearegoingtodothisunderthegriduser,nottheoracleuser.

    LogintoyourSolarisVMasgrid.

    InthisexampleIamgoingtousethesilentinstallfeatureofOracletocompletetheinstall.AndIamgoingtodosousingaterminalemulator.

    AsIexplainedearlier,IhavehadendlesstroublewiththeGnomedesktopofSolaris,whichseemstosporadicallyjustlockup,causingtheentireVMtostopcompletely.

    AtsomepointIwillenablecoredumpsandtalktomybuddiesoveratVMWareaboutthis,butfornowIwanttolearnmoreaboutOracleandASMonSolaris,nothowtobecomeaSolarisAdminoraSolarisonVMmaster.

    TheinterestedDBAshouldexaminethegridresponsefileindetailbeforeselectingthismethodofinstall,andbecomfortablewithallthe

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 43/54

    TheinterestedDBAshouldexaminethegridresponsefileindetailbeforeselectingthismethodofinstall,andbecomfortablewithallthedirectivesbeingused.

    Mycompletegrid.rspfilecanbefoundhere:grid.rsp(https://gruffdba.files.wordpress.com/2013/03/grid_solx8611_11_2_0_3.doc).

    Note:WordPressdoesnotallowstraighttextfilestobeuploaded,sotheextensionisDOC,althoughitisarawASCIItextfile.

    Loginasthegriduserandnavigatetothedirectorywherethegridinstallsoftwareisheld,andlaunchtheinstallasfollows:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 44/54

    rid@rodolfo:/media/ORASOL/grid$./runInstallersilentforceresponseFile$HOME/grid.rspStartingOracleUniversalInstaller...

    CheckingTempspace:mustbegreaterthan180MB.Actual6056MBPassedCheckingswapspace:mustbegreaterthan150MB.Actual6606MBPassedPreparingtolaunchOracleUniversalInstallerfrom/tmp/OraInstall20130324_105042PM.Pleasewait...grid@rodolfo:/media/ORASOL/grid$Youcanfindthelogofthisinstallsessionat:/u01/app/oraInventory/logs/installActions20130324_105042PM.logTheinstallationofOracleGridInfrastructurewassuccessful.Pleasecheck'/u01/app/oraInventory/logs/silentInstall20130324_105042PM.log'formoredetails.

    Asarootuser,executethefollowingscript(s):1./u01/app/oraInventory/orainstRoot.sh2./u01/app/grid/11gR2/root.sh

    Asinstalluser,executethefollowingscripttocompletetheconfiguration.1./u01/app/grid/11gR2/cfgtoollogs/configToolAllCommands

    Note:1.Thisscriptmustberunonthesamesystemfromwhereinstallerwasrun.2.Thisscriptneedsasmallpasswordpropertiesfileforconfigurationassistantsthatrequirepasswords(refertoinstallguidedocumentation).

    SuccessfullySetupSoftware.

    Attheendoftheinstallprocess,theinstallerpromptsustoexexutetwoscriptsastherootuser.

    Startanewterminalsessionandloginasroot,thenexecutethetwoscriptsshownabove:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 45/54

    root@rodolfo:~#/u01/app/oraInventory/orainstRoot.shChangingpermissionsof/u01/app/oraInventory.Addingread,writepermissionsforgroup.Removingread,write,executepermissionsforworld.

    Changinggroupnameof/u01/app/oraInventorytooinstall.Theexecutionofthescriptiscomplete.

    root@rodolfo:~#/u01/app/grid/11gR2/root.shCheck/u01/app/grid/11gR2/install/root_rodolfo.hadesnet_20130324_232406.logfortheoutputofrootscript

    Oncethescriptscomplete,executethethirdscriptasthegriduser:

    grid@rodolfo:/media/ORASOL/grid$/u01/app/grid/11gR2/cfgtoollogs/configToolAllCommandsSettingtheinvPtrLocto/u01/app/grid/11gR2/oraInst.loc

    performmodeisstartingforaction:configure

    performmodefinishedforaction:configure

    Youcanseethelogfile:/u01/app/grid/11gR2/cfgtoollogs/oui/configActions20130325_024155PM.log

    NowweneedtocreatetheASMinstance.TodothisIfinditbeneficaltoaddadummyentryintotheoratabfile,toallowmetosourcethe

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 46/54

    NowweneedtocreatetheASMinstance.TodothisIfinditbeneficaltoaddadummyentryintotheoratabfile,toallowmetosourcetheOracleenvironment.

    Editthefile/var/opt/oracle/oratabandaddthefollowing:

    DUMMY:/u01/app/grid/11gR2:N

    Nowwecansetupourenvironmentusingtheoraenvfile:

    grid@rodolfo:/media/ORASOL/grid$.oraenvORACLE_SID=[+ASM]?DUMMYTheOraclebasehasbeensetto/u01/app/grid

    NowletscheckthatthediskweaddedearlierisreadytobecomepartofourASMdiskgroup.Usethekfodtooltocheckforallavailabledisks:

    grid@rodolfo:/media/ORASOL/grid$kfoddisks=allop=disksDiskSizePathUserGroup================================================================================1:5070Mb/dev/rdsk/c4t1d0s0gridasmadmin

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 47/54

    Iftheabovecommanddoesnotfindanydisks,checkPartIVagainandensurethatthepermissionsonthediskaresetcorrectly.

    WecancreateourASMinstanceandDATAdiskgroupwiththeasmcacommand:

    asmcasilentconfigureASM\sysAsmPasswordorasolX86\asmsnmpPasswordorasolX86\diskGroupNameDATA\diskList'/dev/rdsk/c4t1d0s0'\redundancyEXTERNAL\au_size1\compatible.asm'11.2.0.0.0'\compatible.rdbms'11.2.0.0.0'\diskString'/dev/rdsk/*'

    The11.2.0.3softwaredemandsthattheASMandSNMPpasswordsareatleasteightcharacterslong,haveatleastoneuppercase,onelowercaseandonenumeric.Failuretomeetthesestandardswillresultinwarnings.

    WehavespecifiedthatwearegoingtocreateaDATAdiskgroupwithexternalredundancy,anallocationunitsizeof1MBandthediskgroupwillbebuiltonthedisk/dev/rdsk/c4t1d0s0.

    Thefollowingshowsthecommandbeingexecuted:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 48/54

    grid@rodolfo:/media/ORASOL/grid$asmcasilentconfigureASM\>sysAsmPasswordorasolX86\>asmsnmpPasswordorasolX86\>diskGroupNameDATA\>diskList'/dev/rdsk/c4t1d0s0'\>redundancyEXTERNAL\>au_size1\>compatible.asm'11.2.0.0.0'\>compatible.rdbms'11.2.0.0.0'\>diskString'/dev/rdsk/*'

    ASMcreatedandstartedsuccessfully.

    DiskGroupDATAcreatedsuccessfully.

    NextweneedtocreatealistenerintheGridhometosupportourdatabases.SincewearetryingtoavoidtheGnomedeskotphere,Iamagaingoingtousethesilentoption.

    Howeverthenetcatoolrequiresafunctionaldisplay,evenwhenrunninginsilentmode.Moreover,itneedstheAWT_TOOLKITvariabletosettoXToolkittooperate.

    Why?Whoknows.AllIknowisthisisHardwareandSoftwareEngineeredtoWorkTogethersometimes.

    Okay,hereishowtosetupthelistener:

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 49/54

    grid@rodolfo:/media/ORASOL/grid$exportDISPLAY=localhost:0grid@rodolfo:/media/ORASOL/grid$exportAWT_TOOLKIT=XToolkitgrid@rodolfo:/media/ORASOL/grid$netcasilentresponsefile$ORACLE_HOME/network/install/netca_typ.rsp

    Parsingcommandlinearguments:Parameter"silent"=trueParameter"responsefile"=/u01/app/grid/11gR2/network/install/netca_typ.rspDoneparsingcommandlinearguments.OracleNetServicesConfiguration:Profileconfigurationcomplete.OracleNetListenerStartup:Listenerstartedsuccessfully.Listenerconfigurationcomplete.OracleNetServicesconfigurationsuccessful.Theexitcodeis0

    WecannowcheckthestateofourGridinstallwiththecrs_statcommand:

    grid@rodolfo:/media/ORASOL/grid$crs_stattNameTypeTargetStateHostora.DATA.dgora....up.typeONLINEONLINErodolfoora....ER.lsnrora....er.typeONLINEONLINErodolfoora.asmora.asm.typeONLINEONLINErodolfoora.cssdora.cssd.typeONLINEONLINErodolfoora.diskmonora....on.typeOFFLINEOFFLINEora.evmdora.evm.typeONLINEONLINErodolfo

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 50/54

    PartVIIInstallDatabase.

    TimeRequired:30mins.

    Finallywearegoingtoinstallthedatabasesoftwareandcreateadatabase.

    LogintotheSolarisVMastheoracleuserusingaterminalsession.AgainIamgoingtouseasilentinstallduetothestabilityproblemsoftheGnomedesktop.

    TheinterestedDBAshouldexaminethedbresponsefileindetailbeforeselectingthismethodofinstall,andbecomfortablewithallthedirectivesbeingused.

    Mycompletedb.rspfilecanbefoundhere:db.rsp(https://gruffdba.files.wordpress.com/2013/03/db_solx8611_11_2_0_3.doc).

    Note:WordPressdoesnotallowstraighttextfilestobeuploaded,sotheextensionisDOC,althoughitisarawASCIItextfile.

    IftheDISPLAYvariableissetwhenyouruntheinstallprocessinsilentmode,theinstallerwillcrash,sofirstwewillunsetthevariableandthenlaunchthetheinstaller.

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 51/54

    oracle@rodolfo:/media/ORASOL/database$unsetDISPLAY

    oracle@rodolfo:/media/ORASOL/database$./runInstallersilentforceresponseFile$HOME/db.rspStartingOracleUniversalInstaller...

    CheckingTempspace:mustbegreaterthan180MB.Actual5415MBPassedCheckingswapspace:mustbegreaterthan150MB.Actual6200MBPassedPreparingtolaunchOracleUniversalInstallerfrom/tmp/OraInstall20130324_114527PM.Pleasewait...oracle@rodolfo:/media/ORASOL/database$Youcanfindthelogofthisinstallsessionat:/u01/app/oraInventory/logs/installActions20130324_114527PM.logTheinstallationofOracleDatabase11gwassuccessful.Pleasecheck'/u01/app/oraInventory/logs/silentInstall20130324_114527PM.log'formoredetails.

    Asarootuser,executethefollowingscript(s):1./u01/app/oracle/product/11.2.0.3/db_1/root.sh

    SuccessfullySetupSoftware.

    Theinstallprocesspromptustorunonescriptastherootuser,sobeforewecompletetheprocess,connecttotheSolarisVMastherootuserandexecutethescript:

    root@rodolfo:~#/u01/app/oracle/product/11.2.0.3/db_1/root.shCheck/u01/app/oracle/product/11.2.0.3/db_1/install/root_rodolfo.hadesnet_20130325_002807.logfortheoutputofrootscript

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 52/54

    Withtheoraclesoftwarenowinstalled,wecancreateourdatabase.NoteIamgoingtousethesameASMSNMPpasswordIspecifiedinmyasmcacommandearlier

    oracle@rodolfo:~$dbcasilent\>createDatabase\>asmsnmpPasswordorasolX86\>characterSetWE8ISO8859P15\>continueOnNonFatalErrorsfalse\>disableSecurityConfigurationALL\>diskGroupNameDATA\>emConfigurationNONE\>gdbNamegctdev.local\>listenersLISTENER\>memoryPercentage40\>recoveryAreaDestinationDATA\>sidgctdev\>SysPasswordoracle\>SystemPasswordoracle\>storageTypeASM\>sampleSchematrue\>templateNameGeneral_Purpose.dbcsh:line1:showrev:notfoundsh:line1:/usr/sbin/patchadd:notfoundCopyingdatabasefiles1%complete3%complete10%complete17%complete24%complete31%complete35%complete

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 53/54

    CreatingandstartingOracleinstance37%complete42%complete47%complete52%complete53%complete56%complete58%completeRegisteringdatabasewithOracleRestart64%completeCompletingDatabaseCreation68%complete71%complete75%complete85%complete96%complete100%completeLookatthelogfile"/u01/app/oracle/cfgtoollogs/dbca/gctdev/gctdev.log"forfurtherdetails.

    Andthatisit!

    TestrebootingyourSolarisVMtoensureOracleRestartrestartsyourdatabase.

    OnethoughtonSilentInstallofOracle11.2.0.3onSolaris11x86

    1. SutoComsays:May7,2013at9:10am

  • 3/2/2015 SilentInstallofOracle11.2.0.3onSolaris11x86|TheGruffDBA

    https://gruffdba.wordpress.com/2013/05/06/silentinstalloforacle11203onsolaris11x86/ 54/54

    RebloggedthisonSutopriseAvenue,ASutoComSource.

    CreateafreewebsiteorblogatWordPress.com.TheSkylarkTheme.

    Follow

    FollowTheGruffDBA

    BuildawebsitewithWordPress.com

    Reply