一、在Oracle Linux6.5安装Oracle11gR2_64 1、修改selinux vi/etc/selinux/config This file controlsthe state of SELinux on the system. # SELINUX= can takeone of these three values: # enforcing - SELinux security policy isenforced. # permissive - SELinux prints warningsinstead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled --修改为disabled # SELINUXTYPE= cantake one of these two values: # targeted - Targeted processes areprotected, # mls - Multi Level Security protection. SELINUXTYPE=targeted 2、关闭iptables 1)永久性生效,重启后不会复原 开启:chkconfigiptables on 关闭:chkconfigiptables off 2)即时生效,重启复原 开启:serviceiptables start 关闭:serviceiptables stop 状态:serviceiptables status 注:对于Linux下的其他服都可以用以上名利执行开启和关闭操作。 在开启了防火墙是,作如下设置,开启相关端口,修改/etc/sysconfig/iptables文档,添加: -ARH-Firewall -l -INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -ARH-Firewall -l -INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT 3)查看防火墙状态 #chkconfigiptables --list 3、安装yum #mkdir/media/cdrom #mount/dev/cdrom /media/cdrom #rm-rf /etc/yum.repos.d/*.repo #vi/etc/yum.repos.d/OL6.5iso.repo [OL6.5iso] name=OL6.5iso baseurl=file:///media/cdrom enabled=1 gpgcheck=0 #yum clean all #yum list oracle-rdbms-server-11gR2-preinstall.x86_64 ##卸载yum 源 #umount/media/cdrom #eject/dev/cdrom 4、安装oracle 依赖包 #yum -y install oracle-rdbms-server-11gR2-preinstall.x86_64 5、设置DISPLAY #exportDISPLAY=your_address.0:0 6、解压oracle管理软件的安装包 #mkdir /s01 #chownoracle:oinstall /s01 # #将Oracle安装包拷贝到/s01下 #unzipp13390677_112040_LINUX_1of7.zip #unzipp13390677_112040_LINUX_2of7.zip 7、切换到oracle 用户图像界面 开始安装oracle #cd/s01/database #./runInstaller 8、解决问题 操作系统:Linux3.8.13-16.2.1.el6uek.x86_64 #1 SMP Thu Nov 7 17:01:44 PST 2013 x86_64 x86_64x86_64 GNU/Linux 【Question1】(简称【Q1】)/lib/ld-linux.so.2: bad ELF interpreter:No such file or directory 【原因】64bit的Linux操作系统,无法运行32bit的应用程序 【解决办法】需要安装32bit的glibc库 #yum installglibc*.i686 【检查】下面语句查看是否成功安装了 #rpm -qf/lib/ld-linux.so.2 【Q2】libXext.so.6:cannot open shared object file 【原因】在64位的centos安装64位的oracle的时候,有时候会出现“libXext.so.6: cannot open shared object file:”的错误。 这个原因主要是oracle在安装的时候需要安装一些32位的lib,也就是类似于windows下的dll 【解决方法】 #yum install -ylibXext.i686 9、在安装过程中出现需要安装的*.i686 #su - root #yum -yinstall *.i686 10、切换到root用户下执行两个脚本 #su -root #./home/oracle/app/oraInventory/orainstRoot.sh #./home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh 11、bash: sqlplus: command not found 解决方法 环境变量已经配好,但是仍报错: # vi .bash_profile # .bash_profile # Get the aliasesand functions if [ -f ~/.bashrc ];then . ~/.bashrc fi # User specificenvironment and startup programs PATH=$PATH:$HOME/bin #AddORACLE_SID ,ORACLE_BASE,ORACLE_HOME AND PATH exportPATH unsetUSERNAME exportEDITOR = vi exportORACLE_SID = orcl export ORACLE_BASE = /u01/app/oracle exportORACLE_HOME = $ORACLE_BASE/product/11.2.0/dbhome_1/ export PATH = $PATH:/u01/app/oracle/product/11.2.0/dbhome_1/bin umask 022 【解决方法】 # su -root # ln -s /u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus /usr/bin # su - oracle $sqlplus/nolog SQL>conn / as sysdba Connected to an idleinstance. SQL>startup ORACLEinstance started. …… Database mounted. Databaseopened.
时间: 2024-12-21 21:55:26