Rabu, 07 Oktober 2009

Konfigur IPMP di Solaris 10

Berikut langkah-langkah setting atau konfigurasi IPMP

  • Setting IPMP dengan 2 physical ethernet menggunakan3 IP Address (probe base)


  1. Login sebagai super User
  2. Dengan menggunakan vi edit file /etc/hosts

Contoh ethernet yang digunakan bge0 dan bge1

#vi /etc/hosts
127.0.0.1 localhost
192.168.0.2 server1
192.168.0.3 server1-bge0
192.168.0.4 server1-bge1

3. Cek IP netmask sudah sesuai dengan IP addressnya belum
# more/etc/netmasks
.

.

.

192.168.0.0 255.255.255.0

4. Cek defaultrouternya, jika belum ada maka buatlah

# more /etc/defaultrouter
192.168.0.1

5. Dengan menggunakan vi isikan <server_hostname> netmask + broadcast + group up addif <first_IP> deprecated -failover netmask + broadcast + up pada file /etc/hostname.0 jika belum ada maka buatlah

# vi /etc/hostname.bge0
server1 netmask + broadcast + group ipmp0 up \
addif server1-bge0 deprecated -failover netmask + broadcast + up

6. Dengan menggunakan vi isikan deprecated -failover netmask + broadcast + group up pada file /etc/hostname.1 jika belum ada maka buatlah

# vi /etc/hostname.bge1
server1-bge1 deprecated -failover netmask + broadcast + group ipmp0 up

Sekarang kita memiliki 3 alamat IP dengan 2 physical ethernet, 2 physical (192.168.0.3 & 192.168.0.4) dan 1 virtual (192.168.0.2), jika 1 ethernet mati maka server akan tetap hidup dengan IP 192.168.0.2

7. reboot

# init 6

  • Setting IPMP dengan 2 physical ethernet dengan 1 IP address (link base)

1. Dengan menggunakan vi edit file /etc/hosts

Contoh ethernet yang digunakan bge0 dan bge1

# vi /etc/hosts
127.0.0.1 localhost
192.168.0.224 server1 loghost

2. Dengan menggunakan vi isikan netmask + broadcast + group up pada file /etc/ pada file /etc/hostname.0 jika belum ada maka buatlah

# vi /etc/hostname.bge0
server1 netmask + broadcast + group ipmp0 up

3. Dengan menggunakan vi isikan group up pada file /etc/ pada file /etc/hostname.1, jika belum ada maka buatlah

# more /etc/hostname.bge1
group ipmp0 up

4. Reboot

# init 6

Selasa, 06 Oktober 2009

Instalasi Oracle 10g di Solaris 10 update 7 Platform X86

Persiapan sebelum Instalasi Oracle 10g (di sisi Operating System)

Setting Konfigurasi remote mode (using SSH)

Instalasi Operating System Solaris 10 pada mesin menggunakan Operating System Solaris 10 update 7.

Jika install oracle dengan remote menggunakan SSH atau teknet beberapa yang perlu disetting

Cek koneksi jaringan

1. Open terminal

2. Login sebagai superuser

login as: root

Using keyboard-interactive authentication.

Password:

Last login: Sun Aug 30 06:57:28 2009 from 192.168.100.108

Sun Microsystems Inc. SunOS 5.10 Generic January 2005

# bash

bash-3.00#

3. Cek status koneksi jaringan dengan menggunakan perintah #dladm show-dev

# bash

bash-3.00# dladm show-dev

pcn0 link: up speed: 100 Mbps duplex: full

bash-3.00#

Setting konfigurasi SSH

1. Secara default, service SSH sudah online tetapi terkadang masih belum bisa di remote dengan menggunakan SSH, agar bisa diremote dengan menggunakan SSH. Berikut cek status service SSH.

# svcs ssh

STATE STIME FMRI

online 14:51:29 svc:/network/ssh:default

bash-3.00#

2. Edit dengan menggunakan vi atau editor lainnya file dengan nama sshd_config (di /etc/ssh/). Ubah di bagian PermitRootLogin yang awalnya no menjadi yes.

bash-3.00# cd /etc/ssh

bash-3.00# ls

moduli ssh_host_dsa_key.pub sshd_config

ssh_config ssh_host_rsa_key

ssh_host_dsa_key ssh_host_rsa_key.pub

bash-3.00#

bash-3.00# vi sshd_config

