Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Directory wise folder wise space usage Linux/Unix
  • JSON/XML Types in Oracle Oracle
  • Changing unix system clock when Oracle database is running. Oracle
  • find checksum of a file. Linux/Unix
  • DBA_HIST_SQLSTAT contents Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Load SPM baseline from AWR Oracle
  • How can I tell if ASO is installed ? Oracle
  • metalink all dynamic view reference notes. Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Export With Query Another Example. Oracle
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • alter database backup controlfile to trace Oracle
  • Insert cause enqueue locks Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup 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

  • Privilege to describe the table. Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • pvm_pre_change.sql Oracle
  • RAC with RHEL4 and 11g Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • My Minimum Tuning Programs Oracle
  • Jai Shree Ram Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • plan10g.sql good Oracle
  • Sending email with file attachment. Linux/Unix
  • Find long Running Transaction Linux/Unix
  • good note for shared pool tunnig Oracle
  • SQL_PROFILE – I explaination Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme