Uninstall and install the Oracle11g server and client

Source: Internet
Author: User
The complete uninstallation method for the Oracle11g server and client has changed from the previous versions: 1. Before uninstallation, prepare: Start-set-control panel-management tools-service to stop all Oracle services. Ii. Batch unmount: run the deinstall. bat batch file of H: appAdministratorproduct11.2.0dbhome _ 1deinstall

The full uninstallation method for the Oracle 11g server and client has changed from the previous versions: 1. Before uninstallation, prepare: Start-set-control panel-management tools-service to stop all Oracle services. Ii. Batch unmount: run the deinstall. bat batch file of H: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1 \ deinstall

The full uninstall mode for Oracle 11g servers and clients has changed with the previous versions:

1. Preparations before uninstallation:

Start-> Settings-> Control Panel-> management tools-> services
Stop all Oracle services.


Ii. Batch unload:

Run the deinstall. bat batch file of H: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1 \ deinstall to uninstall the file. The full code is as follows:

(When the client is detached, there will be an inquiry during the screen process. Press ENTER or y to select the default value .)


Checking for required files and bootstrapping...
Please wait...
Copied 14 files
Copied 611 files
1 file has been copied.
1 file has been copied.
Location of logs C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ OraDeinstall Saturday-09-04_12-
13-55 \ logs \

########### Oracle deinstall & deconfig tool start ############

######################## Check operation start ############# ###########
Installation check configuration starts

Check whether the Oracle main directory has H: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1
Select SIDB as the Oracle main directory type for uninstallation.
Select the Oracle base directory for uninstallation: H: \ app \ Administrator
Check whether C: \ Program Files \ Oracle \ Inventory exists in the main product list

Installation check configuration is complete

Check Windows and. NET Product Configuration to start

The following Windows and. NET products will be unconfigured from the Oracle main directory: asp.net, ode.net, odp.net, ntoledb, oramts

Check that the configuration of Windows and. NET products is complete.

Network Configuration Check Configuration starts

Location of the network cancel configuration trace file: C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ OraDeinstall Saturday-09-04_12-13-55 \ logs \ netdc_check9099948279725757430.log

Network Configuration Check Configuration ended

Database check configuration starts

Database Configuration cancellation tracking File Location: C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ OraDeinstall week
6-09-04_12-13-55 \ logs \ databasedc_check1621612446029651947.log

When the specified value list is used as the input, use a comma as the separator.

List of database names configured in the Oracle Home Directory [ORCL]:

###### For database 'orcl '######

Single-instance Database
Database diagnosis target location: H: \ APP \ ADMINISTRATOR \ diag \ rdbms \ orcl
Database storage type: FS
Database File Location: H: \ APP \ ADMINISTRATOR \ ORADATA \ ORCL, H: \ APP \ ADMINISTRATOR \ FLASH_REC
OVERY_AREA \ ORCL
Quick Recovery location: H: \ app \ Administrator \ flash_recovery_area \ ORCL
DATABASE spfile location: H: \ APP \ ADMINISTRATOR \ PRODUCT \ 11.2.0 \ DBHOME_1 \ DATABASE \ SPFILE
ORCL. ORA

The detailed information of the database ORCL has been automatically searched. Do you still want to modify the details of the ORCL database? [N]: y

###### For database 'orcl '######

Specify the type of this database (1. single-instance database | 2. Enable Oracle Restart database) [1]:
Specify the database diagnosis target location [H: \ APP \ ADMINISTRATOR \ diag \ rdbms \ orcl]:
Specify the storage type used by the database ASM | FS [FS]:

If any database file exists in the shared file system, specify the directory list. If 'orcl 'is found
Directory, the subdirectory will be deleted. Otherwise, the specified directory will be deleted. In addition, you can specify a database with a full path
File list [H: \ APP \ ADMINISTRATOR \ ORADATA \ ORCL, H: \ APP \ ADMINISTRATOR \ FLASH_RECOVER
Y_AREA \ ORCL]:

If you have configured a fast recovery area on the file system, specify its location. If the 'orcl 'subdirectory is found
Except this subdirectory. [H: \ app \ Administrator \ flash_recovery_area \ ORCL]:

Specify the DATABASE spfile location [H: \ APP \ ADMINISTRATOR \ PRODUCT \ 11.2.0 \ DBHOME_1 \ DATABASE \ SP
FILEORCL. ORA]:

Database check configuration ended

Enterprise Manager Configuration Assistant START


The location of the configuration trace file canceled by EMCA is C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ OraDeinstall Saturday
-09-04_12-13-55 \ logs \ emcadc_check.log

Check database ORCL configurations
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location: C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ OraDeinstall
Saturday-09-04_12-13-55 \ logs \ ocm_check7346.log
Oracle Configuration Manager check END

######################### Check operation end ############ #############

####################### Check operation summary ############## #########
Select the Oracle Home Directory for uninstallation: H: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1
The product list registered in the Oracle main directory is located at: C: \ Program Files \ Oracle \ Inventory
The following Windows and. NET products will be unconfigured from the Oracle main directory: asp.net, ode.net, odp.net, ntol
Edb, oramts
You have selected the following database to cancel the configuration: ORCL
Unique Database Name: ORCL
Used storage: FS
The Enterprise Manager configuration will be updated for the following databases: ORCL
No Enterprise Manager ASM target to be updated
No target for the Enterprise Manager listener to be transplanted
Checking the config status for Cr
Oracle Home exists with CCR directory, but Cr is not configured
CCR check is finished
Continue (y-Yes, n-No )? [N]: y
Logs for this session will be written to: 'C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ OraDeinstall Saturday-09-04
_ 12-13-55 \ logs \ deinstall_deconfig2010-09-04_12-14-52-PM.out'
Any error message for this session will be written to: 'C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ OraDeinstall
Saturday-09-04_12-13-55 \ logs \ deinstall_deconfig2010-09-04_12-14-52-PM.err'

######################## Clean operation start ############# ###########

Enterprise Manager Configuration Assistant START

The location of the configuration trace file canceled by EMCA is C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ OraDeinstall Saturday
-09-04_12-13-55 \ logs \ emcadc_clean.log

Update the Enterprise Manager Database Control Configuration of the Database ORCL
Update the Enterprise Manager ASM target (if any)
Update the target of the Enterprise Manager listener (if any)
Enterprise Manager Configuration Assistant END
Database Configuration cancellation tracking File Location: C: \ Users \ ADMINI ~ 1 \ AppData \ Local \ Temp \ OraDeinstall week
6-09-04_12-13-55 \ logs \ databasedc_clean4524227538174628415.log
Database cleanup configuration starts ORCL
This operation may take several minutes.


After the DOS prompts that the system will automatically exit after the uninstallation is completed, the uninstallation will be almost successful. After the restart, you can delete the installation directory without deleting the registry.


If the registry is not cleaned after the restart, follow the steps below to completely uninstall it.


3. Delete the registry and others


1. Run regedit.

Select HKEY_LOCAL_MACHINE \ SOFTWARE \ ORACLE and press del to Delete this entry.

Select HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services to scroll through the list and delete all Oracle entries.

Select HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application to delete all Oracle entries.

2. Choose "start"> "Settings"> "Control Panel"> "system"> "advanced"> "environment variable:

Delete Oracle settings in the environment variables CLASSPATH and PATH

3. Delete all groups and icons related to Oracle from the desktop, STARTUP group, and program menu.

4. Delete the \ Program Files \ Oracle directory


4. reinstall the server. Pay attention to setting the server character set.

The installation process is simple and you can proceed to the next step.

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.