You are on page 1of 4

UPGRADE OWB COMPONENT TO THE DATABASE VERSION

OWB - ORACLE WAREHOUSE BUILDER

After I upgraded my database from 11.2.0.1 to 11.2.0.4, I found database component OWB was
not upgraded to 11.2.0.4 version. Our application is not using OWB but its possible to
upgrade OWB component by running following scripts.

# To Cleanup OWB repository and creating OWBSYS Schema with Repository Objects

$ cd $ORACLE_HOME/owb/UnifiedRepos

SQL>@<OH>/owb/UnifiedRepos/clean_owbsys.sql;
SYS>@<OH>/owb/UnifiedRepos/cat_owb.sql;

INSTALLED DATABASE COMPONENTS

# Checking Oracle Database Version and Installed Components Information

SYS> SELECT * FROM V$VERSION;


...

SYS> SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY;

COMP_NAME VERSION STATUS


------------------------------------------ ------------------------------ -----------
OWB 11.2.0.1.0 VALID
Oracle Application Express 3.2.1.00.10 VALID
Oracle Enterprise Manager 11.2.0.4.0 VALID
OLAP Catalog 11.2.0.4.0 VALID
Spatial 11.2.0.4.0 VALID
Oracle Multimedia 11.2.0.4.0 VALID
Oracle XML Database 11.2.0.4.0 VALID
Oracle Text 11.2.0.4.0 VALID
Oracle Expression Filter 11.2.0.4.0 VALID
Oracle Rules Manager 11.2.0.4.0 VALID
Oracle Workspace Manager 11.2.0.4.0 VALID
Oracle Database Catalog Views 11.2.0.4.0 VALID
Oracle Database Packages and Types 11.2.0.4.0 VALID
JServer JAVA Virtual Machine 11.2.0.4.0 VALID
Oracle XDK 11.2.0.4.0 VALID
Oracle Database Java Packages 11.2.0.4.0 VALID
OLAP Analytic Workspace 11.2.0.4.0 VALID
Oracle OLAP API 11.2.0.4.0 VALID

18 rows selected.

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu


UPGRADE OWB COMPONENT TO THE DATABASE VERSION

# Check OWBSYS Schema is existing or not in the database

SYS> SELECT USERNAME FROM DBA_USERS WHERE USERNAME LIKE '%OWB%';

USERNAME
------------------------------
OWBSYS_AUDIT
OWBSYS

# Drop the OWBSYS Schema and cleaning the OWB Repository

SYS>@?/owb/UnifiedRepos/clean_owbsys.sql;

User dropped.

User dropped.

Role dropped.

Role dropped.

Role dropped.

SYS> SELECT USERNAME FROM DBA_USERS WHERE USERNAME LIKE '%OWB%';


no rows selected

# Recreate the OWBSYS Schema with Repository Objects

SYS>@?/owb/UnifiedRepos/cat_owb.sql <tablespace_name>; or

SYS>@?/owb/UnifiedRepos/cat_owb.sql;

cat_owb.sql <tablespace> <OWBSYS_Password>

Package created.
Package body created.

Create user OWBSYS with default tablespace users ...


old 1: CREATE USER OWBSYS IDENTIFIED BY &2 DEFAULT TABLESPACE &1
new 1: CREATE USER OWBSYS IDENTIFIED BY OWBSYS DEFAULT TABLESPACE users

User created.
User OWBSYS has been created.

Create user owbsys_audit with default tablespace users ...


old 1: CREATE USER owbsys_audit IDENTIFIED BY &2 DEFAULT TABLESPACE &1
new 1: CREATE USER owbsys_audit IDENTIFIED BY OWBSYS DEFAULT TABLESPACE users

User created.

User owbsys_audit has been created.

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu


UPGRADE OWB COMPONENT TO THE DATABASE VERSION

PL/SQL procedure successfully completed.

Grant succeeded.

Grant succeeded.

[TRIMMED]

Synonym created.

Table created.

PL/SQL procedure successfully completed.

User altered.

User altered.

NOTE: To associate the Control Center with the correct OWB home, now run

owb/UnifiedRepos/reset_owbcc_home.sql. You must run the script as a user with java

admin privileges. For example, connect as sys as sysdba to run the script.

# Script ensures that Control Centre Service functions correctly


# Script forces the Control Service Centre to run from OWB 11.2 Installation

SYS>@?/owb/UnifiedRepos/reset_owbcc_home.sql;

Enter the full path of the Oracle home for the OWB Control Center install.

If you are installing in a Windows environment, please ensure that the case of the

path exactly matches the Oracle install path including the drive letter.

OWB Control Center Home:

/u01/app/oracle/product/11.2.0/dbhome_2/owb

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu


UPGRADE OWB COMPONENT TO THE DATABASE VERSION

OWB COMMAND LEVEL SCRIPTS

The clean_owbsys.sql Script drops the OWBSYS schema and roles associated with it.

The cat_owb.sql Script checks if an OWBSYS schema exists, and creates it if necessary, and
then installs the objects required by OWB 11.2 repository. This may lock OWBSYS account.

The reset_owbcc_home.sql Script ensures that Oracle Warehouse Builder uses the 11.2 version
of the Control Center Service. It would ask full path $ORACLE_HOME to be entered.

Now OWB Component version has been upgraded to the database version.

# Check Version of OWB Component

SYS> SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY WHERE COMP_NAME='OWB';

COMP_NAME VERSION STATUS


-------------------- --------------------- -----------
OWB 11.2.0.4.0 VALID

SYS> SELECT USERNAME FROM DBA_USERS WHERE USERNAME LIKE '%OWB%';

USERNAME
------------------------------
OWBSYS_AUDIT
OWBSYS

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu