Chinaunix首页 | 论坛 | 博客
  • 博客访问: 160034
  • 博文数量: 32
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 155
  • 用 户 组: 普通用户
  • 注册时间: 2013-03-08 09:08
个人简介

胖子不是一口吃成滴!

文章分类

全部博文(32)

文章存档

2017年(1)

2016年(4)

2014年(1)

2013年(26)

分类: Oracle

2013-03-29 23:41:47

VMware8虚拟RHEL6.1系统安装Oracle 11gR2
官方文档:
实验环境及准备:
RHEL 6.1操作系统
Oracle 11gR2安装包:      
 
配有本地或远程YUM源 
系统ftp或ssh服务开启,能上传安装包到本地

1、检查系统硬件
1.1 内存

点击(此处)折叠或打开

  1. [root@localhost ~]# grep MemTotal /proc/meminfo
  2. MemTotal: 2071588 kB
1.2 交换空间

点击(此处)折叠或打开

  1. [root@localhost ~]# grep SwapTotal /proc/meminfo
  2. SwapTotal: 4161528 kB
1.3 磁盘空间

点击(此处)折叠或打开

  1. [root@localhost ~]# df -h
  2. Filesystem                    Size  Used  Avail Use% Mounted on
  3. /dev/mapper/VolGroup-lv_root  26G   2.5G  22G   11%  /
  4. tmpfs                         1012M 264K  1012M 1%   /dev/shm
  5. /dev/sda1                     485M  30M   430M   7%  /boot

2、检查系统设置
2.1 IP地址

2.1 主机名称
将主机名对应到真实ip地址,否则oracle有可能将监听程序仅仅建立在127.0.0.1上 将主机名对应到真实ip地址,否则oracle有可能将监听程序仅仅建立在127.0.0.1上    

点击(此处)折叠或打开

  1. # echo '192.168.17.202 oracle.localdomain oracle'>>/etc/hosts
                                                                                                                                                                          
2.2 防火墙及SeLinux
关闭防火墙,并设置为开机不启动

点击(此处)折叠或打开

  1. [root@localhost /]# service iptables stop
  2. iptables: Flushing firewall rules: [ OK ]
  3. iptables: Setting chains to policy ACCEPT: filter [ OK ]
  4. iptables: Unloading modules: [ OK ]
  5. [root@localhost /]# chkconfig iptables off
  6. [root@localhost /]# chkconfig --list |grep iptables
  7. iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
关闭SeLinux

点击(此处)折叠或打开

  1. [root@localhost /]# sed -i '/SELINUX=enforcing/s/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
 
2.3 Linux内核参数

点击(此处)折叠或打开

  1. [root@localhost /]# cat >>sysctl.conf<
  2. >fs.file-max =6815744
  3. >kernel.shmall = 2097152
  4. >kernel.shmmax = 2147483648
  5. >kernel.shmmni = 4096
  6. >kernel.sem = 250 32000 100 128
  7. >net.ipv4.ip_local_port_range = 1024 65000
  8. >net.core.rmem_default = 4194304
  9. >net.core.rmem_max = 4194304
  10. >net.core.wmem_default = 262144
  11. >net.core.wmem_max = 262144
  12. >fs.aio-max-nr=1048576
  13. >EOF
  14. [root@localhost /]# sysctl -p
  15. net.ipv4.ip_forward = 0
  16. net.ipv4.conf.default.rp_filter = 1
  17. net.ipv4.conf.default.accept_source_route = 0
  18. kernel.sysrq = 0
  19. kernel.core_uses_pid = 1
  20. net.ipv4.tcp_syncookies = 1
  21. net.bridge.bridge-nf-call-ip6tables = 0
  22. net.bridge.bridge-nf-call-iptables = 0
  23. net.bridge.bridge-nf-call-arptables = 0
  24. kernel.msgmnb = 65536
  25. kernel.msgmax = 65536
  26. kernel.shmmax = 4294967295
  27. kernel.shmall = 268435456
  28. fs.file-max = 6815744
  29. kernel.shmall = 2097152
  30. kernel.shmmax = 2147483648
  31. kernel.shmmni = 4096
  32. kernel.sem = 250 32000 100 128
  33. net.ipv4.ip_local_port_range = 1024 65000
  34. net.core.rmem_default = 4194304
  35. net.core.rmem_max = 4194304
  36. net.core.wmem_default = 262144
  37. net.core.wmem_max = 262144
  38. fs.aio-max-nr = 1048576

