VMware8虚拟RHEL6.1系统安装Oracle 11gR2
官方文档:
实验环境及准备:
RHEL 6.1操作系统
Oracle 11gR2安装包:
配有本地或远程YUM源
系统ftp或ssh服务开启,能上传安装包到本地
1、检查系统硬件
1.1 内存
-
[root@localhost ~]# grep MemTotal /proc/meminfo
-
MemTotal: 2071588 kB
1.2 交换空间
-
[root@localhost ~]# grep SwapTotal /proc/meminfo
-
SwapTotal: 4161528 kB
1.3 磁盘空间
-
[root@localhost ~]# df -h
-
Filesystem Size Used Avail Use% Mounted on
-
/dev/mapper/VolGroup-lv_root 26G 2.5G 22G 11% /
-
tmpfs 1012M 264K 1012M 1% /dev/shm
-
/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上
-
# echo '192.168.17.202 oracle.localdomain oracle'>>/etc/hosts
2.2 防火墙及SeLinux
关闭防火墙,并设置为开机不启动
-
[root@localhost /]# service iptables stop
-
iptables: Flushing firewall rules: [ OK ]
-
iptables: Setting chains to policy ACCEPT: filter [ OK ]
-
iptables: Unloading modules: [ OK ]
-
[root@localhost /]# chkconfig iptables off
-
[root@localhost /]# chkconfig --list |grep iptables
-
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
关闭SeLinux
-
[root@localhost /]# sed -i '/SELINUX=enforcing/s/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
2.3 Linux内核参数
-
[root@localhost /]# cat >>sysctl.conf<
-
>fs.file-max =6815744
-
>kernel.shmall = 2097152
-
>kernel.shmmax = 2147483648
-
>kernel.shmmni = 4096
-
>kernel.sem = 250 32000 100 128
-
>net.ipv4.ip_local_port_range = 1024 65000
-
>net.core.rmem_default = 4194304
-
>net.core.rmem_max = 4194304
-
>net.core.wmem_default = 262144
-
>net.core.wmem_max = 262144
-
>fs.aio-max-nr=1048576
-
>EOF
-
[root@localhost /]# sysctl -p
-
net.ipv4.ip_forward = 0
-
net.ipv4.conf.default.rp_filter = 1
-
net.ipv4.conf.default.accept_source_route = 0
-
kernel.sysrq = 0
-
kernel.core_uses_pid = 1
-
net.ipv4.tcp_syncookies = 1
-
net.bridge.bridge-nf-call-ip6tables = 0
-
net.bridge.bridge-nf-call-iptables = 0
-
net.bridge.bridge-nf-call-arptables = 0
-
kernel.msgmnb = 65536
-
kernel.msgmax = 65536
-
kernel.shmmax = 4294967295
-
kernel.shmall = 268435456
-
fs.file-max = 6815744
-
kernel.shmall = 2097152
-
kernel.shmmax = 2147483648
-
kernel.shmmni = 4096
-
kernel.sem = 250 32000 100 128
-
net.ipv4.ip_local_port_range = 1024 65000
-
net.core.rmem_default = 4194304
-
net.core.rmem_max = 4194304
-
net.core.wmem_default = 262144
-
net.core.wmem_max = 262144
-
fs.aio-max-nr = 1048576
3、配置本地YUM源安装依赖软件包
配置本地YUM源
-
[root@localhost /]# mkdir -p /media/yum
-
[root@localhost /]# mount -o ro,loop -t iso9660 /dev/cdrom /media/yum
-
[root@localhost /]# echo /dev/cdrom /media/yum iso9660 ro,loop 0 0>>/etc/fstab
-
[root@localhost /]# cd /etc/yum.repos.d/
-
[root@localhost /]# rm -fr *
-
[root@localhost /]# touch /etc/yum.repos.d/server.repo
-
[root@localhost /]# cat >>/etc/yum.repos.d/server.repo<
-
>[server]
-
>name=server
-
>baseurl=baseurl=file:///media/yum/Server
-
>enabled=1
-
>gpgkey=0
-
>EOF
-
[root@localhost /]# yum clean all
-
[root@localhost /]# yum update
安装依赖软件包
-
[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用户设置密码
-
[root@localhost cuijm]# groupadd oinstall
-
[root@localhost cuijm]# groupadd dba
-
[root@localhost cuijm]# useradd -g oinstall -Gdba oracle
-
[root@localhost cuijm]# passwd
-
Changing password for user root.
-
New password:
-
BAD PASSWORD: it is based on a dictionary word
-
BAD PASSWORD: is too simple
-
Retype new password:
-
passwd: all authentication tokens updated successfully.
-
[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)切换用户以及用户环境变量。
-
[root@localhost /]# cat >>/home/oracle/.bash_profile<
-
>export PATH
-
>export TMP=/tmp
-
>export TMPDIR=$TMP
-
>export ORACLE_BASE=/u01/app/oracle
-
>export ORACLE_HOME=$ORACLE_BASE/product/11.2.0
-
>export ORACLE_SID=orcl
-
>export PATH=$PATH:$ORACLE_HOME/bin:/usr/local/sbin:/usr/local/bin
-
>export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
-
>export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
-
>EOF
-
[root@localhost /]# source /home/oracle/.bash_profile
6、检查oracle用户session限制
# vim /etc/security/limits.conf
-
[root@localhost cuijm]# cat >>/etc/security/limits.conf<
-
>racle soft nproc 2047
-
>oracle hard nproc 16384
-
>oracle soft nofile 1024
-
>oracle hard nofile 65536
-
>EOF
# vim /etc/pam.d/login
-
[root@localhost cuijm]# cat session required pam_limits.so >> /etc/pam.d/login
# vim /etc/profile
-
[root@localhost cuijm]# cat >>/etc/profile.add<
-
>if [ $USER = "oracle" ]; then
-
>if [ $SHELL = "/bin/ksh" ]; then
-
>ulimit -p 16384
-
>ulimit -n 65536
-
>else
-
>ulimit -u 16384 -n 65536
-
>fi
-
>fi
-
>EOF
7、新建安装目录并设置所有者和权限
-
[root@localhost cuijm]# mkdir -p /u01/app/oracle/product/11.2.0/db_1
-
[root@localhost cuijm]# chown -R oracle:oinstall /u01
-
[root@localhost cuijm]# chmod -R 775 /u01
9、安装Oracle
-
[root@oracle /]# ls /u01
-
app
-
linux_11gR2_database_1of2.zip
-
linux_11gR2_database_2of2.zip
-
[root@oracle u01]# cd /u01
-
[root@oracle u01]# unzip linux_11gR2_database_1of2.zip && unzip linux_11gR2_database_2of2.zip
-
[root@oracle u01]# ls
-
app
-
database
-
linux_11gR2_database_1of2.zip
-
linux_11gR2_database_2of2.zip
-
[root@oracle u01]# su - oracle
-
[root@oracle u01]# /u01/database/runInstaller
10、安装常见问题及排除方法
安装完成后根据提示,切换到root用户执行两个shell脚本
-
[oracle@oracle ~]$ su - root
-
Password:
-
[root@oracle ~]# /u01/app/oraInventory/orainstRoot.sh
-
[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
-
[root@localhost /]# sysctl -p
-
……
-
net.ipv4.ip_forward = 0
-
net.ipv4.conf.default.rp_filter = 1
-
net.ipv4.conf.default.accept_source_route = 0
-
kernel.sysrq = 0
-
kernel.core_uses_pid = 1
-
net.ipv4.tcp_syncookies = 1
-
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
-
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
-
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
-
……
-
error: "Fs.file-max" is an unknown key
-
……
-
kernel.msgmnb = 65536
-
kernel.msgmax = 65536net.core.wmem_default = 262144
-
net.core.wmem_max = 262144
-
warning: /etc/sysctl.conf(51): invalid syntax, continuing...
-
[root@localhost /]#modprobe bridge
-
[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
-
[root@oracle database]# su - oracle
-
[oracle@oracle ~]$ cd /u01/database/
-
[oracle@oracle database]$ ./runInstaller
-
Starting Oracle Universal Installer...
-
-
Checking Temp space: must be greater than 80 MB. Actual 14325 MB Passed
-
Checking swap space: must be greater than 150 MB. Actual 4063 MB Passed
-
Checking monitor: must be configured to display at least 256 colors
-
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
-
-
Some requirement checks failed. You must fulfill these requirements before
-
-
continuing with the installation,
-
-
Continue? (y/n) [n] n
-
-
User Selected: No
-
-
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
-
[root@oracle product]# tail -25 /u01/app/oraInventory/logs/installActions2013-03-27_01-53-49PM.log
-
INFO: ----------------------------------
-
INFO: Calling Action unixActions10.2.0.3.0 make
-
registerOnly = false
-
installMakePath = /usr/bin/make
-
installMakeFileName = /u01/app/oracle/product/11.2.0/ctx/lib/ins_ctx.mk
-
installTarget = install
-
undoMakeFileName =
-
installArguments = ORACLE_HOME=/u01/app/oracle/product/11.2.0
-
logFile = /u01/app/oracle/product/11.2.0/install/make.log
-
undoTarget =
-
progMsg = Linking Text executables
-
-
INFO: Exception thrown from action: make
-
Exception Name: MakefileNotFoundException
-
Exception String: Unable to find make file: /u01/app/oracle/product/11.2.0/ctx/lib/ins_ctx.mk
-
Exception Severity: 1
-
INFO: Exception thrown from action: make
-
Exception Name: MakefileNotFoundException
-
Exception String: Unable to find make file: /u01/app/oracle/product/11.2.0/ctx/lib/ins_ctx.mk
-
Exception Severity: 1
-
INFO: Adding ExitStatus STOP_INSTALL to the exit status set
-
INFO: Finding the most appropriate exit status for the current application
-
INFO: Exit Status is -4
-
INFO: Shutdown Oracle Database 11g Release 2 Installer
-
INFO: Unloading Setup Driver
-
[root@oracle product]# cat /u01/app/oracle/product/11.2.0/install/make.log
-
/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
阅读(3843) | 评论(2) | 转发(1) |