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

Tutorial for Oracle Webcenter 11g RCU utility And weblogic installation

Requirement -provide detailed step-by-step procedure for preparing your system for the installation of Oracle WebCenter 11g and Oracle UCM 11g on 64-bit Linux environment.

 

  1. Pre-requisites for Oracle WebCenter 11g and Oracle UCM 11g Installation

Check the following pre-requisites on your system where WebCenter and UCM installation need to be done –

  1. Before starting the installation, the software bundles of the following products need to be available.

 

#

Product Name

Version (As used in the project)

1

Oracle Database

11g Release 1 or 2

2

Repository Creation Utility (RCU)

11.1.1.4

3

JDK

1.6.0_26

4

Oracle WebLogic Server

11g Release 1(10.3.5.0)

5

Oracle WebCenter Server

11g Release 1 (11.1.1.4.0)

6

Oracle UCM Server

11g Release 1 (11.1.1.4.0)

 

  1. Creating WebCenter and UCM Group/User for installation

 

  1. Log in as the ‘root’ user.
  2. Create a Group (each for WebCenter and UCM installations) and an User (each for WebCenter and UCM installations). Assign the appropriate User to the respective Groups for the WebCenter and UCM installations.

     

  3. Checking Kernel Parameters

 

The following are the steps that needs to be followed –

  1. Log in as the ‘root’ user.
  2. Add the lines below to /etc/security/limits.conf file:

 

<User> soft nofile 4096

<User> hard nofile 4096

Here, Replace <User> in the above mentioned lines with the WebCenter or UCM installation user.

  1. Restart the system.

     

  2. Checking /tmp Space

 

The following are the steps that needs to be followed –

  1. Log in as the ‘WebCenter or UCM installation’ user.
  2. Make sure /tmp directory is writable and has atleast 60 MB of disk space for WebCenter and UCM installation.
  3. Run ‘df –h’ and verify of value of /tmp >=60 MB

 

  1. Preparing your system for WebCenter and UCM installation

 

You need to install the following products on your system before you run the WebCenter and UCM installation –

  • Repository Creation Utility (RCU) Schema Creation
  • JDK Installation
  • Oracle WebLogic Server Installation                                                

The following sub-sections elaborate the installation details for each of the above steps.

  1. Repository Creation Utility (RCU) Schema Creation

WebCenter Portal and UCM require that certain schemas exist in the database prior to installation. You must run Repository Creation Utility (RCU) to create the schemas in the database.

The following pre-requisites need to be done on your system before you run the RCU for creating schemas –

  • You must create an Oracle Database Instance (11g Release 1 or 2).
  • All the below required DB parameters need to be updated and these are only specific to RCU. Execute the below given SQL query using TOAD Editor/SQL Plus before you run the RCU installation.

 

alter system set open_cursors=500 scope=spfile

alter system set processes=500 scope=spfile

alter system set sessions=500 scope=spfile

 

 

 

 

This section elaborates the step-by-step procedure to create schemas in the database –

Step 1:

  • Unzip the RCU installable file to a directory (Say, rcuHome).
  • Navigate to /rcuHome/bin directory and open a terminal window.
  • Enter the following command:

     

    ./rcu

  • The RCU Welcome Screen appears.
  • Click Next to continue.


 

 

 

 

Step 2:

  • Select ‘Create’ to create component schemas in the database.
  • Click Next to continue.

 


 

 

 

 

 

 

 

Step 3:

  • Provide the Database Connection Details (as given during the creation of Oracle Database):


 

 

 

 

 

 

 

 

  • Click Next to continue.



Step 4:

  • The Checking Prerequisites Screen appears, indicating the progress of the installer establishing the connection with the specified database.
  • When the operation completes, click OK.

 


Step 5:

  • Specify a schema prefix and select the components for which you want to create schemas in the database.
  • The default new prefix is ‘DEV’. If you want to create a new prefix for your schemas, select ‘Create a New Prefix’ and specify a new prefix name in the field. (E.g. S).
  • Select the following components (marked in bold). The components are selected here as per the project requirement.

     

