search
HomeDatabaseMysql Tutorial在Oracle Linux 4u4上安装Oracle 10.2.0.1.0过程笔记

练习Oracle的RAC组建过程,第一步,先练习Oracle Linux 4u4上安装Oracle 10.2.0.1.0。直接安装RAC,有些难度。从简单的做起。总R

练习Oracle的RAC组建过程,第一步,先练习Oracle Linux 4u4上安装Oracle 10.2.0.1.0。直接安装RAC,有些难度。从简单的做起。总RAC步骤,参照小布老师的RAC组建。

1. 启动vc,登陆vsphere 5.1 ,

2. 新建一个虚拟机,RedHat 4 32bit 兼容的虚拟机,内存1G,硬盘30G。移除软驱,把光驱选择为ISO镜像文件。

3. 启动虚拟机,选择英文,选择美式键盘,选择custom,,选择自己手动分区。分区为2个,一个swap,2100M,强制主分区,另一个为ext3,全部其他可用空间。

4. 网络配置,取消DHCP, IP设置为 192.168.7.140,Netmask为 255.255.255.0,Gateway为192.168.7.166,DNS为114.114.114.114。

5. No firewall,Selinux为激活状态。

6. default language 为 英文USA,同时点选 chinese RPC。,为了以后的更稳定性,选择英文为首选语言。

7. 时区选择 上海,使用UTC时钟。

8. 设置密码,admin123

9. 选择软件

  a.点选 Application 之 Editors。

  b.点选 Development 之 Development Tools

  c.点选 System Tools 之 sysstat

10. Next,开始安装,依次按照提示插入2.3张盘。

11. 按照完毕后,在安装oracle时,会提示缺少libaio文件,在所有选择的这些包中,我检查了2边,没有发现libaio文件的所在父层,在之后的安装完毕后,从第三张盘上,有libaio文件, 这个文件是用来异步io读写的。

12. 第一次初始化linux登陆,分辨率为 800x600,在建立System User时,选择不。进入linux,这时提示的安装附加盘,跳过,此处是无法安装libaio的。

13. 安装libaio文件,,在第三张盘,mount /dev/hdc  /cdrom  ,rpm -ivh libaio-0.3.105.rpm

14. 安装vmware-tools,增强虚拟机工具。解压后,在 vmware-tools-distrib 目录下,#./vmware-install.pl ,一路拍回车,默认安装即可。分辨率选择 800x600的。再次修改配置,在install目录中有。

15. 运行,Pietty文件,root远程登录

16. 在linux上,进行配置修改环境

修改控制文件

vim /etc/sysctl.conf

 1 kernel.shmmax = 536870912
 2 kernel.shmmni = 8192
 3 kernel.sem =250 32000 100 128
 4 fs.file-max = 6815744
 5 net.ipv4.ip_local_port_range = 1024  65000
 6 net.core.rmem_default = 4194304
 7 net.core.rmem_max = 4194304
 8 net.core.wmem_default = 262144
 9 net.core.wmem_max = 1048576
10 fs.aio-max-nr = 1048576

 

 修改许可文件,

vim /etc/security/limits.conf

oracle  soft  nproc  2047
oracle  hard  nproc  16384
oracle  soft  nofile 1024
oracle  hard  nofile 65536

 修改登陆文件

vim /etc/pam.d/login

session    required        pam_limits.so

 修改主机名

vim /etc/hosts

192.168.7.140        ora.tralinhotel.cn    ora

设置hostname

#hostname rac

建立用户组和用户,及其密码

groupadd oinstall
groupadd dba
groupadd oper
groupadd asmadmin
useradd -g oinstall -G dba,oper,asmadmin oracle
passwd oracle


建立目录结构

mkdir -p /u01/app/oracle/product/10.2.0/
mkdir /u01/oradata
chmod -R 755 /u01
chown -R oracle.oinstall /u01

 

修改环境变量

 vim /home/oracle/.bash_profile

 

export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/
export ORACLE_SID=ora
export PATH=$PATH:$ORACLE_HOME/bin:/usr/local/sbin:/usr/local/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export CLASS_PATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
#export LANG="zh_CN.UTF-8"
export ORACLE_TERM=vt100
if [ $USER = "oracle" ] ; then
 if [ $SHELL = "/bin/ksh" ] ; then
  ulimit -p 16384
  ulimit -n 65536
 else
  ulimit -u 16384 -n 65536
 fi
fi

 语言选项注释掉了 简体中文,默认为英文

即时生效:

/sbin/sysctl -p

下载 oracle 10.2.0.1.0

切换到oracle用户下,

su - oracle
wget ftp://sdgtxuyong:[email protected]/tools/database/oracle10/linux_32/10201_database_linux32.zip
unzip 10201_database_linux32.zip

 

Reboot,重启。-----

到UI界面下,用root开启xhost +

#xhost +

切换到oracle用户,开始安装oracle

su - oracle
cd database
./runInstaller

在Database Configuration Assistant 中,Password management...管理中

修改用户锁定,给scott解锁。

用Pietty,root登陆,,运行后续脚本文件,

/u01/app/oracle/oraInventory/orainstRoot.sh

/u01/app/oracle/product/10.2.0/root.sh


提示:

iSQL*Plus URL:

:5560/isqlplus

iSQL*Plus DBA URL:

:5560/isqlplus/dba

Enterprise Manager 10g Database Control URL:

:1158/em

在Oracle Linux 4u4上安装Oracle 10.2.0.1.0过程笔记

至此安装如果顺利,就完毕了。

安装完毕后,用oracle用户,输入sqlplus后,无法startup nomount。提示缺少initora.ora文件。在admin目录中pfile目录中有一个备份的ora控制文件,但是此时拷贝后,无法使用,究原因是 linux中启动了好多锁文件,使ora文件无法加载,

重启reboot。清除锁文件。

然后用oracle用户登陆拷贝admin目录下pfile下的init.ora.时间戳 ,到 /dbs目录下。用sqlplus / as sysdba  登陆后,启动 startup open,可以成功加载数据库

17. 后续安装help文件,和 翻页辅助工具。

用sysdba 身份登陆后,启动数据库后,

@?/sqlplus/admin/help/hlpbld.sql helpus.sql

用法:help shutdown

用root用户登陆后,安装sqlplus翻页补丁

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

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

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.