Inhereited an application install at my job that a previous developer created. Part of the application install process installs Oracle 11g R2. I need to remove it from some Windows 11 workstations.
The uninstall command in the install/uninstall script being used to deploy the software to devices is:
C:\app\oracle\product\11.2.0\client_1\deinstall\deinstall.bat -paramfile C:\Temp\oracle_install\win32_11gR2_client\deinstall_OraClient11g_home1.rsp
This doesn't work. When I try running only the deinstall.bat file on a device from a command line (in the System context, so mimicking how Microsoft SCCM, the deployment tool we use) would run the uninstall, I get the following error:
%%a was unexpected at this time.
This is what the batch file contains:
@echo off
Rem $Header: install/utl/scripts/db/deinstall.bat /st_install_11.2.0.1.0/3 2010/02/18 22:36:21 ssampath Exp $
Rem
Rem Copyright (c) 2005, 2010, Oracle and/or its affiliates.
Rem All rights reserved.
Rem
Rem NAME
Rem deinstall.bat - wrapper script that calls deinstall tool.
Rem
Rem DESCRIPTION
Rem This script will determine the tool directory, cd to it and call the
Rem deinstall.pl script
Rem
Rem NOTES
Rem <other useful comments, qualifications, etc.>
Rem
Rem MODIFIED (MM/DD/YY)
Rem ssampath 01/18/10 - Pass bootstrap location to bootstrap.pl and
Rem deinstall.pl
Rem vkoganol 10/14/09 - using deleyedexpansion feature to fix bug8988606.
Rem Alternate approach use goto
Rem ssampath 08/24/09 - XbranchMerge ssampath_cleanup_deinstall_scripts
Rem from main
Rem ssampath 08/20/09 - Comment debug statements
Rem prsubram 08/17/09 - XbranchMerge
Rem prsubram_deinstall_txn_for_including_pl_file from
Rem main
Rem dchriste 03/17/09 - Creation Windows version for new perl deinstall.
Rem dchriste 03/17/09 - Creation Windows version for new perl deinstall.
Rem ssampath 04/08/08 -
Rem khsingh 02/25/07 -
Rem aime 11/15/06 - change PATH.
Rem aime 08/17/06 -
Rem ssampath 04/04/06 - Creation Windows version.
Rem
@setlocal
@setlocal enabledelayedexpansion
FOR /F "tokens=2-4 delims=/ " %%%%a in ('echo %date%') do (set mydate=%%%%c-%%%%a-%%%%b)
FOR /F "tokens=1-4 delims=.: " %%%%i in ('echo %time%') do (set mytime=%%%%i-%%%%j-%%%%k)
set dateTime=%mydate%_%mytime%
set INSTALLED_VERSION_FLAG=%setInstallFlag%
if (%INSTALLED_VERSION_FLAG%)==(true) (
set oracleHomeVersion=1
set bootstrapLocation=%TEMP%\OraDeinstall%dateTime%
) else (
set oracleHomeVersion=0
)
REM echo ORACLE_HOME = %ORACLE_HOME%
REM echo oracleHomeVersion = %oracleHomeVersion%
@set currDir=%CD%
REM echo currDir = %currDir%
@set toolPath=%~dp0
REM echo toolPath = %toolPath%
if %oracleHomeVersion% == 1 (
REM %ORACLE_HOME% will get instantiated to the value of "installed" home location
ECHO Checking for required files and bootstrapping ...
ECHO Please wait ...
REM Execute boostrap.bat
%ORACLE_HOME%\deinstall\utl\bootstrap.bat %bootstrapLocation% %ORACLE_HOME%
REM Execute startup.bat from %TEMP% to prevent "The system cannot find
REM the path specified." error because batch processing is line-by-line
%TEMP%\startup.bat %oracleHomeVersion% %bootstrapLocation% %ORACLE_HOME% %*
) else (
REM Execute startup.bat
%toolPath%utl\startup.bat %oracleHomeVersion% %toolPath% %*
)
Any guidance in how to fix the error?
I've also read several mentions of an Oracle Universal Installer to use for the uninstall, but I haven't found instructions for downloading and using that tool. Anyone have additional info about that?
Thank you.