Forum Discussion

H_Sharma's avatar
H_Sharma
Level 6
9 years ago

Database Backup Cancellation

Hello Experts,

Sometimes we have to cancel sql and oracle database but cancelling parent job does not kill all the jobs if dabase is big.

Pls let me know how to cancel database backups efficiently.

Thanks,

  • All child jobs are generated on the client. This means you will need to find the script / process that generates the backup requests and kill that.
  • All child jobs are generated on the client. This means you will need to find the script / process that generates the backup requests and kill that.
  • what script is on windows for sql and what is on linux for oracle???
  • I cannot tell you - this is your environment. Script names can usually be found in the policy.

    Work with the relevant server owner to check Task Manager or process table.

  •  

    For example for Oracle there is RMAN script running.. this you can check with oyur database administrator or in the policy .. 

    Talk to your database adminsitrator whenever you cancelling backup jobs for those databases... 

  • Ok fine Sometimes we have some backup streams fail in Oracle Policy and other streams get sucessfull and we can not start the full backup again as its huge in sizee so what is the best approch to refire only the failed stream in Oracle policy?

    I am not sure whether we can restore the database with some successufull and  some failed streams?

     

  • You cannot restart or resume a failed Oracle stream.
    There is nothing in Oracle policy to specify or select individual streams.

    The streams are generated by rman on the client, so only rman on the client can retry or restart the stream.

    DBA's can investigate retry parameters in rman script.

  • Hello,

     

    probably the best way in Oracle is to use "NOT BACKED UP SINCE" phrase, for example:

    BACKUP
      NOT BACKED UP SINCE TIME 'SYSDATE-7'
      DATABASE PLUS ARCHIVELOG;

    then only datafiles not backed up within last 7 days are covered by backup job. (Adjust the time to your RPO requirements).

     

    Your second question is rather for an Oracle forum. Basically, if you mean by "stream" a datafile or group of datafiles, then the answer is yes when you have at least one successfull "stream"/backup for every datafile and archivelog backups covering interval from this oldest backup up to now.

    For example, when you have:

    backup from 25-JAN for half of database

    backup from 18-JAN for a second half of database

    and archivelog backup including all archivelogs from 18-JAN to now,

    you can restore the whole database up to now.

    Michal