Why this_date becoming null in dbms_job

Hi ,
This is how my code looks....
decalre
mysql VARCHAR2(1000);
BEGIN
mysql :='XXXXXXXXXXXX';
DBMS_JOB.submit (jobno, 'begin ' || mysql || '; end;');
commit;
END;
Using mysql I m invoking a procedure.When I am executing above block , jobs are getting inserted into dbms_jobs.
But they are not getting executed.In user_jobs table, this_date column is going as NULL.
ANy suggestions please

Hi,
930414 wrote:
Hi ,
This is how my code looks....
decalre
mysql VARCHAR2(1000);
BEGIN
mysql :='XXXXXXXXXXXX';
DBMS_JOB.submit (jobno, 'begin ' || mysql || '; end;');
commit;
END;
Using mysql I m invoking a procedure.When I am executing above block , jobs are getting inserted into dbms_jobs.
But they are not getting executed.In user_jobs table, this_date column is going as NULL.If you're getting any results other than error messages, then I don't believe you're really running this code.
DECLARE is mis-spelled, and jobno is not declared.
ANy suggestions pleasePost a complete test script that people can run to re-create the problem and test their ideas. Include the CREATE PROCEDURE code for XXXXXXXXXXXX, and some code that checks whether the procedure ran or not.
Why are you using dbms_jobs?
If you want to run a procedure over and over (say, once a day), or at a particular time, then use dbms_scheduler.
If you want to run the procedure just once, right away, then just run the procedure. Don't botherr with either dbms_jobs or dbms_scheduler.

Similar Messages

  • Window.opener becoming null after 10 seconds

    Wondering if anyone else has ran into this problem...
    function refreshMe()
    var openerObj = window.opener;
    window.close();
    alert(openerObj);
    openerObj.opener.location.href = openerObj.opener.location.href;
    openerObj has a value of [object DOMWindow] when a new window pops up. But when I wait approximately 10 seconds the value is becomes null.
    Any suggestions or advice you may have is appreciated.

    Basically I'm using Javascript to pop up a window (child). That window changes to another URL (sub child) after a user selection... Once that pop up form submission is complete I want to refresh the original parent window and close the sub child.
    To accomplish this I'm using window.opener.opener.location.href (the original URL) which should be saved by Safari. The problem is after approx. 10 seconds the window.opener variable becomes null. I'm guessing this is something related to Sarfari and not my code...
    However, I'm open to any suggestions. Thank you.

  • Data automatically become null in Oracle 11g DB

    We setup an Oracle 11g database for our application. Yesterday I have noted that in a table Contract_Owner the effective date for the owner FQYX1 is 30-Oct-12. But all of a sudden it has become NULL today. Im not sure how it has changed from 30-Oct-12 to NULL.
    Any ideas/thoughts will be appreciated greatly ....
    Edited by: 959598 on Apr 18, 2013 2:03 AM

    Oracle wouldn't change a value to a NULL unless it is told to do so.
    It could have been a user , a developer, a power user / super user.
    It could have been application code.
    It could have been a trigger.
    It could have been a mistakenly-written update.
    It could have been a scheduled job or a one-off job.
    Hemant K Chitale

  • Dropdown values becoming null after deployment

    Iam using jdev 10.1.3.4 and oc4j 10.1.3.4 server.
    we have a ADF table in a page in the application with three dropdowns. when i run the page in jdev the values are getting populated correctly for every record.But After deployment, for some records the values in the dropdowns are becoming null. we have 85 records in our Database for which only 5 records have this problem after deployment. But this works fine in local server.
    Any help will be appreciated.
    Thanks,
    Lakshmi.

    Thank you very much for answering...
    I can't send all the code because it needs plenty of files to run. I'll just describe the "critical" parts of it:
    - my main class extends JPanel and implements ActionListener + FocusListener + ListSelectionListener
    - the JTable is declared by private JTable myTable = null;
    - the table is inited by a call to a private void method, with the followind code:
       myTable = new JTable(cellData,colNames);
       myTable.setName("my_table");
       myTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
       //... - the table is then put in a scroll pane:
       sTable = new JScrollPane(myTable);and the scroll pane put in the NORTH of a JPanel.
    - I put a listener on the table by:
       myTable.getSelectionModel().addListSelectionListener(this);Here is the most part of the misfuntionning code... the table goes well until the listener generates events... then the myTable instance becomes NULL.
    Thanks in advance for thinking about the problem's causes,
    Cheers.

  • Existing session is becoming null when returning from jsp

    Hi Guys !
    I have an urgent requirement to meet in few days from now and got stuck with session problem in servlet.
    Scenario :-
    For the first time when i call a servlet a new sessoin is created and after some validations i forward to a jsp which has some links.
    I have printed sessoin ids from both the servlet and jsp and they are same.
    Now when i clicked on the link in jsp , the servlet is called but session is lost its becoming null.
    Servlet Code :
    HttpSession session = request.getSession(false);
    if(session ==null){
    // create session code ....using getSession(true)
    RequestDispatcher r = servletcontext.getRequestDispatcher(resp.encodeURL("/user.jsp"));
    jsp code:-
    <a href="<%=response.encodeURL(/application/servlet/ViewUser") %">" > View User </a>
    GUYS GIVE ME A SUGGESTION IN THIS REGARD AS SOON AS POSSIBLE .....
    Thanks in advance !
    Aparna</a>

    Hi,
    Session Create Code in Login file
    HttpSession hs = req.getSession( true );
    hs.setAttribute( "user", lb.getUsername() ); // username() is ur unique id
    Session Tracking code in all file
                   HttpSession hs=request.getSession();
                   if ( hs == null || hs.getAttribute( "user" ) == null )
                        response.sendRedirect ( "./index.jsp" );
    Logout code
    HttpSession hs=req.getSession(false);
                   hs.setAttribute( "user", null );
                   hs.invalidate();
                   res.sendRedirect ( "./index.jsp" );
    // I hope this snippet will help u..

  • Session becoming NULL

    I am working on struts application.
    When we restart Tomcat, it's working fine.
    After few days, session becoming null in particular area of the application. Otherthan that area, application is working fine. If we restart Tomcat, then it's works fine.
    There is no problem with database (MySQL). Previously, we started db with max_allowed_packets=50M as default.
    struts-config.xml contains the following content:
    <data-sources>
          <data-source key = "jdbc/RFS">
             <set-property property = "password" value = "rfs" />
             <set-property property = "minCount" value = "1" />
             <set-property property = "maxCount" value = "50" />
             <set-property property = "user" value = "rfs" />
             <set-property property = "driverClass" value = "com.mysql.jdbc.Driver" />
             <set-property property = "description" value = "" />
             <set-property property = "url" value = "jdbc:mysql://172.23.7.64:3306/rfs" />
             <set-property property = "readOnly" value = "false" />
             <set-property property = "autoCommit" value = "true" />
             <set-property property = "loginTimeout" value = "" />
          </data-source>
          </data-sources>Please let me know the usage of loginTimeout.

    Hi,
    Session Create Code in Login file
    HttpSession hs = req.getSession( true );
    hs.setAttribute( "user", lb.getUsername() ); // username() is ur unique id
    Session Tracking code in all file
                   HttpSession hs=request.getSession();
                   if ( hs == null || hs.getAttribute( "user" ) == null )
                        response.sendRedirect ( "./index.jsp" );
    Logout code
    HttpSession hs=req.getSession(false);
                   hs.setAttribute( "user", null );
                   hs.invalidate();
                   res.sendRedirect ( "./index.jsp" );
    // I hope this snippet will help u..

  • DynamoHttpServletRequest becoming null

    Hi,
    We are getting null pointer error because of DynamoHttpServletRequest becoming null. Any clue on what scenario request leak can happen in ATG. We are using ATG10.1.2.
    Also in logs I can see following warning before I encounter null request.
    atg.servlet.ServletUtil Detected currentRequest leak. Set trackSetCurrentRequest to true to debug this issue.
    I do not see any extra errors in the logs.

    as Shaik suggested check your web.xml it should have Filter and Filter url pattern mapping for example
    <filter>
    <filter-name>PageFilter</filter-name>
    <filter-class>atg.filter.dspjsp.PageFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>PageFilter</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>

  • Bindings are becoming null

    Hi All,
    I am working in ADF 10.1.3.3 .
    I have a class where I have overridden the Prepare Model method.
    In this I am executing a Query using Iterator Bindings for the VO.
    When the page is loaded Query is executing fine , but when I come from other page to my page, bindings are becoming null.
    What is the solution for this?
    Pls help me.
    Thanks,

    Hi,
    as stated in the developer guide, the binding content is not available between requests, which means that you wont have it available e.g. in a restore view phase
    Frank

  • Page values becoming null

    Hi,
    I've created a quotation form, In that, I've created a application process to get details of a customer from the customer master. If I'll enter Customer ID, details are coming automatically. The problem is, If the customer is not existing in the master, I'm entering customer details directly into the form without id and I'm saving these details in the quotation table. I can see the details also in the table. But when I'm editing the exiting quotation, I can see all details in the form, But When I press any button all other details are existing. But related to customer details are just becoming null. This is happening only in the form. Details are existing in the quotation table.
    What could be the problem.
    Thanks and Regards,
    Sudha.

    Hi Sudha,
    Without seeing the page this is my best guess as to what is happening.
    If you have created the form using the automated row fetch wizard it will by default have created a reset page process. When you resubmit the page this will be clearing the form items. If this is the case you will need to change the behavior of this process.
    cheers,
    Ron

  • Why Synonym becomes INVALID when changes are made on the related object ?

    Hi all,
    WHY SYNONYMS becomes invalid when changes are made on related OBJECTS ?
    Is there any specific reasons for this.?
    Is there any method or procedures to make the synonym VALID as soon as the we perform any alteration on the related object.
    Thanks
    Himabala

    Synonym will be validated when it is accessed, no need to take an action.

  • An instance was created, but it becomes null later

    I just start to work on an existing Java web application. I build a class. UserDAO which wrap a home-grown DB connection pool. And a client of this class is something like:
    Class A {
    private UserDAO userDAO;
    public A(){
    userDAO = new UserDAO();
    if(userDAO == null)
    System.out.println("The instance can't be created"):
    public void method1(..){
    userDAO.doSomething();
    }The instance in the method1 becomes null for a reason I don't understand. This instance is never set to null as any point of the application.
    When I test the code with a small piece of testing code, the situation doesn't occur, however.
    Can anyonee see any reasons?
    Thanks.

    uj_ wrote:
    vwuvancouver wrote:
    The instance in the method1 becomes null for a reason I don't understand. This instance is never set to null as any point of the application.Maybe the A() constructor isn't run. Maybe there's another constructor that's used which doesn't assign an object to userDAO?
    Or maybe userDAO is reset to null somewhere in the class.
    It can only be one of these.There's a third - albeit very unlikely - option. The omitted code from method1 has a local reference called userDAO that isn't assigned to anything. Unlikely, but it's a mistake people have made in the past. I'm with you, though, it's probably that the default constructor ain't being called

  • On making call to Oracle procedures from Java, Value becomes null on oracle

    We are using some user defined Oracle data types in my Java/J2EE application
    and some of them are Oracle collections(ex. VARRAY).
    We are making a call to Procedures/Functions from Java, there are some
    parameters of user defined data types declared in the
    procedures/functions, from java the values are properly setting to these
    user defined data type parameters and sending to Procedures.
    We are not getting any exception at Java side and Oracle side and values
    are becoming blank/null at oracle procedure side for the parameters of
    user defined data types.
    But when do the count of collection of user defined data type then it is
    properly giving the size of collection(VARRAY).
    When we are trying to read the values from the collection(VARRAY) it is
    giving blank/null value and there is no exception.
    Please let me know if you have any suggestion on this?

    user7671994 wrote:
    When we are trying to read the values from the collection(VARRAY) it is
    giving blank/null value and there is no exception.If you are talking about VARCHAR2 parameters of the objects - then you should add orai18n.jar to classpath.

  • Can't figure out why this object = null

    I have a component which is used as an itemrenderer(in a
    datagrid). Inside the checkIfEditable() function it can't seem to
    find "img". It says it's null. I've got no clue why it would do
    that? If I look at the this.img variable during debugging it also
    says null.

    I fixed it by removing the HBox from the itemrenderer's
    component and doing like this:
    <mx:DataGridColumn headerText="" dataField="Open">
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox horizontalAlign="center" width="18">
    <local:OpenKastRenderer data="{data}"
    isEditable="{isEditable}"/>
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    Altough now i get another error: Access of undefined property
    isEditable.(it's talking about {isEditable})
    I don't get why it says that, isEditable is defined as
    [Bindable]
    public var isEditable:int = new int();
    outside of any function and it's set by another component.
    EDIT: nevermind, i've made it static

  • Why %g7 becomes in my driver ?

    Hi
    Is it possible for applications (user-level) to write into %g7 ?
    I have a psuedo driver which exports few ioctls to user-level applications
    I am getting a recursive trap due to %g7 becoming zero in side kernel.
    Final system hangs (blockout).
    Is there any reason why %g7 should get correpted ?
    Thanks
    Sini

    It is not possible to write a 0 into %g7 from user level (it should cause a trap).
    Try disassembling your pseudo driver and see if you can
    find a place where you are doing this. You can disassemble
    by running
         <pre>/usr/ccs/bin/dis <i>kernel_module</i></pre>
    where <i>kernel_module</i> is your compiled driver.
    Also, try loading obpsym before using your driver. Then,
    when you get a watchdog reset, you should be able to run ctrace
    from the ok prompt to get a human readable stack backtrace.
    <pre>man obpsym</pre>
    will give more info.
    max

  • Why number becomes slow when after formatting function is used?

    When changing something at Numbers (table, font, colors, etc), it becomes slower. I don't understant why, as the PC is brand new...

    Hi Nano,
    How large is the table that you are formatting? Is there a way to separate your results (with formatting) in a small table *away* from your main data table?
    Regards,
    Ian.

Maybe you are looking for