Wednesday, 29 April 2015

Install Weblogic 12c using response file

Create Weblogic directory
mkdir /u01/middleware/weblogic12c

Create response file "weblogic.rsp"(Edit only ORACLE_HOME value)
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=
/u01/middleware/weblogic12c
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=<SECURE VALUE>
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=


Run install program:
$JAVA_HOME/bin/java  -jar -d64 wls_121200.jar -silent -invPtrLoc /etc/oraInst.loc -responseFile weblogic.rsp

Output:
java  -jar -d64 wls_121200.jar -silent -invPtrLoc /etc/oraInst.loc -responseFile weblogic.rsp

Extracting files.................
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 1999.906 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 144703484 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 600 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2015-04-29_04-54-54AM
Log: /etc/oracle/oraInventory/logs/install2015-04-29_04-54-54AM.log
Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
Reading response file..
error: db3 error(13) from dbenv->open: Permission denied
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
error: db3 error(13) from dbenv->open: Permission denied
error: cannot open Packages database in /var/lib/rpm
error: db3 error(13) from dbenv->open: Permission denied
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
error: db3 error(13) from dbenv->open: Permission denied
error: cannot open Packages database in /var/lib/rpm
Expected result: One of enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-10,SuSE-11
Actual Result: enterprise-6
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.
Expected result: 1.7
Actual Result: 1.7.0_45
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.
Verifying data......
Copying Files...
-----------20%----------40%----------60%----------80%--------100%

The installation of WebLogic Server 12.1.2.0.0 completed successfully.


1 comment: