@echo off
REM #
REM # Copyright (c) 1998,1999,2000,2001, 2002 Oracle Corporation. All rights reserved.
REM #
REM # PRODUCT
REM # Oracle Enterprise Manager, Version 9.2.0.0.0 Production
REM #
REM # FILENAME
REM # oemapp.bat
REM #
REM # DEs criptION
REM # This s cript is used to launch Applications of Oracle
REM # Enterprise Manager, Version 9
REM #
REM #
IF "%1%" == "trace" GOTO trace
IF "%1%" == "TRACE" GOTO trace
IF "%1%" == "debug" GOTO trace
IF "%1%" == "DEBUG" GOTO trace
GOTO start2
:trace
SHIFT
SET ORACLE_OEM_CLIENTTRACE=TRUE
SET TRACE= -DTRACING.LEVEL=2 -DTRACING.ENABLED=true
:start2
REM Make sure that our JRE is used for this invocation.
if Windows_NT == %OS% SET PATH=C:\Program Files\Oracle\jre\1.1.8\bin;%PATH%
if not Windows_NT == %OS% SET PATH="C:\Program Files\Oracle\jre\1.1.8\bin;%PATH%"
SET CLASSROOT=E:\oracle\ora92/classes
SET JLIBROOT=E:\oracle\ora92/jlib
SET NETJLIBROOT=E:\oracle\ora92/network/jlib
SET OEMCLASSES=%JLIBROOT%/oembase-9_2_0.jar;%JLIBROOT%/oemtools-9_2_0.jar
SET BALICLASSES=%JLIBROOT%/swingall-1_1_1.jar;%JLIBROOT%/ewtcompat-3_3_15.jar;%JLIBROOT%/ewt3.jar;%JLIBROOT%/ewt3-nls.jar;%JLIBROOT%/share.jar;E:\oracle\ora92\sysman\jlib\master.jar;E:\oracle\ora92\sysman\jlib\master_zh_CN.jar
SET AURORACLASSES=E:\oracle\ora92/lib/aurora_client.jar
SET HELPCLASSES=%JLIBROOT%/help3.jar;%JLIBROOT%/help3-nls.jar;%JLIBROOT%/oracle_ice5.jar
SET DBUICLASSES=%JLIBROOT%/dbui2.jar;%JLIBROOT%/dbui2-nls.jar
SET KODIAKCLASSES=%JLIBROOT%/kodiak.jar
SET JDBCCLASSES=E:\oracle\ora92/jdbc/lib/classes111.zip;E:\oracle\ora92/jdbc/lib/nls_charset11.zip
SET NETCHARTSCLASS=E:\oracle\ora92/sysman/jlib/netchart360.jar
SET ORBCLASSES=E:\oracle\ora92/lib/vbjorb.jar;E:\oracle\ora92/lib/vbjapp.jar
SET SECURITYCLASSES=%JLIBROOT%/javax-ssl-1_1.jar;%JLIBROOT%/jssl-1_1.jar
SET OSDNETCLASSES=%JLIBROOT%/netcfg.jar;%JLIBROOT%/o3logon.jar;%JLIBROOT%/verifier.jar
SET OSDPKICLASSES=%JLIBROOT%/ewm-1_1.jar;%JLIBROOT%/ojpse_2_1_5.jar
SET NETMGRCLASSES=%NETJLIBROOT%/netmgrm.jar;%NETJLIBROOT%/netmgr.jar;E:\oracle\ora92/network/tools
SET XMLCLASSES=E:\oracle\ora92/lib/xmlparserv2.jar
SET OLAPCLASSES=%JLIBROOT%/cvd.zip;%JLIBROOT%/jndi.jar;%JLIBROOT%/jewt4.jar;%JLIBROOT%/jewt4-nls.jar
SET MISCCLASSES=E:\oracle\ora92/assistants/jlib/assistantsCommon.jar;E:\oracle\ora92/jlib/jle2.jar;E:\oracle\ora92/jle2-nls.jar
SET QSMACLASSES=E:\oracle\ora92/rdbms/jlib/qsma.jar
SET CLASSPATHADD=%CLASSROOT%;%OEMCLASSES%;%ORBCLASSES%;%BALICLASSES%;%HELPCLASSES%;%DBUICLASSES%;%JDBCCLASSES%;%KODIAKCLASSES%;%NETCHARTSCLASS%;%SECURITYCLASSES%;%OSDNETCLASSES%;%OSDPKICLASSES%;%NETMGRCLASSES%;%XMLCLASSES%;%AURORACLASSES%;%OLAPCLASSES%;%MISCCLASSES%;%QSMACLASSES%
REM hook for classpath additions
if not "%ORACLE_OEM_CLASSPATH%" == "" SET CLASSPATHADD=%ORACLE_OEM_CLASSPATH%;%CLASSPATHADD%
REM # Oracle change manager requires the following for ocmtclsh.exe
set GBP=
if not exist %CLASSROOT%\oracle\sysman\vtt\vttz\VttzCmDragDropObject.class set GBP=true
if "%ORACLE_OEM_JAVAMX%" == "" set ORACLE_OEM_JAVAMX=-mx128m
REM if "%ORACLE_OEM_JAVAMS%" == "" set ORACLE_OEM_JAVAMS=-ms16m
SET JRE=jrew -nojit %ORACLE_OEM_JAVAMX%
SET NT_START=START
if "%ORACLE_OEM_CLIENTTRACE%x" == "x" goto setup_cp
SET JRE=jre -nojit %ORACLE_OEM_JAVAMX% %TRACE%
SET NT_START=
:setup_cp
SET CLASSPATH_QUAL=cp
if "%ORACLE_OEM_JAVARUNTIME%x" == "x" goto jreSetup
SET JRE=%ORACLE_OEM_JAVARUNTIME%\bin\java %ORACLE_OEM_JAVAMX% %TRACE%
SET CLASSPATH_QUAL=classpath
SET CLASSPATHADD=%CLASSPATHADD%;%ORACLE_OEM_JAVARUNTIME%\lib\classes.zip
:jreSetup
SET ME=oemapp
SET USAGE="Usage: %ME% <application_name>"
if Windows_NT == %OS% goto ntCheckAppName
if not "%2%" == "" goto start95
@echo %USAGE%
goto end