Upgrade Guide
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This section provides instructions for applying Service Pack 3 (SP3) 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:
Regardless of the release—8.1 or 8.1 with Service Pack 2—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 SP3 Domain.
If you choose to upgrade your existing SP2 domain to use the new SP3 libraries, upgrade instructions vary according to the method you used to install SP3. The following sections explain your options and the required manual update steps.
If you used the WebLogic Portal SP3 upgrade installer to update your existing SP2 install, then you do not need to make any changes to your SP2 domain. All scripts should pick up the appropriate libraries in /weblogic81.
Continue to Step 2: Upgrade Existing Database Schema on page 5-5.
If you used the full installer and you installed SP3 in a separate directory, then you must manually update scripts in their SP2 domain.
In the script setDomainEnv
, update the following variables:
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.
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 5 -3:
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 directory WL_HOME
\samples\domains\portal
to verify you have made all needed changes.
Navigate to the file db_settings.properties
in the domain that you are upgrading and update the module settings for SP3, as appropriate. The portal module cmv
and netuix module wsrp
are new for SP3. For example, 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
:
A new environment entry (env-entry) called useSSL
has been added for SP3. In order to use LdapPropertyManagerImpl
in WebLogic Portal SP3, you must manually change the ejb-jar.xml
deployment to include your connection information.
If you attempt to use the old ejb-jar.xml
deployment descriptor, the missing useSSL
env-entry causes the following exception to occur when you try to get user properties from LDAP:
javax.naming.NameNotFoundException: While trying to look up useSSL in
/app/ejb/p13n_ejb.jar#LdapPropertyManager/comp/env/config.; remaining name
'useSSL'
If you are continuing to an SP4 upgrade after completing the steps in this section, be sure to perform this task before using SP4.
To create a new SP3 domain that mirrors your existing SP2 domain, follow these steps:
See "Creating a New WebLogic Domain" at: http://download.oracle.com/docs/cd/E13196_01/platform/docs81/confgwiz/newdom.html.
portal_domain
\
portal_server
\ldap
.
Scripts for upgrading an SP2 database to SP3 are located in SP3_WL_HOME
\portal\upgrade\SP3
where SP3_WL_HOME
is the WL_HOME
directory for SP3.
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 SP2 database schema 8.1 SP3-compliant.
Note: For details about the database and schema changes that will be made for SP3, see Database Changes for SP3 on page D-1.
Warning: The SP3 PointBase database upgrade scripts cannot expand _LABEL
column lengths because PointBase does not support this type of ALTER
function. BOOK_LABEL
, PAGE_LABEL
, and LOOK_FEEL_LABEL
columns are expanded from Varchar(40) to Varchar(80). PointBase databases created with SP3 will properly define the columns as Varchar(80).
server
, dblogin
, and dbpassword
in the uncommented section for your environment, so that they correspond to the values for your existing database. SP3_WL_HOME
\portal\upgrade\SP3
and run the upgrade_db_schema_to_81SP3.cmd
or .sh
script to upgrade your database schema. The database is now upgraded. Back up the upgraded database before upgrading existing applications.
If you are continuing to an SP4 upgrade, be sure to back up the upgraded SP3 database before performing the SP4 upgrade.
During an upgrade from WebLogic Platform 8.1 SP2 to SP3, some tables are renamed with an old_
prefix so that the upgrades can be performed successfully and data migrated to the newly created tables. Once you have successfully upgraded, you can manually drop the following tables with the old_
prefix from your schema:
true
for the WEBLOGIC
Portal database; see Listing 5-1 for an example: Listing 5-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
server
, dblogin
, and dbpassword
in the uncommented section for your environment, so that they correspond to the values for your existing database. SP3_WL_HOME
\portal\upgrade\SP3
and run the upgrade_db_schema_to_81SP3.cmd
or .sh
script to upgrade your database schema to SP3, as appropriate. To verify that the upgrade was successful, inspect the upgrade_db_schema_to_81SP3.log
file. You can find the scripts and log file in SP3_WL_HOME
\portal\upgrade\SP3
.WEBLOGIC
Portal database, as shown in Listing 5-2.Listing 5-2 Resetting "Allow Select into/Bulkcopy" Option in Sybase
use master
go
sp_dboption WEBLOGIC,"select into/bulkcopy",false
go
use WEBLOGIC
go
checkpoint
go
If you are continuing to an SP4 upgrade, be sure to back up the upgraded SP3 database before performing the SP4 upgrade.
During an upgrade from WebLogic Platform 8.1 SP2 to SP3, some tables are renamed with an old_
prefix so that the upgrades can be performed successfully and data migrated to the newly created tables. Once you have successfully upgraded, you can manually drop the following tables with the old_
prefix from your schema:
If you are continuing to an SP4 upgrade, be sure to back up the upgraded SP3 database before performing the SP4 upgrade.
During an upgrade from WebLogic Platform 8.1 SP2 to SP3, some tables are renamed with an old_
prefix so that the upgrades can be performed successfully and data migrated to the newly created tables. Once you have successfully upgraded, you can manually drop the following tables with the old_
prefix from your schema:
If you are continuing to an SP4 upgrade, be sure to back up the upgraded SP3 database before performing the SP4 upgrade.
During an upgrade from WebLogic Platform 8.1 SP2 to SP3, some tables are renamed with an old_
prefix so that the upgrades can be performed successfully and data migrated to the newly created tables. Once you have successfully upgraded, you can manually drop the following tables with the old_
prefix from your schema:
When you upgrade, you may need to also update applications you have developed. Specifically, additional tasks are required if the following is true:
If you created a new domain during your upgrade process AND your application uses encrypted passwords, you must re-encrypt any passwords currently used by your application.
A portal domain's portal application's META-INF directory contains the application-config.xml file. In newly created portal domains where the portal application is deployed, this file will contain unencrypted passwords. These passwords actually remain clear text until the portal administration tool's Service Administration page is used to edit and save attributes contained in this config file, or the application using the password accesses it. (And if the portal application is deployed as an ear file, this file cannot be edited and saved.)
<TONIA> Encrypting passwords is done differently according to how your application is deployed. If you have deployed your application as an EAR file, you'll have to manually modify the configuration files and bring down the server to do so. If you have not deployed as an EAR, you can use the Service Administration tools within the Administration Console to enter the passwords for your application. The Service Administration tools then automatically encrypt your passwords.
<TONIA> Is the application already deployed at this point? Other than WSRP and CM SPI implementations, what other passwords are kept in the application-config file?
<TONIA> Is there a way to automatically encrypt passwords for CM SPI implementations? Or is this manual process always necessary when switching domains?
You'll need to use the EncryptDomainString
command-line utility to generate an encrypted password and then place that encrypted password into your portal applications's application-config.xml
file while it is still in the development environment. Then you can build the EAR file for the application and deploy it as necessary.
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; 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 5-3). The command line utility prints a domain specific encrypted string.
Figure 5-1 Opening a File in WebLogic Workshop
Listing 5-3 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 5-3)
element; for example:Listing 5-4 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" />
Now you can build the EAR file and deploy the application.
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.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:
If you choose not to update a Web project's libraries with the dialog box, 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.
![]() ![]() |
![]() |
![]() |