3、配置本地YUM源安装依赖软件包
配置本地YUM源

点击(此处)折叠或打开

  1. [root@localhost /]# mkdir -p /media/yum
  2. [root@localhost /]# mount -o ro,loop -t iso9660 /dev/cdrom /media/yum
  3. [root@localhost /]# echo /dev/cdrom /media/yum iso9660 ro,loop 0 0>>/etc/fstab
  4. [root@localhost /]# cd /etc/yum.repos.d/
  5. [root@localhost /]# rm -fr *
  6. [root@localhost /]# touch /etc/yum.repos.d/server.repo
  7. [root@localhost /]# cat >>/etc/yum.repos.d/server.repo<
  8. >[server]
  9. >name=server
  10. >baseurl=baseurl=file:///media/yum/Server
  11. >enabled=1
  12. >gpgkey=0
  13. >EOF
  14. [root@localhost /]# yum clean all
  15. [root@localhost /]# yum update
安装依赖软件包 

点击(此处)折叠或打开

  1. [root@oracle ~]# yum -y install binutils-2.* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-* gcc-4.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* ksh-2* libaio-0.* libaio-devel-0.* libgcc-4.* libstdc++-4.* libstdc++-devel-4.* make-3.* sysstat-7.* unixODBC-2.* unixODBC-devel-2.* pdksh* ncurses-devel-* libXp
  4、创建oracle用户和组
创建oinstall组;
创建dba组;
创建oracle用户,设置oinstall为它的主要组,dba为它的次要组
为oracle用户设置密码

     点击(此处)折叠或打开

  1. [root@localhost cuijm]# groupadd oinstall
  2. [root@localhost cuijm]# groupadd dba
  3. [root@localhost cuijm]# useradd -g oinstall -Gdba oracle
  4. [root@localhost cuijm]# passwd
  5. Changing password for user root.
  6. New password:
  7. BAD PASSWORD: it is based on a dictionary word
  8. BAD PASSWORD: is too simple
  9. Retype new password:
  10. passwd: all authentication tokens updated successfully.
  11. [root@localhost cuijm]# id oracle
    uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)
