下面罗列了Redhat Linux Enterprise6.4 + Oracle 10g安装碰到的各种问题,基本上可以一站搞定。
绝对一手资料。
一、安装gcc包
使用单个包的方式安装功能包,简直是个噩梦,依赖的包太多,仅列举了一部分,建议用yum方式安装。
1、顺序安装:
rpm -ivh libXau-1.0.6-4.el6.i686.rpm
rpm -ivh libxcb-1.8.1-1.el6.i686.rpm
rpm -ivh libX11-1.5.0-4.el6.i686.rpm
rpm -ivh libXext-1.3.1-2.el6.i686.rpm
rpm -ivh libXp-1.0.0-15.1.el6.i686.rpm
rpm -ivh libICE-1.0.6-1.el6.i686.rpm
rpm -ivh libuuid-2.17.2-12.9.el6.i686.rpm
rpm -ivh libSM-1.2.1-2.el6.i686.rpm
rpm -ivh libXt-1.1.3-1.el6.i686.rpm
rpm -ivh libXi-1.6.1-3.el6.i686.rpm
rpm -ivh libXtst-1.2.1-2.el6.i686.rpm
2、xterm
rpm -ivh libXmu-1.1.1-2.el6.i686.rpm
rpm -ivh libXpm-3.5.10-2.el6.i686.rpm
#rpm -ivh libXaw-1.0.11-2.el6.i686.rpm
rpm -ivh libXaw-1.0.11-2.el6.x86_64.rpm
rpm -ivh xterm-253-1.el6.x86_64.rpm
Xmanager连接不上时,考虑安装xterm。
3、安装gcc
rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
#rpm -ivh libmpcdec-1.2.6-6.1.el6.x86_64.rpm
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh cpp-4.4.7-3.el6.x86_64.rpm
#安装cpp成功
rpm -ivh kernel-headers-2.6.32-358.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.107.el6.x86_64.rpm
#安装glibc-headers成功
rpm -ivh glibc-devel-2.12-1.107.el6.x86_64.rpm
rpm -ivh gcc-4.4.7-3.el6.x86_64.rpm
4、gcc-3.2 found not found,试探
rpm -ivh gc-7.1-10.el6.x86_64.rpm
rpm -ivh libstdc++-devel-4.4.7-3.el6.x86_64.rpm
rpm -ivh gcc-c++-4.4.7-3.el6.x86_64.rpm
#安装gcc-c++成功
rpm -ivh libgcj-4.4.7-3.el6.x86_64.rpm
rpm -ivh zlib-1.2.3-29.el6.x86_64.rpm
rpm -ivh zlib-devel-1.2.3-29.el6.x86_64.rpm
rpm -ivh libgcj-devel-4.4.7-3.el6.x86_64.rpm
rpm -ivh libgcj-4.4.7-3.el6.x86_64.rpm
rpm -ivh libgcj-src-4.4.7-3.el6.x86_64.rpm
rpm -ivh sinjdoc-0.5-9.1.el6.x86_64.rpm java_cup-0.10k-5.el6.x86_64.rpm java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64.rpm
不全,不建议单个包安装,自己找依赖。
二、使用yum 安装
1、锚定安装ISO文件到/mnt
mount -o loop /opt/linux/RHEL_6.4_x86_64.iso /mnt
2、创建yum配置文件
cd /etc/cd yum.repos.d
vi cdrom.repo
输入内容:
[cdrom]
name=cdrom
baseurl=file:///mnt/
enabled=1
gpgcheck=0
3、安装gcc
yum install gcc
4、安装gcc-java
yum install gcc-java
5、查看可安装组
yum grouplist
查看网络配置: cat /etc/sysconfig/network-scripts/ifcfg-eth0
主机名设置:vi /etc/sysconfig/network
三、Error in invoking target 'install' of makefile ...lib/ins_ctx.mk
#解决:安装32为glibc-devel包
#yum install glibc-devel.i686
解决:
yum install glibc* gcc* make* compat-db* libsdc* libXp* libXtst* compat-libstdc++* -y
四、Error in invoking target 'collector' of makefile ...ins_emdb.mk
解决:先查找relink命令,然后执行:
/home/oracle/product/bin/relink all
五、ORA-12162: TNS:net service name is incorrectly specified
解决:设置ORACLE_SID
export ORACLE_SID=orcl
六、SQLPLUS 能连接,远程客户端连接不上
解决:关闭Linux防火墙
chkconfig iptables off
service iptables stop
或者开放端口1521
1、vi /etc/sysconfig/iptables,添加:
-A INPUT -p tcp --dport 1521 -j ACCEPT
COMMIT
2、重启防火墙
service iptables restart
iptables -F
七、图形乱码
解决:先设置LC_CTYPE
locale
export LC_CTYPE=en_US.UTF-8