Oracle on Solaris

850 views
784 views

Published on

a tutorial guide on how to install Oracle DB on top of Solaris

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
850
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Oracle on Solaris

  1. 1. Oracle di Solaris[Instalasi Oracle 10 di Solaris 10]Nyoman Bogi Aditya KarnaSisfo – IM Telkombogi@imtelkom.ac.idhttp://bogi.blog.imtelkom.ac.id Institut Manajemen Telkom http://www.imtelkom.ac.id
  2. 2. Oracle di Solaris @ Institut Manajemen Telkom ( http://www.imtelkom.ac.id)Mengecek Spesifikasi yang diperlukan:=========================================================================#/usr/sbin/prtconf | grep “Memory size” [Check RAM size]# /usr/sbin/swap -s [check swap]# df -k /tmp [check /tmp size (>400mb)]# uname –r [check solaris version]# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprotSUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfntcat: SUNWsprox untuk OS selain Solaris 10# cat /etc/nsswitch.conf | grep hosts# hostname# domainnameCek Hosts File=========================================================================# vi /etc/hosts<IP-address> <fully-qualified-machine-name> <machine-name>
  3. 3. Oracle di Solaris @ Institut Manajemen Telkom ( http://www.imtelkom.ac.id)Set Kernel Parameters=========================================================================Buat group dengan nama “dba”, oracle inventory group “oinstall” dan “oracle” user# /usr/sbin/groupadd oinstall# /usr/sbin/groupadd dba{menentukan oracle user ada atau tidak# id -a oracle{Jika ada, maka akan terlihat seperti ini=uid=103(oracle) gid=104(dba) groups=103(ooinstall){create oracle user=# useradd -d /data/oracle -g dba -G oinstall -m -s /bin/ksh oracleTampilannya:#mkdir /data/oracle#chown oracle:dba /data/oracleBuat directori untuk menginstall Oracle:# mkdir -p /u01/app/oracle/product/10.2.0/db_2
  4. 4. Oracle di Solaris @ Institut Manajemen Telkom ( http://www.imtelkom.ac.id)# chown -R oracle:oinstall /u01EDIT FILE# vi /export/home/oracle/.profile=========================================================================umask 022TMP=/tmpTMPDIR=$TMPDISPLAY=localhost:0.0export TMP TMPDIR DISPLAYORACLE_BASE= /data/oracle; export ORACLE_BASE [ganti dengan directory oracle Anda]ORACLE_BASE=/u01/app/oracle/product/10.2.0/db_2; export ORACLE_HOME [gantidengan Oracle home Directory Anda]ORACLE_HOME=$ORACLE_BASE /product/10.2.0/db_2; export ORACLE_HOMEORACLE_SID=TSHI; export ORACLE_SID [ganti dengan database Anda]PATH=$ORACLE_HOME/bin:$PATH; export PATHTampilannya:Mengkonfigurasi Parameter Kernel=========================================================================#projadd oracle [Perintah ini akan membuat sebuah resource project baru]# vi /etc/user_attr fileadm::::profiles=Log Managementlp::::profiles=Printer Managementroot::::auths=solaris.*,solaris.grant;profiles=Web Console
  5. 5. Oracle di Solaris @ Institut Manajemen Telkom ( http://www.imtelkom.ac.id)Management,All;lock_after_retries=nooracle::::project=oracle [add this line]Tampilannya:Kemudian:#su – oracle$ id -p$ prctl -n project.max-shm-memory -i project oracleTampilannya:Biarkan user oracle tetap terhubung . Kemudian sebagai root terminal baru, ketikperintah:#prctl -n project.max-shm-memory -v 4gb -r -i project oracle [membuat max memorysebesar 4GB]Setelah mengetik perintah tersebut, kembali lagi ke oracle user’s session dan ketik ulang
  6. 6. Oracle di Solaris @ Institut Manajemen Telkom ( http://www.imtelkom.ac.id)perintah seperti perintah yang ada di terminal baru:$ prctl -n project.max-shm-memory -i project oracleCatatan:#prctl -n project.max-shm-memory -v 4gb -r -i project oracle[pengaturan ini akan hilang setelah reboot], oleh karena itu agar tidak hilang ketikperintah:#projmod -s -K “project.max-shm-memory=(priv,4gb,deny)” oracleTampilannya:Edit file "/etc/project" sehingga nilainya tidak berubah saat reboot.# cat /etc/projectsystem:0::::user.root:1::::noproject:2::::default:3::::group.staff:10::::oracle:100::::project.max-shm-memory=(priv,4294967296,deny)#Tampilannya:
  7. 7. Oracle di Solaris @ Institut Manajemen Telkom ( http://www.imtelkom.ac.id)Menambahkan package SUNWi1cs dan SUNWi15cs=========================================================================Jika pada OS tidak ada package SUNWi1cs dan SUNWi15cs, maka tambahkan packageSUNWi1cs dan SUNWi15cs menggunakan perintah “pkgadd”.# pkgadd -d /cdrom/sol_10_106_x86/Solaris_10/Product SUNWi1cs SUNWi15csmaka akan tampil tampilan:Processing package instance fromX11 ISO8859-1 Codeset Support(i386) 2.0,REV=2004.10.17.15.04Copyright 2004 Sun Microsystems, Inc. All rights reserved.Use is subject to license terms.This appears to be an attempt to install the same architecture andversion of a package which is already installed. This installationwill attempt to overwrite this package.Using as the package base directory.## Processing package information.## Processing system information.16 package pathnames are already properly installed.## Verifying package dependencies.## Verifying disk space requirements.## Checking for conflicts with packages already installed.## Checking for setuid/setgid programs.This package contains scripts which will be executed with super-userpermission during the process of installing this package.Do you want to continue with the installation of [y,n,?] yInstalling X11 ISO8859-1 Codeset Support as## Installing part 1 of 1.Installation of was successful.Processing package instance fromX11 ISO8859-15 Codeset Support(i386) 2.0,REV=2004.10.17.15.04Copyright 2004 Sun Microsystems, Inc. All rights reserved.Use is subject to license terms.This appears to be an attempt to install the same architecture andversion of a package which is already installed. This installationwill attempt to overwrite this package.
  8. 8. Oracle di Solaris @ Institut Manajemen Telkom ( http://www.imtelkom.ac.id)Using as the package base directory.## Processing package information.## Processing system information.21 package pathnames are already properly installed.## Verifying package dependencies.## Verifying disk space requirements.## Checking for conflicts with packages already installed.## Checking for setuid/setgid programs.This package contains scripts which will be executed with super-userpermission during the process of installing this package.Do you want to continue with the installation of [y,n,?] yInstalling X11 ISO8859-15 Codeset Support as## Installing part 1 of 1.Installation of was successful.#D. Performing the Oracle Installation=========================================================================$vi /etc/system* Oracle Parameterset noexec_user_stack=1* Setup for CEset ce:ce_put_cfg = 1set cl_comm:ifk_disable_v6=1* Sun 5.10 doesnt need this static parameterset shmsys:shminfo_shmmax=4294967295set shmsys:shminfo_shmmin=1set shmsys:shminfo_shmmni=100set shmsys:shminfo_shmseg=10set semsys:seminfo_semmns=2000set semsys:seminfo_semmsl=1000set semsys:seminfo_semmni=100set semsys:seminfo_semopm=100set semsys:seminfo_semvmx=32767#su – oracle$xhost +$export DISPLAY=localhost;0.0$ cd /data/oracle/database [the source unzipped here]$ ./runInstaller

×