| Mapping PeopleTools Tables |
|
| Tuesday, 21 February 2006 | |||||
|
The PeopleTools tables in your PeopleSoft database contain all of the meta-data related to your PeopleSoft application. You can generally distinguish them from the application tables by the lack of an underscore after the PS, for instance PSRECDEFN, PSOPRDEFN, etc. (Application tables have an underscore after the PS, for instance PS_PERSONAL_DATA, PS_CUSTOMER, etc). In general, PeopleSoft groups common PeopleTools tables by the table prefix. For instance, query tables all start with PSQRY, and role tables all start with PSROLE. But PeopleTools tables don't necessarily follow a consistent naming convention, and there are times when you'll want to know the exact table names. For instance, it would sometimes be nice to query against the tables directly instead of depending on Application Designer's limited functionality. Or it would be nice to use Data Mover to take an entire set of queries from one database to another without creating and migrating a huge project. Fortunately, PeopleSoft has documented every single PeopleTools table. You won't find it in PeopleBooks, but it's in one of the core data mover scripts you use during a database upgrade, MVPRDEXP.DMS. You'll find MVPRDEXP.DMS in the $PS_HOME/scripts directory of any PeopleSoft installation from at least version 7.x on. PeopleSoft delivers this script as part of the Move to Production process during an upgrade. The purpose of the script is to export all of the PeopleTools tables from the source database. Another script called MVPRDIMP.DMS runs next in the upgrade process to import all of the PeopleTools tables into the Target database. From that point forward, the upgrade creates, alters, and drops columns and tables in the target database to get the application tables and data in synch with the new PeopleTools definitions. Data conversion is another big part of the upgrade, but it all starts with MVPRDEXP.DMS. As useful as MVPRDEXP is to an upgrade, it's just as useful as a reference source. For instance, if you want the definitive list of user tables for your PeopleTools release, just open MVPRDEXP.DMS, search for Users, and viola -- you'll find PSOPRDEFN, PSOPRALIAS, PSROLEUSER, PSUSERATTR, PSUSEREMAIL, PSUSERPRSNLOPTN, PS_ROLEXLATOPR, PS_ROLEXLATOPR_LNG, and EXPORT PS_RTE_CNTL_RUSER. The same approach works for Records, Fields, Pages, Jobs, and even the elusive Portal Registry. Now you can create that data mover script to move queries from one instance to another, and you can move them with confidence. A quick word of caution: If you do move PeopleTools objects in this manner, you'll want to have the application shut down before the move, and run PSVERSION and clear your application server cache after the move. Keep in mind this isn't a "PeopleSoft-Supported" approach, so test thoroughly before making changes to a Production system, and never ever move PeopleTools objects like this unless the source and target are on the same PeopleTools release and patch level. Armed with information gleaned from MVPRDEXP, I wrote this script to identify queries that a user can't see because of a lack of query security: SELECT DISTINCT A.OPRID, A.QRYNAME, A.DESCR, B.RECNAMEI hope you find MVPRDEXP as useful as I have.
|
|||||
| Last Updated ( Tuesday, 21 February 2006 ) | |||||
| < Prev | Next > |
|---|

). I do most of my PeopleSoft technical work only through the back-end and care the least about it not being a standard. So, how do we carry objects between releases?