安装配置应用服务器操作系统
安装 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 、查找“
1<ifmodule mod_alias.c=""> ”字符串,类似添加:
2
3Alias /apps/ "d:\apps/"
4
5Alias /web_code/ "d:\ora9ias\forms90\java/"
6
72 、 添加新的 Oracle Http Server 的监听端口:80
8
9查找“ Listen 4446 ”,在其下类似添加:
10
11Listen 80
12
13##### No.2重新启动Oracle Http Server:
14
15在 Oracle Enterprise Management web Console 里面
16
17在 IE浏览器中地址一般为: http://xxxxx:1810/
18
19注意:该地址与安装 oracle9ias的主机名有关。
20
21用户名: ias_admin;密码:xxxxxx(既用户在安装ora9ias时输入的密码)
22
23在 Application Server:ora9ias.xxxxx 的系统组件中选中“ Http Server”,点击【重新启动】按钮,按提示操作。
24
25测试 Oracle Http server : http:// xxxxx
26
27##### No.3 打开位于d:\ora9ias\Forms90\server 目录下面的Formsweb.cfg 文件,在文件的末尾添加以下内容:
28
29[apps]
30
31envFile=apps.env
32
33form=logon.fmx(注意:这里是你的form应用的入口程序)
34
35##### No.4 在 d:\ora9ias\Forms90\server 目录下面 新建一个环境文件:apps.env 。该文件的内容如下:
36
37ORACLE_HOME=D:\ora9ias
38
39FORMS90_PATH=D:\ora9ias\forms90; D:\apps
40
41PATH=D:\ora9ias\bin;D:\ora9ias\jdk\jre\bin\server
42
43GRAPHICS60_PATH= D:\apps
44
45FORMS90_TRACE_PATH=D:\ora9ias\forms90\server
46
47FORMS90=D:\ora9ias\forms90
48
49CLASSPATH=D:\ora9ias\jlib\debugger.jar;D:\ora9ias\jlib\ewt3.jar;D:\ora9ias\jlib\share.jar;D:\ora9ias\jlib\utj90.jar;D:\ora9ias\forms90\java\f90jdapi.jar
50
51REPORTS_CLASSPATH=D:\ora9ias\jlib\zrclient.jar;D:\ora9ias\reports\jlib\rwrun.jar
52
53NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
54
55##### No.5在注册表里面的HKEY_LOCAL_MACHINE\ORACLE\HOME1,添加以下的内容:
56
57FORMS90_PATH d:\apps
58
59REPORTS_PATH d:\apps
60
61REPORTS_TMP d:\REPTMP
62
63##### No.6拷贝 jinit1319.exe :
64
65在 apps 目录下面新建 JINITIATOR 目录,拷贝 jinit1319 .exe 文件到该目录;
66
67##### No.7设置程序的入口:
68
69新建 index.htm ,并修改其中的内容,修改后的内容如下:
70
71<html>
72<head><title> 应用名称 </title></head>
73<body bgcolor="#FFFFFF">
74<font face="Verdana, Arial, Helvetica" size="2">
75<div align="center">
76<center>
77<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
78<tr>
79<td align="center" bgcolor="#FFFFFF" colspan="1" rowspan="1" valign="middle"><img border="0" src="apps.jpg"/></td>
80</tr>
81</table>
82</center>
83</div>
84<p>
85<!-- Forms applet definition (start) -->
86<object classid="clsid:CAFECAFE-0013-0001-0009-ABCDEFABCDEF" codebase="http://xxxxx:7780/apps/jinitiator/jinit1319.exe#Version=1,3,1,9" height="740" hspace="0" vspace="0" width="1024">
87<param name="TYPE" value="application/x-jinit-applet;version=1.3.1.9"/>
88<param name="CODEBASE" value="/forms90/java"/>
89<param name="CODE" value="oracle.forms.engine.Main"/>
90<param name="ARCHIVE" value="/web_code/f90all_jinit.jar"/>
91<param name="serverURL" value="/forms90/l90servlet?ifcfs=/forms90/f90servlet?config=apps"/>
92<param name="networkRetries" value="2"/>
93<param name="serverArgs" value="module=logon.fmx"/>
94<param name="separateFrame" value="true"/>
95<param name="splashScreen" value="no"/>
96<param name="lookAndFeel" value="Oracle"/>
97<param name="colorScheme" value="titanium"/>
98<param name="serverApp" value="apps"/>
99<comment>
100<embed colorscheme="Titanium" height="740" java_archive="/web_code/f90all_jinit.jar" java_code="oracle.forms.engine.Main" java_codebase="/forms90/java/" lookandfeel="oracle" serverapp="apps" serverargs="module=logon.fmx" serverurl="/forms90/l90servlet?ifcfs=/forms90/f90servlet?config=apps" type="application/x-jinit-applet;version=1.3.1.9" width="1024"/>
101<!-- java_showprogress="true" \-->
102
103splashScreen="no"
104
105background="7backgr.gif"
106
107separateFrame="true"
108
109<!-- latencycheck="true"-->
110
111pluginspage="http://xxxxx/jinit/doc/us/jinit_download.htm">
112
113<noembed>
114</noembed></comment>
115
116</object>
117<!-- Forms applet definition (end) -->
118</p></font></body>
119</html>
120
121##### No.8设置连接数据库的别名:
122
123在该 Oracle_Home 下面新建一个 Net8 别名,你应用中所用的连接字符串
124
125##### No.9重新启动服务器;
126
127##### No.10访问:
128
129通过 http://xxxxx/apps/index.htm 可以访问到洗选中心调度报表系统。
130
131#### 配置 Oracle Report Server(报表服务器)
132
133##### No.1安装:
134
135这里的 rep_apps 在安装时已经建立,你需要进入 OEM WEB Console 查看
136
137在服务器端运行: rwserver –install rep_apps autostart=yes
138
139##### No.2配置config文件:
140
141修改 d:\ora9ias\reports\conf 目录下面的 rep_apps.conf 文件。
142
143<?xml version = '1.0' encoding = 'ISO-8859-1'?>
144<!DOCTYPE server PUBLIC "-//Oracle Corp.//DTD Reports Server Configuration //EN" "file:/D:/ora9ias/reports/dtd/rwserverconf.dtd">
145
146<server>
147<!--compatible version="6i"/-->
148<cache class="oracle.reports.cache.RWCache">
149<property name="cacheSize" value="500"></property>
150<property name="cacheDir" value="d:\ora9ias\reports\cache"></property>
151<!--property name="maxCacheFileNumber" value="max number of cache files"/-->
152<!--property name="ignoreParameters" value="parameter names to be ignored in constructing cache key, separated by comma ','"/-->
153</cache>
154<!--Please do not change the id for reports engine.-->
155<!--The class specifies below is subclass of _EngineClassImplBase and implements EngineInterface.-->
156<engine callbacktimeout="60000" class="oracle.reports.engine.EngineImpl" engineresponsetimeout="15" englife="20" id="rwEng" initengine="1" maxengine="20" maxidle="30" minengine="1">
157<property name="sourceDir" value="d:\apps"></property>
158<property name="tempDir" value="d:\reptmp"></property>
159</engine>
160<!--environment id="rwEnvId"-->
161<!--envVariable name="NLS_LANG" value="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"/-->
162<!--/environment-->
163<!--engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" initEngine="1" maxEngine="20" minEngine="1" engLife="5" maxIdle="30" callbackTimeOut="60000"/-->
164<job engineid="rwEng" jobtype="report"></job>
165<!--job jobType="rwurl" engineId="rwURLEng"/-->
166<notification class="oracle.reports.server.MailNotify" id="mailNotify">
167<property name="succnotefile" value="succnote.txt"></property>
168<property name="failnotefile" value="failnote.txt"></property>
169</notification>
170<log option="AllJobs"></log>
171<!--jobStatusRepository class="oracle.reports.server.JobRepositoryDB">
172
173<property name="repositoryConn" value="repo_db_username/repo_db_password@repo_db_tnsname" confidential="yes" encrypted="no"/>
174
175</jobStatusRepository-->
176<!--trace traceOpts="trace_all"/-->
177<connection idletimeout="15" maxconnect="20">
178<orbclient id="RWClient" publickeyfile="clientpub.key"></orbclient>
179<cluster privatekeyfile="serverpri.key" publickeyfile="serverpub.key"></cluster>
180</connection>
181<queue maxqueuesize="10000"></queue>
182<!--identifier confidential="yes" encrypted="no">scott/tiger</identifier-->
183<!--pluginParam name="mailServer">%MAILSERVER_NAME%</pluginParam-->
184<!--pluginParam name="proxy" type="file">proxyinfo.xml</pluginParam-->
185<pluginparam name="xmlpds" type="file">xmlpds.conf</pluginparam>
186<pluginparam name="jdbcpds" type="file">jdbcpds.conf</pluginparam>
187<pluginparam name="textpds" type="file">textpds.conf</pluginparam>
188<identifier confidential="yes" encrypted="yes">RwZAGU2vKUvL19/Y3BmVEg==</identifier>
189</server>
190
191##### No.3重新启动服务器;
192
193##### No.4测试报表服务器;
194
195通过以下的地址测试 Report Server 是否正确安装,
196
197http://xxxxx/reports/rwservlet/showenv?server=rep_apps
198
199如果用 http://xxxxx 不能访问,可能只能用 IP 地址访问。</ifmodule>