写的比较粗糙,凑合着看吧!linux下oracle比较繁琐!^0^
一.Redhat7.2 操作系统的安装:
二.Mysql源码的安装: >groupadd mysql >useradd –g mysql mysql >tar –zxvfmysql-VERSION.tar.gz >cdmysql-VERSION >./configure --divfix=/usr./local/mysql >make >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 & 三.Oracle8.1.7的安装: 1.安装以下软件包: 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 (在redhat 安装碟Disk1和 Disk2 中有以上软件包) 2.安装jdk118_v3-glibc-2.1.3.tar.bz2 bunzip2 jdk118_v3-glibc-2.1.3.tar.bz2 tar –xvfjdk_v3-glibc-2.1.3.tar ln –s jdk118_v3java 3.准备用户环境 Groupaddoinstall Groupadddba Groupaddoper Useradd oracle –g oinstall –G dba,oper 4.创建安装目录: mkdir /oracle chown oracle.dba/oracle chmod 775 /oracle 5.设置环境变量: 在 /etc/profile文件中添加以下内容: 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_PATH=/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 查看环境变量: . /etc/profile env |
关键词: linux下安装oracle与php环境