久久中文视频-久久中文网-久久中文亚洲国产-久久中文字幕久久久久-亚洲狠狠成人综合网-亚洲狠狠婷婷综合久久久久

Rss & SiteMap

曙海教育集團論壇 http://www.bjzhda.cn

曙海教育集團論壇
共1 條記錄, 每頁顯示 10 條, 頁簽: [1]
[瀏覽完整版]

標題:linux系統數據庫開發環境搭建

1樓
wangxinxin 發表于:2010-11-25 9:13:07
一、準備安裝軟件
 1. Red Hat Enterprise AS4 系統軟件
       RHEL4-U2-i386-AS-disc1.iso
       RHEL4-U2-i386-AS-disc2.iso
       RHEL4-U2-i386-AS-disc3.iso
       RHEL4-U2-i386-AS-disc4.iso
 2、防病毒軟件antivir
       antivir-server-prof-2.1.7-18.tar.gz
 3、數據庫軟件oracle10g
       10201_database_linux32.zip
 4、中間服務器軟件及補丁easerver520
       68510-55-0520-01.tgz
       compat-libstdc++-7.3-2.96.118.i386.rpm
二、安裝Red Hat Enterprise AS4 系統
 1、用虛擬光驅將RedHat9的第一個ISO文件中的loadlin.exe文件解壓出來;
 2、再將Red Hat Enterprise AS4 的第一個ISO文件中的isolinux目錄和trans.tbl文件解壓出來;
 3、將Red Hat Enterprise AS4 的四個ISO文件必須放在FAT或FAT32的分區內(如D盤)
 4、建立并編輯一個批處理文件autoboot.bat,寫入以下內容:
    loadlin isolinux/vmlinuz initrd=isolinux/initrd.img
    保存退出;
 5、下面是D盤目錄樹
    --RHEL4-i386-AS-disc1.iso
    --RHEL4-i386-AS-disc2.iso
    --RHEL4-i386-AS-disc3.iso
    --RHEL4-i386-AS-disc4.iso
    --TRANS.TBL
    --loadlin.exe
    --autoboot.bat
   │
   └─isolinux
    ---------TRANS.TBL
    ---------boot.cat
    ---------boot.msg
    ---------general.msg
    ---------initrd.img
    ---------isolinux.bin
    ---------isolinux.cfg
    ---------memtest
    ---------options.msg
    ---------param.msg
    ---------rescue.msg
    ---------snake.msg
    ---------splash.lss
    ---------vmlinuz
 6、最后DOS啟動盤引導系統,進入D盤,運行autoboot.bat文件,啟動安裝。
    選擇手工分區,新建一根分區和交換分區,點擊NEXT
    選擇配置高級引導裝載程序選項,點擊NEXT
    選擇/dev/hda3引導分區的第一個扇區,點擊NEXT
    在網絡設備打開編輯窗口,取消使用DHCP進行配置,并輸入IP,手工設置機器名,網關和DNS
    選擇無防火墻
    在系統語言中選擇chinese(p.r of china)和english(USA)
 7、定制軟件包
    桌面: X窗口系統,GNOME桌面環境
    應用程序: 編輯器,工程和科學,圖形化互聯網,基于文本的互聯網,辦公/生產率,視屏和音頻,授權和出版,圖形
    服務器: 取消所有選項
    開發: 開發工具,X軟件開發,GNOME軟件開發
    系統: 管理工具,系統工具,打印支持
    雜項: 默認不選
