Friday, May 8, 2009

7.2 Peoplesoft Database creation part II

Since we currently install HRMS9.0 on PT8.49, and like for all the version 9.0 it has been built on PT8.48, we should upgrade the Applicatin database version. It consists on several scripts (sql, dms) and application of projects. Some of the following steps below are also for multilingual application, don't apply these step if your only in english.
The scripts to be apply are under $PS_HOME/scripts, the projects under $PS_HOME/projects
1. Run the sql script update of maintenance table (/apps/psoft/hrms9/scripts) :
[oracle@psoft:/apps/psoft/hrms9/scripts]$ sqlplus sysadm/sysadm@DMOHRMS9
SQL*Plus: Release 10.2.0.3.0 - Production on Sun Jan 6 20:58:53 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> @rel849un.sql
SQL> UPDATE PSSTATUS SET TOOLSREL='8.49',
2 LASTREFRESHDTTM = SYSDATE
3 ;
1 row updated.
SQL>
SQL> CREATE UNIQUE INDEX PSAPSROLECLASS ON PSROLECLASS (CLASSID,
2 ROLENAME) TABLESPACE PSINDEX STORAGE (INITIAL 40000 NEXT 100000
3 MAXEXTENTS UNLIMITED PCTINCREASE 0) PCTFREE 10 PARALLEL NOLOGGING
4 ;
Index created.
SQL> ALTER INDEX PSAPSROLECLASS NOPARALLEL LOGGING
2 ;
Index altered.
SQL>
SQL> CREATE INDEX PSCPSTREELEAF ON PSTREELEAF
2 (SETID,
3 TREE_NAME,
4 EFFDT DESC,
5 TREE_NODE_NUM,
6 RANGE_FROM,
7 RANGE_TO) TABLESPACE PSINDEX STORAGE (INITIAL 40000 NEXT 100000
8 MAXEXTENTS UNLIMITED PCTINCREASE 0) PCTFREE 10 PARALLEL NOLOGGING
9 ;
Index created.
SQL> ALTER INDEX PSCPSTREELEAF NOPARALLEL LOGGING
2 ;
Index altered.
SQL>
SQL> COMMIT
2 ;
Commit complete.
SQL> SPOOL OFF
SQL>
2. Run the grant script to allow the PEOPLE user to read the tables as well (PSSTATUS, PSOPRDEFN, PSACCESSPRFL) :
[oracle@psoft:/apps/psoft/hrms9/scripts]$ sqlplus sysadm/sysadm@DMOHRMS9 @grant.sql
SQL*Plus: Release 10.2.0.3.0 - Production on Sun Jan 6 21:03:03 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Grant succeeded.
Grant succeeded.
Grant succeeded.
Commit complete.
SQL>
3. As user PS, open the DataMover, modify and run storeddl.dms (comment out the database you are not running on) :

clip_image001
clip_image002
clip_image003
clip_image004
4. In bootstrap mode (user which is the owner of objests), SYSADM in the current case, open DataMover, modify (only the log output file) and run msgtlsupg.dms
clip_image005
clip_image006
clip_image007

clip_image008
5. In Application Designer, as PS user (you cannot connect in bootstrap mode - SYSADM - within the AppDesigner), copy the project PPLTLS84CUR
Take care, the project is very big and take age to copy (network avaibility !)
clip_image009
clip_image010

clip_image011

clip_image012

clip_image013

clip_image014

Some messages can be ignore.
6. In Application Designer, as PS user, copy the project PPLTLS84CURML or if you installed French, copy the project PPLTLSML
clip_image015

clip_image016

clip_image017

clip_image018
7. In Application Designer, as PS user, copy the project PPLTLS84CURDEL
clip_image019

clip_image020

clip_image021

8. In Application Designer, as PS user, open and build the project PPLTLS84CUR

clip_image022

clip_image023

clip_image024

Open the settings to set all the parameters as well:

clip_image025

Name a sql script to be run after project building:

clip_image026

clip_image027

Take care to all the alter and create tabs options:

clip_image028

clip_image029

clip_image030

