Chapter 7. Tibero 6 FixSet02

Table of Contents

7.1. New Functions
7.1.1. DBMS Engine
7.1.2. Utilities
7.2. Modified Functions
7.2.1. DBMS Engine
7.2.2. Utilities

This chapter describes functions added to or modified in Tibero 6 FixSet02.

7.1. New Functions

The following describes new functions added to Tibero 6 FixSet02.

7.1.1. DBMS Engine

The following functions have been added.

  • Checking and Modifying Statistics

    Added the following procedures that allow users to get and write statistics.

    ProcedureDescription
    dbms_stats.get_table_statsGets statistics about the specified table from Data Dictionary (DD) or a statistics table.
    dbms_stats.set_table_statsWrites statistics about the specified table to DD or a statistics table.
    dbms_stats.get_index_statsGets statistics about the specified index from DD or a statistics table.
    dbms_stats.set_index_statsWrites statistics about the specified index to DD or a statistics table.
    dbms_stats.get_column_statsGets statistics about the specified column from DD or a statistics table.
    dbms_stats.set_column_statsWrites statistics about the specified column to DD or a statistics table.
  • Backup & Recovery

    • Added the "alter database register logfile" DDL statement in order to use log that is not located in a base position for an automatic recovery.

  • DDL

    • Added virtual columns.

    • Can compress tables with LONG or LOB column(s).

    • Added the bitmap index function.

    • Added the "alter rmgr backup" and "alter rmgr restore" statements.

      Note

      For more information, refer to Tibero SQL Reference Guide.

  • Static and Dynamic Views

    • The V$SYSSTAT and V$SESSTAT views now show statistics about physical and logical reads.

    • Added the CTIME column that shows the amount of time (in seconds) elapsed after requesting or getting wlock to the V$LOCK view.

    • The GV$WAITER_SESSION and GV$BLOCKER_SESSION views now show a lock that another node blocks or waits for as well as a lock that the current node does.

    • Added the interval column to [ALL | DBA | USER]_PART_TABLES.

    • Added the DEFAULT_LENGTH, CHAR_COL_DECL_LENGTH, and CHAR_LENGTH columns to [ALL | DBA | USER]_TBL_COLUMNS.

    • Added the DBA_UNDO_EXTENTS view that shows information about undo extents.

    • Added and modified columns to and in the V$UNDO_FREE_SPA view that shows free and reusable spaces in each UNDO tablespace.

  • Packages

    The following procedures and functions have been added.

    • DBMS_XMLDOM

      Procedure/FunctionDescription
      NEWDOMDOCUMENTCreates a DOM document.
      FREEDOCUMENTFrees resources associated with the specified document.
      CREATEELEMENTCreates an element in the specified document.
      CREATETEXTNODECreates a text node in the specified document.
      GETXMLTYPEGets the XML document.
      MAKENODECasts the specified document to a node.
      APPENDCHILDAdds a child node to the specified node and outputs the new child node.
    • DBMS_XMLGEN

      Procedure/FunctionDescription
      SETMAXROWSSets the maximum number of rows that can be processed by GETXML or GETXMLTYPE.
      SETSKIPROWSSets the number of rows to skip in GETXML or GETXMLTYPE.
      GETNUMROWSPROCESSEDGets the number of rows processed by GETXML or GETXMLTYPE.
      GETXMLTYPECreates an XMLType document from ctxHandle.

    Note

    For more information, refer to Tibero tbPSM Reference Guide.

7.1.2. Utilities

The following functions have been added.

  • tbLoader

    • Added the SKIP_ERRORS option that specifies error codes that are not recorded in a bad file.

  • tbMigrator 2.0

    • Can migrate an MS SQL function for the timestamp column when migrating from MS SQL to Tibero.

  • tbExport

    • Added the REMAP_TABLESPACE parameter to remap tablespaces when performing an export if a tablespace used in a source server is different from that used in a target server.

    • Can export interval partition tables.

7.2. Modified Functions

The following describes functions modified in Tibero 6 FixSet02.

7.2.1. DBMS Engine

The following functions have been improved.

  • Backup & Recovery

    • Increased media recovery performance in TAC by improving the logic to read archive log.

  • Binary Tip

    • Added the BTIP_PATH environment variable to allow a user to specify a binary tip path.

    • Records contents of a binary tip file loaded when a database start as trace log.

    • V$INSTANCE provides information about a binary tip file loaded when a database starts.

  • Parallel Execution

    • SO independently allocates and releases parallel execution slaves.

  • DDL

    • The "ALTER DATABASE RENAME ~" statement can be used only in the MOUNT mode.

    • Does not execute a trigger if a DDL statement is executed for the trigger.

  • Static and Dynamic Views

    Modified the values in the STATUS column of V$SESSION.

    ColumnDescription
    READYThe session is connected.
    SESS_CLEANUPThe session resources are being cleaned up.
    ASSIGNEDThe session has an assigned thread, but is not ready yet.
    ASSIGNED_FOR_PEThe session has an assigned thread for the parallel execution, but is not ready yet.
    CLOSINGThe session is being closed.

7.2.2. Utilities

The following functions have been improved.

  • tbMigrator 2.0

    • TIME WITH TIME ZONE data of PostgreSQL is migrated to TIME data in Tibero.

    • TIMESTAMP WITH TIME ZONE data's TIME ZONE of PostgreSQL is migrated to UTC in Tibero.

    • REAL, FLOAT, and DOUBLE data is migrated to BINARY_DOUBLE or BINARY_FLOAT data.

  • tbExport

    • Messages except for DDL statements are commented out in order to immediately export executable queries.

    • Column comments for materialized views can be migrated.

  • tbImport

    • Messages except for DDL statements are commented out in order to immediately import executable queries.

    • Column comments for materialized views can be migrated.

    • Skipped objects are not displayed in a console, and they are recorded only in the debug log.