Installation Pre-Requisite:



HYPERLINK "" \o "Permanent Link: Oracle Database 11G Installation on Solaris 10" Oracle Database 11G Installation on Solaris 10 :Installation Pre-Requisite:Refer to Oracle Database Installation Guide 11g Release 1 (11.1) for Solaris Operating System for checking Hardware and Software RequirementsUser Creation and Environment Settings:1)Create groups for Oracle account#groupadd oinstall#groupadd dba#groupadd oper2)Create Oracle Default Home directory# mkdir /export/home# mkdir /export/home/oracle3)Create Oracle user# useradd -g oinstall -G dba -d /export/home/oracle -s /usr/bin/bash oracle# chown oracle:oinstall /export/home/oracle4)Create Project for Oracle for setting the kernel parameters(In case of Solaris 10, you can use projects to configure the kernel parameters instead of /etc/system file. This can be done as following)# projadd -U oracle -K "project.max-shm-memory=(priv,4g,deny)" oracle# projmod -sK "project.max-sem-nsems=(priv,256,deny)" oracle# projmod -sK "project.max-sem-ids=(priv,100,deny)" oracle# projmod -sK "project.max-shm-ids=(priv,100,deny)" oracle(There are many more ways of creating project entries such as group.group-name or user.user-name. For more details refer to Solaris Administration documents) Last three settings made by projmod command are not required as these values are lower than the default.You can check the values for max-sem-ids and max-shm-ids with this command:prctl -n project.max-sem-ids -i task `ps -o taskid= -p $$`5)Create .bash_profile for Oracle user#Oracle Environment SettingsTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_BASE=/u03/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOMEORACLE_SID=TESTDB11G; export ORACLE_SIDPATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:$ORACLE_HOME/binNow Set the Display to a X-windowing enabled system$vncserverOracle Software Installation:Go to the Oracle dump location and run runInstaller as Oracle user$./runInstallerDatabase Creation:using ASM for the Database files:1)Prepare the Raw device for using as ASM Disks# ls -ltotal 0Disk should be owned by Oracle user and should have permission set to 660# chown oracle:dba 1# chmod 660 12)Configure CSS ServiceIn case of Solaris 10, we need to use Service Management Facility (SMF) for configuring CSS service else it will not startTo configure Service Management Facility (SMF) download a zip file from the note and copy two files called initcssd to /lib/svc/method/initcssd and copy the second file initcssd.xml to /var/svc/manifest/site and some other steps (as listed in doc)1) Install Oracle Software on Solaris 102) Download files from Note: 397238.1. Once done, modify the files accordingly and copy to the required location.3) Do the configuration and then enable the service.# svcadm -v enable initcssdAfter doing this, still service does not start. # ps -ef|grep css root 29137 3793 0 14:54:39 ? 0:00 /bin/sh /lib/svc/method/initcssd run root 29188 26874 0 14:54:50 pts/9 0:00 grep csscheck the content of content of file /var/opt/oracle/scls_scr/<Your-hostname>/root/cssrun file.If found that directory does not exists. I found that directory does not exists# cd /var/opt/oracle/scls_scr/ cd: /var/opt/oracle/scls_scr/: No such file or directory# cd /u03/app/oracle/product/11.1.0/db_1/bin/# ./crsctl start crsAttempting to start Oracle Clusterware stackFailure at scls_scr_create with code 1Segmentation Fault (core dumped)this directory is created when we run ‘localconfig add’ which will configure the socket files and directories.# ps -ef|grep css root 29137 3793 0 14:54:39 ? 0:00 /bin/sh /lib/svc/method/initcssd run# pwd/u03/app/oracle/product/11.1.0/db_1/bin# ./localconfig addSuccessfully accumulated necessary OCR keys.Creating OCR keys for user 'root', privgrp 'root'..Operation successful.Configuration for local CSS has been initializedCleaning up Network socket directoriesSetting up Network socket directoriesAdding to inittabStartup will be queued to init within 30 seconds.Checking the status of new Oracle init process...Expecting the CRS daemons to be up within 600 seconds.Cluster Synchronization Services is active on these nodes. testzone2Cluster Synchronization Services is active on all the nodes.Oracle CSS service is installed and running under init(1M)# ps -ef|grep css oracle 29137 3793 0 14:54:39 ? 0:00 /u03/app/oracle/product/11.1.0/db_1/bin/ocssd.bindisable the SMF and trying the configuration again.# ./localconfig deleteStopping Cluster Synchronization Services.Shutting down the Cluster Synchronization Services daemon.Shutdown request successfully issued.Shutdown has begun. The daemons should exit soon.Cleaning up Network socket directoriesDisable the SMF# svcadm -v disable initcssdsvc:/system/initcssd:default disabled.Now again add CSS service# ./localconfig addSuccessfully accumulated necessary OCR keys.Creating OCR keys for user 'root', privgrp 'root'..Operation successful.Configuration for local CSS has been initializedCleaning up Network socket directoriesSetting up Network socket directoriesAdding to inittabStartup will be queued to init within 30 seconds.Checking the status of new Oracle init process...Expecting the CRS daemons to be up within 600 seconds.Giving up: Oracle CSS stack appears NOT to be running.Oracle CSS service would not start as installedAutomatic Storage Management(ASM) cannot be used until Oracle CSS service is startedEnable the initcssd SMF service# svcadm -v enable initcssdsvc:/system/initcssd:default enabled.# ps -ef|grep cssoracle 2589 3793 1 15:14:31 ? 0:00 /u03/app/oracle/product/11.1.0/db_1/bin/ocssd.bin(Note:397238.1 says that problem occurs only after rebooting the service and not during installation. May be document needs to be updated for Oracle 11g on Solaris 10.) 3) Configure ASM Instancea)Go to $ORACLE_HOME/binb)Execute dbca from this directory (ensure dbca is properly set)$./dbcac) Select Configure ASM Instance option. This will create ASM instance for you. After this you can create Diskgroups using GUI or else use sqlplus to do the same.4)Now continue creating database normally and enter Diskgroup Name after selecting Oracle Managed files as database file location.------------------------------------------ ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download