茫茫網海中的冷日 - 對這文章發表回應
茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1674981 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
IMG_60D_00140.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

對這文章發表回應

發表限制: 非會員 可以發表

發表者: 冷日 發表時間: 2019/3/22 11:57:31
How to retrieve oracle passwords

Oracle Database Tips by Donald Burleson

Question:
I need to sign-on as an end-user for troubleshooting, but they don't want their password changed. Can I save their existing password, do my work, and put back their old password?

Answer:
You can retrieve an existing password as an encrypted value and you can also copy encrypted passwords between databases.
The dbms_metadata procedure allows you to copy user accounts from one instance to another with the same password, grants, roles, etc, without using the exp/imp tools.
You wont be able to see the password (sorry hackers), but you can copy it in its encoded form. This is extremely useful for DBAs that are copying their production database to development, or migrating a database from one instance to another.
Here we use the DBMS_METADATA package to pull the user password information. Once the encrypted password is captured, it can be re-inserted into the user ID after you are done testing:
    select
       dbms_metadata.get_ddl('USER', username) || '/' usercreate
    from
       dba_users;
    USERCREATE
    --------------------------------------------------------------
    CREATE USER "SYS" IDENTIFIED BY VALUES 'F894844C34402B67'
    DEFAULT TABLESPACE "SYSTEM" TEMPORARY TABLESPACE "TEMP"/


原文出處:How to retrieve oracle passwords
內容圖示
url email imgsrc image code quote
樣本
bold italic underline linethrough   












 [詳情...]
validation picture

注意事項:
預覽不需輸入認證碼,僅真正發送文章時才會檢查驗證碼。
認證碼有效期10分鐘,若輸入資料超過10分鐘,請您備份內容後,重新整理本頁並貼回您的內容,再輸入驗證碼送出。

選項

Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|