三.安裝防病毒軟件antivir
   1.解壓 [root@ldsheng]# gunzip antivir-server-prof-2.1.7-18.tar.gz
   2.還原 [root@ldsheng]# tar xvf antivir-server-prof-2.1.7-18.tar
   3.安裝 [root@ldsheng]# cd antivir-server-prof-2.1.7-18
          [root@ldsheng]# ./install
           Do you agree to the license terms? [n] y
           Enter the path to your key file: []LICENSE.DE
           Would you like to install the internet update daemon? [n]y
           Would you like to create a link in /usr/sbin for avupdater ? [y]y
           Would you like the internet update daemon to start automatically? [y]
           How should AvGuard be installed? [n]k
           Would you like to create a link in /usr/sbin for avguard ? [y] y
           Would you like AvGuard to start automatically? [y] y
           Would you like to install the GUI (+ SMC support)? [y] y
           Would you like to configure the AntiVir updater now? [y]n
       Thank you for your interest in AntiVir for UNIX Server.
四.安裝oracle10g數據庫
   1、硬件要求:
      內存512M,交換空間1G,磁盤空間2.5G
      [root@ldsheng]# grep MemTotal /proc/meminfo
      [root@ldsheng]# grep SwapTotal /proc/meminfo
      [root@ldsheng]# df -h
   2、創建用戶和組:
      [root@ldsheng]# groupadd dba
      [root@ldsheng]# groupadd oinstall
      [root@ldsheng]# useradd -m -g oinstall -G dba oracle
      [root@ldsheng]# passwd oracle
   3、準備文件目錄:
      [root@ldsheng]# mkdir -p /u01/app/oracle
      [root@ldsheng]# mkdir -p /u02/oradata
      [root@ldsheng]# chown -R oracle:oinstall /u01/app/oracle /u02/oradata
      [root@ldsheng]# chown -R 775 /u01/app/oracle /u02/oradata
   4、調節系統內核參數:
      編輯vi /etc/sysctl.conf 文件,加入以下的語句:
      kernel.shmall = 2097152
      kernel.shmmax = 2147483648
      kernel.shmmni = 4096
      kernel.sem = 250 32000 100 128
      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
   5、設置oracle對文件的要求:
      編輯文件vi /etc/security/limits.conf 加入以下語句:
      oracle     soft    nproc   2047
      oracle     hard    nproc   16384
      oracle     soft    nofile  1024
      oracle     hard    nofile  65536
   6、設置oracle的系統環境:
      以oracle用戶的身份登錄:
      [root@ldsheng]# su oracle
      [root@ldsheng]# cd ~
      編輯vi .bashrc文件加入以的語句:
      umask 022
      PATH=/bin:/usr/bin:/etc:/usr/openwin/bin:/usr/sbin:/sbin:/u01/app/oracle/bin
      PATH=$PATH:/usr/local/bin:/u01/app/oracle/pruduct/10.2.0/bin:.
      export PATH
      ORACLE_BASE=/u01/app/oracle
      ORACLE_SID=ora0d100
      ORACLE_HOME=/u01/app/oracle/pruduct/10.2.0
      export ORACLE_BASE ORACLE_SID ORACLE_HOME
      LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
      CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
      NLS_LANG=AMERICAN_AMERICA.zhs16gbk
      NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"
      export LD_LIBRARY_PATH CLASSPATH NLS_LANG NLS_DATE_FORMAT
   7、重啟系統使設置生效
      [root@ldsheng]# reboot
   8、解壓縮oracle10g文件,運行安裝命令
      [root@ldsheng]# unzip 10201_database_linux32.zip
      [oracle@ldsheng]$ cd /mnt/oraclefile/database
      [oracle@ldsheng]$ ./runInstaller
      如果提示"OUI-10036:無法創建產品清單位置,您可能無權寫入該位置",則執行以下命令:
      [root@ldsheng]# chmod u=rwx,g=rwx,o=rwx /u01/app/oracle
      [root@ldsheng]# chmod u=rwx,g=rwx,o=rwx /u02/oradata
      安裝結束之前系統會提示執行相關腳本,則按要求執行
      [root@ldsheng]# cd /u01/app/oracle/oraInventory
      [root@ldsheng]# ./orainstRoot.sh
      [root@ldsheng]# cd /u01/app/oracle/pruduct/10.2.0
      [root@ldsheng]# ./root.sh
      Enter the full pathname of the local bin directory: [/usr/local/bin]:
                                          /u01/app/oracle/pruduct/10.2.0/bin
   9、開機自動啟動em,database,listener,agent服務
       a、編輯vi /etc/oratab文件,增加或修改:
          ora0d100:/u01/app/oracle/pruduct/10.2.0:Y
       b、創建對init.ora的軟鏈接
          在/u01/app/oracle/pruduct/10.2.0/dbs下建立一個到/u01/app/oracle/admin/ora0d100/pfile中的init.ora的軟鏈接
          查看鏈接[root@ldsheng]# ls -alt init*
          建立鏈接[root@ldsheng]# ln -s  /u01/app/oracle/admin/ora0d100/pfile/initora0d100.ora
                                         /u01/app/oracle/pruduct/10.2.0/dbs/initora0d100.ora
       c、在/etc/rc.d/init.d 下創建名為dbora的文件,編輯增加以下內容
          #!/bin/bash
          # chkconfig: 35 95 1
          # description: init script to start/stop oracle database 10g, TNS listener, EMS
          #
          # match these values to your environment:
          export ORACLE_BASE=/u01/app/oracle
          export ORACLE_HOME=$ORACLE_BASE/10.2.0/db_1
          export ORACLE_SID=ora0d100
          export PATH=/home/oracle/bin:$ORACLE_HOME/bin:$PATH
          export ORACLE_USER=oracle
          # see how we are called:
            case $1 in
                 start)
                 su - "$ORACLE_USER"<     dbstart
            EOS
                 emctl start dbconsole
            EOO
                  ;;
                 stop)
                 su - "$ORACLE_USER"<     dbshut
            EOS
                 emctl stop dbconsole
            EOO
                   ;;
                   *)
            echo "Usage: $0 {start|stop}"
                   ;;
            esac
       d、打開終端執行:
          [root@ldsheng]# chown oracle.oinstall /etc/rc.d/init.d/dbora
          [root@ldsheng]# chmod 755 /etc/rc.d/init.d/dbora
          使用chkconfig設置運行權限
          [root@ldsheng]# chkconfig dbora reset
          檢查 [root@ldsheng]# chkconfig --list dbora
       
