Home Database Mysql Tutorial 在Oracle Linux 4u4上安装Oracle 10.2.0.1.0过程笔记

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

Jun 07, 2016 pm 04:00 PM

练习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 of this Website
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

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

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1666
14
PHP Tutorial
1273
29
C# Tutorial
1253
24
MySQL's Role: Databases in Web Applications MySQL's Role: Databases in Web Applications Apr 17, 2025 am 12:23 AM

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

Explain the role of InnoDB redo logs and undo logs. Explain the role of InnoDB redo logs and undo logs. Apr 15, 2025 am 12:16 AM

InnoDB uses redologs and undologs to ensure data consistency and reliability. 1.redologs record data page modification to ensure crash recovery and transaction persistence. 2.undologs records the original data value and supports transaction rollback and MVCC.

MySQL's Place: Databases and Programming MySQL's Place: Databases and Programming Apr 13, 2025 am 12:18 AM

MySQL's position in databases and programming is very important. It is an open source relational database management system that is widely used in various application scenarios. 1) MySQL provides efficient data storage, organization and retrieval functions, supporting Web, mobile and enterprise-level systems. 2) It uses a client-server architecture, supports multiple storage engines and index optimization. 3) Basic usages include creating tables and inserting data, and advanced usages involve multi-table JOINs and complex queries. 4) Frequently asked questions such as SQL syntax errors and performance issues can be debugged through the EXPLAIN command and slow query log. 5) Performance optimization methods include rational use of indexes, optimized query and use of caches. Best practices include using transactions and PreparedStatemen

MySQL vs. Other Programming Languages: A Comparison MySQL vs. Other Programming Languages: A Comparison Apr 19, 2025 am 12:22 AM

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages ​​such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages ​​have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL: From Small Businesses to Large Enterprises MySQL: From Small Businesses to Large Enterprises Apr 13, 2025 am 12:17 AM

MySQL is suitable for small and large enterprises. 1) Small businesses can use MySQL for basic data management, such as storing customer information. 2) Large enterprises can use MySQL to process massive data and complex business logic to optimize query performance and transaction processing.

How does MySQL index cardinality affect query performance? How does MySQL index cardinality affect query performance? Apr 14, 2025 am 12:18 AM

MySQL index cardinality has a significant impact on query performance: 1. High cardinality index can more effectively narrow the data range and improve query efficiency; 2. Low cardinality index may lead to full table scanning and reduce query performance; 3. In joint index, high cardinality sequences should be placed in front to optimize query.

MySQL for Beginners: Getting Started with Database Management MySQL for Beginners: Getting Started with Database Management Apr 18, 2025 am 12:10 AM

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA

MySQL vs. Other Databases: Comparing the Options MySQL vs. Other Databases: Comparing the Options Apr 15, 2025 am 12:08 AM

MySQL is suitable for web applications and content management systems and is popular for its open source, high performance and ease of use. 1) Compared with PostgreSQL, MySQL performs better in simple queries and high concurrent read operations. 2) Compared with Oracle, MySQL is more popular among small and medium-sized enterprises because of its open source and low cost. 3) Compared with Microsoft SQL Server, MySQL is more suitable for cross-platform applications. 4) Unlike MongoDB, MySQL is more suitable for structured data and transaction processing.

See all articles