Table of Contents

Search

  1. Preface
  2. Understanding Pipeline Partitioning
  3. Partition Points
  4. Partition Types
  5. Pushdown Optimization
  6. Pushdown Optimization and Transformations
  7. Real-time Processing
  8. Commit Points
  9. Row Error Logging
  10. Workflow Recovery
  11. Stopping and Aborting
  12. Concurrent Workflows
  13. Grid Processing
  14. Load Balancer
  15. Workflow Variables
  16. Parameters and Variables in Sessions
  17. Parameter Files
  18. FastExport
  19. External Loading
  20. FTP
  21. Session Caches
  22. Incremental Aggregation
  23. Session Log Interface
  24. Understanding Buffer Memory
  25. High Precision Data

Advanced Workflow Guide

Advanced Workflow Guide

Identifying Orphaned Objects Using an SQL Query

Identifying Orphaned Objects Using an SQL Query

If the Integration Service does not drop the sequence or view objects, you can execute an SQL query on the database to identify all orphaned sequence or view objects created by the Integration Service. If the Integration Service ran multiple sessions or multiple Integration Services write to the same database account, the SQL query returns all orphaned objects from every session that ran and did not drop sequence or view objects.
When the Integration Service creates a sequence or view object in the database, it adds the prefix PM_S to the names of sequence objects and PM_V to the names of view objects. You can search for these objects based on the prefix to identify them.
The following queries show the syntax to search for sequence objects created by the Integration Service:
IBM DB2:
SELECT SEQNAME FROM SYSCAT.SEQUENCES WHERE SEQSCHEMA = CURRENT SCHEMA AND SEQNAME LIKE ‘PM\_S%’ ESCAPE ‘\’
Oracle:
SELECT SEQUENCE_NAME FROM USER_SEQUENCES WHERE SEQUENCE_NAME LIKE ‘PM\_S%’ ESCAPE ‘\’
The following queries show the syntax to search for view objects created by the Integration Service:
IBM DB2:
SELECT VIEWNAME FROM SYSCAT.VIEWS WHERE VIEWSCHEMA = CURRENT SCHEMA AND VIEW_NAME LIKE ‘PM\_V%’ ESCAPE ‘\’
Oracle:
SELECT VIEW_NAME FROM USER_VIEWS WHERE VIEW_NAME LIKE ‘PM\_V%’ ESCAPE ‘\’
Microsoft SQL Server or Sybase ASE:
SELECT NAME FROM SYSOBJECTS WHERE TYPE=‘V’ AND NAME LIKE ‘PM\_V%’ ESCAPE ‘\’
Teradata:
SELECT TableName FROM DBC.Tables WHERE CreatorName = USER AND TableKind =‘V’ AND TableName LIKE ‘PM\_V%’ ESCAPE ‘\’

0 COMMENTS

We’d like to hear from you!