search
HomeDatabaseMysql TutorialVMware 1.0.6 + CentOS 5.5 + Oracle10g RAC安装成功

一直想动手安装一个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
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
How to solve the problem of mysql cannot open shared libraryHow to solve the problem of mysql cannot open shared libraryMar 04, 2025 pm 04:01 PM

This article addresses MySQL's "unable to open shared library" error. The issue stems from MySQL's inability to locate necessary shared libraries (.so/.dll files). Solutions involve verifying library installation via the system's package m

Reduce the use of MySQL memory in DockerReduce the use of MySQL memory in DockerMar 04, 2025 pm 03:52 PM

This article explores optimizing MySQL memory usage in Docker. It discusses monitoring techniques (Docker stats, Performance Schema, external tools) and configuration strategies. These include Docker memory limits, swapping, and cgroups, alongside

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.

Run MySQl in Linux (with/without podman container with phpmyadmin)Run MySQl in Linux (with/without podman container with phpmyadmin)Mar 04, 2025 pm 03:54 PM

This article compares installing MySQL on Linux directly versus using Podman containers, with/without phpMyAdmin. It details installation steps for each method, emphasizing Podman's advantages in isolation, portability, and reproducibility, but also

What is SQLite? Comprehensive overviewWhat is SQLite? Comprehensive overviewMar 04, 2025 pm 03:55 PM

This article provides a comprehensive overview of SQLite, a self-contained, serverless relational database. It details SQLite's advantages (simplicity, portability, ease of use) and disadvantages (concurrency limitations, scalability challenges). C

Running multiple MySQL versions on MacOS: A step-by-step guideRunning multiple MySQL versions on MacOS: A step-by-step guideMar 04, 2025 pm 03:49 PM

This guide demonstrates installing and managing multiple MySQL versions on macOS using Homebrew. It emphasizes using Homebrew to isolate installations, preventing conflicts. The article details installation, starting/stopping services, and best pra

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]

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

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.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

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.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),