Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install Oracle11gR2_64 on OL6.5_64

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Install Oracle11gR2_641 in Oracle Linux6.5, modify selinuxvi/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-change to disabled# SELINUXTYPE= cantake one of these two values:# targeted-Targeted processes areprotected,# mls-Multi Level Security protection.SELINUXTYPE=targeted 2, close iptables1) permanently It will not be enabled again after restart: chkconfigiptables on is disabled: chkconfigiptables off 2) immediately, restart is enabled: serviceiptables start is closed: serviceiptables stop status: serviceiptables status Note: for other services under Linux, you can use the above fame and wealth to open and close. When the firewall is enabled, make the following settings, open the relevant port, and modify the / etc/sysconfig/iptables document Add:-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) View firewall status # chkconfigiptables-list 3, Install 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.5isobaseurl= file:///media/cdromenabled=1gpgcheck=0 # yum clean all#yum list oracle-rdbms-server-11gR2-preinstall.x86_64 # # Uninstall yum Source # umount/media/cdrom#eject/dev/cdrom 4, Install oracle dependency package # yum-y install oracle-rdbms-server-11gR2-preinstall.x86_64 5, set up DISPLAY#exportDISPLAY=your_address.0:0 6, extract the installation package of oracle management software # mkdir / s01#chownoracle:oinstall / s0packages # copy the Oracle installation package to # unzipp13390677_112040_LINUX_1of7.zip#unzipp13390677_112040_LINUX_2of7.zip 7 under / S01, switch to the oracle user image interface to start installing oracle#cd/s01/database#./runInstaller 8, Problem solving operating system: Linux3.8.13-16.2.1.el6uek.x86_64 # 1 SMP Thu Nov 7 17:01:44 PST 2013 x86x64x86 _ 64x86_64 GNU/Linux [Question1] ([Q1]) / lib/ld-linux.so.2: bad ELF interpreter:No such file or directory [cause] 64bit's Linux operating system Applications that cannot run 32bit [solution] need to install 32bit's glibc library # yum installglibc*.i686 [check] the following statement to see if # rpm-qf/lib/ld-linux.so.2 [Q2] libXext.so.6:cannot open shared object file has been successfully installed [reason] when 64-bit centos installs 64-bit oracle, sometimes there will be a "libXext.so.6:cannot open shared object file:" error. The main reason is that oracle needs to install some 32-bit lib when it is installed. That is, similar to dll [solution] # yum install-ylibXext.i686 9 under windows, * .i686 # su-root#yum-yinstall * .i686 10 that needs to be installed during installation, switch to root user and execute two scripts # 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 solution environment variables have been configured But still reported an error: # vi .bash _ profile # .bash _ profile # Get the aliasesand functionsif [- f ~ / .bashrc] Then. ~ / .bashrcfi # User specificenvironment and startup programs PATH=$PATH:$HOME/bin#AddORACLE_SID, ORACLE_BASE ORACLE_HOME AND PATHexportPATHunsetUSERNAMEexportEDITOR = viexportORACLE_SID = orclexport ORACLE_BASE = / u01/app/oracleexportORACLE_HOME = $ORACLE_BASE/product/11.2.0/dbhome_1/export PATH = $PATH:/u01/app/oracle/product/11.2.0/dbhome_1/binumask 022 [solution] # su-root# ln-s / u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus / usr/bin# su-oracle$sqlplus/nologSQL > conn / as sysdbaConnected to an idleinstance. SQL > startup ORACLEinstance started. Database mounted.Databaseopened.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report