Created
September 12, 2023 19:26
-
-
Save iversond/ba57cc97c5f360c07e131cc888d4af5c to your computer and use it in GitHub Desktop.
Useful PeopleSoft Refresh SQL Statements - not a full list, but common and unique statements that have helped me improve the refresh process.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ----------- | |
-- System Name | |
-- ----------- | |
-- Persist the GUID across refreshes - used by the EMF Hub | |
UPDATE sysadm.psoptions | |
SET | |
guid = '<static guid>', | |
shortname = '<DBNAME>', | |
longname = '<Application> <Environment>', | |
systemtype = '<XLAT Types>', | |
f1url = 'http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%' | |
|| CHR(38) | |
|| 'ctx=fscm92latest' | |
|| CHR(38) | |
|| 'ctx=pt860latest', | |
ctrlf1url = 'http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%' | |
|| CHR(38) | |
|| 'ctx=fscm92latest' | |
|| CHR(38) | |
|| 'ctx=pt860latest'; | |
-- -------- | |
-- Branding | |
-- -------- | |
-- Enable and use psadmin.io Themes | |
-- Set Fluid and ClassicPlus | |
UPDATE sysadm.psoptions | |
SET | |
ptbrandtheme = 'IO_BROWN_RW_THEME', | |
themestyletype = 'PTCP'; | |
TRUNCATE TABLE sysadm.psoptionsaddl; | |
INSERT INTO sysadm.psoptionsaddl | |
VALUES ( | |
'C', | |
'CSS', | |
'IO_BROWN_860_PTCP_SS', | |
0 | |
); | |
TRUNCATE TABLE sysadm.ps_ptbr_thm_reg; | |
-- Enable CompanyInfo header for non-production | |
UPDATE sysadm.ps_ptbr_lteltat | |
SET | |
ptbr_attr_eb_cla = 'Y' | |
WHERE | |
ptbr_layout_id = 'DEFAULT_HEADER_FLUID' | |
AND ptbr_element_id = 'CompanyInfo' | |
AND ptbr_attr_id = '.html'; | |
truncate table sysadm.ps_ptbr_ltattr_cla; | |
INSERT INTO sysadm.ps_ptbr_ltattr_cla ( | |
ptbr_attr_eb_cla, | |
ptbr_layout_id, | |
ptbr_attr_lval_cla | |
) VALUES ( | |
'Y', | |
'DEFAULT_HEADER_FLUID', | |
'<p><span id="ioDBName">:1 - Refreshed On :2</span> <span id="ioWelcome">:3</span></p>' | |
); | |
-- -------------- | |
-- Portal Options | |
-- -------------- | |
UPDATE sysadm.psprdmdefn | |
SET | |
descr254 = '<App> <Environment>' | |
WHERE | |
portal_name = 'EMPLOYEE'; | |
-- --------- | |
-- Favorites | |
-- --------- | |
UPDATE sysadm.psprufdefn | |
SET | |
portal_urltext = replace(portal_urltext, 'https://prod.psadmin.io/', 'https://nonprod.psadmin.io/') | |
WHERE | |
portal_urltext LIKE '%prod.psadmin.io%'; | |
UPDATE sysadm.ps_pt_portal_mru | |
SET | |
portal_urltext = replace(portal_urltext, 'https://prod.psadmin.io/', 'https://nonprod.psadmin.io/') | |
WHERE | |
portal_urltext LIKE '%prod.psadmin.io%'; | |
UPDATE sysadm.ps_pt_portal_pinto | |
SET | |
portal_urltext = replace(portal_urltext, 'https://prod.psadmin.io/', 'https://nonprod.psadmin.io/') | |
WHERE | |
portal_urltext LIKE '%prod.psadmin.io%'; | |
-- ----------------- | |
-- Web Profile | |
-- ----------------- | |
-- Enable Cntl-J in non-production | |
INSERT INTO sysadm.pswebprofnvp VALUES ( | |
'<webprofilename>', | |
'CONNECTINFO', | |
' ', | |
'Y' | |
); | |
-- ---------------------- | |
-- Workflow Configuration | |
-- ---------------------- | |
UPDATE sysadm.psoprdefn | |
SET | |
emailid = '[email protected]' | |
WHERE | |
oprid = ( | |
SELECT | |
roleuser | |
FROM | |
ps_wf_sys_defaults | |
); | |
UPDATE sysadm.ps_rolexlatopr | |
SET | |
emailid = '[email protected]' | |
WHERE | |
roleuser = ( | |
SELECT | |
roleuser | |
FROM | |
ps_wf_sys_defaults | |
); | |
-- ---------------- | |
-- Search Framework | |
-- ---------------- | |
-- INSERT will be needed if you haven't changed any Search Option Defaults | |
UPDATE sysadm.ps_ptsf_optn_saved | |
SET | |
ptsf_search_pvalue = '2' | |
WHERE | |
ptsf_srch_provider = 'ES' | |
AND ptsf_srch_eng_ins = 'PTSF_SEARCH' | |
AND ptsf_search_pname = 'PTSF_NOOF_SHARDS'; | |
-- ------------------ | |
-- DMW File Locations | |
-- ------------------ | |
UPDATE sysadm.psprjrepository | |
SET | |
ptreppath = '/mnt/cust/<app><env>/dmw' | |
WHERE | |
ptrepname = 'DMW'; | |
-- ------------------------ | |
-- scramble email addresses | |
-- ------------------------ | |
-- Find all tables with EMAILID, EMAIL_ADDR, etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment