Orastat line command

667 views

Published on

A simple orastat command for Oracle 8, 9, 10 and 11, like onstat do for Informix IDS Database. You can use for free modificaction.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
667
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Orastat line command

  1. 1. ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: CASE_CONSTANT_DEFINITION.h ****** ****** *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***#define CASE_ORACLE_VERSION 0#define CASE_ACTIVE_PARAMETERS 1#define CASE_USERS_CONNECTED 2#define CASE_WAIT_STATISTICS 3#define CASE_DATAFILE_I_0 4#define CASE_DATAFILE_BLOCKS_R_W 5#define CASE_WAIT_EVENTS 6#define CASE_INSTANCE_STATUS 7#define CASE_TEMPORAL_SPACE_BY_USER 8#define CASE_TOT_FREELIST_WAIT_PERCENT 9#define CASE_LAST_CHECKPOINT_TIME 10#define CASE_LIST_TABLESPACES 11#define CASE_ACTIVE_TRANSACTIONS 12#define CASE_LATCH_DETAILS 13#define CASE_RESOURCE_LIMITS 14#define CASE_LIST_DATAFILES 15#define CASE_LIST_DATAFILES_NEW_9I 16#define CASE_LIST_TABLESPACES_NEW_9I 17#define CASE_ACTIVE_SESSIONS 18#define CASE_SESSIONS_WAITS 19#define CASE_DEFAULT_STORAGE_SETS_TABLESPACE 20#define CASE_ALL_TABLES_STORAGE_SETTINGS 21
  2. 2. #define CASE_ALL_NON_SYS_TABLES_SETTINGS 22#define CASE_ALL_NON_SYS_INDEXES_SETTINGS 23#define CASE_USER_DEFINED 24#define CASE_LIST_DATAFILE_REDO_CONTROL_FILES 25#define CASE_LIST_DATAFILES_USED_BLOCKS 26#define CASE_LIST_SORT_BY_USER 27#define CASE_LIST_LOCK_STATUS 28#define CASE_LIST_USER_BY_CPU_USAGE 29#define CASE_SQL_STATEMENT_BY_THIS_USER 30#define CASE_REDO_LOGS_STATUS 31#define CASE_ARCHIVED_LOGS_HISTORY 32#define CASE_REDO_LOG_RECOVERY_REPORT 33#define CASE_ARCHIVE_LOG_HISTROY 34#define CASE_SESSION_LATCH_WAITS_SQL 35#define CASE_SESSION_PROGRAM_RUNNING_SQL 36#define CASE_PRIVILEGES_BY_USER 37#define CASE_DETAILED_LOCKING_CAUSES 38#define CASE_CURRENT_STATISTICS_VALUES 39#define CASE_TABLE_DESCRIPTION_USER_TABLENAME 40#define CASE_INDEX_DESCRIPTION_USER_INDEXNAME 41#define CASE_CURRENT_ACTIVITY_REPORT 42#define CASE_DICTIONARY_TABLE_COMMENTS 43#define CASE_DICTIONARY_TABLE_COLUMNS_DESCRIP 44#define CASE_SGA_STATISTIC_GENERAL 45#define CASE_SGA_STATISTIC_MEMORY_USAGE 46#define CASE_SGA_STATISTIC_INFORMATION 47#define CASE_ROW_CACHE_INFORMATION 48#define CASE_PERFORMANCE_DISK_I_O 49#define CASE_RECURSIVE_CALLS 50#define CASE_SYSTEM_EVENTS 51#define CASE_SQL_AREA_ALL_ENTRIES 52#define CASE_SQL_AREA_CPU_USAGE 53#define CASE_SQL_AREA_MEMORY_USAGE 54#define CASE_SQL_AREA_BUFFER_GET_SUM 55#define CASE_INIT_PARAMETERS_VALUES_STATUS 56#define CASE_TABLESPACE_FRAGMENTATION 57--- ------ -----------------------------------------------------------------------------------------------------------------------------------------------------
  3. 3. ----------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: CASE_CONSTANT_FUNC_DEF.h ****** ****** *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***/* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** */#define FUNC_DB_BLOCK_SIZE 1#define FUNC_COMMAND_SQL 2#define FUNC_LOCK_MODE 3#define FUNC_LOCK_NAME_MODE 4#define FUNC_DB_BLOCK_SIZE0 5#define FUNC_DB_OBJECT_TYPE 6#define FUNC_DB_OBJECT_OWNER_NAME 7#define FUNC_DB_SESSION_SID 8#define FUNC_CONVERT_HH_MM_SS 9#define FUNC_DB_COMP_TBLSPC_INI_EXT 10--- ---
  4. 4. --- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: CASE_CONSTANT_SQL_STMT_DEF.h ****** ****** *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***/* Inicio de la programacion */#define CASE_ORACLE_VERSION 0#define CASE_ACTIVE_PARAMETERS 1#define CASE_USERS_CONNECTED 2#define CASE_WAIT_STATISTICS 3#define CASE_DATAFILE_I_0 4#define CASE_DATAFILE_BLOCKS_R_W 5#define CASE_WAIT_EVENTS 6#define CASE_INSTANCE_STATUS 7#define CASE_TEMPORAL_SPACE_BY_USER 8#define CASE_TOT_FREELIST_WAIT_PERCENT 9#define CASE_LAST_CHECKPOINT_TIME 10
  5. 5. #define CASE_LIST_TABLESPACES 11#define CASE_ACTIVE_TRANSACTIONS 12#define CASE_LATCH_DETAILS 13#define CASE_RESOURCE_LIMITS 14#define CASE_LIST_DATAFILES 15#define CASE_LIST_DATAFILES_NEW_9I 16#define CASE_LIST_TABLESPACES_NEW_9I 17#define CASE_ACTIVE_SESSIONS 18#define CASE_SESSIONS_WAITS 19#define CASE_DEFAULT_STORAGE_SETS_TABLESPACE 20#define CASE_ALL_TABLES_STORAGE_SETTINGS 21#define CASE_ALL_NON_SYS_TABLES_SETTINGS 22#define CASE_ALL_NON_SYS_INDEXES_SETTINGS 23#define CASE_USER_DEFINED 24#define CASE_LIST_DATAFILE_REDO_CONTROL_FILES 25#define CASE_LIST_DATAFILES_USED_BLOCKS 26#define CASE_LIST_SORT_BY_USER 27#define CASE_LIST_LOCK_STATUS 28#define CASE_LIST_USER_BY_CPU_USAGE 29#define CASE_SQL_STATEMENT_BY_THIS_USER 30#define CASE_REDO_LOGS_STATUS 31#define CASE_ARCHIVED_LOGS_HISTORY 32#define CASE_REDO_LOG_RECOVERY_REPORT 33#define CASE_ARCHIVE_LOG_HISTROY 34#define CASE_SESSION_LATCH_WAITS_SQL 35#define CASE_SESSION_PROGRAM_RUNNING_SQL 36#define CASE_PRIVILEGES_BY_USER 37#define CASE_DETAILED_LOCKING_CAUSES 38#define CASE_CURRENT_STATISTICS_VALUES 39#define CASE_TABLE_DESCRIPTION_USER_TABLENAME 40#define CASE_INDEX_DESCRIPTION_USER_INDEXNAME 41#define CASE_CURRENT_ACTIVITY_REPORT 42#define CASE_DICTIONARY_TABLE_COMMENTS 43#define CASE_DICTIONARY_TABLE_COLUMNS_DESCRIP 44#define CASE_SGA_STATISTIC_GENERAL 45#define CASE_SGA_STATISTIC_MEMORY_USAGE 46#define CASE_SGA_STATISTIC_INFORMATION 47#define CASE_ROW_CACHE_INFORMATION 48#define CASE_PERFORMANCE_DISK_I_O 49#define CASE_RECURSIVE_CALLS 50
  6. 6. #define CASE_SYSTEM_EVENTS 51#define CASE_SQL_AREA_ALL_ENTRIES 52#define CASE_SQL_AREA_CPU_USAGE 53#define CASE_SQL_AREA_MEMORY_USAGE 54#define CASE_SQL_AREA_BUFFER_GET_SUM 55#define CASE_INIT_PARAMETERS_VALUES_STATUS 56#define CASE_TABLESPACE_FRAGMENTATION 57#define CASE_SHOW_NLS_PARAMETERS 58#define CASE_CONTROL_FILES_STATUS 59#define CASE_SORT_SEGMENTS_USERS 60#define CASE_ORACLE_QUOTAS 61#define CASE_TABLE_GENERAL_DESCRIPTION 62#define CASE_TABLE_COLUMN_DESCRIPTION 63#define CASE_TABLE_CONSTRAINTS 64#define CASE_INDEX_GENERAL_DESCRIPTION 65/* Agregado el 19-01-2004 */#define CASE_AUDIT_DEFINITION 66#define CASE_SHOW_SEGMENTS_EXTENTS 67#define CASE_SHOW_EXTENTS_INSIDE_DATAFILES 68#define CASE_SHOW_USER_LISTS 69#define CASE_SHOW_ROLES_PRIVILEGES 70#define CASE_SHOW_PRIVILEGES_COLUMNS 71#define CASE_SHOW_LOCKS_VIEWS 72#define CASE_GRAPH_LOCK_WAITS 73#define CASE_OBJECT_ACCESS_SESSION 74#define CASE_SHOW_LATCHES 75#define CASE_SHOW_STATISTICS 76#define CASE_SHOW_TRANSACTIONS 77#define CASE_SHOW_DATAFILES_STATUS 78#define CASE_SHOW_DB_OBJECT_CACHE 79/* Agregado el 22-01-2004 */#define CASE_TABLE_ALERT_EXTENT_USED 80#define CASE_INDEX_ALERT_EXTENT_USED 81/* Agregado el 18-03-2004 */#define CASE_USER_TIME_WORKING 82#define CASE_IS_USER_WORKING 83
  7. 7. /* Agregado el 22-03-2004 */#define CASE_VER_SQL_PROGRAM 84/* Agregado el 07-04-2004 */#define CASE_SQL_SESS_IO 85#define CASE_SQL_SESSION_EVENT 86#define CASE_SQL_SESSION_WAIT 87#define CASE_SQL_SESSION_LONG_OPER 88#define CASE_SQL_LOCKED_OBJECTS 89/* Agregado el 13-04-2004 */#define CASE_SQL_TRANSACTION_DETAIL 90/* Agregado el 14-04-2004 */#define CASE_SQL_LOCK_MEDIUM_INFO 91#define CASE_SQL_LOCK_FULL_INFO 92#define CASE_SQL_LOCK_BY_SESSION_ID 93#define CASE_SQL_WHO_IS_WAITING_FOR 94#define CASE_SQL_WHICH_SQL_RUNNING 95#define CASE_WHICH_OBJECTS_LOCKED_BY_USER 96/* Agregado el 25-Agosto-2005 */#define CASE_BUFFER_CACHE_DEFINED 97#define CASE_BUFFER_CACHE_TOTAL_SIZE 98#define CASE_OPTIMIZER_INDEX_COST_ADJ_ESTIMATE 99#define CASE_OPTIMIZER_INDEX_CACHING_ESTIMAGE 100--- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---***************************************************************************************************************************************************************************************************************************
  8. 8. ****************************************************************************************************************************************************************************************************************************** ****** ****** ARCHIVO: CONSTANT_DEFINITION.h ****** ****** *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***/* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** */#define MAX_NRO_OPCION 100 // OPCION INCLUSIVE // /* Modificado el 25-Ago-2005 - 14:00 (ex valor 99) */ /* Modificado el 25-Ago-2005 - 14:00 (ex valor 98) */ /* Modificado el 25-Ago-2005 - 14:00 (ex valor 97) */ /* Modificado el 25-Ago-2005 - 14:00 (ex valor 96) */ /* Modificado el 18-03-2004 - 14:00 (ex valor 81) */ /* Modificado el 18-03-2004 - 16:45 (ex valor 82) */ /* Modificado el 22-03-2004 - 10:13 (ex valor 83) */ /* Modificado el 07-04-2004 - 13:40 (ex valor 84) */ /* Modificado el 07-04-2004 - 14:20 (ex valor 85) */ /* Modificado el 07-04-2004 - 14:33 (ex valor 86) */ /* Modificado el 07-04-2004 - 14:33 (ex valor 87) */ /* Modificado el 07-04-2004 - 14:33 (ex valor 88) */ /* Modificado el 07-04-2004 - 14:33 (ex valor 89) */ /* Modificado el 14-04-2004 - 09:59 (ex valor 90) */ /* Modificado el 14-04-2004 - 09:59 (ex valor 91) */ /* Modificado el 14-04-2004 - 11:30 (ex valor 92) */ /* Modificado el 14-04-2004 - 12:11 (ex valor 93) */ /* Modificado el 14-04-2004 - 12:11 (ex valor 94) */ /* Modificado el 14-04-2004 - 15:08 (ex valor 95) */
  9. 9. #define MAX_ITEMS 512#define MAX_VNAME_LEN 512#define MAX_INAME_LEN 512#define MAX_BUFFER 512#define MAX_LINE 512#define MAX_STMT 16384#define MAX_STMT_SIZE 16384#define MAX_BIND_VARIABLE 512#define MAX_VAR_SIZE 512#define MAX_VERSION_LEN 256#define MAX_LEN_ARG 512#define MAX_LEN_CONNECT 512#define MAX_WORD_STMT 256#define MAX_LEN_DATOS_AUXI 1024#define MAX_LEN_VARCHAR 128#define SI_PROCESAR 1#define NO_PROCESAR 0#define SI_ERROR 1#define NO_ERROR 0#define ASCII_SEPARADOR 124#define ASCII_FIN_LINEA 0#define ASCII_SLASH 47#define ASCII_ARROBA 64#define ASCII_PUNTO 46#define ASCII_SPACE 32#define ASCII_COMA 44#define ASCII_IGUAL 61#define ASCII_MENOR 60#define ASCII_MAYOR 62#define ASCII_PARENT_IZQ 40#define ASCII_PARENT_DER 41#define ASCII_COMILLA 34#define ASCII_PORCENTAJE 37#define ASCII_COMITA_SIMPLE 39#define ASCII_SIGNO_MAS 43#define ASCII_ASTERISCO 42
  10. 10. #define ASCII_SIGNO_MENOS 45#define ASCII_PUNTO_Y_COMA 59#define ASCII_DOS_PUNTOS 58#define ASCII_ENTER 13#define ASCII_RETURN 10/* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** */#define USERNAME 1#define PASSWORD 2#define CONEXION 3/* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** */--- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: CONSTANT_ORACLE_VERSIONS.h ****** ****** *****************************************************************************************************************************************************
  11. 11. ****************************************************************************************************************************************************************************************************************************** ****** ***/* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** */#define VERSION_ORACLE_734 734#define VERSION_ORACLE_816 816#define VERSION_ORACLE_817 817#define VERSION_ORACLE_901 901#define VERSION_ORACLE_902 902#define VERSION_ORACLE_910 910#define VERSION_ORACLE_920 920#define VERSION_ORACLE_1000 1000#define VERSION_ORACLE_UNK 000--- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: decode_command_oracle.c ****** ****** ****************************************************************************
  12. 12. ******************************************************************************************************************************************************************************************************************************************************************************************************* ****** ***#include <stdio.h>#include <stdlib.h>#include <string.h>extern vaciar_cadena ();char *decode_command_oracle (int nro_decodificar) { static char dato_1[64]; vaciar_cadena (dato_1,64); switch (nro_decodificar) { case 0: strcpy (dato_1,"BACKGROUND"); break; case 1: strcpy (dato_1,"CREATE TABLE"); break; case 2: strcpy (dato_1,"INSERT"); break; case 3: strcpy (dato_1,"SELECT"); break; case 4: strcpy (dato_1,"CREATE CLUSTER"); break; case 5: strcpy (dato_1,"ALTER CLUSTER"); break; case 6: strcpy (dato_1,"UPDATE"); break; case 7: strcpy (dato_1,"DELETE"); break; case 8: strcpy (dato_1,"DROP"); break; case 9: strcpy (dato_1,"CREATE INDEX"); break; case 10: strcpy (dato_1,"DROP INDEX"); break; case 11: strcpy (dato_1,"ALTER INDEX"); break; case 12: strcpy (dato_1,"DROP TABLE"); break; case 13: strcpy (dato_1,"CREATE SEQUENCE"); break; case 14: strcpy (dato_1,"ALTER SEQUENCE"); break; case 15: strcpy (dato_1,"ALTER TABLE"); break; case 16: strcpy (dato_1,"DROP SEQUENCE"); break; case 17: strcpy (dato_1,"GRANT"); break; case 18: strcpy (dato_1,"REVOKE"); break; case 19: strcpy (dato_1,"CREATE SYNONYM"); break; case 20: strcpy (dato_1,"DROP SYNONYM"); break;
  13. 13. case 21: strcpy (dato_1,"CREATE VIEW"); break;case 22: strcpy (dato_1,"DROP VIEW"); break;case 23: strcpy (dato_1,"VALIDATE INDEX"); break;case 24: strcpy (dato_1,"CREATE PROCEDURE"); break;case 25: strcpy (dato_1,"ALTER PROCEDURE"); break;case 26: strcpy (dato_1,"LOCK TABLE"); break;case 27: strcpy (dato_1,"NO OPERATION"); break;case 28: strcpy (dato_1,"RENAME"); break;case 29: strcpy (dato_1,"COMMENT"); break;case 30: strcpy (dato_1,"AUDIT"); break;case 31: strcpy (dato_1,"NOAUDIT"); break;case 32: strcpy (dato_1,"CREATE EXTERNAL DATABASE"); break;case 33: strcpy (dato_1,"DROP EXTERNAL DATABASE"); break;case 34: strcpy (dato_1,"CREATE DATABASE"); break;case 35: strcpy (dato_1,"ALTER DATABASE"); break;case 36: strcpy (dato_1,"CREATE ROLLBACK SEGMENT"); break;case 37: strcpy (dato_1,"ALTER ROLLBACK SEGMENT"); break;case 38: strcpy (dato_1,"DROP ROLLBACK SEGMENT"); break;case 39: strcpy (dato_1,"CREATE TABLESPACE"); break;case 40: strcpy (dato_1,"ALTER TABLESPACE"); break;case 41: strcpy (dato_1,"DROP TABLESPACE"); break;case 42: strcpy (dato_1,"ALTER SESSION"); break;case 43: strcpy (dato_1,"ALTER USER"); break;case 44: strcpy (dato_1,"COMMIT"); break;case 45: strcpy (dato_1,"ROLLBACK"); break;case 46: strcpy (dato_1,"SAVEPOINT"); break;case 47: strcpy (dato_1,"PL/SQL EXECUTE"); break;case 48: strcpy (dato_1,"SET TRANSACTION"); break;case 49: strcpy (dato_1,"ALTER SYSTEM SWITCH LOG"); break;case 50: strcpy (dato_1,"EXPLAIN"); break;case 51: strcpy (dato_1,"CREATE USER"); break;case 52: strcpy (dato_1,"CREATE ROLE"); break;case 53: strcpy (dato_1,"DROP USER"); break;case 54: strcpy (dato_1,"DROP ROLE"); break;case 55: strcpy (dato_1,"SET ROLE"); break;case 56: strcpy (dato_1,"CREATE SCHEMA"); break;case 57: strcpy (dato_1,"CREATE CONTROL FILE"); break;case 58: strcpy (dato_1,"ALTER TRACING"); break;case 59: strcpy (dato_1,"CREATE TRIGGER"); break;case 60: strcpy (dato_1,"ALTER TRIGGER"); break;
  14. 14. case 61: strcpy (dato_1,"DROP TRIGGER"); break; case 62: strcpy (dato_1,"ANALYZE TABLE"); break; case 63: strcpy (dato_1,"ANALYZE INDEX"); break; case 64: strcpy (dato_1,"ANALYZE CLUSTER"); break; case 65: strcpy (dato_1,"CREATE PROFILE"); break; case 66: strcpy (dato_1,"DROP PROFILE"); break; case 67: strcpy (dato_1,"ALTER PROFILE"); break; case 68: strcpy (dato_1,"DROP PROCEDURE"); break; case 69: strcpy (dato_1,"DROP PROCEDURE"); break; case 70: strcpy (dato_1,"ALTER RESOURCE COST"); break; case 71: strcpy (dato_1,"CREATE SNAPSHOT LOG"); break; case 72: strcpy (dato_1,"ALTER SNAPSHOT LOG"); break; case 73: strcpy (dato_1,"DROP SNAPSHOT LOG"); break; case 74: strcpy (dato_1,"CREATE SNAPSHOT"); break; case 75: strcpy (dato_1,"ALTER SNAPSHOT"); break; case 76: strcpy (dato_1,"DROP SNAPSHOT"); break; case 79: strcpy (dato_1,"ALTER ROLE"); break; case 85: strcpy (dato_1,"TRUNCATE TABLE"); break; case 86: strcpy (dato_1,"TRUNCATE CLUSTER"); break; case 88: strcpy (dato_1,"ALTER VIEW"); break; case 91: strcpy (dato_1,"CREATE FUNCTION"); break; case 92: strcpy (dato_1,"ALTER FUNCTION"); break; case 93: strcpy (dato_1,"DROP FUNCTION"); break; case 94: strcpy (dato_1,"CREATE PACKAGE"); break; case 95: strcpy (dato_1,"ALTER PACKAGE"); break; case 96: strcpy (dato_1,"DROP PACKAGE"); break; case 97: strcpy (dato_1,"CREATE PACKAGE BODY"); break; case 98: strcpy (dato_1,"ALTER PACKAGE BODY"); break; case 99: strcpy (dato_1,"DROP PACKAGE BODY"); break; default: strcpy (dato_1,"-"); break; } return dato_1; }--- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---
  15. 15. --- ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: decode_lock_mode.c ****** ****** *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***#include <stdio.h>#include <stdlib.h>#include <string.h>extern vaciar_cadena ();char *decode_lock_mode (int nro_decodificar) { static char dato_1[64]; vaciar_cadena (dato_1,64); switch (nro_decodificar) { case 1: strcpy (dato_1,"No Lock"); break; case 2: strcpy (dato_1,"Row Share"); break; case 3: strcpy (dato_1,"Row Exclusive"); break; case 4: strcpy (dato_1,"Share"); break; case 5: strcpy (dato_1,"Share Row Exclusive"); break; case 6: strcpy (dato_1,"Exclusive"); break;
  16. 16. default: strcpy (dato_1,"NONE"); break; } return dato_1; }--- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: decode_name_lock.c ****** ****** *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***#include <stdio.h>#include <stdlib.h>#include <string.h>extern vaciar_cadena ();extern char *decode_name_lock (char *cad_decodificar) { static char dato_1[256];
  17. 17. vaciar_cadena (dato_1,256);if ( strncmp (cad_decodificar,"BL",2) == 0) strcpy (dato_1,"Buffer hash table instance lock"); elseif ( strncmp (cad_decodificar,"CF",2) == 0) strcpy (dato_1," Control file schema global enqueue lock"); elseif ( strncmp (cad_decodificar,"CI",2) == 0) strcpy (dato_1,"Cross-instance function invocation instance lock"); elseif ( strncmp (cad_decodificar,"CS",2) == 0) strcpy (dato_1,"Control file schema global enqueue lock"); elseif ( strncmp (cad_decodificar,"CU",2) == 0) strcpy (dato_1,"Cursor bind lock"); elseif ( strncmp (cad_decodificar,"DF",2) == 0) strcpy (dato_1,"Data file instance lock"); elseif ( strncmp (cad_decodificar,"DL",2) == 0) strcpy (dato_1,"Direct loader parallel index create"); elseif ( strncmp (cad_decodificar,"DM",2) == 0) strcpy (dato_1,"Mount/startup db primary/secondary instance lock"); elseif ( strncmp (cad_decodificar,"DR",2) == 0) strcpy (dato_1,"Distributed recovery process lock"); elseif ( strncmp (cad_decodificar,"DX",2) == 0) strcpy (dato_1,"Distributed transaction entry lock"); elseif ( strncmp (cad_decodificar,"FI",2) == 0) strcpy (dato_1,"SGA open-file information lock"); elseif ( strncmp (cad_decodificar,"FS",2) == 0) strcpy (dato_1,"File set lock"); elseif ( strncmp (cad_decodificar,"HW",2) == 0) strcpy (dato_1,"Space management operations on a specific segment lock"); elseif ( strncmp (cad_decodificar,"IN",2) == 0) strcpy (dato_1,"Instance number lock"); elseif ( strncmp (cad_decodificar,"IR",2) == 0) strcpy (dato_1,"Instance recovery serialization global enqueue lock"); elseif ( strncmp (cad_decodificar,"IS",2) == 0) strcpy (dato_1,"Instance state lock"); elseif ( strncmp (cad_decodificar,"IV",2) == 0) strcpy (dato_1,"Library cache invalidation instance lock"); elseif ( strncmp (cad_decodificar,"JQ",2) == 0) strcpy (dato_1,"Job queue lock"); elseif ( strncmp (cad_decodificar,"KK",2) == 0) strcpy (dato_1,"Thread kick lock"); elseif ( strncmp (cad_decodificar,"MB",2) == 0) strcpy (dato_1,"Master buffer hash table instance lock"); elseif ( strncmp (cad_decodificar,"MM",2) == 0) strcpy (dato_1,"Mount definition gloabal enqueue lock"); elseif ( strncmp (cad_decodificar,"MR",2) == 0) strcpy (dato_1,"Media recovery lock"); elseif ( strncmp (cad_decodificar,"PF",2) == 0) strcpy (dato_1,"Password file lock"); elseif ( strncmp (cad_decodificar,"PI",2) == 0) strcpy (dato_1,"Parallel operation lock"); elseif ( strncmp (cad_decodificar,"PR",2) == 0) strcpy (dato_1,"Process startup lock"); elseif ( strncmp (cad_decodificar,"PS",2) == 0) strcpy (dato_1,"Parallel operation lock"); elseif ( strncmp (cad_decodificar,"RE",2) == 0) strcpy (dato_1,"USE_ROW_ENQUEUE enforcement lock"); elseif ( strncmp (cad_decodificar,"RT",2) == 0) strcpy (dato_1,"Redo thread global enqueue lock"); elseif ( strncmp (cad_decodificar,"RW",2) == 0) strcpy (dato_1,"Row wait enqueue lock"); elseif ( strncmp (cad_decodificar,"SC",2) == 0) strcpy (dato_1,"System commit number instance lock"); elseif ( strncmp (cad_decodificar,"SH",2) == 0) strcpy (dato_1,"System commit number high water mark enqueue lock"); elseif ( strncmp (cad_decodificar,"SM",2) == 0) strcpy (dato_1,"SMON lock"); elseif ( strncmp (cad_decodificar,"SN",2) == 0) strcpy (dato_1,"Sequence number instance lock"); elseif ( strncmp (cad_decodificar,"SQ",2) == 0) strcpy (dato_1,"Sequence number enqueue lock"); elseif ( strncmp (cad_decodificar,"SS",2) == 0) strcpy (dato_1,"Sort segment lock"); elseif ( strncmp (cad_decodificar,"ST",2) == 0) strcpy (dato_1,"Space transaction enqueue lock"); elseif ( strncmp (cad_decodificar,"SV",2) == 0) strcpy (dato_1,"Sequence number value lock"); else
  18. 18. if ( strncmp (cad_decodificar,"TA",2) == 0) strcpy (dato_1,"Generic enqueue lock"); else if ( strncmp (cad_decodificar,"TD",2) == 0) strcpy (dato_1,"DDL enqueue lock"); else if ( strncmp (cad_decodificar,"TE",2) == 0) strcpy (dato_1,"Extend-segment enqueue lock"); else if ( strncmp (cad_decodificar,"TM",2) == 0) strcpy (dato_1,"DML enqueue lock"); else if ( strncmp (cad_decodificar,"TT",2) == 0) strcpy (dato_1,"Temporary table enqueue lock"); else if ( strncmp (cad_decodificar,"TX",2) == 0) strcpy (dato_1,"Transaction enqueue lock"); else if ( strncmp (cad_decodificar,"UL",2) == 0) strcpy (dato_1,"User supplied lock"); else if ( strncmp (cad_decodificar,"UN",2) == 0) strcpy (dato_1,"User name lock"); else if ( strncmp (cad_decodificar,"US",2) == 0) strcpy (dato_1,"Undo segment DDL lock"); else if ( strncmp (cad_decodificar,"WL",2) == 0) strcpy (dato_1,"Being-written redo log instance lock"); else if ( strncmp (cad_decodificar,"WS",2) == 0) strcpy (dato_1,"Write-atomic-log-switch global enqueue lock"); else if ( strncmp (cad_decodificar,"TS",2) == 0) strcpy (dato_1,"Temporary segment enqueue lock (ID2=0) New block allocation enqueue lock(ID2=1)"); else if ( strncmp (cad_decodificar,"LA",2) == 0) strcpy (dato_1,"Library cache lock instance lock (A=namespace)"); else if ( strncmp (cad_decodificar,"LB",2) == 0) strcpy (dato_1,"Library cache lock instance lock (B=namespace)"); else if ( strncmp (cad_decodificar,"LC",2) == 0) strcpy (dato_1,"Library cache lock instance lock (C=namespace)"); else if ( strncmp (cad_decodificar,"LD",2) == 0) strcpy (dato_1,"Library cache lock instance lock (D=namespace)"); else if ( strncmp (cad_decodificar,"LE",2) == 0) strcpy (dato_1,"Library cache lock instance lock (E=namespace)"); else if ( strncmp (cad_decodificar,"LF",2) == 0) strcpy (dato_1,"Library cache lock instance lock (F=namespace)"); else if ( strncmp (cad_decodificar,"LG",2) == 0) strcpy (dato_1,"Library cache lock instance lock (G=namespace)"); else if ( strncmp (cad_decodificar,"LH",2) == 0) strcpy (dato_1,"Library cache lock instance lock (H=namespace)"); else if ( strncmp (cad_decodificar,"LI",2) == 0) strcpy (dato_1,"Library cache lock instance lock (I=namespace)"); else if ( strncmp (cad_decodificar,"LJ",2) == 0) strcpy (dato_1,"Library cache lock instance lock (J=namespace)"); else if ( strncmp (cad_decodificar,"LK",2) == 0) strcpy (dato_1,"Library cache lock instance lock (K=namespace)"); else if ( strncmp (cad_decodificar,"LL",2) == 0) strcpy (dato_1,"Library cache lock instance lock (L=namespace)"); else if ( strncmp (cad_decodificar,"LM",2) == 0) strcpy (dato_1,"Library cache lock instance lock (M=namespace)"); else if ( strncmp (cad_decodificar,"LN",2) == 0) strcpy (dato_1,"Library cache lock instance lock (N=namespace)"); else if ( strncmp (cad_decodificar,"LO",2) == 0) strcpy (dato_1,"Library cache lock instance lock (O=namespace)"); else if ( strncmp (cad_decodificar,"LP",2) == 0) strcpy (dato_1,"Library cache lock instance lock (P=namespace)"); else if ( strncmp (cad_decodificar,"LS",2) == 0) strcpy (dato_1,"Log start/log switch enqueue lock"); else if ( strncmp (cad_decodificar,"PA",2) == 0) strcpy (dato_1,"Library cache pin instance lock (A=namespace)"); else if ( strncmp (cad_decodificar,"PB",2) == 0) strcpy (dato_1,"Library cache pin instance lock (B=namespace)"); else if ( strncmp (cad_decodificar,"PC",2) == 0) strcpy (dato_1,"Library cache pin instance lock (C=namespace)"); else if ( strncmp (cad_decodificar,"PD",2) == 0) strcpy (dato_1,"Library cache pin instance lock (D=namespace)"); else if ( strncmp (cad_decodificar,"PE",2) == 0) strcpy (dato_1,"Library cache pin instance lock (E=namespace)"); else if ( strncmp (cad_decodificar,"PF",2) == 0) strcpy (dato_1,"Library cache pin instance lock (F=namespace)"); else if ( strncmp (cad_decodificar,"PG",2) == 0) strcpy (dato_1,"Library cache pin instance lock (G=namespace)"); else if ( strncmp (cad_decodificar,"PH",2) == 0) strcpy (dato_1,"Library cache pin instance lock (H=namespace)"); else if ( strncmp (cad_decodificar,"PI",2) == 0) strcpy (dato_1,"Library cache pin instance lock (I=namespace)"); else if ( strncmp (cad_decodificar,"PJ",2) == 0) strcpy (dato_1,"Library cache pin instance lock (J=namespace)"); else
  19. 19. if ( strncmp (cad_decodificar,"PL",2) == 0) strcpy (dato_1,"Library cache pin instance lock (K=namespace)"); elseif ( strncmp (cad_decodificar,"PK",2) == 0) strcpy (dato_1,"Library cache pin instance lock (L=namespace)"); elseif ( strncmp (cad_decodificar,"PM",2) == 0) strcpy (dato_1,"Library cache pin instance lock (M=namespace)"); elseif ( strncmp (cad_decodificar,"PN",2) == 0) strcpy (dato_1,"Library cache pin instance lock (N=namespace)"); elseif ( strncmp (cad_decodificar,"PO",2) == 0) strcpy (dato_1,"Library cache pin instance lock (O=namespace)"); elseif ( strncmp (cad_decodificar,"PP",2) == 0) strcpy (dato_1,"Library cache pin instance lock (P=namespace)"); elseif ( strncmp (cad_decodificar,"PQ",2) == 0) strcpy (dato_1,"Library cache pin instance lock (Q=namespace)"); elseif ( strncmp (cad_decodificar,"PR",2) == 0) strcpy (dato_1,"Library cache pin instance lock (R=namespace)"); elseif ( strncmp (cad_decodificar,"PS",2) == 0) strcpy (dato_1,"Library cache pin instance lock (S=namespace)"); elseif ( strncmp (cad_decodificar,"PT",2) == 0) strcpy (dato_1,"Library cache pin instance lock (T=namespace)"); elseif ( strncmp (cad_decodificar,"PU",2) == 0) strcpy (dato_1,"Library cache pin instance lock (U=namespace)"); elseif ( strncmp (cad_decodificar,"PV",2) == 0) strcpy (dato_1,"Library cache pin instance lock (V=namespace)"); elseif ( strncmp (cad_decodificar,"PW",2) == 0) strcpy (dato_1,"Library cache pin instance lock (W=namespace)"); elseif ( strncmp (cad_decodificar,"PX",2) == 0) strcpy (dato_1,"Library cache pin instance lock (X=namespace)"); elseif ( strncmp (cad_decodificar,"PY",2) == 0) strcpy (dato_1,"Library cache pin instance lock (Y=namespace)"); elseif ( strncmp (cad_decodificar,"PZ",2) == 0) strcpy (dato_1,"Library cache pin instance lock (Z=namespace)"); elseif ( strncmp (cad_decodificar,"QA",2) == 0) strcpy (dato_1,"Row cache instance lock (A=cache)"); elseif ( strncmp (cad_decodificar,"QB",2) == 0) strcpy (dato_1,"Row cache instance lock (B=cache)"); elseif ( strncmp (cad_decodificar,"QC",2) == 0) strcpy (dato_1,"Row cache instance lock (C=cache)"); elseif ( strncmp (cad_decodificar,"QD",2) == 0) strcpy (dato_1,"Row cache instance lock (D=cache)"); elseif ( strncmp (cad_decodificar,"QE",2) == 0) strcpy (dato_1,"Row cache instance lock (E=cache)"); elseif ( strncmp (cad_decodificar,"QF",2) == 0) strcpy (dato_1,"Row cache instance lock (F=cache)"); elseif ( strncmp (cad_decodificar,"QG",2) == 0) strcpy (dato_1,"Row cache instance lock (G=cache)"); elseif ( strncmp (cad_decodificar,"QH",2) == 0) strcpy (dato_1,"Row cache instance lock (H=cache)"); elseif ( strncmp (cad_decodificar,"QI",2) == 0) strcpy (dato_1,"Row cache instance lock (I=cache)"); elseif ( strncmp (cad_decodificar,"QJ",2) == 0) strcpy (dato_1,"Row cache instance lock (J=cache)"); elseif ( strncmp (cad_decodificar,"QL",2) == 0) strcpy (dato_1,"Row cache instance lock (K=cache)"); elseif ( strncmp (cad_decodificar,"QK",2) == 0) strcpy (dato_1,"Row cache instance lock (L=cache)"); elseif ( strncmp (cad_decodificar,"QM",2) == 0) strcpy (dato_1,"Row cache instance lock (M=cache)"); elseif ( strncmp (cad_decodificar,"QN",2) == 0) strcpy (dato_1,"Row cache instance lock (N=cache)"); elseif ( strncmp (cad_decodificar,"QO",2) == 0) strcpy (dato_1,"Row cache instance lock (O=cache)"); elseif ( strncmp (cad_decodificar,"QP",2) == 0) strcpy (dato_1,"Row cache instance lock (P=cache)"); elseif ( strncmp (cad_decodificar,"QQ",2) == 0) strcpy (dato_1,"Row cache instance lock (Q=cache)"); elseif ( strncmp (cad_decodificar,"QR",2) == 0) strcpy (dato_1,"Row cache instance lock (R=cache)"); elseif ( strncmp (cad_decodificar,"QS",2) == 0) strcpy (dato_1,"Row cache instance lock (S=cache)"); elseif ( strncmp (cad_decodificar,"QT",2) == 0) strcpy (dato_1,"Row cache instance lock (T=cache)"); elseif ( strncmp (cad_decodificar,"QU",2) == 0) strcpy (dato_1,"Row cache instance lock (U=cache)"); elseif ( strncmp (cad_decodificar,"QV",2) == 0) strcpy (dato_1,"Row cache instance lock (V=cache)"); elseif ( strncmp (cad_decodificar,"QW",2) == 0) strcpy (dato_1,"Row cache instance lock (W=cache)"); elseif ( strncmp (cad_decodificar,"QX",2) == 0) strcpy (dato_1,"Row cache instance lock (X=cache)"); else
  20. 20. if ( strncmp (cad_decodificar,"QY",2) == 0) strcpy (dato_1,"Row cache instance lock (Y=cache)"); else if ( strncmp (cad_decodificar,"QZ",2) == 0) strcpy (dato_1,"Row cache instance lock (Z=cache)"); return (dato_1); }--- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: decode_name_mode.c ****** ****** *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***#include <stdio.h>#include <stdlib.h>#include <string.h>extern char *decode_name_lock (char *cad_decodificar) { static char dato_1[256];
  21. 21. vaciar_cadena (dato_1,256);if ( strncmp (cad_decodificar,"BL",2) == 0) strcpy (dato_1,"Buffer hash table instance lock"); elseif ( strncmp (cad_decodificar,"CF",2) == 0) strcpy (dato_1," Control file schema global enqueue lock"); elseif ( strncmp (cad_decodificar,"CI",2) == 0) strcpy (dato_1,"Cross-instance function invocation instance lock"); elseif ( strncmp (cad_decodificar,"CS",2) == 0) strcpy (dato_1,"Control file schema global enqueue lock"); elseif ( strncmp (cad_decodificar,"CU",2) == 0) strcpy (dato_1,"Cursor bind lock"); elseif ( strncmp (cad_decodificar,"DF",2) == 0) strcpy (dato_1,"Data file instance lock"); elseif ( strncmp (cad_decodificar,"DL",2) == 0) strcpy (dato_1,"Direct loader parallel index create"); elseif ( strncmp (cad_decodificar,"DM",2) == 0) strcpy (dato_1,"Mount/startup db primary/secondary instance lock"); elseif ( strncmp (cad_decodificar,"DR",2) == 0) strcpy (dato_1,"Distributed recovery process lock"); elseif ( strncmp (cad_decodificar,"DX",2) == 0) strcpy (dato_1,"Distributed transaction entry lock"); elseif ( strncmp (cad_decodificar,"FI",2) == 0) strcpy (dato_1,"SGA open-file information lock"); elseif ( strncmp (cad_decodificar,"FS",2) == 0) strcpy (dato_1,"File set lock"); elseif ( strncmp (cad_decodificar,"HW",2) == 0) strcpy (dato_1,"Space management operations on a specific segment lock"); elseif ( strncmp (cad_decodificar,"IN",2) == 0) strcpy (dato_1,"Instance number lock"); elseif ( strncmp (cad_decodificar,"IR",2) == 0) strcpy (dato_1,"Instance recovery serialization global enqueue lock"); elseif ( strncmp (cad_decodificar,"IS",2) == 0) strcpy (dato_1,"Instance state lock"); elseif ( strncmp (cad_decodificar,"IV",2) == 0) strcpy (dato_1,"Library cache invalidation instance lock"); elseif ( strncmp (cad_decodificar,"JQ",2) == 0) strcpy (dato_1,"Job queue lock"); elseif ( strncmp (cad_decodificar,"KK",2) == 0) strcpy (dato_1,"Thread kick lock"); elseif ( strncmp (cad_decodificar,"MB",2) == 0) strcpy (dato_1,"Master buffer hash table instance lock"); elseif ( strncmp (cad_decodificar,"MM",2) == 0) strcpy (dato_1,"Mount definition gloabal enqueue lock"); elseif ( strncmp (cad_decodificar,"MR",2) == 0) strcpy (dato_1,"Media recovery lock"); elseif ( strncmp (cad_decodificar,"PF",2) == 0) strcpy (dato_1,"Password file lock"); elseif ( strncmp (cad_decodificar,"PI",2) == 0) strcpy (dato_1,"Parallel operation lock"); elseif ( strncmp (cad_decodificar,"PR",2) == 0) strcpy (dato_1,"Process startup lock"); elseif ( strncmp (cad_decodificar,"PS",2) == 0) strcpy (dato_1,"Parallel operation lock"); elseif ( strncmp (cad_decodificar,"RE",2) == 0) strcpy (dato_1,"USE_ROW_ENQUEUE enforcement lock"); elseif ( strncmp (cad_decodificar,"RT",2) == 0) strcpy (dato_1,"Redo thread global enqueue lock"); elseif ( strncmp (cad_decodificar,"RW",2) == 0) strcpy (dato_1,"Row wait enqueue lock"); elseif ( strncmp (cad_decodificar,"SC",2) == 0) strcpy (dato_1,"System commit number instance lock"); elseif ( strncmp (cad_decodificar,"SH",2) == 0) strcpy (dato_1,"System commit number high water mark enqueue lock"); elseif ( strncmp (cad_decodificar,"SM",2) == 0) strcpy (dato_1,"SMON lock"); elseif ( strncmp (cad_decodificar,"SN",2) == 0) strcpy (dato_1,"Sequence number instance lock"); elseif ( strncmp (cad_decodificar,"SQ",2) == 0) strcpy (dato_1,"Sequence number enqueue lock"); elseif ( strncmp (cad_decodificar,"SS",2) == 0) strcpy (dato_1,"Sort segment lock"); elseif ( strncmp (cad_decodificar,"ST",2) == 0) strcpy (dato_1,"Space transaction enqueue lock"); elseif ( strncmp (cad_decodificar,"SV",2) == 0) strcpy (dato_1,"Sequence number value lock"); elseif ( strncmp (cad_decodificar,"TA",2) == 0) strcpy (dato_1,"Generic enqueue lock"); else
  22. 22. if ( strncmp (cad_decodificar,"TD",2) == 0) strcpy (dato_1,"DDL enqueue lock"); else if ( strncmp (cad_decodificar,"TE",2) == 0) strcpy (dato_1,"Extend-segment enqueue lock"); else if ( strncmp (cad_decodificar,"TM",2) == 0) strcpy (dato_1,"DML enqueue lock"); else if ( strncmp (cad_decodificar,"TT",2) == 0) strcpy (dato_1,"Temporary table enqueue lock"); else if ( strncmp (cad_decodificar,"TX",2) == 0) strcpy (dato_1,"Transaction enqueue lock"); else if ( strncmp (cad_decodificar,"UL",2) == 0) strcpy (dato_1,"User supplied lock"); else if ( strncmp (cad_decodificar,"UN",2) == 0) strcpy (dato_1,"User name lock"); else if ( strncmp (cad_decodificar,"US",2) == 0) strcpy (dato_1,"Undo segment DDL lock"); else if ( strncmp (cad_decodificar,"WL",2) == 0) strcpy (dato_1,"Being-written redo log instance lock"); else if ( strncmp (cad_decodificar,"WS",2) == 0) strcpy (dato_1,"Write-atomic-log-switch global enqueue lock"); else if ( strncmp (cad_decodificar,"TS",2) == 0) strcpy (dato_1,"Temporary segment enqueue lock (ID2=0) New block allocation enqueue lock(ID2=1)"); else if ( strncmp (cad_decodificar,"LA",2) == 0) strcpy (dato_1,"Library cache lock instance lock (A=namespace)"); else if ( strncmp (cad_decodificar,"LB",2) == 0) strcpy (dato_1,"Library cache lock instance lock (B=namespace)"); else if ( strncmp (cad_decodificar,"LC",2) == 0) strcpy (dato_1,"Library cache lock instance lock (C=namespace)"); else if ( strncmp (cad_decodificar,"LD",2) == 0) strcpy (dato_1,"Library cache lock instance lock (D=namespace)"); else if ( strncmp (cad_decodificar,"LE",2) == 0) strcpy (dato_1,"Library cache lock instance lock (E=namespace)"); else if ( strncmp (cad_decodificar,"LF",2) == 0) strcpy (dato_1,"Library cache lock instance lock (F=namespace)"); else if ( strncmp (cad_decodificar,"LG",2) == 0) strcpy (dato_1,"Library cache lock instance lock (G=namespace)"); else if ( strncmp (cad_decodificar,"LH",2) == 0) strcpy (dato_1,"Library cache lock instance lock (H=namespace)"); else if ( strncmp (cad_decodificar,"LI",2) == 0) strcpy (dato_1,"Library cache lock instance lock (I=namespace)"); else if ( strncmp (cad_decodificar,"LJ",2) == 0) strcpy (dato_1,"Library cache lock instance lock (J=namespace)"); else if ( strncmp (cad_decodificar,"LK",2) == 0) strcpy (dato_1,"Library cache lock instance lock (K=namespace)"); else if ( strncmp (cad_decodificar,"LL",2) == 0) strcpy (dato_1,"Library cache lock instance lock (L=namespace)"); else if ( strncmp (cad_decodificar,"LM",2) == 0) strcpy (dato_1,"Library cache lock instance lock (M=namespace)"); else if ( strncmp (cad_decodificar,"LN",2) == 0) strcpy (dato_1,"Library cache lock instance lock (N=namespace)"); else if ( strncmp (cad_decodificar,"LO",2) == 0) strcpy (dato_1,"Library cache lock instance lock (O=namespace)"); else if ( strncmp (cad_decodificar,"LP",2) == 0) strcpy (dato_1,"Library cache lock instance lock (P=namespace)"); else if ( strncmp (cad_decodificar,"LS",2) == 0) strcpy (dato_1,"Log start/log switch enqueue lock"); else if ( strncmp (cad_decodificar,"PA",2) == 0) strcpy (dato_1,"Library cache pin instance lock (A=namespace)"); else if ( strncmp (cad_decodificar,"PB",2) == 0) strcpy (dato_1,"Library cache pin instance lock (B=namespace)"); else if ( strncmp (cad_decodificar,"PC",2) == 0) strcpy (dato_1,"Library cache pin instance lock (C=namespace)"); else if ( strncmp (cad_decodificar,"PD",2) == 0) strcpy (dato_1,"Library cache pin instance lock (D=namespace)"); else if ( strncmp (cad_decodificar,"PE",2) == 0) strcpy (dato_1,"Library cache pin instance lock (E=namespace)"); else if ( strncmp (cad_decodificar,"PF",2) == 0) strcpy (dato_1,"Library cache pin instance lock (F=namespace)"); else if ( strncmp (cad_decodificar,"PG",2) == 0) strcpy (dato_1,"Library cache pin instance lock (G=namespace)"); else if ( strncmp (cad_decodificar,"PH",2) == 0) strcpy (dato_1,"Library cache pin instance lock (H=namespace)"); else if ( strncmp (cad_decodificar,"PI",2) == 0) strcpy (dato_1,"Library cache pin instance lock (I=namespace)"); else if ( strncmp (cad_decodificar,"PJ",2) == 0) strcpy (dato_1,"Library cache pin instance lock (J=namespace)"); else if ( strncmp (cad_decodificar,"PL",2) == 0) strcpy (dato_1,"Library cache pin instance lock (K=namespace)"); else
  23. 23. if ( strncmp (cad_decodificar,"PK",2) == 0) strcpy (dato_1,"Library cache pin instance lock (L=namespace)"); elseif ( strncmp (cad_decodificar,"PM",2) == 0) strcpy (dato_1,"Library cache pin instance lock (M=namespace)"); elseif ( strncmp (cad_decodificar,"PN",2) == 0) strcpy (dato_1,"Library cache pin instance lock (N=namespace)"); elseif ( strncmp (cad_decodificar,"PO",2) == 0) strcpy (dato_1,"Library cache pin instance lock (O=namespace)"); elseif ( strncmp (cad_decodificar,"PP",2) == 0) strcpy (dato_1,"Library cache pin instance lock (P=namespace)"); elseif ( strncmp (cad_decodificar,"PQ",2) == 0) strcpy (dato_1,"Library cache pin instance lock (Q=namespace)"); elseif ( strncmp (cad_decodificar,"PR",2) == 0) strcpy (dato_1,"Library cache pin instance lock (R=namespace)"); elseif ( strncmp (cad_decodificar,"PS",2) == 0) strcpy (dato_1,"Library cache pin instance lock (S=namespace)"); elseif ( strncmp (cad_decodificar,"PT",2) == 0) strcpy (dato_1,"Library cache pin instance lock (T=namespace)"); elseif ( strncmp (cad_decodificar,"PU",2) == 0) strcpy (dato_1,"Library cache pin instance lock (U=namespace)"); elseif ( strncmp (cad_decodificar,"PV",2) == 0) strcpy (dato_1,"Library cache pin instance lock (V=namespace)"); elseif ( strncmp (cad_decodificar,"PW",2) == 0) strcpy (dato_1,"Library cache pin instance lock (W=namespace)"); elseif ( strncmp (cad_decodificar,"PX",2) == 0) strcpy (dato_1,"Library cache pin instance lock (X=namespace)"); elseif ( strncmp (cad_decodificar,"PY",2) == 0) strcpy (dato_1,"Library cache pin instance lock (Y=namespace)"); elseif ( strncmp (cad_decodificar,"PZ",2) == 0) strcpy (dato_1,"Library cache pin instance lock (Z=namespace)"); elseif ( strncmp (cad_decodificar,"QA",2) == 0) strcpy (dato_1,"Row cache instance lock (A=cache)"); elseif ( strncmp (cad_decodificar,"QB",2) == 0) strcpy (dato_1,"Row cache instance lock (B=cache)"); elseif ( strncmp (cad_decodificar,"QC",2) == 0) strcpy (dato_1,"Row cache instance lock (C=cache)"); elseif ( strncmp (cad_decodificar,"QD",2) == 0) strcpy (dato_1,"Row cache instance lock (D=cache)"); elseif ( strncmp (cad_decodificar,"QE",2) == 0) strcpy (dato_1,"Row cache instance lock (E=cache)"); elseif ( strncmp (cad_decodificar,"QF",2) == 0) strcpy (dato_1,"Row cache instance lock (F=cache)"); elseif ( strncmp (cad_decodificar,"QG",2) == 0) strcpy (dato_1,"Row cache instance lock (G=cache)"); elseif ( strncmp (cad_decodificar,"QH",2) == 0) strcpy (dato_1,"Row cache instance lock (H=cache)"); elseif ( strncmp (cad_decodificar,"QI",2) == 0) strcpy (dato_1,"Row cache instance lock (I=cache)"); elseif ( strncmp (cad_decodificar,"QJ",2) == 0) strcpy (dato_1,"Row cache instance lock (J=cache)"); elseif ( strncmp (cad_decodificar,"QL",2) == 0) strcpy (dato_1,"Row cache instance lock (K=cache)"); elseif ( strncmp (cad_decodificar,"QK",2) == 0) strcpy (dato_1,"Row cache instance lock (L=cache)"); elseif ( strncmp (cad_decodificar,"QM",2) == 0) strcpy (dato_1,"Row cache instance lock (M=cache)"); elseif ( strncmp (cad_decodificar,"QN",2) == 0) strcpy (dato_1,"Row cache instance lock (N=cache)"); elseif ( strncmp (cad_decodificar,"QO",2) == 0) strcpy (dato_1,"Row cache instance lock (O=cache)"); elseif ( strncmp (cad_decodificar,"QP",2) == 0) strcpy (dato_1,"Row cache instance lock (P=cache)"); elseif ( strncmp (cad_decodificar,"QQ",2) == 0) strcpy (dato_1,"Row cache instance lock (Q=cache)"); elseif ( strncmp (cad_decodificar,"QR",2) == 0) strcpy (dato_1,"Row cache instance lock (R=cache)"); elseif ( strncmp (cad_decodificar,"QS",2) == 0) strcpy (dato_1,"Row cache instance lock (S=cache)"); elseif ( strncmp (cad_decodificar,"QT",2) == 0) strcpy (dato_1,"Row cache instance lock (T=cache)"); elseif ( strncmp (cad_decodificar,"QU",2) == 0) strcpy (dato_1,"Row cache instance lock (U=cache)"); elseif ( strncmp (cad_decodificar,"QV",2) == 0) strcpy (dato_1,"Row cache instance lock (V=cache)"); elseif ( strncmp (cad_decodificar,"QW",2) == 0) strcpy (dato_1,"Row cache instance lock (W=cache)"); elseif ( strncmp (cad_decodificar,"QX",2) == 0) strcpy (dato_1,"Row cache instance lock (X=cache)"); elseif ( strncmp (cad_decodificar,"QY",2) == 0) strcpy (dato_1,"Row cache instance lock (Y=cache)"); else
  24. 24. if ( strncmp (cad_decodificar,"QZ",2) == 0) strcpy (dato_1,"Row cache instance lock (Z=cache)"); return (dato_1); }--- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: EXTERN_FUNCTIONS_FUNCIONES_AUXILIARES.h ****** ****** *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***/* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** */extern char *db_object_type ();extern char *db_object_owner_name ();extern char *db_session_sid_locked ();extern int db_tablspace_ini_ext_size ();
  25. 25. extern int db_block_size ();extern int version_oracle ();extern char *decode_command_oracle ();extern char *decode_lock_mode ();extern char *decode_name_lock ();extern void esperar_seg();extern void sleep();--- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: EXTERN_FUNCTIONS_ORASTAT_PRINCIPAL.h ****** ****** *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***/* ----****----****----****----****----****----****----****----****----****----**** *//* ----****----****---- FUNCIONES DECLARADAS EXTERNAS ****----****----****----**** *//* ----****----****----****----****----****----****----****----****----****----**** */ extern int col_size (); extern int filtrar_char ();
  26. 26. extern char *separar_dato (); extern int procesar_columna_funcion (); extern char *convert_ss_to_hh_mm_ss (); extern void vaciar_cadena (); extern void vaciar_estructura (); extern int procesar_encabe (); extern int procesar_cadena (); extern char *pasar_amayus (); extern char *funcion_columna (); extern char *decode_name_lock (); extern char *decode_command_oracle (); extern char *decode_lock_mode (); extern char *ver_menu_opcion(); extern char *func_dyn_column_set (); extern char *func_dyn_title_set(); extern char *func_dyn_size_set(); extern char *func_dyn_statement_set(); extern char *func_dyn_proc_func_set(); extern char *formatear_sql_statement(); extern int func_menu_mostrar();--- ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------ ------ ------ ---********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ****** ****** ARCHIVO: func_dyn_column_set.c ****** ****** ***
  27. 27. ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** ****** ***#include <stdio.h>#include <stdlib.h>#include <string.h>#include "constant_definition.h"#include "case_constant_definition.h"#include "case_constant_sql_stmt_def.h"#include "constant_oracle_versions.h"extern vaciar_cadena();char *func_dyn_column_set (int version, int sentencia) { static char dyn_column [MAX_VAR_SIZE]; vaciar_cadena (dyn_column,MAX_VAR_SIZE ); switch (sentencia) { case CASE_ORACLE_VERSION: strcpy (dyn_column,"|ORACLE_VERSION|"); break; case CASE_ACTIVE_PARAMETERS: strcpy (dyn_column,"|NOMBRE|VALOR|DESCRIPCION|"); break; case CASE_USERS_CONNECTED: strcpy (dyn_column,"|DIRECCION|SES|NOMBRE|CMD|ESTADO|PID|TERMINAL|LOCKWAIT|INICIADO|"); break; case CASE_WAIT_STATISTICS: strcpy (dyn_column,"|CANTIDAD|TIEMPO|CLASE|"); break; case CASE_DATAFILE_I_0: switch (version) { case VERSION_ORACLE_920:
  28. 28. strcpy (dyn_column,"|READPHY|READBLK|WRITPHY||WRITBLK|DATAFILE|IO_STAT|"); break; case VERSION_ORACLE_817: case VERSION_ORACLE_816: case VERSION_ORACLE_734: strcpy (dyn_column,"|READPHY|READBLK|WRITPHY|WRITBLK|DATAFILE|"); break; default: break; } break; case CASE_DATAFILE_BLOCKS_R_W: strcpy (dyn_column,"|DATAFILE|BLKREAD|BLKWRITE|BLKTOT|"); break; case CASE_WAIT_EVENTS: strcpy (dyn_column,"|SID|USUARIO|CANTIDAD|EVENTO|"); break; case CASE_INSTANCE_STATUS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy(dyn_column,"|INSTNRO|INSTNAME|HOSTNAME|VERSION|INICIADO|ESTADO|PARALELO|DATAESTA|INSTROLE|ACTSTATUS|LOG_MODE|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|INSTNAME|CREADA|ARCHIVESTATUS|CHECK_CHANGE|ARCHI_CHANGE|DATASTATE|SHUTDOWN?|INICIADA|HORA|LOG_MODE|"); break; default: break; } break; case CASE_TEMPORAL_SPACE_BY_USER: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920:
  29. 29. strcpy (dyn_column,"|SES|SERIAL|USER|EXTENTS|CONTENTS|SIZEKB"); break; case VERSION_ORACLE_734: strcpy(dyn_column,"|TBLSPACE|EXTSIZE|CURUSER|TOTEXT|TOTBLK|USEXT|USEBLK|FREEXT|FREEBLK|MUSESIZE|MUSEBLK|MSORTSIZE|MSORTBLK|"); default: break; } break; case CASE_TOT_FREELIST_WAIT_PERCENT: strcpy (dyn_column,"|PCTFREE|"); break; case CASE_LAST_CHECKPOINT_TIME: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|CHEKPOINT_VALUE|FECHA|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|CHEKPOINT_VALUE|FECHA|"); break; default: break; } break; case CASE_LIST_TABLESPACES: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|TBLSPACE|CONTENT|AVAILA_KB|MAX_ID|USED_KB|FREE_KB|PCT_USED|STATUS|MANAGMENT|ALLOCTYPE|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|TBLSPACE|CONTENT|AVAILA_KB|MAX_ID|USED_KB|FREE_KB|PCT_USED|STATUS|"); break; } break;
  30. 30. case CASE_ACTIVE_TRANSACTIONS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|ADDRESS|TIMESTART|ESTADO|BLK_USED|KB_USED|USED_UREC|SESSION|SERIAL|NOMBRE|USUARIO|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|ADDRESS|TIMESTART|ESTADO|BLK_USED|KB_USED|USED_UREC|SESSION|SERIAL|NOMBRE|USUARIO|"); break; } break;case CASE_LATCH_DETAILS: strcpy (dyn_column,"|GETS|MISS|HITRATIO|IMM_GETS|IMM_MISS|SLEEP|GETSPIN|ADDRESS|LATCH|NOMBRE|"); break;case CASE_RESOURCE_LIMITS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|NOMBRE|INIT_ALLOC|CURR_UTILIZA|MAX_UTILIZA|LIMITE|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|NOMBRE|LIMITE|"); break; } break;case CASE_LIST_DATAFILES: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|DATAFILE|MBYTES|ESTADO|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|DATAFILE|MBYTES|ESTADO|"); break;
  31. 31. } break;case CASE_LIST_DATAFILES_NEW_9I: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|ESTADO|DATAFILE|TBLSPACE|SIZE_KB|USED_KB|USED_PCT|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|ESTADO|DATAFILE|TBLSPACE|SIZE_KB|USED_KB|USED_PCT|"); break; } break;case CASE_LIST_TABLESPACES_NEW_9I: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|ESTADO|TBLSPACE|TIPO|EXTENT_MGM|SIZE_KB|USED_KB|USED_PCT|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|ESTADO|TBLSPACE|TIPO|EXTENT_MGM|SIZE_KB|USED_KB|USED_PCT|"); break; } break;case CASE_ACTIVE_SESSIONS: strcpy (dyn_column,"|SES|SERIAL|TIPO|OS_USER|LOGON|ESTADO|PROCESO|MAQUINA|NOMBRE|PID|PROGRAMA|"); break;case CASE_SESSIONS_WAITS: strcpy (dyn_column,"|SES|SEQ|W_T|S_W_T|USUARIO|ESTADO|EVENT|STATE|P1TEXT|P1|P1RAW|P2TEXT|P2|P2RAW|P3TEXT|P3|P3RAW|"); break;case CASE_DEFAULT_STORAGE_SETS_TABLESPACE: strcpy (dyn_column,"|TBLSPACE|INI_EXT|NEX_EXT|MIN_EXT|MAX_EXT|PCT_INC|"); break;case CASE_ALL_TABLES_STORAGE_SETTINGS: switch (version) {
  32. 32. case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|OWNER_TABLE|SEG_NAME|TBLSPACE|BLOCKS|SIZE_KB|EXTENTS|MAX_EXT|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|OWNER_TABLE|SEG_NAME|TBLSPACE|BLOCKS|SIZE_KB|EXTENTS|MAX_EXT|"); break; } break;case CASE_ALL_NON_SYS_TABLES_SETTINGS: strcpy (dyn_column,"|OWNER|TABLNAME|TBLSPACE|BLOCK|NROWS|BUFF_POOL|LAST_ANALIZE|SIZE_KB"); break;case CASE_ALL_NON_SYS_INDEXES_SETTINGS: strcpy (dyn_column,"|OWNER|INDEXNAME|TBLSPACE|LEAFBLK|NROROWS|BUFFPOOL|LASTANALIZ|SIZE_KB|"); break;case CASE_USER_DEFINED: printf ("Pasando Seteo Columna 24 n"); switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|USUARIO|ESTADO|EXPIRY DATE|DEFAULT TBLNAME|TEMP TBLNAME|PROFILE|CREATED|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|USUARIO|ESTADO|EXPIRY DATE|DEFAULT TBLNAME|TEMP TBLNAME|PROFILE|CREATED|"); break; } break;case CASE_LIST_DATAFILE_REDO_CONTROL_FILES: strcpy (dyn_column,"|FILENAME|TBLSPACE|ESTADO|"); break;case CASE_LIST_DATAFILES_USED_BLOCKS: strcpy (dyn_column,"|TBLSPACE|FILENAME|BYTES|HIGHWATER|"); break;case CASE_LIST_SORT_BY_USER: strcpy (dyn_column,"|VALOR|TYPESORT|SID|OS_USER|DB_USER|"); break;case CASE_LIST_LOCK_STATUS:
  33. 33. switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|ADDRESS|KADDRESS|SES|TIPO|OBJ_ID|ID2|LOCK TYP|REQU TYP|OBJECTTYPE|OWNER.NAME|LOCK_SID|TIME|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|ADDRESS|KADDRESS|SES|TIPO|OBJ_ID|ID2|LOCK TYP|REQU TYP|OBJECTTYPE|OWNER.NAME|LOCK_SID|TIME|"); break; } break; case CASE_LIST_USER_BY_CPU_USAGE: strcpy (dyn_column,"|SES|SERIAL|TYPE|OSUSER|LOGON|PROCESS|MACHINE|USER|VALUE|PROGRAM|"); break; case CASE_SQL_STATEMENT_BY_THIS_USER: strcpy (dyn_column,"|TEXT_SQL|"); break; case CASE_REDO_LOGS_STATUS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|GRUPO|THREAD|SEQUENCE|BYTES|MEMBER|ARCHIVED|ESTADO|FSTCHANGE|FSTTIME|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|GRUPO|THREAD|SEQUENCE|BYTES|MEMBER|ARCHIVED|ESTADO|FSTCHANGE|FSTTIME|"); break; } break; case CASE_ARCHIVED_LOGS_HISTORY: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|THREAD|SEQUEN|NAME|FSTCHANGE|FSTTIME|BLOCKS|BLKSIZE|COMPTIME|");
  34. 34. break; case VERSION_ORACLE_734: strcpy (dyn_column,"|THREAD|SEQUEN|TIME|LOW_CHANGE|HIGH_CHANGE|NAME"); break; } break;case CASE_REDO_LOG_RECOVERY_REPORT: strcpy (dyn_column,"|GROUP|FSTCHANGE|MEMBER|SEQUENCE|"); break;case CASE_ARCHIVE_LOG_HISTROY: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|THREAD|SEQUENCE|FSTCHANGE|SWICHANGE|FSTTIME|"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|THREAD|SEQUENCE|FSTCHANGE|SWICHANGE|FSTTIME|"); break; } break;case CASE_SESSION_LATCH_WAITS_SQL: strcpy (dyn_column,"|SES|USER|STATUS|SQLTEXT|"); break;case CASE_SESSION_PROGRAM_RUNNING_SQL: strcpy (dyn_column,"|SES|USER|PROGRAM|SQLTEXT|"); break;case CASE_PRIVILEGES_BY_USER: strcpy (dyn_column,"|GRANTEE|USER|PRIVILEGE|"); break;case CASE_DETAILED_LOCKING_CAUSES: strcpy (dyn_column,"|USERNAME|SID|TERMINAL|TAB|COMMAND|LMODE|REQUEST|LADDR|LOCKT|LOCKTYPE|"); break;case CASE_CURRENT_STATISTICS_VALUES: strcpy (dyn_column,"|STATISTIC|NOMBRE|VALOR|"); break;case CASE_TABLE_DESCRIPTION_USER_TABLENAME: switch (version) {
  35. 35. case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy (dyn_column,"|TBLSPACE|OWNER|TABLENAME|NROWS|LASTANALIZED|INIEXT|NEXEXT|MINEXT|MAXEXT|PCTINC|BUFPOL|BLOCKS|FREELST|PCTFREE|INITRANS|MAXTRANS|FREEGRP"); break; case VERSION_ORACLE_734: strcpy (dyn_column,"|TBLSPACE|OWNER|TABLENAME|NROWS|LASTANALIZED|INIEXT|NEXEXT|MINEXT|MAXEXT|PCTINC|BUFPOL|BLOCKS|FREELST|PCTFREE|INITRANS|MAXTRANS|FREEGRP"); break; } break; case CASE_INDEX_DESCRIPTION_USER_INDEXNAME: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: strcpy(dyn_column,"|OWNER|IDXNAME|TABLEOWNER|TABLENAME|TBLTYPE|UNIQUE|TBLSPACE|INITRA|MAXTRA|INIEXT|NEXEXT|MINEXT|MAXEXT|PCTINC|FREELIST|FRELISTGRP|PCTFREE|BLEVEL|LEAFBLK|"); break; case VERSION_ORACLE_734: strcpy(dyn_column,"|OWNER|IDXNAME|TABLEOWNER|TABLENAME|TBLTYPE|UNIQUE|TBLSPACE|INITRA|MAXTRA|INIEXT|NEXEXT|MINEXT|MAXEXT|PCTINC|FREELIST|FRELISTGRP|PCTFREE|BLEVEL|LEAFBLK|"); break; } break; case CASE_CURRENT_ACTIVITY_REPORT: strcpy (dyn_column,"|DIRECCION|BUF_GETS|NRO_EXEC|AVG_EXEC|SQL_TEXT|"); break; case CASE_DICTIONARY_TABLE_COMMENTS: strcpy (dyn_column,"|TABLE NAME|COMMENTS|"); break; case CASE_DICTIONARY_TABLE_COLUMNS_DESCRIP: strcpy (dyn_column,"|TABNAME|COL_NAME|COMMENTS|SQL_TYPE|IMAGEIDX|COL_ID|STATUS|"); break; case CASE_SGA_STATISTIC_GENERAL: strcpy

×