Backup DataPump when demand through crontab does not work!

Hi Master,
I had a script to save the export. I've changed to keep datapump backup instead of the export of conventinal. And since then, the cron job has stopped running.

The oriiginal script was:

#! / bin/bash
CD/opt/ora10gr2
. . Profile
/ backup/oracle10g/EBACKUP/scripts/daily_run CD.
kdat = 'date + %d '.
kmon = 'date + %b.
While read i
do
Touch /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
echo 'start time' $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
Date of > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
exp system/manager@$i file='/backup/oracle10g/EBACKUP/db/daily_backup/dumps/'$i\_$kdat\_$kmon'.dmp' log=/backup/oracle10g/EBACKUP/db/daily_backup/logs/$i\_$kdat\_$kmon'.log'= direct owner = sysadm statistics = none
'save successfully done for' echo $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
echo "end time" $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
compress ' / backup/oracle10g/EBACKUP/db/daily_backup/dumps/'$i\_$kdat\_$kmon'.dmp'
Date of > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
fact </backup/oracle10g/EBACKUP/scripts/daily_run/list_DB

The names of the databases are stored in a list_DB file.

After modification, the script looked like:
#! / bin/ksh
CD/opt/ora10gr2
. . Profile
/ backup/oracle10g/EBACKUP/scripts/daily_run CD.
kdat = 'date + %d '.
kmon = 'date + %b.
While read i
do
Touch /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
echo 'start time' $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
Date of > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
expdp system/manager@$i DUMPFILE=$i\_$kdat\_$kmon'.dmp' LOGFILE=$i\_$kdat\_$kmon'.log' SCHEMAS = sysadm DIRECTORY = JOB_NAME = daily_backup PARALLEL landfills = 4
'save successfully done for' echo $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
echo "end time" $i > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
gzip ' / backup/oracle10g/EBACKUP/db/daily_backup/'$i\_$kdat\_$kmon'.dmp'
Date of > > /backup/oracle10g/EBACKUP/db/daily_backup/logs/exp_log\_$kdat\_$kmon.log
fact </backup/oracle10g/EBACKUP/scripts/daily_run/list_DB

This change scripts when running standalone command line. But does not work when run through crontab.

Any help will be much appreciated.

Thank you
Anoop

Hello

Two things I want to tell U.

1 redirect the CRON output to the log file & check the errorlog file.
example: -.

43 17 * 1-4 /backup/oracle10g/EBACKUP/scripts/daily_run/exp_bkpdb_temp1.sh > /backup/oracle10g/EBACKUP/scripts/daily_run/cron_expdb.log

2. in command line, you set all the necessary of the PATH, where he executed. But when you run the same script CRON, you must manually set the PATH in your script.
Do the below in the command line: -.

echo $PATH

Add the output of the above command in your script as below & try.

#! / bin/ksh
export PATH =

-Elango R

Tags: Database