共1 條記錄, 每頁顯示 10 條, 頁簽: [1]

Copyright © 2000 - 2009 曙海教育集團
Powered By 曙海教育集團 Version 2.2
Processed in .03125 s, 2 queries.
主站蜘蛛池模板: 中文字幕中文字幕在线 | 欧美一区二区三区不卡 | a级黄色毛片免费播放视频 a级精品九九九大片免费看 | 末成年娇小性色xxxxx | 国产自制一区 | 国产精品黄色 | 亚洲三级网址 | 午夜dj视频完整社区 | 国内一区 | 国产精品永久免费自在线观看 | 久久国产乱子伦精品免费不卡 | 色偷偷成人 | 欧美日韩高清性色生活片 | 国产成人av性色在线影院 | 欧美一级片毛片 | 亚洲在线第一页 | 国产乱码精品一区二区三区四川人 | 久久99国产精品久久99果冻传媒 | 国产精品黄在线观看免费 | 香蕉久久综合精品首页 | 欧美一区二区在线免费观看 | 午夜宅宅宅影院在线观看 | 一级aaa级毛片午夜在线播放 | 男女交性拍拍拍高清视频 | 美女视频永久黄网站在线观看 | 在线三级网址 | 久久久久毛片免费观看 | 久草在线视频免费看 | 99精品一区二区三区 | 久久亚洲国产 | 国产在线综合一区二区三区 | 国产在线精品一区二区 | 国产一区成人 | 欧美成人免费 | 成年女人看片免费视频播放器 | 在线观看一二三区 | 国产成人精品综合在线观看 | 波多野结衣在线观看3人 | 成人观看的视频三级 | 午夜成年女人毛片免费观看 | 精品国产品香蕉在线观看 |