Export using a cronjob won't work

Hello,
I am using RHEL4 and oracle. I am trying to set a cronjob that'll make a schema export. The file I edited is under /home and it's called export.sh. When I run it manually (./export.sh )as the oracle user, it runs without problem. When I set cronjob, it doesn't run. To set my cronjob, I entered the following cronjob -e as oracle user and I entered the following 30 18 * * * /home/export.sh so the job executes everyday throughout the year at 6:30 pm. I also set execute provilege on that file. What can be the issue? Any tips to solve it?
Thanks in advance.

Hello,
sb92075,here's the result of the first command (env | sort)
[oracle@beretta ~]$ env | sort
COLORTERM=gnome-terminal
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-3eMdbx5fBl
DESKTOP_SESSION=default
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
GDMSESSION=default
GNOME_DESKTOP_SESSION_ID=Default
GNOME_KEYRING_SOCKET=/tmp/keyring-maHfaA/socket
GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=beretta
INPUTRC=/etc/inputrc
KDEDIR=/usr
LANG=fr_FR.UTF-8
LD_LIBRARY=/ora_soft/oracle/product/10.2.0/db_1/Lib
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/oracle
OLDPWD=/backup/export
ORACLE_HOME=/ora_soft/oracle/product/10.2.0/db_1
ORACLE_SID=PRIMARY
PATH=/ora_soft/oracle/product/10.2.0/db_1/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin
PWD=/home/oracle
SESSION_MANAGER=local/beretta:/tmp/.ICE-unix/4225
SHELL=/bin/bash
SHLVL=2
SSH_AGENT_PID=4277
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-cfUDEV4225/agent.4225
TERM=xterm
TNS_ADMIN=/ora_soft/oracle/product/10.2.0/db_1/network/admin
USER=oracle
_=/usr/bin/env
WINDOWID=33588613
XAUTHORITY=/home/oracle/.XauthorityHere's the result of the second command (ls -la)
[oracle@beretta ~]$ ls -la
total 614896
drwx------  18 oracle oinstall      4096 déc 22 13:58 .
drwxr-xrwx   7 root   root          4096 déc 22 13:55 ..
-rw-------   1 oracle oinstall      9551 déc 20 09:49 .bash_history
-rw-r--r--   1 oracle oinstall        24 nov 20 19:23 .bash_logout
-rw-r--r--   1 oracle oinstall       397 nov 21 14:00 .bash_profile
-rw-r--r--   1 oracle oinstall       124 nov 20 19:23 .bashrc
-rw-r--r--   1 oracle oinstall      6625 nov 21 15:22 bkpctl_prim_1.ora
-rw-r--r--   1 oracle oinstall       737 nov 21 16:02 bkpctl_prim_2.ora
-rw-r--r--   1 oracle oinstall      6625 nov 21 15:37 bkpctl_prim.ora
drwxr-xr-x   3 oracle oinstall      4096 nov 20 22:45 .config
-rw-r--r--   1 oracle oinstall      6401 déc  6 10:23 controlfile_primary.ora
drwxr-xr-x   2 oracle oinstall      4096 nov 30 22:28 Desktop
-rw-------   1 oracle oinstall        26 nov 20 22:45 .dmrc
-rw-r--r--   1 oracle oinstall     12288 déc  6 10:39 .duplicate.ora.swp
-rw-r--r--   1 oracle oinstall      1314 déc  8 20:12 dup.ora
drwxr-x---   2 oracle oinstall      4096 nov 20 22:45 .eggcups
-rw-r--r--   1 oracle oinstall       383 nov 20 19:23 .emacs
-rw-------   1 oracle oinstall        16 déc 19 21:56 .esd_auth
drwxr-xr-x   5 oracle oinstall      4096 nov 24 14:33 .evolution
-rwxr--r--   1 oracle oinstall        89 déc 20 01:47 export.sh
drwx------   4 oracle oinstall      4096 déc 20 02:15 .gconf
drwx------   2 oracle oinstall      4096 déc 20 10:02 .gconfd
drwx------   4 oracle oinstall      4096 nov 20 22:45 .gnome
drwx------   7 oracle oinstall      4096 déc 20 01:58 .gnome2
drwx------   2 oracle oinstall      4096 nov 20 22:45 .gnome2_private
drwxr-xr-x   2 oracle oinstall      4096 nov 20 22:45 .gstreamer-0.8
-rw-r--r--   1 oracle oinstall       120 nov 20 19:23 .gtkrc
-rw-r--r--   1 oracle oinstall       137 nov 20 22:45 .gtkrc-1.2-gnome2
-rw-------   1 oracle oinstall      1932 déc 20 02:15 .ICEauthority
drwxr-xr-x   3 oracle oinstall      4096 nov 20 19:23 .kde
-rw-r--r--   1 oracle oinstall       223 déc  3 09:10 lok.log
-rwxr-xr-x   1 oracle oinstall 628570112 déc  3 09:35 m4prod_homolo_.dmp
-rw-r--r--   1 oracle oinstall    229714 déc  3 11:12 m4prod.log
drwx------   3 oracle oinstall      4096 nov 20 22:45 .metacity
drwx------   3 oracle oinstall      4096 nov 21 16:10 .mozilla
drwxr-xr-x   3 oracle oinstall      4096 nov 20 22:45 .nautilus
-rw-r-----   1 oracle oinstall       906 déc 20 09:50 oracle
drwxrwx---   6 oracle oinstall      4096 nov 21 00:14 oraInventory
-rw-r--r--   1 oracle oinstall     12288 déc  6 10:26 .pfile_dup_primary.ora.swp
-rw-------   1 oracle oinstall         0 nov 20 22:45 .recently-used
-rw-------   1 oracle oinstall       612 nov 24 14:32 .rhn-applet.conf
-rw-r-----   1 oracle oinstall      2966 nov 21 14:17 spfileprimary_1.ora
-rw-r--r--   1 oracle oinstall      1360 nov 21 15:58 spfileprimary_2.ora
-rw-r--r--   1 oracle oinstall      2987 nov 24 09:55 spfileprimary.ora
-rw-r--r--   1 oracle oinstall       709 déc  8 13:24 sqlnet.log
drwx------   2 oracle oinstall      4096 nov 30 22:28 .Trash
-rw-------   1 oracle oinstall       118 déc 20 02:15 .Xauthority
-rw-r--r--   1 oracle oinstall       658 nov 20 19:23 .zshrc
[oracle@beretta ~]$skvaishi,Ji Li, ordba, I have only one database on that Linux box and I have configured the .bash_profile file so the variables are taken taken into account at startup time. Do I need again to explicitly add them environnement variables in my scripts? The .profile file seems not to exist. I checked in the $HOME/ no such file. Besides, I tried all the tips u suggested and for some, it worked without problem and for some other I got an email of the sort I posted above. Say I want to write another script to backup my database, should I also add the line u all suggested in my RMAN script? Anyway, am gonna test that out see how it goes and let you know. Thanks in advance.

