Friday, March 1, 2013

Install Weblogic 10.3.6 + ADF 11.1.1.6.0 + Patches on Solaris 10 Sparc 64bit

INSTALL JDK 1.7_15:

1. Download 2 files:
jdk-7u15-solaris-sparc.gz  (for Solaris 32bit)
jdk-7u15-solaris-sparcv9.gz (for Solaris 64bit)

2. Create folder for java:
cd /opt/myoracle
mkdir java

3. Copy zip file into java folder:
cp /opt/install/jdk-7u15-solaris-sparc.gz /opt/myoracle/java/
cp optt/install/jdk-7u15-solaris-sparcv9.gz /opt/myoracle/java/

4. Unpack the tarball and install Java. 
On SPARC processors: 
gzip -dc jdk-7u15-solaris-sparc.tar.gz | tar xf - 
gzip -dc jdk-7u15-solaris-sparcv9.tar.gz | tar xf - 

5. Set up java home:
JAVA_HOME=/opt/myoracle/java/jdk1.7_15 export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH:$PATH export PATH

6. Check java version and confirm it is jdk 1.7
java -version

INSTALL WEBLOGIC SERVER:

1. Download wls1036_generic.jar from oracle.com
2. Start install
$JAVA_HOME/bin/java -d64 -jar wls1036_generic.jar
(if you don't have Display set up, it will go by command line)
3. Next >
Setup Middleware home
opt/myoracle/middleware
Next >
indicate java home as /opt/myoracle/java/jdk1.7_15 if not listed
4. You should see successful at the end.

INSTALL ADF (ADR 11.1.1.6.0)
1. Download Application Development Runtime from oracle.com
ofm_appdev_generic_11.1.1.6.0_disk1_1of1.zip
2. Copy the file into temp directory and unzip it
cp ofm_appdev_generic_11.1.1.6.0_disk1_1of1.zip /opt/install/tmp/
cd /opt/install/tmp
unzip ofm_appdev_generic_11.1.1.6.0_disk1_1of1.zip
3. If you don't have Display setup go to Disk1/stage/Responce dir and create you own response file:
cd Disk1/stage/Response
ls
cp sampleResponse_wls.rsp /opt/install/tmp/Disk1/myrsp.rsp
cd /opt/install/tmp/Disk1
vi myrsp.rsp
In myrsp file change MIDDLEWARE_HOME to your middleware home
MIDDLEWARE_HOME=opt/myoracle/middleware
Quit from myrsp.rsp
:qw
4. Create oraInst.loc if that is the new oracle product install and you don't have it already.
pwd
/opt/install/tmp/Disk1
vi oraInst.loc
Here, you need to indicate two lines. Oracle inventory location and the group who has permission to that.
inventory_loc=/opt/myoracle/inventory
inst_group=mygroup
Quit saving the file:
:qw
5. Start installation in silent mode
pwd
/opt/install/tmp/Disk1
runInstaller -jreLoc /opt/myoracle/java/jdk1.7_15 -silent -response myrsp.rsp -invPtrLoc oraInst.loc
(if any error shows invalid inv Pointer oraInst.loc, change permission of oraInst.loc as well as inventory directory path. Or, check the content of oraInst.loc file, can be typo)
6. It should show "The installation of Oracle Application Developer 11g completed successfully".

INSTALL PATCHES
(You need to patch two files into your WL home in order to support you work with JDeveloper 11.1.2.3.0):

Download:
You need to download 2 patches from Oracle Support:
p14582286_111160_Generic
p14582309_111160_Generic

cp p14582286_111160_Generic /opt/myoracle/middleware/oracle_common/OPatch/
cp p14582309_111160_Generic /opt/myoracle/middleware/oracle_common/OPatch/

cd /opt/myoracle/middleware/oracle_common/OPatch/

unzip p14582286_111160_Generic
unzip p14582309_111160_Generic

ls
(you will see two directories were created)
14582286
14582309

cd 14582286
/opt/myoracle/middleware/oracle_common/OPatch/opatch apply

cd .. . 14582309
/opt/myoracle/middleware/oracle_common/OPatch/opatch apply

You should see "Patch was successfull" message in both opatch command.

CONFIGURE DOMAIN:
cd /opt/myoracle/middleware/oracle_common/common/bin
./config.sh
Go with step by step configuration.

RUN THE DOMAIN
Go to your DOMAIN_HOME that you configured
If you configured Production WL domain, in order to save admin passwords:
Create $DOMAIN_HOME/servers/AdminServer/security/boot.properties file and insert login info:

vi boot.properties
username=Admin
password=Mypassword1

(When you start WLS, it will be encrypted, so nothing to worry)

To run your WLS on background process:
nohup ./startWeblogic.sh &

For Admin Console in a browser: YourServerName:port/console

ERROR IN DEPLOYING APPLICATION:
If you the error like this:
 Error: Unresolved Webapp Library references for "ServletContext@481164864[app:Order module:Order path:/Order spec-version:2.5]", defined in weblogic.xml [Extension-Name: jsf, Specification-Version: 2, exact-match: false]

You have to check libraries in Admin Console. Find out whether jsf(2.x.x..) library is there. If not, you should install it.

1 comment: