|
最初由 jc20031010 发布
[B]呵呵,把 frmcmp_batch.sh 打开,把那个 frmcmp_batch 的 path 修改一下。 做前,先留个备份。 [/B]
我重新將frmcmp_batch.sh的ORACLE_HOME
設定為AS 目錄,先前是預設database目錄,難怪抓不到目錄,後來執行出現下列訊息:
FRM-91500: Unable to start/complete the build.
小弟frmcmp_batch.sh 設定如下:
#!/bin/sh
# frmcmp_batch.sh - executable Bourne shell script to run the Forms Compiler
# (Generator) in batch mode after setting up the required
# environment
#
# NOTES
# 1/ The Forms installation process should replace
# <percent>FORMS_ORACLE_HOME<percent> with the correct ORACLE_HOME
# setting. Please make these changes manually if not.
# 2/ Some of the variables below may need to be changed to suite your needs.
# Please refer to the Forms documentation for details.
#
# Set ORACLE_HOME if not set in the calling environment:
#ORACLE_HOME=${ORACLE_HOME:-/u01/app/oracle/OraHome_2}
ORACLE_HOME=/u01/app/oracle/OraHome_2
export ORACLE_HOME
# Search path for Forms applications (.fmb &.fmx files, PL/SQL libraries)
# If you need to include more than one directory, they should be colon
#
FORMS_PATH=$ORACLE_HOME/forms/form9i
# You may need to set one or more of TNS_ADMIN, TWO_TASK or ORACLE_SID
# to connect to database
export TNS_ADMIN
TWO_TASK=homn/homn@test; export TWO_TASK
#
# System settings
# ---------------
# Note: the current directory is always searched by default
#
FORMS_PATH=$ORACLE_HOME/forms/form9i
# You may need to set one or more of TNS_ADMIN, TWO_TASK or ORACLE_SID
# to connect to database
export TNS_ADMIN
TWO_TASK=homn/homn@test; export TWO_TASK
#
# System settings
# ---------------
# You should not normally need to modify these settings.
#
if [ `uname -s` = 'SunOS' ]; then
LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/lib/sparc:$ORACLE_HO
ME/jdk/jre/lib/sparc/native_threads:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
elif [ `uname -s` = 'HP-UX' ]; then
SHLIB_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/lib/PA_RISC:$ORACLE_HOME/
jdk/jre/lib/PA_RISC/server:$SHLIB_PATH
export SHLIB_PATH
elif [ `uname -s` = 'Linux' ]; then
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/jdk/jre/lib/i386/server:$ORACL
E_HOME/jdk/jre/lib/i386/native_threads:$ORACLE_HOME/jdk/jre/lib/i386:$LD_LIBRARY
_PATH
export LD_LIBRARY_PATH
elif [ `uname -s` = 'SunOs' ]; then
LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/lib/sparc:$ORACLE_HO
ME/jdk/jre/lib/sparc/native_threads:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/jdk/jre/lib/sparc:$ORACLE_HOME
/jdk/jre/lib/sparc/native_threads:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
fi
$ORACLE_HOME/bin/frmcmp_batch $* |
|