See some basic information on what is converted and how during the PER to PER conversion.
See other details here:
Item to Convert |
Model A (Source Model) |
Model B (Destination Model) |
Result |
---|---|---|---|
Data Types | |||
|
Supported data type |
Supported data type |
Same data type |
Example*: |
Integer |
Integer |
Integer |
|
Supported data type |
Equivalent data type |
Equivalent data type |
Example**: |
Float |
Real |
Real |
Permissions | |||
|
Supported Permission |
Supported Permission |
Same Permission |
Example: |
SELECT |
SELECT |
SELECT |
|
Supported Permission |
Unsupported Permission |
--None-- |
Example: |
DROP (MySQL 5) |
--None-- (Microsoft SQL 2005) |
--None-- (Microsoft SQL 2005) |
|
Unsupported Permission |
Supported Permission |
Model B Permission |
Example: |
--None-- (Microsoft SQL 2005) |
DROP (MySQL 5) |
DROP (MySQL 5) (DROP preserved in already existing model.) |
Deny Permission | |||
|
Deny Permission Supported |
Deny Permission Supported |
Deny Permission Converted |
|
Deny Permission Supported |
Deny Permission Unsupported |
--None--
|
|
Deny Permission Unsupported |
Deny Permission Supported |
Model B Deny Permission |
Example: |
MySQL 5 |
Microsoft SQL 2005 |
Microsoft SQL 2005 (Deny permission preserved in already existing model.) |
Grantor | |||
|
Grantor Supported |
Grantor Supported |
Grantor Converted |
|
Grantor Supported
|
Grantor Unsupported
|
--None--
|
|
Grantor Unsupported
|
Grantor Supported
|
Grantor is empty. |
Example: |
MySQL 5
|
Microsoft SQL 2005
|
Microsoft SQL 2005 (Grantor preserved in already existing model.) |
Users and User Groups | |||
|
Supported |
Supported |
Converted successfully |
|
Supported |
Unsupported |
--None-- |
|
Unsupported |
Supported |
--None-- |
Example: |
Users unsupported in PostgreSQL |
Users supported in Microsoft SQL 2005 |
--None-- |
Model A - Currently opened model that you want to convert.
Model B - Model to which you want to convert Model A.
Complete Model A is converted to Model B.
* Data types conversion examples - conversion from MySQL 5 model to SQL Server 2005 model.
** See the equivalent data types for conversion in the Settings menu | Data Type Conversion Settings.
See the following basic information on what is converted during PER to LER and LER to PER conversion and how.
Item to Convert | Notes: | PER - LER Conversion | LER - PER Conversion |
---|---|---|---|
Data Types |
Similar to PER to PER conversion. |
The conversion rules should be defined in the Data Types Conversion Settings dialog. |
The conversion rules should be defined in the Data Types Conversion Settings dialog. |
Self Relationship |
In PER model, only non-identifying self relationship is supported. |
Self relationship is converted properly. |
Identifying self relationship will change to non-identifying self relationship. |
Cardinality |
In PER model, cardinality of one side of relationship is 1..n.
|
Cardinality is converted properly. |
E.g. 2..5 cardinality in LER model is converted to 1..5 in PER model. |
Parent Key |
Parent key can be defined in LER model. In LER model, open the Relationship Properties dialog | General tab | Foreign Unique Identifier box.
(In PER model, Parent Key is defined in the Relationship properties dialog | Foreign Keys tab.) |
Parent key in PER model is different than PK (alternate key, unique attribute or index). -> Parent key defined in PER model is converted to LER model properly. |
Selected UI of LER model is converted to PER model (PK and appropriate alternate keys are created). |
Foreign Keys |
In LER model, keys are not transferred from parent to child entity.
|
No FKs are displayed in child entity in LER model. |
FKs that are not displayed in LER model are visible in child entity in PER model. |
Primary Keys |
|
PK (Primary key) in PER -> PUI (Primary unique identifier) in LER |
PUI (Primary unique identifier) in LER -> PK (Primary key) in PER |
Alternate Keys |
You can select alternate key as a parent key. |
AK (Alternate key) in PER -> UI (Unique identifier) in LER |
UI (Unique identifier) in LER -> AK (Alternate key) in PER |
NN versus M Attributes |
NN - Not Null in PER model. M - Mandatory in LER model. The values can be displayed in ER diagram. |
NN -> M |
M -> NN |
Inheritance |
Inheritance is not supported in PER model. |
-- |
Conversion of inheritance to PER model will be executed by the rules set in the Inheritance dialog | Generation tab. |
Valid Values in Attribute |
Valid values are supported only in LER model. They can be defined for the following data types: Bigint, Float, Integer, VarChar. |
--
(Check constraints from PER model are not converted to LER model.) |
Default values in LER model -> Check constraints in PER model. |
Defaults for Attributes and Domains |
|
Converted properly. |
Converted properly. |
Rules for Attributes and Domains |
In LER model, attributes and domains can have rules. In PER model, attributes and domains have check constraints and these check constraints can have rules. |
Attribute check constraint has rules in PER model. -> Rules for this attribute are converted to LER model. |
Attribute has rules in LER model. -> Check constraint with this rule for the attribute is available in PER model. |
If there is a self-relationship in LER model, the entity has two columns, both of the same name (primary key), in converted PER model. Other modifications are necessary.
Possible solution: You can define a name for the propagated attributes in LER model before the conversion. Open the Attribute Properties dialog | General tab | enter the name to the Propagated Name box.
If this box is empty, Toad Data Modeler will behave standardly (two columns of the same name in PER model).
Toad Data Modeler allows you to convert:
The conversion can be executed via:
|
Note: Converting between different platforms means that some items, which contain SQL code, may not be converted correctly (e.g. After Scripts, Before Scripts, Procedures...). In this case, it is recommended to check the Comment Out Database Specific Items checkbox. This way, SQL code, that cannot be successfully converted, will be commented out. You can review these parts of code later and fix them on your own. |
|
TIP:If you plan to do this action again in the future, you might want to click the Save Action button to save this Action Definition. See Model Actions for more information. |
|
Note: Since Logical Model doesn't have any objects which contain SQL, all your procedures, scripts and functions will be lost. |
Check items you want to convert to another model. For easier item management, use buttons located on the top.
|
TIP:If you plan to do this action again in the future, you might want to click the Save Action button to save this Action Definition. See Model Actions for more information. |
|
Note: Before you convert your Logical model to Physical model, you should be aware of the following:
|
Choose what object types will be converted. You can access full list of Objects and Properties by clicking on Detailed Settings.
Review the statistic and when you're done, click the Finish button.
|
TIP:If you plan to do this action again in the future, you might want to click the Save Action button to save this Action Definition. See Model Actions for more information. |
Selection Tree Overview
Option | Description |
---|---|
Import selection from a saved file. | |
Save selection to a file. | |
Checks all items. | |
Unchecks all items. | |
Opens the Wildcard Dialog where you can define settings for bulk selection/deselection of the Action box of the items listed on page Select Items. | |
Refresh Necessitated Items Explanation: Some objects are related together (e.g. entity and domain, entity and relationship). Let's say you uncheck a Domain in Select Object Types dialog. However you keep an Attribute of the Domain type checked for conversion. In the next screen the Domain will be selected for conversion (and highlighted in gray), even if you don't want it to. This is because of its relationship with the Attribute, which cannot exist without the Domain. Now, if you uncheck the Attribute, the Domain will still be checked for conversion. This is where you use this button. It runs through all checked objects and removes the Domain highlighted in gray since the Attribute is no longer checked. That means the Domain is no longer necessary, since it has no relationships with currently checked objects and you unchecked it in Select Object Types dialog. | |
Expand All. | |
Collapse All. | |
Display options for properties. |
Right-click an item to see the following options:
Option | Description |
---|---|
Expand All Children | Expands all sub-items of the selected item. |
Collapse All Children | Collapses all sub-items of the selected item. |
This feature allows you to convert your logical models to physical models and your physical models to models of another database system very quickly.
Scenario You want to convert your Oracle 10g model to Microsoft SQL Server 2005. |
Option Description To Database
Select a target database system - Microsoft SQL Server 2005.
New Model Name
Define a name for the converted model.
More>>
Click this button to see and modify Object Types and Properties for the conversion. No modification is necessary. Object Types and Properties - OTPs
Close after Conversion
Select it to close the Conversion dialog after the process is finished.
Convert
Executes the process of conversion.
Close
Closes the Conversion dialog.
© 2023 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy