#!/bin/sh # # $Header: network_src/utl/netmgr.sbs /stpl_db_11.2.0.3.0_gen/2 2011/01/27 01:23:06 prateeks Exp $ # # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. # # NAME # netmgr - Shell script to run Net Assistant # # DESCRIPTION # Runs the Net Assistant Java Application. This file comes in two # forms its original, with a .sbs extension, and its final, without # a .sbs extension. The .sbs version is source for the final # version which the Oracle Universal Installer creates by # doing variable substitution at install time. # # MODIFIED (MM/DD/YY) # prapatil 04/24/08 - Bug fix for 6456117 # prapatil 04/24/07 - Fix for ldapjclnt11.jar file # dkapoor 10/28/03 - use ice5 # dkapoor 09/15/03 - add jewt # hasriniv 07/02/03 - Fix for bug 2605995 # rasundar 07/03/03 - increased memory limit # ktarkhan 03/04/03 - update classpath # dkapoor 10/21/02 - jre1.3 changes # ktarkhan 12/18/01 - add JNDI jar. # hakali 12/10/01 - use oem lite # hakali 12/07/01 - bug1692102 # mclose 10/01/01 - Add AIX specific test. # npamnani 08/02/01 - fix for bug 1883328 # npamnani 05/16/01 - inserting OH/classes in classpath # npamnani 04/17/01 - fix for bug 1711218 # npamnani 03/19/01 - LIPATH needed for AIX # npamnani 03/12/01 - lib path change for HP-UX # npamnani 01/30/01 - including OemCorbaVisi jar # npamnani 01/19/01 - replace sysmanmaf with oembase # hakali 08/11/00 - change asst to mgr # mclose 07/10/00 - Change location of ewtcompat # mclose 11/19/99 - Update to ewtcompat 3.3.6 # mclose 10/13/99 - 816 install variable changes # mclose 09/22/99 - Remove JRE -native flag (990089) # mclose 09/17/99 - add nls message jar # rgiardin 07/22/99 - update dependency versions # rgiardin 07/14/99 - remove extraneous header info. # rgiardin 07/14/99 - add config jar dependency # mclose 06/24/99 - fixed bug 882986 # mclose 01/14/99 - Update to ewt 3.1.10. # mclose 12/30/98 - Add check for DISPLAY # rgiardin 12/16/98 - stop changing to %TOOLS dir before running mgr # rgiardin 12/07/98 - update ewt version to 3_1_9 # rgiardin 11/20/98 - update ewt ver to 3.1.8.1 # rgiardin 11/18/98 - update ewt version to 318 and remove reference to e # mclose 11/13/98 - Change substitution variable names # rgiardin 11/11/98 - add ewtcompat variable for sed replacement # mclose 11/03/98 - Change for sbs to shell script processing # mclose 10/28/98 - added missing HotJavaBean.jar # mclose 09/02/98 - Update for 8.1.4 # mclose 07/01/98 - Set 8.1.3 location for maf,ewtcompat,ewtdev # mclose 06/04/98 - add $ORACLE_HOME/lib to LD_LIBRARY_PATH # mclose 06/04/98 - Fix possible classpath problem # mclose 06/02/98 - fix Net Assistant schell script for 8.1 # skanjila 10/15/97 - Append current LD_LIBRARY_PATH # skanjila 06/05/97 - Add i18n.jar in classpath # skanjila 05/28/97 - Creation # case $ORACLE_HOME in "") echo "****ORACLE_HOME environment variable not set!" echo " ORACLE_HOME should be set to the main" echo " directory that contains Oracle products." echo " Set and export ORACLE_HOME, then re-run." exit 1;; esac case $DISPLAY in "") echo "****DISPLAY environment variable not set!" echo " Oracle Net Manager is a GUI tool which" echo " requires that DISPLAY specify a location" echo " where GUI tools can display." echo " Set and export DISPLAY, then re-run." exit 1;; esac # Unset any existing JAVA_HOME variable to ensure that only # the JRE we want to use is used. unset JAVA_HOME # External Directory Variables set by the Installer JREDIR=%s_jreLocation% JLIBDIR=%s_jlibDir% # External File Variables set by the Installer SHAREJAR=$JLIBDIR/%s_shareName% SWINGJAR=$JLIBDIR/%s_swingallName% EWTJAR=$JLIBDIR/%s_ewtName% EWTOTHER=$JLIBDIR/%s_ewtCompat% HELPJAR=$JLIBDIR/%s_helpName%:$JLIBDIR/%s_jewtName%:$JLIBDIR/%s_icebrowserName%:$JLIBDIR/%s_icebrowser5Name% NETCFGJAR=$JLIBDIR/%s_netAPIName% JNDIJAR=$JLIBDIR/jndi.jar LDAPCLNT=$JLIBDIR/%s_ldapclnt9%:$JLIBDIR/%s_ldapclnt10%:$JLIBDIR/%s_ldapclnt11% EMLTJAR=$JLIBDIR/%s_emltName% CLASSESROOT=$ORACLE_HOME/classes # Net Assistant Directory Variables NETJLIBDIR=$ORACLE_HOME/network/jlib NETTOOLSDIR=$ORACLE_HOME/network/tools # Net Assistant File Variables NETMGRJAR=$NETJLIBDIR/netmgrm.jar:$NETJLIBDIR/netmgr.jar # JRE Executable and Class File Variables JRE=$JREDIR/bin/java JREJAR=$JREDIR/lib/rt.jar:$JREDIR/lib/i18n.jar # Set Classpath for Net Assistant CLASSPATH=$NETMGRJAR:$LDAPCLNT:$CLASSESROOT:$EMLTJAR:$EWTJAR:$HELPJAR:$SHAREJAR:$JREJAR:$EWTOTHER:$NETCFGJAR:$JNDIJAR:$SWINGJAR:$NETTOOLSDIR # Set the shared library path for JNI shared libraries # A few platforms use an environment variable other than LD_LIBRARY_PATH PLATFORM=`uname` # Some platform may need other JVM environment variables set # or unset as appropriate. case $PLATFORM in "AIX") JAVA_COMPILER=NONE export JAVA_COMPILER esac case $PLATFORM in "Linux") THREADS_FLAG=native export THREADS_FLAG esac # use lib or lib32? # 64bit platforms that still use 32bit JAVA need to reset this SLLIBDIRNAME=lib #set if invoking 64bit java requires flag JAVA64FLAG= case $PLATFORM in "HP-UX") JAVA64FLAG="-d64" SHLIB_PATH=$ORACLE_HOME/$SLLIBDIRNAME:$ORACLE_HOME/network/$SLLIBDIRNAME:$SHLIB_PATH export SHLIB_PATH esac case $PLATFORM in "AIX") LIBPATH=$ORACLE_HOME/$SLLIBDIRNAME:$ORACLE_HOME/network/$SLLIBDIRNAME:$LIBPATH export LIBPATH esac case $PLATFORM in "SunOS") JAVA64FLAG="-d64" esac LD_LIBRARY_PATH=$ORACLE_HOME/$SLLIBDIRNAME:$ORACLE_HOME/network/$SLLIBDIRNAME:$LD_LIBRARY_PATH export LD_LIBRARY_PATH #ifdef LINUX #Use NATIVE thread #THREADS_FLAG=native #export THREADS_FLAG #endif # Run Net Manager $JRE $JAVA64FLAG -Dsun.java2d.font.DisableAlgorithmicStyles=true -Dice.pilots.html4.ignoreNonGenericFonts=true -mx100m -classpath $CLASSPATH oracle.net.mgr.container.NetApplication oracle.net.mgr.container.NetApplication exit $status