
Cette opération si elle m’a permis de résoudre le problème de base de donnée est cependant très dangereuse…
ATTENTION : Il faut prévoir une sauvegarde de la base de donnée… en prévision !!!
1 – Accès à la base SQL d’un PABX 4400
Pour accéder à la base de donnée en SQL il faut dans un premier temps se positionner dans le répertoire de celle-ci.
(207)xa00207> cd /usr3/mao
L’accès à la base de donnée se fait ensuite par la commande « cuser ».
(207)xa00207> cuser
2 – Suppression du poste
Pour rechercher le poste qui pose problème il faut faire une recherche sur le dernier poste qui a été créé.
2.1) Afficher tous les champs d’un poste
->> select * from poste;
–> nulog dtyterm crystal coupler position numan numass numadec
1> catexploit catptt cattax ctconx mcdupbx pres_pbx pickup_id codsecre
2> centfrai n_supmcdu resintemp titusymp env_codsec nufaisrech bipmcdu
3> n_standard appel_urgent t_teleservice droit_cs code_sec_mes conforme_ident
4> teleacteur langue vip fonct_pos func_moc plazas_moc typ_chbr chbr_occ
5> etat_chbr ngrhot dath_arr gesacomp multiocc acom_tot
6> postmultil dr_tax d_prliaut a_prliaut postalamp int_keyb asssbc valdeb
7> dondist posblo numeenr numdest renvoi nuaffco nuaffmemo
8> AOM1_typ AOM2_typ AOM3_typ EK_pres MAC_PC_pres S0_pres V24_pres filtselect
9> mask_number he_minitel ut_sad catcnxdata videophone potentiometer
10> ab_compression_16k ab_compression_32k cnx_he_min ptt_he_min VM_Box_Type
11> VM_COS VM_Old_Msg VM_New_Msg Fax_Old_Msg Fax_New_Msg typdest cmf_2600
12> msg_class_nb caller_cat with_uta debmulti_nrep debmulti_occ Z_pres
13> nb_v_mail_days num_secretaire prio_appel dath_dep nb_ddi_days
14> reserve_1 reserve_2 reserve_3 reserve_4 disp_name dect_associe
15> no_agent typ_acd mcdu_assag mcdu_logag emul_paging ghost_z ghost_z_feat
16> routing_flag typ_suit suiv_suit chb_main_second encadenado nb_dect_days
17> nb_s0_daysHit RETURN to continue ! ( or ‘d’isable scrolling, ‘s’top output)–> 47 12 0 4 17 ‘56845’ ‘56845’ 0
1> 0 5 1 0 » 0 -1 ‘0000’
2> 255 0 0 255 0 255 »
3> 10 0 0 0 0 1
4> 0 1 0 0 0 0 1 0
5> 2 255 13-11-1999 05:35:46 0 -1 0.000000
6> 0 0 0 0 0 0 0 0
7> 0 0 » ‘56845’ 4 0 0
8> 0 0 0 0 0 0 0 0
9> 0 0 0 0 0 0
10> 0 0 0 0 0
11> 0 0 0 0 0 4 0
12> 0 0 0 0 0 0
13> 0 ‘56845’ 0 01-01-1993 00:00:00 0
14> 0 0 0 0 ‘LIEN ISN40’ »
15> -1 0 » » 0 0 0
16> 0 2 -1 -1 -1 0
17> 0
Hit RETURN to continue ! ( or ‘d’isable scrolling, ‘s’top output)s
Number of matching records = 308
temps d’execution = 10.852
2.2 – Pour aider à la recherche vous pouvez utiliser les commandes ci-desous !
select numan,nulog,dtyterm,crystal,coupler,position,numan,numass,numadec from poste;
select numan,catexploit,catptt,cattax,ctconx,mcdupbx,pres_pbx,pickup_id,codsecre from poste;
select numan,centfrai,n_supmcdu,resintemp,titusymp,env_codsec,nufaisrech,bipmcdu from poste;
select numan,n_standard,appel_urgent,t_teleservice,droit_cs,code_sec_mes,conforme_ident from poste;
select numan,teleacteur,langue,vip,fonct_pos,func_moc,plazas_moc,typ_chbr,chbr_occ from poste;
select numan,etat_chbr,ngrhot,dath_arr,gesacomp,multiocc,acom_tot from poste;
select numan,postmultil,dr_tax,d_prliaut,a_prliaut,postalamp,int_keyb,asssbc valdeb from poste;
select numan,dondist,posblo,numeenr,numdest,renvoi,nuaffco,nuaffmemo from poste;
select numan,AOM1_typ,AOM2_typ,AOM3_typ,EK_pres,MAC_PC_pres,S0_pres,V24_pres,filtselect from poste;
select numan,mask_number,he_minitel,ut_sad,catcnxdata,videophone,potentiometer from poste;
select numan,ab_compression_16k,ab_compression_32k,cnx_he_min,ptt_he_min,VM_Box_Type from poste;
select numan,VM_COS,VM_Old_Msg,VM_New_Msg,Fax_Old_Msg,Fax_New_Msg,typdest,cmf_2600 from poste;
select numan,msg_class_nb,caller_cat,with_uta,debmulti_nrep,debmulti_occ,Z_pres from poste;
select numan,nb_v_mail_days,num_secretaire,prio_appel,dath_dep,nb_ddi_days from poste;
select numan,reserve_1,reserve_2,reserve_3,reserve_4,disp_name,dect_associe from poste;
select numan,no_agent,typ_acd mcdu_assag,mcdu_logag,emul_paging,ghost_z,ghost_z_feat from poste;
select numan,routing_flag,typ_suit,suiv_suit,chb_main_second,encadenado,nb_dect_days from poste;
select numan,nb_s0_days from poste;
2.3 – Rechercher le dernier poste qui à été créé
->> select numan,dath_arr from poste;
–> numan dath_arr
–> ‘56845’ 13-11-1999 05:35:46
–> ‘56855’ 13-11-1999 05:35:52
–> ‘56841’ 13-11-1999 05:35:44
–> ‘56840’ 13-11-1999 05:35:43
–> ‘56839’ 13-11-1999 05:35:42
–> ‘56838’ 13-11-1999 05:35:42
–> ‘56854’ 13-11-1999 05:35:52
–> ‘56850’ 13-11-1999 05:35:49
–> ‘56849’ 13-11-1999 05:35:48
–> ‘56848’ 13-11-1999 05:35:48
–> ‘56847’ 13-11-1999 05:35:47
–> ‘56846’ 13-11-1999 05:35:47
–> ‘26890’ 17-07-2006 15:30:21
–> ‘56820’ 13-11-1999 05:35:31
–> ‘56819’ 13-11-1999 05:35:31
–> ‘56818’ 13-11-1999 05:35:30
–> ‘56817’ 13-11-1999 05:35:29
–> ‘26892’ 17-07-2006 15:32:13
–> ‘56812’ 13-11-1999 05:35:26
–> ‘56811’ 13-11-1999 05:35:26
Hit RETURN to continue ! ( or ‘d’isable scrolling, ‘s’top output)s
Number of matching records = 308
temps d’execution = 5.602
->>
2.4 – Effacer un poste par son numéro annuaire
->> delete from poste where numan=’85873′;
3 – Suppression du numéro annuaire dans le traducteur
La suppression d’un poste par SQL nécessite aussi la suppression du poste dans le traducteur.
3.1 – Afficher tous les champs du traducteur
->> select * from tabtrad;
–> number apl type subtype info extension uncompress exception
–> ‘04802059’ 0 6 2 5 8 0 0
–> ‘56838’ 0 0 1 40 0 0 0
–> ‘56845’ 0 0 1 47 0 0 0
–> ‘56855’ 0 0 1 74 0 0 0
–> ‘41858’ 0 6 2 5 5 0 0
–> ‘04802116’ 0 6 2 11 8 0 0
–> ‘85794’ 0 0 1 172 0 0 0
–> ’76’ 0 7 1 10 5 0 0
–> ‘56854’ 0 0 1 73 0 0 0
–> ‘56850’ 0 0 1 59 0 0 0
Hit RETURN to continue ! ( or ‘d’isable scrolling, ‘s’top output)s
Number of matching records = 1400
temps d’execution = 19.203
->>
3.2 – Effacer un numéro du traducteur
->> delete from tabtrad where number=’85873′;
temps d’execution = 0.301
->>
4 – Quitter la base SQL
Pour quitter la base de donnée il faut taper [.] et valider par la touche [Entrée].
->> .
(207)xa00207>
Poster un Commentaire
Vous devez vous connecter pour publier un commentaire.