Configuring a Reports Server in Oracle WebLogic Forms & Reports 12.2.1
Configuring a Reports Server in Oracle WebLogic Forms & Reports 12.2.1
Step 1 - Execure the wlst.sh script
[weblogic@testserver-k app]$ cd /u01/app/oracle/product/12.2.1/oracle_common/common/bin/
[weblogic@testserver-k bin]$ ./wlst.sh
Step 2 - Connect using the correct credentials and execute the following commands.
wls:/offline> connect ("weblogic","<weblogic_pwd>","<hostname>:7001")
wls:/frsdomain/serverConfig/> createReportsServerInstance(instanceName='repserver1',machine='AdminServerMachine')
Step 3 - Configure the reports server instance created.
[weblogic@testserver-k app]$ vi $DOMAIN_HOME/config/fmwconfig/servers/WLS_REPORTS/applications/reports_12.2.1/configuration/rwservlet.properties
<?xml version="1.0" encoding="UTF-8"?>
<rwservlet xmlns="http://xmlns.oracle.com/reports/rwservlet/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<server>repserver1</server> #Instance name you used above
<singlesignon>no</singlesignon>
<inprocess>yes</inprocess>
<webcommandaccess>L2</webcommandaccess>
</rwservlet>
[weblogic@testserver-k u01]$ cd $DOMAIN_HOME/reports/bin
If you cannot locate the reports directory within the DOMAIN_HOME try starting the reports server using the below command:
[weblogic@testserver-k u01]$ cd $DOMAIN_HOME/bin
[weblogic@testserver-k u01]$ ./startComponent.sh repserver1
Then check again to see whether the reports directory is present within the DOMAIN_HOME.
[weblogic@testserver-k bin]$ vi reports.sh
FROM:
## setting for Reports Runtime
RW=${ORACLE_HOME}/reports; export RW
REPORTS_PATH=${ORACLE_HOME}/reports/templates:${ORACLE_HOME}/reports/samples/demo:${ORACLE_HOME}/reports/printers:${DOMAIN_HOME}/reports/fonts:${REPORTS_PATH}; export REPORTS_PATH
TO:
## setting for Reports Runtime
RW=${ORACLE_HOME}/reports; export RW
#REPORTS_PATH=${ORACLE_HOME}/reports/templates:${ORACLE_HOME}/reports/samples/demo:${ORACLE_HOME}/reports/printers:${DOMAIN_HOME}/reports/fonts:${REPORTS_PATH}; export REPORTS_PATH
REPORTS_PATH=/u01/SOURCES/LIVE/CLASSIC/REPORTS; export REPORTS_PATH
Step 4 - Edit the rwserver.conf file and add the report paths
[weblogic@testserver-k u01]$ cd $DOMAIN_HOME/config/fmwconfig/servers/CLASSIC_REPORTS/applications/reports_12.2.1/configuration
[weblogic@testserver-k configuration]$ vi rwserver.conf
<engine id="rwEng" class="oracle.reports.engine.EngineImpl" maxEngine="5" minEngine="1" engLife="50" >
<property name="sourceDir" value="path/to/the/location/of/the/reports"/>
<property name="tempDir" value="/u01/tmp_rep_classic"/>
<!--property name="keepConnection" value="yes"/-->
</engine>
<engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" maxEngine="1" minEngine="0" engLife="50" />
Step 5 - Add correct entries to the tnsnames.ora file located at the following directory
[weblogic@testserver-k FORMS]$ cd /u01/app/oracle/product/12.2.1/user_projects/domains/classic_new_domain/config/fmwconfig
[weblogic@testserver-k fmwconfig]$ vi tnsnames.ora
<tns-alias> =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <ip-address>)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = <service-name>)
)
)
Comments
Post a Comment