Professional Documents
Culture Documents
User Acceptance
For
10g Upgrade at BGL
Project/Application:
CCBS
Prepared For:
BGL
Page 1 of 21
Document Control
Change Record
Reviewers
Distribution List
References
Contact Persons
S No. Person Email Telephone/Ext
Page 2 of 21
TABLE OF CONTENTS
INTRODUCTION 3
OVERVIEW ... 4
Existing Environment .. 4
Target Environment .. 5
Database Upgrade Methods 6
HARDWARE AND SOFTWARE REQUIREMENTS .. 7
ADOPTED UPGRADE METHODS 8
BACKUP STRATEGIES .. 9
ROLLBACK PLANS . 10
UPGRADING DATABASES......12
TABS . 12
TABSMED .14
CONFIGURING THE APPLICATION SERVERS ..16
CONFIGURING WEBUTIL .18
CUTOVER PLAN 19
Page 3 of 21
INTRODUCTION
This document intended to cover the aspects of the upgrade principals for Banglalink Billing environment.
Page 4 of 21
OVERVIEW
EXISTING ENVIRONMENT
Databases
Application Servers
Page 5 of 21
OVERVIEW
TARGET ENVIRONMENT
Databases
Application Servers
Page 6 of 21
OVERVIEW
Oracle Database 10g supports the following tools and methods for upgrading a database to the new Oracle
Database 10g release:
Provides a graphical user interface (GUI) that guides you through the upgrade of a
database. The DBUA can be launched during installation with the Oracle Universal Installer,
or you can launch the DBUA as a standalone tool at any time in the future.
All the methods have their own advantages and disadvantages. Oracle recommends to use DBUA, as its
automate almost all the aspects of the Upgrade process.
However, by using DBUA, there is very little control over the overall upgrade process. In manual upgrade,
Many steps can be controlled by the DBA or system administrators. And in Export/Import method we can
have a fresh database, specially a brand new data dictionary.
But comparatively export/import method can take a lot of time to accomplish depending on the size of the
database. We have chosen mixed type of upgrade method for different database, according to the
business needs.
Page 7 of 21
HARDWARE AND SOFTWARE REQUIREMENTS
Hardware
Storage
For TABS database the activity will require exactly double amount of space that allocated to the
existing environment.
For TABSMED database Enough space should be provided to keep a full cold backup of database.
Software
Operating system
Page 8 of 21
Patches for JDK on HP-UX 11.11:
Database
Application server
Oracle Application server 10g Release 2 (10.1.2) with infrastructure for windows.
Webutil 106
Jacob 1.8
Risks associated
The Export procedure can take long time due the data dictionary problem with current
installation
Import can take longer then expected time due to performance issue on newly allocated
storage
Reliability of DBUA
Lesser business criticality
No points to have a fresh data dictionary
Upgrade timing
Risks associated
Page 9 of 21
DBUA may fail to accomplish task, which will require redoing everything as DBUA provides very
less control over upgrade process
In case of fallback it might take longer time then expected to restore the backup
Risks associated
Client side browser and jinitiator version mismatch can cause troubles
BACKUP STRATEGIES
We will keep the original database untouched throughout the Upgrade process time window. And
we may keep the database for several days, in case, if decision comes to revert back to previous
version of database.
To keep this with original setting, we will use different voting disk and different OCR for the Oracle
10g CRS installation. So we will take following measure prior to install CRS.
$ whoami
oracle
For TABSMED we are going use DBUA for upgrading the database. So for this we need to have a
valid backup to be restored if any emergency.The preferred method is to take a full database cold
backup to disk. After Shutting down the database
Page 10 of 21
rman"target/nocatalog"
startupmount;
RUN
{
ALLOCATECHANNELc1 TYPEDISK;
BACKUPascopyDATABASEFORMAT'some_backup_directory%U'TAGbefore_upgrade;
BACKUPascopyCURRENTCONTROLFILEformat'backup_location';
}
p.sAllocateasmuchasthenumberofcpuinmachine
For application servers we will re-configure the servers. So we will keep a copy of the server to
reinstate when necessary. For each server, before reconfiguration
Take a copy backup of full file system after shutting down all oracle services
ROLLBACK PLANS
As the existing database is not touched during the upgrade, we need to re-point to the previous
configuration files and bring up the GSD components and run 9i database on it. To bring up the 9i
database we need to perform following steps
gsdctl start
Page 11 of 21
If in case, CRS installation need to be removed, following steps needs to considered
rootdelete.sh
rootdeinstall.sh
if any problem to run these scripts or if it fails then proceed to next step to manually remove
CRS configuration
rm /sbin/init.d/init.cssd
rm /sbin/init.d/init.crs
rm /sbin/init.d/init.crsd
rm /sbin/init.d/init.evmd
rm /sbin/rc2.d/K960init.crs
rm /sbin/rc2.d/K001init.crs
rm /sbin/rc3.d/K960init.crs
rm /sbin/rc3.d/S960init.crs
rm -Rf /var/opt/oracle/scls_scr
rm -Rf /var/opt/oracle/oprocd
rm /etc/inittab.crs
cp /etc/inittab.orig /etc/inittab
In case of abandoning the upgrade process the backup taken before upgrade needs to be restored.
To bring up the database, following steps needs to be done
rman"target/nocatalog"
STARTUPNOMOUNT
RUN
{
REPLICATECONTROLFILEFROM'backup_location';
ALTERDATABASEMOUNT;
RESTOREDATABASEFROMTAGbefore_upgrade;
ALTERDATABASEOPENRESETLOGS;
Page 12 of 21
}
UPGRADING DATABASES
PREUPGRADE TASKS
TABLESPACES
ROLES
PROFILES
USERS
DATABASE LINK
DIRECTORIES
VIEWS
PROCEDURES
FUNCTIONS
Page 13 of 21
PACKAGES
TYPES
TRIGGERS
JOBS
SEQUENCES
GRANTS
SYNONYMS
4. Customize the tablespace script to reflect the new locations of the datafiles
5. Taking Backup of oracle binaries and orainventory
6. Taking optimizer statistics for the TABS schema
UPGRADE TASKS
1. Export TABS, HIST schema and also any other schema used by in-house built applications.
2. Add entries for VIP in /etc/hosts files
3. Edit network configuration to add alias for the VIP with port 801
4. Shutdown the 9i database
5. shutdown GSD Daemons
6. Apply Operating system patches
7. Adjusting kernel parameters
8. Create another pair of voting disk and OCR to preserve previous ones.
9. Modify srvConfig.loc to point new copied OCR
10. check /var/opt/oracle with ll
11. Install Oracle 10g CRS
12. Change ownership of all the raw devices to oracle.
13. Run root.sh in both nodes
14. check /var/opt/oracle with ll and compare with pre-CRS check
15. Check for CRS processes
16. Upgrade CRS and apply patchset 4
17. Install oracle 10g database binaries
18. Apply database patchset 4
19. Create a new database
20. Create the tablespaces and users
21. Import TABS schema
22. Adjusting TABS schema with updated script
23. Recreate all synonyms
24. Recreate all database links
25. Recreate all sequences
POSTUPGRADE TASKS
Page 14 of 21
3. Set THRESHOLD values for tablespace alerts if necessary
4. Upgrade the catalog database
UPGRADING DATABASES
PRE-UPGRADE TASKS
TABLESPACES
DATABASE LINK
DIRECTORIES
Page 15 of 21
JOBS
SEQUENCES
SYNONYMS
UPGRADE TASKS
POSTUPGRADE TASKS
ORACLE_HOME
PATH
ORA_NLS10
LD_LIBRARY_PATH
Page 16 of 21
APPLICATION SERVER CONFIGURATION
Page 17 of 21
Installation type=Oracle Forms and Business intelligence
For Infrustructure
FORMS_PATH=c:\$bin
REPORTS_PATH=c:\$bin
NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6
Go to following location
d:\oracle10gR2AS\forms\server
Take a Backup of formsweb.cfg file before modifying. Add config section tabs in the formsweb.cfg file
tabs config in formsweb.cfg will look like,
[tabs]
envfile=tabs.env
HTMLbeforeForm=<script>var windowHandle;function openWindowURL(URLString){var sptest
= URLString.split("/");var mstring = sptest[sptest.length-1];var fstring =
mstring.split("_");var furl =
sptest[0]+"//"+sptest[2]+"/"+sptest[3]+"/"+fstring[0].substring(2,fstring[0].length)
+"/"+mstring;a = "100%";mw_content =
"<html><head><title>Bill_View<\/title><\/head><body oncontextmenu='return false;'
topmargin='0' leftmargin='0' rightmargin='0'><iframe width='"+a+"' height='"+a+"'
frameborder='0' src='"+furl+"'><\/iframe><\/body><\/html>";windowHandle =
Page 18 of 21
window.open("javascript:opener.mw_content","Bill","location=false,scrollbars,resizab
le");windowHandle.defaultStatus="Bill";windowHandle.focus();}</script>
otherparams=CONNECTSTRING=tabs FRUN=sommenu.fmx
webUtilArchive=/forms/webutil/frmwebutil.jar,/forms/webutil/jacob.jar,/forms/webutil
/JScript.jar,/forms/webutil/CtcPjcBean.jar,/forms/webutil/medTcp.jar,/forms/webutil/
ocxTcp.jar,/forms/webutil/rolloverbutton.jar
baseHTMLJInitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
imageBase=Codebase
archive_jini=frmall_jinit.jar,icons.jar,colorpicker.jar,xalan.jar,xercesImpl.jar,xml
-
apis.jar,xmlcomp.jar,xmlparserv2.jar,FormsGraph.jar,modcursor.jar,TCPIP.jar,browser.
jar,xerces.jar,browser2.jar,frmall.jar,JScriptWindowPJC.jar,jdev-rt.jar
form=SOMPASS.fmx
separateFrame=true
width=1100
height=760
splashScreen=false
d:\oracle10gR2AS\opmn\bin\opmnctl stopall
d:\oracle10gR2AS\opmn\bin\opmnctl startall
d:\oracle10gR2AS\network\admin\tnsnames.ora
d:\oracle10gR2INFRA\network\admin\tnsnames.ora
For example
TABSRND =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.14)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TABSRND)
)
)
fmrweb_utf8.res
fmrweb.res
CONFIGURING WEBUTIL
Page 19 of 21
Create a Webutil folder inside $ORACLE_HOME/forms. Copy webutil folder in
$ORACLE_HOME/forms we will refer this as webutil home.
Edit $ORACLE_HOME/forms/server/forms.conf
Comment out
#AliasMatch ^/forms/webutil/(..*) "/appl/oracle/ias10/forms/webutil/$1"
And add
AliasMatch ^/forms/webutil/(..*) "/appl/oracle/ias10/forms/webutil/lib/$1"
WEBUTIL_CONFIG=$ORACLE_HOME/forms/webutil/server/webutil.cfg
webUtilArchive=/forms/webutil/frmwebutil.jar,/forms/webutil/jacob.jar
baseHTMLjinitiator=<webutil_home>\server\webutiljini.htm
baseHTMLjpi=<webutil_home> \server\webutiljpi.htm
baseHTML=<webutil_home>\ server\webutilbase.htm
Set JDK_HOME=$ORACLE_HOME/jdk
Sign_webutil.bat Jacob.jar
Sign_webutil.bat frmwebutil.jar
frmwebutil.jar,Jacob.jar,rt.jar
CUTOVER PLAN
Page 20 of 21
The Upgrade process consists of following components
The tasks are listed down with approximate timings. Some of the activities will be performed in parallel.
For the Upgrade activities and Pre go-live testing we will require 48 hours downtime (approx.)
Page 21 of 21