Components  

Schema Owner

Dependencies

As Common Schemas

   

-Metadata Services

S_MDS         

None

Enterprise Content Management

   


-Oracle Content Server 11g-Complete

S_OCS   

None

WebCenter Suite

   

-WebCenter Spaces

S_WEBCENTER

None

-Portlet Producers

S_PORTLET

None

-Activity Graph and Analytics        

S_ACTIVITIES

None

Portal and BI          

   


-Portal

S_PORTAL

Oracle Portlet Producers (prefix_PORTLET)

 

  • After you select the components you want to install, click Next to continue.

     


Step 6:

  • The Checking Prerequisites Screen appears, indicating the progress of the component pre-requisites check for creating schemas.
  • When the operation completes, click OK.

     


Step 7:

  • Specify the passwords for your schema owners.
  • Select ‘Use same passwords for all schemas’ to use a single password for all schemas and their auxiliary schemas. This option is selected by default.
  • Enter the password and confirm password again.
  • Click Next to continue.

 


Step 8:

  • The Custom Variables Screen appears only if you selected a component on the Select Components Screen (for Create Operation) that supports custom variables, required by the components during runtime.
  • Enter value as ‘Y‘.
  • Click Next to continue.

 


 

 

 

 

 

 

Step 9:

  • The Map Tablespaces Screen appears.
  • In this installation, you accept the default and temporary tablespaces for the selected components.
  • Click Next to continue.

     


 

 

 

 

 

 

 

 

Step 10:

  • The Creating Tablespaces Screen appears, indicating the progress of the tablespaces creation.
  • When the operation completes, click OK.

     


Step 11:

  • Review the Summary Screen and verify the details of component schemas that will be created in the database.
  • Click Create to begin schema creation.

     


  • The schemas are being created.

     


Step 12:

  • The Completion Summary Screen appears, indicating the successful creation of schemas for Oracle WebCenter 11g and Oracle UCM 11g.
  • Click Close to exit.

     


  1. JDK Installation

The JDK must be installed on your system before you install Oracle WebLogic Server. It is recommended that you use the Sun JDK if you are installing in a development environment. Typically, this environment provides a more relaxed security configuration and enables you to auto-deploy applications. In a development environment, boot.properties is used for user names and passwords and polling is used for application deployment.

If you are installing in a production environment, it is recommended that you use the Oracle JRockit JDK. Production environments are for applications running in their final form. Full security is enabled and applications may be clustered or use other advanced features. In this mode, user names and passwords are required and polling is not used for application deployment.

This section elaborates the step-by-step procedure to install Sun JDK –

Step 1:

  • Navigate to the directory where you want to install the software. (Say, /usr/local/apps). In this installation, Sun JDK installable file is placed at the same location where you want to install the software.

     

  • Change the permission of the file you downloaded to be executable. Open a terminal window and enter the following command:

 

chmod a+x jdk-6u26-linux-x64.bin

  • Verify that you have permission to execute the file. Enter the following command:

     

    ls –l

     

Step 2:

  • Run the JDK executable file. Enter the following command:


    ./jdk-6u26-linux-x64.bin

     


 

 

 

 

Step 3:

  • You will be prompted to ‘Press Enter to continue’. Press ‘Enter’ to complete the installation. In this installation, Sun JDK is installed in the /usr/local/apps/jdk1.6.0_26 directory.

     


 

 

 

 

 

 

 

 

  1. Oracle WebLogic Server Installation

WebCenter and UCM runs on Oracle WebLogic Server 11g. You must install Oracle WebLogic Server before you install WebCenter and UCM. If you do not already have one, follow the instructions in this section to install Oracle WebLogic Server.

General Note to the Administrators:-

The Installation window prompts you to enter the number associated with the choice or by pressing Enter to accept the default. Following are the choices:

  1. Exit – to exit from the installation procedure in response to any prompt.
  2. Previous – to review or change the selection.
  3. Next – to proceed.

     

