• Create directory for zonepath
global# mkdir /test1/zone1
• Change mode for 700
global# chmod 700 /test1/zone1
• Create zone
global# zonecfg -z zone1
zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone1> create
zonecfg:zone1> set autoboot=true
zonecfg:zone1> set zonepath=/test1/zone1
zonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> exit
• list zone was created
global# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- zone1 configured /test1/zone1 native shared <--- status zone was configured
• Install O/S in zone
global# zoneadm -z zone1 install
Waiting for up to <300> seconds for zone administration commands to become available (another user is administering zones)
Preparing to install zone .
Creating list of files to copy from the global zone.
Copying <2922> files to the zone.
Preparing to initialize <1104> packages on the zone.
Initializing zone product registry.
Determining zone package initialization order.
Initializing package <723> of <1104>: percent complete: 65%
--------> wait until 100% and next process when finish wil appear below message
Initialized <1104> packages on zone.
Zone is initialized.
Installation of <2> packages was skipped.
The file
·list zone was installed
global # zoneadm list -cv
ID NAMESTATUSPATH BRANDIP
0 globalrunning/nativeshared
- zone1installed/test1/zone1nativeshared <---- status zone was installed
----> After installation login as console
global # zlogin -C zone1
[Connected to zone 'zone1' console]
You did not enter a selection.
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
8) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Other
Type the number of your choice and press Return: 3
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair
Configuring network interface addresses:.
Enter the host name which identifies this system on the network. The name
must be unique within your domain; creating a duplicate host name will cause
problems on the network after you install Solaris.
-------> and then will appear below message
A host name must have at least one character; it can contain letters,
digits, and minus signs (-).
─ Time Zone ────────────────────────────────────────────────────────────────────
On this screen you must specify your default time zone. You can specify a
time zone in three ways: select one of the continents or oceans from the
list, select other - offset from GMT, or other - specify time zone file.
> To make a selection, use the arrow keys to highlight the option and
press Return to mark it [X].
Continents and Oceans
──────────────────────────────────
- [ ] Africa
│ [ ] Americas
│ [ ] Antarctica
│ [ ] Arctic Ocean
│ [ ] Asia
│ [ ] Atlantic Ocean
│ [ ] Australia
│ [ ] Europe
v [ ] Indian Ocean
─ Time Zone ────────────────────────────────────────────────────────────────────
> To make a selection, use the arrow keys to highlight the option and
press Return to mark it [X].
Time zones
─────────────────────────────────────────────────────────────────
[X] Java & Sumatra
[ ] west & central Borneo
[ ] east & south Borneo, Celebes, Bali, Nusa Tengarra, west Timor
[ ] Irian Jaya & the Moluccas
rebooting system due to change(s) in /etc/default/init
[NOTICE: Zone rebooting]
SunOS Release 5.10 Version Generic_120011-14 64-bit
Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: zone1-lab
zone1-lab console login:
zone1-lab console login: root
Password:
Nov 22 14:05:16 zone1-lab login: ROOT LOGIN /dev/console
Last login: Mon Nov 22 13:49:58 on pts/4
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
#
========================================================
Zone States
Zone state information can be viewed with zoneadm list -iv from the global zone. Non-global zones have one of the following states:
• configured: Configuration complete and in stable storage.
• incomplete: Installation or uninstallation underway
• installed: Configuration instantiated on system. Zone has no associated virtual platform.
• ready: Virtual platform established, zsched started, IPs plumbed, filesystems mounted, zone ID assigned. No zone processes started yet.
• running: This state entered when zone init process starts.
• shutting down: Zone being halted.
• down: Transitional state during zone shutdown.
Zone Control Commands
The following control commands can be used to manage and monitor transitions between states:
• zlogin options zone-name
• zoneadm -z zone-name boot
• zoneadm -z zone-name halt
• zoneadm -z zone-name install
• zoneadm -z zone-name ready
• zoneadm -z zone-name reboot
• zoneadm -z zone-name uninstall
• zoneadm -z zone-name verify
• zonecfg -z zone-name: Interactive mode; can be used to remove properties of the following types: fs, device, rctl, net, attr
• zonecfg -z zone-name commit
• zonecfg -z zone-name create
• zonecfg -z zone-name delete
• zonecfg -z zone-name verify
Umumnya, disk yang di mount di solaris 10 adalah internal disk yang sudah di partisi atau external disk baik itu FC atau SATA yang di attachkan pada system. Pertanyaan yang muncul, apakah usb-disk atau pendrive dapat di attachkan dan dikenali pada solaris 10? jawabnya bisa iya bisa tidak tergantung format file system pada usb-disk atau pendrivenya.
untuk lebih detailnya tentang usb disk dan utility lainnya bisa cek di
4. format disk dengan tipe file system yang bisa terbaca pada solaris (menggunakan command fdisk)
bash-3.00# fdisk /dev/rdsk/c5t0d0s2 No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the partition table. y bash-3.00#
atau menggunakan command newfs -T
bash-3.00# newfs -T /dev/rdsk/c4t0d0s0 newfs: construct a new file system /dev/rdsk/c4t0d0s0: (y/n)? y Warning: cylinder groups must have a multiple of 16 cylinders with the given parameters Rounded cgsize up to 64 Warning: insufficient space in super block for rotational layout tables with nsect 63, ntrack 255, and nrpos 8. Omitting tables - file system performance may be impaired. Warning: 1 sector(s) in last cylinder unallocated /dev/rdsk/c4t0d0s0: 625137344 sectors in 38913 cylinders of 255 tracks, 63 sectors 305242.8MB in 811 cyl groups (48 c/g, 376.52MB/g, 384 i/g) super-block backups (for fsck -F ufs -o b=#) at: 32, 771216, 1542400, 2313584, 3084768, 3855952, 4627136, 5398320, 6169504, 6940688, Initializing cylinder groups: ................ super-block backups for last 10 cylinder groups at: 617669264, 618440448, 619211632, 619982816, 620754000, 621525184, 622296368, 623067552, 623838736, 624609920
5. buat folder baru
mkdir /rmdisk
6. mount ke /rmdisk
# mount /dev/dsk/c5t0d0s2 /rmdisk bash-3.00# bash-3.00# ls lost+found bash-3.00# du -kh 8K ./lost+found 16K . bash-3.00#
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.1jika 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 menggunakanvi 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
Persiapan sebelum InstalasiOracle 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.10Generic January 2005
# bash
bash-3.00#
3.Cek status koneksi jaringan dengan menggunakan perintah #dladm show-dev
# bash
bash-3.00# dladm show-dev
pcn0link: upspeed: 100Mbpsduplex: 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
STATESTIMEFMRI
online14:51:29 svc:/network/ssh:default
bash-3.00#
2.Edit dengan menggunakan viatau 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
modulissh_host_dsa_key.pubsshd_config
ssh_configssh_host_rsa_key
ssh_host_dsa_keyssh_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
Subsystemsftp/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 :
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
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
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 :
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
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 MBPassed
Checking swap space: must be greater than 500 MB.Actual 2776 MBPassed
Checking monitor: must be configured to display at least 256 colors.Actual 16777216Passed
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 cheklistCreate 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