CentOS Offload Oracle 11gR2 (x64)

Source: Internet
Author: User

Environment
OS: CentOS 7.4; hosts: L134; IP: 192.168.1.134  Oracle安装文件目录:/opt/oracle_install  ORACLE_BASE:/data/app/oracle  ORACLE_HOME: /data/app/oracle/product/11.2.0/db_1  oraInventory: /data/app/oraInventory  Oracle数据目录:/data/app/oradata/  
Method 1: Use Oracle's own deinstall offload

Then follow the prompts step-by-step operation. The final step is to confirm the operation, select Y, and enter.

Do you want to continue (y - yes, n - no)? [n]: y

Finally, you need to delete the/etc/orainst.loc file as root.
I think method 2 removal is more convenient and more thorough.

Method 2: Manually delete the relevant files and directories
    1. Close an instance
sqlplus / as sysdbaSQL> shutdown immediate
    1. Close Listener

      lsnrctl stop
    2. Remove the installation directory

      su -rm -rf /data/app/oracle/ /data/app/oraInventory/ /data/app/oradata/
    3. Delete the relevant files under/usr/bin with root permission. Next week

    4. Delete/etc/oratab

      rm -f /etc/oratab
    5. Delete

      rm -f /etc/oraInst.loc
    6. Delete Oracle Users and user groups (if necessary)

      userdel -r oraclegroupdel oinstallgroupdel dbagroupdel oper
    7. Remove startup service

      chkconfig --del oracle
Extended

Oracle's own Deinstall uninstall tips and log information

