Oracle EBS 初始化使用者密碼

來源:互聯網
上載者:User

標籤:成功   tput   登入   sam   acl   並且   入參   bsp   next   

---修改密碼,並且將限制使用者下次登入的時候(第一次登入),強制要換一個新的口令:---此過程可以完全類比我們在標準使用者的Form裡面初始化使用者的密碼的動作! ---最後要說明的是,這個處理過程是通過研究標準建立使用者的畫面得出來的結果,所以,如果有需要,請放心使用!SELECT last_logon_date,password_date,LAST_UPDATE_DATE,LAST_UPDATE_LOGINFROM FND_USERWHERE USER_NAME = ‘QWR01‘; DECLARE   P_USER_NAME FND_USER.USER_NAME%TYPE;   P_INIT_PASSWORD VARCHAR2(30);---初始化密碼,非加密的。   ---   l_change_flag VARCHAR2(10);   l_reason varchar2(2000);BEGIN    ---輸入參數(使用者名稱和初始化的密碼)    P_USER_NAME := ‘QWR01‘;    P_INIT_PASSWORD := ‘PWD123‘;       ---------    ---處理--    L_change_FLAG := fnd_web_sec.change_password(P_USER_NAME,P_INIT_PASSWORD);      IF L_change_FLAG = ‘Y‘ THEN        -- Bug 7016473 - During an administrative reset, set the last_logon_date to NULL        -- instead of SYSDATE.  last_logon_date should reflect the date the user last        -- logged in successfully, not the date the user‘s password was reset.        -- This does not regress the fix for bug 4690441 because in fnd_web_sec.disable_user        -- if last_logon_date is NULL, the last_update_date will be used which is the same        -- date of the sysadmin reset, so the effect is the same.        --        -- Reset password_date field to null to force password        -- expiration the next time user logs on.        --        UPDATE FND_USER        SET last_logon_date= NULL           ,password_date = NULL           --,LAST_UPDATE_DATE = SYSDATE           --,LAST_UPDATE_LOGIN = FND_GLOBAL.LOGIN_ID         WHERE USER_NAME = P_USER_NAME;               COMMIT;        ----        DBMS_OUTPUT.PUT_LINE(‘成功初始化使用者(‘||P_USER_NAME||‘)的密碼為:‘||P_INIT_PASSWORD);    ELSE        ---顯示為什麼不可以修改        l_reason := fnd_message.get;        fnd_message.set_name(‘FND‘, ‘FND_CHANGE_PASSWORD_FAILED‘);        fnd_message.set_token(‘USER_NAME‘, P_USER_NAME);        fnd_message.set_token(‘REASON‘, l_reason);        app_exception.raise_exception;    END IF;END;

 

Oracle EBS 初始化使用者密碼(轉)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.