Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

SOASuite 12c Upgrade

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 221

1)

2)
3)
4)
5)
6)
7)
8) Create ticket for JDK1.7.0_75 upgrade/software to install

EBR req
9) Download the

The view is named SCHEMA_VERSION_REGISTRY. The actual table name is SCHEMA_VERSION_REGISTRY$

select MRC_NAME,COMP_ID,OWNER,VERSION,STATUS,UPGRADED FROM schema_version_registry


where MRC_NAME='CESEBPM' ORDER BY MRC_NAME,COMP_ID;

Oracle Fusion Middleware only supports schemas in a byte-mode database. The


nls_length_semantics initialization parameter, on the database where the schemas reside, must be
set to BYTE; setting this parameter to CHAR is not supported.

show parameters nls_length_semantics

or

select name,value from v$parameter;


1) Navigate to directory where jar is been kept

Cd /var/fedex/cesewfl/data/BPM12.1.3
-bash-3.2$ JAVA_HOME=/opt/java/hotspot/7/64_bit/jdk1.7.0_75

-bash-3.2$ JAVA_VENDOR=Oracle

-bash-3.2$ export JAVA_HOME

-bash-3.2$ export JAVA_VENDOR

-bash-3.2$ pwd

/var/fedex/cesewfl/data/BPM12.1.3

-bash-3.2$ sudo -u cesewfl $JAVA_HOME/bin/java -jar fmw_12.1.3.0.0_wls.jar

Create script

#!/bin/sh

MW_HOME=/opt/fedex/cesewfl/oracle/middleware12c

export MW_HOME

echo $MW_HOME

#Set JDK7 home

JAVA_HOME=/opt/java/hotspot/7/64_bit/jdk1.7.0_75

JAVA_VENDOR=Oracle

export JAVA_HOME

export JAVA_VENDOR

#cd /var/fedex/cesewfl/data/BPM12.1.3

$JAVA_HOME/bin/java -jar
/var/fedex/cesewfl/data/BPM12.1.3/fmw_12.1.3.0.0_wls.jar
Note:Only infra and bpm is required

Now X windows should be installed in your local machine to work.

1)
Or

http://bzload-main.prod.fedex.com/bluezone6-1/

2) Download bluezoneX
Download the file and install it
Run to wizard.
Activation key

41131492-43086210
Click launch

Run ipconfig from your machine to get IPaddress


Run env from at xterm

Export DISPLAY=199.81.99.79:0.0
Click allow
1) Install software on all 4 machine and 1 being admin

Install BPM 12c after weblogic

Copy all the files in share mount so need to scp.

Cd /opt/fedex/cesewfl/scripts

sudo -u cesewfl cp /var/fedex/cesewfl/data/BPM12.1.3/install_bpm12c_v12.1.3.sh .


Actuall Installation begins here

1) Install infrastructure jar


1)

/opt/fedex/cesewfl/oraInventory
lsb_release -a

cat /etc/lsb-release

cat /etc/issue.net cat /etc/issue.net


2) Install BPM SOA
Select BPM in below
Creating Database Schemas for 12c

1) Shutdown all managed servers , admin server , ,node manager ,OHS ( if applicable)
Kill node manager
RCU

-bash-3.2$ cat create_schema_v12.1.3.sh


#!/bin/sh
MW_HOME=/opt/fedex/cesewfl/oracle/middleware12c
export MW_HOME
echo $MW_HOME

#Set JDK7 home


JAVA_HOME=/opt/java/hotspot/7/64_bit/jdk1.7.0_75
JAVA_VENDOR=Oracle

export JAVA_HOME
export JAVA_VENDOR