"sshd_config" 160 lines, 5203 characters

#

# Copyright 2004 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

#

.

.

Text truncated

.

.

# Are root logins permitted using sshd.

# Note that sshd uses pam_authenticate(3PAM) so the root (or any other) user

# maybe denied access by a PAM module regardless of this setting.

# Valid options are yes, without-password, no.

#PermitRootLogin no

PermitRootLogin yes

# sftp subsystem

Subsystem sftp /usr/lib/ssh/sftp-server

.

.

.

Text truncated

3. Refresh service ssh dengan menggunakan perintah #scvadm refresh ssh

bash-3.00# svcadm refresh ssh

bash-3.00#

4. Melalui desktop remote ping host yang akan di install oracle

5. Test remote dengan menggunakan SSH (menggunakan putty)


Cek minimum hardware requirement

No

Kebutuhan

Nilai Minimum

Keterangan

1

Physical memory (RAM)

512 MB


2

Swap Space

1 GB atau 2 kali RAM

Pada satu sistem ukuran swap bisa satu atau dua kali besar ukuran physical memory (RAM)

3

Disk space pada /tmp

400 MB


4

Disk space untuk file software

2.5 GB

Nilai ini sudah termasuk 1 Gb disk space yang dibutuhkan untuk install produk Oracle Database 10g dari CD comanion (pilihan tetapi direkomendasikan)

5

Disk space untuk file database

1.2 GB


Untuk memastikan kebutuhan minimum hardware requirement sudah terpenuhi berikut langkan dan perintah-perintah

1. Untuk menentukan ukuran physical memory (RAM) berikut perintahnya :

# /usr/sbin/prtdiag –v atau

#/usr/sbin/prtconf | grep "Memory size"

bash-3.00# prtconf | grep "Memory size"

Memory size: 1024 Megabytes

bash-3.00#

2. Untuk menentukan ukuran dari konfigurasi swap, berikut perintahnya :

# /usr/sbin/swap –s

bash-3.00# swap -s

total: 227692k bytes allocated + 46048k reserved = 273740k used, 2599384k available

bash-3.00# swap -l

swapfile dev swaplo blocks free

/dev/dsk/c0d0s1 102,1 8 4192952 4192952

bash-3.00#

3. Untuk menentukan besar free disk yang tersedia di direktori /tmp berikut perintahnya :

# df -h /tmp

bash-3.00# df -h /tmp

Filesystem size used avail capacity Mounted on

swap 2.5G 84K 2.5G 1% /tmp

bash-3.00#

Cek Software Requirement

Sistem harus memenuhi kebutuhan minimum, diantaranya adalah :

1. Veris Solaris minimumharus Solaris 9, berikut perintah untuk memastikan versi Solaris :

# uname –a atau #uname -r

bash-3.00# uname -a

SunOS test 5.10 Generic_139556-08 i86pc i386 i86pc

bash-3.00# uname -r

5.10

bash-3.00#

2. Paket-paket berikut harus terinstal

SUNWarc

SUNWlibms

SUNWi1of

SUNWbtool

SUNWsprot

SUNWi1cs

SUNWhea

SUNWi15cs

SUNWlibm

SUNWtoo

SUNWxwfnt

Perintah yang digunakan untuk memastikan paket-paket tersebut :

#pkginfo SUNWarc SUNWlibms SUNWi1of SUNWbtool SUNWsprot SUNWi1cs SUNWhea SUNWi15cs SUNWlibm SUNWtoo

bash-3.00# pkginfo SUNWarc SUNWlibms SUNWi1of SUNWbtool SUNWsprot SUNWi1cs SUNWhea SUNWi15cs SUNWlibm SUNWtoo

system SUNWarc Lint Libraries (usr)

system SUNWbtool CCS tools bundled with SunOS

system SUNWhea SunOS Header Files

system SUNWi15cs X11 ISO8859-15 Codeset Support

system SUNWi1cs X11 ISO8859-1 Codeset Support

system SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts

system SUNWlibm Math & Microtasking Library Headers & Lint Files (Usr)

system SUNWlibms Math & Microtasking Libraries (Usr)

system SUNWsprot Solaris Bundled tools

system SUNWtoo Programming Tools

bash-3.00#

3. Paches berikut harus terinstal (atau yang lebih terbaru)

Shared library patch for C++

Math Library (libm) patch

Kernel Patch

linker Patch

