The writing is rough. Let's take a look! Oracle in linux is complicated! ^ 0 ^ 1. redhat7.2 operating system installation: 2. mysql source code installation:> groupadd mysql> useradd-g mysql> tar-zxvf mysql-VERSION.tar.gz> cd mysql-VERSION>. /configure -- prefix =/usr. /local/mysql> make install> chown-R root/usr/local/mysql> chown-R mysql/usr/local/mysql/var> chgrp-R mysql/usr /local/mysql> cp support-files/my-medium.cnf/etc/my. cnf> cd/usr/local/mysql/bin>. /safe_mysqld -- user = mysql & 3. oracle8.1. 7 installation: 1. install the following package: compat-libstdc ++-6.2-2.9.0.16 compat-glibc-6.2-2.1.3.2 compat-egcs-c ++-6.2-1.1.2.16 compat-libs-6.2-3 compat-egcs-6.2-1.1.2.16 compat-egcs-objc-6.2-1.1.2.16 (with the above package in redhat install Disk1 and Disk2) 2. install jdk118_v3-glibc-2.1.3.tar.bz2 bunzip2 jdk118_v3-glibc-2.1.3.tar.bz2 tar-xvf jdk_v3-glibc-2.1.3.tar ln-s jdk118_v3 java 3. prepare the user environment Groupadd oinstall Groupadd dba Groupadd external Useradd or Acle-g oinstall-G dba, role 4. create the installation directory mkdir/oracle chown oracle. dba/oracle chmod 775/oracle 5. set environment variables: Add the following content to the/etc/profile file: OARCLE_BASE =/oracle/app/oracle ORACLE_HOME =/oracle/app/oracle/product/8.1.7 ORALCE_SID = orcl ORA_NLS =/oracle/app/oracle/product/8.1.7/ocommon/nls/ admin/data ORA_LANG = "simplified chinese" CLASSPATH =. :/oracle/app/oracle/product/8.1.7/jdbc/lib/classes111.zip LD_LIBRARY_P ATH =/oracle/app/oracle/product/8.1.7/lib PATH = $ PATH: $ OACLE_HOME/BIN: $ ORACLE_HOME/dbs: /etc Export ORACLE_BASE ORALCE_HOME ORACLE_SID ORA_NLS NLS_LANG LD_IBRARY check the environment variable :. /etc/profile env | grep oracle check whether the oracle settings are correct in/home/oracle /. add the following content to the bash_profile file :. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh export LD_ASSUME_KERNEL = 2.2.5. /home/oracle /. bash_profile gcc-v to check whether it has been replaced. 6. log on to the oracle user to install the agent:> su root> tar-xvf linux1701.tar> cd Disk1>./runInstaller. When you click next, a window will pop up prompting you to run orainstRoot. sh> su> cd $ ORACHE_HOME>. /orainsRoot. sh to continue installation and the pop-up dialog box requires to run root. sh> cd $ ORACLE_HOME>. /root. sh exit installation is complete, make an oracle patch> cp glibc-2.1.3-stubs.tar.gz $ ORACLE_HOME> tar-zxvf glibcs-2.1.3-stubs.tar.gz>. /setup_stubs.sh start oracle> svrmgrl> connect internal> startup> quit start listening window:> lsnrctl> start> quit 4. install Apache php> tar-zxvf apache_1.3.26.tar.gz> tar-zxvf php_4.1.2.ta R.gz> cd apache_1.3.26>. /configure -- prefix =/usr/local/apace> cd .. /php-4.1.2>. /configure -- with-mysql-with-apache =/usr/local/apache_1.3.26 -- with-oci8 =/oracle/app/oracle/product/8.1.7-with-oracle =/oracle/app/ oracle/product/8.1.7 -- enable-track-vars> make install> cp php. ini-dist/usr/local/lib/php. ini> cd .. /apache_1.3.26>. /configure -- activate-module = src/modules/php4/libphp4.a> make> Make install start apache>/usr/local/apache/bin/apachectl start 5. configure apache and php> cd/usr/local/apache/conf> vi httpd. set conf to the desired path.> Cd/usr/local/lib> vi php. ini: configure the oracle startup module.