When you see a right arrow (->) associated to a choice on the screen during the installation process, it depicts that the corresponding choice is selected by default by the installer. Type Next and press Enter to accept the default selection (or) enter the number associated with the choice for selecting the option of your choice.

When you see a cross symbol (x) associated to a choice on the screen during the installation process, it depicts that the corresponding choice is selected by default by the installer. Type Next and press Enter to accept the default selection (or) type the number that appears inside the [ ] brackets and press Enter to deselect the default selection (or) enter the number associated with the choice for selecting the option of your choice.

Step 1:

  • Navigate to the directory where the WebLogic installable file is placed. (Say, /usr/local/apps/wcdownloads)

     

  • Open a terminal window and set the JAVA_HOME environment variable on your system. Enter the following command:

     

    JAVA_HOME=/usr/local/apps/jdk1.6.0_26; export JAVA_HOME

    Here, JAVA_HOME is the installation location of the supported JDK you installed for your platform.

  • Run the WebLogic executable file. Enter the following command:


    java –Xmx1024m –jar wls1035_generic.jar –mode=console

     

  • The wls1035_generic.jar file is extracted and the installation process begins.

     


Step 2:

  • At the Welcome prompt, type Next, or press Enter to continue with the installation process.

     

Step 3:

  • The Choose Middleware Home Directory prompt is displayed.
  • Specify the desired location of your new Middleware Home directory.
  • Type the new Middleware Home. Say, ‘/usr/local/apps/Oracle/Middleware’ and press Enter to continue.

     

     


 

 

 

Step 4:

  • The chosen Middleware Home directory is displayed. Type Next and press Enter to continue.

     

Step 5:

  • The Register for Security Updates prompt is displayed.
  • Select whether or not you want to receive the latest product and security updates.
  • If you do not wish to receive security updates and to initiate configuration manager, type 3 and press Enter to continue.

 

Step 6:

  • Type No and press Enter to confirm your selection.

 


 

 

 

Step 7:

  • If you choose not to receive anything, you will be asked to verify your selection before continuing.
  • Type Yes and press Enter to confirm your selection.

     

Step 8:

  • Type Next and press Enter to proceed with the installation process.

     


 

 

 

 

 

 

Step 9:

  • The Choose Install Type prompt is displayed.
  • The Typical installation type is selected by default. In this installation, you must select the Custom installation type to select the products and components you want to install.
  • Type 2 and press Enter to continue.

 


 

Step 10:

  • The Choose Products and Components prompt is displayed.

     

  • The following table shows the products and its components that are selected by default by the installer (as shown in the screenshot below) –

     

Products

Components

WebLogic Server

Core Application Server

 

Administration Console

 

Configuration Wizard and Upgrade Framework

 

Web 2.0 HTTP Pub-Sub Server

 

WebLogic SCA

 

WebLogic JDBC Drivers

 

Third Party JDBC Drivers

 

WebLogic Server Clients

 

WebLogic Web Server Plugins

 

UDDI and Xquery Support

 

Evaluation Database

Oracle Coherence

Coherence Product Files

 

Coherence Examples

 

  • You will be prompted to select the products and the components from the list that you want to install as shown in the screenshot below. Type the number exactly as it appears in brackets adjacent to the products and the components.

     


 

  • In this installation (as per the project requirement), de-select Evaluation Database component (that belongs to the WebLogic Server Product) and de-select Oracle Coherence product and its components.

     

  • The de-selection of the products and the components for this installation is illustrated in the below steps with necessary screenshots.

 

 

 

 

 

 

Step 11:

  • Type 1.12 and press Enter to de-select the Evaluation Database component.

     


Step 12:

  • Type 2 and press Enter to de-select the Oracle Coherence product and its components.

     


 

 

 

 

 

Step 13:

  • After you select the products and the components you want to install, type Next and press Enter to continue.

     


Note:

The following table shows the products and its components selected for this installation (as per the project requirement) –

Products

Components

WebLogic Server

Core Application Server

 

Administration Console

 

Configuration Wizard and Upgrade Framework

 

Web 2.0 HTTP Pub-Sub Server

 

WebLogic SCA

 

WebLogic JDBC Drivers

 

Third Party JDBC Drivers

 

WebLogic Server Clients

 

WebLogic Web Server Plugins

 

UDDI and Xquery Support

 

Step 14:

  • The JDK Selection prompt is displayed.
  • Select the JDKs you want to install.
  • Type 1 and press Enter to add the local JDK (SUN JDK 1.6.0) that you installed on your system.

     

Note:

If you notice to see open JDK (/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64) is selected by default by the installer on this screen (as shown in the screenshot below). You must de-select the open JDK once the process of adding local JDK is done to proceed with the installation process.

It is recommended that you use the Sun JDK if you are installing in a development environment and if you are installing in a production environment, it is recommended that you use the Oracle JRockit JDK.

The 32-bit WebLogic executable files are bundled with the appropriate JDK version. If you use the 64-bit WebLogic installer, you will need to invoke the installer with a supported JDK for your platform.

 


 

Step 15:

  • Type the new Local Java Home. Say ‘/usr/local/apps/jdk1.6.0_26’ and press Enter to continue.

 

Note:
JAVA_HOME is the installation location of the supported JDK you installed for your platform.

 

 

 

 

 

 

Step 16:

  • Type Next and press Enter to confirm your selection.


Step 17:

  • The chosen Local JDK is displayed.

     

  • The open JDK is selected by default by the installer as shown in the screenshot below. You must de-select the open JDK to proceed with the installation process.

 

  • Type 2 and press Enter to de-select the open JDK selection.


 

 

 

 

 

 

Step 18:

  • The open JDK is de-selected as shown in the screenshot below.

     

  • Type Next and press Enter to continue.


Step 19:

  • The Choose Product Installation Directories prompt is displayed.

     

  • The chosen Middleware Home directory is displayed as shown in the screenshot below.

 

  • Type Next and press Enter to continue.


 

 

 

 

 

 

 

Step 20:

  • Review and verify the list of products and the components that will be installed.

     

  • Type Next and press Enter to continue.

 


Step 21:

  • The installation process begins. Progress bar shows the % installation of the component.

     

  • Once the installation is complete the following message is displayed, ‘Congratulations! Installation is complete’.

 

  • Type Exit and press Enter to exit the installation process.


References

  • Oracle Fusion Middleware Repository Creation Utility User’s Guide 11g Release 1 (11.1.1)

Jdev installation set up for running Webcenter Spaces instance

JDeveloper installation for running webcenter 11.1.1.5

Download JDeveloper 11.1.1.5 for your OS from this location:
http://www.oracle.com/technetwork/developer-tools/jdev/downloads/jdeveloper11116-1377208.html

Install JDeveloper to your local development machine, perform a typical installation.

After JDeveloper is installed, open up „Check for Updates“ dialog under the „Help“ menu.

1

Check that the following update centers are activated:

2

Check the two WebCenter updates:

3
We have to further extend JDeveloper for working with a running WebCenter: Spaces instance.

Download the following package and unzip it:
http://download.oracle.com/otndocs/tech/webcenter/files/DesignWebCenterSpaces_PS5.zip

There you will find three directories, two of them starting with „copy_to_….“.

„copy_to_common“ includes a common directory that contains WebCenter Portal WLST commands. WebCenter Portal’s WLST commands are required to upload customized resources directly to the Spaces application from DesignWebCenterSpaces.jws.

The content (!) of the „copy_to_common“ directory (not the whole directory itself) must be copied to \oracle_common\
„copy_to_jdev_ext“ includes oracle.webcenter.portal.jar. Required update to Oracle JDeveloper WebCenter Portal Framework and Services Design Time Extensions
.

The .jar file in the „copy_to_jdev_ext“ directory must be copied to \jdeveloper\jdev\extensions\