on 04-21-2014 4:25 PM
I have noticed that the DDL generated will often have objects generated out of order, such as some (but not all) tables and views being generated before the drop database command.
Is there something I am missing in the setup or options for generation that would make objects be generated in the logical order, i.e. tablespaces before tables, no ojects in the database before dropping the database, etc..
I am running 16.1.0.3917 EBF 18.
DB is DB2 z/OS V10
For the tables and views in question, check to see if the table belongs to any database.
My guess is that you are encountering the following:
A table that does not belong to any database is generated before first database.
Same for any view based on a table that does not belong to any database.
A quick repro
NOTE:
generation order is
Anthony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
there is EBF19 available for 16.1 on Sybase download. There is a fix for 16.1 (CR 735198) fixes some generation order issues. Not sure if this one was already included in EBF 18.
HTH
Best regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can confirm this behaivor with views created before the drop table statement for example, this is NOT reproducable so far, sometimes it works sometimes not.
regrads
dj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Select Database > Edit Current DBMS.
In the DBMS property sheet, select ::Script\Objects\GenerationOrder.
Is the Database item at the very beginning of the list?
If so, have you tried to merge this PDM into a second brand new PDM with the same target DBMS (select all merge actions), and then generate SQL again using this second model?
Regards,
Arnaud
Everything in the generation order seems to be correct. I have not tried to merge the model.
<Order>
<Metaclass Name="Database">
<Metaclass Name="Database::Permission" />
</Metaclass>
<Metaclass Name="Storage" />
<Metaclass Name="Tablespace" />
<Metaclass Name="BusinessRule" />
<Metaclass Name="Sequence">
<Metaclass Name="Sequence::Permission" />
</Metaclass>
<Metaclass Name="AbstractDataType">
<Metaclass Name="AbstractDataType::Permission" />
</Metaclass>
<Metaclass Name="PhysicalDefault" />
<Metaclass Name="PhysicalDomain" />
<Metaclass Name="User" />
<Metaclass Name="Group" />
<Metaclass Name="Role" />
<Metaclass Name="Table">
<Metaclass Name="Table::Index" />
<Metaclass Name="Table::Key" />
<Metaclass Name="Table::Permission" />
</Metaclass>
<Metaclass Name="View">
<Metaclass Name="View::ViewIndex" />
<Metaclass Name="View::Permission" />
</Metaclass>
<Metaclass Name="Reference" />
<Metaclass Name="JoinIndex" />
<Metaclass Name="Synonym">
<Metaclass Name="Synonym::Permission" />
</Metaclass>
<Metaclass Name="Dimension" />
<Metaclass Name="Procedure">
<Metaclass Name="Procedure::Permission" />
</Metaclass>
<Metaclass Name="DatabasePackage">
<Metaclass Name="DatabasePackage::Permission" />
</Metaclass>
<Metaclass Name="Table::Trigger" />
<Metaclass Name="DBMSTrigger" />
<Metaclass Name="View::Trigger" />
<Metaclass Name="WebService" />
<Metaclass Name="ExtendedObject">
<Metaclass Name="ExtendedObject" Stereotype="AuxiliaryTable" />
<Metaclass Name="ExtendedObject" Stereotype="TrustedContext" />
<Metaclass Name="ExtendedObject" Stereotype="Mask" />
<Metaclass Name="ExtendedObject" Stereotype="RowPermission" />
</Metaclass>
</Order>
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.