Jumat, 08 Januari 2010

Software Tutorial, - 8 Januari 2010

Berikut ini adalah langkah-langkah menginstall Oracle pada Enterprise Linux 4.

  1. Login as root
  2. Create group dba, oper, oinstall
    /usr/sbin/groupadd dba
    /usr/sbin/groupadd oper
    /usr/sbin/groupadd oinstall
  3. Create user oracle default group oinstall, group dba, oper
    /usr/sbin/useradd oracle –g oinstall –G dba,oper
  4. 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
  5. 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
  6. 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
  7. 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
  8. Make sure that the asm_disk files are associated to raw devices, and have the right permissions:
    chmod 777 asm_disk*
  9. 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
  10. 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
  11. 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
  12. Restart Computer
  13. Login as user oracle
  14. Install Database Oracle

0 komentar:

Posting Komentar

BTemplates.com

Diberdayakan oleh Blogger.

Pages

Profil

Foto saya
Jakarta, jakarta selatan, Indonesia
Remaja. Tinggal di Jakarta. Sedang berusaha menemukan jawaban dari "Siapa saya?". Mencintai binar mata kanak-kanak, langit senja, aroma tanah basah, gelembung sabun, cokelat panas, tertawa keras-keras, dan berpelukan. Tergila-gila pada blog, humor, dan segala jenis buku. Teman yang menyenangkan dan menyebalkan, tergantung suasana hati. Baginya, menulis adalah terapi sekaligus sarana pencarian jati diri. Jadi, jangan tertipu oleh tulisan. Sapa dia jika bertemu di jalan, karena dia akan menyapa balik. Tapi jangan coba-coba menginjak kakinya di dalam angkot, atau menghembuskan asap rokok tepat di mukanya.

Followers

Total Tayangan Halaman

Popular Posts