cancel
Showing results for 
Search instead for 
Did you mean: 

xterm and Oracle Report

Rushank
Super Advisor

xterm and Oracle Report

I'm trying to run Oracle report to generate HTML Documents. This required a Xterm session always from a x-client . If user's pc terminates x' session for some reason Oracle Report does not run and gives "REP3000:Internet Error Starting Oracle Toolkit.
The server (L-Class OS 11.00) Does not have Graphics card.

I tried configuring xvfb on this serverWith the help of Document ID: KBRC00007660. This started a xclock and and a xfs process on the server. These two processes are always runs on the server but still I'm not able to run report.
/usr/bin/X11/xclock -display :10

/usr/bin/X11/xfs -config /etc/X11/fs/config -port 7000 -daem

How do I make Oracle report to run always ??
What configuration is required from a client side.?

8 REPLIES
Alex Glennie
Honored Contributor

Re: xterm and Oracle Report

I do not know why Oracle has problems even thoough xvfb has been configured OK but it could be the same reason as why OV Clients have problems if it is the resolution may be found below :

The table below contains an rc startup/shutdown shell script, which is being provided as an example to automate the startup of the Motif Window Manager (/usr/bin/X11/mwm) on the Virtual Framebuffer X Server.

Save the following code in the /sbin/init.d/mwm_xvfb file with read and execute permissions for everyone (555):

chmod 555 /sbin/init.d/mwm_xvfb

#!/sbin/sh
#
# Start Motif Window Manager on XVfb X server
#

PATH=/sbin:/usr/sbin:/usr/bin:
export PATH

MWM_PIDFILE=/var/run/mwm_xvfb.pid

rval=0
set_return() {
x=$?
if [ $x -ne 0 ]; then
echo "ERROR CODE $x"
rval=1
fi
}

if [ -f /etc/rc.config.d/xvfb ] ; then
. /etc/rc.config.d/xvfb
else
echo "ERROR: /etc/rc.config.d/xvfb defaults file MISSING"
fi

export UNIX95=1

case $1 in
start_msg)
echo "Start Motif WM on XVfb X server"
;;

stop_msg)
echo "Stopping Motif WM on XVfb X server"
;;

start)
if [ "$START_XVFB" -eq 1 ]; then
touch $MWM_PIDFILE
pid="$(cat $MWM_PIDFILE)"
if [ "$pid" = "$(ps -C mwm -opid=)" ]; then
echo Motif WM already running on :${DNUM}
rval=2
else
sleep 5
/usr/bin/X11/xset -q -display :${DNUM} >/dev/null && (
/usr/bin/X11/mwm -display :${DNUM} &
echo $! > $MWM_PIDFILE )
set_return
echo Motif WM started on display :${DNUM}
fi
else
rval=2
fi

;;

stop)
if [ ! -f $MWM_PIDFILE ]; then
rval=2
echo "Unable to identify Motif WM on XVfb X server"
else
pid=$(cat $MWM_PIDFILE)
if [ "$pid" = "$(ps -C mwm -opid=)" ]; then
kill -9 $pid
set_return
echo "Motif WM on XVfb X server stopped"
else
rval=2
echo "Cannot verify Motif WM on XVfb X server"
fi
fi
rm -rf $MWM_PIDFILE
;;
*)
echo "usage: $0 {start|stop}"
;;
esac

unset UNIX95

exit $rval





To automate the startup/shutdown of the Motif Window Manager with the Virtual Framebuffer X Server, create the following symbolic links:

ln -s /sbin/init.d/mwm_xvfb /sbin/rc3.d/S810mwm_xvfb
ln -s /sbin/init.d/mwm_xvfb /sbin/rc3.d/K190mwm_xvfb




Rushank
Super Advisor

Re: xterm and Oracle Report

Alex,

/usr/bin/X11/mwm -display :10

The mwm process is also running with the screen # 10.
I tried to run the script you gave And I get this error


mwm: Another window manager is running on screen 0 (Why it's showing scrren 0 ??)

mwm: Unable to manage any screens on display



Rushank
Super Advisor

Re: xterm and Oracle Report


Still not working anybody else have any clue..????

Alex Glennie
Honored Contributor

Re: xterm and Oracle Report

Been away ....sorting out a desk move ....

All I can think of checking is that you have no conflicting process aka window managers starting .... ie mwm,dtwm,xdm or vuewm ....

if they are perhaps /usr/dt/config/Xservers is resposible ? last line tells X to start locally ....

unfortuantly I'm about to go off line for Easter ..... hopefully someone else can pick this up .....
Rushank
Super Advisor

Re: xterm and Oracle Report

Alex,
What do you want me to check..?

I've these process on my server right now related to X sessions

/usr/bin/X11/xfs -config /etc/X11/fs/config -port 7000 -daem

/usr/bin/X11/xclock -display :10

/usr/bin/X11/mwm -display :10

DoI have to export Display from a pc to test this out..??
Rushank
Super Advisor

Re: xterm and Oracle Report

Started working once the Oracle report server restarted

Case closed.
Ryan Kogelheide
Frequent Advisor

Re: xterm and Oracle Report

Woah! Cool!

You're the first person I've seen get this going properly. You should consider putting a FAQ together on this and posting it to orafaq.org or requesting that Oracle put it on metalink.

Tim Nelson
Honored Contributor

Re: xterm and Oracle Report

FYI,
This solution solved our latest Oracle pain as well.
Install the latest Xserver Cumulative patch.
In a boot script:
Start Xvfb (e.g. Xvfb :y) ( y=pick a non zero non used virtual display number, e.g. y=5)
Start mwm in Xvfb ( mwm -display :5)