Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • get_vmstat.ksh Linux/Unix
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • purge_trc.sh Linux/Unix
  • Goog notes on X$ tables Oracle
  • More info about /proc folder and its relation with processes. Linux/Unix
  • How to analyze statspack or AWR report. Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • age_alert.ksh aging out alert.log Linux/Unix
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Find nth max and min. Oracle
  • Unix split command to split files Linux/Unix
  • sql_plan9i.sql Oracle

Restoring a user’s original password 1051962.101

Posted on 05-Jun-2009 By Admin No Comments on Restoring a user’s original password 1051962.101

WARNING

=======

The method described in this article is not officially supported by development,

therefore when you get errors using this procedure support cannot file a bug for it.

Please make no mistakes when setting the HEX value with the VALUES keyword as bad

values may cause internal errors. This undocumented feature exists to support

export / import and retain the original passwords.

Problem Description:

====================

How can you restore a users original password ?

Solution Description:

=====================

With the output of dba_users you can restore a user’s old password by

issuing the following:

alter user identified by values ‘‘;

For example:

============

SQL> create user test identified by test

2 default tablespace users temporary tablespace temp;

User created.

SQL> select username, password from dba_users where username= ‘TEST’;

USERNAME PASSWORD

———- ——————————

TEST CDC423BEB32B1812

SQL> alter user test identified by test1;

User altered.

SQL> select username, password from dba_users where username= ‘TEST’;

USERNAME PASSWORD

———- ——————————

TEST 22F2E341BF4B8764

SQL> alter user test identified by values ‘CDC423BEB32B1812’;

User altered.

SQL> connect test/test

Connected.

Solution Explanation:

=====================

To do this you would need a spool of dba_users taken before the password was

changed.

Oracle, SQL scripts

Post navigation

Previous Post: ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME
Next Post: kill all processes from specific user in solaris.

Related Posts

  • Renaming the column name Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • Parallel DML Oracle
  • Changing the Global Database Name Oracle
  • Renaming Global Name GLOBAL_NAME Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • block_ident.sql Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Single character replacement in Unix Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • To see only files and/or folders using LS command Linux/Unix
  • How to sort list of files on basis of their sizes. Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme