Oracle 12c r1 installation on solaris 11.1


Published on

Published in: Technology, Education
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Oracle 12c r1 installation on solaris 11.1

  1. 1. Oracle 12c R1 installation on Solaris 11.1 Laurent Léturgez ( ~ Oracle Consultant – Oracle Certified Master Laurent Leturgez ( 1
  2. 2. 1 1.1 Pre-configuration User Creation root@S11:~# groupadd -g 600 oinstall root@S11:~# groupadd -g 601 dba root@S11:~# useradd -u 500 -g oinstall -G dba -d /export/home/oracle oracle root@S11:~# passwd -r files oracle New Password: Re-enter new Password: passwd: password successfully changed for oracle root@S11:~# mkdir -p /export/home/oracle root@S11:~# chown oracle:oinstall /export/home/oracle root@S11:~# chmod 700 /export/home/oracle root@S11:~# su - oracle Oracle Corporation SunOS 5.11 11.1 September 2012 -bash-4.1$ id -pa uid=500(oracle) gid=600(oinstall) groups=600(oinstall),601(dba) projid=100( -bash-4.1$ exit root@S11:~# projadd -p 100 -c "Project for Oracle owner" -U oracle -G oinstall,dba -K 'project.max-shm-memory=(priv,10737418240,deny)' root@S11:~# usermod -K oracle root@S11:~# id -ap oracle uid=500(oracle) gid=600(oinstall) groups=601(dba) projid=100( root@S11:~# projects -l projid : 100 comment: "Project for Oracle owner" users : oracle groups : dba oinstall attribs: project.max-shm-memory=(priv,10737418240,deny) 1.2 FileSystem creation root@S11:~# zpool list Laurent Leturgez ( 2
  3. 3. NAME SIZE ALLOC FREE CAP rpool 49.5G 10.9G 38.6G 21% root@S11:~# zpool status rpool pool: rpool state: ONLINE scan: none requested config: NAME rpool c7t0d0 STATE ONLINE ONLINE DEDUP 1.00x HEALTH ONLINE ALTROOT - READ WRITE CKSUM 0 0 0 0 0 0 root@S11:~# zfs create rpool/u01 root@S11:~# zfs set mountpoint=/u01 rpool/u01 root@S11:~# zfs create rpool/u02 root@S11:~# zfs set mountpoint=/u02 rpool/u02 root@S11:~# zfs list | grep u0[1-2] rpool/u01 31K rpool/u02 31K 37.7G 37.7G 31K 31K /u01 /u02 root@S11:~# chown oracle:oinstall /u01 root@S11:~# chown oracle:oinstall /u02 1.3 Swap Configuration root@S11:~# swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 274,2 8 4194296 4194296 root@S11:~# swap -d /dev/zvol/dsk/rpool/swap root@S11:~# zfs set volsize=8G rpool/swap root@S11:~# swap -a /dev/zvol/dsk/rpool/swap root@S11:~# zfs list rpool/swap NAME USED AVAIL REFER rpool/swap 8.25G 31.7G 8.00G MOUNTPOINT - Laurent Leturgez ( 3
  4. 4. 2 Oracle Database installation -bash-4.1$ id -a uid=500(oracle) gid=600(oinstall) groups=600(oinstall),601(dba) -bash-4.1$ unzip && unzip Laurent Leturgez ( 4
  5. 5. Laurent Leturgez ( 5
  6. 6. Laurent Leturgez ( 6
  7. 7. Laurent Leturgez ( 7
  8. 8. Laurent Leturgez ( 8
  9. 9. -bash-4.1$ sudo /u01/app/oraInventory/ Changing permissions of /u01/app/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /u01/app/oraInventory to oinstall. The execution of the script is complete. -bash-4.1$ sudo /u01/app/oracle/product/12.1.0/dbhome_1/ Performing root user operation for Oracle 12c The following environment variables are set as: ORACLE_OWNER= oracle Laurent Leturgez ( 9
  10. 10. ORACLE_HOME= /u01/app/oracle/product/12.1.0/dbhome_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: Creating /usr/local/bin directory... Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /var/opt/oracle/oratab file... Entries will be added to the /var/opt/oracle/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed. Laurent Leturgez ( 10
  11. 11. Laurent Leturgez ( 11