Scheduled rman backup does not work, it works if performed manually

Hi all

I set up the automated DB Backup with rman via a cron job. The work begins, but the backup occurs do not. What I am doing wrong?

Here is my configuration:

Database: Oracle10g Express Edition
OS: Oracle Linux

* The backup should start every Friday @ 00:30

crontab entry:

30 00 * 5 /home/oracle/dba/scripts/rman_backup_db.sh > /home/oracle/dba/scripts/rman_backup_db.log

The rman_backup_db.sh content:

RMAN target / cmdfile=/home/oracle/dba/scripts/rman_backup_db.par log=/home/oracle/dba/logs/db_backup.log

The rman_backup_db.par content:

#

Run {}
allocate channel oem_backup_disk1 type disk;
allocate channel oem_backup_disk2 type disk;
allocate channel oem_backup_disk3 type disk;
allocate channel oem_backup_disk4 type disk;
allocate channel oem_backup_disk5 type disk;
allocate channel oem_backup_disk6 type disk;
allocate channel oem_backup_disk7 type disk;
allocate channel oem_backup_disk8 type disk;
noexclude backup power as the tag "online_bkp" COPY database include current controlfile;
backup as COPY all backup archivelog do not delete all of the entries;
output channel oem_backup_disk1;
output channel oem_backup_disk2;
output channel oem_backup_disk3;
output channel oem_backup_disk4;
output channel oem_backup_disk5;
output channel oem_backup_disk6;
output channel oem_backup_disk7;
output channel oem_backup_disk8;
}
allocate channel for maintenance of type disk;
OVERLAP DATAFILECOPY ALL;
delete noprompt obsolete device type disk;
output channel;

# End of command RMAN script

* There is no entry on the safeguarding of this morning
/Home/oracle/dba/logs/db_backup.log content

[oracle@olinux ~] $ /home/oracle/dba/scripts/rman_backup_db.log more
[oracle@olinux ~] $ ls-l /home/oracle/dba/scripts/rman_backup_db.log
-rw - r - r - 1 oracle oracle 0 August 27, 00:30 /home/oracle/dba/scripts/rman_backup_db.log
[oracle@olinux ~] $

If I run the /home/oracle/dba/scripts/rman_backup_db.sh manually, it works fine...

Thank you for your time,

Daniel

Environment for cron tasks settings will not be addressed, you need to set your environment in the case against the .sh script will not be able to find programs. If you added the $ORACLE_HOME shell script call to your .profile, the same needs to be done in the script, i.e. for bourne or bash shells, there must be a space between the point and the .sh call note...

  .  /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/oracle_env.sh
  

http://download.Oracle.com/docs/CD/B25329_01/doc/install.102/b25144/TOC.htm#CIHHJEHF in section 4.3 "defining the Oracle Database XE Server Environment Variables"

Tags: Database

