Silent Installation of Weblogic and Webcenter portal

Requirment – Silent Installation of Weblogic and Webcenter portal

Implementation-

Silent-Mode Installation – Silent-mode installation is a way of setting installation configurations only once and then using those configurations to duplicate the installation on many machines. During installation in silent mode, the installation program reads the settings for your configuration from an XML file that you create prior to beginning the installation. The installation program does not display any configuration options during the installation process. Silent-mode installation works on both Windows and UNIX systems.
With previous releases of WebLogic Platform, you have the option of running the Configuration Wizard as part of the silent installation process. In WebLogic Platform 8.1, the Configuration Wizard cannot be run, automatically, with the WebLogic Platform installation program; it must be run separately. However, you can create a simple shell script or command file that sequentially runs silent mode installation and silent mode configuration. For more information about running the Configuration Wizard in silent mode, see Creating WebLogic Configurations Using the Configuration Wizard at http://download.oracle.com/docs/cd/E13196_01/platform/docs81/confgwiz/index.html.

-> Install the Weblogic

-> Download the WebLogic Installer … and put it in some directory
-> Create a silent.xml file that defines the configuration settings normally entered by a user during an interactive installation process, such as graphical-mode or console-mode installation. Here is the silent-wls10.3.6.xml file, see below

<?xml version="1.0" encoding="UTF-8"?>
   <bea-installer> 
     <input-fields>
       <data-value name="BEAHOME" value="\Oracle\Middleware_Home" />
       <data-value name="WLS_INSTALL_DIR" value="\Oracle\Middleware_Home\wlserver_10.3" />
       <data-value name="COMPONENT_PATHS"
        value="WebLogic Server/Core Application Server|WebLogic Server
/Administration Console|WebLogic Server/Configuration Wizard and Upgrade 
Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic 
JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server
/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins
|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Oracle Coherence/Coherence Product Files" />
       <data-value name="INSTALL_NODE_MANAGER_SERVICE" value="yes" />
       <data-value name="NODEMGR_PORT" value="5556" />
       <data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"/>
   </input-fields> 
</bea-installer>

-> For Jar Installers:
Open a command prompt and start the installation by executing the below command.

java -jar wls1036_generic.jar -mode=silent -silent_xml=/path//silent.xml -log=/opt/softwares/Installation_silent.log 

It opens up a new windows showing the installation progress.Check the install progress window and a successful install would display message like below

————————————————————————————————————————————-

-> Install the Webcenter Portal

->  cd /u01/software/ofm_wc_generic_11.1.1.8.0_disk1_1of1/Disk1
->  ./runInstaller -silent -responseFile /u01/software/scripts/custom_installtype_wcp11.1.1.8.rsp -jreLoc /u01/app/oracle/product/java_current/jre

Here is the custom_installtype_wcp11.1.1.8.rsp file.You need an response file to provide parameter while installation.

[ENGINE]

#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0

[GENERIC]

#Set this to true if you wish to specify a directory where latest updates are downloaded. This option would use the software updates from the specified directory
SPECIFY_DOWNLOAD_LOCATION=false

#
SKIP_SOFTWARE_UPDATES=true

#If the Software updates are already downloaded and available on your local system, then specify the path to the directory where these patches are available and set SPECIFY_DOWNLOAD_LOCATION to true
SOFTWARE_UPDATES_DOWNLOAD_LOCATION=

#Provide the Oracle Home location. The location has to be the immediate child under the specified Middleware Home location. The Oracle Home directory name may only contain alphanumeric , hyphen (-) , dot (.) and underscore (_) characters, and it must begin with an alphanumeric character. The total length has to be less than or equal to 128 characters. The location has to be an empty directory or a valid WebCenter Oracle Home.
ORACLE_HOME=/home/middleware/Oracle_WC1

#Provide existing Middleware Home location.

MIDDLEWARE_HOME=/home/middleware
#Application Server choices are WLS, WAS

