Using cron with exp

Hi,
I want to schedule some backups for certain tables at night... any idea about use cron with exp....
i tried as follows:
crontab -ei made the next line:
00 20 * * * exp userid=system/manager file=tt00.dmp tables=product
when i confirm the schedule is ok.... but it doenst work
Any help will be appreciated

thanks robert,
i do it.... here its the solution:
i made an script which contains:
ORACLE_SID=mySid
export ORACLE_SID
ORACLE_HOME=/oracle/product/8.1.7
export ORACLE_HOME
$ORACLE_HOME/bin/exp userid=bob/boby file=/home/user/bob/exporta.dmp tables=factventa,producto,cliente,acumventa
the script was save as name.bat
then i use cron as follows:
crontab -e
and in the file i wrote:
00 23 * * * /home/user/bob/name.bat
thats all !!!

Similar Messages

  • Using Cron to schedule an rsync with Leopard?

    Firstly, just wondering if any changes have taken place from Tiger to 10.5.5 in writing and running Cron command lines..I tried using Cron to run rsync at a scheduled time and accessing a command line on my desktop that works on its own, but didn't work. Would I have to put the command line into a specific location like Documents..??
    ANy help would awesome!
    Thanks
    Mark

    50 15 * * * sh ~/Documents/mySOKdown.command
    Yes it looks right, but that doesn't mean anything when dealing with cron.
    First, I've seen systems where cron was running on a different timezone than what you are in. This is why I always try the
    * * * * * date >/tmp/tmp.cron
    which will tell me 2 things. First it will tell me cron is actually working as I will only get a /tmp/tmp.cron file with the current time and date in it if cront is working. The 2nd thing it will tell me is if cron is working in the same timezone that I'm working in.
    Second, the cron environment does not include all the environment variables you normally see when you are using a terminal session. Here are the environment variables I see on my system:
    SHELL=/bin/sh
    USER=harris
    PATH=/usr/bin:/bin
    PWD=/Users/harris
    SHLVL=1
    HOME=/Users/harris
    LOGNAME=harris
    Make sure you do not depend on missing environment variables.
    Again, I suggest you check to see if cron has reported any errors to you via /usr/bin/mail (NOTE: this is not Apple Mail).

  • Backup with Exp,  Can  It used in DB with Archive Log Mode ??

    I need information about if When I activate Archive log mode in my database ,after This I will use all before backups with Exp in full,Table,user ...recovery mode .
    any advice are welcome
    thanks
    Jimmy

    If you are using archive log mode, you should back up your database by regularly backing up
    your data files. If you lose a tablespace due to a defecitve disk or need to do a point-in-time recovery due to a user error, you restore your latest copy (if doing point-in-time the latest copy before the
    user error) of the relevant data files an then roll forward using the archived log.
    You can not restore your database from an export and then roll forward using the archived
    logs.
    HTH
    Marcus Geselle

  • Schedule export using cron?

    Hi
    I want to schedule the export of a table using cron job.
    create the .sh file as below
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=/opt/oracle/product/9.2.6/db_1
    export ORACLE_SID=orcl
    /opt/oracle/product/9.2.6/db_1/bin/exp system/manager file=/home/oracle/test.dmp log=/home/oracle/test.log tables=table_name
    $crontab -l
    43 16 * * * /home/oracle/export.sh > /home/oracle/export.log
    but when this crontab job runs export is not performed and i can't file the export dump file and logile.
    test.log file is getting created with nothing in it.
    Can any one let me know what is wrong with the shell script.
    Regards,

    Hi ,
    Can you please change the permission of your export.sh file
    $chmod 775 export.sh.
    Study the below link for more details.
    http://www.elated.com/articles/understanding-permissions/
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/

  • Problem with EXP 10.1.0.3.0

    I have problem with EXP in Oracle (linux Fedora 3). I used command as oracle:
    exp userid=user/pass@server file=/tmp/dmp.dmp
    and I got message.
    Export: Release 10.1.0.3.0 - Production on Fri Mar 4 10:13:40 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    EXP-00056: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    EXP-00000: Export terminated unsuccessfully
    Witch tables or views does not exist ? Does export from oracle 10g clinet work with 8.1.7 database ?
    I used expcat.sql from rdbms.

    From 10.1.0 to 8.1.7 => Use the EXPORT 8.1.7 to export the data from the
    10.1.0 database and IMPORT 8.1.7 to import the
    data into the 8.1.7 database.more info on the imp/exp matrix :
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=132904.1

  • How to multiply the measured signal with exp(-t/T) and integrate it?

    For my optimum filtering, I should multiply the measured signal S(t) with exp(-t/T) and integrate these from 0 to tmax. Here, T is the time constant tau.
    Does anyone know how to do it in LabVIEW?

    Sorry, this slipped off my horizon ...Thanks for the reminder.
    OK, while I don't understand the reasoning behind the algorithm, I have implemented Case (1) and Case (3) with a simple demo using static data. It's just simple math, nothing fancy.
    (I haven't fully tested these, so there might be bugs. They are in LabVIEW 7.1, do you need a lower version?)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    IntegralFilterDemoCase1.vi ‏40 KB
    IntegralFilterDemoCase3.vi ‏62 KB

  • Using cron for a Cinnamon wallpaper slideshow

    Hey guys,
    I'm trying to use cron to change my wallpaper for Cinnamon but I am having some issues.
    The cronjob is:
    */2 * * * * DISPLAY=:0 gsettings set org.gnome.desktop.background picture-uri "file://"$(find /home/bryan/.wallpapers/ -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" | shuf -n1)
    I know it's a doozy, but it should work.  The problem is that the wallpaper won't update unless I open up the GUI wallpaper changer for gnome. Does anyone know of any work arounds that could help me out?

    try this script with your cron job:
    #!/bin/bash
    # Script to randomly set Background from files in a directory
    # Directory Containing Pictures
    DIR="/home/garry/Pictures/"
    # Command to Select a random jpg file from directory
    # Delete the *.jpg to select any file but it may return a folder
    PIC=$(ls $DIR/*.jpg | shuf -n 1)
    # Command to set Background Image
    feh --bg-fill $PIC
    just modify your pictures path and you are good to go.

  • How to find who is login Portal by using webdynpro with java

    Hi Friend
    One Supplier( Abc) Login into the portal . How to find it "ABC"  user login into portal by using webdynpro with java
    My requirement is
    One Supplier login in to the portal that supper having one Vendor number ( it is fixed)
    Exp: Portal user vijay login his vendor number 12345 like
            Suppose u r login into the portal u have one vendor number like this
    i have to desine one screen that is find PO'Status Screen, In that Screen, Meterial Group,line number,PO Status and Vendor number is avaliable.
    Supplier login in to that portal he is finding some items.
    this my Requirement. i m creating this screen ..How to fined user name from portal .once i have to find this user name by using webdybpro with java. I have to assine vendor number
    Regards
    Vijay

    Hello Vijay,
    You can wirte the following code to get the logged in user's ID
    try {
              IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
              IUser sapUser = wdClientUser.getSAPUser();
              IUserAccount[] acct = sapUser.getUserAccounts();
              String str = acct[0].getDisplayName();
              wdComponentAPI.getMessageManager().reportSuccess("user "+ str);
         } catch (WDUMException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         } catch (UMException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    You need security api for using it make sure that is present.
    Thanks,
    Hope this will help
    Sarbjeet

  • HT202667 Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get it transferred over from her Home Sharing account to mine so that I can use it with my PC?

    Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get her Home Sharing account transferred over to mine so that I can use it with my PC? Thanks!

    As  Winston Churchill wrote, however you might want to do a factory reset on the Apple TV.
    This way all information pertaining to your daughter will be removed from the device. Specifically if see was sign into any of the streaming service, Netflix, Hulu, etc. her credentials will still be associated with this Apple TV, doing  a factory reset will remove all that and make it as if you purchased the device and just plugged it in.
    regards

  • OPEN CURSOR using a WITH clause in the select query

    Hi,
    I am using Oracle 9i. I have a requirement where I have a REFCURSOR as an OUT parameter for my procedure. I have declared the TYPE and created the procedure.
    In the procedure, I am using OPEN <cursor_name> FOR <query>;
    Ideally this works in most of the cases that I have tried earlier. However, in the current case I am using a WITH clause in my query to get the results.
    I need help in understanding if the above mentioned syntax would not allow me to use the WITH clause in the query.

    What error do you get , seems to work ok for me on 10g
    SQL> begin
      2  open :cv for 'with x as (select * from emp)  select * from x';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> print :cv
         EMPNO
    ENAME
    JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7521
    WARD
    SALESMAN        7698 22-FEB-81       1250        500         30
          7566
    JONES
    MANAGER         7839 02-APR-81       2975                    20
         EMPNO

  • My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    In the Music tab of iTunes, do you have 'Include Voice Memos' checked?

  • I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way?

    I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way? I appreciate that it is a different computer but I am now the end user of both devices and I was just wondering if it was possible.
    Thanks,
    Sean

    The answer would be in your software license agreement for Aperture. However if you cannot locate it you can ask in the Aperture forum, the link for that is:
    https://discussions.apple.com/community/professional_applications/aperture
    However I believe you can have Aperture installed on two machines however only one may be using it at a time.
    On the new iMac launch the Mac App Store - Purchased - look for Aperture and download to your new machine.

  • How do I use LDAP with iMQ 2.0?

    I am looking for an example to see how to use LDAP with iMQ 2.0.
    I was able to set up the config settings to access a local LDAP,
    but iMQ authentication still rejects valid logins.
    Let me know if I can find more info someplace.

    You can also find an example I put togther in the Sun One knowledge base.
    If you go here:
    http://knowledgebase.iplanet.com/NASApp/ikb/index.jsp
    Search for article 7772
    Alternatively here is the direct link
    http://knowledgebase.iplanet.com/ikb/kb/articles/7772.html

  • How do you use Struts with Jboss Portal

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

  • How do I use my apple bluetooth keyboard with touch and will I still be able to use it with my ipad?

    How do I use my apple bluetooth keyboard with touch and will I still be able to use it with my ipad?

    iPod touch User Guide (For iOS 4.3 Software)

Maybe you are looking for

  • Search Results as in SDN

    Hello Gurus, I want the search results to be displayed exactly like we have in SDN. I mean search result should be displayed in the same window rather than opening a new window. Also when click on a document that document should open in the same wind

  • InDesign lock files, read only permissions...

    I've had this strange problem for over a year now, unsure as to why it was happening. Now I've realized what the problem is, but I don't know how to fix it. We build ads in InDesign. Production, who builds the ads, has basically full control to the a

  • Is it possible to transport ABAP querys/ Report painter between systems

    Hi all Is it possible to transport ABAP querys/ Report painter object between one r/3 system and another ?

  • JSP with MySQL connection in Tomcat6.0.20

    Hi i'm using MySQL5.1, Tomcat6.0.20 in my project, There i'm not able to connect to the database. it's giving the error. My program is : <%@ page language="java" import="java.sql.*" %> <%      String driver = "org.gjt.mm.mysql.Driver";      Class.for

  • Corruption of Icons

    I don't know what happened but all of a sudden all the new icons that get displayed on my desktop and maybe other places (i haven't checked everything) are showing up as randowm icons. I just uploaded 7 pictures from my camera and they are all .jpg b