安装配置应用服务器操作系统
安装 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;
50D:\ora9ias\jlib\utj90.jar;D:\ora9ias\forms90\java\f90jdapi.jar
51
52REPORTS_CLASSPATH=D:\ora9ias\jlib\zrclient.jar;D:\ora9ias\reports\jlib\rwrun.jar
53
54NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
55
56##### No.5在注册表里面的HKEY_LOCAL_MACHINE\ORACLE\HOME1,添加以下的内容:
57
58FORMS90_PATH d:\apps
59
60REPORTS_PATH d:\apps
61
62REPORTS_TMP d:\REPTMP
63
64##### No.6拷贝 jinit1319.exe :
65
66在 apps 目录下面新建 JINITIATOR 目录,拷贝 jinit1319 .exe 文件到该目录;
67
68##### No.7设置程序的入口:
69
70新建 index.htm ,并修改其中的内容,修改后的内容如下:
71
72<html>
73<head><title> 应用名称 </title></head>
74<body bgcolor="#FFFFFF">
75<font face="Verdana, Arial, Helvetica" size="2">
76<div align="center">
77<center>
78<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
79<tr>
80<td align="center" bgcolor="#FFFFFF" colspan="1" rowspan="1" valign="middle"><img border="0" src="http://www.cndw.com/ShowImg.asp?p=/2006-4-13/60528x5aaapps.jpg"/></td>
81</tr>
82</table>
83</center>
84</div>
85<p>
86<!-- Forms applet definition (start) -->
87<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">
88<param name="TYPE" value="application/x-jinit-applet;version=1.3.1.9"/>
89<param name="CODEBASE" value="/forms90/java"/>
90<param name="CODE" value="oracle.forms.engine.Main"/>
91<param name="ARCHIVE" value="/web_code/f90all_jinit.jar"/>
92<param name="serverURL" value="/forms90/l90servlet?ifcfs=/forms90/f90servlet?config=apps"/>
93<param name="networkRetries" value="2"/>
94<param name="serverArgs" value="module=logon.fmx"/>
95<param name="separateFrame" value="true"/>
96<param name="splashScreen" value="no"/>
97<param name="lookAndFeel" value="Oracle"/>
98<param name="colorScheme" value="titanium"/>
99<param name="serverApp" value="apps"/>
100<comment>
101<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"/>
102<!-- java_showprogress="true" \-->
103
104splashScreen="no"
105
106background="7backgr.gif"
107
108separateFrame="true"
109
110<!-- latencycheck="true"-->
111
112pluginspage="http://xxxxx/jinit/doc/us/jinit_download.htm">
113
114<noembed>
115</noembed></comment>
116
117</object>
118<!-- Forms applet definition (end) -->
119</p></font></body>
120</html>
121
122##### No.8设置连接数据库的别名:
123
124在该 Oracle_Home 下面新建一个 Net8 别名,你应用中所用的连接字符串
125
126##### No.9重新启动服务器;
127
128##### No.10访问:
129
130通过 http://xxxxx/apps/index.htm 可以访问到洗选中心调度报表系统。
131
132#### 配置 Oracle Report Server(报表服务器)
133
134##### No.1安装:
135
136这里的 rep_apps 在安装时已经建立,你需要进入 OEM WEB Console 查看
137
138在服务器端运行: rwserver –install rep_apps autostart=yes
139
140##### No.2配置config文件:
141
142修改 d:\ora9ias\reports\conf 目录下面的 rep_apps.conf 文件。
143
144<?xml version = '1.0' encoding = 'ISO-8859-1'?>
145<!DOCTYPE server PUBLIC "-//Oracle Corp.//DTD Reports Server Configuration //EN" "file:/D:/ora9ias/reports/dtd/rwserverconf.dtd">
146
147<server>
148<!--compatible version="6i"/-->
149<cache class="oracle.reports.cache.RWCache">
150<property name="cacheSize" value="500"></property>
151<property name="cacheDir" value="d:\ora9ias\reports\cache"></property>
152<!--property name="maxCacheFileNumber" value="max number of cache files"/-->
153<!--property name="ignoreParameters" value="parameter names to be ignored in constructing cache key, separated by comma ','"/-->
154</cache>
155<!--Please do not change the id for reports engine.-->
156<!--The class specifies below is subclass of _EngineClassImplBase and implements EngineInterface.-->
157<engine callbacktimeout="60000" class="oracle.reports.engine.EngineImpl" engineresponsetimeout="15" englife="20" id="rwEng" initengine="1" maxengine="20" maxidle="30" minengine="1">
158<property name="sourceDir" value="d:\apps"></property>
159<property name="tempDir" value="d:\reptmp"></property>
160</engine>
161<!--environment id="rwEnvId"-->
162<!--envVariable name="NLS_LANG" value="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"/-->
163<!--/environment-->
164<!--engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" initEngine="1" maxEngine="20" minEngine="1" engLife="5" maxIdle="30" callbackTimeOut="60000"/-->
165<job engineid="rwEng" jobtype="report"></job>
166<!--job jobType="rwurl" engineId="rwURLEng"/-->
167<notification class="oracle.reports.server.MailNotify" id="mailNotify">
168<property name="succnotefile" value="succnote.txt"></property>
169<property name="failnotefile" value="failnote.txt"></property>
170</notification>
171<log option="AllJobs"></log>
172<!--jobStatusRepository class="oracle.reports.server.JobRepositoryDB">
173
174<property name="repositoryConn" value="repo_db_username/repo_db_password@repo_db_tnsname" confidential="yes" encrypted="no"/>
175
176</jobStatusRepository-->
177<!--trace traceOpts="trace_all"/-->
178<connection idletimeout="15" maxconnect="20">
179<orbclient id="RWClient" publickeyfile="clientpub.key"></orbclient>
180<cluster privatekeyfile="serverpri.key" publickeyfile="serverpub.key"></cluster>
181</connection>
182<queue maxqueuesize="10000"></queue>
183<!--identifier confidential="yes" encrypted="no">scott/tiger</identifier-->
184<!--pluginParam name="mailServer">%MAILSERVER_NAME%</pluginParam-->
185<!--pluginParam name="proxy" type="file">proxyinfo.xml</pluginParam-->
186<pluginparam name="xmlpds" type="file">xmlpds.conf</pluginparam>
187<pluginparam name="jdbcpds" type="file">jdbcpds.conf</pluginparam>
188<pluginparam name="textpds" type="file">textpds.conf</pluginparam>
189<identifier confidential="yes" encrypted="yes">RwZAGU2vKUvL19/Y3BmVEg==</identifier>
190</server>
191
192##### No.3重新启动服务器;
193
194##### No.4测试报表服务器;
195
196通过以下的地址测试 Report Server 是否正确安装,
197
198http://xxxxx/reports/rwservlet/showenv?server=rep_apps
199
200如果用 http://xxxxx 不能访问,可能只能用 IP 地址访问。</ifmodule>