Problems with installing RAC with VMware + rhel5 + Oracle 10 GB

Source: Internet
Author: User
Tags ssh access

It took me a week to install rac, and I had a lot of detours. I hope to help people who encounter similar problems in the future. First of all, I would like to thank Lei Yu for following his steps. You can install it according to his subsidy, and he wrote very well. My main problems Are: Problem 1: Specified Nodes Are Not Clusterable. Solution to this problem: 1. cd $ HOME
2. mkdir ~ /. Ssh
3. chmod 700 ~ /. Ssh
4./usr/bin/ssh-keygen-t rsa
5./usr/bin/ssh-keygen-t dsa
On Node 1:1. cd $ HOME/. ssh
2. cat id_rsa.pub> authorized_keys
3. cat id_dsa.pub> authorized_keys
4. Copy the authorized_keys file to the node
5. scp authorized_keys rac2:/opt/Oracle/. ssh
On Node 2:1. cd $ HOME/. ssh
2. cat id_rsa.pub> authorized_keys
3. cat id_dsa.pub> authorized_keys
4. scp authorized_keys rac1:/opt/oracle/. sshThen I ran following commands: On Node 1: $ exec/usr/bin/ssh-agent $ SHELL
$/Usr/bin/ssh-addOn Node 2: $ exec/usr/bin/ssh-agent $ SHELL
$/Usr/bin/ssh-add is mainly followed by two steps. After you switch the user, you need to try again. This is my deep understanding. Because I used securecrt to log on to the master node 1, I encountered Specified Nodes Are Not Clusterable, and it had Not been solved for a long time. This problem had plagued me for a few days and it was really annoying in those days. To solve this problem, enter $ exec/usr/bin/ssh-agent $ SHELL in securecrt.
Verify ssh rac1 date, ssh rac2 date, ssh rac1-priv date, and ssh rac2-priv date after $/usr/bin/ssh-add. Do not use node 1 in a virtual machine to cluster nodes that are not successful. Therefore, you must log on to node 1 and node 2 in the Virtual Machine in securecrt. You do not need a password to ssh access. Question 2:ConfiguredSSHThen, it is found that the verification fails when the user is equivalent:The corresponding solution is also very simple. You can create a link to/usr/bin/ssh in the/usr/local/bin directory.
Root @ rac1 # mkdir-p/usr/local/bin
Root @ rac1 # ln-s-f/usr/bin/ssh/usr/local/bin/ssh
Root @ rac1 # ln-s-f/usr/bin/scp/usr/local/bin/scp if the problem persists, enter the last two steps of Question 1 to verify the user's equivalence. Problem 3: The problem is displayed when clusterware is installed. The error/usr/X11R6/bin/xclock is always prompted for installation under the virtual machine. To solve this problem, I used securecrt and Xmanager-Passive. In securecrt, enter export DISPALY = your local ip address (the ip address in a non-Virtual Machine System): 0.0, xhost + your local IP address. Problem 4: The last step of installing clusterware is to run./vipca. In the end, I have been unable to unmount the database and reinstall it. Uninstall Database: 1. Stop all nodeapp applications:
Srvctl stop nodeapps-n 2. Use the root user to delete all the crs self-starting scripts. The file paths on different platforms are different for your reference:
Sun:
Rm/etc/init. d/init.css d
Rm/etc/init. d/init. crs
Rm/etc/init. d/init. crsd
Rm/etc/init. d/init. evmd
Rm/etc/rc3.d/K96init. crs
Rm/etc/rc3.d/S96init. crs
Rm-Rf/var/opt/oracle/scls_scr
Rm-Rf/var/opt/oracle/oprocd
Rm/etc/inittab. crs
Cp/etc/inittab. orig/etc/inittab Linux:
Rm/etc/oracle /*
Rm-f/etc/init. d/init.css d
Rm-f/etc/init. d/init. crs
Rm-f/etc/init. d/init. crsd
Rm-f/etc/init. d/init. evmd
Rm-f/etc/rc2.d/K96init. crs
Rm-f/etc/rc2.d/S96init. crs
Rm-f/etc/rc3.d/K96init. crs
Rm-f/etc/rc3.d/S96init. crs
Rm-f/etc/rc5.d/K96init. crs
Rm-f/etc/rc5.d/S96init. crs
Rm-Rf/etc/oracle/scls_scr
Rm-f/etc/inittab. crs
HP-UX for cp/etc/inittab. orig/etc/inittab:
Rm/sbin/init. d/init.css d
Rm/sbin/init. d/init. crs
Rm/sbin/init. d/init. crsd
Rm/sbin/init. d/init. evmd
Rm/sbin/rc2.d/K960init. crs
Rm/sbin/rc2.d/K001init. crs
Rm/sbin/rc3.d/K960init. crs
Rm/sbin/rc3.d/S960init. crs
Rm-Rf/var/opt/oracle/scls_scr
Rm-Rf/var/opt/oracle/oprocd
Rm/etc/inittab. crs
Cp/etc/inittab. orig/etc/inittab HP Tru64:
Rm/sbin/init. d/init.css d
Rm/sbin/init. d/init. crs
Rm/sbin/init. d/init. crsd
Rm/sbin/init. d/init. evmd
Rm/sbin/rc3.d/K96init. crs
Rm/sbin/rc3.d/S96init. crs
Rm-Rf/var/opt/oracle/scls_scr
Rm-Rf/var/opt/oracle/oprocd
Rm/etc/inittab. crs
Cp/etc/inittab. orig/etc/inittab ibm aix:
Rm/etc/init.css d
Rm/etc/init. crs
Rm/etc/init. crsd
Rm/etc/init. evmd
Rm/etc/rc. d/rc2.d/K96init. crs
Rm/etc/rc. d/rc2.d/S96init. crs
Rm-Rf/etc/oracle/scls_scr
Rm-Rf/etc/oracle/oprocd
Rm/etc/inittab. crs
Cp/etc/inittab. orig/etc/inittab 3. Cleanup of legacy processes, including EVM, CRS, and CSS. However, do not kill operating system processes by mistake, such as icssvr_daemon.
Ps-ef | grep crs
Kill
Ps-ef | grep evm
Kill
Ps-ef | grep css
Kill 4. Delete the oracle file in the temporary directory and check that no other oracle process is running.
Rm-f/var/tmp /. oracle/* or rm-f/tmp /. oracle/* 5. delete ocr. loc file, usually in the/etc/oracle directory. If not, use the find command to search
Root: find/-name ocr. loc

6. run Oracle Universal Installer to deinstall the CRS software. 7. Delete the oracle crs installation directory.

8. Clear ocr and votingdisk information. If you are using a file system, delete it directly. If you are using a bare device, run the dd command to clear it, for example:
Dd if =/dev/zero of =/dev/rdsk/voting_disk1.dbf bs = 1 M count = 256
Dd if =/dev/zero of =/dev/rdsk/ocr1.dbf bs = 1 M count = 256 9. if possible, we recommend that you restart the host and then perform the next full CRS installation. Problem 5: The bare device installed by Lei Yu is incomplete. The solution is to configure the raw device (lvm + raw cannot be used)
[Root @ rac1 ~] # Raw/dev/raw/raw1/dev/sdb1
[Root @ rac1 ~] # Raw/dev/raw/raw2/dev/sdc1
[Root @ rac1 ~] # Raw/dev/raw/raw3/dev/sdd1
[Root @ rac1 ~] # Enable raw/dev/raw/raw4/dev/sde1 to automatically bind the raw device to the device upon startup.
Cat>/etc/rc. d/rc. local <EOF
[Raw/dev/raw/raw1/dev/sdb1
Raw/dev/raw/raw2/dev/sdc1
Raw/dev/raw/raw3/dev/sdd1
Raw/dev/raw/raw4/dev/sde1
Chown oracle: oinstall/dev/raw [1-4]
Chmod 660/dev/raw [1-4]
EOF

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.