search
HomeDatabaseMysql Tutorial在RHEL 6(x86)上安装Oracle 10g R2

截止到目前,还没有传出Oracle 10g/11g在RHEL 6上认证的消息,也就是说还不建议大家在RHEL 6的生产环境中使用Oracle 10g/11g。不

截止到目前,还没有传出Oracle 10g/11g在RHEL 6上认证的消息,也就是说还不建议大家在RHEL 6的生产环境中使用Oracle 10g/11g。不过最近看到有些朋友问在最新发布的CentOS 6上如何安装Oracle 10g,需要做测试用,而且安装过程中出现了一些问题,所以51CTO编辑决定收集一下这方面的资源,以供参考。

理论上,CentOS 6上的操作方式应该和RHEL 6一样,软件源方面大家自己想办法解决吧,Linuxidc.com之前也收集过一些RHEL 6的yum源方面的信息,可以做个参考。

如何在RHEL 6上安装Oracle 10g R2(x86)

预备工作

RHEL 6.0的服务器

类型 描述 版本 文件名称 下载站点

DB Oracle 10g R2 10.2.0.1.0 10201_database_linux32.zip oracle.com

DB Oracle 10g R2 Companion CD 10.2.0.1.0 10201_companion_linux32.zip oracle.com

DB Oracle 10g R2 patch-set 10.2.0.4.0 p6810189_10204_Linux-x86.zip support.oracle.com

TOOLS oraToolKit 1.0.2.1.5 oratoolkit-1.0.2.1.5-1.noarch.rpm sourceforge.net

OS Red Hat Enterprise Linux 6.0 rhel-server-6.0-i386-dvd.iso redhat.com

安装步骤:

安装Korn Shell和oraToolKit

# su - root # mount /dev/cdrom /mnt; # rpm -ivh /mnt/Server/Packages/ksh-20100621-2.el6.i686.rpm # cd /var/tmp/oracle # ls -1 oratool* oratoolkit-1.0.2.1.5-1.noarch.rpm # rpm -ivh oratoolkit-1.0.2.1.5-1.noarch.rpm

设置用户oracle的密码

# passwd oracle

检查安装包依赖性

# /opt/oracle/otk/current/bin/installManager swReqCheck osSetup10gR2.cfg

如果有缺少什么就补上,,补完了再运行一次,直到没有警告了再继续下一步。

下面是从DVD补完依赖性的参考操作:

