Home Database Mysql Tutorial VMware 1.0.6 + CentOS 5.5 + Oracle10g RAC安装成功

VMware 1.0.6 + CentOS 5.5 + Oracle10g RAC安装成功

Jun 07, 2016 pm 04:59 PM

一直想动手安装一个Oracle10g RAC的测试环境,今天终于完成了。具体教程见: http://www.linuxidc.com/Linux/2011-02/31976.htm具

一直想动手安装一个Oracle10g RAC的测试环境,今天终于完成了。具体教程见:

具体的步骤就不再列出了,上面的介绍非常详尽。只是想列出自己安装过程中遇到的一些错误和解决方法。

1. 一开始安装虚拟机,没有看清楚文档。把4个裸设备也放在RAC1目录下面了。重新安装。

2. 虚拟机中,只配了两个网卡。那个用来做ftp的卡没有配置。同样,后面配置ftp传文件也省略了。用scp传文件也是一样的。

3. 安装虚拟机,用的是ISO文件,所以那些换盘的步骤,省略。

4. 两个节点的网络配置,一定要仔细。那个默认网关也得配置正确才可以。

5. 配置SSH的过程,和文档介绍的不一样。他的那个太复杂。CentOS5.5自带的是OpenSSH_4.3p2,只要四步就OK.

=== 1) create key pairs.
ssh-keygen -t dsa
=== 2) copy the keys to local.
cat id_dsa.pub >> authorized_keys2
=== 3) copy the keys to remote.
scp ~/.ssh/id_dsa.pub oracle@rac2:/home/oracle/.ssh/authorized_keys2
=== 4) connect and accept.
ssh rac2 date

6. 进入GUI安装clusterware的时候,因为“/etc/sysconfig/network-scripts/ifcfg-eth0”和“/etc/sysconfig/network-scripts/ifcfg-eth1”中“NETWORK”的值设置错误,造成安装失败。把这个值注销,重新安装,OK。

在这里得说一下重新安装的时候,需要清除的文件。

cd /opt/ora10g
rm -rf *
rm -rf /etc/oracle
rm -f /etc/oraInst.loc

dd if=/dev/zero of=/dev/raw/raw1 bs=1024 count=200000
dd if=/dev/zero of=/dev/raw/raw2 bs=1024 count=200000
rm -f /etc/init.d/init.cssd
rm -f /etc/init.d/init.crs 
rm -f /etc/init.d/init.crsd
rm -f /etc/init.d/init.evmd
rm -f /etc/inittab.crs     

rm -f /etc/inittab
cp /etc/inittab.no_crs /etc/inittab

cd /etc/
find ./ -name *96init.crs
== rm the found files.

7. 运行dbca创建数据库的时候,在mount disk group时遇到错误。提示是监听问题,其实不是。浪费了半天时间。文档里面也提了,只是太简略,就没有在意。后来在第二个节点上面重新启动crs,果然好了。

/etc/init.d/init.crs stop
/etc/init.d/init.crs start

8. 安装过程中,还有一次是关于时钟同步的错误。刚开始配置ssh的时候,包括安装,都很正常。后来记不清第几次重启,重做,两边的时间差快有一分钟,造成复制数据到第二个节点报错。同步,重做,OK。

/usr/sbin/ntpdate ntp.fudan.edu.cn

前后花了两三个星期,断断续续的执行,遇到不少问题,总算大功告成。再次感谢上面的那篇文章,让我少走了不少弯路。

对了,“/opt/ora10g/product/10.2.0/db_1/bin/srvctl”这个文件里面的LD_ASSUME_KERNEL也得注释掉。否则报错如下:

[oracle@rac1 bin]$ srvctl
/opt/ora10g/product/10.2.0/db_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
[oracle@rac1 bin]$

改了之后,,再看:

[oracle@rac1 bin]$ srvctl status database -d racdb
Instance RACDB1 is running on node rac1
Instance RACDB2 is running on node rac2
[oracle@rac1 bin]$

现在的CRS状态:

[oracle@rac1 bin]$ ./crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....B1.inst application    ONLINE    ONLINE    rac1       
ora....B2.inst application    ONLINE    ONLINE    rac2       
ora.RACDB.db   application    ONLINE    ONLINE    rac1       
ora....SM1.asm application    ONLINE    ONLINE    rac1       
ora....C1.lsnr application    ONLINE    ONLINE    rac1       
ora.rac1.gsd   application    ONLINE    ONLINE    rac1       
ora.rac1.ons   application    ONLINE    ONLINE    rac1       
ora.rac1.vip   application    ONLINE    ONLINE    rac1       
ora....SM2.asm application    ONLINE    ONLINE    rac2       
ora....C2.lsnr application    ONLINE    ONLINE    rac2       
ora.rac2.gsd   application    ONLINE    ONLINE    rac2       
ora.rac2.ons   application    ONLINE    ONLINE    rac2       
ora.rac2.vip   application    ONLINE    ONLINE    rac2       
[oracle@rac1 bin]$

linux

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months 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)

How do you alter a table in MySQL using the ALTER TABLE statement? How do you alter a table in MySQL using the ALTER TABLE statement? Mar 19, 2025 pm 03:51 PM

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

How do I configure SSL/TLS encryption for MySQL connections? How do I configure SSL/TLS encryption for MySQL connections? Mar 18, 2025 pm 12:01 PM

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? Mar 21, 2025 pm 06:28 PM

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

How do you handle large datasets in MySQL? How do you handle large datasets in MySQL? Mar 21, 2025 pm 12:15 PM

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

How do you drop a table in MySQL using the DROP TABLE statement? How do you drop a table in MySQL using the DROP TABLE statement? Mar 19, 2025 pm 03:52 PM

The article discusses dropping tables in MySQL using the DROP TABLE statement, emphasizing precautions and risks. It highlights that the action is irreversible without backups, detailing recovery methods and potential production environment hazards.

How do you create indexes on JSON columns? How do you create indexes on JSON columns? Mar 21, 2025 pm 12:13 PM

The article discusses creating indexes on JSON columns in various databases like PostgreSQL, MySQL, and MongoDB to enhance query performance. It explains the syntax and benefits of indexing specific JSON paths, and lists supported database systems.

How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)? How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)? Mar 18, 2025 pm 12:00 PM

Article discusses securing MySQL against SQL injection and brute-force attacks using prepared statements, input validation, and strong password policies.(159 characters)

How do you represent relationships using foreign keys? How do you represent relationships using foreign keys? Mar 19, 2025 pm 03:48 PM

Article discusses using foreign keys to represent relationships in databases, focusing on best practices, data integrity, and common pitfalls to avoid.

See all articles