SYSMAN job

Hi all with 10gR2
we are geting following error with SYSMAN user once a day although the job runs successfully throught the day.
Details are
Name ADV_SEGMENTADV_9701304
Owner SYSMAN
Operation RUN
Status FAILED
Details ORA-02149: Specified partition does not exist
Repeat By Seconds
Interval (Seconds) 1
Enabled TRUE
Command Type PL/SQL Block
PL/SQL DECLARE
taskname varchar2(100);
BEGIN
taskname := 'SEGMENTADV_9701304';
dbms_advisor.reset_task(taskname);
dbms_advisor.execute_task(taskname);
END;

Do you really intent to execute the scheduler job EVERY second?
Regards,
Martin

Similar Messages

  • Oracle 11g OEM job issue

    Hi all,
    After Oracle 11g migration, i have been facing issues in OEM scheduling. Twice the job did not run even after 11.2.0.7 upgrade. Hence i would like to explore the possibility of scheduling the same in DBMS jobs (we have not faced even a single failure since migration). However there is no mail alert available for successful completion of the job. In this regard i would like to have your views and help to create alerts to proceed further.
    Thankx

    Hi Ravi,
    Really the link helps,eventhough i have been looking for the rootcause to overcome from the job failure(scheduled jobs)
    Actually after completion/succeded of my scheduled job i may also get "INITIALIZATION ERROR" status message,so i need to be Re-schedule the particular job again
    for next day.
    Look up screenshot of the error
    Job Name=OEM_FLEET_ICL_SEND_6_30_AM_DAILY
    Job Owner=SYSMAN
    Job Type=SQL Script
    Target Type=Database Instance
    Timestamp=Apr 19, 2011 6:30:44 AM
    Status=Initialization Error
    Step Output=
    Command:Output Log
    SQLPlus: Release 11.2.0.2.0 Production on Tue Apr 19 06:30:15 2011*
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    SQL> SQL> SQL> SQL> Connected.
    SQL> SQL> SQL> SQL>
    PL/SQL procedure successfully completed.
    SQL> SP2-0103: Nothing in SQL buffer to run.
    SQL>
    Commit complete.
    SQL> SQL> SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    *~~~End Step Output/Error Log~~~*
    kindly advice me on this
    Thanks

  • OEM Not sending email notifications..

    Hello All,
    I have setup all the parameters required for email notifications in My OEM Database Control..
    I have even tested my by pressing test mail while configuring outgoing SMTP server..
    Even marked to send an email in all the rules i needed..
    So everything seems like i have setup all the parameters and even when i click on one alert and its details it shows *"The following notifications will be sent: 1 e-mail messages, 0 SNMP traps, 0 PL/SQL procedures, and 0 OS Commands."*
    And as i expect it should show one more entry the email has been send to [email protected] but even after waiting for long time OEM is no sending the email specified in notication schedule..
    What might be the reason for the same.. Any help would be great..
    Oracle DB Version : 10.2.0.1
    OEM : OEM Db control
    Thanks

    It might be one of the fllowing reasons
    1.SYSMAN jobs are broken, re-enalbe the same.
    2.Check Preferences--> Notification Rules--> And make sure all Rules are checked for Send Email.
    3.Check dbms jobs are running under sysman schema on the repository.
    Also see the below doc
    http://download.oracle.com/docs/cd/B19306_01/em.102/b40002/notification.htm#CACJCDHD
    Hope this helps.
    Regards,
    Satishbabu Gunukula
    Click here for [How to add and remove OCR|http://oracleracexpert.blogspot.com/2009/09/how-to-add-and-remove-ocr-oracle.html]
    Click here to [Improve RMAN Incremental backup Performance|http://oracleracexpert.blogspot.com/2009/09/block-change-tracking-in-oracle-10g.html]
    http://oracleracexpert.blogspot.com

  • Oracle internal queries taking more CPU time

    Hi,
    Following are queries taking more CPU time. I got this from awr report. Can anyone tell me why these queries are running? Is it a oracle enterprise manager query? should I use
    emctl stop dbconsole to stop this?
    DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN := FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
    SELECT COUNT(*) FROM MGMT_METRIC_DEPENDENCY_DETAILS DEP, MGMT_SEVERITY SEV WHERE DEP.TARGET_GUID = :B5 AND DEP.METRIC_GUID = :B4 AND DEP.KEY_VALUE = :B3 AND DEP.EDEP_TARGET_GUID = SEV.TARGET_GUID AND DEP.EDEP_METRIC_GUID = SEV.METRIC_GUID AND DEP.DEP_KEY_VALUE = SEV.KEY_VALUE AND SEV.COLLECTION_TIMESTAMP BETWEEN :B2 AND :B1
    SELECT CURRENT_STATUS FROM MGMT_CURRENT_AVAILABILITY WHERE TARGET_GUID = :B1
    Thanks in advance
    With Regards
    boobathi.P

    Hi,
    maybe this document will help if you are using 10g:
    SQL run by SYSMAN consuming a lot of resources on OMS with 800+ targets [ID 330383.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=330383.1
    there you'll find Cause and Solution too:
    SYSMAN Job and Queries are Taking Up High CPU (DB Console) [ID 1288301.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=1288301.1
    For databases above version 11.1 there are paches available.
    Best,
    Michael T. Z.

  • Errors in emoms.trc

    Hello getting following erros in emoms.trc can anyone help me to find a reason why this heppens?
    Oms 10.2.0.3 on 2003 server
    Agnet 10.2.0.3 on 2003 server
    2007-10-18 11:53:00,056 [XMLLoader0 80000000327.xml] WARN eml.XMLLoader LoadFiles.682 - Marking the file for retry : 80000000327.xml after receiving exceptionjava.sql.SQLException: ORA-14400: inserted partition key does not map to any partition
    2007-10-18 11:53:05,587 [XMLLoader0 80000000327.xml] ERROR eml.XMLLoader markFileAsError.826 - Failed to load 80000000327.xml even after 2 attempts; moving to errors directory. Error:
    java.sql.SQLException: ORA-14400: inserted partition key does not map to any partition
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:629)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1153)
         at oracle.jdbc.driver.OraclePreparedStatement.sendBatch(OraclePreparedStatement.java:3207)
         at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:1245)
         at oracle.jdbc.OracleConnectionWrapper.commit(OracleConnectionWrapper.java:87)
         at oracle.jdbc.OracleConnectionWrapper.commit(OracleConnectionWrapper.java:87)
         at oracle.sysman.emdrep.dbjava.loader.XMLLoaderContext.handleSubDocument(XMLLoaderContext.java:2272)
         at oracle.sysman.emdrep.dbjava.loader.XMLDocumentSplitter.endElement(XMLDocumentSplitter.java:893)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1257)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)
         at oracle.sysman.emdrep.dbjava.loader.XMLDocumentSplitter.split(XMLDocumentSplitter.java:466)
         at oracle.sysman.emdrep.dbjava.loader.XMLLoaderContext.loadFromStream(XMLLoaderContext.java:1817)
         at oracle.sysman.emdrep.dbjava.loader.XMLLoader.LoadFile(XMLLoader.java:576)
         at oracle.sysman.emdrep.dbjava.loader.XMLLoader.LoadFiles(XMLLoader.java:667)
         at oracle.sysman.emdrep.dbjava.loader.XMLLoader.run(XMLLoader.java:1314)
         at java.lang.Thread.run(Thread.java:534)

    This may occur if the Repository has not been reorganized and if there are many truncated
    partitions in the Grid Management Repository. SolutionTo fix this issue, please execute the following steps:
    1. Stop the all the Management Agents until the problem is solved.
    $ emctl stop agent
    This step is recommended as this will stop the uploading of new files to the directories
    $ORACLE_HOME/sysman/recv and $ORACLE_HOME/sysman/recv/errors.
    A growing backlog of xml files in the OMS $ORACLE_HOME/sysman/recv sub-directory means a longer time for the OMS to insert the outstanding xml files in the repository. And as long as the upload issue is not fixed, the xml files will continue being moved to the $ORACLE_HOME/sysman/recv/errors sub-directory. Hence even if collected, data moved to the errors sub-directory will never be inserted into the repository, thus making the data collection useless.
    2. Stop all the Management Servers and let the Management Repository Database up and running
    $ emctl stop oms
    3. Connect to the database hosting the Central Management Repository with the SYSMAN account
    4. Execute the following SQL statement
    SQL > exec emd_maintenance.analyze_emd_schema('SYSMAN')
    SQL> exec emd_maintenance.partition_maintenance
    Warning: depending of the amount of work to be done, exec emd_maintenance.partition_maintenance can take a while,
    up to more than one hour. DO NOT cancel this procedure.
    This procedure stops and restartds SYSMAN dbms_jobs. If it is cancelled or does not complete successfully
    for any reason, you can hit the bug:
    Bug 5231347 Running Emd_Maintenance.Partition_Maintenance Deletes Sysman Jobs
    In that case, rerun exec emd_maintenance.partition_maintenance should fix the issue.
    If you cannot run exec emd_maintenance.partition_maintenance and want to fix the dbms_job issue, check
    Note 370695.1 Running EMD_MAINTENANCE.PARTITION_MAINTENANCE removes SYSMAN dbms_jobs
    5. Restart the Management Servers
    6. Restart the Management Agents
    7. Verify that the issue is fixed.
    kind regards
    Terry

  • How to understand Oracle tables (as opposed to DB2)

    I am a beginner and need to ask a question.
    I determine that the number of records within dba_jobs is 1.
    Then I describe the table and find there are about
    18 columns within the table.
    Then I perform a SELECT * on the table.
    When I do the select, it looks like it is printing out about 8 different records.
    With only the MISC ENV field being populated.
    How should I interpret this
    The following are the commands I entered:
    SQL> select count(*) from dba_jobs;
    COUNT(*)
    1
    SQL> describe dba_jobs;
    Name Null? Type
    JOB NOT NULL NUMBER
    LOG_USER NOT NULL VARCHAR2(30)
    PRIV_USER NOT NULL VARCHAR2(30)
    SCHEMA_USER NOT NULL VARCHAR2(30)
    LAST_DATE DATE
    LAST_SEC VARCHAR2(8)
    THIS_DATE DATE
    THIS_SEC VARCHAR2(8)
    NEXT_DATE NOT NULL DATE
    NEXT_SEC VARCHAR2(8)
    TOTAL_TIME NUMBER
    BROKEN VARCHAR2(1)
    INTERVAL NOT NULL VARCHAR2(200)
    FAILURES NUMBER
    WHAT VARCHAR2(4000)
    NLS_ENV VARCHAR2(4000)
    MISC_ENV RAW(32)
    INSTANCE NUMBER
    SQL> select * from dba_jobs;
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    1 SYSMAN SYSMAN
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    SYSMAN 20-APR-09 22:29:55 20-APR-09
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    22:30:55 17989 N
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    sysdate + 1 / (24 * 60)
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    0
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS();
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$' NLS_ISO_CURRENC
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    Y='AMERICA' NLS_NUMERIC_CHARACTERS='.,' NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LAN
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    GUAGE='AMERICAN' NLS_SORT='BINARY'
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    0102000000000000 0
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    ---------------------------------------------------------------- ----------

    ...and then how to post with tags: http://forums.oracle.com/forums/help.jspa                                                                                                                                                                               

  • Dont understand Oracle Tables

    I am new to Oracle and need to ask a question.
    Some oracle tables appear to act different than in DB2.
    I determine that the number of records within dba_jobs is 1.
    Then I describe the table and find there are about
    18 columns within the table.
    Then I perform a SELECT * on the table.
    When I do the select, it looks like it is printing out about 8 different records.
    With only the MISC ENV field being populated.
    How should I interpret this
    The following are the commands I entered:
    SQL> select count(*) from dba_jobs;
      COUNT(*)
             1
    SQL> describe dba_jobs;
    Name                                      Null?    Type
    JOB                                       NOT NULL NUMBER
    LOG_USER                                  NOT NULL VARCHAR2(30)
    PRIV_USER                                 NOT NULL VARCHAR2(30)
    SCHEMA_USER                               NOT NULL VARCHAR2(30)
    LAST_DATE                                          DATE
    LAST_SEC                                           VARCHAR2(8)
    THIS_DATE                                          DATE
    THIS_SEC                                           VARCHAR2(8)
    NEXT_DATE                                 NOT NULL DATE
    NEXT_SEC                                           VARCHAR2(8)
    TOTAL_TIME                                         NUMBER
    BROKEN                                             VARCHAR2(1)
    INTERVAL                                  NOT NULL VARCHAR2(200)
    FAILURES                                           NUMBER
    WHAT                                               VARCHAR2(4000)
    NLS_ENV                                            VARCHAR2(4000)
    MISC_ENV                                           RAW(32)
    INSTANCE                                           NUMBER
    SQL> select * from dba_jobs;
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
             1 SYSMAN                         SYSMAN
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
    SYSMAN                         20-APR-09 22:29:55                    20-APR-09
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
    22:30:55      17989 N
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
    sysdate + 1 / (24 * 60)
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
             0
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
    EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS();
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
    NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$' NLS_ISO_CURRENC
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
    Y='AMERICA' NLS_NUMERIC_CHARACTERS='.,' NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LAN
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
    GUAGE='AMERICAN' NLS_SORT='BINARY'
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
    0102000000000000                                                          0
           JOB LOG_USER                       PRIV_USER
    SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
      FAILURES
    WHAT
    NLS_ENV
    MISC_ENV                                                           INSTANCE
    ---------------------------------------------------------------- ----------Thanks,
    Edited by: user10747262 on Apr 21, 2009 11:56 AM

    Hello,
    Can you edit your post and enclose your code and output between \ tag to preseve formatting? Also list out all the questions before your output so it will be easier for any volunteer to help you out faster.
    \Your code or output goes here.
    \Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Custom notifications in OEM

    Hi All
    I'm still quite new to GC and am unsure of the full capabilites/restrictions.
    Can an OS command type notification write the stdout of an os command into the body of the email?
    I'd like to be able to more a text file and have the contents shown in the notification. Is this possible?
    TIA
    Jake.

    I know this is an old post but you can include the contents of a file in the email as shown in the example below. This will show up in the output log of the email.
    echo "This is a test"
    cat /u01/home/oracle/logs/chkdisco_mail.out
    echo "End This is a test"
    exit 100
    ***** Email Alert *****
    Job name=S_TEST.1
    Job owner=SYSMAN
    Job type=Host Command
    Job status=Failed
    Occurred At=Oct 13, 2010 8:50:03 AM MDT
    Target Name=*******
    Notification Rule Name= failed jobs
    Notification Rule Owner=SYSMAN
    Job output=
    Command:Output Log
    This is a test
    SUBJECT:51 Discoverer sessions disconnected on Prod. - Tue Oct 12 21:00:01 MDT 2010
    The following Discoverer sessions were disconnected.
    session '25,39495';
    session '93,31881';
    session '167,6132';
    session '182,53588';
    session '193,37750';
    session '253,24213';
    session '284,36730';
    session '288,32903';
    session '306,17450';
    session '315,25078';
    session '342,42195';
    session '387,47509';
    session '399,7514';
    session '475,35014';
    session '497,22851';
    session '506,46351';
    session '554,41044';
    session '614,30621';
    session '668,62366';
    session '672,37292';
    session '673,27437';
    session '701,47299';
    session '703,58608';
    session '704,34350';
    session '708,32369';
    session '726,38285';
    session '741,35299';
    session '760,33262';
    session '764,18333';
    session '790,62299';
    session '817,51555';
    session '824,22104';
    session '857,47375';
    session '876,13700';
    session '881,31717';
    session '906,28034';
    session '962,21092';
    session '1030,29532';
    session '1039,36179';
    session '1128,30353';
    session '1171,47225';
    session '1197,16468';
    session '1271,30083';
    session '1279,23727';
    session '1297,33536';
    session '1319,39862';
    session '1348,15858';
    session '1389,49208';
    session '1483,25297';
    session '1541,60017';
    session '1593,11684';
    End This is a test
    ~~~End Step Output/Error Log~~~

  • Exadata instance shutdown

    我这边有一台四分之一配X2-2的Exadata,数据库版本为11.2.0.3.7,昨天下午17:45分左右,实例1 down了,alert日志和生成的trace已经发到您邮箱了,麻烦您帮我分析一下,谢谢!

    Thanks for your reply....
    OEM server in Windows server, Oracle Instance running in Linux server..I was sheduled through Jobs Shutdown database\Startup database.
    This Error massage getting through mail alert.
    for Shutdown:
    Job name=MANTAS DATABASE
    Job owner=SYSMAN
    Job type=Shutdown Database
    Job status=Error
    Occurred At=May 28, 2009 8:00:06 PM EDT
    Target Name=mantas.ssfcu.inet(Database Instance)
    Job output=
    Error Log:Command
    ERROR: Execution failed due to binary missing or permission issues
    ~~~End Step Output/Error Log~~~
    for startup:
    Job name=MANTAS DATABASE STARTUP
    Job owner=SYSMAN
    Job type=Startup Database
    Job status=Error
    Occurred At=May 28, 2009 10:00:08 PM EDT
    Target Name=mantas.ssfcu.inet(Database Instance)
    Job output=
    Error Log:Command
    ERROR: Execution failed due to binary missing or permission issues
    ~~~End Step Output/Error Log~~~
    thanks
    Jayaram

  • Import job failes with ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT

    Hello everyone,
    I need a help on importing data from a schema in server 1 to the same schema in server 2 via network link. I receive following error when I try to submit a job on Enterprise Manager:
    Import Submit Failed
    ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 5806 ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 7812 ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 8608 ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT_JOBS", line 273 ORA-06512: at "SYSMAN.MGMT_JOBS", line 86 ORA-06512: at line 1
    Sql of the job:
    declare
    h1 NUMBER;
    begin
    h1 := dbms_datapump.open (operation => 'IMPORT', job_mode => 'FULL', remote_link => 'B_PROD_LINK', job_name => 'BIMPORTFRMPRDTORPT4', version => 'COMPATIBLE');
    dbms_datapump.set_parallel(handle => h1, degree => 1);
    dbms_datapump.add_file(handle => h1, filename => 'IMPORT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    dbms_datapump.set_parameter(handle => h1, name => 'REUSE_DATAFILES', value => 0);
    dbms_datapump.set_parameter(handle => h1, name => 'TABLE_EXISTS_ACTION', value => 'TRUNCATE');
    dbms_datapump.set_parameter(handle => h1, name => 'SKIP_UNUSABLE_INDEXES', value => 0);
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    dbms_datapump.detach(handle => h1);
    end;
    It says network link is active when I test the network link to make sure its connectivity. I create the network link as a system account. I'm trying to do an import from an Oracle database 10.2.0.2 to 11.2.0.1. My 10g database is on ms windows 2003x64 while my 11g database is on OEL 5.4x64.
    What should I do for now?
    Thank you.
    Edited by: user12144220 on Nov 4, 2012 5:02 AM

    It will be wise to run the Oracle supply streams health check script to check your existing streams environment.
    From the result, you can also open a tar with Oracle to see if they can help you with the setup.
    In addition to the ORA-01403 error, you can also run some of the Oracle Streams packages (Managing Apply Errors) to see the full detail of what is missing that caused the Ora-01403 error.
    I will also try to implement a smoke test using the simple heartbeat table suggested by Oracle Streams, if that is working, then you can begin your full scale setup in your environment knowing that the base Streams Structure is setup correctly.
    HTH

  • Sysman.mgmt$jobs ORA-01722 invalid number

    Persons,
    my SQL statement "Select * from sysman.mgmt$jobs";
    is Failing with invalid number.
    Please advise. Thanks! Al
    SQL> select count(*) from sysman.mgmt$jobs;
    COUNT(*)
    155
    SQL> select * from sysman.mgmt$jobs;
    select * from sysman.mgmt$jobs
    ERROR at line 1:
    ORA-01722: invalid number
    The error is coming from DECODE statement inside mgmt$jobs
    DECODE(s.timezone_info, 3, s.timezone_offset, s.timezone_region) from mgmt_job_schedule
    TIMEZONE_REGION X
    1 5934
    2 29
    America/Los_Angeles 7
    America/New_York 163

    which version of
    - repository db
    - oracle management server (oms)
    I would open an oracle service request. Why are you querying the table directly? Is Oracle Enterprise Manager Grid Control experiencing the same problem, or does it only occur when you query it via sqlplus?
    Did you log in as sysman?
    Regards,
    Martin

  • Error while dropping a job

    SQL> SELECT JOB FROM DBA_JOBS;
    JOB
    1
    SQL> EXEC DBMS_JOB.REMOVE(1);
    BEGIN DBMS_JOB.REMOVE(1); END;
    ERROR at line 1:
    ORA-23421: job number 1 is not a job in the job queue
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_IJOB", line 529
    ORA-06512: at "SYS.DBMS_JOB", line 171
    ORA-06512: at line 1
    The job wasn't created successfully in the first place, but it wouldn't let me drop it either !! What may be the problem ?
    Thanks

    SQL> SELECT SCHEMA_USER,JOB FROM DBA_JOBS;
    SCHEMA_USER JOB
    SYSMAN 1
    Not sure, what this is. Looks like it is not my job. However, I still have errors executing my procedure...
    Or let me get back to square one.
    What I am trying to do is to execute this :
    The file name is group1_dbms_script.sql (I am trying to just export the group1_tab1 and group1_tab2 tables which are present in the CLIENT schema,,,that's all i needed... but using this dbms_datapump API)
    declare
    l_dp_handle NUMBER;
    begin
    l_dp_handle := DBMS_DATAPUMP.open(
    operation => 'EXPORT',
    job_mode => 'TABLE',
    remote_link => NULL,
    job_name => 'group1',
    version => 'LATEST'
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'group1.dmp',
    directory => 'EXPORT_DIR'
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'group1.log',
    directory => 'EXPORT_DIR',
    filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE
    DBMS_DATAPUMP.metadata_filter(
    handle => l_dp_handle,
    name => 'SCHEMA_EXPR',
    value => 'IN (''CLIENT'')');
    DBMS_DATAPUMP.metadata_filter(
    handle => l_dp_handle,
    name => 'NAME_EXPR',
    value => 'IN (''GROUP1_TAB1'',
    ''GROUP1_TAB2'')');
    DBMS_DATAPUMP.start_job(l_dp_handle);
    DBMS_DATAPUMP.detach(l_dp_handle);
    END;
    When i do (in sqlplus)
    @group1_dbms_script.sql
    I am getting
    ERROR at line 1:
    ORA-31634: job already exists
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 911
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 4354
    ORA-06512: at line 4
    Please help. I haven't used this API before, hence not sure if something is wrong with what I wrote, of if some admin sql like catexp needs to be run....

  • Expdp failed job disappear

    Hi all,
    I am testing the expdp on attach job in 10.2R3
    1. expdp job and ^C to stop it
    C:\TEMP>expdp system/oracle directory=testdir dumpfile=test5.dmp logfile=test5.log full=y job_name=expjob
    . . exported "SCOTT"."DEPT" 5.656 KB 4 rows
    . . exported "SCOTT"."EMP" 7.820 KB 14 rows
    . . exported "SCOTT"."SALGRADE" 5.585 KB 5 rows
    . . exported "SYSMAN"."AQ$_MGMT_NOTIFY_QTABLE_S" 7.734 KB 1 rows
    ^C
    2. in sqlplus check job
    select * from dba_datapump_jobs;
    OWNER_NAME JOB_NAME OPERATION JOB_MODE
    STATE DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS
    SYSTEM EXPJOB EXPORT FULL
    EXECUTING 1 1 3
    3. then after 1-2 mins, check the job status again, it disappears????
    select * from dba_datapump_jobs;
    no rows selected
    Please advise what is happening.....
    thanks
    andrew

    ^C doesn't stop the job it should take you to a prompt that looks like
    Export>
    then you can stop the job using
    Export>STOP_JOB
    the job is finished that's why your not seeing it when you do a
    select * from dba_datapump_jobs

  • Creating New Job Problem

    Hello all,
    Am trying to do a backup job (OS windows) but am always getting the error
    ORA-20900: Could not find credential set DBHostCreds for target type oracle_database ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 688 ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 1351 ORA-06512: at "SYSMAN.MGMT_JOBS", line 285 ORA-06512: at "SYSMAN.MGMT_JOBS", line 78 ORA-06512: at line 1
    i checked in secpol.msc i have given the Log on as a batch job to the user
    i checked the preferred credentials and when i clicked the set credentials it shows this message : There are no credential sets configured for this target type.
    ie I cannot set a preferred credentials
    what could be wrong ?
    Thanks in Advance

    I am not sure that this exactly is the case but on Windows, setting the host credentials needs an additional setting. Please follow the following steps,
    1. Go to control panel->administrative tools
    (i) Click on "local security policy"
    (ii)Click on "local policies"
    (iii)Click on "user rights assignments"
    (iv)Click on "log on as a batch job"
    (v)Click on "add" and add the user that was entered in the "normal username" or "privileged username" section of the EM Console.
    2. Go to the Preferences link in the EM
    (i)Click on Preferred Credentials (link on the left menu)
    (ii)Under "Target Type: Host" click on "set credentials"
    (iii)Enter the OS user who has logon as a batch job privilege into the "normal username" and "normal password" fields
    3. Test the connection
    (i)While in the Set Credentials window, click on "Test"
    Hope this would resolve the issue.
    HTH
    Aman....

  • Jobs with running status in OEM while it was already finished

    Hi
    We have rebooted our server and all the jobs which are suppose to run some scripts in the server are showing running state for more than 16hours now! checking the scripts logs it was successfully executed and finished. When trying to delete the running jobs and schedule a new one it refuses to stop (although its not even running in reality). What can we do to clear this running status and let oem to schedule new ones? or how can we resolve this situation?
    We are running Enterprise manager 10g
    Swaid

    Hi Jozsef,
    I've tried to follow the instructions in that Metalink note and the job seems to be deleted from mgmt_job table as well as the executions for that job in mgmt_job_execution; but still everything is hanging and when i checked in the EM page it still shows the job in running state! how can I clean it? and why is it hanging in the first place?
    I've looked into the agent trace and its not getting updated since the problem has started and here is a bit of the last messages we have in the trace:
    2009-04-17 12:05:09 Thread-2413 ERROR http: secondary header = Host, value = snmsmaster:3938
    2009-04-17 12:05:09 Thread-2413 ERROR http: secondary header = Connection, value = Keep-Alive, TE
    2009-04-17 12:05:09 Thread-2413 ERROR http: secondary header = TE, value = trailers, deflate, gzip, compress
    2009-04-17 12:05:09 Thread-2413 ERROR http: secondary header = User-Agent, value = RPT-HTTPClient/0.3-3
    2009-04-17 12:05:09 Thread-2413 ERROR http: secondary header = Accept-Encoding, value = gzip, x-gzip, compress, x-compress
    2009-04-17 12:05:09 Thread-2413 ERROR http: secondary header = Content-type, value = application/octet-stream
    2009-04-17 12:05:09 Thread-2413 ERROR http: secondary header = Content-length, value = 593
    2009-04-17 12:05:09 Thread-2413 ERROR http: --- Error context dump end for incoming request ---
    The emoms trace is getting updated with some repeated error messages that looks like below:
    2009-04-18 15:56:57,114 [HealthMonitor] ERROR em.jobs pingPastDue.604 - Job step continuing
    2009-04-18 15:57:13,362 [HealthMonitor] ERROR emd.main run.291 - HealthMonitor : Found errant task : TaskRegn:ID3440,Callback:class oracle.sysman.emdrep.jobs.JobWorker,Iterative:true,Duration:900,DueTime:1240059433359
    2009-04-18 15:57:13,363 [HealthMonitor] ERROR em.jobs pingPastDue.602 - Entry - 15 Minute timeout error for jobstep:Stepname: Command
    Commandname: remoteOp
    Commandtype: Short-Running
    StepId: 97914
    jobIdStr: 679733b18b7a5698e04400144fa10220
    executionIdStr: 67bd0ff86c9b4268e04400144fa10220
    iterateParam: null
    iterateParamIndex: -1
    Swaid

Maybe you are looking for