Patch for assembler

ps utility patch

Perintah yang digunakan untuk memastikan patches tersebut :

# /usr/sbin/patchadd -p | grep patch_number atau

# showrev -p | more

Persiapan Instalasi

1. Buat group oinstall dan dba

# /usr/sbin/groupadd oinstall

# /usr/sbin/groupadd dba

bash-3.00# # /usr/sbin/groupadd oinstall

bash-3.00# # /usr/sbin/groupadd dba

bash-3.00#

2. Buat direktori oracle di /export/home sebgai home direktori user oracle

# mkdir -p /export/home/oracle

bash-3.00# mkdir -p /export/home/oracle

bash-3.00#

3. Buat user oracle dengan oinstall sebagai primary group dan dba sebagai secondary group dan /export/home/oracle sebagai home direktorinya :

# useradd -d /export/home/oracle -g oinstall -G dba oracle

bash-3.00# useradd -d /export/home/oracle -g oinstall -G dba oracle

bash-3.00#

4. Buat password untuk user oracle

# passwd oracle

bash-3.00# passwd oracle

New Password:

Re-enter new Password:

passwd: password successfully changed for oracle

bash-3.00#

5. Ubah status owner dari direktory /export/home/oracle yang telah dibuat menjadi oracle dan groupnya menjadi oinstall

# chown -R oracle:oinstall /export/home/oracle

bash-3.00# chown -R oracle:oinstall /export/home/oracle

bash-3.00#

6. Buat direktor oracle home, kemudian ubah status ownernya menjadi oracle dan groupnya menjadi groupnya oinstall serta ubah mode status permissionnya . Contoh direktori yang dibuat /oracle/product/10.2.0

# mkdir -p /oracle/product/10.2.0

# chown -R oracle:oinstall /oracle/product/10.2.0

# chmod -R 775 /oracle/product/10.2.0

bash-3.00# mkdir -p /oracle/product/10.2.0

bash-3.00# chown -R oracle:oinstall /oracle/product/10.2.0

bash-3.00# chmod -R 775 /oracle/product/10.2.0

bash-3.00#

7. Buat direktor oracle base, kemudian ubah status ownernya menjadi oracle dan groupnya menjadi groupnya oinstall serta ubah mode status permissionnya . Contoh direktori yang dibuat /oracle/product/orabase

# mkdir -p /oracle/product/orabase

# chown -R oracle:oinstall /oracle/product/orabase

# chmod -R 775 /oracle/product/orabase

bash-3.00# mkdir -p /oracle/product/orabase

bash-3.00# chown -R oracle:oinstall /oracle/product/orabase

bash-3.00# chmod -R 775 /oracle/product/orabase

bash-3.00#

8. Tambahkan settingan parameter konfigurasi kernel yang tertera dibawah ini pada file system yang berada di /etc/

set semsys:seminfo_semmni=100

set semsys:seminfo_semmns=1024

set semsys:seminfo_semmsl=256

set semsys:seminfo_semvmx=32767

set shmsys:shminfo_shmmax=4294967295

set shmsys:shminfo_shmmni=100

set shmsys:shm:wqinfo_shmmni=100

sebelum menambahkan copy terlebih dahulu file system dengan nama yang lain untuk mencegah adanya kesalahan-kesalahan memasukkan parameter, berikut perintahnya :

# cp /etc/system /etc/system.orig

bash-3.00# cp /etc/system /etc/system.orig

bash-3.00# echo "set semsys:seminfo_semmni=100" >> /etc/system

bash-3.00# echo "set semsys:seminfo_semmns=1024" >> /etc/system

bash-3.00# echo "set semsys:seminfo_semmsl=256" >> /etc/system

bash-3.00# echo "set semsys:seminfo_semvmx=32767" >> /etc/system

bash-3.00# echo "set shmsys:shminfo_shmmax=4294967295" >> /etc/system

bash-3.00# echo "set shmsys:shminfo_shmmni=100" >> /etc/system

bash-3.00# echo "set shmsys:shm:wqinfo_shmmni=100" >> /etc/system

bash-3.00# tail /etc/system

*

* set test_module:debug = 0x13

exec_user_stack=1

set semsys:seminfo_semmni=100

set semsys:seminfo_semmns=1024

set semsys:seminfo_semmsl=256

set semsys:seminfo_semvmx=32767

set shmsys:shminfo_shmmax=4294967295