Similar Questions

  • My labtop sound works, but when connect the headphones does not work

    My labtop sound works, but when connect the headphones does not work. Note that the headset before 1 HR was working.

    Hello

    ·         Are these USB headset or headphone jack analog standard?

    ·         What version of the operating system is installed on the system?

    If you continue Windows 7 or Windows Vista refer to the procedure in method provided below and check if they help to resolve the issue.

    Method 1:

    Step 1:

    You can check if the headphones are activated as a playback device. To do this, see the following steps:

    (a) the Pearl-click Start and type Sound in the start search box.

    (b) in the Start Menu Options, select change adapter settings .

    (c) then, on the Read tab, right-click and select Show hidden devices and Show disconnected devices if they are available.

    (d) select headphones and select

    Step 2:

    Also try to put headphones of default device and check, follow the steps below.

    (a) go to Start and click on Panel.

    (b) click Sound, and then a new window will open.

    (c) in the new window click on the "Playback" tab and right-click in the window and click on Show disabled devices.

    (d) now check if headphone is listed there and right-click on it and choose activate.

    (e) highlight this helmet and click on "as default'.»»

  • How you uninstall photoshop elements 13 when the windows uninstaller does not work?

    How you uninstall photoshop elements 13 when the windows uninstaller does not work?

    Hi James,

    You can follow the article: use the Adobe Creative Cloud cleaning tool to solve installation problems and use Adobe Cleaner tool that helps you to uninstall the application.

    Let us know if it works or not.

    Thank you

    Yann Arora

  • offline activation code how can I get a when the site getactivated does not work?  MSG: failed to process your request. Please try again later.  Help!

    Activation code offline - how to do when the site: getactivated does not work?  MSG: Failed to process your request. Please try again later.    Help!

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • Factory settings Resinstalling when blue Thinkvantage button does not work

    Last year, I panicked when I thought I had a virus. Rather than rely on my own multiple back-up system, I guess someone knew more about computers that I do and let someone else in my computer. My X 60 has not worked properly since. The Thinkvantage button does not work, and it is hit and Miss as to if I can get the thinkvantage functions to work. My wireless radio buttons don't work at all, and the indicator wireless lights turn on and turns off at will.

    I tried to reinstall the application and the update of all implement the Lenovo site, but nothing worked, so I think I'll have to reinstall the orginal factory settings and start over again to clarify these issues.

    I backed up all my data, and made discs (just in case) recovery... now my question is, how do I start to "rescue and recovery" / 'reinstall factory settings' when the blue button does nothing when I push at the start?

    (Works under XP - if that makes a difference).

    Thank you

    Problem solved.

    I managed to get into Rescue and Recovery manually and found that I had a backup on my C drive that existed prior to my problems. I just restore to that date and "presto!" the blue button works again!

    I'll have to spend the rest of the day, re-installing everything that has been added or upgraded from a year, but this simple step seems to have solved my problem. Who would have thought that I had a copy of backup to disk C - I thought I backed everything up to an external drive!

    Tip for any staff of Lenovo, reading this - if your security people knew more about Thinkvantage program, I could have solved this problem months ago - these are them who sent offshore to find updates to day and re - install Thinkvantage to try to get the blue button works again.

    Thank you all.

  • How do we install updates when the installation program does not work

    Whenever I try to install the updates, I get to the page 'Please read the license terms' and 'Next' is not available.

    I've been in contact with Microsoft about this before, and an engineer has spent half of the day sorting - and it is still the same!

    Help, please!

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

    How to reset the Windows Update components?

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://www.Microsoft.com/downloads/en/default.aspx

    Also, try to put the KB numbers in the search at the above link > then download them manually.

    If the above does not solve it:

    Windows Update Forum:

    It comes with Vista, upgrade install and activate Forum.

    You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.

    In this way, you will receive the best help.

    See you soon

    Mick Murphy - Microsoft partner

  • How uninstall when the uninstall program does not work?

    I get this when I try to uninstall Acrobat X Pro so that I can reinstall so that I can get the update that always gives me an error 1301 and does not update.  It is a complete mess.adobexerror.jpg

    Most Mac applications can be uninstalled just moving them unceremoniously in the basket (as long as they are not running in time, of course). Simply move Adobe Acrobat X Pro to the trash, make sure that your mac still works correctly, and then empty the trash.

    Of course, it is always recommended that you use the uninstall application when it is available, but it did not work this method is fine!

  • How can I remove old agreements when the "delete" button does not work?

    In our account here several agreements that are years old, created by users is no longer working with us. But in the accounts of administrators who have access to these agreements now, the 'deleted' button is gray and does not? How get rid of these old contracts?

    Hello

    May be that the sender of a document cancel/remove the agreement.

    Thank you

  • "Warn me when closing multiple tabs" does not work

    Under Tools > Options > tabs, "warn me when closing multiple tabs" is selected. Also, in all: config, browser.tabs.warnOnClose is set to 'true '. I still have several tabs open. However, sometimes my hand slips or the mouse falls off the table and Firefox closes without any warning.

    The original problem was not no Firefox closes when the X has been clicked. The Fast Close Tabs addon is a workaround, but it has pretty much solved the problem: https://addons.mozilla.org/en-US/firefox/addon/fast-close-tabs/

    This addon alters the function of X to close a single tab and not the entire window. Mind you, it would be even if the core Firefox really made this options says it did, or at least if the options have been reformulated to take account of what they actually do. But the Fast Close Tabs addon is a pretty good alternative.

  • When scanning, the ADP does not work on my HP Deskjet 3510 e-all-in-one printer

    Ok.  This is my second time to enter in this.  I have an ADF and have tried SEVERAL times to scan but my scanner WILL NOT use the ADF.  I chkd information available on this forum but nothing I've tried has worked.  It is "operator error" or "hardware error"?  I tried to use this feature because I bought the printer and it never worked. Finally decided I had to see it through and try to get help.  But I worked on it for 4 hours and feel like a "hostage" - the frustration isn't quite describe how I feel now.  I get in a panick because I needed to scan 10 pps two hours ago and here I am STILL sitting trying to get this d * thing #$ % to work.  Help, please!

    THX Sylvie

    Hello

    Are you sure that the 3510 has an ADF? I can't see it ANYWHERE:

    The one on the top of the page here the input tray, ADF No.

    Kind regards.

  • CC: Just Audio export through Renderlist does not work...?

    The WAV or MP3 file has no Audio in it...

    It works with the Media Encoder.

    AE CC 2015.0.1

    Sorry, I was on Page 2 when I got on the Forum. I see I'm not the only one with this problem.

    incredibly, this is a Bug. Comon Adode...

  • How can you make Firefox the default browser when the normal route does not work?

    Im trying entirely chrome once a friend showed how my firefox got his act together. However I can't for the life of me set it as default browser. I tried the 'make firefox the default browser' button in firefox, making that opens the windows default programs Panel. Whenever I try to use the Panel she simply sets the Protocol http for every night, which is not yet installed! ( http://puu.sh/2vJHM ) I think that a possible solution would be to change the registry manually, but I don't know where to start.

    Thank you for your help, but I managed to fix it by myself. The registry key for the associations of html and URLs of firefox have been corrupted so I scoured their in regedit (at HKEY_CLASSES_ROOT\FirefoxHTML and HKEY_CLASSES_ROOT\FirefoxURL) and them deleted entirely, then redid them by clicking on the make default firefox button in the options.

  • I installed Adobe CS6 Encore on my computer, but when I click it does not work. Please notify.

    I downloaded and installed again CS6 on my laptop, Windows 8, 64-bit. But I could not run the software. Help, please...

    You run as administrator?

    (right-click on the icon and select "Run as Administrator" - it should now work properly)

  • Subselect with clause with and nvl() with case when as 2nd argument does not work

    I get an error for this one

    Select)

    with x

    (select 1 of the double)

    Select

    NVL (x.a, cases where x.a is null then fine otherwise 3 2)

    the double)

    of the double

    Error is:

    ORA-00904: 'X '. "' A ': invalid identifier

    ... related to the use of x.a in an expression box as the 2nd argument of nvl (...)

    Rgds,

    Frank

    Hello

    Maybe like this?

    Select)

    with x

    (select 1 of the double)

    Select

    NVL (x.a, case when x.a is null, then Itf_Pkg.Itf_Null_Value ("x.a', 'a null value'") or 3 end)

    X)

    of the double

  • Hi, I am trying to install items 12, when I install LR3 does not work, are the two compatible?

    LR3 is compatable with 12 elements. When I installed LR3 E12 seizes upward and won't work, if I have an instal E12 LR3 works perfectly.

    Barry

    Moving to this discussion on Photoshop Lightroom forum.

Maybe you are looking for

  • I can't find the start page in Firefox with the Set Up synchronization link

    I try to get the synchronization on my android device code find all my favorites on my main computer to the tablet-PC. The directions on the Mozilla support site say "Type set up button on the start page for Firefox Firefox Sync." Well I can not for

  • Saving and exporting passwords

    I think to update to El Capitan of Cougar and I want to save my passwords web various on the external drive first. I forgot where an episodes on my iMac I can find these. Help and reminders please. Thank you Rob

  • How to remove fixcleaner? When I go into the Control Panel, it does not work!

    Original title: how to remove fixcleaner functions, programs and program says Control Panel does not exist when I try to remove it. How can I get rid of him?

  • How indexing speeds up research

    Can someone explain what research are accelerated by indexing the hard drive, it's those who are executed by windows to know the search function in the start menu, or research capacity in other affected programs. If I could add, it would be interesti

  • micro sd card question

    I have an Acer 32-bit w3-810 iconia tablet. I inserted a 32 GB sd micro card to complete the storage capacity. Question: 1. when my C drive is full, all the following items are saved in my sd card? 2. is there a setting that will make all the 3rd par