Dbconsole scheduled job question

I have successfully re-created my dbconsole and repository. I then clicked on the 'Jobs' link and created a SQL Script job to execute once a day.
My code for this job is as follows:
set serveroutput on;
exec system.export_db;
EXPORT_DB is a procedure which uses the DataPump API to perform a daily export of a few db schemas. I have this job running successfully on a dozen other servers with no issues at all.
However, on this particular server, I get the following error, and I can't figure out what could possibly be different:
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'SYSTEM.EXPORT_DB' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
I can run the same job through SQLPlus, but not through the DBControl. I added the same procedure to the SYS schema, but always the same error.
Normally, I know that I would need to grant execute permissions on the procedure to the user calling the procedure. But I can't seem to get this to work.
Any ideas would be much appreciated.
Thanks,
Nora

I found another way to do it.. I instead used the 'Scheduler Jobs' portion of the Dbcontrol, and was able to successfully schedule and run the job there.
Thanks,
Nora

Similar Messages

  • How to schedule job?

    Hello All,
    i have a few questions about jobs (scheduling jobs)
    I want to run one procedure at 7:00 A.M and I want to stop this procedure at 12:30 PM on Daily basis.Is it possible with DBMS_JOB? I don't know how to stop running job at specified time.
    I m using Oracle 9i on Linux

    Hi,
    Your best bet is probably to schedule a second job to run at 12:30pm every day and execute the stop. To do the stop you will probably need to figure out the session and terminate the session (google for stopping dbms_job).
    In 10gR2 and up dbms_scheduler (the replacement for dbms_job) can handle this scenario in a much more striahgtforward way (generate an event if the job exceeds a max_run_duration and have the event trigger a second job to snipe the first using a stop_job call).
    -Ravi

  • How to stop a Scheduler Job in Oracle BI Publisher 10g

    Hello!
    Can someone tell me how can I stop a scheduler job in Oracle BI Publisher 10g?
    I scheduled a bursting job to run a report but is running during two days.
    I would like to stop it.
    Thanks.
    Edited by: SFONS on 19-Jan-2012 07:16

    Unfortunately there is no way to stop a job once it is being executed. Yes as you read, it is not possible once job has started.
    Same thing applies for running queries.
    Once queries are sent to the DB BIP loses control over them. The message you see (if any) "Click Here to Cancel" does not stop any query
    it is just a message.
    I guess you will have to stop/kill the process in your DB
    regards
    Jorge
    p.s If you consider your question answered then please mark my answer as *"Correct"* or *"Helpful"*

  • Scheduled Job to gather stats for multiple tables - Oracle 11.2.0.1.0

    Hi,
    My Oracle DB Version is:
    BANNER Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    In our application, we have users uploading files resulting in insert of records into a table. file could contain records ranging from 10000 to 1 million records.
    I have written a procedure to bulk insert these records into this table using limit clause. After the insert, i noticed my queries run slow against these tables if huge files are uploaded simultaneously. After gathering stats, the cost reduces and the queries executed faster.
    We have 2 such tables which grow based on user file uploads. I would like to schedule a job to gather stats during a non peak hour apart from the nightly automated oracle job for these two tables.
    Is there a better way to do this?
    I plan to execute the below procedure as a scheduled job using DBMS_SCHEDULER.
    --Procedure
    create or replace
    PROCEDURE p_manual_gather_table_stats AS
    TYPE ttab
    IS
        TABLE OF VARCHAR2(30) INDEX BY PLS_INTEGER;
        ltab ttab;
    BEGIN
        ltab(1) := 'TAB1';
        ltab(2) := 'TAB2';
        FOR i IN ltab.first .. ltab.last
        LOOP
            dbms_stats.gather_table_stats(ownname => USER, tabname => ltab(i) , estimate_percent => dbms_stats.auto_sample_size,
            method_opt => 'for all indexed columns size auto', degree =>
            dbms_stats.auto_degree ,CASCADE => TRUE );
        END LOOP;
    END p_manual_gather_table_stats;
    --Scheduled Job
    BEGIN
        -- Job defined entirely by the CREATE JOB procedure.
        DBMS_SCHEDULER.create_job ( job_name => 'MANUAL_GATHER_TABLE_STATS',
        job_type => 'PLSQL_BLOCK',
        job_action => 'BEGIN p_manual_gather_table_stats; END;',
        start_date => SYSTIMESTAMP,
        repeat_interval => 'FREQ=DAILY; BYHOUR=12;BYMINUTE=45;BYSECOND=0',
        end_date => NULL,
        enabled => TRUE,
        comments => 'Job to manually gather stats for tables: TAB1,TAB2. Runs at 12:45 Daily.');
    END;Thanks,
    Somiya

    The question was, is there a better way, and you partly answered it.
    Somiya, you have to be sure the queries have appropriate statistics when the queries are being run. In addition, if the queries are being run while data is being loaded, that is going to slow things down regardless, for several possible reasons, such as resource contention, inappropriate statistics, and having to maintain a read consistent view for each query.
    The default collection job decides for each table based on changes it perceives in the data. You probably don't want the default collection job to deal with those tables. You probably do want to do what Dan suggested with the statistics. But it's hard to tell from your description. Is the data volume and distribution volatile? You surely want representative statistics available when each query is started. You may want to use all the plan stability features available to tell the optimizer to do the right thing (see for example http://jonathanlewis.wordpress.com/2011/01/12/fake-baselines/ ). You may want to just give up and use dynamic sampling, I don't know, entire books, blogs and papers have been written on the subject. It's sufficiently advanced technology to appear as magic.

  • How can I locate a Scheduler job?

    Hi there,
    In the alert log, I see the following error :
    ORA-12012: error on auto execute of job 2915
    My question is - how do I find the definition for job 2915?
    And before you say - "that's easy, it's in all_scheduler_jobs", it's
    not in all_scheduler_jobs. The old dbms_job package had a column for
    job number, but the Scheduler doesn't. I've scrutinized the definition for
    all the Scheduler views, but nothing reveals the job number.
    When I look at all the jobs listed in dba_scheduler_jobs, nothing seems
    likely to be this mysterious job 2915.
    Does anyone have any idea how I can locate it?
    Thanks!
    Paul Stuart

    Hi,
    Actually I've been meaning to write this info up as a DBA tip, but never get round to doing it...
    The job number referred to is in fact the Object ID of the Job when dealing with a new Scheduler job and not an original DBMS_JOB job.
    Scheduler jobs are database objects now rather than just 'rows in a table' so have an object ID, visible in dba_objects. But the dba_scheduler jobs view does not display this column!
    See this example, I create a Job that refers to a non existant procedure. The object ID matches that put into the alert log when it fails only a second later:
    SQL> declare
      2    jname varchar2(30) := 'JOB_TEST';
      3    jtype varchar2(16) := 'PLSQL_BLOCK'; -- 'PLSQL_BLOCK', 'STORED_PROCEDURE', 'EXECUTABLE'
      4    jaction varchar2(256) := 'not_a_real_proc;';
      5  begin
      6
      7    dbms_scheduler.create_job (
      8                  job_name        => jname,
      9                  job_type        => jtype,
    10                  job_action      => jaction,
    11                  start_date      => systimestamp,
    12                  enabled         => TRUE,
    13                  auto_drop       => FALSE,
    14                  comments        => 'Test job can be dropped'
    15                  );
    16
    17  end;
    18  /
    PL/SQL procedure successfully completed.
    SQL> select object_id,  object_type,object_name
      2  from dba_objects
      3  where object_name = 'JOB_TEST' and object_type = 'JOB';
    OBJECT_ID OBJECT_TYPE         OBJECT_NAME
         53645 JOB                 JOB_TEST
    SQL> select job, error_date, error_line2 from dba_job_errors;
           JOB ERROR_DATE          ERROR_LINE2
         53646 04/09/2007 22:03:17 PLS-00201: identifier 'NOT_A_REAL_PROC' must be declaredHTH
    Chris

  • Debugging of background scheduled job

    Hi guys,
    Can any one explain me 1 scenario why there is a need to debug background scheduled job..., rather then doing in background we can run the same job/report online and do normal debugging.
    thx in advance,
    Cheers,
    Harish

    Hi ARPAN,
    as long as the job is running, you can enter debuuger from SM50 process overview (program->debug) or SM37 Job Overview (Job->catch active Job).
    And to the initial question: Some messages are configured to be created when saving document (e.g. sales invoice). This will trigger a background process. If something goes wrong with smartform or sapscript form, it will cause an update error. This you may need to debug in background.
    Regards,
    Clemens

  • DPM 2010 Scheduled Jobs Disappear rather than Run

    I have a situation where I have a DPM server that appears to be functioning fine, but none of the scheduled jobs run.  No errors are given, there are no Alerts, and there is nothing in the Event log (Application and System) which indicates a failure. 
    All my Protection Groups show a green tick to indicate that they are fine, but the last successful backup for all of them is Friday the 8th of February.
    If I go to Monitoring and Jobs I see the jobs scheduled, but when the time comes for the job to run, it does not go into the "All jobs in progress", it just merely disappears, like thus:
    And a few minutes later,
    As you can see, the jobs disappear from the queue, and the total number of jobs decreases accordingly.  These jobs do not go into any of the other 3 Statusses (Completed, Failed or In Progress), they just disappear without a trace.
    There is some unallocated space, albeit not much (Used space: 21 155,05 GB Unallocated space: 469,16 GB). If space was an issue I would expect to see errors to indicate this.
    DPM 2010 running version 3.0.8193.0 (hotfix rollup package 6) using remote instance of SQL 2008 which is functioning fine.  I have tried stopping/starting the services, and even rebooted the server twice.  The remote instance of SQL server is using
    a domain account as its service account.  There are no pending Windows updates, i.e. it is fully up-to-date.
    The System Center Data Protection Manager 2010 Troubleshooting Guide (July 2010) does not show how to troubleshoot this particular probelm.
    Does anybody know how to resolve this issue or which logs might help me troubleshoot it?

    OK,
    Did you change the SQL Agent user account ?
    If so, DPM enters the SQL Agent account name into the registry and later we check that account each time the DPM engine launches.  The internal interfaces to DPM are secured using this account so the account name needs to match the account the SQL Agent
    is using. 
    Step 1
    In the registry HKLM\Software\Microsoft\Microsoft Data Protection Manager\Setup alter  both
    SqlAgentAccountName and SchedulerJobOwnerName keys to reflect the SQL Agent user account being used.
    Step 2
    Update DCOM launch and access permissions to match what was granted to the Microsoft$DPM$Acct account.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Where can I find scheduled Jobs (Reports) in Database?

    Hello anyone,
    i'm nearly new in using Oracle Application Server, so excuse me for asking silly questions,please.
    But where can i find the scheduled jobs (reports) in the database?
    We are using OAS in version 10.1.2.3.0
    Thanks
    Florian

    Hi florian,
    where can i find the scheduled jobs (reports) in the database?
    http://<ip-address>:7778/reports/rwservlet/showjobs?server=<your report server name>
    Then select scheduled jobs from the drop down list
    Note:
    1)7778 is the default port for OAS10g r2..check in your httpd.conf file whether it 7778 or else change it accordingly
    2)you will your get report server name from em console itself ie rep_****
    Regards
    Fabian

  • Cancel the scheduled jobs for process chains - urgent

    Hi,
    How do I cancel the scheduled jobs for process chains which are going to run tonight.
    thanks,
    Radha

    Hello,
    Go into transaction code RSPC and then select the particular process chain by going into the edit mode and in the menu...
    Look for Execution --> Remove from Schedule.
    Let me know if that answered your question.
    Thanks
    Dharma.

  • Bat file for running scheduled jobs

    Hi
    I am not entirely sure whether this is the correct forum to post this question, so apologies if I have posted this question in the wrong place.
    Anyhow, I would like to know how to create two automated bat file scripts that will execute a PL/SQL package that will tell my Oracle 10g R2 database to run a scheduled job. Equally, I need another bat file to tell it to drop the scheduled job.
    I already have a PL/SQL package that creates a schedule job using dbms_scheduler, and I can execute the scheduled job by going into SQL Plus running the execute command against the package. It is this latter bit, the execute part that I want to automate into bat file.
    Can someone show me how to do this?

    I'm in complete agreement with Hans. Oracle has two facilities DBMS_JOB and DBMS_SCHEDULER neither of which benefits in any way be being called by a batch file.
    What is your version number (all of it) and why are you considering this idea?

  • DPM 2012 R2 Upgrade - Scheduled jobs not running

    Hi,
    We're having an issue after upgrading to DPM 2012 R2 where the scheduled jobs are not running.
    We're running Server 2012 R2 with SQL Server 2008 R2 SP2.
    Looking at SQL jobs, if we run the job step we get an error.
    Message
    [136] Job 18822c3e-8fe 7-47a2-bb6e-0feccecc2952 reported: The process could not be created for step 1 of job 0xA746B176EAD99943A14A57DAF684829F (reason: %1 is not a valid Win32 application)
    However, if we place quotes around the triggerjob.exe path in the SQL default job step:
    "C:\Program Files\Microsoft System Center 2012 R2\DPM\DPM\bin\TriggerJob.exe" 9b30d213-b836-4b9e-97c2-db03c3eb39d7 18822c3e-8fe7-47a2-bb6e-0feccecc2952 server.domainname.com
    It is successful. 
    We've already uninstalled DPM 2012 R2 and re-installed, restored the database and run dpmsync -sync with the same result. We've checked the DCOM Config Launch and Activation Permissions for Microsoft System Center 2012 R2 Data Protection Manager Service
    and has full access.
    Has anyone else had this issue and been able to resolve it?
    Any help would be greatly appreciated.

    Hi,
    The below blog may assist with troubleshooting your issue.
    http://blogs.technet.com/b/dpm/archive/2014/10/08/how-to-troubleshoot-scheduled-backup-job-failures-in-dpm-2012.aspx
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually
    answer your question. This can be beneficial to other community members reading the thread. Regards, Dwayne Jackson II. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights."

  • Report Queue Manager  - Scheduled Jobs

    Question: How/where does the Queue Manager store info for scheduled jobs?

    It is possible (IN 9iAS) to configure the Reports Server to store all requests in a database table. The Table(s) / View(s) are created by the script rw_server.sql located in $ORACLE_HOME/reports/admin/sql
    To configure this options, create the table and view with the rw_server.sql script, then add these lines in the
    <reports server name>.conf file <jobStatusRepository class="oracle.reports.server.JobRepositoryDB"> <property name="repositoryConn" value="user/password@tnsalias" confidential="yes" encrypted="no"/> </jobStatusRepository> The "value" attribute of the property "repositoryConn" should be a user/password@tnsalias that will be used to connect to the database. The account must have access to the tables created by the script rw_server.sql The combination confidential="yes" and encrypted="no" will provoke the encryption of the value attribute once the Report Server is re-started : After the Reports Server has started you will find: <jobStatusRepository class="oracle.reports.server.JobRepositoryDB"> <property name="repositoryConn" value="ihjFFBFD3jk5Xfrd5HeX5w3dE/E=" confidential="yes" encrypted="yes"/> </jobStatusRepository> Description of the rw_server_queue view columns can be found in the script rw_server.sql itself.
    Thanks,

  • Issue with scheduled jobs

    Hello Team,
    After creating a new protection group, the jobs were frozen and was never kicked off.
    What could be the reason?
    Regards,
    Suman Rout

    Hi,
    Please see the below blog which may assist with troubleshooting scheduled jobs.
    Blog:
    http://blogs.technet.com/b/dpm/archive/2014/10/08/how-to-troubleshoot-scheduled-backup-job-failures-in-dpm-2012.aspx
    Pervious fourm post:
    https://social.technet.microsoft.com/Forums/en-US/ed65d3e0-c7d7-488b-ba34-4a2083522bae/dpm-2010-scheduled-jobs-disappear-rather-than-run?forum=dataprotectionmanager
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually
    answer your question. This can be beneficial to other community members reading the thread. Regards, Dwayne Jackson II. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights."

  • HOW TO DELETE SCHEDULED.JOBS

    hi.
    i have 4 simple questions.
    1.how to view all procedures name
    2.how to view all scheduled jobs name.
    3.how to delete all scheduled jobs
    4.how to delete sceduled job with with specific name.
    thanks in advance
    regards
    sajid

    Hi,
    1.
    SELECT *
      FROM all_procedures;2.
    SELECT * FROM ALL_SCHEDULER_JOBS;  
    SELECT * FROM ALL_SCHEDULER_PROGRAMS;3. (But I would not do this)
    BEGIN
       FOR rec IN (SELECT job_name
                     FROM user_scheduler_jobs)
       LOOP
          dbms_scheduler.drop_job(rec.job_name);
       END LOOP;
    END;4.
    DBMS_SCHEDULER.DROP_JOB;In general, If you need some dictionary view, but not sure what's it called, query the dictionary itself, Example;
    SELECT *
      FROM DICTIONARY
    WHERE table_name LIKE '%SCHEDU%';Regards
    Peter
    Regards
    Peter

  • What command will be executed when I schedule job via DB13

    Hi all,
    How do I get what command(full syntax) will be executed when I schedule jobs via DB13?
    For example:
    - Action: REORG of Tables in Tablespace(s)
    - Tablespaces: "WI6#BTABD" is selected
    - "Use Temporary Tablespaces" is selected
    I think this is a really basic question...
    Could you give me some advice?
    Thanks in advance,
    Ikue

    Hi Ikue,
    yes,  you won't see, what the 'REORG for all tablespaces is doing. But it's not really necessary. Its's simply always the same call
    REORG TABLE <tabname> INDEX <primary key> ALLOW NO ACCESS
    and optionally the addition  USE <tempspace>, if you have selected this option in DB13.  And it is called for each table that is located in the tablespace(s) which you have specified.
    The 'REORG for set of tables' is quite new. It is available with Basis Support Package 7.0 SP12. Before there was only a job to Reorg a single table.
    The REORG for flagged tables is a deprecated job.
    If you want to know more about the various REORG jobs and when and how to use them, then you should look at note 431430
    Best regards
    Ralf

Maybe you are looking for

  • Event based scheduler job - 2 events at the same time only 1 run

    Hi, i converted our dbms_job - jobs to the newer package dbms_scheduler. It is a 10.2.0.4 patch 23(8609347) database on an windows server 2003 R2 Enterprise x64 Edition SP2. The Jobs(about 130) are nothing special ... only some statistics, matview-re

  • Satellite M70: accessing data of temperature and fan

    While we hadn't such problems with other laptops, we didn't find a way of accessing the data of temperature and fan on a Satellite M70. A friend tried this under Linux but didn't succeed and also with XP I don't find a way of reading the data (curren

  • Customer Invoice Type Determination

    Hi SCN, I'm an ABAP developer and I'm currently developing some SD forms. I want to store in the SAP system how the customer wants to receive his invoice (by mail or as a print-out). Is there a standard way of holding this information? Thanks in adva

  • Help on the query

    Hi all, I am trying to fetch a value from table 1 if there is no record on that table , then i need to select from table 2 Can we do this in a single query without using exception or cursors

  • Facetime won't log in

    Facetime was working fine, but now when we go to gin in, it let's us get to the screen that says, People will call you using this email address, etc.  We click next but it goes back to the Enter Apple ID page. The passwords are fine and the apple id