Oracle 9iAS配置運行FORM、Report
2024-08-29 13:44:43
供稿:網友
安裝配置應用服務器操作系統安裝Oracle 9iAS 企業版
① Oracle 9i application Server InfrastrUCture ;
其中:Oracle 9iAS Infrastructure Instance Name :ora9ias_is;口令:ora9ias
安裝目錄:d:/Ora9is
② Oracle 9iAs Application Server (Business Intelligence and Forms) ;
其中:Oracle 9iAS Instance Name :ora9ias;口令:ora9ias
安裝目錄:d:/Ora9ias
安裝應用
在D盤新建目錄,目錄名:apps,reptmp
將所有開發好的.fmx,.mmx,.rdf,.rep拷貝到apps目錄下。
配置Oracle FORM Server(表單服務器)No.1修改Oracle Http Server的配置文件:httpd.conf。
該文件一般在D:/Ora9ias/Apache/Apache/conf目錄下。
1、查找“<IfModule mod_alias.c>”字符串,類似添加:
Alias /apps/ "d:/apps/"
Alias /web_code/ "d:/ora9ias/forms90/java/"
2、添加新的Oracle Http Server 的監聽端口:80
查找“Listen 4446”,在其下類似添加:
Listen 80
No.2重新啟動Oracle Http Server:
在Oracle EnterPRise Management web Console 里面
在IE瀏覽器中地址一般為:http://xxxxx:1810/
注重:該地址與安裝oracle9ias的主機名有關。
用戶名:ias_admin;密碼:xxxxxx(既用戶在安裝ora9ias時輸入的密碼)
在Application Server:ora9ias.xxxxx的系統組件中選中“Http Server”,點擊【重新啟動】按鈕,按提示操作。
測試Oracle Http server:http://xxxxx
No.3 打開位于d:/ora9ias/Forms90 erver 目錄下面的Formsweb.cfg 文件,在文件的末尾添加以下內容:
[apps]
envFile=apps.env
form=logon.fmx(注重:這里是你的form應用的入口程序)
No.4 在d:/ora9ias/Forms90 erver 目錄下面 新建一個環境文件:apps.env 。該文件的內容如下:
ORACLE_HOME=D:/ora9ias
FORMS90_PATH=D:/ora9ias/forms90; D:/apps
PATH=D:/ora9ias/bin;D:/ora9ias/jdk/jre/bin erver
GRAPHICS60_PATH= D:/apps
FORMS90_TRACE_PATH=D:/ora9ias/forms90 erver
FORMS90=D:/ora9ias/forms90
CLASSPATH=D:/ora9ias/jlib/debugger.jar;D:/ora9ias/jlib/ewt3.jar;D:/ora9ias/jlib hare.jar;D:/ora9ias/jlib/utj90.jar;D:/ora9ias/forms90/java/f90jdapi.jar
REPORTS_CLASSPATH=D:/ora9ias/jlib/zrclient.jar;D:/ora9ias/reports/jlib/rwrun.jar
NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
No.5在注冊表里面的HKEY_LOCAL_MACHINE/ORACLE/HOME1,添加以下的內容:
FORMS90_PATH d:/apps
REPORTS_PATH d:/apps
REPORTS_TMP d:/REPTMP
No.6拷貝jinit1319.exe:
在apps目錄下面新建JINITIATOR目錄,拷貝jinit1319 .exe 文件到該目錄;
No.7設置程序的入口:
新建index.htm,并修改其中的內容,修改后的內容如下:
<Html>
<HEAD><TITLE>應用名稱</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" >
<FONT FACE="Verdana, Arial, Helvetica" SIZE=2>
<div align="center">
<center>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% height="100%">
<TR>
<TD BGCOLOR="#FFFFFF" COLSPAN=1 ROWSPAN=1 VALIGN="middle" align="center"><img border="0" src="http://www.QQread.com/oracle/apps.jpg"></TD>
</TR>
</TABLE>
</center>
</div>
<P>
<!-- Forms applet definition (start) -->
<OBJECT classid="clsid:CAFECAFE-0013-0001-0009-ABCDEFABCDEF"
codebase="http://xxxxx:7780/apps/jinitiator/jinit1319.exe#Version=1,3,1,9"
WIDTH="1024"
HEIGHT="740"
HSPACE="0"
VSPACE="0">
<PARAM NAME="TYPE" VALUE="application/x-jinit-applet;version=1.3.1.9">
<PARAM NAME="CODEBASE" VALUE="/forms90/java">
<PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >
<PARAM NAME="ARCHIVE" VALUE="/web_code/f90all_jinit.jar" >
<PARAM NAME="serverURL" VALUE="/forms90/l90servlet?ifcfs=/forms90/f90servlet?config=apps">
<PARAM NAME="networkRetries" VALUE="2">
<PARAM NAME="serverArgs"
VALUE="module=logon.fmx">
<PARAM NAME="separateFrame" VALUE="true">
<PARAM NAME="splashScreen" VALUE="no">
<PARAM NAME="lookAndFeel" VALUE="Oracle">
<PARAM NAME="colorScheme" VALUE="titanium">
<PARAM NAME="serverApp" VALUE="apps">
<COMMENT>
<EMBED type="application/x-jinit-applet;version=1.3.1.9"
java_CODE="oracle.forms.engine.Main"
java_CODEBASE="/forms90/java/"
java_ARCHIVE="/web_code/f90all_jinit.jar"
WIDTH=1024
HEIGHT=740
serverURL="/forms90/l90servlet?ifcfs=/forms90/f90servlet?config=apps"
serverArgs="module=logon.fmx"
serverApp="apps"
lookAndFeel="oracle"
colorScheme="Titanium">
<!-- java_showprogress="true" -->
splashScreen="no"
background="7backgr.gif"
separateFrame="true"
<!-- latencycheck="true"-->
pluginspage="http://xxxxx/jinit/doc/us/jinit_download.htm">
<NOEMBED>
</COMMENT>
</NOEMBED></EMBED>
</OBJECT>
<!-- Forms applet definition (end) -->
</BODY>
</HTML>
No.8設置連接數據庫的別名:
在該Oracle_Home 下面新建一個Net8 別名,你應用中所用的連接字符串
No.9重新啟動服務器;No.10訪問:
通過http://xxxxx/apps/index.htm可以訪問到洗選中心調度報表系統。
配置Oracle Report Server(報表服務器) No.1安裝:
這里的rep_apps在安裝時已經建立,你需要進入OEM WEB Console查看
在服務器端運行:rwserver –install rep_apps autostart=yes
No.2配置config文件:
修改d:/ora9ias/reports/conf目錄下面的rep_apps.conf 文件。
<?xml version = '1.0' encoding = 'ISO-8859-1'?>
<!DOCTYPE server PUBLIC "-//Oracle Corp.//DTD Reports Server Configuration //EN" "file:/D:/ora9ias/reports/dtd/rwserverconf.dtd">
<server>
<!--compatible version="6i"/-->
<cache class="oracle.reports.cache.RWCache">
<property name="cacheSize" value="500"/>
<property name="cacheDir" value="d:/ora9ias/reports/cache"/>
<!--property name="maxCacheFileNumber" value="max number of cache files"/-->
<!--property name="ignoreParameters" value="parameter names to be ignored in constructing cache key, separated by comma ','"/-->
</cache>
<!--Please do not change the id for reports engine.-->
<!--The class specifies below is subclass of _EngineClassImplBase and implements EngineInterface.-->
<engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="20" minEngine="1" engLife="20" maxIdle="30" callbackTimeOut="60000" engineResponseTimeOut="15">
<property name="sourceDir" value="d:/apps"/>
<property name="tempDir" value="d:/reptmp"/>
</engine>
<!--environment id="rwEnvId"-->
<!--envVariable name="NLS_LANG" value="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"/-->
<!--/environment-->
<!--engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" initEngine="1" maxEngine="20" minEngine="1" engLife="5" maxIdle="30" callbackTimeOut="60000"/-->
<job joBType="report" engineId="rwEng"/>
<!--job jobType="rwurl" engineId="rwURLEng"/-->
<notification id="mailNotify" class="oracle.reports.server.MailNotify">
<property name="succnotefile" value="succnote.txt"/>
<property name="failnotefile" value="failnote.txt"/>
</notification>
<log option="AllJobs"/>
<!--jobStatusRepository class="oracle.reports.server.JobRepositoryDB">
<property name="repositoryConn" value="repo_db_username/repo_db_passWord@repo_db_tnsname" confidential="yes" encrypted="no"/>
</jobStatusRepository-->
<!--trace traceOpts="trace_all"/-->
<connection maxConnect="20" idleTimeOut="15">
<orbClient id="RWClient" publicKeyFile="clientpub.key"/>
<cluster publicKeyFile="serverpub.key" privateKeyFile="serverpri.key"/>
</connection>
<queue maxQueueSize="10000"/>
<!--identifier confidential="yes" encrypted="no">scott/tiger</identifier-->
<!--pluginParam name="mailServer">%MAILSERVER_NAME%</pluginParam-->
<!--pluginParam name="proxy" type="file">proxyinfo.xml</pluginParam-->
<pluginParam name="xmlpds" type="file">xmlpds.conf</pluginParam>
<pluginParam name="jdbcpds" type="file">jdbcpds.conf</pluginParam>
<pluginParam name="textpds" type="file">textpds.conf</pluginParam>
<identifier confidential="yes" encrypted="yes">RwZAGU2vKUvL19/Y3BmVEg==</identifier>
</server>
No.3重新啟動服務器; No.4測試報表服務器;
通過以下的地址測試Report Server是否正確安裝,
http://xxxxx/reports/rwservlet/showenv?server=rep_apps
假如用http://xxxxx不能訪問,可能只能用ip地址訪問。