ITPub博客

首页 > Linux操作系统 > Linux操作系统 > RHEL4-U6-x86_64-AS +oracle9i(9.2.0.4)x86_64问题及解决

RHEL4-U6-x86_64-AS +oracle9i(9.2.0.4)x86_64问题及解决

原创 Linux操作系统 作者:microsoft_fly 时间:2008-11-06 14:06:57 0 删除 编辑

引自:http://hi.baidu.com/fly%5Fch/blog/item/5c9ed10f5cd2da2d6159f361.html

在安装到88%和98%时候都会报错
Error in invoking target install_isqlplus of makefile /opt/oracle/product/9.2/sqlplus/lib/ins_sqlplus.mk和
Error in invoking target install of makefile /opt/oracle/product/9.2/rdbms/lib/ins_rdbms.mk
对于这2个问题:最好的办法是:
(1)装操作系统的时候,把所有的包都装上,以防出现不必要的麻烦;
(2)装好以后,要对gcc版本降频:
cd /usr/bin
mv /usr/bin/gcc /usr/bin/gcc.123
mv /usr/bin/g++ /usr/bin/g++.123
ln -s /usr/bin/x86_64-redhat-linux-gcc32 /usr/bin/gcc
ln -s /usr/bin/x86_64-redhat-linux-g++32 /usr/bin/g++
(3)如果系统没有装上所有的包,需要装的包有:
compat-gcc-32-3.2.3-47.3.x86_64.rpm
compat-gcc-32-c++-3.2.3-47.3.x86_64.rpm
compat-libstdc++-33-3.2.3-47.3.x86_64.rpm
compat-oracle-rhel4-1.0-5.i386.rpm
compat-libgcc-296-2.96-132.7.2.i386.rpm
compat-libstdc++-296-2.96-132.7.2.i386.rpm
glibc-devel-2.3.4-2.39.x86_64.rpm
libgcc-3.4.6-3.i386.rpm
libaio-devel-0.3.105-2.x86_64.rpm
libaio-0.3.105-2.x86_64.rpm libaio-0.3.105-2.i386.rpm
openmotif21-2.1.30-11.RHEL4.6.i386.rpm
注:a.本操作系统版本是:Linux 2.6.9-67.ELsmp x86_64
        b.在装以上包时,可能会出现少其他依赖包的现象,根据系统提示就可解决。
检查包的命令:
rpm -q --qf '%{NAME}-% {VERSION}-%{RELEASE} (%{ARCH})\n' \binutils compat-db control-center gcc gcc -c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio
(4)特别备注:
在出现Error in invoking target install_isqlplus of makefile /opt/oracle/product/9.2/sqlplus/lib/ins_sqlplus.mk和 Error in invoking target install of makefile /opt/oracle/product/9.2/rdbms/lib/ins_rdbms.mk 的问题中,我们看到安装日志中的说明:
/opt/oracle9/product/9.2.0/rdbms/lib32/defopt.o -lpls9 -lsql9 -lxsd9
/usr/bin/ld: crt1.o: No such file: 没有那个文件或目录
这个原因是:少了glibc-devel-2.3.4-2.25.i386.rpm 包,缺少crt1.o,跟刚才一样,就是不认64位的这个文件!
解决办法:rpm -Uvh xorg-x11-deprecated-libs-6.8.2-1.EL.13.36.i386.rpm
(5)安装失败后清理现场用过的语句:
rm /usr/local/bin/dbhome
rm /usr/local/bin/oraenv
rm /usr/local/bin/coraenv
rm /etc/oratab
rm /etc/oraInst.loc
rm -rf /opt/oracle9
重起机器
(6)
在上面安装了compat-gcc-32和compat-gcc-32-c++ 后才执行
cd /usr/bin/
mv gcc gcc.script.
mv g++ g++.script.
ln -s gcc32 gcc
ln -s g++32 g++

(7)几个有关内存的核心参数调整:
SQL> alter system set sga_max_size=8053063680 scope=spfile;--sga_max_size=7.5G

System altered.

SQL> shutdown immediate;
ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.

Total System Global Area 8055140728 bytes--sga_max_size=7.5G
Fixed Size 754040 bytes
Variable Size 1610612736 bytes
Database Buffers 6442450944 bytes
Redo Buffers 1323008 bytes
Database mounted.
SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