5、为oracle用户设置环境变量
# vim /home/oracle/.bash_profile
    修改该文件后,重启后若以非oracle用户身份登录系统,开启一个shell终端时这些变量是不生效的,除非原来就调用root权限在/etc/profile文件里面做修改,当然这种做法是不推荐的,除非要设置的变量是所有用户公用的。回到正题,这时我们会切换到oracle用户(# su oracle),发现还是没有生效。
    正解:以非oracle用户登录系统时,应执行(# su - oracle)切换用户以及用户环境变量。

点击(此处)折叠或打开

  1. [root@localhost /]# cat >>/home/oracle/.bash_profile<
  2. >export PATH
  3. >export TMP=/tmp
  4. >export TMPDIR=$TMP
  5. >export ORACLE_BASE=/u01/app/oracle
  6. >export ORACLE_HOME=$ORACLE_BASE/product/11.2.0
  7. >export ORACLE_SID=orcl
  8. >export PATH=$PATH:$ORACLE_HOME/bin:/usr/local/sbin:/usr/local/bin
  9. >export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
  10. >export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
  11. >EOF
  12. [root@localhost /]# source /home/oracle/.bash_profile

6、检查oracle用户session限制
# vim /etc/security/limits.conf    

点击(此处)折叠或打开

  1. [root@localhost cuijm]# cat >>/etc/security/limits.conf<
  2. >racle soft nproc 2047
  3. >oracle hard nproc 16384
  4. >oracle soft nofile 1024
  5. >oracle hard nofile 65536
  6. >EOF
# vim /etc/pam.d/login

点击(此处)折叠或打开

  1. [root@localhost cuijm]# cat session required pam_limits.so >> /etc/pam.d/login
# vim /etc/profile

点击(此处)折叠或打开

  1. [root@localhost cuijm]# cat >>/etc/profile.add<
  2. >if [ $USER = "oracle" ]; then
  3. >if [ $SHELL = "/bin/ksh" ]; then
  4. >ulimit -p 16384
  5. >ulimit -n 65536
  6. >else
  7. >ulimit -u 16384 -n 65536
  8. >fi
  9. >fi
  10. >EOF
 
7、新建安装目录并设置所有者和权限

点击(此处)折叠或打开

  1. [root@localhost cuijm]# mkdir -p /u01/app/oracle/product/11.2.0/db_1
  2. [root@localhost cuijm]# chown -R oracle:oinstall /u01
  3. [root@localhost cuijm]# chmod -R 775 /u01

9、安装Oracle

点击(此处)折叠或打开

  1. [root@oracle /]# ls /u01
  2. app
  3. linux_11gR2_database_1of2.zip
  4. linux_11gR2_database_2of2.zip
  5. [root@oracle u01]# cd /u01
  6. [root@oracle u01]# unzip linux_11gR2_database_1of2.zip && unzip linux_11gR2_database_2of2.zip
  7. [root@oracle u01]# ls
  8. app
  9. database
  10. linux_11gR2_database_1of2.zip
  11. linux_11gR2_database_2of2.zip

点击(此处)折叠或打开

  1. [root@oracle u01]# su - oracle
  2. [root@oracle u01]# /u01/database/runInstaller
 

  10、安装常见问题及排除方法






  
安装完成后根据提示,切换到root用户执行两个shell脚本

点击(此处)折叠或打开

  1. [oracle@oracle ~]$ su - root
  2. Password:
  3. [root@oracle ~]# /u01/app/oraInventory/orainstRoot.sh
  4. [root@oracle ~]# /u01/app/oracle/product/11.2.0/root.sh

10 常见问题

10、1 内核参数修改error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key 

点击(此处)折叠或打开

  1. [root@localhost /]# sysctl -p
  2. ……
  3. net.ipv4.ip_forward = 0
  4. net.ipv4.conf.default.rp_filter = 1
  5. net.ipv4.conf.default.accept_source_route = 0
  6. kernel.sysrq = 0
  7. kernel.core_uses_pid = 1
  8. net.ipv4.tcp_syncookies = 1
  9. error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
  10. error: "net.bridge.bridge-nf-call-iptables" is an unknown key
  11. error: "net.bridge.bridge-nf-call-arptables" is an unknown key
  12. ……
  13. error: "Fs.file-max" is an unknown key
  14. ……
  15. kernel.msgmnb = 65536
  16. kernel.msgmax = 65536net.core.wmem_default = 262144
  17. net.core.wmem_max = 262144
  18. warning: /etc/sysctl.conf(51): invalid syntax, continuing...
  19. [root@localhost /]#modprobe bridge
  20. [root@localhost /]#lsmod | grep bridge

10.2、Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set

点击(此处)折叠或打开

  1. [root@oracle database]# su - oracle
  2. [oracle@oracle ~]$ cd /u01/database/
  3. [oracle@oracle database]$ ./runInstaller
  4. Starting Oracle Universal Installer...
  5. Checking Temp space: must be greater than 80 MB. Actual 14325 MB Passed
  6. Checking swap space: must be greater than 150 MB. Actual 4063 MB Passed
  7. Checking monitor: must be configured to display at least 256 colors
  8. >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
  9. Some requirement checks failed. You must fulfill these requirements before
  10. continuing with the installation,
  11. Continue? (y/n) [n] n
  12. User Selected: No
  13. Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2013-03-27_01-23-54PM/installActions2013-03-27_01-23-54PM.log
如果是本地安装,需要切换oracle用户,图形界面登录,执行安装文件;
如果是远程安装,
10.3 
Unable to find mke file:/u01/app/oracle/product/11.2.0/ctx/lib/ins_ctx.mk        
 

 
 

点击(此处)折叠或打开

  1. [root@oracle product]# tail -25 /u01/app/oraInventory/logs/installActions2013-03-27_01-53-49PM.log
  2. INFO: ----------------------------------
  3. INFO: Calling Action unixActions10.2.0.3.0 make
  4. registerOnly = false
  5. installMakePath = /usr/bin/make
  6. installMakeFileName = /u01/app/oracle/product/11.2.0/ctx/lib/ins_ctx.mk
  7. installTarget = install
  8. undoMakeFileName =
  9. installArguments = ORACLE_HOME=/u01/app/oracle/product/11.2.0
  10. logFile = /u01/app/oracle/product/11.2.0/install/make.log
  11. undoTarget =
  12. progMsg = Linking Text executables
  13. INFO: Exception thrown from action: make
  14. Exception Name: MakefileNotFoundException
  15. Exception String: Unable to find make file: /u01/app/oracle/product/11.2.0/ctx/lib/ins_ctx.mk
  16. Exception Severity: 1
  17. INFO: Exception thrown from action: make
  18. Exception Name: MakefileNotFoundException
  19. Exception String: Unable to find make file: /u01/app/oracle/product/11.2.0/ctx/lib/ins_ctx.mk
  20. Exception Severity: 1
  21. INFO: Adding ExitStatus STOP_INSTALL to the exit status set
  22. INFO: Finding the most appropriate exit status for the current application
  23. INFO: Exit Status is -4
  24. INFO: Shutdown Oracle Database 11g Release 2 Installer
  25. INFO: Unloading Setup Driver
  26. [root@oracle product]# cat /u01/app/oracle/product/11.2.0/install/make.log
  27. /usr/bin/make -f ins_rdbms.mk rat_on part_on dm_on olap_on sdo_on ORACLE_HOME=/u01/app/oracle/product/11.2.0//usr/bin/ar d /u01/app/oracle/product/11.2.0/rdbms/lib/libknlopt.a kecnr.o
    /usr/bin/ar cr /u01/app/oracle/product/11.2.0/rdbms/lib/libknlopt.a /u01/app/oracle/product/11.2.0/rdbms/lib/kecwr.o
    /usr/bin/ar d /u01/app/oracle/product/11.2.0/rdbms/lib/libknlopt.a ksnkkpo.o
    /usr/bin/ar cr /u01/app/oracle/product/11.2.0/rdbms/lib/libknlopt.a /u01/app/oracle/product/11.2.0/rdbms/lib/kkpoban.o
    /usr/bin/ar d /u01/app/oracle/product/11.2.0/rdbms/lib/libknlopt.a dmndm.o
    /usr/bin/ar cr /u01/app/oracle/product/11.2.0/rdbms/lib/libknlopt.a /u01/app/oracle/product/11.2.0/rdbms/lib/dmwdm.o
    /usr/bin/ar d /u01/app/oracle/product/11.2.0/rdbms/lib/libknlopt.a xsnoolap.o
    /usr/bin/ar cr /u01/app/oracle/product/11.2.0/rdbms/lib/libknlopt.a /u01/app/oracle/product/11.2.0/rdbms/lib/xsyeolap.o
    /usr/bin/ar cr /u01/app/oracle/product/11.2.0/rdbms/lib/libknlopt.a /u01/app/oracle/product/11.2.0/rdbms/lib/kxmwsd.o
    /usr/bin/make -f ins_net_client.mk mkldflags ntcontab.o nnfgt.o ORACLE_HOME=/u01/app/oracle/product/11.2.0/rm -f ntcontab.*
    (if [ "compile" = "compile" ] ; then \
       /u01/app/oracle/product/11.2.0/bin/gennttab > ntcontab.c ;\
       /usr/bin/gcc -m32  -c ntcontab.c ;\
       rm -f /u01/app/oracle/product/11.2.0/lib/ntcontab.o ;\
       mv ntcontab.o /u01/app/oracle/product/11.2.0/lib/ ;\
              /usr/bin/ar rv /u01/app/oracle/product/11.2.0/lib/libn11.a /u01/app/oracle/product/11.2.0/lib/ntcontab.o ; fi)
    r - /u01/app/oracle/product/11.2.0/lib/ntcontab.o
    (if [ "compile" = "assemble" ] ; then \
       /u01/app/oracle/product/11.2.0/bin/gennttab > ntcontab.s ;\
       /usr/bin/as  -o ntcontab.o ntcontab.s ;\
       rm -f /u01/app/oracle/product/11.2.0/lib/ntcontab.o ;\
       mv ntcontab.o /u01/app/oracle/product/11.2.0/lib/ ;\
              /usr/bin/ar rv /u01/app/oracle/product/11.2.0/lib/libn11.a /u01/app/oracle/product/11.2.0/lib/ntcontab.o ; fi)
    (if [ "compile" = "oratmp" ] ; then \
       /u01/app/oracle/product/11.2.0/bin/gennttab > ntcontab.c ;\
       /lib/idcpp ntcontab.c oratmp.c ;\
        -i oratmp.c -o oratmp.s -f ntcontab.c ;\
       /usr/bin/as -o ntcontab.o oratmp.s ;\
       rm -f oratmp.c oratmp.s ;\
       rm -f /u01/app/oracle/product/11.2.0/lib/ntcontab.o ;\
       mv ntcontab.o /u01/app/oracle/product/11.2.0/lib/ ;\
              /usr/bin/ar rv /u01/app/oracle/product/11.2.0/lib/libn11.a /u01/app/oracle/product/11.2.0/lib/ntcontab.o ; fi)
    (if [ "compile" = "binary" ] ; then \
       /u01/app/oracle/product/11.2.0/bin/gennttab > ntcontab.c ;\
       TARGET_BINARY_INTERFACE= ;\
       export TARGET_BINARY_INTERFACE ;\
       /usr/bin/gcc -m32  -c ntcontab.c ;\
       -rm -f /u01/app/oracle/product/11.2.0/lib/ntcontab.o ;\
       -mv ntcontab.o /u01/app/oracle/product/11.2.0/lib/ ;\
              /usr/bin/ar rv /u01/app/oracle/product/11.2.0/lib/libn11.a /u01/app/oracle/product/11.2.0/lib/ntcontab.o ; fi)
    rm -f nnfgt.*
    (if [ "compile" = "compile"  -a  -n ""  -a  -d "" ]; then \
       echo "Building 32bit version of nnfgt.o"; \
       /u01/app/oracle/product/11.2.0/bin/gennfgt > nnfgt.c ;\
       /usr/bin/gcc -m32 -m32  -c nnfgt.c ;\
       rm -f nnfgt.o ;\
       mv nnfgt.o  ;\
       /usr/bin/ar rv libn11.a nnfgt.o ; fi)  
    (if [ "compile" = "compile" ] ; then \
       /u01/app/oracle/product/11.2.0/bin/gennfgt > nnfgt.c ;\
       /usr/bin/gcc -m32  -c nnfgt.c ;\
       rm -f /u01/app/oracle/product/11.2.0/lib/nnfgt.o ;\
       mv nnfgt.o /u01/app/oracle/product/11.2.0/lib/ ;\
              /usr/bin/ar rv /u01/app/oracle/product/11.2.0/lib/libn11.a /u01/app/oracle/product/11.2.0/lib/nnfgt.o ; fi)
    r - /u01/app/oracle/product/11.2.0/lib/nnfgt.o
    (if [ "compile" = "assemble" ] ; then \
       /u01/app/oracle/product/11.2.0/bin/gennfgt > nnfgt.s ;\
       /usr/bin/as  -o nnfgt.o nnfgt.s ;\
       rm -f /u01/app/oracle/product/11.2.0/lib/nnfgt.o ;\
       mv nnfgt.o /u01/app/oracle/product/11.2.0/lib/ ;\
              /usr/bin/ar rv /u01/app/oracle/product/11.2.0/lib/libn11.a /u01/app/oracle/product/11.2.0/lib/nnfgt.o ; fi)
    (if [ "compile" = "oratmp" ] ; then \
       /u01/app/oracle/product/11.2.0/bin/gennfgt > nnfgt.c ;\
       /lib/idcpp nnfgt.c oratmp.c ;\
        -i oratmp.c -o oratmp.s -f nnfgt.c ;\
       /usr/bin/as -o nnfgt.o oratmp.s ;\
       rm -f oratmp.c oratmp.s ;\
       rm -f /u01/app/oracle/product/11.2.0/lib/nnfgt.o ;\
       mv nnfgt.o /u01/app/oracle/product/11.2.0/lib/ ;\
              /usr/bin/ar rv /u01/app/oracle/product/11.2.0/lib/libn11.a /u01/app/oracle/product/11.2.0/lib/nnfgt.o ; fi)
    (if [ "compile" = "binary" ] ; then \
       /u01/app/oracle/product/11.2.0/bin/gennfgt > nnfgt.c ;\
       TARGET_BINARY_INTERFACE= ;\
       export TARGET_BINARY_INTERFACE ;\
       /usr/bin/gcc -m32  -c nnfgt.c ;\
       -rm -f /u01/app/oracle/product/11.2.0/lib/nnfgt.o ;\
       -mv nnfgt.o /u01/app/oracle/product/11.2.0/lib/ ;\
              /usr/bin/ar rv /u01/app/oracle/product/11.2.0/lib/libn11.a /u01/app/oracle/product/11.2.0/lib/nnfgt.o ; fi)
    /usr/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME=/u01/app/oracle/product/11.2.0//u01/app/oracle/product/11.2.0/bin/genclntsh
    `if [ -d /u01/app/oracle/product/11.2.0/lib32 ]; then rm -f /u01/app/oracle/product/11.2.0/lib32/libclntsh.so.10.1; rm -f /u01/app/oracle/product/11.2.0/lib/libclntsh.so.10.1; else rm -f /u01/app/oracle/product/11.2.0/lib/libclntsh.so.10.1; fi `
    `if [ -d /u01/app/oracle/product/11.2.0/lib32 ]; then ln -s /u01/app/oracle/product/11.2.0/lib32/libclntsh.so /u01/app/oracle/product/11.2.0/lib32/libclntsh.so.10.1; ln -s /u01/app/oracle/product/11.2.0/lib/libclntsh.so /u01/app/oracle/product/11.2.0/lib/libclntsh.so.10.1; else ln -s /u01/app/oracle/product/11.2.0/lib/libclntsh.so /u01/app/oracle/product/11.2.0/lib/libclntsh.so.10.1; fi `
    /u01/app/oracle/product/11.2.0/bin/genoccish
    /u01/app/oracle/product/11.2.0/bin/genagtsh /u01/app/oracle/product/11.2.0/lib/libagtsh.so 1.0
    /usr/bin/make -f ins_precomp.mk links proc gen_pcscfg ORACLE_HOME=/u01/app/oracle/product/11.2.0/(cd /u01/app/oracle/product/11.2.0/precomp/public/; rm -f SQLCA.H)
    (cd /u01/app/oracle/product/11.2.0/precomp/public/; rm -f ORACA.H)
    (cd /u01/app/oracle/product/11.2.0/precomp/public/; rm -f SQLDA.H)
    (cd /u01/app/oracle/product/11.2.0/precomp/public/; rm -f SQLCA.COB)
    (cd /u01/app/oracle/product/11.2.0/precomp/public/; rm -f ORACA.COB)
    (cd /u01/app/oracle/product/11.2.0/precomp/public/; rm -f SQLCA.FOR)
    (cd /u01/app/oracle/product/11.2.0/precomp/public/; rm -f ORACA.FOR)
    (cd /u01/app/oracle/product/11.2.0/precomp/public/; rm -f BNDDSC.FOR)
    (cd /u01/app/oracle/product/11.2.0/precomp/public/; rm -f SELDSC.FOR)
    cd /u01/app/oracle/product/11.2.0/precomp/public/; test ! -f sqlca.h    || ln -s sqlca.h    SQLCA.H
    cd /u01/app/oracle/product/11.2.0/precomp/public/; test ! -f oraca.h    || ln -s oraca.h    ORACA.H
    cd /u01/app/oracle/product/11.2.0/precomp/public/; test ! -f sqlda.h    || ln -s sqlda.h    SQLDA.H
    cd /u01/app/oracle/product/11.2.0/precomp/public/; test ! -f sqlca.cob  || ln -s sqlca.cob  SQLCA.COB
    cd /u01/app/oracle/product/11.2.0/precomp/public/; test ! -f oraca.cob  || ln -s oraca.cob  ORACA.COB
    cd /u01/app/oracle/product/11.2.0/precomp/public/; test ! -f sqlca.for  || ln -s sqlca.for  SQLCA.FOR
    cd /u01/app/oracle/product/11.2.0/precomp/public/; test ! -f oraca.for  || ln -s oraca.for  ORACA.FOR
    cd /u01/app/oracle/product/11.2.0/precomp/public/; test ! -f bnddsc.for || ln -s bnddsc.for BNDDSC.FOR
    cd /u01/app/oracle/product/11.2.0/precomp/public/; test ! -f seldsc.for || ln -s seldsc.for SELDSC.FOR
    make -f /u01/app/oracle/product/11.2.0/precomp/lib/ins_precomp.mk relink EXENAME=proc
    make[1]: Entering directory `/u01/app/oracle/product/11.2.0/precomp/lib'
    Linking /u01/app/oracle/product/11.2.0/precomp/lib/proc
    rm -f /u01/app/oracle/product/11.2.0/bin/proc
    mv /u01/app/oracle/product/11.2.0/precomp/lib/proc /u01/app/oracle/product/11.2.0/bin/
    make[1]: Leaving directory `/u01/app/oracle/product/11.2.0/precomp/lib'
    /usr/bin/make -f ins_rdbms.mk idg4odbc ORACLE_HOME=/u01/app/oracle/product/11.2.0/
     - Linking dg4odbc agent
    rm -f /u01/app/oracle/product/11.2.0/rdbms/lib/dg4odbc
    gcc -o /u01/app/oracle/product/11.2.0/rdbms/lib/dg4odbc -m32 -L/u01/app/oracle/product/11.2.0/rdbms/lib/ -L/u01/app/oracle/product/11.2.0/lib/ -L/u01/app/oracle/product/11.2.0/lib/stubs/ -L/u01/app/oracle/product/11.2.0/lib/ -lirc -lipgo    /u01/app/oracle/product/11.2.0/hs/lib/dg4odbc.o    /u01/app/oracle/product/11.2.0/rdbms/lib/homts.o    -lhgosh11 -lhggcon11 -lhgosh11  -lagtsh  -lclntsh   `cat /u01/app/oracle/product/11.2.0/lib/sysliblist` -Wl,-rpath,/u01/app/oracle/product/11.2.0/lib -lm    `cat /u01/app/oracle/product/11.2.0/lib/sysliblist` -ldl -lm   -L/u01/app/oracle/product/11.2.0/lib
    test ! -f /u01/app/oracle/product/11.2.0/bin/dg4odbc ||\
        mv -f /u01/app/oracle/product/11.2.0/bin/dg4odbc /u01/app/oracle/product/11.2.0/bin/dg4odbcO
    mv /u01/app/oracle/product/11.2.0/rdbms/lib/dg4odbc /u01/app/oracle/product/11.2.0/bin/dg4odbc
    chmod 751 /u01/app/oracle/product/11.2.0/bin/dg4odbc
    /usr/bin/make -f ins_net_client.mk itnsping ORACLE_HOME=/u01/app/oracle/product/11.2.0/ - Linking
    rm -f tnsping
    gcc -o tnsping -m32 -L/u01/app/oracle/product/11.2.0/network/lib/ -L/u01/app/oracle/product/11.2.0/lib/ -L/u01/app/oracle/product/11.2.0/lib/stubs/ -L/u01/app/oracle/product/11.2.0/lib/ -lirc -lipgo   /u01/app/oracle/product/11.2.0/network/lib/s0nsping.o /u01/app/oracle/product/11.2.0/network/lib/nsping.o -lclntsh  `cat /u01/app/oracle/product/11.2.0/lib/ldflags`    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.2.0/lib/ldflags`    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lclient11 -lnnetd11  -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /u01/app/oracle/product/11.2.0/lib/ldflags`    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.2.0/lib/ldflags`    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11  -lvsn11 -lcommon11 -lgeneric11   -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11  -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11   `cat /u01/app/oracle/product/11.2.0/lib/sysliblist` -Wl,-rpath,/u01/app/oracle/product/11.2.0/lib -lm    `cat /u01/app/oracle/product/11.2.0/lib/sysliblist` -ldl -lm   -L/u01/app/oracle/product/11.2.0/lib
    mv -f /u01/app/oracle/product/11.2.0/bin/tnsping /u01/app/oracle/product/11.2.0/bin/tnsping0
    mv tnsping /u01/app/oracle/product/11.2.0/bin/tnsping
    /bin/chmod 751 /u01/app/oracle/product/11.2.0/bin/tnsping

阅读(3781) | 评论(2) | 转发(1) |
1

上一篇:grep实例学习

下一篇:防火墙iptables分析

给主人留下些什么吧!~~

niao59292013-04-01 11:39:49

好东西!!!