Oracle forms and reports 11g installation on linux


Published on

Oracle Forms and Reports 11g Installation on Linux

Published in: Technology
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Oracle forms and reports 11g installation on linux

  1. 1. 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
  2. 2. # 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
  3. 3.  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
  4. 4. 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
  5. 5. 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- 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 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
  6. 6. Click Next to install the JDK
  7. 7. Click Next with the default Product Installation DirectoryClick Next without selecting Optional Components
  8. 8. You will get the below confirmation message once the JDK has been installed successfully.
  9. 9. Click on Done to exit from JDK installation.Set JAVA_HOME and path by editing the bash_profile by using below .bash_profilePATH=$PATH:$HOME/binexport JAVA_HOME=/home/oracle/Oracle/jrockit - jdk1.6.0_22-R28.1.1-4.0.1
  10. 10. 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.
  11. 11. java -jar wls1035_generic.jar Click Next to continue installation
  12. 12.  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
  13. 13.  Check the "I Wish to..." and click on Continue to proceed further Continue with default install Type "Typical" and click on Next
  14. 14.  Select the installed JDK path and click on Next
  15. 15.  Choose default web logic server location and click next to continue WLS installation Click Next
  16. 16.  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
  17. 17.  Click Ok to continue installation Click Next
  18. 18.  Select "Skip Software Updates" and click Next to continue installation
  19. 19.  Select "Install and Configure" and click Next to continue installation
  20. 20.  Click next to continue and ignore the warning for operating system prerequisite checks
  21. 21.  Select the Oracle Middleware Home Location, Web logic server location and Oracle InstanceLocation and click Next to continue installation
  22. 22.  Select "Configure For Deployment" and click Next to continue installation
  23. 23.  Select "Create Domain" and give the credentials for web logic server em console and click Nextto continue installation
  24. 24.  Select at least one developer tools and click Next to continue installation
  25. 25.  Select "Auto Port Configuration" and click Next to continue installation
  26. 26.  Select "Do Not Use Proxy Settings" and click Next to continue installation
  27. 27.  Uncheck "Use Application Identity Store" and click Next to continue installation
  28. 28.  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
  29. 29. #/home/oracle/Oracle/Middleware/Oracle_FRHome1/ 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
  30. 30. 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:
  31. 31. Click Next once the configuration reached 100%Click "Finish" once the installation is completed.
  32. 32.  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
  33. 33. 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
  34. 34. ./ 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 console Console: Console: URL: URL: URL: successful installation, we need to verify the above links by opening in the web browser and youwill get the below screens.
  35. 35. Configuration Information for reportsName of the File Directory structure on $ORACLE_INSTANCE/config/reports/bin/rwbuilder (executable) $ORACLE_HOME/bin/
  36. 36. Name of the File Directory structure on $ORACLE_INSTANCE/config/reports/bin/ $ORACLE_INSTANCE/config/reports/bin/ $ORACLE_INSTANCE/config/reports/bin/ $ORACLE_INSTANCE/config/reports/bin/ $ORACLE_INSTANCE/config/reports/bin/ **$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 = = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME =
  37. 37.  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./ 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.
  38. 38.  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"
  39. 39.  Try again by opening the link in web browser you will get the below screen Enter the credentials for the database then the form will open
  40. 40.  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
  41. 41.  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 credentials
  42. 42. 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: