CA View - How to Restore a View Database with a SARRECV File and Using Forward Recovery
search cancel

CA View - How to Restore a View Database with a SARRECV File and Using Forward Recovery

book

Article ID: 198374

calendar_today

Updated On:

Products

OM Deliver OM View

Issue/Introduction

When running CA View, if there is a SARRECV file available and if Forward Recovery is done, in this article are the steps that would be used for restoring a View database.

 

Environment

Release : 14.0

Component : CA View

Resolution

If there is a SARRECV file in use, and if Forward Recovery is being used, the recovery steps would be the following:

. Run SARDBASE RENAME, to rename the current View database, to another name:

//XXXXXXXX JOB ...                                                
//SARDBASE EXEC PGM=SARDBASE,PARM='VIEW_HLQ'  <=== MODIFY DB NAME 
//STEPLIB  DD  DISP=SHR,DSN=VIEW.CVDELOAD     <=== MODIFY, IF USED
//SYSPRINT DD  SYSOUT=*                                           
//SYSIN    DD   *                                                 
RENAME VIEW_HLQ2                                                  
/*                                                                
//                                                                 

. Run SARDBASE ADDDS (DATA and INDEX), and create a new database:

//XXXXXXXX JOB ...                                                
//SARDBASE EXEC PGM=SARDBASE,PARM='VIEW_HLQ'  <=== MODIFY DB NAME 
//STEPLIB  DD  DISP=SHR,DSN=VIEW.CVDELOAD     <=== MODIFY, IF USED
//SYSPRINT DD  SYSOUT=*                                           
//SYSIN    DD   *                                                 
ADDDS INDEX CYLINDER=100 BLKSIZE=8906 UNIT=xxxx VOLSER=vvvvvv      
ADDDS DATA  CYLINDER=300 BLKSIZE=13682 UNIT=xxxx VOLSER=vvvvvv     
/*                                                                
//  

                                                  
. Run SARDBASE RESTORE, using input of the //SARRECV file:

//XXXXXXXX JOB ...                                                
//SARDBASE EXEC PGM=SARDBASE,PARM='VIEW_HLQ'  <=== MODIFY DB NAME 
//STEPLIB  DD  DISP=SHR,DSN=VIEW.CVDELOAD     <=== MODIFY, IF USED
//SYSPRINT DD  SYSOUT=*                                           
//SARRECV  DD DISP=SHR,DSN=view_hlq.SARRECV                      
//SYSIN    DD *                                                   
RESTORE                                                           
/*                                                                
//                                                                

Note: In a RESTORE, with SARRECV, it is identified where the last View Master Index backup occurred, and that corresponding tape would be mounted to restore the index.


 . In a RESTORE, the Forward Recovery files are automatically used as input, when the hlq of the SARFRDS files matches that of the database, and will populate the data portion of the database with those reports that were not yet backed up to tape.

   Forward Recovery files are created with use of SARINIT parameters RCVPRIM, RCVSEC, RCVUNIT, and RCVSPACE. 

   These parameters are similar to the values that would be used when creating a regular DASD physical-sequential file. 

. Next would be to run the SARDBASE OLOAD (to load the panels) and BLOAD (to load the banners), to the database:

//XXXXXXXX JOB ...                                                
//SARDBASE EXEC PGM=SARDBASE,PARM='VIEW_HLQ'  <=== MODIFY DB NAME 
//STEPLIB  DD  DISP=SHR,DSN=VIEW.CVDELOAD     <=== MODIFY, IF USED
//SYSPRINT DD  SYSOUT=*                                           
//SAROLIB  DD  DISP=SHR,DSN=XXXXXX.XXXXXX.CVDEPENU                
//SARBLIB  DD  DISP=SHR,DSN=XXXXXX.XXXXXX.CVDEDATA                
//SYSIN    DD  *                                                  
OLOAD                                                             
BLOAD                                                             
/*                                                                
//  

. Run SARINIT, with only the NAME=... card, and review the database parameters for accuracy: 

//XXXXXXXX JOB ...                                                
//SARINIT EXEC PGM=SARINIT                                        
//STEPLIB  DD  DISP=SHR,DSN=VIEW.CVDELOAD     <=== MODIFY, IF USED
//SYSPRINT DD  SYSOUT=*                                           
//SYSIN    DD  *                                                  
NAME=VIEW_HLQ                                                     
/*                                                                
//                                                                

. Then Start the View tasks, using "/S sarstc,OPT=STOPBU"

. Finally, run SARRSP, which will use input from tape to bring back to disk the reports that were on disk at the time of the failure:

//XXXXXXXX JOB ...                                                
//SARRSP   EXEC PGM=SARRSP,PARM='VIEW_HLQ'  <=== MODIFY DB NAME   
//STEPLIB  DD  DISP=SHR,DSN=VIEW.CVDELOAD     <=== MODIFY, IF USED
//SORTLIB  DD  DISP=SHR,DSN=SYS1.SORTLIB                          
//SYSPRINT DD  SYSOUT=*                                           
//SYSOUT   DD  SYSOUT=*                                           
//SYSUDUMP DD  SYSOUT=*                                           
//SORTWK01 DD  UNIT=SYSDA,SPACE=(CYL,(10),,CONTIG)                
//SORTWK02 DD  UNIT=SYSDA,SPACE=(CYL,(10),,CONTIG)                
//SORTWK03 DD  UNIT=SYSDA,SPACE=(CYL,(10),,CONTIG)