Install Oracle On Linux
PRAinstalation oracle
- pastikan space temporary anda lebih dari 400 MB, jika kurang lihat tutor menbahkan hardisk dengan volume
1. cek componen berikut ini, dengan perintah rpm -q (namacomponent) contoh : rpm -q binutils
binutils
compat-libstdc++
elfutils-libelf
elfutils-libelf-devel
glibc
glibc-common
glibc-devel
glibc-headers
gcc
gcc-c++
libaio-devel
libaio
libgcc
libstdc++
libstdc++
make
sysstat
unixODBC
unixODBC-devel
2. Create Oracle user and group
# groupadd oinstall
# groupadd dba
# groupadd oper
# groupadd asmadmin
3. Create the Oracle and change password
# useradd -g oinstall -G dba dba,oper,asmadmin,oracle
# passwd oracle
4. masuk ke user oracle dan edit file /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIRORACLE_HOSTNAME=oel45.localdomain
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME
ORACLE_SID=billap; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbm /jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
5. Setting kernel dan profile parameter, sesuaikan dengan kondisi hardware anda
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536
# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
###########
# Oracle Database 11g Express Edition Recommended Values
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
# TAMBAHAN UNTUK ORACLE
kernel.shmmni = 4096
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 9000 65000
6. tambahkan parameter berikut ini di file /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 8192
oracle hard nofile 65536
7. install oracle
- Welcome Screen :
Jalankan runInstaller seperti contoh di bawah :
[root@rac1 mess]# /opt/source/database/./runInstaller
maka akan tampak welcome screen, dan pilihlah mode Advanced Instalation
- Specify Inventory Directory and Credential
Pada bagian dibiarkan saja dan klik Next
- Installaton Type :
Enterprise, Standart, Custom. Silahkan pilih Enterprise dan kemudian klik Next
- Install Location
Pada menu ini sudah diset berdasar ORACLE_HOME pada profile user, tekan Next
- Product Specific Prerequisite Check
Menu ini melakukan pengecekan dependency dan hardware. Pastikan setiap bagiannya passed, dan kemudian tekan Next
- Select Configuration Option
Pilih opsi yang ingin anda gunakan kemudian tekan Next
- Select Database Configuration
Ada 3 pilihan, General Purpose, Data Warehouse, Advanced. Kemudian tekan Next
- Select Database Configuration Option
Bagian ini menentukan nama instance database dan system identifier oracle (SID). Jangan merubah konfigurasi ini karena nama database dan SID sudah ditentukan dari profile user oracle. Tekan Next apabila sudah selesai
- Specify Database Config Detail
Anda bisa merubah setting memory, character sets, security, dan sample database (HR Schema) pada bagian ini. Kemudian tekan Next
- Select Database Management option
Bagian ini digunakan untuk menentukan grid control database management apabila anda menggunakan system RAC, dan email notification. Karena tutor ini menggunakan storage file system, maka biarkan saja seperti pada gambar dan kemudian tekan Next
- Specify Database Storage Option
Pilih file system dan kemudian tekan Next
- Specify Backup and Recovery Option
Apabila anda ingin menggunakan flash recovery area jangan lupa untuk mengisi user/pass yang mempunyai priviledge jobs credential yaitu oracle, kemudian tekan Next
- Specify Database Schema Password
Ada dua pilihan, password per schema maupun single password, isikan password dan kemudian tekan Next
- Oracle Configuration Manager Registration
Apabila anda tidak mempunyai user metalink Oracle, silahkan langsung tekan Next
- Summary Installation
Hasil konfigurasi yang anda pilih , ready to install, silahkan tekan Install
- Installation In Progress
Pada bagian ini yang anda perlukan adalah sebungkus rokok dan segelas kopi :). Apabila anda tidak merokok, belajarlah mulai merokok, karena rokok dapat menyebabkan devisa negara bertambah
- Configuration Assistants
Pada bagian ini harap diperhatikan tempat log-log instalasi maupun setting database anda.
- Database Configuration Assistant
Kopi dan paste semua bagian pada bagian ini. Catat juga nama hostname maupun port untuk mengakses EM (Enterprise Manager)
- Execute Configuration Script
Masuk ke terminal dan eksekusi kedua script tersebut dengan user root
[oracle@rac1 ~]$ su root
Password:
[root@rac1 oracle]# /opt/app/oraInventory/./oraInstRoot.sh
[root@rac1 oracle]# /opt/app/oracle/product/11.1.0/db_1/./root.sh
Kemudian kembali oracle installation menu dan tekan OK
- End of Installation
Sampai disini instalasi yang anda lakukan sudah selesai, silahkan tekan exit
NOTE : dalam hal ini, penulis menggunakan gui untuk instalasi oracle, oleh karena itu perhatikan screen resolution, edit jika diperlukan
thx....
sumber : google.co.id, oracle.com
- pastikan space temporary anda lebih dari 400 MB, jika kurang lihat tutor menbahkan hardisk dengan volume
1. cek componen berikut ini, dengan perintah rpm -q (namacomponent) contoh : rpm -q binutils
binutils
compat-libstdc++
elfutils-libelf
elfutils-libelf-devel
glibc
glibc-common
glibc-devel
glibc-headers
gcc
gcc-c++
libaio-devel
libaio
libgcc
libstdc++
libstdc++
make
sysstat
unixODBC
unixODBC-devel
2. Create Oracle user and group
# groupadd oinstall
# groupadd dba
# groupadd oper
# groupadd asmadmin
3. Create the Oracle and change password
# useradd -g oinstall -G dba dba,oper,asmadmin,oracle
# passwd oracle
4. masuk ke user oracle dan edit file /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIRORACLE_HOSTNAME=oel45.localdomain
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME
ORACLE_SID=billap; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbm /jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
5. Setting kernel dan profile parameter, sesuaikan dengan kondisi hardware anda
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536
# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
###########
# Oracle Database 11g Express Edition Recommended Values
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
# TAMBAHAN UNTUK ORACLE
kernel.shmmni = 4096
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 9000 65000
6. tambahkan parameter berikut ini di file /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 8192
oracle hard nofile 65536
7. install oracle
- Welcome Screen :
Jalankan runInstaller seperti contoh di bawah :
[root@rac1 mess]# /opt/source/database/./runInstaller
maka akan tampak welcome screen, dan pilihlah mode Advanced Instalation
- Specify Inventory Directory and Credential
Pada bagian dibiarkan saja dan klik Next
- Installaton Type :
Enterprise, Standart, Custom. Silahkan pilih Enterprise dan kemudian klik Next
- Install Location
Pada menu ini sudah diset berdasar ORACLE_HOME pada profile user, tekan Next
- Product Specific Prerequisite Check
Menu ini melakukan pengecekan dependency dan hardware. Pastikan setiap bagiannya passed, dan kemudian tekan Next
- Select Configuration Option
Pilih opsi yang ingin anda gunakan kemudian tekan Next
- Select Database Configuration
Ada 3 pilihan, General Purpose, Data Warehouse, Advanced. Kemudian tekan Next
- Select Database Configuration Option
Bagian ini menentukan nama instance database dan system identifier oracle (SID). Jangan merubah konfigurasi ini karena nama database dan SID sudah ditentukan dari profile user oracle. Tekan Next apabila sudah selesai
- Specify Database Config Detail
Anda bisa merubah setting memory, character sets, security, dan sample database (HR Schema) pada bagian ini. Kemudian tekan Next
- Select Database Management option
Bagian ini digunakan untuk menentukan grid control database management apabila anda menggunakan system RAC, dan email notification. Karena tutor ini menggunakan storage file system, maka biarkan saja seperti pada gambar dan kemudian tekan Next
- Specify Database Storage Option
Pilih file system dan kemudian tekan Next
- Specify Backup and Recovery Option
Apabila anda ingin menggunakan flash recovery area jangan lupa untuk mengisi user/pass yang mempunyai priviledge jobs credential yaitu oracle, kemudian tekan Next
- Specify Database Schema Password
Ada dua pilihan, password per schema maupun single password, isikan password dan kemudian tekan Next
- Oracle Configuration Manager Registration
Apabila anda tidak mempunyai user metalink Oracle, silahkan langsung tekan Next
- Summary Installation
Hasil konfigurasi yang anda pilih , ready to install, silahkan tekan Install
- Installation In Progress
Pada bagian ini yang anda perlukan adalah sebungkus rokok dan segelas kopi :). Apabila anda tidak merokok, belajarlah mulai merokok, karena rokok dapat menyebabkan devisa negara bertambah
- Configuration Assistants
Pada bagian ini harap diperhatikan tempat log-log instalasi maupun setting database anda.
- Database Configuration Assistant
Kopi dan paste semua bagian pada bagian ini. Catat juga nama hostname maupun port untuk mengakses EM (Enterprise Manager)
- Execute Configuration Script
Masuk ke terminal dan eksekusi kedua script tersebut dengan user root
[oracle@rac1 ~]$ su root
Password:
[root@rac1 oracle]# /opt/app/oraInventory/./oraInstRoot.sh
[root@rac1 oracle]# /opt/app/oracle/product/11.1.0/db_1/./root.sh
Kemudian kembali oracle installation menu dan tekan OK
- End of Installation
Sampai disini instalasi yang anda lakukan sudah selesai, silahkan tekan exit
NOTE : dalam hal ini, penulis menggunakan gui untuk instalasi oracle, oleh karena itu perhatikan screen resolution, edit jika diperlukan
thx....
sumber : google.co.id, oracle.com
Comments
Post a Comment