Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This procedure CANNOT be used on TC internal userid’s

/* CHANGE USERID PROCDURES PROCEDURES - SETUP “OLD” AND “DESIRED NEW” USERID’S ON Z980 */

...

SELECT * FROM A01_USER WHERE USER_ID =
(SELECT TRIM(TO_TXT) FROM Z980_TERM_CONVERSION WHERE TERM_TYPE_CD = 'USERCHANGE') ;

/* create Create a new Userid on the A01 table having the same party_id as the old userid */

INSERT INTO A01_USER
SELECT
(SELECT UPPER(TRIM(TO_TXT)) FROM Z980_TERM_CONVERSION WHERE TERM_TYPE_CD = ‘USERCHANGE'USERCHANGE'),
REPLACE(PASSWORD,'''','')’XXX', TRUNC(SYSDATE), 'TCUSER', TRUNC(SYSDATE),0,
PARTY_ID, ACTIVE_IND, NVL(TC_REGION_CD,'7')
FROM A01_USER
WHERE USER_ID = (SELECT TRIM(FROM_TXT) FROM Z980_TERM_CONVERSION
WHERE TERM_TYPE_CD = 'USERCHANGE') ;

...