Upgrade Guide
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This section provides instructions for applying Service Pack 4 (SP4) changes to your portal applications after you install that service pack. For instructions on installing service packs, see "Installing Service Packs and Rolling Patches" at:
http://download.oracle.com/docs/cd/E13196_01/platform/docs81/install/update.html
This section contains information on the following subjects:
For detailed information on the changes made for SP4, see the following sections:
Regardless of the release—8.1 or 8.1 with a previous service pack—from which you are upgrading, you follow the same basic process to complete the upgrade.
The following sections describe these steps.
You must choose one of the following upgrade paths:
Typically you would use this upgrade path if you want to preserve a highly customized domain, including LDAP setup.
Typically you would use this path if you are comfortable recreating your domain configuration, and you want to ensure that your domain is based on the latest domain template. If you are using this method, skip to Creating a New SP4 Domain on page 6-6.
If you choose to upgrade your existing SP2 or SP3 domain to use the new SP4 libraries, upgrade instructions vary according to the method you used to install SP4. The following sections explain your options and the required manual update steps.
If you used the WebLogic Portal SP4 upgrade installer to update your existing SP2 or SP3 install, then you do not need to make any changes to your SP2 or SP3 domain. All scripts should pick up the appropriate new libraries for the SP4 environment.
Continue to Step 2: Upgrade Existing Database Schema on page 6-6.
The upgrade installer cannot update paths to the JDK because it can reside in a unique location. To update paths to point to the new JDK for SP4, edit the variables in the scripts shown in
Table 6 -4:
The url-template-config.xml
file, which is automatically created in a portal Web project, contains URL templates and variables for WSRP portlets. You must make the following two changes in this file for each WSRP URL template, so that the BEA-provided consumer will be able to honor mode changes and state changes from non-BEA producers:
In addition, the producer should use the wsrp:
prefix for standard modes and window states in URLs, so that non-BEA consumers can recognize URLs returned by BEA-provided producers.
If you used the full installer and you installed SP4 in a separate directory, then you must manually update scripts in your SP2 or SP3 domain.
In the script setDomainEnv
, update the following variables as needed:
Note: The file setDomainEnv
contains the DOMAIN_NAME
variable. Do not change the value of this variable if you are upgrading an existing domain to SP4.
You might need to update the path to point to the new JDK for SP4. The variables and their corresponding scripts are shown in Table 6 -5:
The following table lists other variables and files that may or may not need updating, depending on which scripts you use in your environment; however, BEA recommends that you review the files in your existing domain directory to verify that you have made all needed changes.
If you are planning to reinitialize your database using the create_db.cmd/.sh
script, you must manually update the db_settings.properties
file, in the domain that you are upgrading, to add new module information. Later you will update the db_settings.properties
file with database-specific information.
Navigate to the file db_settings.properties
in the domain that you are upgrading and edit the module settings for SP4, as the following example shows. The portal module cmv
and netuix module wsrp
were added for SP3; the p13n module er
is new in SP4. For more information on these new modules, see Database Changes for SP3 on page D-1 and Database Changes for SP4 on page C-1.
The corresponding lines of the properties file should appear like this:
If you use the script create_db
, update these variables in the script set-dbenv
:
In Service Pack 4, policy reference data is stored in the RDBMS rather than in LDAP. When you access the Administration Portal for the first time in an upgraded domain, an automatic migration of this policy reference data occurs.
Back up your LDAP data prior to continuing with the upgrade process. You can make a backup by simply copying the portal_domain
\portalServer\ldap
directory.
To create a new SP4 domain that mirrors your existing SP2 or SP3 domain, follow these steps:
See "Creating a New WebLogic Domain" at: http://download.oracle.com/docs/cd/E13196_01/platform/docs81/confgwiz/newdom.html.
Warning: If you are upgrading from an SP2 database to an SP4 database, you must first follow the steps to upgrade your database from SP2 to SP3 as described in Step 2: Upgrade Existing Database Schema on page 5-5. After following those steps, you can then follow the steps in this chapter to upgrade your database to SP4.
Scripts for upgrading an SP3 database to SP4 are located in SP4_WL_HOME
\portal\upgrade\SP4
where SP4_WL_HOME
is the WL_HOME
directory for SP4.
For databases other than PointBase, in order to use the provided WebLogic Portal upgrade scripts, database client software must be installed and configured on the machine from which you execute the upgrade scripts.
Complete the steps in the following sections, as appropriate depending on your database type, to make your WebLogic Platform 8.1 SP3 database schema 8.1 SP4-compliant.
workshop.dbn
, workshop$1.wal
, and pointbase.ini
Pointbase database files from your source domain to SP4_WL_HOME
\portal\upgrade\SP4
.server
, dblogin
, and dbpassword
in the uncommented section for your environment, so that they correspond to the values for your existing database. upgrade_db_schema_to_81SP4.log
file. You can find the scripts and log file in SP4_WL_HOME
\portal\upgrade\SP4
. The following errors will appear in the .log
file and can be ignored:
SQL> create user weblogic password weblogic;
SQL>
SQL> Error Message: You must have DBA-level authority to perform this operation.
SQL> Error SQLState: 2D086
SQL> Error Code: 15088
SQL>
SQL>
create schema weblogic authorization weblogic
SQL>
SQL> Error Message: Schema WEBLOGIC already exists in the database.
SQL> Error SQLState: 2201F
SQL> Error Code: 25228
SQL>
SQL> --
workshop.dbn
, workshop$1.wal
, and pointbase.ini
files from SP4_WL_HOME
\portal\upgrade\SP4
to your SP4 domain, as appropriate.Note: This step is applicable whether you are using an upgraded domain or a new domain.
The database is now upgraded. Back up the upgraded database before upgrading existing applications.
true
for your WEBLOGIC
Portal database; see Listing 6-1 for an example: Listing 6-1 Setting Allow Select Into/Bulkcopy Option in Sybase
use master
go
sp_dboption WEBLOGIC,"select into/bulkcopy",true
go
use WEBLOGIC
go
checkpoint
go
WEBLOGIC_INDEX SEGMENT
to your WEBLOGIC
Portal database for placement of non-clustered indexes in their own segment; see Listing 6-2 for an example:Listing 6-2 Adding a WEBLOGIC_INDEX SEGMENT for Sybase
declare @vdevno int
select @vdevno = max(convert(tinyint, substring(convert(binary(4),d.low), v.low,1))) + 1
from master.dbo.sysdevices d, master.dbo.spt_values v
where v.type = 'E' and v.number = 3
disk init name='WEBLOGIC_INDEX',
physname='F:\INDEXFILE\WEBLOGIC_INDEX1.DAT',
vdevno = @vdevno ,
size=15360
go
alter database WEBLOGIC ON WEBLOGIC_INDEX = 30
go
exec sp_addsegment 'WEBLOGIC_INDEX', 'WEBLOGIC','WEBLOGIC_INDEX'
go
exec sp_dropsegment 'logsegment', 'WEBLOGIC','WEBLOGIC_INDEX'
go
Note: You can use the sp_estspace
stored procedure to determine the size necessary for WEBLOGIC_INDEX.
server
, dblogin
, and dbpassword
in the uncommented section for your environment, so that they correspond to the values for your existing database. SP4_WL_HOME
\portal\upgrade\SP4
and run the upgrade_db_schema_to_81SP4.cmd
or .sh
script to upgrade your database schema to SP4, as appropriate. To verify that the upgrade was successful, inspect the upgrade_db_schema_to_81SP4.log
file. You can find the scripts and log file in SP4_WL_HOME
\portal\upgrade\SP4
.WEBLOGIC
Portal database, as shown in Listing 6-3.Listing 6-3 Resetting "Allow Select into/Bulkcopy" Option in Sybase
use master
go
sp_dboption WEBLOGIC,"select into/bulkcopy",false
go
use WEBLOGIC
go
checkpoint
go
WEBLOGIC_INDEX
file group to your WEBLOGIC
Portal database for placement of non-clustered indexes in their own file group; see Listing 6-4 for an example: Listing 6-4 Adding the WEBLOGIC_INDEX file group for SQL Server
use WEBLOGIC
go
ALTER DATABASE WEBLOGIC ADD FILEGROUP [WEBLOGIC_INDEX]
GO
ALTER DATABASE WEBLOGIC ADD FILE(NAME = N'WEBLOGIC_INDEX', FILENAME = N'F:\INDEXFILE\WEBLOGIC_INDEX.NDF' , SIZE = 60, FILEGROWTH = 10%) TO FILEGROUP [WEBLOGIC_INDEX]
GO
server
, dblogin
, and dbpassword
in the uncommented section for your environment, so that they correspond to the values for your existing database.
When you upgrade from SP3 to SP4, you must change the following configurations for your application:
If you are using a third-party content management system, you'll need to re-configure that repository before deploying. This allows the passwords to be re-encrypted for the new domain. If you are not switching domains when upgrading, you may skip this task.
First, remove the existing repository connection, using the Portal Administration Tools:
Then, re-connect to the repository.
If you are moving to a new domain when upgrading, you'll need to re-encrypt any passwords that are used to access WSRP portlets. Encryption is domain-specific so it needs to be updated when switching domains.
If you are deploying your application as an EAR file, this needs to be done manually with the EncryptDomainString
command-line utility which is used to generate an encrypted password and then place that encrypted password into the application-config.xml
file before you deploy your application. The application must already exist in the new domain.
Note: If you are going to deploy an exploded application (not an EAR), you can use the Service Administration tool in Portal Administration Portal to re-set passwords. When passwords are re-entered using the Service Administration tool, they are automatically encrypted. However, the Portal Administration Tool cannot be used if you have already compressed your application to an EAR file.
A portal application's META-INF
directory contains the respective application-config.xml.
file where WSRP passwords are stored automatically. For example, Listing 6-5 shows the WSRP element from application-config.xml
during the development phase (exploded) before deployment as an EAR file:
Listing 6-5 Development Phase Clear Text Passwords in application-config.xml
<ConsumerSecurity
AdminPassword="weblogic" AdminUserName="weblogic"
CertAlias="wsrpConsumer" CertPrivateKeyPassword="wsrppassword"
ConsumerName="wsrpConsumer"
IdentityAssertionProviderClass="com.bea.wsrp.security.
DefaultIdentityAssertionProvider"
Keystore="wsrpKeystore.jks" KeystorePassword="password"
Name="ConsumerSecurity"/>
After the Service Administration tool is used to edit attributes, the file is saved and automatically passwords are encrypted, as shown in Listing 6-6:
Listing 6-6 .Encrypted Passwords in application-config.xml
<ConsumerSecurity
AdminPassword="{3DES}3QrrUeIwN/DxlDI++1ixPw=="
AdminUserName="weblogicc" CertAlias="wsrpConsumer"
CertPrivateKeyPassword="{3DES}g7h+VOSAsO9pSlvYSSB2iw=="
ConsumerName="wsrpConsumer"
IdentityAssertionProviderClass="com.bea.wsrp.security.
DefaultIdentityAssertionProvider"
Keystore="wsrpKeystore.jks" KeystorePassword=
"{3DES}1OLYVirMWOo+3sEU80cMqw==
"
Name="ConsumerSecurity" />
When upgrading applications that are stored as EAR files, you must manually update the encryption.
To encrypt passwords, use this procedure:
domain
/portal/
(where domain
is the domain directory for the application) and run setDomainEnv.cmd
.java com.bea.p13n.util.EncryptDomainString -targetDomainDir
d
-inputStrings
d
is the domain directory to which the portal application is being deployed; for example, s
is the input password to encryptjava com.bea.p13n.util.EncryptDomainString -targetDomainDir \bea\weblogic81b\samples\domain\portal -inputString weblogic
In this example, the input string weblogic
represents administrator's password (adminpassword=weblogic
; see Listing 6-7). The command line utility prints a domain specific encrypted string.
Figure 6-1 Opening a File in WebLogic Workshop
Listing 6-7 Clear text Passwords in application-config.xml
<ConsumerSecurity
AdminPassword="weblogic"
AdminUserName="weblogic"
CertAlias="wsrpConsumer"CertPrivateKeyPassword="wsrppassword"
ConsumerName="wsrpConsumer"
IdentityAssertionProviderClass="com.bea.wsrp.security.
DefaultIdentityAssertionProvider"
Keystore="wsrpKeystore.jks"KeystorePassword="password"
Name="ConsumerSecurity"/>
<ConsumerSecurity>(
Listing 6-7)
element; for example:Listing 6-8 Encrypted Passwords Generated by EncryptDomainString Utility
<ConsumerSecurity
AdminPassword="{3DES}3QrrUeIwN/DxlDI++1ixPw=="
AdminUserName="weblogicc" CertAlias="wsrpConsumer"
CertPrivateKeyPassword="{3DES}g7h+VOSAsO9pSlvYSSB2iw=="
ConsumerName="wsrpConsumer"
IdentityAssertionProviderClass="com.bea.wsrp.security.
DefaultIdentityAssertionProvider"
Keystore="wsrpKeystore.jks"KeystorePassword=
"{3DES}1OLYVirMWOo+3sEU80cMqw==
"
Name="ConsumerSecurity" />
If you need to change an administrator's password for any reason, simply changing the password will result in having to rebuild and redeploy the EAR. This is time-consuming and counterproductive. Instead, you can work around this problem by doing the following:
application-config.xml
file as described in Encrypting Passwords.After you install a new service pack that includes portal library updates, you must update the libraries in the applications you have developed. Updating overwrites the existing libraries.
If you have developed your own Unified User Profile (UUP) to access user profile properties stored in an external user store, you have most likely modified and re-created the p13n_ejb.jar
file in your application root directory. Because p13n_ejb.jar
is one of the files overwritten in the following procedure, you should back up your existing file. After the upgrade procedure, you must re-create the updated p13n_ejb.jar
with your UUP implementation. For more information, see "Setting up Unified User Profiles" in the User Management Guide at http://download.oracle.com/docs/cd/E13218_01/wlp/docs81/users/uup.html#999527.
To update your application libraries, follow these steps:
.workshop
directory from the application that you will be working with. Do this prior to starting WebLogic Workshop.If you choose not to update a Web project's libraries using the displayed window, you can update the Web project later by right-clicking the Web project directory in the Application window and choosing Install
To apply the service pack library updates to portal applications already deployed in production, redeploy those applications after you have updated them in WebLogic Workshop. See Step 4: Redeploy the Upgraded Application for deployment instructions.
p13n_ejb.jar
in your application root directory, re-implement your UUP in the new p13n_ejb.jar
file. See Before You Begin - About UUP.
The final upgrade step is to redeploy the application on your server.
For deployment instructions, see "Preparing and Deploying the EAR File" at:
http://download.oracle.com/docs/cd/E13218_01/wlp/docs81/prodOps/deployment.html.
Review the functional changes that are described in Functional Changes Affecting Your WebLogic Portal Environment. If any manual upgrade tasks are required for your particular environment, perform those tasks as instructed.
![]() ![]() |
![]() |
![]() |