截止到目前,还没有传出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软件
不要用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
MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

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

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

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

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.

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.

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

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.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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
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
Visual web development tools

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
Useful JavaScript development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment
