Your SlideShare is downloading. ×
Func dyn proc_func_set.c
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Func dyn proc_func_set.c

148
views

Published on

Published in: Technology, Business

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
148
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. func_dyn_proc_func_set.c#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_proc_func_set (int version, int sentencia) { static char dyn_proc_func [MAX_VAR_SIZE]; vaciar_cadena (dyn_proc_func,MAX_VAR_SIZE); strcpy (dyn_proc_func,"|NO|"); switch (sentencia) { case CASE_ORACLE_VERSION: break; case CASE_ACTIVE_PARAMETERS: break; case CASE_USERS_CONNECTED: break; case CASE_WAIT_STATISTICS: break; case CASE_DATAFILE_I_0: switch (version) { case VERSION_ORACLE_920: break; case VERSION_ORACLE_817: case VERSION_ORACLE_816: case VERSION_ORACLE_734: break; default: break; } break; case CASE_DATAFILE_BLOCKS_R_W: break; case CASE_WAIT_EVENTS: break; case CASE_INSTANCE_STATUS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: break; case VERSION_ORACLE_734: strcpy (dyn_proc_func,"|SI|0809|"); break; default: break; } break; case CASE_TEMPORAL_SPACE_BY_USER: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: break; case VERSION_ORACLE_734: default: break; } Página 1
  • 2. func_dyn_proc_func_set.c break; case CASE_TOT_FREELIST_WAIT_PERCENT: break; case CASE_LAST_CHECKPOINT_TIME: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: break; case VERSION_ORACLE_734: break; default: break; } break; case CASE_LIST_TABLESPACES: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: break; case VERSION_ORACLE_734: break; } break; case CASE_ACTIVE_TRANSACTIONS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: break; case VERSION_ORACLE_734: /* FORMATO |<SI PROCESO>|<NRO COLUMNA-1><NRO FUNCION>| */ /* LAS COLUMNAS EMPIEZAN A ENUMERARSE APARTIR DE LA CERO (0) */ strcpy (dyn_proc_func,"|SI|0401|"); /* PROCESANDO ESTA PARTE DEL NUEVOSELECT */ break; } break; case CASE_LATCH_DETAILS: break; case CASE_RESOURCE_LIMITS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: break; case VERSION_ORACLE_734: break; } break; case CASE_LIST_DATAFILES: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: break; case VERSION_ORACLE_734: break; } Página 2
  • 3. func_dyn_proc_func_set.c break; case CASE_LIST_DATAFILES_NEW_9I: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: break; case VERSION_ORACLE_734: break; } break; case CASE_LIST_TABLESPACES_NEW_9I: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: break; case VERSION_ORACLE_734: break; } break; case CASE_ACTIVE_SESSIONS: break; case CASE_SESSIONS_WAITS: break; case CASE_DEFAULT_STORAGE_SETS_TABLESPACE: break; case CASE_ALL_TABLES_STORAGE_SETTINGS: /* FORMATO |<SI PROCESO>|<NRO COLUMNA -1><NROFUNCION>| */ /* LAS COLUMNAS EMPIEZAN A ENUMERARSE A PARTIRDE LA CERO (0) */ strcpy (dyn_proc_func,"|SI|0405|"); /* PROCESANDO ESTA PARTE DEL NUEVO SELECT */ break; case CASE_ALL_NON_SYS_TABLES_SETTINGS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: /* FORMATO |<SI PROCESO>|<NROCOLUMNA -1><NRO FUNCION>| */ /* LAS COLUMNAS EMPIEZAN AENUMERARSE A PARTIR DE LA CERO (0) */ strcpy (dyn_proc_func,"|SI|0701|"); /* PROCESANDO ESTA PARTE DELNUEVO SELECT */ break; case VERSION_ORACLE_734: /* FORMATO |<SI PROCESO>|<NROCOLUMNA -1><NRO FUNCION>| */ /* LAS COLUMNAS EMPIEZAN AENUMERARSE A PARTIR DE LA CERO (0) */ strcpy (dyn_proc_func,"|SI|0501|"); /* PROCESANDO ESTA PARTE DELNUEVO SELECT */ break; } break; case CASE_ALL_NON_SYS_INDEXES_SETTINGS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: Página 3
  • 4. func_dyn_proc_func_set.c /* FORMATO |<SI PROCESO>|<NROCOLUMNA -1><NRO FUNCION>| */ /* LAS COLUMNAS EMPIEZAN AENUMERARSE A PARTIR DE LA CERO (0) */ strcpy (dyn_proc_func,"|SI|0701|"); /* PROCESANDO ESTA PARTE DELNUEVO SELECT */ break; case VERSION_ORACLE_734: /* FORMATO |<SI PROCESO>|<NROCOLUMNA -1><NRO FUNCION>| */ /* LAS COLUMNAS EMPIEZAN AENUMERARSE A PARTIR DE LA CERO (0) */ strcpy (dyn_proc_func,"|SI|0401|"); /* PROCESANDO ESTA PARTE DELNUEVO SELECT */ break; } break; case CASE_USER_DEFINED: printf ("Pasando Seteo Funcion 24 n"); break; case CASE_LIST_DATAFILE_REDO_CONTROL_FILES: break; case CASE_LIST_DATAFILES_USED_BLOCKS: break; case CASE_LIST_SORT_BY_USER: break; case CASE_LIST_LOCK_STATUS: switch (version) { case VERSION_ORACLE_816: case VERSION_ORACLE_817: case VERSION_ORACLE_920: /* FORMATO |<SI PROCESO>|<NROCOLUMNA -1><NRO FUNCION>| */ /* LAS COLUMNAS EMPIEZAN AENUMERARSE A PARTIR DE LA CERO (0) */ strcpy(dyn_proc_func,"|SI|0603||1109|"); /* PROCESANDO ESTA PARTE DELNUEVO SELECT */ break; case VERSION_ORACLE_734: /* FORMATO |<SI PROCESO>|<NROCOLUMNA -1><NRO FUNCION>| */ /* LAS COLUMNAS EMPIEZAN AENUMERARSE A PARTIR DE LA CERO (0) */ strcpy(dyn_proc_func,"|SI|0703||0603||0806||0907||1008||1109|"); /* |1008|"); */ /* PROCESANDO ESTA PARTE DELNUEVO SELECT */ break; } break; case CASE_LIST_USER_BY_CPU_USAGE: break; case CASE_SQL_STATEMENT_BY_THIS_USER: break; case CASE_REDO_LOGS_STATUS: break; case CASE_ARCHIVED_LOGS_HISTORY: break; case CASE_REDO_LOG_RECOVERY_REPORT: break; case CASE_ARCHIVE_LOG_HISTROY: break; case CASE_SESSION_LATCH_WAITS_SQL: Página 4
  • 5. func_dyn_proc_func_set.c break; case CASE_SESSION_PROGRAM_RUNNING_SQL: break; case CASE_PRIVILEGES_BY_USER: break; case CASE_DETAILED_LOCKING_CAUSES: /* FORMATO |<SI PROCESO>|<NRO COLUMNA -1><NROFUNCION>| */ /* LAS COLUMNAS EMPIEZAN A ENUMERARSE A PARTIRDE LA CERO (0) */ strcpy (dyn_proc_func,"|SI|0402||0503||0603||0804|"); /* PROCESANDO ESTA PARTE DEL NUEVO SELECT */ break; case CASE_CURRENT_STATISTICS_VALUES: break; case CASE_TABLE_DESCRIPTION_USER_TABLENAME: break; case CASE_INDEX_DESCRIPTION_USER_INDEXNAME: break; case CASE_CURRENT_ACTIVITY_REPORT: break; case CASE_DICTIONARY_TABLE_COMMENTS: break; case CASE_DICTIONARY_TABLE_COLUMNS_DESCRIP: break; case CASE_SGA_STATISTIC_GENERAL: break; case CASE_SGA_STATISTIC_MEMORY_USAGE: break; case CASE_SGA_STATISTIC_INFORMATION: break; case CASE_ROW_CACHE_INFORMATION: break; case CASE_PERFORMANCE_DISK_I_O: break; case CASE_RECURSIVE_CALLS: break; case CASE_SYSTEM_EVENTS: break;/* -------------------------------------------------------------- */ case CASE_SQL_AREA_ALL_ENTRIES: break; case CASE_SQL_AREA_CPU_USAGE: break; case CASE_SQL_AREA_MEMORY_USAGE: break; case CASE_SQL_AREA_BUFFER_GET_SUM: break; case CASE_INIT_PARAMETERS_VALUES_STATUS: break;/* -------------------------------------------------------------- */ case CASE_TABLESPACE_FRAGMENTATION: strcpy (dyn_proc_func,"|SI|0610|"); break; case CASE_SHOW_NLS_PARAMETERS: break; case CASE_CONTROL_FILES_STATUS: break; case CASE_SORT_SEGMENTS_USERS: break; case CASE_ORACLE_QUOTAS: break; case CASE_TABLE_GENERAL_DESCRIPTION: break; case CASE_TABLE_COLUMN_DESCRIPTION: Página 5
  • 6. func_dyn_proc_func_set.c break; case CASE_TABLE_CONSTRAINTS: break; case CASE_INDEX_GENERAL_DESCRIPTION: break; case CASE_AUDIT_DEFINITION: break; case CASE_SHOW_SEGMENTS_EXTENTS: break; case CASE_SHOW_EXTENTS_INSIDE_DATAFILES: break; case CASE_SHOW_USER_LISTS: break; case CASE_SHOW_ROLES_PRIVILEGES: break; case CASE_SHOW_PRIVILEGES_COLUMNS: break; case CASE_SHOW_LOCKS_VIEWS: break; case CASE_GRAPH_LOCK_WAITS: break; case CASE_OBJECT_ACCESS_SESSION: break; case CASE_SHOW_LATCHES: break; case CASE_SHOW_STATISTICS: break; case CASE_SHOW_DATAFILES_STATUS: break; case CASE_SHOW_DB_OBJECT_CACHE: break; case CASE_TABLE_ALERT_EXTENT_USED: break; case CASE_INDEX_ALERT_EXTENT_USED: break; case CASE_USER_TIME_WORKING: break; case CASE_IS_USER_WORKING: break; case CASE_VER_SQL_PROGRAM: break; case CASE_SQL_SESS_IO: break; case CASE_SQL_SESSION_EVENT: break; case CASE_SQL_SESSION_WAIT: break; case CASE_SQL_SESSION_LONG_OPER: break; case CASE_SQL_LOCKED_OBJECTS: break; case CASE_SQL_TRANSACTION_DETAIL: break; case CASE_SQL_LOCK_MEDIUM_INFO: break; case CASE_SQL_LOCK_FULL_INFO: break; case CASE_SQL_LOCK_BY_SESSION_ID: break; case CASE_SQL_WHO_IS_WAITING_FOR: break; case CASE_SQL_WHICH_SQL_RUNNING: break; case CASE_WHICH_OBJECTS_LOCKED_BY_USER: break;/* ------------------------------------------------- *//************* Agregado 25-Agosto-2005 ***************/ case CASE_BUFFER_CACHE_DEFINED: Página 6
  • 7. func_dyn_proc_func_set.c break;/* ------------------------------------------------- */ case CASE_BUFFER_CACHE_TOTAL_SIZE: break;/* ------------------------------------------------- */ case CASE_OPTIMIZER_INDEX_COST_ADJ_ESTIMATE: break;/* ------------------------------------------------- */ case CASE_OPTIMIZER_INDEX_CACHING_ESTIMAGE: break;/* ------------------------------------------------- *//* ------------------------------------------------- */ default: break; } return (dyn_proc_func); } Página 7