clip_image031
clip_image032

Some warning are raised, you can ignore them.
9. Run the SQL script created by the previous project's build in SQL*Plus

clip_image033

At this step, you shouldn't have any error, check the spool file as well.

At this step, you may face problem to connect to Apps Designer with PS user.
Check with following command from sqlplus as sysadm user to see the privileges granted at step 2 still exists or not.
SELECT owner, grantee, table_name FROM dba_tab_privs WHERE table_name IN (‘PSACCESSPRFL’, ‘PSOPRDEFN’, ‘PSSTATUS’);
If no rows found for user PEOPLE and PS then repeat STEP-2.

10. In Application Designer, as PS user, copy and build the project PT84TBLSPC

clip_image034

clip_image035

In the copy option, take care to check the DDL from source option:

clip_image036

Build the project :

clip_image037
clip_image038

Take care of the build settings, they are a different than previously :
clip_image039

clip_image040

clip_image041

clip_image042

clip_image043

No warnings, no errors.
11. Run the SQL script created by the previous project's build in SQL*Plus

clip_image044

12. Update the Peopletools system data, run the following DMS scripts in bootstrap mode (from $PS_HOME/scripts) : pt849tls.dms, pslanguages.dms, tlsupgnoncomp.dms

clip_image045

clip_image046

clip_image047

clip_image048

13. For ML application, run the following statement in DMS (take from the install doc the three letter code of your language, FRA is for french) :
UPDATE PSLANGUAGES SET INSTALLED = 1 WHERE LANGUAGE_CD='FRA';
14. In DMS, as PS user, run the following DMS scripts (from $PS_HOME/scripts):
pt849tlsfra.dms (if you installed French db), msgtleng.dms, ptstreng.dms, $PS_HOME/src/cbl/base/storept.dms, ptdefnsec.dms
and createvw.dms, this last one will (re)create around 18000 views, so take care to the time to apply.
15. Run application engine from your client, go to $PS_HOME/bin/client/winx86:
This query define the user who can run the AEs
SQL> select roleuser, rolename from psroleuser where rolename in ('PeopleSoft Administrator', 'Portal Administrator');
ROLEUSER ROLENAME
------------------------------ ------------------------------
PSEM PeopleSoft Administrator
PSHC PeopleSoft Administrator
PS Portal Administrator
PSEM Portal Administrator
Better to use PS, then in a DOS Window :
psae -CD DMOHRMS9 -CT ORACLE -CO PS -CP PS -R INSTALL -AI UPG844PORTAL
psae -CD DMOHRMS9 -CT ORACLE -CO PS -CP PS -R INSTALL -AI UPGQRYDUPHED
psae -CD DMOHRMS9 -CT ORACLE -CO PS -CP PS -R INSTALL -AI UPGPTSMDAT
psae -CD DMOHRMS9 -CT ORACLE -CO PS -CP PS -R INSTALL -AI UPGPT846PP
psae -CD DMOHRMS9 -CT ORACLE -CO PS -CP PS -R INSTALL -AI UPGPT848PP
psae -CD DMOHRMS9 -CT ORACLE -CO PS -CP PS -R INSTALL -AI UPGPT848IBUG (addendum : you should NOT run this AE if the Application you are installing has been built on Peopletools 8.48 or later)
***note CD => dbname, CT => dbtype, CO => user, CP => pwd, R => run control, AI => AppEngine name***
16. In Application Designer, as PS user, open the project PTUPGIBCLONE and copy to a file

(addendum : if the Application you are installing has been built on Peopletools 8.48 or later go directly to step 20)
clip_image049

clip_image050

clip_image051

clip_image052

17. In DMS, as PS user, run $PS_HOME/scripts/ptupg_trx_export.dms
18. In Application Designer, as PS user, open the project PTUPGIBDELETE and copy to a file.
19. In Application Designer, as PS user, copy the project PTUPGIBDELETE from the file previously created, since the project already exists in database, you should be sure to check "From File"

clip_image053

20. Within SQL*Plus, run the grant.sql script.

The PeopleTools upgrade is finished.

No comments: