配置 Oracle Form ---安装 Oracle Form 12 in Linux

安装 Oracle Form 12 in Linux
因为工作原因需要安装 Oracle Form,这是一个比较旧的技术,网上的资料不多,整理和记录安装的过程。

一、安装 Oracle Middleware Infrastructure
二、 安装 Oracle Form
三、安装 Oracle Repository Creation Utility - RCU
四、配置 Oracle Form
五、配置 Oracle Report

配置 Oracle Form, 即安装Oracle Weblogic
准备工作,在第二部已经成功安装 oracle form, 以下是配置工作,重要是建立weblogic 服务步骤比较多。

  1. 进入目录 home/oracle/Oraclehome/Middleware/Oracle_Home/oracle_common/common/bin, 运行命令./config.sh, 进入安装界面,默认就是按照系统提示一步步来进行。
    请添加图片描述
  2. 请注意要选择安装什么?
    Oracle Forms(forms)
    Oracle Enterprise Manager(em)
    Oracle Reports Tools[ReportsToolsComponent]
    Oracle Reports Server[ReportsServerComponent]
    Oracle JRF[oracle_common]
    Weblogic Conherence Cluster Extension[wlserver]
    还有系统默认的选择项目.请添加图片描述

请添加图片描述
4.记住weblogic 密码,很重要。
请添加图片描述
5.

请添加图片描述
6. DBMS/Service 是前面第二大步安装 RCU 时的ORCLPDB, Schema Owner 是之前的BOOK还有密码. 按照下图选择。
请添加图片描述
7.出现此界面,直接点击 下一步,如果正常就是到下一步。如果不正常就得一点点回溯,哪里有问题。
请添加图片描述
8.测试都通过
请添加图片描述
9.选择 Topology and System Components.
请添加图片描述
10.
请添加图片描述
11.
请添加图片描述
12.
请添加图片描述
13.

请添加图片描述
14.

请添加图片描述
15.

请添加图片描述
16.这里要将左侧 AdminServer 移动到右侧,先选择右侧AdminServerMachine 之后,中间出现右侧 箭头,点击此箭头 将左侧移动到右侧。
请添加图片描述
17.

请添加图片描述
18.

请添加图片描述
19.

请添加图片描述
20.

请添加图片描述
21.

请添加图片描述
22.
请添加图片描述
23.

请添加图片描述
24.

请添加图片描述
25.最后一步了,提示weblogic 启动后链接。
请添加图片描述
26.如何启动weblogic, 目录很长使用搜索命令 找到startWebLogic.sh, 运行命令【./startWebLogic.sh】见图修改 frmbld.sh, 在 home/oracle/Oraclehome/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/components/FORMS/instances/forms1/bin 目录,
可以 find -name frmbld.sh,因为目录非常长。
修改 25行,CT_JAVA_HOME设置为 java direction, 修改 45, comment out.
运行 长目录 frmbld.sh, 如果出现如下窗口。
请添加图片描述
27.根据安装成功提示的url,我这里是http://myhouse.com:7001/console,myhouse.com 就是localhost, 指定在/etc/hosts file中, 登录之后的界面。请添加图片描述28. 修改 frmbld.sh, 在 home/oracle/Oraclehome/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/components/FORMS/instances/forms1/bin 目录,
可以 find -name frmbld.sh,因为目录非常长。
修改大概 25行,CT_JAVA_HOME设置为 java directory, 修改 45, comment out.
debug 调试 .sh 文件,可以在文件开始加入 set -x(单独一行), 就可以打印出来每条运行命令,帮助调试、看到 .sh 文件如何运行。
运行 长目录 frmbld.sh, 如果出现如下窗口。

#!/bin/sh
#
# Copyright (c) 2013, 2022, Oracle and/or its affiliates.
#
# frmbld.sh - executable Bourne shell script to run the Forms Builder
#             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:-/home/oracle/Oraclehome/Middleware/Oracle_Home/wlserver/..}
export ORACLE_HOME

#
# Set config time JAVA_HOME as CT_JAVA_HOME 
#
CT_JAVA_HOME=/usr/lib/jdk1.8
export CT_JAVA_HOME

#
# Set FORMS_INSTANCE if not set in the calling environment:
#
FORMS_INSTANCE=${FORMS_INSTANCE:-/home/oracle/Oraclehome/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/components/FORMS/instances/forms1}
export FORMS_INSTANCE

#
# Set DOMAIN_HOME if not set in the calling environment:
#
DOMAIN_HOME=${DOMAIN_HOME:-/home/oracle/Oraclehome/Middleware/Oracle_Home/user_projects/domains/base_domain}
export DOMAIN_HOME

#
# Set O_JDK_HOME if not set in the calling environment:
# If O_JDK_HOME isn't set, try using JAVA_HOME; if that isn't set, then try
# looking in the Oracle_Home
#
#O_JDK_HOME=${O_JDK_HOME:-${JAVA_HOME}}  --NO USE JAVA_HOME ME.
O_JDK_HOME=${O_JDK_HOME:-${CT_JAVA_HOME}}
O_JDK_HOME=${O_JDK_HOME:-/home/oracle/Oraclehome/Middleware/Oracle_Home/wlserver/../oracle_common/jdk}
export O_JDK_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
# separated (e.g. /private/dir1:/private/dir2)
# Note: the current directory is always searched by default
#
# FORMS_PATH=<your application directory 1>:<etc>
# export FORMS_PATH

#
# Set up necessary environment variables for Report builder to run if
# spawn from the Forms builder.  Since it is possible through custom
# install to not have Reports installed when Forms is there, this is
# commented out by default. If you are trying to do Reports integration
# be sure to uncomment this so that the relevant environment variables arde
# set properly.
#
# . $REPORTS_INSTANCE/bin/reports.sh
#

#
# Path for icons (e.g. iconic buttons).
#
# This variable is used by the Form Builder at build-time only.
# The currently supported formats for icons are .ICO, .GIF, and .JPG
#
# To specify where icons are found at runtime, modify the
# Registry.dat file and add the location of your icons.
# Refer to the Forms Deployment Guide for details on modifying
# the contents of Registry.dat
#
# At runtime -- on all platforms -- only .GIF and .JPG formats
# are supported.
#
# UI_ICON=<DOMAIN_HOME>/servers/<WLS_FORMS>/tmp/_WL_user/formsapp_12.2.1/<random_string>/war
# export UI_ICON
# UI_ICON_EXTENSION=ICO
# export UI_ICON_EXTENSION

#
# Java CLASSPATH for the Forms Builder.
# You can add to this path to make your own Java code available
#
FORMS_BUILDER_CLASSPATH=$ORACLE_HOME/jlib/frmbld.jar:$ORACLE_HOME/jlib/importer.jar:$ORACLE_HOME/jlib/debugger.jar:$ORACLE_HOME/jlib/utj.jar:$ORACLE_HOME/oracle_common/jlib/ewt3.jar:$ORACLE_HOME/oracle_common/modules/oracle.bali.share/share.jar:$ORACLE_HOME/jlib/dfc.jar:$ORACLE_HOME/oracle_common/modules/oracle.help/ohj.jar:$ORACLE_HOME/oracle_common/modules/oracle.help/help-share.jar:$ORACLE_HOME/oracle_common/modules/oracle.help/oracle_ice.jar:$ORACLE_HOME/oracle_common/modules/oracle.bali.jewt/jewt4.jar:$ORACLE_HOME/forms/java/frmwebutil.jar:$ORACLE_HOME/forms/java/frmall.jar
export FORMS_BUILDER_CLASSPATH

#
# You may need to set one or more of TNS_ADMIN, TWO_TASK or ORACLE_SID
# to connect to database
#
TNS_ADMIN=${TNS_ADMIN:-/home/oracle/Oraclehome/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig}
export TNS_ADMIN
# TWO_TASK=<your database connect string>; export TWO_TASK
# ORACLE_SID=<ORACLE SID>; export ORACLE_SID

#
# System settings
# ---------------
# You should not normally need to modify these settings.
#
if [ `uname -s` = 'SunOS' ] && [ `uname -p` = 'sparc' ]; then
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$O_JDK_HOME/jre/lib/sparcv9/server:$O_JDK_HOME/jre/lib/sparcv9/native_threads:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
elif [ `uname -s` = 'SunOS' ] && [ `uname -p` = 'i386' ]; then
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$O_JDK_HOME/jre/lib/amd64/server:$O_JDK_HOME/jre/lib/amd64/native_threads:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
elif [ `uname -s` = 'HP-UX' ] && [ `uname -m` = 'ia64' ]; then
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$O_JDK_HOME/jre/lib/IA64W:$O_JDK_HOME/jre/lib/IA64W/server:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
elif [ `uname -s` = 'HP-UX' ]; then
    SHLIB_PATH=$ORACLE_HOME/lib:$O_JDK_HOME/jre/lib/PA_RISC2.0W:$O_JDK_HOME/jre/lib/PA_RISC2.0W/server:$O_JDK_HOME/jre/lib/PA_RISC2.0W/native_threads:$SHLIB_PATH
    export SHLIB_PATH
elif [ `uname -s` = 'AIX' ]; then
    LIBPATH=$ORACLE_HOME/lib:$O_JDK_HOME/jre/bin:$O_JDK_HOME/jre/bin/classic:$LIBPATH
    export LIBPATH
elif [ `uname -s` = 'Linux' ] && [ `uname -m` = 'x86_64' ]; then
    LD_LIBRARY_PATH=$O_JDK_HOME/lib/amd64/server:$O_JDK_HOME/lib/amd64:$O_JDK_HOME/jre/lib/amd64/native_threads:$O_JDK_HOME/jre/lib/amd64/server:$O_JDK_HOME/jre/lib/amd64:$ORACLE_HOME/lib
    export LD_LIBRARY_PATH
else
    echo "Platform you are using is not supported currently."
    exit 1
fi

if [ -z $DISPLAY ]; then
    echo "DISPLAY environment variable required, but is not set.  Please set and retry."
    exit 1
fi

$ORACLE_HOME/bin/frmbld $*

在这里插入图片描述

祝贺配置 Oracle Form, 即安装Oracle Weblogic 成功。

相关资源
安装 Oracle Middleware Infrastructure
安装 Oracle Form
安装 Oracle Repository Creation Utility – RCU
配置 Oracle Form
配置 Oracle Report

其他资源
https://docs.oracle.com/middleware/1221/formsandreports/install-fnr/FRINS.pdf
https://docs.oracle.com/middleware/1221/formsandreports/install-fnr/install.htm
https://oracle-base.com/articles/12c/oracle-forms-and-reports-12c-installation-on-oracle-linux-6-and-7
https://oracle-base.com/articles/19c/oracle-db-19c-installation-on-oracle-linux-7

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值