Common Oracle script-uninstall RAC

Source: Internet
Author: User
#! /Bin/bash #0. env Varible sed-I's/^ export ORACLE_HOME/# export ORACLE_HOME/G'/home/Oracle /. bash_profilesed-I's/^ export oracle_sid/# export oracle_sid/G'/home/Oracle /. bash_profilesed-I's/^ export tns_admin/# export tns_admin/G'/home/Oracle /. bash_profile #1. stop servicecrs_stop-all #2. delete some filerm-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. evmdrm-F/etc/rc2.d/k96init. crsrm-F/etc/rc2.d/s96init. crsrm-F/etc/rc3.d/k96init. crsrm-F/etc/rc3.d/s96init. crsrm-F/etc/rc5.d/k96init. crsrm-F/etc/rc5.d/s96init. crsrm-F/etc/inittab. crsrm-F/etc/inittab. no_crsrm-fr/u01/crs1020/* Rm-fr/u01/APP/Oracle/* Rm-fr/u01/oratabrm-fr/etc/ora * Rm-F/usr/ local/bin/coraenvrm-F/usr/local/bin/dbhomerm-F/usr/local/bin/oraenvrm-fr/var/tmp /. export lerm-fr/tmp/* chown-r root: oinstall/u01chown-r ORACLE: oinstall/u01/appchmod 775/u01/crs1020 #3. deal with/etc/inittabcp/etc/inittab. orig/etc/inittab #4. format the shareddisk #......

Note:
Step 1: Set ORACLE_HOME, oracle_sid, three environment variables tns_admin are commented out for reinstallation.
Step 4: different scenarios.

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.