APPSERVER_TYPE=WLS

[SYSTEM]
[APPLICATIONS]
[RELATIONSHIPS]

————————————————————————————————————————————-

-> Create database schemas via the RCU

Creating schema using silent instillation you provide password in txt file.Below command will create different schema.

	
 cd ofm_rcu_linux_11.1.1.8.0_disk1_1of1/rcuHome/bin
 ./rcu -silent -createRepository -databaseType ORACLE -dbUser sys
 -connectString localhost:1521:orcl  -dbRole SYSDBA
 -useSamePasswordForAllSchemaUsers -schemaPrefix DEV
 -component PORTLET -tablespace WP_REPO -tempTablespace TEMP
 -component MDS -tablespace WP_REPO -tempTablespace TEMP
 -component WEBCENTER -tablespace WP_REPO -tempTablespace TEMP
 -component ACTIVITES -tablespace WP_REPO -tempTablespace TEMP
 -f < passwordfile.txt

This will create 3 schema’s: DEV_PORTLET, DEV_MDS, DEV_WEBCENTER,DEV_ACTIVITES.
The passwordfile.txt file would contain, in order:

database_password
component1_schema_password
component2_schema_password

Happy weblogic/Webcenter installation with Vinay Kumar in techartifact

Installations for Webcenter Sites Using JSK

Requirement- Installation of Webcenter Sites using JSK

Prerequisite
a. file named “JSK_Installer11.1.1.8.0.jar”
b. JDK 1.6 or higher must be installed on your computer
c. Set up the environment variable:
> Linux:
set JAVA_HOME= (e.g., set JAVA_HOME=/opt/jdk1.6)
run “java -jar JSK_Installer11.1.1.8.0.jar”
 Double click the JSK_Installer11.1.1.8.0.jar
JumpStartKit Installation
1. Installations dialoge Start:
wc1

040314_1222_Installatio2.png

All Packs install.

040314_1222_Installatio3.png

Select the port number for running WCS.
wc4

Select Application server without Sample Site.If you want to check sample site.Use first options.
wc5

Provide the path for installation of sites.

wc6

wc7

Click Next and Installation will start.After succcessful installation, installer will display a “Finished” message when the installation is complete.

wc8

After finish of installation , got to you webcenter install directory(C:\Oracle\WebCenter\Sites\11gR1) and hit run.bat .Start the server
wc10

hit the URL i.e. http://localhost:9080/cs/ , Enter the credential with default ID as fwadmin and pwd as xceladmin.

wc9

Happy Learning with Vinay kumar in techartifact….

Changing default Navigation Model in Webcenter portal

Requirement- In your webcenter Portal application , if you dont want to use seeded navigation model and you create your own navigation model and you want to make your navigation model
as default navigation model.

Implementation – When you create an Webcenter portal application using create new application and selection Webenter Portal application then seeded navigation model, default-navigation-model.xml, is set as the application’s default navigation model. Now if create your own navigation model to use for the main navigation path through your application, rather than having to explicitly reference this navigation model whenever you want to use it, you can set it as the default.
You can set the default navigation model for a Portal Framework application by editing the oracle.webcenter.portalapp.navigation.model preference in the adf-config.xml file.

-> Open the adf-config.xml file

-> Click the Source tab.Locate the ADF preference with the following id:

      oracle.webcenter.portalapp.navigation.model
      

-> Set the value attribute to the path of the navigation model that you want to use as the default for the application, for example:

value=”/oracle/webcenter/portalapp/navigations/techartifactNavigationModel.xml”

Below is adf-config.xml will look like

<preference id="oracle.webcenter.portalapp.navigation.model"
            desc="Default Navigation Model"
            value="/oracle/webcenter/portalapp/navigations/techartifactNavigationModel.xml"
            resourceType="navigation" display="true"/>

-> Save the adf-config.xml file.

Happy learning with Vinay Kumar in techartifact