Support for Teradata in CA ERwin Data Modeler has been enhanced for new features introduced in Teradata 13. Modeling capability for these features has been added to CA ERwin Data Modeler.
New and enhanced editors include:
New features supported include the following:
Combined Old/New Table Trigger Support
The REFERENCING clause in the CREATE TRIGGER and REPLACE TRIGGER statements supports an OLD_NEW_TABLE option that lets you specify a single transition table name to reference old and new values for rows modified by a triggering statement.
Column Level Grant/Revoke
Extends Teradata support for column-level privileges to the INSERT and SELECT privileges, in conformance with the ANSI SQL:2003 standard.
New Permissions
The following new permissions have been added for Teradata 13:
Dynamic User Defined Types
Supports dynamic UDTs as input parameters to scalar, aggregate, and table user-defined functions (UDFs) written in C or C++. It adds a new input parameter data type, the Variant_Type UDT, which can be used to pass in a varying number of parameters to a UDF, as well as parameters with varying data types. The number of parameters and the data types of the parameters are determined at runtime. They can be varied each time the routine is invoked.
Geospatial Data Types
New native SQL/MM data types address the need to store, manage, and analyze geospatial information: ST_Point, ST_LineString, ST_Polygon, ST_GeomCollection, ST_MultiPoint, ST_MultiLineString, and ST_MultiPolygon, all of which are modeled by the ST_Geometry user-defined type (UDT).
The native GeoSequence data type is also modeled by the ST_Geometry type and can contain tracking information in addition to geospatial information. All of the native data types support methods for performing geometric calculations.
Java Stored Procedure Answer Sets
The CREATE PROCEDURE and REPLACE PROCEDURE statements for Java external stored procedures support the DYNAMIC RESULT SETS clause, allowing Java external stored procedures to create dynamic result sets.
Result sets can be returned to both the stored procedure and its caller or client application. For stored procedures, this means that the DECLARE CURSOR statement supports the following new options:
Java User Defined Functions
The CREATE FUNCTION, REPLACE FUNCTION, and ALTER FUNCTION statements have been extended to support Java UDFs.
Stored Procedure Access Rights
New stored procedure access rights let you define access rights checking for the underlying objects of the SQL statements in the procedure. You can specify a SQL Security option during the creation of the stored procedure. When the stored procedure is compiled or executed, access rights checking will be done based on the definition of the SQL Security option as follows:
With the new CREATE OWNER PROCEDURE privilege, if the SQL Security option is OWNER, and you need to create a stored procedure in a database that you do not own, you must have the CREATE OWNER PROCEDURE privilege on that database.
User Defined Types as Parameters
Support is provided as follows:
Statistics
CA ERwin Data Modeler supports the COLLECT STATISTICS statement (with the exception of the transfer statistics clause) that lets you collect demographic data for one or more columns of a table, hash index, or join index and compute a statistical profile of the collected data..
Data Types
Additional data types have been added for Teradata 13. These data types are included in the CA ERwin Data Modeler and the Data Type Standards Model (DSM):
For PERIOD data types, a period is represented by a PERIOD data type value and indicates when a particular event starts and ends.
Note: If you convert a Teradata 13 model to another target server/version, the new data types will require mapping to a similar data type for the new target. The following mappings will be required:
As this data type contains two date/time values, it will be mapped to a varchar data type on all other target servers. No other target server supported by CA ERwin Data Modeler has an equivalent data type.
This spatial data type will be converted to a varchar(256) data type when converting to any other target server/version other than SQL Server 2008. Since SQL Server 2008 supports spatial data types, it will convert to the GEOMETRY data type.
This spatial data type will be converted to a BLOB or equivalent data type on any other target server/version other than SQL Server 2008. Since SQL Server 2008 supports spatial data types, it will convert to the GEOMETRY data type.
Elements of the user interface have been updated:
When you save an r8 Teradata 13 model as an r7.3.x model, a target server switch is made to convert the r7.3.x model to Teradata 12. If you save an r8 Teradata 13 model as an r7.2.x model, a target server switch is made to convert the r7.2.x model to Teradata 2.x.
| Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |