The Patch Set Assistant is used in patch set releases only to update the database schema of an Oracle Fusion Middleware component. This tool updates 11g Release 1 schema versions as described below:
Version 11.1.1.2.0 to version 11.1.1.4.0
Version 11.1.1.3.0 to version 11.1.1.4.0
If your existing schema version is earlier than 11.1.1.2.0, you must migrate to version 11.1.1.2.0 before you can run the Patch Set Assistant. See Appendix B, "Using Patch Assistant to Migrate from 11g Release 1 (11.1.1.1.0) to Release 1 (11.1.1.2.0)" for more information.
If you are interested in creating new schemas or dropping existing schemas, you must use the Repository Creation Utility (RCU). Information is provided in Oracle Fusion Middleware Repository Creation Utility User's Guide.
This chapter contains the following topics:
Section 4.1, "Which Schemas Need to be Updated with Patch Set Assistant?"
Section 4.2, "Special Instructions for Standalone Oracle Portal Repository Schemas"
Section 4.4, "Before You Begin Using the Patch Set Assistant"
The following component schemas (default names shown) must be updated with the Patch Set Assistant in order to update them to 11g Release 1 (11.1.1.4.0):
Oracle Portal (prefix
_PORTAL
)
Oracle Internet Directory (ODS
)
SOA Infrastructure (prefix
_SOAINFRA
)
Audit Services (prefix
_IAU
)
Metadata Services (prefix
_MDS
)
WebCenter Spaces (prefix
_WEBCENTER
)
Discussions (prefix
_DISCUSSIONS
)
Discussions Crawler (prefix
_DISCUSSIONS_CRAWLER
)
Note:
The Oracle Internet Directory schema (ODS
) cannot be prepended with a custom prefix.Note:
The WebCenter schemas must be updated in the order listed above; that is, Metadata Services first, followed by WebCenter Spaces, then Discussions, then Discussions Crawler.If the Discussions Crawler schema has not previously been installed using RCU, then migrating Discussions will automatically install the Discussions Crawler schema, assigning the same password as the Discussions schema. If you then attempt to update the Discussions Crawler schema individually, the Patch Set Assistant will warn that the schema has already been updated.
If you attempt to patch a schema that is not in this list, you will see the following error message:
"UPGAST-02001: unsupported schema for patching: PREFIX_SCHEMANAME "
If you are using an Oracle Portal repository stored outside of the OracleAS Metadata Repository, then do not use the Patch Set Assistant to update the Portal schemas in the repository. Instead, refer to "Upgrading an Oracle Portal Repository in a Customer Database" in Oracle Fusion Middleware Upgrade Guide for Oracle Portal, Forms, Reports, and Discoverer.
If you have installed the Oracle Service Bus schema in a Microsoft SQL Server database, then you must upgrade the schema when you apply the Oracle Fusion Middleware 11g Release 1 (11.1.1.4.0) patch set to your Oracle Service Bus 11.1.1.3.0 environment.
Refer to the following special instructions for more information:
If you have installed Oracle Service Bus as part of an existing Oracle SOA Suite domain, use the instructions in this chapter to run the Patch Set Assistant that is installed in the Oracle SOA Suite Oracle home after you install the 11.1.1.4.0 patch set.
The Patch Set Assistant utility installed in the Oracle SOA Suite Oracle home also updates the Oracle Service Bus schema that is installed in your Microsoft SQL Server database.
If you are have installed Oracle Service Bus in its own Oracle WebLogic Server domain (without Oracle SOA Suite), then use the following instructions to upgrade the Oracle Service Bus schema in the Microsoft SQL Server database to 11.1.1.4.0:
Locate the Oracle Service Bus schema upgrade script in the following location in the Oracle Service Bus Oracle home:
OSB_ORACLE_HOME/dbscripts/mssql/upgrade_osb_111130_111140_sqlserver.sql
Edit the script to replace the following string with the database user for the Oracle Service Bus schema:
$(SCHEMA_USER)
Connect to the SQL Server database and run the script to upgrade the schema.
This section contains information about things you should check before you run the Patch Set Assistant:
Section 4.4.3, "Shut Down All Components Using the Schemas You Want to Update"
Section 4.4.4, "Check the aq_tm_processes Value for Oracle Portal"
Before running Patch Set Assistant, you should perform a physical backup of your database. Refer to your database documentation for more information.
If you run the Patch Set Assistant to upgrade an existing schema and it does not succeed, you must restore the original schema before you can try again. Make sure you backup your existing database schemas before you run the Patch Set Assistant.
Before running Patch Set Assistant, you should check to make sure that your database is up and running and that the schemas you want to update exist in the database. For example, on Oracle databases, use SQL*Plus to login as user prefix
_
schemaname
to verify that the schema exists.
Before running Patch Set Assistant, shut down any Oracle Fusion Middleware components (including the Managed Server and Oracle instances) that may be using the schemas you want to update.
If you are running the Patch Set Assistant for the Oracle Portal schema on an Oracle database, make user that the aq_tm_processes
value in your database is greater than 0. To check, use the following command after connecting to the database:
show parameter aq_tm_processes;
If the value returned is 0, use the following command to change the value to 1:
alter system set aq_tm_processes=1 scope=both;
The following sections describe how to run the Patch Set Assistant when you are installing the Oracle Fusion Middleware 11g Release 1 (11.1.1.4.0) patch set:
Section 4.5.1, "General Information about the Patch Set Assistant"
Section 4.5.5, "Verifying the Schema Version Number After Update"
Section 4.5.7, "Loading the Oracle SOA Suite 11.1.1.4.0 Purge Scripts"
The Patch Set Assistant is installed into the bin
directory in your Oracle home by the Patch Set Installer (see Chapter 3, "Applying the Latest Oracle Fusion Middleware Patch Set").
You can only use the Patch Set Assistant to patch a component schema if the schema matches the product type in the Oracle home from which the Patch Set Assistant started. In other words, if you run the Patch Set Assistant from an Oracle home containing Oracle SOA Suite, you cannot patch your existing Oracle Portal schema; you would have to run the Patch Set Assistant from an Oracle home that contained Oracle Portal.
Below is the error message you would see if you tried to update the Oracle Portal schema from an Oracle home that did not contain Oracle Portal:
UPGAST-02002: unsupported Oracle home type for patching component PORTAL The command failed to complete successfully
Note:
In an environment where no products other than Application Developer have been installed in an Oracle home, you can update the Metadata Services (prefix
_MDS
) schema from the bin
directory in the Oracle Common Oracle home.To start Patch Set Assistant, go to the bin
directory in the Oracle home for the product schema you want to patch, then run the following command:
On UNIX operating systems:
cd ORACLE_HOME/bin
./psa
On Windows operating systems:
CD ORACLE_HOME\bin
psa.bat
The full command line syntax for the Patch Set Assistant is shown below:
./psa (or psa.bat) -dbType database_type -dbConnectString 'database_connection_URL' (NOTE: single quote characters are only required for Microsoft SQL Server and IBM DB2 databases on UNIX operating systems) -dbaUserName dba_user_name -schemaUserName schema_user_name [-logLevel log_level] [-invPtrLoc inventory_location]
See Table 4-1 for descriptions for these parameters.
Table 4-1 Patch Set Assistant Command Line Parameters
Parameter | Description |
---|---|
|
Database type. Specify "Oracle", "Microsoft", or "IBM". The default is "Oracle." |
|
Database connection URL. For Oracle databases on Windows and UNIX operating systems: //host:port/service_name For Microsoft SQL Server and IBM DB2 databases on Windows operating systems: //host:port;DatabaseName=dbname For Microsoft SQL Server and IBM DB2 databases on UNIX operating systems: '//host:port;DatabaseName=dbname' NOTE: For all non-Oracle databases on UNIX operating systems, the connection URL must be enclosed by a single quote (') character because of the way the UNIX shell treats the embedded semicolon (;) character. For Oracle RAC databases, you only need to specify the connection URL for a single instance. |
|
Database administrator user name:
NOTE: If you are running the Patch Set Assistant against the Oracle Internet Directory ( You will be prompted for the database administrator password from the command line. |
|
User name of the schema being upgraded (for example, This name must match one of the existing schema names in the schema version registry, and it must be one of the schemas that is valid for upgrade (one of the schemas listed in Section 4.1, "Which Schemas Need to be Updated with Patch Set Assistant?"). If the schema name does not match one of the schemas in the schema version registry, you will get the following error message:
UPGAST-02003: schema is not registered in schema version registry: "PREFIX_SCHEMANAME"
In addition, you must specify the schema user name in all CAPS for Microsoft SQL Server databases; this is because Microsoft SQL Server is case-sensitive and RCU creates schema names using all CAPS. |
|
Logging level. One of the following:
The default logging level is NOTIFICATION. |
|
Alternate Oracle inventory location (UNIX operating systems only). |
|
View all of the command line options. |
Below is an example command that will update the DEV_PORTAL
schema in an Oracle database on a UNIX operating system:
./psa -dbType Oracle -dbConnectString //ExampleOracleDB:1521/orcl.us.oracle.com -dbaUserName sys -schemaUserName DEV_PORTAL
Below is an example command that will update the ODS
schema in an Oracle database on a UNIX operating system:
./psa -dbType Oracle -dbConnectString //ExampleOracleDB:1522/orcl2.us.oracle.com -dbaUserName sys -schemaUserName ODS
Below is an example command that will update the DEV_SOAINFRA
schema in a Microsoft SQL Server database on a Microsoft Windows operating system:
psa.bat -dbType Microsoft -dbConnectString //ExampleSQLServerDB:1433;DatabaseName=ExampleSQLServerDB -dbaUserName sa -schemaUserName DEV_SOAINFRA
Below is an example command that will update the DEV_WC
schema in an IBM DB2 database on a UNIX operating system:
./psa -dbType IBM -dbConnectString 'ExampleDB2DB:50000;DatabaseName=ExampleDB2DB' -dbaUserName db2admin -schemaUserName DEV_WC
You can use the SQL command below to verify that the schema version in schema_version_registry
has been properly updated:
SELECT version, status FROM schema_version_registry WHERE owner='schema_name';
Replace schema_name
with the value supplied in the -schemaUserName
parameter from the command line. The version number should appear as "11.1.1.4.0" and the status should appear as "VALID."
Note:
Unlike major releases which use Upgrade Assistant to upgrade one or more schemas at a time, Patch Set Assistant only updates a single schema (the one passed by-schemaUserName
). In particular, the RUU component (Schema Version Registry) is not modified by Patch Set Assistant so its version number will remain at 11.1.1.3.0.If the status appears as "INVALID" then the schema update failed. You should examine the logs files to determine the reason for the failure. For more information, see Section 4.6, "Patch Set Assistant Log Files".
If you are using an Oracle database, you should recompile database objects after running the Patch Set Assistant by connecting to the database as SYS and running the following from SQL*Plus:
SQL> @?/rdbms/admin/utlrp.sql
This will compile the database objects that were updated by Patch Set Assistant.
Then issue to following query to ensure there are no longer any invalid database objects:
SELECT owner, object_name FROM all_objects WHERE status='INVALID';
None of the database objects for the updated schema should be invalid at this point. If there are any, run the utlrp.sql
command again and check again.
When the amount of data in Oracle Fusion Middleware databases grows very large, maintaining the databases can become difficult and can affect performance. Oracle Fusion Middleware 11g Release 1 (11.1.1.4.0) provides a set of tools that can help you purge the Oracle Fusion Middleware of unneeded data.
When a new Oracle Fusion Middleware user installs the Oracle SOA Suite 11g Release 1 (11.1.1.4.0) schemas using the Repository Creation Utility (RCU), stored procedures required by the Oracle SOA Suite purge scripts are automatically installed in the database.
However, if you are running Oracle Fusion Middleware 11g Release 1 (11.1.1.2.0) or Release 1 (11.1.1.3.0), these stored procedures are not installed automatically. As a result, after you run the Patch Set Assistant to update your Oracle SOA Suite schemas to 11.1.1.4.0, you must manually install the necessary database objects using the following procedure. This procedure is necessary if you want to use the purging capabilities provided by Oracle SOA Suite 11g Release 1 (11.1.1.4.0):
Locate, download, and unpack the Oracle Fusion Middleware 11g Release 1 (11.1.1.4.0) Repository Creation Utility (RCU) software archive.
For more information, see "Obtaining RCU" in the Oracle Fusion Middleware Repository Creation Utility User's Guide.
The directory where you unpack the RCU software is referred to as the RCU_HOME directory.
Using SQLPlus, connect to the database where the Oracle SOA Suite schemas are installed using the database user that owns the SOAINFRA schema.
Run the following script to load the database objects required for purging Oracle SOA Suite data:
RCU_HOME/rcu/integration/soainfra/sql/soa_purge/soa_purge_scripts.sql
Run the following script to load the database objects required for verifying the Oracle SOA Suite data in the database:
RCU_HOME/rcu/integration/soainfra/sql/verify/soa_verify_scripts.sql
After you load the database objects using the provided SQL scripts, refer to "Managing Database Growth" in the Oracle Fusion Middleware Administrator's Guide for Oracle SOA Suite for more information.
The Patch Set Assistant writes log files to the following locations:
On UNIX operating systems:
ORACLE_HOME/upgrade/logs/psatimestamp.log
On Windows operating systems:
ORACLE_HOME\upgrade\logs\psatimestamp.log
Some components will create a second log file called psa
timestamp
.out
, also in the same location.
The timestamp
will reflect the actual date and time that Patch Set Assistant was run.
Should any failures occur when running Patch Set Assistant, these log files will be needed to help diagnose and correct the problem; do not delete them. You can alter the contents of your log files by specifying a different -logLevel
from the command line.
Some of the operations performed by the Patch Set Assistant may take longer to complete than others. If you want to see the progress of these long operations, you can also see this information in the log file.