ITPub博客

首页 > Linux操作系统 > Linux操作系统 > RHEL58 x64安装Oracle10gR2编译出错/usr/bin/ld skipping incompatible /opt/oracle/pr

RHEL58 x64安装Oracle10gR2编译出错/usr/bin/ld skipping incompatible /opt/oracle/pr

Linux操作系统 作者:xiangfs 时间:2014-03-03 22:09:24 0 删除 编辑

1、安装了一套虚拟机,安装RHEL58_x64成功

 

2、服务调整

chkconfig --level 35 NetworkManager off
service              NetworkManager stop
chkconfig --level 35 bluetooth off
service              bluetooth stop
chkconfig --level 35 hidd off
service              hidd stop
chkconfig --level 35 hplip off
service              hplip stop
chkconfig --level 35 ip6tables off
service              ip6tables stop
chkconfig --level 35 iptables off
service              iptables stop
chkconfig --level 35 iscsi off
service              iscsi stop
chkconfig --level 35 iscsid off
service              iscsid stop
chkconfig --level 35 isdn off
service              isdn stop
chkconfig --level 35 rhnsd off
service              rhnsd stop
chkconfig --level 35 sendmail off
service              sendmail stop
chkconfig --level 35 yum-updatesd off
service              yum-updatesd stop

chkconfig telnet on
3、配置yum

[root@m35-rhel58 ~]# cat /etc/yum.repos.d/rhel58.repo
[rhel58]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/rhel58-64/Server/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

4、安装vsftpd服务

yum -y install vsftpd

5、安装libXp模块

yum -y install libXp

6、配置oracle相应参数

#01.建立dba组
groupadd dba

#02.建立oracle用户
useradd -g dba oracle

#03.设立oracle密码:123456
passwd oracle --stdin << EOF
123456
EOF


#04.建立oracle10g目录和赋予权限
mkdir -p /opt/oracle/product/10g
chown -R oracle.dba /opt/oracle

#05.建立oracle的.bash_profile
cd /home/oracle

cat >> /home/oracle/.bash_profile << EOF

# These lines are added by JackZHANG in JOIN
#===========================================
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/10g
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export LD_LIBRARY_PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/network/lib:$ORACLE_HOME/precomp/public
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export CLASSPATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data


#export LANG=zh_CN
#export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

export SC_KEY=37901
export TI_KEY=37902
export GP_KEY=37903
export RB_KEY=37904
export JAPPHOME=/home/oracle
export JAPPNAME=oracle
#cd bin
#===========================================
EOF

#06.修改配置文件/etc/sysctl.conf (2G内存)
cat >> /etc/sysctl.conf << EOF

# These lines are added by JackZHANG in JOIN
#===========================================
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
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
#===========================================
EOF

sysctl -p

#07.修改/etc/security/limits.conf
cat >> /etc/security/limits.conf << EOF

# These lines are added by JackZHANG in JOIN
#===========================================
          soft     nproc           2047
          hard     nproc          16384
          soft     nofile          1024
          hard     nofile         65536
#===========================================
EOF

#08.修改/etc/pam.d/login
cat >> /etc/pam.d/login << EOF

# Added by Jackzhang for oracle 10g
#===================================================
session    required     /lib/security/pam_limits.so
#===================================================
EOF

mkdir -p /mnt/ora10g-64

mount -t iso9660 -o loop /soft/ora10g-64.iso /mnt/ora10g-64

 

/mnt/ora10g-64/database/runInstaller &

01.advanced install
02.enterprise edition
03.name:OraDb10g_home1
04.create a database
05.transaction processing
06.database character set:simplified chinese ZHS16GBK
07.file system
database file location:/opt/oracle/oradata/10g (为了可以同时安装11g该数据库)
08.use the same password for all the accounts:pass

 

安装到62%出现下列错误,当时总是分析是参数设置的问题,进行了如下调整,问题依旧:

Exception String: Error in invoking target 'client_sharedlib' of makefile '/opt/oracle/product/10g/network/lib/ins_net_client.mk'.

查看日志有下列奇怪的内容:

INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:

INFO: /opt/oracle/product/10g/bin/genclntsh

INFO: /
INFO: usr
INFO: /
INFO: bin
INFO: /
INFO: ld
INFO: :
INFO:
INFO: skipping
INFO:
INFO: incompatible
INFO:
INFO: /
INFO: opt
INFO: /
INFO: oracle
INFO: /
INFO: product
INFO: /
INFO: 10g
INFO: /
INFO: lib
INFO: /
INFO: libxml10.a
INFO:
INFO: when
INFO:
INFO: searching
INFO:
INFO: for
INFO:
INFO: -
INFO: lxml10
INFO:

INFO: /
INFO: usr
INFO: /
INFO: bin
INFO: /
INFO: ld
INFO: :
INFO:
INFO: cannot
INFO:
INFO: find
INFO:
INFO: -
INFO: lxml10
INFO:

INFO: collect2:
INFO: ld returned 1 exit status
INFO:

INFO: genclntsh: Failed to link libclntsh.so.10.1

(1)内存加大到2GB(oracle安装前的检查要求是922MB)

(2)LD_LIBRARY_PATH=/lib64:/usr/lib64:...

 

[root@m35-rhel58 Server]# getconf LONG_BIT
64

[root@m35-rhel58 lib]# readelf -h  libxml10.a  | grep -i class
  Class:                             ELF32

所有能做到的都做了,为什么还是不行呢?突然一个念头闪过,我昨天装了一台实体机

oracle没有问题,两台的机器的oracle的iso文件是不同名字,难道是 。。。。?

拷贝没有问题的iso文件到此机器上来,重新安装没有问题,用原来的iso,问题依旧,终于

问题得到解决。最后仔细检查加载的iso文件,发现原来加载的是32位的iso,所以如此!

rm -f /etc/oratab ; rm -f /etc/oraInst.loc ; rm -rf /opt/oracle/oraInventory ; rm -rf /usr/local/bin/oraenv ; rm -rf /usr/local/bin/dbhome ; rm -rf /usr/local/bin/coraenv ; rm -rf /opt/oracle/product/10g/* ; rm -rf /opt/oracle/oradata/* ;rm -rf /opt/oracle/admin; rm -rf /opt/oracle/flash_recovery_area

 

<!-- 正文结束 -->

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21974248/viewspace-1114440/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2009-06-25