Similar Messages

  • When powering off my iPod touch, any application (facebook, viber etc)installed using App Store won't work again

    When powering off my iPod touch, any application (facebook, viber etc)installed using App Store won't work again
    How to solve this issue?

    Try a hard reset first. Press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    If still no luck, try downloading and installing a new app from the App Store.  Doing so has cleared the issue up for several users.
    B-rock

  • Import using develop presets won't work!

    Hi all,
    I just upgraded from LR2 to LR3. A lot to hate in this new version. But I suppose one needs to adjust and no doubt I will, but there is one thing that is about to drive me up the wall. Something I haven't been able to fix, so here I am, looking for a bit of help.
    Here's the problem:
    Because I don't like Lightroom's Sharpening & Noise Reduction settings, I used a preset in LR2 that I applied automatically when importing my images into LR. Now, with Lightroom 3 this just won't work properly and I get exclamation marks, indicating those images are not in the 2010 develop environment. I realised I was using my old presets, created in LR2, so that made sense. So I first deleted all my old presets and to make sure, I also deleted my metadata preset that I also apply on import. I couldn't find a way to delete those presets from within Lightroom by the way. So I just went to the library and trashed them manually...
    Next:
    I open LR3. Now I have no user presets anymore, of any kind. I then import the first image of today's shoot. In the develop module I make sure that I'm working in the 2010 process environment. I set Sharpening and Noise Reduction to what I want them to be and make them a preset. Then I made another preset for my metadata. But after importing the rest of today's shoot with the presets I have just created, it will not accept the 2010 settings and I get the exclamation mark with every image. I have checked that the culprit is not the metadata file. If I use only that to import an image and leave the Develop Settings on None, all is well, and the image is regarded as being in the 2010 process state. If I then *manually* apply my earlier created Noise Reduction/Sharpening preset, it accepts it and all is well. But as soon as I try to apply that same preset again when importing my images, then, when I go to the develop module, the image is suddenly in the 2003 environment again and I get the exclamation marks. I have tried everything I can think of but I cannot escape it any longer: I have been defeated by Lightroom 3. What on earth am I doing wrong here? Anybody?

    Yes, I get the same thing with the sliders being greyed out. Funny thing is that the sliders *are* set exactly as in my preset and when I click 'yes update' to 2010 standards, the settings don't change but only the sliders become accessible. The thing is that I really don't want to be doing that with every import, even if you can do the whole batch at once. What I don't understand is that when I import with the preset turned off and apply it in Lightroom's Develop Module, it accepts it without a problem but that when I use the same preset on import, it won't work properly.
    Now what the poster in the other thread said was:
    "When I saved a new preset and selected to also save the process version,  a line in the preset was created:  ProcessVersion = "5.7".  When I cut  and paste that into all my other presets then the sliders were all  active when I used them."
    I have no idea what he is talking about or how one would do that. When I create a preset I simply click the + sign and in the pop up window select what I want, give it a name and that's it.
    Edit: Sorry, I apparently overlooked the Process Version box in the preset panel! Must have been a case of not seeing the forest for the trees. Problem solved. Thanks.

  • Disc image file exported from Encore CS4 won't work

    Hello,
    I have a problem concerning the export of a disc image file in Encore CS4. I recently upgraded to CS4 and wanted to continue my project which I started editing with CS3. While working with CS3 I already did image files from this project for burning and testing the DVD. Back then it worked with no problems.
    However, since using the CS4 version Encore does the image without any problem, but I can't use the image file in any way afterwards. I mounted it with Daemon Tools as I did before, but the DVD won't play in any software DVD player I have installed (Media Player Classic, Windows Media Player, Nero Showtime) nor can I access the file structure over a file manager. Nevertheless NeroInfoTool and ImgBurn say there is a DVD in the virtual drive. Then I exported the DVD project into a folder and now I can see the files in the file manger but again no player will play it.
    Has anyone experienced this before and is able to help? It would be very appreciated since I don't want to downgrade back to CS3 :-)
    It's Encore CS4, Version 4.0.1.048 on a 2,8 GHz HT CPU, 2 GB RAM, Nvidia Geforce 6800 UT, lots of HDD space, XP + SP3.
    Thank you,
    Chris...

    Hey,
    thank you both. As I said no player accepts the project exported to a folder. It doesn't matter if I point the player to the video_ts.ifo or just the folder - it won't play. As a consequence I re-installed Encore CS3 in which exporting worked fine and guess what - the exported image and folder output doesn't work either. Since it worked before in CS3 it comes down to the conclusion that either I did some editing to the project that screwed the project or Encore CS4 did. Checking for mistakes in the project and previewing in inside CS4 everything seems fine. So might it be CS4 that ****** up the project file??? I mean it's full of strange bugs so it could easily be that. I even updated my Daemon Tools yesterday and it won't make a difference.
    Or could it be something else I haven't considered yet? Any ideas? I just don't want to build the whole project again which might not even work if it's some other error. This is a desperate call for help
    Thanks,
    Chris...

  • Used iPod That Won't Work

    So my friend gave me her old iPod touch. (First generation) and before she did, she had to delete all of her contacts and photos. It was on a screen where it had a loading bar. I waited for that to finnish. After I did, all it shows now is the other end of the USB cord and the iTunes logo. I pushed the on/off button, and the bottom button. It won't let me use it. How do I use my iPod?

    Try using RecBoot to kick it out of recovery mode. If that does not work, restore.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • Exporting Anamorphic 16:9 won't work

    For an academic assignment I have download some You Tube videos to place in a presentation, a couple of them are incorrect aspect ratio, i.e squashed and tall, I've imported them into FCP, then changed the "Settings" to Anamorphic 16:9, and the sequence changes in the Viewer to the correct aspect ratio, but when I export as a Quicktime Movie it goes back to it's squashed and tall 4:3 aspect ratio, am I missing something? Any ideas?

    Hey m0xee,
    I didn't actually claim it would work with your movie because it's hard to know for sure what the properties of your sequence are. That's how it works with DV NTSC widescreen movies.
    IF your sequence is NTSC DV Widescreen. If its properties show 720x480 with the anamorphic checkbox ticked and compressor is DV NTSC. If you export Quicktime Movie with settings same as source...if all those things are true the movie will behave as I said.
    However, that movie is not suitable for general distribution on the web because of its non-square pixels (and also because DV is not a good codec for web videos). For that purpose it should be changed to square pixel dimensions and a codec like H.264.
    Tom

  • Video wouldn't play on iPod; Used Videora & still won't work

    Hey guys, I have a 30 GB Video iPod, and I'm a bit new at this. I have some videos I downloaded and when I tried putting them into my iPod, it said it could not be played, since it was in .avi format.
    But then, I found out about Videora, so I decided to try to convert my videos in Videora so it can play on my iPod video. Now, if anyone has used Videora before, they know that they have alot of options like MPEG-4/320x240/768 kpbs Stereo/128 kbps to H264/320x240/16:9/640 kpbs Stereo/128 Kpbs. When my video finished converting, I tried putting it into my iPod again, and it said it could not be played, even though it was in .mp4 format.
    Could someone please tell me which one I should use, MPEG-4 or H264 ? And tell me what I'm doing wrong? I used Videora once to download a video, and now I can't seem to remember what I did. PLEASE HELP!?
      Windows XP  
      Windows XP  

    im with you im having the same problem i came from using a 30 gb zune and got tired of there no playing video bull and bad customer service and i cant figure out my music vids on my new 30 gb ipod video also

  • External back up won't work on Yosemite Macbook Pro

    I downloaded OS X Yosemite a couple of days ago, works well. I went to back up my Macbook Pro on the external hard drive I have always used and it won't work, it just keeps saying preparing back up. It is a WD My Passport hard drive. I tried removing the hard drive and selecting it to use a a back up but still wouldn't work. It has worked fine every time before downloading Yosemite. Any suggestions would be greatly appreciated.

    I know that no one has replied yet, but figured out the issue.  I called Applecare and they couldn't figure it out, so sent me to a genuis at the Apple store.  They too couldn't figure it out and told me that it was a firmware issue with the Toshiba dvd external drive.  When I got home, I thought I would try one more thing.  I hooked it up to a powered hub and it works perfectly.  I'm not sure why no one else thought of it, but glad that I did.

  • Won't work unless plugged in

    My 5th gen. iPod is about a year and a half old and has hardly been used because it WON'T WORK UNLESS IT'S PLUGGED IN! Whenever I plug it into my MacBook, it turns on, restores, syncs, etc. But whenever it is unplugged, it immediately shuts off and won't work. Help?!

    Take the iPod Nano to an Apple store or an AASP.  Whichever is more convenient for you.  More than likely you need a new battery.

  • Exporting from iMovie to video iPod won't work

    Hello everybody,
    I am just fooling around with the new iPod my wife gave me for my birthday.
    I am trying to get a movie I just finished into my iPod.
    As my program is in German, I hope I'll use the correct English words .
    In "File" there is the button "Send"; when You choose "Quicktime" and "own settings" there'll be a window "export as...", where You choose "film --> iPod (320*240)" and push the button.
    After rendering I dragged the outcome into iTunes, and there from the bibliotheque to the iPod. After that I keep getting the error message (roughly) that my film could not be copied, as the iPod can't play back films like that. There is a link where they promise You further information, but that leads to nowhere.
    The film plays back from the iTunes bibliotheque without problem, it's suffix is *.m4v.
    Has anybody got a solution (or an idea, at least)?
    Greetings from Mannheim, Germany
    Torsten
    G 5   Mac OS X (10.4.3)  

    Are you using this article?
    http://docs.info.apple.com/article.html?artnum=302559
    (Unfortunately it's available only in English, French
    and Japanese.)
    Thanks for the quick reply.
    I didn't know this article, but that's exactly what I did; I just used the greek word "bibliotheque" instead of the latin "library" .
    And the suffix of the file after rendering is *.m4v as in the above mentioned article.
    Still it won't work.
    What can be wrong?
    Greetings
    Torsten

  • My Viewsonic monitor won't work with the Imac using the Mini Port to DVI adapter.

    My Viewsonic monitor won't work with the Imac using the Mini Port to DVI adapter. I also tried the HDMI to DVI adapter ane the Mac-Mini with same result. The monitor does work on my older Macbook Pro that has the DVI connector. Is it a Software/Driver issue ?

    Should be extremely simple, please carefully read Connect multiple displays to your Mac. If you still have problems then it's probably a cable issue that would be resolved by replacing the adapter cable. You should be using this adapter. If you are using a third party adapter that might be your problem!

  • My itunes won't work so i tried reinstalling and when it starts an error pops up that says: "the feature you are trying to use is on a network resource that is unavailable. click ok to try again, or enter an alternate path to a folder containing the insta

    my itunes won't work so i tried reinstalling and when it starts an error pops up that says:
    "the feature you are trying to use is on a network resource that is unavailable. click ok to try again, or enter an alternate path to a folder containing the installation package 'Itunes.msi' in the box below
    please help, its frustrating

    first, head into your Add/Remove programs and uninstall your QuickTime. if it goes, good. if it doesn't, we'll just attend to it when we attend to itunes.
    next, download and install the revo uninstaller http://http://www.revouninstaller.com/revo_uninstaller_free_download.html. use it to clear any existing itunes and/or QuickTime installation configuration information from the PC.
           next download itunes. it worked for me hope this is helpful!!
        oonce you get into the revo uninstallergo thru to delete itunes hit uninstall on the itunes icon then you will go thru to it will tell u the same nmessage about the feature and network hit cancell then go thru and hit scan (make sure bthe advance scan button is pushed) this will take awhile but go thru the list and hit everything associated with itunes. hit delete then install itunes again. it worked for me hope it works for you!

  • I am trying to connect my macbook air through my led tv using hdmi but it won't work. I could not find arrangement option on my system preference. how do i make it appear again on my system preference so i can mirror it through my tv. thanks

    I am trying to connect my macbook air through my led tv using hdmi but it won't work. I could not find arrangement option on my system preference. how do i make it appear again on my system preference so i can mirror it through my tv. thanks

    Hi jenette,
    If you are having issues using an HDTV via HDMI as an external display to your MacBook Air, you may find the following article helpful:
    OS X: How to use multiple displays with your Mac in Mountain Lion and earlier
    http://support.apple.com/kb/ht5019
    (Note: You will generally only see the arrangement option in Displays when you are configured to use the external display in Extended Desktop mode; there is no arrangement in Mirroring as both screens are showing the same image.)
    Regards,
    - Brenden

  • I just got an iPhone 5S, now when I try to use my old iPad the apps won't work because they are syncing with my new phone. Can I have the same account for an old iPad and a new iPhone?

    I just got an iPhone 5S, now when I try to use my old iPad the apps won't work because they are syncing with my new phone. Can I have the same account for an old iPad and a new iPhone?

    Connect your iPad to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch
    Make sure you have the Latest Version of iTunes (v11) Installed on your computer
    iTunes free download from www.itunes.com/download

  • My ipod touch used to sync on my old Hp laptop but now it's not even recognized as a device but will still charge on my new asus windows laptop. Itunes on my old laptop is missing something and won't work and I've reinstalled itunes on the HP already.

    My ipod touch used to sync on my old Hp laptop but now it's not even recognized as a device but will still charge on my new asus windows laptop. Itunes on my old laptop is missing something and won't work and I've reinstalled itunes on the HP already. Could somebody please help me to get my ipod touch to sync on the Asus laptop please?!

    Hello hieunguyen2012,
    The following article can help get your iPhone to appear in iTunes on your new laptop.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
    Allen

Maybe you are looking for

  • How can i print a text message

    how can i print text meaasge's

  • Create view link programatically

    Hi all, I am working on this weird requirement. Basically, I have to create a detail table on a search resullt table. The search result is seeded search, for Item Advance search in Oracle PIM module which is not based upon a VO. The search result tab

  • 785GM-P45 boot to CD

    I got everything set up for what I need, but I need to boot to a CD and do some partitioning.  But im running my setup through a HDTV and I dont really see a post until the graphics come up, then it just boots into windows server. What key can I mash

  • Itouch is disabled - cannot get it to work or show up in itunes

    My daughters itouch is disabled. She forgot her password. I have a new laptop and all of our other itouchs and ipads are syncing fine. This one is not being recognized. How can I get it to show up in itunes so we can reset it? Is there another way ar

  • Home page address is displaying additional information???

    Hello all, I am using iweb '09 and am running into something odd about (most definitely my fault) the text of my home page as it looks in the browser address bar. For example....i want my home page to just be www.test.com, however it is currently inc