VMware 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]$

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

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.

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 is an open source relational database management system, mainly used to store and retrieve data quickly and reliably. Its working principle includes client requests, query resolution, execution of queries and return results. Examples of usage include creating tables, inserting and querying data, and advanced features such as JOIN operations. Common errors involve SQL syntax, data types, and permissions, and optimization suggestions include the use of indexes, optimized queries, and partitioning of tables.

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 is chosen for its performance, reliability, ease of use, and community support. 1.MySQL provides efficient data storage and retrieval functions, supporting multiple data types and advanced query operations. 2. Adopt client-server architecture and multiple storage engines to support transaction and query optimization. 3. Easy to use, supports a variety of operating systems and programming languages. 4. Have strong community support and provide rich resources and solutions.

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 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.
