24.12.2012 Views

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USING <strong>ER</strong>/STUDIO > DEVELOPING THE PHYSICAL MODEL<br />

Reference page/tab<br />

Select the type of object you want to reference. If there are any objects in the model that match your selection,<br />

you can click the identifier list to choose the appropriate identifier.<br />

Definition page/tab<br />

Enter or edit a definition for the alias. If the target database supports it, <strong>ER</strong>/<strong>Studio</strong> adds this definition as a<br />

comment when generating SQL code. The maximum length of comments in the DDL is 254 characters.<br />

DDL page/tab<br />

Displays the CREATE ALIAS statement needed to build the alias. <strong>ER</strong>/<strong>Studio</strong> uses the platform-specific parser of<br />

the model’s selected database platform to generate the alias.<br />

Attachment Bindings tab<br />

Bind an external piece of information, or attachment to the alias. You can also remove an attachment from an<br />

object, override an attachment binding’s default value, or change the position of a bound attachment. To override<br />

the value of the attachment you have moved to the Selected Attachments grid, double-click the Value field of the<br />

target attachment. <strong>ER</strong>/<strong>Studio</strong> opens the Value Override Editor or a list depending on the attachment datatype.<br />

Attachments are created in the Attachments folder of the Data Dictionary and must be applied to the alias before<br />

they will display on this tab. For more information, see Attaching External Documents to the Data Model.<br />

Creating and Editing Auxiliary Tables<br />

Auxiliary Tables are created to store the data of large object (LOB) Columns. LOB Columns are columns in a regular<br />

table, called the Base Table, whose data type is BLOB or CLOB and whose data is large objects. Since the data is<br />

very large, it is not stored with the other data in the table. Even though the base table holds the LOB Column logically,<br />

as a VARCHAR(4), the LOB Column’s data is physically stored in the auxiliary table. Each LOB Column has at least<br />

one auxiliary table associated with it. Either one auxiliary table for each LOB Column of a non-partitioned table, or one<br />

auxiliary table for each LOB Column for each partition, if the LOB Column is defined in a partitioned base table. For<br />

example, if you have two LOB Columns in a Base Table with four partitions, you must also have a total of eight<br />

auxiliary tables.<br />

NOTE: You must store Auxiliary tables each in their own auxiliary tablespaces, and you must create a<br />

unique index on them.<br />

The following database platforms support auxiliary tables:<br />

• IBM DB2 for OS/390 5.x and 6.x<br />

• IBM DB2 for z/OS 7.x, 8.x, and 9.x<br />

NOTE: The Auxiliary Table Wizard and Auxiliary Table Editor share the same options, except for<br />

Attachment Bindings options which are present only in the editor.<br />

Add an Auxiliary Table<br />

1 In the Data Model Explorer, expand the Physical Main Model, right-click the Auxiliary Tables node, and then<br />

select New Auxiliary Table.<br />

2 Complete the Auxiliary Tables Wizard and then click Finish to create the auxiliary table.<br />

TIP: Once you have created the auxiliary table, you can edit it by right-clicking the auxiliary table you<br />

want to change, and then selecting Edit Auxiliary Table.<br />

The following describe options that require additional explanation.<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 176

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!