Oracle EBS 配置文件取值
SELECT op.profile_option_id, tl.profile_option_name, tl.user_profile_option_name, lv.level_id, lv.文件安全性, va.level_value, CASE WHEN va.level_id = 10001 THEN '地点' WHEN va.level_id = 10002 THEN (SELECT fav.application_name FROM fnd_application_vl fav WHERE fav.application_id = va.level_value) WHEN va.level_id = 10003 THEN (SELECT /** $header$ **/ t.responsibility_name FROM fnd_responsibility_tl t, fnd_responsibility b WHERE t.responsibility_id = va.level_value AND t.responsibility_id = b.responsibility_id AND b.application_id = t.application_id -- AND NVL(B.END_DATE, SYSDATE + 1) > SYSDATE AND nvl(b.start_date, SYSDATE - 1) < SYSDATE AND t.language = 'ZHS') WHEN va.level_id = 10004 THEN (SELECT user_name FROM fnd_user WHERE user_name NOT IN ('*ANONYMOS*', 'CONVERSION', 'INITIAL SETUP', 'FEEDER SYSTEM', 'CONCURRENT MANAGER', 'STANDALONE BATCH PROCESS') AND user_id = va.level_value AND nvl(end_date, SYSDATE + 1) > SYSDATE --AND NVL(START_DATE, SYSDATE - 1) < SYSDATE ) WHEN va.level_id = 10005 THEN (SELECT node_name FROM fnd_nodes WHERE node_id = va.level_value) WHEN va.level_id = 10006 THEN (SELECT NAME FROM hr_operating_units WHERE organization_id = va.level_value) ELSE NULL END AS profile_level_value, va.profile_option_value FROM fnd_profile_options_tl tl, fnd_profile_options op, fnd_profile_option_values va, (SELECT 10001 level_id, '地点' 文件安全性 FROM dual UNION SELECT 10002 level_id, '应用产品' 文件安全性 FROM dual UNION SELECT 10003 level_id, '责任' 文件安全性 FROM dual UNION SELECT 10004 level_id, '用户' 文件安全性 FROM dual UNION SELECT 10005 level_id, '服务器' 文件安全性 FROM dual UNION SELECT 10006 level_id, '组织' 文件安全性 FROM dual) lv WHERE tl.language = 'ZHS' AND tl.profile_option_name = op.profile_option_name AND va.profile_option_id = op.profile_option_id AND va.level_id = lv.level_id --AND TL.PROFILE_OPTION_NAME like '%' --AND TL.USER_PROFILE_OPTION_NAME like '%'
土豆君