ORACLE9i在linux4.7上的安装

                                         ORACLE在linux(虚拟机)上的安装
 
装前准备 :下载在Oracle官网上下载Oracle9i;
                      下载并安装好linux操作系统(选DVD的方便);
                      下载Oracle安装文档;
                      下载Xmanager―远程连接linux用的;
                       网上搜索 compat-libcwait-2.1-1.i386.rpm  compat-oracle-rhel4-1.0-5.i386.rpm  这两个包;
注意事项: 安装linux时候请给它足够的硬盘空间(13G以上);
                        防火墙和SElinux都选择关闭吧;
                        在选择包时候,其中的development中的development tools 和legacy software development 这两个包一定要选;
                        从你下载的linux安装包里找出以下的RPM包:
                         xorg-x11-deprecated-libs- 6.8.2 -1.EL.13.20.i386.rpm
           xorg-x11-libs-6.8.2-1.EL.13.20.i386.rpm
           xorg-x11-xfs-6.8.2-1.EL.13.20.i386.rpm
        alsa-lib-devel- 1.0.6 -5.RHEL4.i386.rpm
        fontconfig-devel-2.2.3-7.i386.rpm
        freetype-devel-2.1.9-1.i386.rpm
        libjpeg-devel-6b-33.i386.rpm
        libtiff-devel-3.6.1-8.i386.rpm
        libungif-devel-4.1.3-1.i386.rpm
        xorg-x11-6.8.2-1.EL.13.20.i386.rpm
        xorg-x11-deprecated-libs-devel-6.8.2-1.EL.13.20.i386.rpm
        xorg-x11-devel-6.8.2-1.EL.13.20.i386.rpm
        audiofile-devel- 0.2.6 -1.i386.rpm
        esound-devel-0.2.35-2.i386.rpm
        libaio-0.3.103-3.i386.rpm
        libaio-devel-0.3.103-3.i386.rpm
        openmotif21-2.1.30-11.RHEL4.4.i386.rpm
         glib-devel- 1.2.10 -15.i386.rpm
         gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm
         gtk+-devel-1.2.10-33.i386.rpm
         imlib-devel-1.9.13-23.i386.rpm
         ORBit-devel-0.5.17-14.i386.rpm
                           总共24个包,采用Xftp与linux相连(注意里面protocol选sftp)把这些包和9i安装包传过去。
                           安装这24个包:rpm  -ivh   *.rpm
                          可能提醒你说有些已经存在了。那么把它们移走;再执行以上指令就OK;还有可能有依赖关系,你可以根据他的提醒去把它找到安装;
 安装Oracle:
                           ①创建组和Oracle安装目录;
                                groupadd  oinstall
                                groupadd   dba
                                mkdir   -p   /u01/oracle
                           ②建立Oracle用户
                                useradd   -g    oinstall    -G    dba   -d   /u01/oracle    oracle
                                 passwd    oracle
                            ③更改它们的属组
                                  cd    /u01   (可以看看他们是不属于root组)
                                  chown   -R    oracle:oinstall    u01
                            ④更改环境变量
                                   su  - oracle
                                    vi    .bash_profile
                                    ORACLE_SID=denver
                                    ORACLE_BASE=/u01
                                    ORACLE_HOME=/u01/oracle
                                     PATH=$ORACLE_HOME/bin:$PATH
                                     LD_ASSUME_KERNEL=2.4.19
                                    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
 
                                      export   ORACLE_SID   ORACLE_BASE     ORACLE_HOME     PATH    LD_ASSUME_KERNEL      LD_LIBRARY_PATH
                                       stty   erase   ^h
 
                                        source   .bash_profile restart
                                        env      | grep    ORA (看看你的设置是不已经对了)
 ⑤设置kernel参数:
                                          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
                                           sysctl    -p  (使其生效) 
安装oracle的9i安装: exit退出oracle用户到root用户
gunzip  -d *.gz
cpio -idm < ship_9204_linux_disk1.cpio #(should report 1288238 blocks)
cpio -idm < ship_9204_linux_disk2.cpio #(should report 1263504 blocks)
cpio -idm < ship_9204_linux_disk3.cpio #(should report 585396 blocks)
rm -f *.cpio
                                          mv  Disk*     /u01
                                           cd    /u01
                                           chown  -R oracle:oinstall     Disk*(使oracle用户区安装时不会发生权限的问题)
                           su  ―   oracle
                           vi   .bash_profile
                           DISPLAY=ip地址(你虚拟机vnet1的地址); export  DISPLAY
                           source .bash_profile    restart
                            env   |grep    DIS  (看看是你设的不)
                          启动Xmanagemer―Passive 图形界面  打个oclock 看出来时钟不;
                          cd   /u01/Disk1
                           ls(看有没runinstall)
                           。(点,我怕看不见) /runInstall
                          就开始安装了。之后跟在WINDOWS上都差不多了;不说了。(注意你的SID要跟你开始设置的一样。我这上设置是denver)
  
                          最后我想说的是:我也是刚刚接触这,也是初学者,希望是共同学习共同努力!
                            此文章是借鉴小布老师的视频,我写出来一是让自己再过一下,此外以后能很方便的运用。
                           共同努力,共同学习!
                              附上安装文档一篇!!
 
                             
                            
                                         
                                  

你可能感兴趣的:(oracle,linux,职场,休闲)