SQL> show sga;

Total System Global Area 8055140728 bytes
Fixed Size 754040 bytes
Variable Size 1610612736 bytes
Database Buffers 6442450944 bytes
Redo Buffers 1323008 bytes

SQL> alter system set db_cache_size=5g scope=both;--数据缓冲缓存(普通)为5G

System altered.

SQL> alter system set db_keep_cache_size=1610612736 scope=both;--常用对象的buffer长久keep在池

System altered.

SQL> alter system set shared_pool_size=570425344 scope=both;--共享池
System altered.

SQL> alter system set db_recycle_cache_size=200m scope=both;--回收池

System altered.

[oracle@ora3 lib]$ /usr/bin/make -f ins_sqlplus.mk install_isqlplus

ORACLE_HOME=/opt/oracle9/product/9.2.0
rm -f isqlplus
Linking isqlplus
rm -f isqlplus
make[1]: Entering directory `/opt/oracle9/product/9.2.0/sqlplus/lib'
gcc -m32 -o installisqlplus32 -

L/opt/oracle9/product/9.2.0/sqlplus//lib32/ -

L/opt/oracle9/product/9.2.0/lib32/ -

L/opt/oracle9/product/9.2.0/lib32/stubs/ -

L/opt/oracle9/product/9.2.0/Apache/fastcgi/

/opt/oracle9/product/9.2.0/sqlplus/lib32/safiimfg.o -lisqlplus -lsqlplus

-lfcgi -lclntsh `cat /opt/oracle9/product/9.2.0/lib32/ldflags`    -

lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat

/opt/oracle9/product/9.2.0/lib32/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9

-lnzjs9 -ln9 -lnl9 -lclient9 -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -lwtc9

-lmm -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9

`cat /opt/oracle9/product/9.2.0/lib32/ldflags`    -lnsslb9 -lncrypt9 -

lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat

/opt/oracle9/product/9.2.0/lib32/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9

-lnzjs9 -ln9 -lnl9 -lclient9 -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -

ltrace9 -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -

lnls9 -lclient9 -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -lnls9 -lcore9 -

lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9   `cat

/opt/oracle9/product/9.2.0/lib32/sysliblist` -Wl,-

rpath,/opt/oracle9/product/9.2.0/lib:/lib:/usr/lib -lm -lpthread   `cat

/opt/oracle9/product/9.2.0/lib32/sysliblist` -ldl -lm -lpthread

/opt/oracle9/product/9.2.0/rdbms/lib32/defopt.o -lpls9 -lsql9 -lxsd9
/usr/bin/ld: crt1.o: No such file: 没有那个文件或目录
collect2: ld returned 1 exit status
make[1]: *** [installisqlplus32] 错误 1
make[1]: Leaving directory `/opt/oracle9/product/9.2.0/sqlplus/lib'
make: *** [isqlplus] 错误 2
[oracle@ora3 lib]$ /usr/bin/make -f ins_sqlplus.mk install_isqlplus

ORACLE_HOME=/opt/oracle9/product/9.2.0
rm -f isqlplus
Linking isqlplus
rm -f isqlplus
make[1]: Entering directory `/opt/oracle9/product/9.2.0/sqlplus/lib'
gcc -m32 -o installisqlplus32 -

L/opt/oracle9/product/9.2.0/sqlplus//lib32/ -

L/opt/oracle9/product/9.2.0/lib32/ -

L/opt/oracle9/product/9.2.0/lib32/stubs/ -

L/opt/oracle9/product/9.2.0/Apache/fastcgi/

/opt/oracle9/product/9.2.0/sqlplus/lib32/safiimfg.o -lisqlplus -lsqlplus

-lfcgi -lclntsh `cat /opt/oracle9/product/9.2.0/lib32/ldflags`    -

lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat

/opt/oracle9/product/9.2.0/lib32/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9

-lnzjs9 -ln9 -lnl9 -lclient9 -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -lwtc9

-lmm -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9

`cat /opt/oracle9/product/9.2.0/lib32/ldflags`    -lnsslb9 -lncrypt9 -

lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat

/opt/oracle9/product/9.2.0/lib32/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9

-lnzjs9 -ln9 -lnl9 -lclient9 -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -

ltrace9 -lnls9 -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -

lnls9 -lclient9 -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -lnls9 -lcore9 -

lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9   `cat

