# Create script for user - find password

**URL:** <https://forums.toadworld.com/t/create-script-for-user-find-password/48594>\
**Category:** Toad for Oracle - Beta\
**Created:** [December 31, 2019, 1:54pm UTC](https://forums.toadworld.com/t/create-script-for-user-find-password/48594 "2019-12-31T13:54:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauro\_Papandrea](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mauro\_Papandrea](https://forums.toadworld.com/u/Mauro_Papandrea)\
**Post date:** [December 31, 2019, 1:54pm UTC](https://forums.toadworld.com/t/create-script-for-user-find-password/48594/1 "2019-12-31T13:54:42Z")

</div>

I am working with Oracle 12.2  
When Trying to get the script to create a user, I see that password value is not shown but instead there is   
Of course I checked the box for getting passwords and, up to 11.2 it works.  
May this be is an issue for 12.2 version and upper?

Happy new year

Mauro

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [December 31, 2019, 1:57pm UTC](https://forums.toadworld.com/t/create-script-for-user-find-password/48594/2 "2019-12-31T13:57:05Z")

</div>

Hi Mauro, long time no see!

Oracle tightened down the security quite a bit in recent versions.

Now you need to have SELECT on SYS.USER$ granted directly to you in order to get the (encrypted) password in the create user script.

Also, don't forget to check this option:  
 ![image](https://global.discourse-cdn.com/quest/original/2X/5/55c5880d265e93530d7f260bcfca6578d994dafc.png)

---

<div class="post-metadata">

**Author:** ![Mauro\_Papandrea](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mauro\_Papandrea](https://forums.toadworld.com/u/Mauro_Papandrea)\
**Post date:** [December 31, 2019, 2:06pm UTC](https://forums.toadworld.com/t/create-script-for-user-find-password/48594/3 "2019-12-31T14:06:53Z")

</div>

I had said that I checked that option ( sorry for my poor English, probably I was not clear enough ), and as a matter of fact in 11.2 it works.  
You can get the encrypted password even as system, no need to read sys.user$ with this:

select REGEXP\_REPLACE ( DBMS\_METADATA.GET\_DDL ('USER', 'Utente' ), '._VALUES (''.+'')._', '\1',1,1,'n' ) from dual;

I used this way as a workaround but I think Toad could use it

Regards

Mauro

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [December 31, 2019, 2:08pm UTC](https://forums.toadworld.com/t/create-script-for-user-find-password/48594/4 "2019-12-31T14:08:12Z")

</div>

Ah, yes you did say that you checked the box! Sorry for my poor reading!

That's a good trick with the password, thank you.

---

<div class="post-metadata">

**Author:** ![Mauro\_Papandrea](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mauro\_Papandrea](https://forums.toadworld.com/u/Mauro_Papandrea)\
**Post date:** [December 31, 2019, 2:11pm UTC](https://forums.toadworld.com/t/create-script-for-user-find-password/48594/5 "2019-12-31T14:11:03Z")

</div>

I am glad to have been helpful

Have a nice day

Mauro
