Software Tutorial, - 8 Januari 2010
Berikut ini adalah langkah-langkah menginstall Oracle pada Enterprise Linux 4.
- Login as root
- Create group dba, oper, oinstall
/usr/sbin/groupadd dba
/usr/sbin/groupadd oper
/usr/sbin/groupadd oinstall - Create user oracle default group oinstall, group dba, oper
/usr/sbin/useradd oracle –g oinstall –G dba,oper - With an editor of your choosing edit
/home/oracle/.bash_profile
To include the following entries
umask 022
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID=orcl
PATH=$ORACLE_HOME/bin:$PATH
export PATH LD_LIBRARY_PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID - Create the directory for the software installation and assign ownership to oracle:oinstall
mkdir -p /u01/app/oracle
mkdir -p /u01/asmdisks
chown -R oracle:oinstall /u01/app
chown -R oracle:oinstall /u01/asmdisks
chmod -R 775 /u01/app - Open the /etc/sysctl.conf file in any text editor and add lines similar to the following:
kernel.sem=250 32000 100 128
kernel.shmmax=2147483684
kernel.shmmni=4096
kernel.shmall=2097152
kernel.msgmnb=360000
kernel.mshmni=2878
kernel.msgmax=8192
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
Issue this command to set the kernel parameter:
/sbin/sysctl –p - Create five 400MB files that will be used as ASM disks. Create those files in /u01/asmdisks
cd /u01/asmdisks
dd if=/dev/zero of=asm_disk1 bs=1024k count=400
dd if=/dev/zero of=asm_disk2 bs=1024k count=400
dd if=/dev/zero of=asm_disk3 bs=1024k count=400
dd if=/dev/zero of=asm_disk4 bs=1024k count=400
dd if=/dev/zero of=asm_disk5 bs=1024k count=400 - Make sure that the asm_disk files are associated to raw devices, and have the right permissions:
chmod 777 asm_disk* - Create script S54losetup . Place the script in /etc/rc5.d
gedit /etc/rc5.d/S54losetup
Enter the following line.
/sbin/losetup /dev/loop1 /u01/asmdisks/asm_disk1
/sbin/losetup /dev/loop2 /u01/asmdisks/asm_disk2
/sbin/losetup /dev/loop3 /u01/asmdisks/asm_disk3
/sbin/losetup /dev/loop4 /u01/asmdisks/asm_disk4
/sbin/losetup /dev/loop5 /u01/asmdisks/asm_disk5
Make it executable, and execute the script:
chmod 777 /etc/rc5.d/S54losetup
/etc/rc5.d/S54losetup - Edit scipt /etc/sysconfig/rawdevices and add the following code:
/dev/raw/raw1 /dev/loop1
/dev/raw/raw2 /dev/loop2
/dev/raw/raw3 /dev/loop3
/dev/raw/raw4 /dev/loop4
/dev/raw/raw5 /dev/loop5 - Edit scipt /etc/rc.local and add the following code:
chown oracle:oinstall /dev/raw/raw1
chown oracle:oinstall /dev/raw/raw2
chown oracle:oinstall /dev/raw/raw3
chown oracle:oinstall /dev/raw/raw4
chown oracle:oinstall /dev/raw/raw5 - Restart Computer
- Login as user oracle
- Install Database Oracle
0 komentar:
Posting Komentar