Oracle Reports 12c - The missing configuration steps
Posted by Dirk Nachbar on Monday, August 15, 2016 with 6 comments
Oracle Forms & Reports 12c is released since a quite long time and I had now some chance to have a more detailed look on the Oracle Reports 12c component.
After you have successfully installed and configured the Oracle Forms & Reports 12c, you might find out that your Oracle Reports 12c is not working ... because its not yet configured, even you completed the Configuration Assistent successfully :-)
The following steps are describing the necessary tasks for Linux.
There some steps to take as "Post-Configuration":
At first you need to login to the Fusion Middleware Enterprise Manager, normally http://<your_server_name>:7001/em and access under the menu "Security / Application Roles"
Within the Application Roles option chose from the drop down menu the option reports, than click on the arrow button, mark the line with the Role Name RW_ADMINISTRATOR and finally click the Edit button to modify the selected role
Under "Edit Application Role : RW_ADMINISTRATOR" use the Add button
In the Add Principal screen, select under the option Type "User", click the arrow button and mark the line with the Principal "weblogic" and proceed with the button OK
Now, you are able to access the Reports Status URLs by providing the username and password of the weblogic user
For Example
After you have successfully installed and configured the Oracle Forms & Reports 12c, you might find out that your Oracle Reports 12c is not working ... because its not yet configured, even you completed the Configuration Assistent successfully :-)
The following steps are describing the necessary tasks for Linux.
There some steps to take as "Post-Configuration":
- Create a Reports Tool Instance
- Create a Reports Server Instance
- if you are running under Linux 7 (either Oracle Enterprise Linux or RedHat) fix libXm.so.3 issue
- Adjust the Application Roles within your WebLogic Server Domain
Create a Reports Tool Instance
connect to your Linux server as oracle user and create the necessary Reports Tool Instance via WLST
[oracle@server] cd $ORACLE_HOME/oracle_common/common/bin [oracle@server] ./wlst.sh # replace the password with your password and verify if port 7001 is your Admin Server Port wls:/offline> connect('weblogic','password','localhost:7001') wls:/fr_domain/serverConfig/> createReportsToolsInstance(instanceName='reptools1',machine='AdminServerMachine') wls:/fr_domain/serverConfig/> exit()
The above execution of the createReportsToolsInstance command will create under your DOMAIN_HOME following subdirectories:
- reports/bin
- reports/cache
- reports/fonts
- reports/plugins
- reports/server
Create a Reports Server Instance
connect to your Linux server as oracle user and create the necessary Reports Server Instance via WLST
[oracle@server] cd $ORACLE_HOME/oracle_common/common/bin [oracle@server] ./wlst.sh # replace the password with your password and verify if port 7001 is your Admin Server Port wls:/offline> connect('weblogic','password','localhost:7001') wls:/fr_domain/serverConfig/> createReportsServerInstance(instanceName='rep_server1',machine='AdminServerMachine') wls:/fr_domain/serverConfig/> exit()
libXm.so.3 Problem
in case you are using an Oracle Enterprise Linux 7 or RedHat 7, you need to fix a small libXm.so.3 problem. Oracle Reports is looking for the libXm.so.3, but under OEL 7 and RH7 you will find only a libXm.so.4
Simply perform following steps as root user on your Linux server
[root@server] cd /usr/lib64 [root@server] ls libXm.so* libXm.so.4 libXm.so.4.0.4 [root@server] ln -s /usr/lib64/libXm.so.4 libXm.so.3
Startup your Reports Server Instance
since we have created the Reports Server Instance by attaching to the NodeManager, you must make sure that the NodeManager is up and running and than perform following steps:
[oracle@server] cd $DOMAIN_HOME/bin [oracle@server] ./startComponent.sh rep_server1 . . . Successfully Connected to Node Manager. Starting server rep_server1 ... Successfully started server rep_server1 ... Successfully disconnected from Node Manager. Exiting WebLogic Scripting Tool. Done
Adjust the Application Roles within your WebLogic Server Domain
Within the Application Roles option chose from the drop down menu the option reports, than click on the arrow button, mark the line with the Role Name RW_ADMINISTRATOR and finally click the Edit button to modify the selected role
Under "Edit Application Role : RW_ADMINISTRATOR" use the Add button
In the Add Principal screen, select under the option Type "User", click the arrow button and mark the line with the Principal "weblogic" and proceed with the button OK
The last OK button will redirect you to the Application Roles screen, there simply click the OK button on the top right corner, when everything works fine you will get following Information
Now, you are able to access the Reports Status URLs by providing the username and password of the weblogic user
For Example
- http://<your_server_name>:9002/reports/rwservlet/showenv?server=rep_server1
- http://<your_server_name>:9002/reports/rwservlet/getserverinfo?server=rep_server1
Very helpful as the manual is useless about this step.
ReplyDeleteI can't find anything after running this command
ReplyDelete[root@server] cd /usr/lib64
[root@server] ls libXm.so*
I am on RHEL 7.2 can you please guide me.
Thanks
Hi,
DeleteI assume you have forgotten to install the required motif packages, see here:
https://docs.oracle.com/html/E82037_01/toc.htm#GUID-37C51062-3732-4A4B-8E0E-003D9DFC8C26__ROW1
Cheers
Dirk
Hello Dirk,
ReplyDeleteI have a strange situation for which the approach is not properly defined in Oracle documentation for Forms , it is as below
We are installing Weblogic Cluster via Golden Image from OEM which delivers a Weblogic setup consisting of 5 servers consisting of 2 OHS , 1 Admin and 2 managed server forming a cluster , all part of a domain.
Now on this above setup i need to install Forms and Reports, for installing forms i need to create domain but here i already have one standard Weblogic domain.
So my thought is can i install the Forms and Reports installer and update the existing domain with forms component. Will that work ?
It would really helpful if you can throw some light on this scenario.
Hi Afzal,
Deleteyes, its possible when you have a WebLogic Domain which you want to upgrade with Oracle Forms & Reports.
You will need the Oracle WebLogic Infrastructure Version, not the "normal" WebLogic.
Install your WebLogic Infrastructure, configure a simple Domain. After that install the Oracle Forms & Reports Software over your Oracle WebLogic Server Infrastructure Software Home, then execute the rcu to create the required MetaData Repository for your Oracle Forms & Reports. Finally you can execute the config.sh from $ORACLE_HOME/oracle_common/common/bin to upgrade an existing WebLogic Domain.
Regards
Dirk
You saved my day! Thanks
ReplyDelete