TD Learn Imp

download TD Learn Imp

of 3

Transcript of TD Learn Imp

  • 7/27/2019 TD Learn Imp

    1/3

    INTEGER = 4 BYTESBYTEINT = 1 BYTESMALLINT= 2 BYTEBYTE = 64000VARBYTE = 64000VARGRAPHIC = 13000CHAR=1VARCHAR =1 1 character occupies 1 byte + 2 Byte of column offsetFLOAT=1-8 ByteREAL = 8 BYTEDECIMAL (N,M0 = 1 -8CLOB=64000BLOB=BIGINT = 8 ByteNVARCHAR = VarcharDate = 4 ByteTime = 6 ByteTimestamp(6) =10 Char

    SET

    MULTISET

    COALESc

    CAST --> Convert one datatype to another datatype

    Number SystemHexa. DBinary-select count(*), hashamp(hashbucket(hashrow(c_custkey))) from tpch.customer group by 2;

    LOADERS:-

    1 Oracle - Sql Loader, Data Pump2 Netezza =nzload3 Teradata aster data = nzloader4 Teradata Fload, Mload, Tpump, Teradata Parallel Transporter(TPT)

    Loader Connection Relational Connection------------------ ----------------------

    1) Bulk (or) Block data Transfer Row by Row Process2) Establish Multiple Virtual Sessions Only One Session3) Restartable Facility( Check_Point) No Restartability4) Identify Invalid Records

    Loader will always except the Source as Flatfile and Target as Table..---Default.

    FLOAD - Load the Data to an Empty Table, Only Insert Operation, (Single Table) (size is Huge)MLOAD - Load the Data to a Populated Table, Insert, Update, Delete (Max 5 Diff Tables) (Size is Huge)TPUMP - Load the Data to a Populated Table, Real-Time Data Transfer

  • 7/27/2019 TD Learn Imp

    2/3

    FastExport - Data from Table to FlatFile LoadTPT - Streams, Uses All Othe Loader Utilities

    Note:FLOAD--->Insert into **select * from table** provided your target is an empty table. (Faster compare to loader)Mload--->At any point of time, inside a teradata system totally 15 Loader jobs allowed.Tpump ---> All Loaders will lock the entire table at the time of loading howevertpump will lock the row of a table.

    1. Fastest data retrieval from A table is achieved by table Primary Index, why because PI access mechanism make use of 1 Amp operation.2.The Second Fastest data Retreival from A table is by making use of its SI. It's 2AMp operation OR All-Amp operation But, Not a Full Table Sacn3. Full Table Scan

    ***** Every Loader needs 2 Error Table, 1 Work Table(Optional), 1 Log Table

    FastExportModes:-

    1. 2 Error tables are used for logging various types of errors2. 1 Error table is used for logging constraint violations like check, not null3. Log table holds the movementary information, checkpoint information4. Work table is used for any conversion, format, and waht sort operation.

    BLOCK SIZE = 8k, 16k, 32k, 64k

    Disadvantages:-

    *** Fastload will never work for UPD, Del, AND not on Multiple Table. Any Kind of Secondary Indexes are there then Fastload Fails. RI, Triggers, Join Index andHash Index, identity column on target table.*** Multiload will fail if it's having an Unique Secondary Index.

    *** Tpump will works for all features only restriction on Terms of Data.*** TPT will works based on all loader properties

    **** Data Conversion can be perform One Conservation

    Cast(cast(a))

    ***Identity Column

    Create table tablenam

    (A integer not NULL generated always start with 1 increment by 1b CharVarchar)

    We have two modes in multiload operation

  • 7/27/2019 TD Learn Imp

    3/3