Oracle Forms and Reports 11g Installation on Linux 5.4 Change O/s Configuration and ParametersTake the backup before modifying the O/s configuration files.cp sysctl.conf sysctl.confoldcd /etcvi sysctl.conf Add the following to the Kernel sysctl configuration file for Red Hat Linux# Kernel sysctl configuration file for Red Hat Linux## For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and# sysctl.conf(5) for more details.# Controls IP packet forwardingnet.ipv4.ip_forward = 0# Controls source route verificationnet.ipv4.conf.default.rp_filter = 1# Do not accept source routingnet.ipv4.conf.default.accept_source_route = 0# Controls the System Request debugging functionality of the kernelkernel.sysrq = 0# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applicationskernel.core_uses_pid = 1# Controls the use of TCP syncookiesnet.ipv4.tcp_syncookies = 1# Controls the maximum size of a message, in byteskernel.msgmnb = 65536# Controls the default maxmimum size of a mesage queuekernel.msgmax = 65536# Controls the maximum shared segment size, in byteskernel.shmmax = 68719476736# Controls the maximum number of shared memory segments, in pageskernel.shmall = 4294967296Press Esc +Shift :wq to save the changesPress Esc +Shift :q! to quit without saving the changes Change the Hosts File EntryTake the backup before modifying the hosts file entrycd /etccp hosts hostsoldvi hostsPress Esc +Shift :wq to save the changesPress Esc +Shift :q! to quit without saving the changes
Go to /etc/security (cd /etc/security) and Add or change /etc/security/limits.conf file:vi limits.conf# End of fileoracle hard nofile 4096oracle soft nofile 4096oracle hard nproc 16384oracle soft nproc 2047 Go to /etc/pam.d (cd /etc/pam.d) and Add or change line to the /etc/pam.d/login filevi loginadd the below lines in the filesession required pam_limits.sosession required /lib/security/pam_limits.soPress Esc +Shift :wq to save the changes
Press Esc +Shift :q! to quit without saving the changes The following packages(rpm) are required for Enterprise Linux:checking rpm:rpm –q rpmnamerpm –q elfutils-libelf-devel-0.125-3.el5.i386rpm –q gcc-4.1.2-46.el5.x86_64rpm –q gcc-c++-4.1.2-46.el5.x86_64rpm –q glibc-devel-2.5-42.i386rpm –q libaio-0.3.106-3.2.i386rpm –q libaio-0.3.106-3.2.x86_64rpm –q libaio-devel-0.3.106-3.2.i386rpm –q libaio-devel-0.3.106-3.2.x86_64rpm –q libstdc++-4.1.2-46.el5.i386rpm –q libstdc++-4.1.2-46.el5.x86_64rpm –q libstdc++-devel-4.1.2-46.el5.i386rpm –q libstdc++-devel-4.1.2-46.el5.x86_64rpm –q libXp-1.0.0-8.1.el5.x86_64rpm –q libxp6-1.0.1-2.mga2.i586rpm –q libxp6-1.0.1-3-mdv2012.0.i586
rpm -q openmotif-2.2.3-6.RHEL4.2.i386rpm -q openmotif-2.2.3-9.RHEL4.1.srcrpm -q openmotif22-2.2.3-20.x86_64rpm -q sysstat-7.0.2-3.el5.x86_64rpm -q XFree86-libs-188.8.131.52-25.i386Attached the downloaded rpm hereCreate User and Groups by using below commands:groupadd oinstalluseradd -g oinstall oraclepasswd oracleUnzip the software from the path where it is saved and use the below command to unzip the fileunzip ofm_frmrpts_linux_184.108.40.206.0_64_disk1_1of1.zip Download and install Java JDK1.6 version from the path where it is saved before installing weblogic server./jrockit - jdk1.6.0_22-R28.1.1-4.0.1-linux-x64.bin
Click Next with the default Product Installation DirectoryClick Next without selecting Optional Components
You will get the below confirmation message once the JDK has been installed successfully.
Click on Done to exit from JDK installation.Set JAVA_HOME and path by editing the bash_profile by using below command.vi .bash_profilePATH=$PATH:$HOME/binexport JAVA_HOME=/home/oracle/Oracle/jrockit - jdk1.6.0_22-R28.1.1-4.0.1
export PATH==/home/oracle/Oracle/jrockit - jdk1.6.0_22-R28.1.1-4.0.1/bin:$PATHTo save the changes Esc+Shift+: wqTo quit with out saving the changes Esc+Shift+: q!To effect the changes to the server execute the below command.. .bash_profile Download the web logic server software to the location /tmp/StageApps and install the weblogic server by using the below command.
java -jar wls1035_generic.jar Click Next to continue installation
Create a new Middleware Home and give the location to be installed Click Next and uncheck the "I Wish to" and click Yes to continue
Check the "I Wish to..." and click on Continue to proceed further Continue with default install Type "Typical" and click on Next
Select the installed JDK path and click on Next
Choose default web logic server location and click next to continue WLS installation Click Next
You will get the above screen after installation got success. Uncheck the check box and click onDone. Check the Middleware location in the installed path Go to the Stage directory where the software is downloaded and staged and run the belowcommand to start the installation./runIstaller Select default values for Inventory Directory and Operating System Group Name
Click Ok to continue installation Click Next
Select "Skip Software Updates" and click Next to continue installation
Select "Install and Configure" and click Next to continue installation
Click next to continue and ignore the warning for operating system prerequisite checks
Select the Oracle Middleware Home Location, Web logic server location and Oracle InstanceLocation and click Next to continue installation
Select "Configure For Deployment" and click Next to continue installation
Select "Create Domain" and give the credentials for web logic server em console and click Nextto continue installation
Select at least one developer tools and click Next to continue installation
Select "Auto Port Configuration" and click Next to continue installation
Select "Do Not Use Proxy Settings" and click Next to continue installation
Uncheck "Use Application Identity Store" and click Next to continue installation
Click on "Install" to start the installation You will get the below confirmation dialog once the installation reached 100% and connect toLinux as root and execute the below command
#/home/oracle/Oracle/Middleware/Oracle_FRHome1/oracleRoot.sh Click OK once the script is executed and you will get the below error while configuringand the solution to fix this issue is provided below
As we faced above error while configuring the domain ..modifications done on this issue:1) Make sure that your Hostname and Gateway has properly configured.2) Make sure that below RPM packages are installed or not.libXp-1.0.0-8.1.el5.x86 64.rpmopenmotif22-2.2.3-20.x86 64.rpm3) Make sure that Firewall and Selinux has been Disabled.Root] # service iptables status.Root] # service iptables stop.Refer below links for more information:
http://dirknachbar.blogspot.in/2011_02_01_archive.htmlhttp://dirknachbar.blogspot.in/2011/02/oracle-reports-1111-reports.html Click Next once the configuration reached 100%Click "Finish" once the installation is completed.
Change/add user environment variableslog in as oracleGo to /home/oracleVi .bash_profileAdd the following:.bash_profile# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then. ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport JAVA_HOME=/home/oracle/jrockit-jdk1.6.0_22-R28.1.1-4.0.1export PATH=/home/oracle/jrockit-jdk1.6.0_22-R28.1.1-4.0.1/bin:$PATH:/home/oracle/Oracle/Middleware/Oracle_FRHome1/bin:$PATHexport ORACLE_MIDDLEWARE=/home/oracle/Oracle/Middlewareexport ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_FRHome1export ORACLE_INSTANCE=/home/oracle/Oracle/Middleware/asinst_1exportLD_LIBRARY_PATH=/home/oracle/Oracle/Middleware/Oracle_FRHome1/lib:/home/oracle/Oracle/Middleware/Oracle_FRHome1/jdk/jre/lib/amd64/native_threadsexport FORMS_BUILDER_CLASSPATH=/home/oracle/Oracle/Middleware/Oracle_FRHome1/jlibexport FORMS_PATH=/home/oracle/Oracle/data/myforms
Some Tips to start the servers from Linux:To find any file name use the below commandfind . -name *.DATfind . -name *.lokTo remove any file execute the below commandrm -rf <File name with path>start Admin Server****************cd /home/oracle/Oracle/Middleware/user_projects/domains/ClassicDomain/bin./ startWebLogic.shstart nodeManager******************cd /home/oracle/Oracle/Middleware/wlserver_10.3/server/bin
./ startNodeManager.shstart reports engine******************cd /home/oracle/Oracle/Middleware/asinst_1/bin./opmnctl startallTo find out the status./opmnctl statusTo stop the Engine./opmnctl stopallIf WLS_FORMS and WLS_REPORTS are down, then we need start from Web logic Administrator consolehttp://bias17.bias.com:7001/consoleAdministrator Console: http://bias17.bias.com:7001/consoleEM Console: http://bias17.bias.com:7001/emEMAgent URL: http://bias17.bias.com:5155/emd/mainReports URL: http://bias17.bias.com:8888/reports/rwservletForms URL: http://bias17.bias.com:8888/forms/frmservletAfter successful installation, we need to verify the above links by opening in the web browser and youwill get the below screens.
Configuration Information for reportsName of the File Directory structure on Unixrwbuilder.sh $ORACLE_INSTANCE/config/reports/bin/rwbuilder (executable) $ORACLE_HOME/bin/
Name of the File Directory structure on Unixreports.sh $ORACLE_INSTANCE/config/reports/bin/rwserver.sh $ORACLE_INSTANCE/config/reports/bin/rwclient.sh $ORACLE_INSTANCE/config/reports/bin/rwrun.sh $ORACLE_INSTANCE/config/reports/bin/rwconverter.sh $ORACLE_INSTANCE/config/reports/bin/rwservlet.properties **$DOMAIN_HOME/servers/WLS_REPORTS/stage/reports/reports/configuration/cgicmd.dat **$DOMAIN_HOME/servers/WLS_REPORTS/stage/reports/reports/configuration/rwserver.conf (standalone)$ORACLE_INSTANCE/config/ReportsServerComponent/report_server_name/rwnetwork.conf (standalone)$ORACLE_INSTANCE/config/ReportsServerComponent/report_server_name/rwnetwork.conf $ORACLE_INSTANCE/config/ReportsToolsComponent/ReportsTools/rwserver.conf (in-process)**$DOMAIN_HOME/servers/WLS_REPORTS/stage/reports/reports/configuration/rwnetwork.conf **$DOMAIN_HOME/servers/WLS_REPORTS/stage/reports/reports/configuration/targets.xml $DOMAIN_HOME/sysman/state/opmnctl (executable) $ORACLE_INSTANCE/bin/opmn.xml $ORACLE_INSTANCE/config/OPMN/opmn/uifont.ali$ORACLE_INSTANCE/config/FRComponent/frcommon/guicommon/tk/admin/uiprint.txt$ORACLE_INSTANCE/config/FRComponent/frcommon/guicommon/tk/admin/Tk2motif.rgb$ORACLE_INSTANCE/config/FRComponent/frcommon/guicommon/tk/admin/portlist.ini $ORACLE_HOME/install/httpd.conf $ORACLE_INSTANCE/config/OHS/ohs1/tnsnames.ora $ORACLE_INSTANCE/config/ We need to add the TNS entries in the tnsnames.ora file which is located in the below path/home/oracle/Oracle/Middleware/asinst_1/configDEV =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.43)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = dev.bias.com)))
If we are facing any issue while opening form builder in Linux, just executethe below command as root user]# xhost + To open the form builder in Linux execute below command from the path/home/oracle/Oracle/Middleware/asinst_1/bin./frmbld.sh Move the attached form HR.fmb to the path /home/oracle/Oracle/data/myforms Compile the form HR.fmb by opening it in form builder and it will generate HR.fmx in the samedirectory. Open the deployed form in web browser by using the link below and you will get error as FRM-40010: Cannot read form HR.http://bias17.bias.com:8888/forms/frmservlet?config=hr8&form=HR
If we get this error, then we need to log in into web logic em and need to give theFORMS_PATH for environment configuration as /home/oracle/Oracle/data/myforms After the path provided then click on "Apply" button then will get confirmation messageas "Changes have been applied"
Try again by opening the link in web browser you will get the below screenhttp://bias17.bias.com:8888/forms/frmservlet?config=hr8&form=HRUsername:hr8password:hr8Database:DEV Enter the credentials for the database then the form will open
If you do not want to enter the data base credentials at runtime, you need to configurethem in web logic server em under web configuration.userid= hr8/hr8@DEV
Click on "Apply" button you will get the confirmation "Applying Changes - CompletedSuccessfully" and then click on Close. Try again by opening the link in web browser you will get the below screen and this timeit will not ask for database credentialshttp://bias17.bias.com:8888/forms/frmservlet?config=hr8&form=HR
Starting the In-process Server (Windows and UNIX) for Reports:If you are using Reports Server as an in-process server (the default configuration),sending a run report request starts the in-process server; however, if you are sending arequest through a command line, the servlet must be invoked first using either the runreport URL or the Web command URL. When you have successfully started the servlet,this also means you have successfully started the in-process server.To directly start the in-process server from a URL, enter the following from your Webbrowser:http://bias17.bais.com:8888/reports/rwservlet/startserver