# cd /mnt/Server/Packages/ # rpm -ivh libstdc++-devel-4.4.4-13.el6.i686.rpm \ kernel-headers-2.6.32-71.el6.i686.rpm \ glibc-headers-2.12-1.7.el6.i686.rpm \ glibc-devel-2.12-1.7.el6.i686.rpm \ gnome-icon-theme-2.28.0-2.el6.noarch.rpm \ dmz-cursor-themes-0.4-4.el6.noarch.rpm \ sgml-common-0.6.3-32.el6.noarch.rpm \ libaio-devel-0.3.107-10.el6.i686.rpm \ ncurses-devel-5.7-3.20090208.el6.i686.rpm \ elfutils-libelf-devel-0.148-1.el6.i686.rpm \ compat-gcc-34-3.4.6-19.el6.i686.rpm \ libXxf86misc-1.0.2-1.el6.i686.rpm \ libXxf86vm-1.1.0-1.el6.i686.rpm \ libXt-1.0.7-1.el6.i686.rpm \ libXmu-1.0.5-1.el6.i686.rpm \ mpfr-2.4.1-6.el6.i686.rpm \ cpp-4.4.4-13.el6.i686.rpm \ xorg-x11-xauth-1.0.2-7.1.el6.i686.rpm \ compat-gcc-34-c++-3.4.6-19.el6.i686.rpm \ libdaemon-0.14-1.el6.i686.rpm \ avahi-0.6.25-8.el6.i686.rpm \ avahi-glib-0.6.25-8.el6.i686.rpm \ shared-mime-info-0.70-4.el6.i686.rpm \ libIDL-0.8.13-2.1.el6.i686.rpm \ ORBit2-2.14.17-3.1.el6.i686.rpm \ GConf2-2.28.0-6.el6.i686.rpm \ gnome-vfs2-2.24.2-6.el6.i686.rpm \ libbonobo-2.24.2-4.el6.i686.rpm \ libtool-ltdl-2.2.6-15.5.el6.i686.rpm \ unixODBC-2.2.14-11.el6.i686.rpm \ gtk2-engines-2.18.4-5.el6.i686.rpm \ libmcpp-2.7.2-4.1.el6.i686.rpm \ mcpp-2.7.2-4.1.el6.i686.rpm \ xorg-x11-server-utils-7.4-15.el6.i686.rpm \ libXv-1.0.5-1.el6.i686.rpm \ ConsoleKit-x11-0.4.1-3.el6.i686.rpm \ xorg-x11-xinit-1.0.9-13.el6.i686.rpm \ libXp-1.0.0-15.1.el6.i686.rpm \ libXxf86dga-1.1.1-1.el6.i686.rpm \ libdmx-1.1.0-1.el6.i686.rpm \ xorg-x11-utils-7.4-8.el6.i686.rpm \ compat-db43-4.3.29-15.el6.i686.rpm \ compat-db42-4.2.52-15.el6.i686.rpm \ ppl-0.10.2-11.el6.i686.rpm \ cloog-ppl-0.15.7-1.2.el6.i686.rpm \ gcc-4.4.4-13.el6.i686.rpm \ gcc-c++-4.4.4-13.el6.i686.rpm \ compat-libstdc++-33-3.2.3-69.el6.i686.rpm \ compat-db-4.6.21-15.el6.i686.rpm \ gnome-themes-2.28.1-6.el6.noarch.rpm \ system-icon-theme-6.0.0-2.el6.noarch.rpm \ system-gnome-theme-60.0.2-1.el6.noarch.rpm \ unixODBC-devel-2.2.14-11.el6.i686.rpm \ readline-devel-6.0-3.el6.i686.rpm \ libgnome-2.28.0-11.el6.i686.rpm # cd /; umount /mnt; eject # /opt/oracle/otk/current/bin/installManager swReqCheck osSetup10gR2.cfg

如果要使用增强的sql*plus……

# cd /opt/oracle/otk/current/tools/rlwrap/ # ./configure # make # make install # /usr/local/bin/rlwrap -v

执行installManager的osSetup

这一步用来设置内核参数、创建路径、文件所有者和其他一些参数设置。如果想进行默认安装那就啥都别动。

# cd /opt/oracle/otk/current/conf/installManager/ # vi osSetup10gR2.cfg # sdiff -s osSetup10gR2.cfg sample/osSetup10gR2.cfg # /opt/oracle/otk/current/bin/installManager osSetup osSetup10gR2.cfg

将Oracle软件移入软件源

Oracle软件就是上面你下载下来的那个。

# cd /var/tmp/oracle # chown oracle:oinstall * # mv 10201_database_linux32.zip 10201_companion_linux32.zip p6810189_10204_Linux-x86.zip /var/opt/oracle/repository/

以oracle身份登录,对PS1变量进行设置

# su - oracle ------------------------------------------------------ oraToolKit 1.0 environment variables ------------------------------------------------------ Installation directory : /opt/oracle/otk Release : 1.0.2.1.5 $RUN directory : /opt/oracle/otk/1.0/bin $LOG_BASE directory : /var/opt/oracle/otk/1.0/log ------------------------------------------------------ :oracle@stquist1p:sidNotSet$ grep ^SITE .profile.custom.interactive SITE="" :oracle@stquist1p:sidNotSet$ vi .profile.custom.interactive :oracle@stquist1p:sidNotSet$ grep ^SITE .profile.custom.interactive SITE="Quist-LU" :oracle@stquist1p:sidNotSet$ exit # su - oracle Quist-LU:oracle@stquist1p:sidNotSet$

