netca

silmo
23 de Diciembre del 2004
Hola,

Alguien que tenga instalado Oracle9i en Linux podria editar el script netca, por favor?

Adrian
23 de Diciembre del 2004
#!/bin/sh
#
# $Header: netca.sbs 02-aug-2001.16:17:28 zkleiman Exp $
#
# Copyright (c) 1997, 2001, Oracle Corporation. All rights reserved.
#
# NAME
# netca - Shell script to run the Net Configuration Assistant in
# standalone mode.
#
# DESCRIPTION
# Runs Net Configuration 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 creates by doing
# variables substitution at install time.
#
# MODIFIED (MM/DD/YY)
# zkleiman 08/02/01 - .
# mclose 07/25/01 - Fix porting exception for AIX platform.
# zkleiman 04/06/01 - changing opsm.jar to srvm.jar
# zkleiman 09/22/00 - changing opsclust.jar to opsm.jar
# mclose 07/10/00 - Add ewtcompat
# mclose 05/23/00 - Change location of opsclust.jar.
# mclose 10/13/99 - 816 install variable changes
# mclose 09/22/99 - Remove JRE -native flag (990072)
# mclose 09/17/99 - add nls message jar
# rgiardin 09/08/99 - fix swingall.jar classpath entry
# rgiardin 08/13/99 - add ops to classpath
# rgiardin 07/22/99 - add OPS jar to classpath
# mclose 06/24/99 - fixed bug 882986
# mclose 01/28/99 - Add Net API substitution variables
# mclose 12/30/98 - Add check for DISPLAY
# mclose 11/13/98 - Change substitution variable names
# mclose 11/03/98 - Change for sbs to shell script processing
# mclose 10/28/98 - added missing HotJavaBean.jar
# mclose 10/21/98 - 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 " Net8 configuration Assistant 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

# Get or set the platform.
PLATFORM=`uname`

# Unset any existing JAVA_HOME variable to ensure that only
# the JRE we want to use is used.
unset JAVA_HOME

# 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

# External Directory Variables set by the Installer
JREDIR=/home0/oracle/OraHome1/JRE
JLIBDIR=/home0/oracle/OraHome1/jlib
# External File Variables set by the Installer
SHAREJAR=$JLIBDIR/share.jar
EWTJAR=$JLIBDIR/ewt3.jar
EWTOTHER=$JLIBDIR/ewtcompat-3_3_15.jar
SWINGJAR=$JLIBDIR/swingall-1_1_1.jar
HELPJAR=$JLIBDIR/help3.jar:$JLIBDIR/oracle_ice5.jar
NETCFGJAR=$JLIBDIR/netcfg.jar

# OPS Cluster Support File Variable
OPSJAR=$JLIBDIR/srvm.jar

# Net Configuration Assistant Directory Variables
NETJLIBDIR=$ORACLE_HOME/network/jlib
NETTOOLSDIR=$ORACLE_HOME/network/tools

# Net Configuration Assistant File Variables
NETCAJAR=$NETJLIBDIR/netcam.jar:$NETJLIBDIR/netca.jar

# JRE Executable and Class File Variables
JRE=$JREDIR/bin/jre
JREJAR=$JREDIR/lib/rt.jar:$JREDIR/lib/i18n.jar

# Set Classpath for Net Configuration Assistant
CLASSPATH=$NETCAJAR:$NETCFGJAR:$EWTJAR:$HELPJAR:$SHAREJAR:$JREJAR:$EWTOTHER:$SWINGJAR:$NETTOOLSDIR:$
OPSJAR

# Set the shared library path for JNI shared libraries
# Some platforms have different requirements for shared libraries.
# set control variable value to default.
SET_DEFAULT_VAR=YES
# use lib or lib32?
if [ -d ${ORACLE_HOME}/lib32 ]
then SLLIBDIRNAME=lib32
else SLLIBDIRNAME=lib
fi
# for specific platforms reset variables and set others as needed.
case $PLATFORM in "HP-UX")
SET_DEFAULT_VAR=NO
SHLIB_PATH=$ORACLE_HOME/$SLLIBDIRNAME:$ORACLE_HOME/network/$SLLIBDIRNAME:$SHLIB_PATH
export SHLIB_PATH
esac
case $PLATFORM in "AIX")
SET_DEFAULT_VAR=NO
LIBPATH=$ORACLE_HOME/$SLLIBDIRNAME:$ORACLE_HOME/network/$SLLIBDIRNAME:$LIBPATH
export LIBPATH
esac
# if still selected, set the default variable name:LD_LIBRARY_PATH.
case $SET_DEFAULT_VAR in "YES")
LD_LIBRARY_PATH=$ORACLE_HOME/$SLLIBDIRNAME:$ORACLE_HOME/network/$SLLIBDIRNAME:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
esac

#ifdef LINUX
#Use Native Thread
THREADS_FLAG=native
export THREADS_FLAG
#endif

# Run Net Configuration Assistant
cd $NETTOOLSDIR
$JRE -classpath $CLASSPATH oracle.net.ca.NetCA $*
exit $status

silmo
23 de Diciembre del 2004
Gracias Adria,

Pensaba que habría borrado alguna linea del fichero, pero no ha sido así y no consigo solucionar el problema.

Alguien sabe a que se debe este error al ejecutar netca??

./netca: -classpath: command not found