set shmsys:shminfo_shmmni=100

set shmsys:shm:wqinfo_shmmni=100

9. Copy, Ektrak paket installer oracle ke /tmp dan ubah status permission serta ubah owner nya ke oracle dengan group oinstall

# cd /cdrom/cdrom0

# cp 10202__1.zip /tmp

# cd /tmp

# unzip 10202__1.zip

# chown -R oracle:oinstall /tmp/database

# chmod -R 775 /tmp/database

Proses Instalasi

1. Login sebagai user oracle

# su – oracle

2. Jika menggunakan Xmanager (software bisa beli atau download trialnya di http://www.netsarang.com/), untuk remote instalasinya maka set dahulu DISPLAY nya dengan menggunakan SSH

#export DISPLAY=192.168.100.3:0.0

Kemudian jalankan Xmanager, masukkan IP, Protocol, username dan password


Klik run dengan isi Execution Command :

/usr/openwin/bin/xterm -ls -display $DISPLAY

Maka akan terlihat windows seperti gambar dibawah ini



Untuk Tes GUI nya jalankan :

# /usr/openwin/bin/xclock

Maka akan muncul tampilan seperti dibawah ini,


3. Set Konfigurasi environment dari user oracle

Jika terminal shell yang digunakan adalah Bash, maka buat file dengan nama .profile dengan konten sebagai berikut

stty istrip

ORACLE_HOME=/oracle/product/10.2

ORACLE_BASE=/oracle/product/orabase

TNS_ADMIN=$ORACLE_HOME/network/admin

LD_LIBRARY_PATH=$ORACLE_HOME/lib

ORACLE_SID=orcl

export ORACLE_HOME ORACLE_BASE TNS_ADMIN LD_LIBRARY_PATH ORACLE_SID

PATH=/usr/bin:/usr/ucb:/etc:$ORACLE_HOME/bin:.

export PATH

# echo "stty istrip" >> .profile

# echo "ORACLE_HOME=/oracle/product/10.2.0" >> .profile

# echo "ORACLE_BASE=/oracle/product/orabase" >> .profile

# echo "TNS_ADMIN=$ORACLE_HOME/network/admin" >> .profile

# echo "LD_LIBRARY_PATH=$ORACLE_HOME/lib" >> .profile

# echo "ORACLE_SID=orcl" >> .profile

# echo "export ORACLE_HOME ORACLE_BASE TNS_ADMIN LD_LIBRARY_PATH # ORACLE_SID" >> .profile

# echo "PATH=/usr/bin:/usr/ucb:/etc:$ORACLE_HOME/bin:." >> .profile

# echo "export PATH" >> .profile

dengan keterangan

ORACLE_HOME=/oracle/product/10.2 ---> direktori oracle home yang telah dibuat sebelumnya

ORACLE_BASE=/oracle/product/orabase ---> direktory oracle base yang telah dibuat sebelumnya

4. Jalankan profile yang telah dibuat

# . .profile

5. Pada direcktori database hasil ektrak, jalankan ./runInstaller

#./runInstaller

bash-3.00$./runInstaller

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.10. Actual 5.10

Passed

Checking Temp space: must be greater than 250 MB. Actual 1159 MB Passed

Checking swap space: must be greater than 500 MB. Actual 2776 MB Passed

Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-09-01_05-26-05PM. Please wait ...


6. Jika installnya tanpa create database maka cheklist Create Starter Database di uncheck, masukkan password untuk Database Password, kemudian kilik next

bash-3.00$

bash-3.00$ Oracle Universal Installer, Version 10.2.0.2.0 Production

Copyright (C) 1999, 2006, Oracle. All rights reserved.




7. Klik next



8. Klik Install

9. Tunggu hingga muncul interaktif berikutnya


10. Klik OK

jalankan script yang tertera dalam dialog box kemudian klik ok



pada console root jika script diatas di jalankan maka akan muncul interaksi spserti dibawah ini

# /oracle/product/orabase/oraInventory/orainstRoot.sh

Changing permissions of /oracle/product/orabase/oraInventory to 770.

Changing groupname of /oracle/product/orabase/oraInventory to oinstall.

The execution of the script is complete

bash-3.00# ./root.sh

Running Oracle 10g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /oracle/product/10.2.0

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.sh script.

Now product-specific root actions will be performed.

11. Finish, Instalasi Oracle secera Basic sudah selesai

Referrences :