安装Oracle软件

不要用OUI安装,否则你要坐在电脑前面点鼠标。使用swlnst让它自动运行吧。

$ bash $ cd $INSTALL_CONF $ cp sample/swInstEeSrv10gR2-Step[123]-linux-x86.cfg . $ installManager swInst swInstEeSrv10gR2-Step1-linux-x86.cfg $ su - # /opt/oracle/eesrv/10.2.0/db1/root.sh # exit $ installManager swInst swInstEeSrv10gR2-Step2-linux-x86.cfg $ installManager swInst swInstEeSrv10gR2-Step3-linux-x86.cfg $ su - # /opt/oracle/eesrv/10.2.0/db1/root.sh # exit

linux

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
MySQL: BLOB and other no-sql storage, what are the differences?MySQL: BLOB and other no-sql storage, what are the differences?May 13, 2025 am 12:14 AM

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

MySQL Add User: Syntax, Options, and Security Best PracticesMySQL Add User: Syntax, Options, and Security Best PracticesMay 13, 2025 am 12:12 AM

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

MySQL: How to avoid String Data Types common mistakes?MySQL: How to avoid String Data Types common mistakes?May 13, 2025 am 12:09 AM

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters

MySQL: String Data Types and ENUMs?MySQL: String Data Types and ENUMs?May 13, 2025 am 12:05 AM

MySQloffersechar, Varchar, text, Anddenumforstringdata.usecharforfixed-Lengthstrings, VarcharerForvariable-Length, text forlarger text, AndenumforenforcingdataAntegritywithaetofvalues.

MySQL BLOB: how to optimize BLOBs requestsMySQL BLOB: how to optimize BLOBs requestsMay 13, 2025 am 12:03 AM

Optimizing MySQLBLOB requests can be done through the following strategies: 1. Reduce the frequency of BLOB query, use independent requests or delay loading; 2. Select the appropriate BLOB type (such as TINYBLOB); 3. Separate the BLOB data into separate tables; 4. Compress the BLOB data at the application layer; 5. Index the BLOB metadata. These methods can effectively improve performance by combining monitoring, caching and data sharding in actual applications.

Adding Users to MySQL: The Complete TutorialAdding Users to MySQL: The Complete TutorialMay 12, 2025 am 12:14 AM

Mastering the method of adding MySQL users is crucial for database administrators and developers because it ensures the security and access control of the database. 1) Create a new user using the CREATEUSER command, 2) Assign permissions through the GRANT command, 3) Use FLUSHPRIVILEGES to ensure permissions take effect, 4) Regularly audit and clean user accounts to maintain performance and security.

Mastering MySQL String Data Types: VARCHAR vs. TEXT vs. CHARMastering MySQL String Data Types: VARCHAR vs. TEXT vs. CHARMay 12, 2025 am 12:12 AM

ChooseCHARforfixed-lengthdata,VARCHARforvariable-lengthdata,andTEXTforlargetextfields.1)CHARisefficientforconsistent-lengthdatalikecodes.2)VARCHARsuitsvariable-lengthdatalikenames,balancingflexibilityandperformance.3)TEXTisidealforlargetextslikeartic

MySQL: String Data Types and Indexing: Best PracticesMySQL: String Data Types and Indexing: Best PracticesMay 12, 2025 am 12:11 AM

Best practices for handling string data types and indexes in MySQL include: 1) Selecting the appropriate string type, such as CHAR for fixed length, VARCHAR for variable length, and TEXT for large text; 2) Be cautious in indexing, avoid over-indexing, and create indexes for common queries; 3) Use prefix indexes and full-text indexes to optimize long string searches; 4) Regularly monitor and optimize indexes to keep indexes small and efficient. Through these methods, we can balance read and write performance and improve database efficiency.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment