#!/bin/sh ## Startup script for Reports Server ## Refer to Install Doc for more detail on each of these environment variables if [ "$1" ] then case $1 in start) action=$1 ;; stop) action=$1 ;; *) echo "`basename $0`: incorrect action specified" echo "Usage: `basename $0` { start | stop } " exit 1 esac shift else echo "`basename $0`: no action specified" echo "Usage: `basename $0` { start | stop } " exit 1 fi ORACLE_HOME=/appl/b/oracle/product/dev6000i; export ORACLE_HOME ## If you need more than one directory in your path, all directories should be ## separated by ':' ## If REPORTS60_NO_DUMMY_PRINTER is set, no printer needs to be set up ## for Reports Server. PATH=$ORACLE_HOME/bin:"$PATH"; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/openwin/lib:/usr/dt/lib:$ORACLE_HOME/network/jre11/lib/sparc/native_threads; export LD_LIBRARY_PATH REPORTS60_NO_DUMMY_PRINTER=; export REPORTS60_NO_DUMMY_PRINTER REPORTS60_CLASSPATH=$ORACLE_HOME/network/jre11/lib/rt.jar:$ORACLE_HOME/reports60/java/myreports60.jar:$ORACLE_HOME/reports60/java/xmlparser.jar; export REPORTS60_CLASSPATH REPORTS60_JNI_LIB=$ORACLE_HOME/network/jre11/lib/sparc/native_threads/libjava.so; export REPORTS60_JNI_LIB REPORTS60_COOKIE_EXPIRE=2; export REPORTS60_COOKIE_EXPIRE #DISPLAY=129.80.90.197:0.0; export DISPLAY DISPLAY=l206361.stortek.com:0.0; export DISPLAY #DISPLAY=`uname -n`:1; export DISPLAY #DISPLAY=glade:1.0;export DISPLAY #REPORTS60_DEFAULT_PIXEL_SIZE=80; export REPORTS60_DEFAULT_PIXEL_SIZE ## setting for reports runtime # Reports Server looks in REPORTS60_PATH for reports to run REPORTS60_PATH=$ORACLE_HOME/reports60:/appl/b/pinnacle/dev:"$REPORTS60_PATH"; export REPORTS60_PATH REPORTS60_WEBLOC=/webcache; export REPORTS60_WEBLOC if [ "$NLS_LANG" = "" ] then NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1; export NLS_LANG fi ## You may need to set TWO_TASK or ORACLE_SID to connect to database #TWO_TASK=; export TWO_TASK ORACLE_SID=; export ORACLE_SID TNS_ADMIN=/var/opt/oracle; export TNS_ADMIN # Stop and start Reports Server echo "\nStopping Reports Server Rep60_glade processes..." pid=`ps -Af | grep rwmts60 | grep Rep60_glade | awk '{print $2}'` if [ "$pid" ] then for cpid in `ps -Af | grep rwrun60 | grep $pid | awk '{print $2}'` do echodo kill -9 $cpid done if (echodo kill -9 $pid) then echo "Reports Server Rep60_glade stopped." else echo "Could not stop Reports Server Rep60_glade." fi else echo "Could not find running instance of Reports Server Rep60_glade" fi if [ "$action" = "start" ] then echo "\nStarting new Reports Server Rep60_glade." echodo rwmts60 name=Rep60_glade $* & sleep 2 echo fi