Está en la página 1de 29

Practices for Lesson 1

Overview

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 1 of 29 Rev 1
Practices for Lesson 0
To change the lesson number, click the Lesson # button in Add-Ins > Custom Toolbars.

Distribution
Job Title*

Ownership
The Job Title [list@YourCompany.com?Subject=Practices for Lesson 1: 356313421] is
responsible for ensuring this document is necessary, reflects actual practice, and supports
corporate policy.

Practices Overview
In these practices, you will install the Oracle 11gR2 Database Express and WebLogic Server
12.1.1.

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 2 of 29 Rev 1
Practice 0-0: Oracle 11g Express Database Installation

Overview
In this practice, you learn to install the Oracle 11gR2 Express Database. We will use this
database in future practices.

Assumptions
All the software to be used for this class is located in /refresh/stage.

Tasks

a. Change user to root.


[oracle@localhost Disk1]$ su -

Password:

[root@localhost ~]#

b.
[root@localhost Disk1]# ls

oracle-xe-11.2.0-1.0.x86_64.rpm response upgrade

[root@localhost Disk1]# rpm -Uvh oracle-xe-11.2.0-1.0.x86_64.rpm

Preparing...
########################################### [100%]

1:oracle-xe
########################################### [100%]

Executing post-install steps...

You must run '/etc/init.d/oracle-xe configure' as the root user


to configure the database.

c. Run the database configuration, use the default values and for password use
welcome1.

[root@localhost Disk1]# /etc/init.d/oracle-xe configure

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 3 of 29 Rev 1
Oracle Database 11g Express Edition Configuration

-------------------------------------------------

This will configure on-boot properties of Oracle Database 11g


Express

Edition. The following questions will determine whether the


database should

be starting upon system boot, the ports it will use, and the
passwords that

will be used for database accounts. Press <Enter> to accept the


defaults.

Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application
Express [8080]:

Specify a port that will be used for the database listener


[1521]:

Specify a password to be used for database accounts. Note that


the same

password will be used for SYS and SYSTEM. Oracle recommends the
use of

different passwords for each database account. This can be done


after

initial configuration:

Confirm the password:

Do you want Oracle Database 11g Express Edition to be started on


boot (y/n) [y]:

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 4 of 29 Rev 1
Starting Oracle Net Listener...Done

Configuring database...Done

Starting Oracle Database 11g Express Edition instance...Done

Installation completed successfully.

d. Change to the oracle user.


[root@localhost Disk1]# su - oracle

[oracle@localhost ~]$

e. Check that the database is running.

[oracle@localhost ~]$ cd /u01/app/oracle/product/11.2.0/xe

[oracle@localhost xe]$ export ORACLE_HOME=$PWD

[oracle@localhost xe]$ export LD_LIBRARY_PATH=$PWD/lib

[oracle@localhost xe]$ export ORACLE_SID=xe

[oracle@localhost xe]$ cd bin

[oracle@localhost bin]$ ./tnsping xe

TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on


15-FEB-2012 16:51:47

Copyright (c) 1997, 2011, Oracle. All rights reserved.

Used parameter files:

Used TNSNAMES adapter to resolve the alias

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 5 of 29 Rev 1
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)
(HOST = localhost.localdomain)(PORT = 1521)) (CONNECT_DATA =
(SERVER = DEDICATED) (SERVICE_NAME = XE)))

OK (10 msec)

[oracle@localhost bin]$

You will have to use the above export commands to issue any commands to the
database using the command line interface.

f. Check using the GUI based tool. The URL should be http://localhost:8080

g. Now use the web browser administration console. This page should open
automatically.

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 6 of 29 Rev 1
h. Login screen, use system for the user and welcome1 for password.

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 7 of 29 Rev 1
i. Use the Run SQL Command Line.

j. Run a simple SQL statement.

You will be using the Run SQL Command Line in future practices to interact with the
database.

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 8 of 29 Rev 1
Practice 0-0: WLS 12c (12.1.1) Installation - GUI

Overview
In this practice, you learn to install the WLS 12c binaries. For this exercise will learn both GUI
and silent installations.

Assumptions
The software is located at /refresh/stage.

Tasks

a Start the GUI installer.

[oracle@localhost ~]$ pwd

/refresh/stage

[oracle@localhost ~]$ ./wls1211_linux32.bin


-log=/refresh/home/install_gui.log -Djava.io.tmpdir=/tmp
-Djava.security.egd=file:/dev/./urandom

Extracting
0%..............................................................
......

Command Line Option Purpose


-mode Mode of installation
GUI (default)
Console text based
Silent input file, not user intercaction
-log Verbose log
Notes: Log file is not generated until
the Instalaltion Summary screen .
File is overwritten is used again.
-Djava.io.tmpdir Temporary directory used during
installation. Use in case of the
following error:

-silent_xml Input silent response file

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 9 of 29 Rev 1
- Needed to run the Server Examples,
Djava.security.egd=file:/dev/./urandom reduces installation time

k. Click Next on the Welcome screen.

l. Choose Middleware Home Directory screen.

