Decode name mode.c
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
438
On Slideshare
438
From Embeds
0
Number of Embeds
0

Actions

Shares
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. 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]; vaciar_cadena (dato_1,256); if ( strncmp (cad_decodificar,"BL",2) == 0) strcpy(dato_1,"Buffer hash table instance lock"); else if ( strncmp (cad_decodificar,"CF",2) == 0) strcpy (dato_1,"Control file schema global enqueue lock"); else if ( strncmp (cad_decodificar,"CI",2) == 0) strcpy(dato_1,"Cross-instance function invocation instance lock"); else if ( strncmp (cad_decodificar,"CS",2) == 0) strcpy(dato_1,"Control file schema global enqueue lock"); else if ( strncmp (cad_decodificar,"CU",2) == 0) strcpy(dato_1,"Cursor bind lock"); else if ( strncmp (cad_decodificar,"DF",2) == 0) strcpy (dato_1,"Datafile instance lock"); else if ( strncmp (cad_decodificar,"DL",2) == 0) strcpy(dato_1,"Direct loader parallel index create"); else if ( strncmp (cad_decodificar,"DM",2) == 0) strcpy(dato_1,"Mount/startup db primary/secondary instance lock"); else if ( strncmp (cad_decodificar,"DR",2) == 0) strcpy(dato_1,"Distributed recovery process lock"); else if ( strncmp (cad_decodificar,"DX",2) == 0) strcpy(dato_1,"Distributed transaction entry lock"); else if ( strncmp (cad_decodificar,"FI",2) == 0) strcpy (dato_1,"SGAopen-file information lock"); else if ( strncmp (cad_decodificar,"FS",2) == 0) strcpy (dato_1,"Fileset lock"); else if ( strncmp (cad_decodificar,"HW",2) == 0) strcpy(dato_1,"Space management operations on a specific segment lock"); else if ( strncmp (cad_decodificar,"IN",2) == 0) strcpy(dato_1,"Instance number lock"); else if ( strncmp (cad_decodificar,"IR",2) == 0) strcpy(dato_1,"Instance recovery serialization global enqueue lock"); else if ( strncmp (cad_decodificar,"IS",2) == 0) strcpy(dato_1,"Instance state lock"); else if ( strncmp (cad_decodificar,"IV",2) == 0) strcpy(dato_1,"Library cache invalidation instance lock"); else if ( strncmp (cad_decodificar,"JQ",2) == 0) strcpy (dato_1,"Jobqueue lock"); else if ( strncmp (cad_decodificar,"KK",2) == 0) strcpy(dato_1,"Thread kick lock"); else if ( strncmp (cad_decodificar,"MB",2) == 0) strcpy(dato_1,"Master buffer hash table instance lock"); else if ( strncmp (cad_decodificar,"MM",2) == 0) strcpy(dato_1,"Mount definition gloabal enqueue lock"); else if ( strncmp (cad_decodificar,"MR",2) == 0) strcpy(dato_1,"Media recovery lock"); else if ( strncmp (cad_decodificar,"PF",2) == 0) strcpy(dato_1,"Password file lock"); else if ( strncmp (cad_decodificar,"PI",2) == 0) strcpy(dato_1,"Parallel operation lock"); else if ( strncmp (cad_decodificar,"PR",2) == 0) strcpy(dato_1,"Process startup lock"); else if ( strncmp (cad_decodificar,"PS",2) == 0) strcpy(dato_1,"Parallel operation lock"); else if ( strncmp (cad_decodificar,"RE",2) == 0) strcpy(dato_1,"USE_ROW_ENQUEUE enforcement lock"); else if ( strncmp (cad_decodificar,"RT",2) == 0) strcpy (dato_1,"Redothread global enqueue lock"); else if ( strncmp (cad_decodificar,"RW",2) == 0) strcpy (dato_1,"Rowwait enqueue lock"); else Página 1
  • 2. decode_name_mode.c if ( strncmp (cad_decodificar,"SC",2) == 0) strcpy(dato_1,"System commit number instance lock"); else if ( strncmp (cad_decodificar,"SH",2) == 0) strcpy(dato_1,"System commit number high water mark enqueue lock"); else if ( strncmp (cad_decodificar,"SM",2) == 0) strcpy (dato_1,"SMONlock"); else if ( strncmp (cad_decodificar,"SN",2) == 0) strcpy(dato_1,"Sequence number instance lock"); else if ( strncmp (cad_decodificar,"SQ",2) == 0) strcpy(dato_1,"Sequence number enqueue lock"); else if ( strncmp (cad_decodificar,"SS",2) == 0) strcpy (dato_1,"Sortsegment lock"); else if ( strncmp (cad_decodificar,"ST",2) == 0) strcpy(dato_1,"Space transaction enqueue lock"); else if ( strncmp (cad_decodificar,"SV",2) == 0) strcpy(dato_1,"Sequence number value lock"); else if ( strncmp (cad_decodificar,"TA",2) == 0) strcpy(dato_1,"Generic enqueue lock"); else if ( strncmp (cad_decodificar,"TD",2) == 0) strcpy (dato_1,"DDLenqueue 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,"DMLenqueue 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,"Usersupplied lock"); else if ( strncmp (cad_decodificar,"UN",2) == 0) strcpy (dato_1,"Username lock"); else if ( strncmp (cad_decodificar,"US",2) == 0) strcpy (dato_1,"Undosegment 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 enqueuelock (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 Página 2
  • 3. decode_name_mode.c(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,"Logstart/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 if ( strncmp (cad_decodificar,"PK",2) == 0) strcpy(dato_1,"Library cache pin instance lock (L=namespace)"); else if ( strncmp (cad_decodificar,"PM",2) == 0) strcpy(dato_1,"Library cache pin instance lock (M=namespace)"); else if ( strncmp (cad_decodificar,"PN",2) == 0) strcpy(dato_1,"Library cache pin instance lock (N=namespace)"); else if ( strncmp (cad_decodificar,"PO",2) == 0) strcpy(dato_1,"Library cache pin instance lock (O=namespace)"); else if ( strncmp (cad_decodificar,"PP",2) == 0) strcpy(dato_1,"Library cache pin instance lock (P=namespace)"); else if ( strncmp (cad_decodificar,"PQ",2) == 0) strcpy(dato_1,"Library cache pin instance lock (Q=namespace)"); else if ( strncmp (cad_decodificar,"PR",2) == 0) strcpy(dato_1,"Library cache pin instance lock (R=namespace)"); else if ( strncmp (cad_decodificar,"PS",2) == 0) strcpy(dato_1,"Library cache pin instance lock (S=namespace)"); else if ( strncmp (cad_decodificar,"PT",2) == 0) strcpy(dato_1,"Library cache pin instance lock (T=namespace)"); else if ( strncmp (cad_decodificar,"PU",2) == 0) strcpy(dato_1,"Library cache pin instance lock (U=namespace)"); else if ( strncmp (cad_decodificar,"PV",2) == 0) strcpy(dato_1,"Library cache pin instance lock (V=namespace)"); else if ( strncmp (cad_decodificar,"PW",2) == 0) strcpy(dato_1,"Library cache pin instance lock (W=namespace)"); else if ( strncmp (cad_decodificar,"PX",2) == 0) strcpy(dato_1,"Library cache pin instance lock (X=namespace)"); else if ( strncmp (cad_decodificar,"PY",2) == 0) strcpy(dato_1,"Library cache pin instance lock (Y=namespace)"); else if ( strncmp (cad_decodificar,"PZ",2) == 0) strcpy(dato_1,"Library cache pin instance lock (Z=namespace)"); else if ( strncmp (cad_decodificar,"QA",2) == 0) strcpy (dato_1,"Rowcache instance lock (A=cache)"); else if ( strncmp (cad_decodificar,"QB",2) == 0) strcpy (dato_1,"Rowcache instance lock (B=cache)"); else if ( strncmp (cad_decodificar,"QC",2) == 0) strcpy (dato_1,"Rowcache instance lock (C=cache)"); else if ( strncmp (cad_decodificar,"QD",2) == 0) strcpy (dato_1,"Rowcache instance lock (D=cache)"); else if ( strncmp (cad_decodificar,"QE",2) == 0) strcpy (dato_1,"Row Página 3
  • 4. decode_name_mode.ccache instance lock (E=cache)"); else if ( strncmp (cad_decodificar,"QF",2) == 0) strcpy (dato_1,"Rowcache instance lock (F=cache)"); else if ( strncmp (cad_decodificar,"QG",2) == 0) strcpy (dato_1,"Rowcache instance lock (G=cache)"); else if ( strncmp (cad_decodificar,"QH",2) == 0) strcpy (dato_1,"Rowcache instance lock (H=cache)"); else if ( strncmp (cad_decodificar,"QI",2) == 0) strcpy (dato_1,"Rowcache instance lock (I=cache)"); else if ( strncmp (cad_decodificar,"QJ",2) == 0) strcpy (dato_1,"Rowcache instance lock (J=cache)"); else if ( strncmp (cad_decodificar,"QL",2) == 0) strcpy (dato_1,"Rowcache instance lock (K=cache)"); else if ( strncmp (cad_decodificar,"QK",2) == 0) strcpy (dato_1,"Rowcache instance lock (L=cache)"); else if ( strncmp (cad_decodificar,"QM",2) == 0) strcpy (dato_1,"Rowcache instance lock (M=cache)"); else if ( strncmp (cad_decodificar,"QN",2) == 0) strcpy (dato_1,"Rowcache instance lock (N=cache)"); else if ( strncmp (cad_decodificar,"QO",2) == 0) strcpy (dato_1,"Rowcache instance lock (O=cache)"); else if ( strncmp (cad_decodificar,"QP",2) == 0) strcpy (dato_1,"Rowcache instance lock (P=cache)"); else if ( strncmp (cad_decodificar,"QQ",2) == 0) strcpy (dato_1,"Rowcache instance lock (Q=cache)"); else if ( strncmp (cad_decodificar,"QR",2) == 0) strcpy (dato_1,"Rowcache instance lock (R=cache)"); else if ( strncmp (cad_decodificar,"QS",2) == 0) strcpy (dato_1,"Rowcache instance lock (S=cache)"); else if ( strncmp (cad_decodificar,"QT",2) == 0) strcpy (dato_1,"Rowcache instance lock (T=cache)"); else if ( strncmp (cad_decodificar,"QU",2) == 0) strcpy (dato_1,"Rowcache instance lock (U=cache)"); else if ( strncmp (cad_decodificar,"QV",2) == 0) strcpy (dato_1,"Rowcache instance lock (V=cache)"); else if ( strncmp (cad_decodificar,"QW",2) == 0) strcpy (dato_1,"Rowcache instance lock (W=cache)"); else if ( strncmp (cad_decodificar,"QX",2) == 0) strcpy (dato_1,"Rowcache instance lock (X=cache)"); else if ( strncmp (cad_decodificar,"QY",2) == 0) strcpy (dato_1,"Rowcache instance lock (Y=cache)"); else if ( strncmp (cad_decodificar,"QZ",2) == 0) strcpy (dato_1,"Rowcache instance lock (Z=cache)"); return (dato_1); } Página 4