Notifications 
Reti­rer tout

[Réso­lu] Com­ment sup­pri­mer un journal ?

Posts
Uti­li­sa­teurs
Likes
71  Vu
0
Début du sujet

Bon­jour, 

Dans une biblio­thèque, j’ai un jour­nal qui y est lié :

Objet       Type   
QSQRCV0356  *JRNRCV
QSQJRN      *JRN   

Com­ment le supprimer ?

Cor­dia­le­ment, 

Éti­quettes du sujet
2 Réponses 
0

Voi­là ce que j’ai trou­vé sur IBM i :  https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzarm/rzarmdltjrn2.htm

Et voic l’ex­trait qui nous intéresse :

  1. Type
    
    WRKJRNA JRN(library-name/journal-name)
    OUTPUT(*PRINT)

    Copier le code

    and press the Enter key. You receive a lis­ting that shows all the objects that are cur­rent­ly being journaled.

  2. End jour­na­ling for all the access paths assi­gned to the jour­nal by typing the fol­lo­wing command : 
    
    ENDJRNAP FILE(*ALL)
    JRN(library-name/journal-name)

    Copier le code

  3. End jour­na­ling for all the phy­si­cal files assi­gned to the jour­nal by typing the fol­lo­wing command : 
    
    ENDJRNPF FILE(*ALL)
    JRN(library-name/journal-name)

    Copier le code

  4. End jour­na­ling for all the inte­gra­ted file sys­tem objects assi­gned to the jour­nal by typing the fol­lo­wing command : 
    
    ENDJRN OBJ(*ALL)
    JRN(/QSYS.LIB/library-name.LIB/journal-name.JRN)

    Copier le code

  5. Save the inhe­ri­tance rules asso­cia­ted with all libra­ries assi­gned to the jour­nal by using the fol­lo­wing command : 
    
    DSPLIBD  LIB(library-name) OUTPUT(*PRINT)

    Copier le code

  6. End jour­na­ling for all the libra­ries assi­gned to the jour­nal by typing the fol­lo­wing command : 
    
    ENDJRNLIB  LIB(*ALL) JRN(library-name/journal-name)

    Copier le code

  7. End jour­na­ling for all other object types assi­gned to the jour­nal by typing the fol­lo­wing command : 
    
    ENDJRNOBJ OBJ(*ALL) OBJTYPE(*ALL)
    JRN(library-name/journal-name)

    Copier le code

  8. Deac­ti­vate any remote jour­nals that are asso­cia­ted with the jour­nal by using the Change Jour­nal State (Qjo­Chan­ge­Jour­nal­State) API or the Change Remote Jour­nal (CHGRMTJRN) command.
0

Bon­jour,

pour pou­voir sup­pri­mer un jour­nal on peut pas­ser par ACS ou alors uti­li­ser la com­mande DLTJRN.

Il faut qu’au­cun objet ne soit jour­na­li­sé dans le jour­nal à sup­pri­mer et que tous les tra­vaux ayant uti­li­sé le jour­nal pour contrôle de vali­da­tion soient ter­mi­nés.

On dirait que c’est un jour­nal créé par défaut en même temps qu’une col­lec­tion sql (biblio­thèque). Dans ce cas il n’est peut être pas trop conseillé de le supprimer…

Share :