/opt/oracle9/product/9.2.0/lib32/sysliblist` -Wl,-

rpath,/opt/oracle9/product/9.2.0/lib:/lib:/usr/lib -lm -lpthread   `cat

/opt/oracle9/product/9.2.0/lib32/sysliblist` -ldl -lm -lpthread

/opt/oracle9/product/9.2.0/rdbms/lib32/defopt.o -lpls9 -lsql9 -lxsd9
mv -f installisqlplus32 isqlplus
make[1]: Leaving directory `/opt/oracle9/product/9.2.0/sqlplus/lib'
mv -f /opt/oracle9/product/9.2.0/bin/isqlplus

/opt/oracle9/product/9.2.0/bin/isqlplusO
mv -f /opt/oracle9/product/9.2.0/sqlplus/lib/isqlplus

/opt/oracle9/product/9.2.0/bin/isqlplus
/bin/chmod 751 /opt/oracle9/product/9.2.0/bin/isqlplus
[root@ora3 tools]# rpm -Uvh glibc-devel-2.3.4-2.39.i386.rpm
警告:glibc-devel-2.3.4-2.39.i386.rpm: V3 DSA 赫拢篘OKEY, key ID db42a60e
输中...                   ###########################################

[100%]
   1:glibc-devel            ###########################################

[100%]
[root@ora3 tools]# rpm -Uvh glibc-devel-2.3.4-2.39.x86_64.rpm
警告:glibc-devel-2.3.4-2.39.x86_64.rpm: V3 DSA 赫拢篘OKEY, key ID

db42a60e
输中...                   ###########################################

[100%]
        已讲裝 glibc-devel-2.3.4-2.39 套件

/usr/bin/make -f ins_rdbms.mk install

ORACLE_HOME=/opt/oracle9/product/9.2.0
chmod 755 /opt/oracle9/product/9.2.0/bin
rm -f oracle mig dbv tstshm maxmem orapwd dbfsize cursize genoci extproc

extproc32 hsalloci hsots hsdepxa dgmgrl dumpsga mapsga osh sbttest imp

exp sqlldr rman            avmurout avmping avligmsg avmumon nid

/opt/oracle9/product/9.2.0/rdbms/lib/ksms.s

/opt/oracle9/product/9.2.0/rdbms/lib/ksms.o

- Linking Oracle
rm -f /opt/oracle9/product/9.2.0/rdbms/lib/oracle
gcc -o /opt/oracle9/product/9.2.0/rdbms/lib/oracle -

L/opt/oracle9/product/9.2.0/rdbms/lib/ -

L/opt/oracle9/product/9.2.0/lib/ -

L/opt/oracle9/product/9.2.0/lib/stubs/   -Wl,-E `test -f

/opt/oracle9/product/9.2.0/rdbms/lib/skgaioi.o && echo

/opt/oracle9/product/9.2.0/rdbms/lib/skgaioi.o`

/opt/oracle9/product/9.2.0/rdbms/lib/opimai.o

/opt/oracle9/product/9.2.0/rdbms/lib/ssoraed.o

/opt/oracle9/product/9.2.0/rdbms/lib/ttcsoi.o

/opt/oracle9/product/9.2.0/lib/nautab.o

/opt/oracle9/product/9.2.0/lib/naeet.o

/opt/oracle9/product/9.2.0/lib/naect.o

/opt/oracle9/product/9.2.0/lib/naedhs.o

/opt/oracle9/product/9.2.0/rdbms/lib/config.o -lserver9 -lodm9 -lskgxp9

-lskgxn9 -lclient9 -lvsn9 -lwtcserver9 -lcommon9 -lgeneric9

/opt/oracle9/product/9.2.0/rdbms/lib/defopt.o -lknlopt `if /usr/bin/ar

tv /opt/oracle9/product/9.2.0/rdbms/lib/libknlopt.a | grep xsyeolap.o >

 

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

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

注册时间:2008-11-06

  • 博文量
    41
  • 访问量
    101536