[[email protected]/data/oracle/11g2/deinstall]$./deinstall Checking for required files and bootstrapping ... Please wait ... Location of logs/tmp/deinstall2018-03-08_08-53-24-am/logs/############ ORACLE Deinstall & deconfig TOOL START ##### ############################### Check operation START ####################### #Install Check Configuration Startchecking for existence of the Oracle home location/data/app/oracle/product/11.2.0/db_1oracle home type selected for De-install is:sidboracle Base selected for De-install are:/data/app/oraclechecking for existence in central inventory loc Ation/data/app/orainventoryinstall Check configuration endnetwork Configuration Check config startnetwork De-configuration trace File Location:/tmp/deinstall2018-03-08_08-53-24-am/logs/netdc_ Check1471463216126639250.logspecify All Instance listeners is de-configured [Listener]:network Configu Ration check config enddatabase check Configuration startdatabase de-configuration traCe file location:/tmp/deinstall2018-03-08_08-53-24-am/logs/databasedc_check5326208000777792237.loguse comma as Separator when specifying list of values as inputspecify the list of database names that is configured in this Oracle hom e [Orclyz]: ###### for Database ' Orclyz ' ##### #Single Instance databasethe Diagnostic Destination location of the database :/data/app/oracle/diag/rdbms/orclyzstorage type used by the Database:fsdatabase file location:/data/app/oracle/ Oradata/orclyz,/data/app/oracle/flash_recovery_area/orclyzflash Recovery Area Location:/data/app/oracle/flash_ Recovery_area/orclyzdatabase spfile Location:/data/app/oracle/product/11.2.0/db_1/dbs/spfileorclyz.orathe details of database (s) Orclyz has been discovered automatically. Does still want to modify the details of Orclyz database (s)? [n]: Database Check configuration endenterprise Manager configuration Assistant startemca de-configuration trace File Loca tion:/tmp/deinstall2018-03-08_08-53-24-am/logs/emcadc_check.Log Checking configuration for database orclyzenterprise Manager configuration Assistant endoracle Configuration Manager C Heck startocm Check log file location:/tmp/deinstall2018-03-08_08-53-24-am/logs//ocm_check5456.logoracle Configuration Manager Check end######################### check operation END ######################################## ######## CHECK Operation SUMMARY ###################### #Oracle Home selected for De-install are:/data/app/oracle/product /11.2.0/db_1inventory location where the Oracle home registered are:/data/app/orainventoryfollowing single Instance Liste NER (s) would be is de-configured:listenerthe following databases were selected for De-configuration:orclyzdatabase unique n Ame:orclyzstorage Used:fsno Enterprise Manager configuration to being updated for any database (s) No Enterprise Manager as M targets to Updateno Enterprise Manager listener targets to migratechecking the config status for Ccroracle Home exists W ITH CCR directory, but CCR isn't CONFIGUREDCCR Check is Finisheddo want to continue (Y-yes, n-no)? [n]: YA Log of this session would be written to: '/tmp/deinstall2018-03-08_08-53-24-am/logs/deinstall_deconfig2018-03-08_ 08-53-33-am.out ' Any error messages from this session'll be written to: '/tmp/deinstall2018-03-08_08-53-24-am/logs/ Deinstall_deconfig2018-03-08_08-53-33-am.err ' ######################## clean operation START ###################### # #Enterprise Manager Configuration Assistant startemca de-configuration trace file location:/tmp/deinstall2018-03-08_ 08-53-24-am/logs/emcadc_clean.log Updating Enterprise Manager ASM targets (if any) Updating Enterprise Manager Listener Ta Rgets (if any) Enterprise Manager Configuration Assistant enddatabase de-configuration trace file location:/tmp/deinstall 2018-03-08_08-53-24-am/logs/databasedc_clean1081110075195191916.logdatabase Clean Configuration START orclyzThis Operation may take few minutes. Database Clean configuration END orclyznetwork Configuration clean config StartnetworK de-configuration trace File location:/tmp/deinstall2018-03-08_08-53-24-am/logs/netdc_    Clean1072295666521765217.logde-configuring single Instance Listener (s): Listenerde-configuring Listener:listener    Stopping Listener:listener Listener stopped successfully. Deleting Listener:listener Listener deleted successfully. Listener de-configured successfully. De-configuring naming Methods configuration file ... Naming Methods configuration file de-configured successfully. de-configuring Backup Files ... Backup files de-configured successfully. The network configuration has a been cleaned up successfully. Network Configuration clean config endoracle configuration Manager clean startocm clean log file location:/tmp/deinstall 2018-03-08_08-53-24-am/logs//ocm_clean5456.logoracle Configuration Manager Clean endoracle Universal Installer Clean Startdetach Oracle Home '/data/app/oracle/product/11.2.0/db_1 ' from the central inventory on the local node:donedelete D Irectory '/data/app/oracle/prodUct/11.2.0/db_1 ' on the local node:donedelete directory '/data/app/orainventory ' on the local Node:donedelete director Y '/data/app/oracle ' on the local node:doneoracle Universal Installer cleanup was successful. Oracle Universal Installer Clean endoracle Install clean startclean install operation removing temporary directory '/tmp/i Nstall ' on node ' POSTALDATADG ' Oracle install clean end######################### clean Operation END #################### ############################ clean Operation SUMMARY ###################### #Successfully de-configured the following Database instances:orclyzfollowing single Instance listener (s) were de-configured successfully:listenercleaning the con Fig for Ccras CCR are not configured, so skipping the cleaning of CCR CONFIGURATIONCCR Clean is finishedsuccessfully detach Ed Oracle home '/data/app/oracle/product/11.2.0/db_1 ' from the central inventory on the local node. Successfully deleted directory '/data/app/oracle/product/11.2.0/db_1 ' on the LocaL node. Successfully deleted directory '/data/app/orainventory ' on the local node. Successfully deleted directory '/data/app/oracle ' on the local node. Oracle Universal Installer Cleanup was successful. Run ' Rm-rf/etc/orainst.loc ' as root on node (s) ' POSTALDATADG ' at the end of the session. Oracle install successfully cleaned up the temporary directories.#################################################### ################################ ORACLE deinstall & deconfig TOOL END #############




CentOS Offload Oracle 11gR2 (x64)

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.