Showing posts with label WebCenter. Show all posts
Showing posts with label WebCenter. Show all posts

Wednesday, June 15, 2011

Too many open files in Linux systems when running FMW applications

This is the most common issue with linux system & you may notice the error message like 'Too many open files' while running SOA or WebCenter or OSB servers.

The solutions is to,

Edit /etc/security/limits.conf file & add below
<user> soft nofile 4096
<user> hard nofile 4096


Note - Replace <user> with actual os user name.
 

If you want to apply the above to all the user, then
* soft nofile 4096
* hard nofile 4096

Edit the /etc/pam.d/system-auth, and add this entry:
session required /lib/security/$ISA/pam_limits.so

Edit /etc/pam.d/login and add the below:
session required pam_limits.so

Adding "session required pam_limits.so" to /etc/pam.d/login and /etc/pam.d/sshd

Edit /etc/sysctl.conf file and put following line so that after reboot the setting will remain as it is:
# vi /etc/sysctl.conf
Append a config directive as follows:
fs.file-max = 100000

Try "sysctl -p" as root or Restart your machine.

After this change open a new terminal and issue ulimit -a.

Tuesday, June 14, 2011

If startManagedWeblogic.sh soa_server fails in 11g SOA

Problem:

When starting managed server for soa_server, the following error is shown in the console.

Enter username to boot WebLogic server:admin
<Jul 21, 2009 6:34:46 PM EDT> <Error> <Security> <BEA-090783> <Server is Running in Development Mode and Native Library(terminalio) to read the password securely from commandline is not found.> 
<Jul 21, 2009 6:34:46 PM EDT> <Notice> <WebLogicServer> <BEA-000388> <JVM called WLS shutdown hook. The server will force shutdown now> 
<Jul 21, 2009 6:34:46 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN> 

Solution:-

Set environment variable as below.

JAVA_OPTIONS=-Dweblogic.management.allowPasswordEcho=true

Wednesday, June 8, 2011

Installing Oracle XE 11.2.0.0.5 , Weblogic 10.3.5 and SOA 11.1.1.5.0 in 64 bit CentOS 5.6

Make sure that you have downloaded all the required files for installation. I installed all the products in 64 bit CentOS 5.6 release.

Confirm your system type by following:
# uname -i
x86_64
# uname -a
Linux dhcpfbb8t-47.mdacc.tmc.edu 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:22:04 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/*release*
cat: /etc/lsb-release.d: Is a directory
CentOS release 5.6 (Final)

JDK 1.6 - jdk-6u27-ea-bin-b01-linux-amd64-18_may_2011.bin
Install jdk as root user and set the JAVA_HOME in the ~/.bashrc file

export JAVA_HOME=/opt/jdk1.6.27
export PATH=$JAVA_HOME/bin:$PATH

JDeveloper - jdevstudio11115install.bin
Install jdeveloper as root user and set the JDEV_HOME in ~/.bashrc file.

export JDEV_HOME=/opt/jdk1.6.27
export PATH=$JAVA_HOME/bin:$JDEV_HOME/bin:$PATH

Oracle XE - oracle-xe-11.2.0-0.5.x86_64.rpm
Download the above file and install as root user

rpm -ivh oracle-xe-11.2.0-0.5.x86_64.rpm

Now edit the ~/.bashrc and make the below changes.
export ORACLE_HOME="/u01/app/oracle/product/11.2.0/xe"
export PATH=$ORACLE_HOME/bin:$JAVA_HOME/bin:$JDEV_HOME/jdev/bin:$PATH
After the installation, you need to change the processes and sessions values using sqlplus.

sqlplus sys/<password>@<sid> as sysdba;

SQL> ALTER SYSTEM SET PROCESSES=900 SCOPE=SPFILE;

System altered.


SQL> ALTER SYSTEM SET SESSIONS=900 SCOPE=SPFILE;

System altered.

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Now start the database again by
/etc/init.d/oracle-xe start

Before proceeding further, you need to make sure that you have all the required os packages are installed.

yum install compat-libstdc++-296 binutils compat-db control-center gcc gcc-c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio openmotif21 libaio-devel-0.3.106 compat-libstdc++-33 unixODBC-2.2.11 unixODBC-devel-2.2.11 elfutils-libelf-devel

Also edit /etc/security/limits.conf and make the below changes
oracle          hard    nofile  4096
oracle          soft    nofile  4096

Create Schemas using RCU - ofm_rcu_linux_11.1.1.5.0_disk1_1of1.zip
Unzip and Run the command 'rcuHome/bin/rcu' an install schemas for SOA and webcenter.(Ignore warnings)

Oracle Weblogic 10.3.5 - wls1035_generic.jar
Now we are ready to install weblogic.
java -d64 -jar wls1035_generic.jar
Oracle SOA 11g
ofm_soa_generic_11.1.1.5.0_disk1_1of2.zip
ofm_soa_generic_11.1.1.5.0_disk1_2of2.zip

Download the above files and unzip to a directory. Now run the installater (./runInstaller) from Disk1.
Oracle UCM 11g
ofm_ecm_generic_11.1.1.5.0_disk1_1of2.zip
ofm_ecm_generic_11.1.1.5.0_disk1_2of2.zip
Oracle OSB 11g
ofm_osb_generic_11.1.1.5.0_disk1_1of1.zip


Oracle WebCenter 11g
ofm_wc_generic_11.1.1.5.0_disk1_1of1.zip