Re: [suse-oracle] Xvfb and compiling reports
"Frits Hoogland" <[email protected]>
| Newsgroups | gmane.linux.suse.oracle.general |
|---|---|
| Message-ID | <[email protected]> |
Silviu,
Indeed forms and reports need a DISPLAY set (since version 1.0.2.1 of the
application server suite to be exact)
It is used for font+screen rendering.
This means it has to be able to be authenticated for the DISPLAY set.
My strong advise is to use Xvfb on the local server. This way, the
authentication can be set to localhost.
Also, the Xvfb server can be started and stopped by the system.
My advise is to set the Xvfb display in the start/stop scripts of the
OAS/IAS components, compile scripts and opmn configuration file.
That way you are not depended upon a display set somewhere.
Here's a stop/start script for xvfb I use:
---begin script---
#!/bin/sh
#
# chkconfig: 2345 90 10
# description: xvfb
# Xvfb is a virtual framebuffer X server.
# This server is used by oracle products for font rendering.
# by frits hoogland, Inter Access
#
# processname: Xvfb
CONFIG=/etc/xvfb.conf
DESKTOP=99
XVFB=/usr/bin/Xvfb
XDPYINFO=/usr/bin/xdpyinfo
# Source function library.
. /etc/init.d/functions
RETVAL=0
start() {
echo –n $"Starting up Xvfb: "
[ -f $CONFIG ] || explodeconfig
$XVFB :$DESKTOP –auth $CONFIG &
RETVAL=$?
[ $RETVAL –eq 0 ] && touch /var/lock/subsys/xvfb
echo
return $RETVAL
}
stop() {
echo –n $"Shutting down Xvfb: "
killproc Xvfb
RETVAL=$?
[ $RETVAL –eq 0 ] && rm –f /var/lock/subsys/xvfb
echo
return $RETVAL
}
dostatus() {
echo –n $"Status of Xvfb: "
XDPYINFO –display :$DESKTOP >/dev/null
RETVAL=$?
If [ $RETVAL –eq 0 ]; then
echo "[ OK ]"
else
echo "[ E R R O R ]"
return $RETVAL
fi
}
explodeconfig() {
echo "localhost" > $CONFIG
}
restart() {
stop
start
}
condrestart() {
[ -e /var/lock/subsys/xvfb ] && restart || :
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
dostatus
;;
restart|reload)
restart
;;
condrestart)
condrestart
;;
*)
echo $"Usage: xvfb {start|start|status|restart|reload|condrestart}"
exit 1
esac
exit $RETVAL
---end script---
On Wed, Apr 9, 2008 at 1:40 PM, Silviu Marin-Caea <[email protected]>
wrote:
> Compiling reports with Oracle Forms&Reports requires to have a $DISPLAY
> even
> if the compilation is done in batch, non-interactively. I don't know of
> any
> other method that does not require a $DISPLAY. Forms can be compiled
> without
> it (usingfrmcmp_batch.sh) , but for reports there doesn't appear to be an
> equivalent.
>
> In SLES9, I had an workaround--ancient wisdom passed on by means of
> copy&paste.
>
> I would put this in /etc/init.d/boot.local:
>
> /usr/bin/X11/Xvfb :1 -screen 0 1024x768x24 &
> /usr/X11R6/bin/mwm -s -display localhost:1 &
>
> Well. in SLES10, this doesn't work anymore because KDM starts by default
> in
> Xvfb.
>
> What can it be done to either:
> 1. prevent KDM from starting in that Xvfb
> 2. start Xvfb with some black magic parameter that will keep it from
> starting
> KDM
>
> Thanks.
> _______________________________________________
> suse-oracle mailing list
> [email protected]
> http://listx.novell.com/mailman/listinfo/suse-oracle
>
_______________________________________________
suse-oracle mailing list
[email protected]
http://listx.novell.com/mailman/listinfo/suse-oracle