if [ $# -eq 1 ]
then
export DISPLAY=$1
fi

#cd /var/fedex/cesewfl/data/BPM12.1.3
$MW_HOME/oracle_common/bin/rcu
Username Cesebpm_schema

Password :cesebpmschema
edb00074.ute.fedex.com

1526

CESEBPM_SVC1

CESEBPM_SCHEMA

cesebpmschema

Note: check if cesebpm_schema has DBA role

SQL> select GRANTEE, GRANTED_ROLE from dba_role_privs where GRANTEE =


'CESEBPM_SCHEMA';
Environment DB hostname DB service name VIP name

L1 ddb00116.ute.fedex.com CESEBPM_SVC1

L2 idb00174.ute.fedex.com CESEBPM_SVC1

L3 sdb00186.ute.fedex.com CESEBPM_SVC1

L4 vcd0003[1-4].ute.fedex.com CESEBPM_SVC1 vcd0003[1-4]-


vip.fedex.com

CL sdb00187.ute.fedex.com CESEBPM_SVC1

L5 edb00074.ute.fedex.com CESEBPM_SVC1 No VIP

L6 qdb00060.ute.fedex.com CESEBPM_SVC1 NO VIP

Sandbox vdb00052.ute.fedex.com CESEBPM_SVC1

Production pcd0958[1-4].inf.fedex.com CESEBPM_SVC1 pcd0958[1-4]-


vip.fedex.com

GRANTEE GRANTED_ROLE
------------------------------ ------------------------------
CESEBPM_SCHEMA RESOURCE
CESEBPM_SCHEMA DBA

On level 6:

SQL> select GRANTEE, GRANTED_ROLE from dba_role_privs where GRANTEE =


'CESEBPM_SCHEMA';

GRANTEE GRANTED_ROLE
------------------------------ ------------------------------
CESEBPM_SCHEMA RESOURCE
CESEBPM_SCHEMA DBA

SQL> select username from dba_users where username like 'CESEBPM%';

USERNAME
------------------------------
CESEBPM_MDS
CESEBPM_ORASDPM
CESEBPM_SOAINFRA
CESEBPM_SCHEMA

Note: Check “CESEBPM_TS tablespace” is not full


It is getting hanged.

schema_version_registry$
Table created on 1st March 1, 2016
Verify in tables

select * from schema_version_registry;

select username from dba_users where username like 'CESEBPM%';


Here Refer drop.docx for better understanding before moving to next step

drop.docx

Now you see how many schema are created


Upgrading Schemas and Instance Data

1) Stop the managed , admin and nodemanager


UA should run only on admin server since it reads some
reference files residing only on admin server.

( go down for rest of screen


Now start the UA from admin server unix box

-bash-3.2$ cat upgrade_assist_v12.1.3.sh


#!/bin/sh
MW_HOME=/opt/fedex/cesewfl/oracle/middleware12c
export MW_HOME
echo $MW_HOME

#Set JDK7 home


JAVA_HOME=/opt/java/hotspot/7/64_bit/jdk1.7.0_75
JAVA_VENDOR=Oracle

export JAVA_HOME
export JAVA_VENDOR

if [ $# -eq 1 ]
then
export DISPLAY=$1
fi

#cd /var/fedex/cesewfl/data/BPM12.1.3
$MW_HOME/oracle_common/upgrade/bin/ua -logLevel TRACE

sudo -u cesewfl ./upgrade_assist_v12.1.3.sh


199.81.99.63:0.0
We have data in cube_instane
GO TO PAGE 119 for UA rest of screens
Select oracle SOA based on topology ( both should be selected but since we did later below is separate.
Connect as cesebpm_schema
edb00074.ute.fedex.com:1526/CESEBPM_SVC1

CESEBPM_SCHEMA

Cesebpmschema

CESEBPM_MDS/cesebpmschema
Note: if upgrading from 12.1.2 name is prefix_UMS else here prefix_ ORASDPM
SELECT * FROM V$PWFILE_USERS;
Add more space
Ask DBA to change status
Note: ask DB to change status to VALID again in table “SCHEMA_VERSION_REGISTRY$”
Check again before start
Ask DBA to compile again

SQL> begin
2 dbms_utility.compile_schema('CESEBPM_SOAINFRA');
3 end;
4 /

PL/SQL procedure successfully completed.

Note: if faile you need reimport the schema and re-run, just make sure all obejcts are valid and granted
permission
[2/26/2016 3:44 PM] Don Sharp:
The issue with DBMS_AQ was a permissions issue. The CESEBPM_SOAINFRA user needed execute on
DBMS_AQ

LOGIn as

select * from system.schema_version_registry$;

update system.schema_version_registry$ set STATUS='VALID' where comp_id ='SOAINFRA';


commit;

continue from top Upgrade assistance

domain

/opt/fedex/cesewfl/oracle/middleware/user_projects/domains/cesewfldomain
Now check all the databases

Before
Note: IAU is not required to be upgraded.

Step 6

Reconfiguring the 11g Domain

Note: BAM cant be upgrade, reconfig should be run from admin server and copy to other domain
Move the reconfig file created in directory where script is running

sudo -u cesewfl mv reconfig.log reconfig.log.old

Run again the reconfig domain script

sudo -u cesewfl ./reconfig_domain_v12.1.3.sh 199.81.99.63:0.0


Whatever failed change to oracle instance
Change all Non XA to service connection and it should work fine
Nodemanager

Weblogic/wfladmin1
Nodemanager directory is different
7)

sudo -u cesewfl ./upgrade_assist_v12.1.3.sh 199.81.99.63:0.0


Give path of 11g domain here by default 12c is offered

/opt/fedex/cesewfl/oracle/middleware/user_projects/domains/cesewfldomain
Username and password of “cesewfl” is required

Below error because of I gave “weblogic/password “ which is wrong


2016-03-09T00:29:30.615+00:00] [Framework] [NOTIFICATION] [upgrade.Framework] Optional input
not required

[2016-03-09T00:29:30.693+00:00] [ucp] [NOTIFICATION]


[oracle.ucp.common.UniversalConnectionPoolBase] abandoned connection timeout timer stopped

[2016-03-09T00:29:30.696+00:00] [ucp] [NOTIFICATION]


[oracle.ucp.common.UniversalConnectionPoolBase] abandoned connection timeout timer stopped

[2016-03-09T00:29:33.111+00:00] [UCSUMS] [ERROR] [SDP-25826]


[upgrade.UCSUMS.UCSUMS_CONFIGURATION_PLUGIN] Error connecting to remote managed server
soa_server3.

[2016-03-09T00:29:33.112+00:00] [UCSUMS] [ERROR]


[upgrade.UCSUMS.UCSUMS_CONFIGURATION_PLUGIN] Cause: It could be that the plugin is missing
information needed to connect to one of the managed servers. Or it could be that the sshd is not
running on all the managed servers.
[2016-03-09T00:29:33.112+00:00] [UCSUMS] [ERROR]
[upgrade.UCSUMS.UCSUMS_CONFIGURATION_PLUGIN] Action: Check the error messages in the log file
to see what the problem is. Correct the problem before running the Upgrade Assistant again or perform
a manual copy of the old configuration from the remote managed servers to the AdminServer.

[2016-03-09T00:29:33.112+00:00] [UCSUMS] [ERROR]


[upgrade.UCSUMS.UCSUMS_CONFIGURATION_PLUGIN]

com.jcraft.jsch.JSchException: Auth fail

at com.jcraft.jsch.Session.connect(Session.java:461)

at com.jcraft.jsch.Session.connect(Session.java:154)

at oracle.ucsinternal.messaging.upgradeplugin.JschUtil.createSession(JschUtil.java:246)

at oracle.ucsinternal.messaging.upgradeplugin.JschUtil.connect(JschUtil.java:35)

at oracle.ucsinternal.messaging.upgradeplugin.ConnectTask.run(ConnectTask.java:49)

at
oracle.ucsinternal.messaging.upgradeplugin.UmsUpgradeConfigurationPlugin.doForEachApp(UmsUpgra
deConfigurationPlugin.java:727)

at
oracle.ucsinternal.messaging.upgradeplugin.UmsUpgradeConfigurationPlugin.examine(UmsUpgradeCon
figurationPlugin.java:276)

at oracle.ias.update.plugin.Plugin.examine(Plugin.java:531)

at oracle.ias.update.plan.PlanStep.examine(PlanStep.java:359)

at oracle.ias.update.UpgradeDriver.doExamines(UpgradeDriver.java:727)

at oracle.ias.update.gui.UAExamineThread.run(UAExamineThread.java:44)

]]

[2016-03-09T00:29:35.098+00:00] [UCSUMS] [ERROR] [SDP-25826]


[upgrade.UCSUMS.UCSUMS_CONFIGURATION_PLUGIN] Error connecting to remote managed server
soa_server2.

[2016-03-09T00:29:35.099+00:00] [UCSUMS] [ERROR]


[upgrade.UCSUMS.UCSUMS_CONFIGURATION_PLUGIN] Cause: It could be that the plugin is missing
information needed to connect to one of the managed servers. Or it could be that the sshd is not
running on all the managed servers.

[2016-03-09T00:29:35.099+00:00] [UCSUMS] [ERROR]


[upgrade.UCSUMS.UCSUMS_CONFIGURATION_PLUGIN] Action: Check the error messages in the log file
to see what the problem is. Correct the problem before running the Upgrade Assistant again or perform
a manual copy of the old configuration from the remote managed servers to the AdminServer.

[2016-03-09T00:29:35.099+00:00] [UCSUMS] [ERROR]


[upgrade.UCSUMS.UCSUMS_CONFIGURATION_PLUGIN]

com.jcraft.jsch.JSchException: Auth fail

at com.jcraft.jsch.Session.connect(Session.java:461)

at com.jcraft.jsch.Session.connect(Session.java:154)

at oracle.ucsinternal.messaging.upgradeplugin.JschUtil.createSession(JschUtil.java:246)

at oracle.ucsinternal.messaging.upgradeplugin.JschUtil.connect(JschUtil.java:35)

at oracle.ucsinternal.messaging.upgradeplugin.ConnectTask.run(ConnectTask.java:49)

at
oracle.ucsinternal.messaging.upgradeplugin.UmsUpgradeConfigurationPlugin.doForEachApp(UmsUpgra
deConfigurationPlugin.java:727)

at
oracle.ucsinternal.messaging.upgradeplugin.UmsUpgradeConfigurationPlugin.examine(UmsUpgradeCon
figurationPlugin.java:276)

at oracle.ias.update.plugin.Plugin.examine(Plugin.java:531)

at oracle.ias.update.plan.PlanStep.examine(PlanStep.java:359)

at oracle.ias.update.UpgradeDriver.doExamines(UpgradeDriver.java:727)

at oracle.ias.update.gui.UAExamineThread.run(UAExamineThread.java:44)

]]

[2016-03-09T00:29:35.100+00:00] [Framework] [NOTIFICATION] [upgrade.Framework] Finished


examining UCSUMS.UCSUMS_CONFIGURATION_PLUGIN with status: FAILURE.

[2016-03-09T00:29:42.007+00:00] [Framework] [NOTIFICATION] [upgrade.Framework] Finished


examining components.

Provide my username password who has cesewfl access


L2 environment upgrade

1) Create directory to copy from other machine

-bash-3.2$ cd /var/fedex/cesewfl/data
-bash-3.2$ ls -ltr
total 101259
-rw-r--r-- 1 cesewfl cesewfl 7 Dec 27 2013 samp.done
drwxr-xr-x 3 cesewfl cesewfl 28 Aug 28 2014 oracle_bkup
drwxrwxrwx 20 cesewfl cesewfl 1334 Sep 26 2014 build_tmp
drwxrwxrwx 6 cesewfl cesewfl 224 Mar 19 2015 patches
drwxr-xr-x 4 cesewfl cesewfl 43 Aug 27 2015 CESEWorkflowMDS
drwxr-xr-x 5 cesewfl cesewfl 90 Oct 20 21:25 Hudson
-rw-r--r-- 1 cesewfl cesewfl 77303808 Nov 18 12:15 brb
drwxr-xr-x 4 cesewfl cesewfl 104 Feb 10 21:44 cesewfldomain
drwxr-xr-x 3 cesewfl cesewfl 190 Feb 26 09:29 log-bkup
drwxr-xr-x 2 cesewfl cesewfl 136 Feb 26 22:49 Jdev12c
-bash-3.2$ sudo -u cesewfl mkdir BPM12.1.3
Password for ak5036477 on irh00307:

2) Scp from other machine software

-bash-3.2$ pwd

/var/fedex/cesewfl/data/BPM12.1.3

-bash-3.2$ sudo -u cesewfl scp * irh00307.ute.fedex.com:/var/fedex/cesewfl/data/BPM12.1.3/.

Password for ak5036477 on erh00205:

create_schema_v12.1.3.sh
100% 329 0.3KB/s 00:00

fmw_12.1.3.0.0_infrastructure.jar
100% 1528MB 80.4MB/s 00:19

fmw_12.1.3.0.0_soa.jar 100%
1336MB 83.5MB/s 00:16

fmw_12.1.3.0.0_wls.jar 100%
880MB 88.0MB/s 00:10

install_12c.sh 100% 294


0.3KB/s 00:00

install_bpm12c_v12.1.3.sh 100%
380 0.4KB/s 00:00

install_wls12c_infra_v12.1.3.sh
100% 391 0.4KB/s 00:00

install_wls12c_v12.1.3.sh 100%
380 0.4KB/s 00:00
V44413-01.zip 100%
880MB 80.0MB/s 00:11

V44416-01.zip 100%
1528MB 80.4MB/s 00:19

V44420-01.zip 100%
1336MB 63.6MB/s 00:21

-bash-3.2$ pwd

3) Copy scripts to “/opt/fedex/cesewfl/scripts”

-bash-3.2$ sudo -u cesewfl cp install_bpm12c_v12.1.3.sh install_wls12c_infra_v12.1.3.sh


/opt/fedex/cesewfl/scripts/.
Password for ak5036477 on irh00307:
-bash-3.2$ cd /opt/fedex/cesewfl/scripts/.
-bash-3.2$ ls -ltr

4) Start the upgrade


Updated
L2

BPM install
drop user CESEBPM_MDS cascade;

drop user CESEBPM_SOAINFRA cascade;

You might also like