一直想动手安装一个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]$

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

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

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

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

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

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

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]

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


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

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
The latest (2018.2.1) professional PHP integrated development tool

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

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),
