Oracle FMW Install and Startup Scripts
|
These are linux commands that can be used on Fedora 16 or Oracle Enterprise Linux OS, that runs Database 11gR2. This is not a complete instillation guide but it does help in finding the order of commands to install and start SOA / Webcenter Portal / Webcenter Content
Oracle Enterprise Linux Disable Firewall
|
If you wish to access the URLs of your VM outside the VM, then with in the VM you need to disable the firewall settings as shown below. if not you will not be able to access URLs such as http://oel62:7001/console outside the virtual machine , if you are using VM to access a server you can keep the Network setting as BRIDGED
[james@james soa]$ su
Password:
[root@james soa]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@james soa]# service iptables stop
Redirecting to /bin/systemctl stop iptables.service
[root@james soa]# chkconfig iptables off
Note: Forwarding request to 'systemctl disable iptables.service'.
If you are manually starting the Database here is what you need to do.
james@james-laptop:~$ ssh oracle@oel62
oracle@oel62's password:
Last login: Wed May 2 16:30:31 2012 from ipaddress
[oracle@oel62 ~]$ cd /u01/app/oracle/product/11.2.0.3/dbhome_1/bin
[oracle@oel62 bin]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1
[oracle@oel62 bin]$ export ORACLE_SID=orcl
[oracle@oel62 bin]$ ./sqlplus /nolog
SQL*Plus: Release 11.2.0.3.0 Production on Wed May 2 18:17:42 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 797523968 bytes
Fixed Size 2232592 bytes
Variable Size 557846256 bytes
Database Buffers 234881024 bytes
Redo Buffers 2564096 bytes
Database mounted.
Database opened.
SQL> quit
Disconnected from Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
[oracle@oel62 bin]$ ./lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 02-MAY-2012 18:18:49
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0.3/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0.3/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/oel62/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1522)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oel62)(PORT=1522)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 02-MAY-2012 18:18:51
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0.3/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/oel62/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oel62)(PORT=1522)))
The listener supports no services
The command completed successfully
setting processes parameter on db
|
[james@james ~]$ cd /home/james/app/james/product/11.2.0/dbhome_1/
[james@james dbhome_1]$ cd bin
[james@james bin]$ pwd
/home/james/app/james/product/11.2.0/dbhome_1/bin
[james@james bin]$ cd /home/james/app/james/product/11.2.0/dbhome_1/bin
[james@james bin]$ export ORACLE_HOME=/home/james/app/james/product/11.2.0/dbhome_1
[james@james bin]$ export ORACLE_SID=orcl
[james@james bin]$ ./sqlplus /nolog
SQL*Plus: Release 11.2.0.3.0 Production on Thu May 24 11:27:42 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 2355015680 bytes
Fixed Size 2230592 bytes
Variable Size 553649856 bytes
Database Buffers 1778384896 bytes
Redo Buffers 20750336 bytes
Database mounted.
Database opened.
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[james@james bin]$ ./lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 24-MAY-2012 11:30:03
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /home/james/app/james/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /home/james/app/james/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /home/james/app/james/diag/tnslsnr/james/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 24-MAY-2012 11:30:33
Uptime 0 days 0 hr. 1 min. 15 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/james/app/james/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /home/james/app/james/diag/tnslsnr/james/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
The listener supports no services
The command completed successfully
[james@james bin]$ ./sqlplus /nolog
SQL*Plus: Release 11.2.0.3.0 Production on Thu May 24 11:41:02 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected.
SQL> alter system set processes=400 scope=spfile;
System altered.
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 2355015680 bytes
Fixed Size 2230592 bytes
Variable Size 553649856 bytes
Database Buffers 1778384896 bytes
Redo Buffers 20750336 bytes
Database mounted.
Database opened.
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[james@james bin]$ ./lsnrctl start
[james@james bin]$ cd /home/james/Downloads/Oracle/PS5/RCU/rcuHome/bin/
[james@james bin]$ export RCU_JDBC_TRIM_BLOCKS=TRUE
[james@james bin]$ ./rcu
Failed to initialize logger with location :/home/james/Downloads/Oracle/PS5/RCU/rcuHome/rcu/log/logdir.2012-05-24_11-37/rcu.log
Initializing logger using the following location :/tmp/logdir.2012-05-24_11-37/rcu.log
installing weblogic server
|
[james@james SOA]$ export JAVA_HOME=/home/james/Oracle/jdk1.6.0_30/
[james@james SOA]$ java -jar wls1036_generic.jar
Extracting 0%..............................................................
......................................100%
May 24, 2012 12:03:36 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
Installing SOA Suite PS5 – domain create
|
[james@james SOA]$ unzip ofm_soa_generic_11.1.1.6.0_disk1_2of2.zip
....
[james@james SOA]$ unzip ofm_soa_generic_11.1.1.6.0_disk2_2of2.zip
...
[james@james Disk1]$ ./runInstaller -jreLoc /home/james/Oracle/jdk1.6.0_30/jre
Configure SOA Domain include SOA + BPM + BAM + EM
[james@james bin]$ cd /home/james/Oracle/Middleware/oracle_common/common/bin
[james@james bin]$ ./config.sh
Handling Out of Memory Exception
|
If you dont edit setSOADomain.env file you might be bugged down by Out of Memory Exceptions, so here is my settings
pwd
/home/james/Oracle/Middleware/user_projects/domains/wc_domain/bin
james@james:~/Oracle/Middleware/user_projects/domains/wc_domain/bin$ gedit setSOADomainEnv.sh
....
DEFAULT_MEM_ARGS="-Xms768m -Xmx1536m"
PORT_MEM_ARGS="-Xms768m -Xmx1536m"
...
if [ "${JAVA_VENDOR}" != "Oracle" ] ; then
DEFAULT_MEM_ARGS="${DEFAULT_MEM_ARGS} -XX:PermSize=768m -XX:MaxPermSize=1536m"
PORT_MEM_ARGS="${PORT_MEM_ARGS} -XX:PermSize=768m -XX:MaxPermSize=1536m"
fi
...
boot.properties : Every time weblogic Managed Server such as bam_server1 starts it asks for username and password, create a simple boot.properties file with following lines
username=weblogic
password=welcome1
and place this file in following directory for all corresponding Managed servers , this helps to avoiding password typing during startups.
/home/<>/Oracle/<> /user_projects/domains//servers//security
for example
/home/james/Oracle/Middleware/user_projects/domains/wc_domain/servers/UCM_server1/security
james@james-laptop:~$ ssh oracle@oel62
oracle@oel62's password:
Last login: Wed May 2 18:16:44 2012 from ip
[oracle@oel62 ~]$ cd /home/oracle/Oracle/Middleware/user_projects/domains/wc_domain/
[oracle@oel62 wc_domain]$ ./startWebLogic.sh
.............
initIgnoreList:Register 'oracle_ias_farm' login page url:/em/faces/targetauth/emasLogin
m_connection-jpss null
james@james-laptop:~$ ssh oracle@oel62
oracle@oel62's password:
Last login: Wed May 2 18:19:36 2012 from ip
[oracle@oel62 ~]$ cd /home/oracle/Oracle/Middleware/user_projects/domains/wc_domain/bin
[oracle@oel62 bin]$ ./startManagedWebLogic.sh UCM_server1 http://oel62:7001
..........
james@james-laptop:~$ ssh oracle@oel62
oracle@oel62's password:
Last login: Wed May 2 18:24:53 2012 from ip
[oracle@oel62 ~]$ cd /home/oracle/Oracle/Middleware/user_projects/domains/wc_domain/bin
[oracle@oel62 bin]$ ./startManagedWebLogic.sh WC_Spaces http://oel62:7001