# TOAD 25.2 Beta : no constraints generated in Object type to extract

**URL:** <https://forums.toadworld.com/t/toad-25-2-beta-no-constraints-generated-in-object-type-to-extract/60512>\
**Category:** Toad for Oracle - Beta\
**Created:** [January 31, 2025, 10:25am UTC](https://forums.toadworld.com/t/toad-25-2-beta-no-constraints-generated-in-object-type-to-extract/60512 "2025-01-31T10:25:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thierry.mara](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@thierry.mara](https://forums.toadworld.com/u/thierry.mara)\
**Post date:** [January 31, 2025, 10:25am UTC](https://forums.toadworld.com/t/toad-25-2-beta-no-constraints-generated-in-object-type-to-extract/60512/1 "2025-01-31T10:25:44Z")

</div>

I use TOAD 25.2 beta :  
Menu Export / Generate schema script / one schema selection,  
Object type to extract, uncheck all, keep only Indexes + Constraints without Check,  
The generate script has only indexes, no constraints on tables :  
 ![image](https://global.discourse-cdn.com/quest/original/3X/a/0/a01f23e6da4bbe33da4269fc8f7b05fb6508e2e2.png)

![image](https://global.discourse-cdn.com/quest/original/3X/b/d/bd3bba8bcc30b4428083df909632cebd30ef966d.png)

## In the second case I have these comments at the end : (but no constraints)

## -- Note: -- The following objects do not have associated statements.

-- ETD\_CTRL\_SCHEMA\_BOIRON (Table)  
-- ETT\_APPEL\_ENTRANT (Table)  
-- ETT\_ARTI (Table)  
-- ETT\_AUTHENTIF (Table)  
-- ETT\_BAC\_RAM (Table)  
-- ETT\_BOUCLAGE (Table)  
-- ETT\_BR (Table)  
-- ETT\_CAMP\_APPEL (Table)  
…  
If I uncheck Indexes, (and keep constraints) nothing is generated.

---

<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:** [January 31, 2025, 2:37pm UTC](https://forums.toadworld.com/t/toad-25-2-beta-no-constraints-generated-in-object-type-to-extract/60512/2 "2025-01-31T14:37:30Z")

</div>

Hi,

Can you provide some detailed steps to reproduce the problem?

I know that the extraction of constraints is not completely broken, and without details I can't help you.

Thanks

---

<div class="post-metadata">

**Author:** ![thierry.mara](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@thierry.mara](https://forums.toadworld.com/u/thierry.mara)\
**Post date:** [January 31, 2025, 3:43pm UTC](https://forums.toadworld.com/t/toad-25-2-beta-no-constraints-generated-in-object-type-to-extract/60512/3 "2025-01-31T15:43:37Z")

</div>

I have a schema in a 19c database, with many tables, with index and constraints PK and FK. I want to export just for a script with only constraints PK and FK. So ALTER TABLE ADD constraint PRIMARY and FOREIGN ...  
Example :  
ALTER TABLE OPS$ETDRCT.ETT\_ANCIEN\_UL ADD (  
CONSTRAINT ETT\_ANCIEN\_UL\_PK  
PRIMARY KEY  
(ID\_ANCIEN\_UL)  
DEFERRABLE INITIALLY IMMEDIATE  
USING INDEX OPS$ETDRCT.ETT\_ANCIEN\_UL\_PK  
ENABLE VALIDATE);

ALTER TABLE OPS$ETDRCT.ETT\_ANCIEN\_UL ADD (  
CONSTRAINT ETT\_ANCIEN\_UL\_FK\_1  
FOREIGN KEY (ID\_EXPED)  
REFERENCES OPS$ETDRCT.ETT\_EXPED (ID\_EXPED)  
DEFERRABLE INITIALLY IMMEDIATE  
ENABLE VALIDATE);

---

<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:** [January 31, 2025, 3:57pm UTC](https://forums.toadworld.com/t/toad-25-2-beta-no-constraints-generated-in-object-type-to-extract/60512/4 "2025-01-31T15:57:16Z")

</div>

Thank you.

I can reproduce this and will fix.

Sorry for the abruptness of my first response. I see that you did provide steps initially.

I have noticed that if you include Check Constraints, then all constraints will appear.

If you don't like that workaround, you can select the constraints on the Object Listing, then click the "Script" button.

 ![image](https://global.discourse-cdn.com/quest/original/3X/7/1/71b677b91d4858800460383ee490fd2a805e3999.png)

---

<div class="post-metadata">

**Author:** ![thierry.mara](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@thierry.mara](https://forums.toadworld.com/u/thierry.mara)\
**Post date:** [February 3, 2025, 1:56pm UTC](https://forums.toadworld.com/t/toad-25-2-beta-no-constraints-generated-in-object-type-to-extract/60512/5 "2025-02-03T13:56:56Z")

</div>

Thanks for this workaround.

---

<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:** [February 3, 2025, 2:21pm UTC](https://forums.toadworld.com/t/toad-25-2-beta-no-constraints-generated-in-object-type-to-extract/60512/6 "2025-02-03T14:21:00Z")

</div>

You're welcome. Also, it is fixed in the beta just released.
