OBIA Clone PDF
OBIA Clone PDF
1
Copyright (c) 2019, Oracle. All rights reserved. Oracle Confidential.
In this Document
Purpose
Scope
Details
The following sequence was followed to clone using the test-to-production movement scripts.
Steps to perform on the 'source' environment you are cloning from:
Steps to perfom on the 'target' environment you are cloning to:
References
APPLIES TO:
Business Intelligence Suite Enterprise Edition - Version 11.1.1.7.0 to 11.1.1.9.0 [Release 11g]
Business Intelligence Server Enterprise Edition - Version 11.1.1.7.0 to 11.1.1.9.0 [Release 11g]
Information in this document applies to any platform.
This does not apply to 12c. See the 12c Administrator's Guide 'Moving From Test To Production is Carried Out in a
Different Way'
PURPOSE
This document is intended to assist with the test-to-production (T2P) process for an Oracle Business Intelligence
Enterprise Edition (OBIEE) installation. The documentation has various steps that are posted in various sections of the
Fusion Middleware Administration Guide; therefore, the intent of this document is to link all the steps together in a
"cookbook" format to make the process easier to follow and help one to avoid common pitfalls or mistakes. The document
does not intend to cover every scenario or pre-requisite and co-requisite steps such as moving the RCU database.
SCOPE
This document is intended for OBIEE and Fusion Middleware Administrators who have access to the environment and are
able to run scripts providing the appropriate variables.
Note: If you are looking for Oracle Business Intelligence Applications (OBIA) specific information, then please see the link
below which is documented here as as an informational pointer. OBIA T2P steps themselves are outside the scope of this
document.
For OBIA, the recommended approach is: OBIA 11g How to Migrate Configurations and Customizations from Development
to a Test or a Production Environment (Doc ID 1984269.1)
If you do use the T2P process, the separate steps for Oracle Data Integrator (ODI) are documented here: 21.4.10 Moving
Oracle Data Integrator to a Target Environment
DETAILS
The Fusion Middleware Adminstrator Guide contains the steps for completing this process, you will want to familiarize
yourself with these chapters:
Introduction to Cloning
What You Can Clone
Understanding the Cloning Process
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=12xu1xi78k_427&id=1625533.1 1/8
1/25/2019 Document 1625533.1
Task 1, "Move the Database, Middleware Home, and Perform the Initial Configuration"
Task 5, "Copy and Scale Out to New Cluster Hosts in the Target Environment"
Within Task 1:
To move the database and Middleware home, and perform the initial configuration:
3. Move the Middleware home and binary files, as described in Section 21.3.4.
4. Move the configuration of the domain and Node Manager, as described in Section 21.3.5.
Note that when you move the configuration of the domain, the pasteConfig script copies the configuration of the
domain, including the Administration Server and Managed Servers.
This document will focus on steps 3 - 4 using a default Weblogic embedded LDAP authenticator.
The following sequence was followed to clone using the test-to-production movement scripts.
. $ORACLE_INSTANCE/bifoundation/OracleBIApplication/coreapplication/setup/bi-
init.sh
export MW_HOME=[your middleware home]
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=12xu1xi78k_427&id=1625533.1 2/8
1/25/2019 Document 1625533.1
Note: The rest of the soure environment will assume you are working within the same shell and do not need to
set the environment again. If you start a new shell, be sure and set the environment again.
2. Copy the binaries, by executing the copyBinary.sh (for the Middleware Home) script.
Documented here: Section 21.3.4 - review the notes.
$MW_HOME/oracle_common/bin/copyBinary.sh -javaHome $ORACLE_HOME/jdk -archiveLoc
/tmp/mw_bincopy.jar -sourceMWHomeLoc $MW_HOME -invPtrLoc
$MW_HOME/Oracle_BI1/oraInst.loc
Move the jar file to the new host (if cloning to a new host)
3. Before copying the configuration, perform the steps in this technical note first to avoid an error.
Cloning FMW 11g Java Components Fails with Error CLONE-20408: "Detected "Unix Machine" type in machine
configuration" (Doc ID 1302904.1)
Tip: You will be running the CopyConfig script a minimum of twice. Once for the domain and once for the
instance. If you have multiple instances, then you could be running the script multiples times for each instance.
Note: The content of the pwd.txt file is a single word which is the password of the Weblogic Server
administrative user (typically weblogic) typed in clear text. Example:
Admin123
The file can be located anyhwere in the disk. In this example, it is placed under $HOME directory.
Documented here:
Domain: http://docs.oracle.com/cd/E28280_01/core.1111/e10105/testprod.htm#ASADM11773
Instance: http://docs.oracle.com/cd/E28280_01/core.1111/e10105/testprod.htm#ASADM11770
extractmoveplan.sh (from jar files created in created in the copyConfig.sh step above -- fmwconfig2.jar )
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=12xu1xi78k_427&id=1625533.1 3/8
1/25/2019 Document 1625533.1
Note: The above syntax above is from the documentation and it alludes that you should not modify the move
plan; however, you do have to edit certain portions of it. The documentation is emphasizing not to change any
portion other than what you are documented to edit.
Syntax: http://docs.oracle.com/cd/E28280_01/core.1111/e10105/clone.htm#autoId9
20.2.1.7 extractMovePlan Script
Note: -planDirLoc
This should be an absolute path to an existing and empty directory with write permissions
Edit the move plan -- changed hostnames, ports, updated password file locations
extract move plan from the domain jar file you generated (in this example, fmwconfig2.jar)
For example:
export ORACLE_COMMON=$MW_HOME/oracle_common
extract move plan from instance jar file you generated (in this example, instance_config.jar)
For example:
$ORACLE_COMMON/bin/extractMovePlan.sh -javaHome $ORACLE_HOME/jdk -archiveLoc
/tmp/inst_config.jar -planDirLoc /tmp/instanceplan -logDirLoc /tmp
6.
Documented here: 20.3 Modifying Move Plans
$MW_HOME/oracle_common/jlib/cloningclient.jar
PasteBinary (.sh /.cmd)
PasteConfig (.sh / .cmd)
fmwconfig2.jar
inst_config.jar
mw_bincopy.jar
moveplan.xml - generated for domain
moveplan.xml - generated for each instance (Tip: keep these in a separately identified directory to avoid
mixing them up, especially if named the same)
Tip: copy bi-init.sh from source to target temp directory and comment out the line .
$ORACLE_INSTANCE/bifoundation/OracleBIApplication/$ORACLE_BI_APPLICATION/setup/user.sh
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=12xu1xi78k_427&id=1625533.1 4/8
1/25/2019 Document 1625533.1
This is only used to easily set the environment in the target. It serves no other purpose.
On the target, you need to ensure you have a JDK installed to run the PasteBinary script
export JAVA_HOME=/usr/java
export PATH=$JAVA_HOME/bin:$PATH
Tip: Copy from source or create (as root) the oraInst.loc file for the Oracle Inventory to avoid the following error:
SEVERE : Oct 18, 2013 14:18:06 - ACTION - CLONE-20264 Ensure that the default
oraInst.loc file at "default location" is valid or provide a different, valid
Inventory Pointer file using the -invPtrLoc argument.
Reference: Bug 9470034 : T2P: "/ETC/ORAINST.LOC " NEEDS TO BE CREATED BY SUPER/ROOT USER ON A NEW
SYSTEM
1. Execute the pasteBinary.sh script (from mw_bincopy.jar file created in the copyBinary step above)
For example:
. /tmp/bi-init.sh (to set the environment)
pasteConfig.sh for domain (new moveplan and jar file from prior step)
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=12xu1xi78k_427&id=1625533.1 5/8
1/25/2019 Document 1625533.1
TIP: Ensure the move plan is updated to provide the explicit path to the password file for the stated datasource
(i.e - DataSource1)
For example:
From:
<type>DATASOURCE</type>
<configProperty id="DataSource1">
....
...
<configProperty>
<name>Password File</name>
<value/>
to:
<type>DATASOURCE</type>
<configProperty id="DataSource1">
....
...
<configProperty>
<name>Password File</name>
<value>/tmp/pwd.txt</value>
Tip: Ensure all the datasources have a password file configured; else you will incur the error below.
SEVERE : Oct 21, 2013 08:47:43 - ERROR - CLONE-20327 Invalid password file.
SEVERE : Oct 21, 2013 08:47:43 - CAUSE - CLONE-20327 The DataSource1 password file
did not exist or first line did not contain password.
SEVERE : Oct 21, 2013 08:47:43 - ACTION - CLONE-20327 Provide a valid password
file.
SEVERE : Oct 21, 2013 08:47:43 - ERROR - CLONE-20327 Invalid password file.
SEVERE : Oct 21, 2013 08:47:43 - CAUSE - CLONE-20327 The DataSource1 password file
did not exist or first line did not contain password.
SEVERE : Oct 21, 2013 08:47:43 - ACTION - CLONE-20327 Provide a valid password
file.
INFO : Oct 21, 2013 09:55:38 - CLONE-21203 The RPD ConnectionPool uid:password
password file: "", either does not exist or is zero size.
Update moveplan.xml
From
<configGroup>
<type>CONNECTIONPOOLS</type>
<Description>connection pools</Description>
<configProperty id="80ca62c5-0bd5-0000-714b-e31d00000000">
<name>SampleApp_Lite_Xml</name>
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=12xu1xi78k_427&id=1625533.1 6/8
1/25/2019 Document 1625533.1
<configProperty>
<name>password</name>
<value/>
.....
......
To:
<configGroup>
<type>CONNECTIONPOOLS</type>
<Description>connection pools</Description>
<configProperty id="80ca62c5-0bd5-0000-714b-e31d00000000">
<name>SampleApp_Lite_Xml</name>
<configProperty>
<name>password</name>
<value>/tmp/connectionpoolpwd.txt</value>
Tip: Ensure you have localhost first in your /etc/host file; else, the script may not be able to communicate with the
AdminServer even if it is running
3. Move / rename the instances directory to old_instance. The prior scrips created the instance directory, but it is
nothing other than a placeholder / shell. If you do not rename it, then next script will fail if it detects the directory
is there.
Set new environment variables (if needed, changed from source or running prior scripts in the shell)
For example:
mv $MW_HOME/instances/instance1 $MW_HOME/instances/instance_old
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=12xu1xi78k_427&id=1625533.1 7/8
1/25/2019 Document 1625533.1
sourcehost.sourcedomain -domainPortNum 7001 -domainAdminUserName weblogic -
domainAdminPasswordFile /tmp/pwd.txt -logDirLoc /tmp -movePlanLoc /tmp/moveplan.xml
If you are unable to authenticate in the cloned / target environment after the T2P process, then please check this solution:
Authenticating In OBIEE 11g Fails With ' [nQSError: 46164] HTTP Server returned 404 (Not Found) for URL' In The
nqsserver.log Document 1629981.1
REFERENCES
NOTE:1302904.1 - Cloning FMW 11g Java Components Fails with Error CLONE-20408: "Detected "Unix Machine" type in
machine configuration"
NOTE:1953881.1 - OBIEE 11g Test-to-Production (T2P): Is There A Move Plan Property To Configure The Port For Each
Individual BI System Component ?
NOTE:1941911.1 - T2P - ERROR - CLONE-20362 While Running PasteConfig.sh
NOTE:1984269.1 - OBIA 11g How to Migrate Configurations and Customizations from Development to a Test or a
Production Environment
Didn't find what you are looking for?
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=12xu1xi78k_427&id=1625533.1 8/8