Similar Questions

  • How to import a bookmarks.html file? Bookmarks > organize bookmarks > import and backup does not work.

    After trying to import my favorites saved in an html file, using bookmarks > organize bookmarks > import and backup > import html, nothing is being updated from saved files

    This isn't "machine code", it's like a JSON backup file is formatted (except it usually shows no line breaks, it's a long line when displaying in most text programs or in Firefox). Rename a JSON file as HTML does not work, the formats are completely different.

    If you replace this file in jsonextension, you should be able to restore these data in Firefox.
    Bookmarks > organize bookmarks-> import and backup - restore - Choose file...

  • Task Scheduler: repeat / duration does not work

    Hello

    On Windows Vista Business SP1.

    Create a task in Task Scheduler to run every day, repeat every hour, for a period of 12 hours. It runs * every * hours (i.e. throughout the entire day).

    Google search (or I'd be Binging?) the issue seems, several people have reported a similar thing, but I can't find a solution or a fix.

    Does anyone know if there is a fix or if there is something in SP2 on this subject.

    I had heard talk about Vista was a bunch of you-know-what, but I can't believe that something as simple as this does not work.

    Does anyone have / heard of a fix or a workaround (which is not "change the task that you run to check the time and leave... If I wanted to write my own Planner...!)

    Thank you.

    Hi MainyMike,

    Your question of Windows vista is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please ask your question in the TechNet Windows vista forum.

    http://social.technet.Microsoft.com/forums/en-us/itprovistaapps/threads

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Start > Panel > system and security > your computer backup does not work

    When I click 'save your computer' nothing happens. I tried all the solutions I found here and other forums. I checked the level backup engine service block, Volume Shadow Copy and backup Windows are set to automatic and are running. I ran sfc and he found no problem.  I am able to start sdclt.exe / configure in a command window and it runs and gets "Starting Windows Backup followed by implementing backup...". and more of what seems to be OK.

    I can't just start it fron Control Panel. Everything else on the control panel works fine.

    Help, please

    JJ

    Hello
     
    1. what exactly happens if you mean when you talk about "clean boot does not work? Please provide details.
    2. have you tested the issue in a new user account, as suggested earlier?
     
    Boot fails only when you have disabled a vital service of Microsoft (S). You must observe extreme caution when performing the clean boot procedure.
     
    Note: Don't forget to restart your computer as usual after the clean boot.
     
    PS: Your son is better suited to the Performance category, so this would be moved (Again) to performance and maintenance

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • My new laptop has crashed and disk backup does not work, can download a boot disk for Windows 7, I hit legitimate?

    My Acer 5745 laptop crashed, my backup boot drive does not work. The laptop was running Windows 7 when I bought new in November 2010. Y at - it somewhere that I can download a floppy or a recovery disc?  'The Source' store where I bought will not help, they said they had to go back to Acer and it could take up to two months to return to a charge of about $170.

    Thanks for any help, someone might be able to give.

    A laptop bought at that date will still be under warranty, there should be no costs involved, contact Acer technical support.

    I guess by the backup startup disk, you mean the set of recovery disks you did when you first used the PC?

  • CS5, installed from a backup does not work in the new iMac w / El Capitan; the discs moved

    My 2011 iMac has a failing hard drive. I downloaded a full backup, including the CS5, in a new iMac running El Capitan. None of the Adobe programs will run, even after I installed Java SE 6 & restarted. A Setup from disks, starting with Acrobat 9 Pro disc and after dragging the applications icon, gave me this: "the operation cannot be completed because one or more required items be found.» (Error code - 43) »

    I deleted programs meeting CS5, rebooted and tried to load again from the disk of Acrobat 9 Pro. After dragging the applications icon, I got this: ' the finder cannot complete the operation because some data in "" cannot be read or written. ". (Error code - 36) »

    Updated his computer at El Capitan my wife and charge of Java SE 6, and his CS5 still works. What can be done in my case? Thanks to all in advance!

    Download from a backup will not work.

    You must install it.

    https://helpx.Adobe.com/Creative-Suite/KB/CS5-product-downloads.html

    But CS5 wil cause a lot of errors on El Capitan.

    They simply are not (fully) compatible.

    Just search for it on the forum, you will find a lot of threads.

  • RMAN script does not work as a cron job, but works when explicitly executed

    Oracle 10 g 2 10.2.0.1, Oracle Enterprise Linux 4 U7.

    I've added a task to crontab of the oracle user who looks like the following:
    #ORACLE_HOME,ORACLE_SID and PATH are set in the user's profie
    TAG=`date|awk '{print $1"_"$2"_"$3}'| tr [:lower:] [:upper:]`
    
    echo "backup started on`date` "> /home/oracle/rman.log
    
    rman target / LOG='/home/oracle/rman_run.log' << EOF
    
    run{
    
    sql 'aler system switch logfile';
    backup full database tag='$TAG' include current controlfile;
    delete noprompt obsolete;
    
    }
    exit;
    EOF
    
    echo "rman finished, returned $? " >> /home/oracle/rman.log
    echo "Backup ended on `date` " >> /home/oracle/rman.log
    the tracks work as expected but the rman command never works the inside of cron, it always returns code 1, but if I call the script itself from the command line
    It works smoothly and the backup is performed.

    what I am doing wrong?

    what I am doing wrong?

    no no no ORACLE_HOME and ORACLE_SID is defined in script
    The script does not source in the script of environmental requirements

    env | Tri o /tmp/capture.env

    above indicates how deficient the script environment cron is really

  • Windows backup does not work more

    Windows 2008 SBS R2. After a reboot, Windows backup its plu not work! The message is "' all volumes containing system data are not together in the backup". «Event Viewer: "backup has attempted at 22:00:09 6/2/2015" could not start, error code '2155347992'.» »

    DiskPart list volume shows all drives are NTFS, healthy and C: his 'system '.

    When I try to redo the backup schedule, he tries to include C: and H:, H: it's just an iSCSI LUN of a Qnap NAS. I can't uncheck H:, which is stupid.

    H: has no designation system! I ran a checkdisk all volumes without result! What is the next step? Thank you!

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • VCB + BE 12.5 - Backup does not work on all VM

    Hello

    I am currently evaluating ESXi 3.5 and Backup Exec 12.5.

    First on my list was the backup and restore.

    I decided to try VMWare Consolidated Backup and Backup Exec 12.5 because it looked pretty good on the product pages.

    But of course not everything works as you expect, right?

    Here is my Test harness:

    ESXi 3.5

    Virtual MACHINE #1 Server 2003 (clean install)

    VM #2 Server 2003 (production system were migrated using VMWare Converter for testing purposes)

    VM n ° 3 Server 2003 (BE 12.5 + VCB Proxy, this configuration is supported by Symantec)

    Physics Vista x 64-use as destination of backup to disk

    On 12.5 BEING, I created a VM backup task #1. This job works perfectly.

    However, the same working parameters do not work for VM #2.

    Here are my observations:

    When I start the work for #1, I can see (on VI Client) there is a snaphsot beeing created, it happens within seconds and I then the temp on VCB proxy folder starts to grow.

    After some time the job ended. I was able to restore this backup.

    When I start the work for #2, the VI Client it says: "Create Virtual Machine snapshot - VM #2 – In Progress". On BE 12.5, he said: "export". That's it... nothing happens. No data on the temp folder can be expected for a folder.

    Even after 12, nothing has changed. There is no indication of a backup on the ESXi Performance tab process and performance for the virtual machine #2 is "not available for this entity.

    I can't cancel the snapshot process. I have to reboot the virtual machine #2, which brings back data on the performance and disappears it process snapshot.

    BTW, when I reboot #2 VM I've disconnected from the VI Client but can immediately reconnect (is this normal?).

    Apart from my backup problem ESXi makes a very strong impression after a few weeks of testing. BEING 12.5 does not, but it is still very powerful.

    Unfortunately there is no support for ESXi and BEING 12.5 evaluation. The help of this community would be much appreciated!

    If you need information that I left out/missed please let me know.

    The P2V conversions, especialy for complex systems, tend to bring out some weird questions. It would be my money on a problem of VSS subsystem on the virtual machine. Is the 2003 SP2? If try Yes the cumulative package VSS (http://support.microsoft.com/kb/940349) if not already installed.

  • Bookmark Backup does not work.

    I recently had to uninstall and reinstall Firefox, because I could not get rid of text improve malware. Before that, I created a backup of all my favorites. However, once the resettlement of Firefox was over and I went to restore my bookmarks I discovered that the file did not work. After trying a few things, I realized that when I created the backup and the file name was changed so that I could more easily ID, the file was not saved in JSON format. It is saved as just a FILE. I have no idea why. Is anyway to fix this?

    Try to use the tiny .json - and that file looks like it has some characters added that the beginning of the file - 1 character and a space white or two.

  • iOS 9.2.1 new own iCloud backup does not work

    After updating iOS 9.2.1 and remove backup icloud to start with a clean, can't initialize and start a new backup.

    On tracking devices:

    -iPhone 6 sec more

    -iPad 2 Air

    1. peripheral disconnection on iCloud, reboot device and new connection have no result.

    2. also an own update and restore with an iTunes backup work (and so to repeat 1.).

    If there an Apple iCloud server problem?

    Best regards Hans

    This looks very similar to what others know about:

    Impossible to activate the backup

    iCloud iOS 9.2 backup still not fixed!

    The first link provides a few details in chichi3 on the issue by saying: ' Hi everyone, I contacted Apple last night and they are aware of this problem. " The technical team is on and so his most likely it will be fixed in a software update. Backup in Itunes for now to be on the safe side and keep an eye on updates of software."

  • Windows 7 backup does not work after upgrade Windows 10 and Windows 7 restore

    I am on Windows 7 (Win-7) for several years and I'm quite happy for Win - 7.

    Microsoft has improved my Win 7 to Win - 10 at night. I refused the upgrade and Microsoft restored Win 7 on my computer. Win - 7 works very well except the backup.

    The backup is not one that I used previously.

    PIC - 1 appears when I backup implementation.

    PIC - 2 appears when I press Next

    PIC - 3 appears when I press Save

    How to restore the backup of Win - 7?

    PIC-1

    PIC-2

    PIC-3

    You have not answered my previous message.

    Please provide more information for your issue to be diagnosed.

    Restart your computer and wait 20 minutes for the system to operate before you download information. When the review much, not Event Viewer log files all problems show in the period immediately after the computer has booted.

    Please provide a copy of your system information file. Type the system information in the search box above the Start button and press the ENTER key (alternative is select Start, all programs, accessories, System Tools, system information). Select file, Export and give the file a name noting where it is located. Not to place the cursor in the body of the report before exporting the file. The system creates a new information file system each time system information is available. You must allow a minute or two before the file is completely filled before exporting a copy. Please download the file to your OneDrive, to share with everyone and post a link here. If the report is in one language other than English, please indicate the language.

    Please download and share with everyone a new copy of your log System of your event viewer on your disc one and post a link here. It allows to avoid confusion if you delete all previous copies of the log files of your OneDrive.

    To access the system, log, select Start, Control Panel, administrative tools, Event Viewer, in the list on the left of the window, expand Windows logs and select System. Place the cursor on the system, select the Action in the Menu and record all events like (the evtx default file type) and give a name to the file. Do not offer not filtered files. Do not place the cursor in the list of reports before selecting the Action from the menu. Do not clear the logs so that you have a persistent problem.

    Please download and share with everyone a new copy of your log applications of your event viewer on your disc one and post a link here. It allows to avoid confusion if you delete all previous copies of the log files of your OneDrive.

    To access the Application log, select Start, Control Panel, administrative tools, Event Viewer, in the list on the left of the window expand Windows logs and select Application. Place the cursor on the system, select the Action in the Menu and record all events like (the evtx default file type) and give a name to the file. Do not offer not filtered files. Do not place the cursor in the list of reports before selecting the Action from the menu. Do not clear the logs so that you have a persistent problem.

    For assistance OneDrive see paragraph 9.3:

    http://www.gerryscomputertips.co.UK/MicrosoftCommunity1.htm

  • back from Win10 to Win7 now backup does not work

    I tried Windows 10, but had trouble with the resolution of the screen.  I've started using the tool provided by MS Windows7 and now backup gives me an error and does not perform a backup.

    Here is the error I get:

    Windows cannot disable the task of automatic backup for the following reason:

    The task image is corrupt or has been tampered with. (0 x 80041321)

    Try again.

    Can someone please?

    Thanks in advance!

    I finally had to call MS and they have managed to solve the problem.  Somehow when I started again from Win10 to Win7 the Task Scheduler or WindowsBackup was damaged.  The registry has also been affected.  The skills needed to repair this problem was well beyond my capabilities.

    With the assistance of MS, this problem is now resolved.

  • Backup does not work in XP Pro

    When I go to save my files under XP Pro SP3, nothing happens except I get a window semi completed for the backup that freezes and does not close.  I have used this for years and now all of a sudden this!  Any ideas?

    12 miles

    Try the following links

    Windows 95 Backup troubleshooting

    http://support.Microsoft.com/kb/130946

    How to solve DMA errors while using the backup

    http://support.Microsoft.com/kb/205842/j

  • Vista backup does not work

    When I try to use the backup, I get the message "backup stopped working, if a solution is found, you will be notified by Microsoft.

    Hello azshtr,

    You make a partial backup or a full backup? Your backup has already worked?
    If only making one partial, try a full backup to a different location and see if it ends.

    See the following for FAQ on using Windows Vista backup and restore.
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    Please try again and answer back with an updated status.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

Maybe you are looking for