【求助】有人能帮我dos吗

DOS批处理高手请进
能解释一下这段代码的含义吗?

@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%" == "recursive" goto starts cript

if Windows_NT == %OS% goto :ntSetup

command.com /p /e:8196 /c oemapp recursive %1 %2 %3 %4 %5 %6 %7 %8 %9
goto :end

:ntSetup
setlocal

:starts cript

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

:start95
if "%GBP%" == "true" goto gbp
%JRE% -DORACLE_HOME=E:\oracle\ora92 -DORBdisableLocator=true -Djdbc.backward_compatible_to_816=true %JREOPTIONS_STRING% -%CLASSPATH_QUAL% "%CLASSPATHADD%" oracle.sysman.vtx.vtxOemApp.OemApp %2 %3 %4 %5 %6 %7 %8 %9
goto end

:gbp
%JRE% -DORACLE_HOME=E:\oracle\ora92 -DGENERAL_BUS_PACK="" -DORBdisableLocator=true -Djdbc.backward_compatible_to_816=true %JREOPTIONS_STRING% -%CLASSPATH_QUAL% "%CLASSPATHADD%" oracle.sysman.vtx.vtxOemApp.OemApp %2 %3 %4 %5 %6 %7 %8 %9
goto end

:ntCheckAppName
if not  "%1%" == "" goto startNT
@echo %USAGE%
goto end

:startNT
set ADMIN_WRL=E:\oracle\ora92\sysman\admin
set GBP_PROP=
if "%GBP%" == "true" set GBP_PROP=-DGENERAL_BUS_PACK=""
%NT_START% %JRE% -DADMIN_WRL=%ADMIN_WRL% -DORACLE_HOME=E:\oracle\ora92 %GBP_PROP% -DORBdisableLocator=true -Djdbc.backward_compatible_to_816=true %JREOPTIONS_STRING% -%CLASSPATH_QUAL% "%CLASSPATHADD%" oracle.sysman.vtx.vtxOemApp.OemApp %1 %2 %3 %4 %5 %6 %7 %8 %9
endLocal
:end     Re:【求助】有人能帮我dos吗

设置oracle的运行环境,其实基本上全是java环境     Re:【求助】有人能帮我dos吗

刚开始还可以,后来就晕了,不好意思呀     Re:【求助】有人能帮我dos吗

呵呵,对不起,我还需要学




欢迎光临 空网论坛 (http://bbs.kongweb.net/) 作者: 痛哭的蛙    时间: 2003-8-15 01:54