OORA-20001: FND-ORG_ID PROFILE CANNOT READ


今天早上,AP人員反應無法登入測試機的ERP,實際開啟ERP,發現可以開啟登入頁,
但是帳號、密碼打完後就出現Error,於是先重新啟重Application Server,結果不能登入,
但是出現了詳細的訊息,大致是說Profile有問題:
Oracle error -20001: ORA-20001: FND-ORG_ID PROFILE CANNOT READ: N, OPTION, MO: Operating Unit

我的另一位同事網路上找到了解決方法:

1. Get the Profile option ID using the following query:
    Select PROFILE_OPTION_ID,PROFILE_OPTION_NAME from fnd_profile_options
         where PROFILE_OPTION_NAME ='ORG_ID';

2. Run the following procedure which changes the profile option:
    DECLARE
        stat boolean;
    BEGIN
        dbms_output.disable;
        dbms_output.enable(100000);
        stat := FND_PROFILE.SAVE('ORG_ID',1991, 'SITE');
        IF stat THEN
            dbms_output.put_line( 'Stat = TRUE - profile updated' );
        ELSE
            dbms_output.put_line( 'Stat = FALSE - profile NOT updated' );
        END IF;
        commit;
    END;
3) Restart the apache server (可以不做)

測試之後,果然問題就解決了,最後發現有誤刪 Profile:MO Operating units Site-Level的值
,就會有這樣的情形出現。

Windows 11安裝時跳過網路連線