Setting Up the Migrated Database
No matter which approach you decide to use, read and observe the follow recommendations in your migrated PeopleTools environment.
-
Set up the appropriate compatibility level.
Review the information in the Microsoft SQL Server online documentation concerning compatibility level and how it applies to upgrading. Locate the compatibility level for the Microsoft SQL Server version you are upgrading to.
It is very important to remember to modify the compatibility level of your PeopleSoft database to the Microsoft recommended level immediately after verifying the database integrity after upgrade. PeopleSoft PeopleTools will not recognize the compatibility level used in your database and it will assume the appropriate compatibility mode was selected. Utilizing a different compatibility mode may cause unexpected behavior in the product.
-
Verify database integrity.
Oracle recommends that you verify the integrity of your database and repair any problems that may occur after migrating your database. Make sure to run
DBCC CHECKDBat the upgraded database. Immediately after migrating the database the compatibility mode is correct. -
Update database statistics.
The Microsoft SQL Server online documentation recommends updating your database statistics to help optimize query performance. Use the
sp_updatestatsstored procedure to update statistics in user-defined tables in Microsoft SQL Server 2022 databases. Make sure the compatibility mode is set to the Microsoft recommended level before running this command.For a more elaborate procedure you can use a script to run the following commands for all tables in your PeopleSoft database:
sp_createstats ’indexonly’ UPDATE STATISTICS <PS_TABLENAME> WITH FULLSCANFor example, the script should be similar to this:
exec sp_createstats ’indexonly’ UPDATE STATISTICS PS_BU_TYPE_INV WITH FULLSCAN; UPDATE STATISTICS PSAPMSGARCHPD WITH FULLSCAN; -
Update usage counters.
In earlier versions of SQL Server, the values for the table and index row counts and page counts can become incorrect. To correct any row or page counts that are not valid, Microsoft recommends that you run
DBCC UPDATEUSAGEon all databases following the upgrade. -
Enable READ COMMITTED SNAPSHOT ISOLATION (RCSI).
By default all PeopleSoft release 9.2 applications running Microsoft SQL Server 2016 will have RCSI enabled. If RCSI is not enabled you must activate the RCSI level for the upgraded database since all the PeopleSoft 9.2 applications will use that isolation level by default.
-
To verify if the database is using RCSI you may run the following SQL command, substituting the name of your database for DATABASENAME:
select is_read_committed_snapshot_on from sys.databases where database_id = db_id (‘DATABASENAME’)The output must be the number 1 (one), which means, RCSI is enabled.
-
If RCSI is not enabled you must activate now the RCSI level for the upgraded database.
-
To enable RCSI you can use the script labeled
ENABLE_RCSI.SQLavailable under PS_HOME\scripts for all PeopleSoft PeopleTools 8.48 and later. Edit and review the script before running it.Make sure there is no database activity and no other connections to the database; otherwise RCSI will not be activated (see Microsoft SQL Server online documentation for further details).
The script executes the following command:
ALTER DATABASE <DBNAME> SET READ_COMMITTED_SNAPSHOT ON
-
-
Check the login.
By default login accounts created on Microsoft SQL Server 2022 will inherit the password policies from their operating systems. If the password for the migrated login accounts does not comply with the operating system, you may experience problems signing on with those login names and passwords.
There are several ways to solve the problem. One simple solution is to disable the feature for each login account or to change its password. However, remember that if you change the password for the login accounts used as CONNECTID or ACCESSID, you must update and encrypt through Data Mover the appropriate security tables (PSSTATUS, PSOPRDEFN, and PSACCESSPROFILE) with the new values to be able to log in again to your PeopleSoft database.
See PeopleTools: Security Administration.