Field Value
Create a new Middleware Check
Home
Middleware Home Directory /refresh/wls12c
Click Next

m. Register for Security Updates screen.

Field Value
I wish to receive security updates via My Uncheck
Oracle Support
Are you sure? Yes
Click Next

n. Choose Install Type screen


Field Value
Custom Check
Click Next

o. Choose Products and Components screen

Field Value
Oracle Coherence Uncheck

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 10 of 29 Rev 1
Click Next

p. JDK Selection screen, use default values.


Click Next

q. Choose Product Installation Directories screen, use default values.


Click Next

r. Installation Summary screen, click Next

s. Installation Complete screen.


Field Value
Run Quickstart Uncheck
Click Done

t. Verify installation

[oracle@localhost ~]$ cd /refresh/wls12c

[oracle@localhost wls12c]$ ls

domain-registry.xml jrockit_160_29_D1.2.0-10 modules


registry.dat utils

jdk160_29 logs ocm.rsp


registry.xml wlserver_12.1

[oracle@localhost wls12c]$

u. Check the installation log file.

[oracle@localhost ~]$ pwd

/refresh/home

[oracle@localhost ~]$ more install_gui.log

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 11 of 29 Rev 1
2012-02-15 17:28:23,553 WARN [getArchivesFromTree]
com.bea.cie.gpr.internal.feature.FeatureCatal

ogImpl - Unable to locate feature corresponding to feature


reference: <xml-fragment feature="webl

ogic.client.modules" feature-version="12.1.1.0"/>

2012-02-15 17:28:23,827 WARN [getArchivesFromTree]


com.bea.cie.gpr.internal.feature.FeatureCatal

ogImpl - Unable to locate feature corresponding to feature


reference: <xml-fragment feature="webl

ogic.client.modules.L10N" feature-version="12.1.1.0"/>

2012-02-15 17:28:23,830 WARN [getArchivesFromTree]


com.bea.cie.gpr.internal.feature.FeatureCatal

ogImpl - Unable to locate feature corresponding to feature


reference: <xml-fragment feature="webl

ogic.server.modules" feature-version="12.1.1.0"/>

v. Take a look at the messages in the file.


This will be your primary resource to look for installation problems.

w. Delete the WLS installation to prepare for the silent installation.

[oracle@localhost ~]$ rm install_gui.log

[oracle@localhost ~]$ cd /u01/

[oracle@localhost u01]$ rm -rf wls12c/

[oracle@localhost u01]$ cd

[oracle@localhost ~]$ cd bea

[oracle@localhost bea]$ more beahomelist

/refresh/wls12c

[oracle@localhost bea]$

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 12 of 29 Rev 1
Please note that directory named bea is created under the oracle user home
directory. The beahomelist contains a list of WLS installation locations.

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 13 of 29 Rev 1
Practice 0-0: WLS 12c (12.1.1) Installation Silent (Optional)

Overview
In this practice, you learn to do silent installation of the WLS.

Assumptions - Notes
The silent install uses a response file for input. Below is a copy of the response file.
<!-- Silent installer option -mode=silent -silent_xml=C:\myfiles\silent.xml
-->

<!-- Specify values for each data-value name as follows:

BEAHOME Complete pathname to the Middleware Home directory


that

will contain this installation.

WLS_INSTALL_DIR Complete pathname to the product installation

directory in which to install WebLogic Server.

COMPONENT_PATHS Components and subcomponents to be installed.

To install multiple components, separate the


components

with a bar (|).

To install subcomponents, specify a

component/subcomponent combination. For example,

to install Core Application Server, use

"WebLogic Server/Core Application Server".

INSTALL_NODE_MANAGER_SERVICE Install Node Manager as a Windows

service. The default is "no".

Requires Administrator privileges.

NODEMGR_PORT Node Manager listen port number. If none specified,


FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 14 of 29 Rev 1
installer uses default port 5556.

INSTALL_NODE_MANAGER_SERVICE must be set to "yes".

INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER

The Windows Start menu folder in which you want the

Start menu shortcuts created.

The user performing the installation must have

Administrator privileges to install the shortcuts

in the All Users folder.

Possible values:

true/yes The shortcuts are created in

the All Users folder (default)

false/no The shortcuts are created in

the local user's folder 10:wq_xm

BEA_BUNDLED_JVMS

Option to select BEA bundled JVMS (for e.g. either

jrockit_160_05 or jdk160_05 for Windows and Linux

platforms). The default value is all BEA bundled JVMs

for selected platform.

LOCAL_JVMS

Option to select supported JVM, which is already

installed. Note: The presence of


either(BEA_BUNDLED_JVMS

or LOCAL_JVMS) or both of these tokens negates any

default selection and only sets the values assigned


for

these tokens as user selection. The value of the token

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 15 of 29 Rev 1
can be a pipe ('|') separated JavaHomes.

-->

<?xml version="1.0" encoding="UTF-8"?>

<bea-installer>

<input-fields>

<data-value name="BEAHOME" value="D:\Oracle\Middleware_Home" />

<data-value name="WLS_INSTALL_DIR"
value="D:\Oracle\Middleware_Home\wlserver_12.1" />

<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="5559" />

<data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"/>

<!--

<data-value name="LOCAL_JVMS" value="D:\jrockit_160_05|D:\jdk160_11"/>

-->

</input-fields>

</bea-installer>

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 16 of 29 Rev 1
Variable GUI Screen

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 17 of 29 Rev 1
BEAHOME

WLS_INSTALL_DIR Directory to contain the wlserver_12x directory.

COMPONENT_PATHS Components and subcomponents to be install.

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 18 of 29 Rev 1
INSTALL_NODE_MANAGER_ Used to install Node Manager as a service in Windows.
SERVICE Linux/Unix installation should be set to NO.
NODEMGR_PORT Node Manager listen port number. If none specified,
installer uses default port 5556
INSTALL_NODE_MANAGER_ Windows Only. Linux/Unix installation should be set to NO.
SERVICE
BEA_BUNDLED_JVMS

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 19 of 29 Rev 1
LOCAL_JVMS Additional JDK to install.

Tasks

a Create the response file, silent.xml. Below is the code for the file.

<?xml version="1.0" encoding="UTF-8"?>

<bea-installer>

<input-fields>

<data-value name="BEAHOME" value="/refresh/wls12c" />

<data-value name="WLS_INSTALL_DIR"
value="/refresh/wls12c/wlserver_12.1" />

</input-fields>

</bea-installer>

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 20 of 29 Rev 1
x. Run the silent installer with the silent.xml response file.

[oracle@localhost ~]$ ./wls1211_linux32.bin -mode=silent


-silent_xml=./silent.xml -log=/refresh/home/install_gui.log

y. Once the installation is finish, check the installer log file.


[oracle@localhost ~]$ more install_gui.log

2012-02-15 20:49:56,317 INFO [readSilentXML]


com.bea.plateng.wizard.installer.common.parsers.Tem

plateParser - Silent xml file processed successfully...

2012-02-15 20:50:01,075 WARN [getArchivesFromTree]


com.bea.cie.gpr.internal.feature.FeatureCatal

ogImpl - Unable to locate feature corresponding to feature


reference: <xml-fragment feature="webl

ogic.client.modules" feature-version="12.1.1.0"/>

..

..

..

..

2012-02-15 20:50:46,166 INFO [beaRegistryOutput]


com.bea.cie.oui.impl.InventoryImpl - Saving Loc

al Inventory for Oracle Coherence to


/refresh/wls12c/coherence_3.7/inventory/ContentsXML/comps.xml

2012-02-15 20:50:46,166 WARN [beaRegistryOutput]


com.bea.cie.oui.impl.InventoryImpl - Oracle mas

ter inventory interface not available. Only local Inventory


being generated.

2012-02-15 20:50:49,821 INFO [WizardController]


com.bea.plateng.wizard.silent.tasks.LogTask - Th

e installation was successfull!

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 21 of 29 Rev 1
z. Check the contents of the directory.

[oracle@localhost ~]$ ls /refresh/wls12c/

coherence_3.7 jrockit_160_29_D1.2.0-10 ocm.rsp


utils

domain-registry.xml logs registry.dat


wlserver_12.1

jdk160_29 modules registry.xml

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 22 of 29 Rev 1
Practice 0-0: Adding a new JDK and WLS samples

Overview
In this practice, you learn install a new JDK version and also add the WLS samples to an
existing installation.

Assumptions

Tasks
a Run the WLS installer.
[oracle@localhost ~]$ pwd

/refresh/stage

[oracle@localhost ~]$ ./wls1211_linux32.bin


-Djava.io.tmpdir=/refresh/tmp

aa. Welcome screen, Click Next

ab. Choose Middleware Home Directory screen

Field Value
Use an Existing Middleware Home Check
Middleware Home Directory /refresh/wls12c

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 23 of 29 Rev 1
ac. Register for Security Updates screen.

Field Value
I wish to receive security updates via My Uncheck
Oracle Support
Are you sure? Yes
Click Next

ad. Choose Products and Components screen.

Field Value
Server Examples Check
Coherence Examples Check
Click Next

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 24 of 29 Rev 1
ae. JDK Selection screen.

Click Browse

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 25 of 29 Rev 1
af. Open screen.

Field Value
Name /refresh/home/jrockit-jdk1.6.0_29-R28.2.2-
4.1.0
Type All Files
Click Select

ag. JDK Selection screen

Click Next

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 26 of 29 Rev 1
ah. Choose Product Installation Directories screen, use default values.
Click Next

ai. Installation Summary screen, click Next

aj. Installation Complete screen.


Field Value
Run Quickstart Uncheck
Click Done

ak. Verify that the examples were installed.

[oracle@localhost samples]$ pwd

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 27 of 29 Rev 1
/refresh/wls12c/wlserver_12.1/samples

[oracle@localhost samples]$ ls

domains server sipserver

FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 28 of 29 Rev 1
FMW CoE (Support) Copyright 2017, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 1 356313421


Effective mm/dd/yy Page 29 of 29 Rev 1

También podría gustarte