# Export DDL Button is grayed out

**URL:** <https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [April 20, 2011, 2:00pm UTC](https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403 "2011-04-20T14:00:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forums.toadworld.com/u/Guest)\
**Post date:** [April 20, 2011, 2:00pm UTC](https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403/1 "2011-04-20T14:00:35Z")

</div>

Dear Toad Experts, I need to export a DDL script of all users on the database. I  
went to Export -\> Export DDL -\> Script Options. Unfortunately, the “Export DDL”  
execution button is grayed out which means the Export DDL option has been  
disabled. Do I have to have a special license to turn it on? I have the license  
of Toad For Oracle Xpert (my toad is on Version 10.6.1.3), but don’t have the  
Toad DBA Module. Thank you in adance,

Lisa

---

<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:** [April 20, 2011, 2:08pm UTC](https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403/2 "2011-04-20T14:08:39Z")

</div>

If you open that window from the main menu, you have to add objects into it with  
the ‘add’ button.

It is much easier to go to the Schema Browser, select the objects that you are  
interested in (CTRL+A to select all), then rt-click and choose “Create  
Script”. Then the Export DDL window will open pre-loaded with your  
selected objects.

---

<div class="post-metadata">

**Author:** ![matt.wilkins](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/matt.wilkins/32/146_2.png) [@matt.wilkins](https://forums.toadworld.com/u/matt.wilkins)\
**Post date:** [April 20, 2011, 2:14pm UTC](https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403/3 "2011-04-20T14:14:09Z")

</div>

Have you actually populated the Objects and Output tab with your users? The  
green “run” button does not become enabled until you have something  
to export  
 ![image001.jpeg](https://global.discourse-cdn.com/quest/original/1X/e8288ef7bf69daaab6959f752b25ca292478b911.jpeg)

---

<div class="post-metadata">

**Author:** ![matt.wilkins](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/matt.wilkins/32/146_2.png) [@matt.wilkins](https://forums.toadworld.com/u/matt.wilkins)\
**Post date:** [April 20, 2011, 2:14pm UTC](https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403/4 "2011-04-20T14:14:09Z")

</div>

Have you actually populated the Objects and Output tab with your users? The  
green “run” button does not become enabled until you have something  
to export  
 ![image001.jpeg](https://global.discourse-cdn.com/quest/original/1X/278be512a68050c664416c8c1dd90a338bc191af.jpeg)

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forums.toadworld.com/u/Guest)\
**Post date:** [April 20, 2011, 2:51pm UTC](https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403/5 "2011-04-20T14:51:44Z")

</div>

Thank you so much for all tips. The “Create Script” won’t export the password  
while the “Export DDL” will export password. I need to move all users on DEV DB  
to TEST DB without resetting up the passwords.  
Cheers,

Lisa

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forums.toadworld.com/u/Guest)\
**Post date:** [April 20, 2011, 3:17pm UTC](https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403/6 "2011-04-20T15:17:13Z")

</div>

Matt,

You are absolutely right. After I added data in the Output tab, the button is  
green now. I ran it and got a script. Unfortunately, the password in the script  
is “” which is not I am looking for. I remember that I used the  
early version of Toad to export the user with the encrypted password, then I  
used the script to run on other DB. Could you shed some light on how to get  
encrypted password with user create script via Toad?

Any help , will be greatly appreciated.

Lisa

---

<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:** [April 20, 2011, 3:45pm UTC](https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403/7 "2011-04-20T15:45:34Z")

</div>

In the export DDL dialog, on Script Options -\> Users, make sure “if possible,  
include ‘identified by values’ clause in 11g” is checked.

This will only work if you have select privileges on the SYS.USER$ table.

---

<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:** [April 21, 2011, 8:24am UTC](https://forums.toadworld.com/t/export-ddl-button-is-grayed-out/10403/8 "2011-04-21T08:24:41Z")

</div>

It’s about the version of Oracle as much as the version of Toad.

Oracle used to put the encrypted passwords in DBA\_USERS, but for Oracle 11, they  
stopped doing that, and the encrypted passwords are only in SYS.USER$. Maybe  
this is another option that could be removed, and we should always just look in  
SYS.USER$ if the user has privileges.

When Toad is connected to 10g and older, the encrypted password still comes out  
of Toad without checking any options.

-John
