Getting Job Output

Hi there.
I have a job that I run as a DBA Script that does the following:
1)Runs dbms_stats.gather_schema_stats with the STALE option to get stale stats.
2) If this first job fails then does a dbms_stats.gather_schema_stats on the whole schema.
(the gather stale stats has been failing with ORA-00600 errors for some reason).
What I would like is for the Job Output to show something like 'Running Job Stale' or something to identify which one actually ran.
How can I get some sort of output into this dialog box?
Thanks in advance,
Jas

Hi there.
I have a job that I run as a DBA Script that does the following:
1)Runs dbms_stats.gather_schema_stats with the STALE option to get stale stats.
2) If this first job fails then does a dbms_stats.gather_schema_stats on the whole schema.
(the gather stale stats has been failing with ORA-00600 errors for some reason).
What I would like is for the Job Output to show something like 'Running Job Stale' or something to identify which one actually ran.
How can I get some sort of output into this dialog box?
Thanks in advance,
Jas

Similar Messages

  • SPOOL data gets truncated when bckground job output sent to spool recepient

    Hi All,
    I am facing a strange problem.
    I have a background job scheduled. Have specified a distribution list as the spool recipients.
    Background jobs output is sent to the recipients as attachment but data is not complete.
    When I check the spool request for that background job it contains 80 pages but the attachment in the recipients inbox contains just 17 pages.
    SP01/SP02 will display settings to display the range of pages but the emaill attachment doest show.
    Can anyone please help me with this?
    We are on ECC 6.0 (Windows2003/MSSQL2005 SP3)
    Regards,
    Yatin

    Hi,
    When the spool content is sent immediately after the background job its size is 14KB.
    I tested by sending spool content via mail using transaction SP01. I mean after the jobs is completed, I go to SP01 and send the SPOOL content manually. This time recipients receive the correct content of 80 pages and size of the document this time is 73KB.
    Regards,
    Yatin

  • How to get the output of a standard report  RFBILA00 in PDF form.

    hi,
    I have to get the output of the standard report RFBILA00 in the PDF form.
    Thanks.

    Hi Rao,
    you can run your report RFBILA00 in background  and in background  job you can add one more step, next in that step you can add custom  report like zsubmit .
    job should be set like
    step1:  RFBILA00 with variant.
    Step2:  zsubmit report with variant.
    In Zsubmit report  you can  read, your first step spool using FM GET_JOB_RUNTIME_INFO
    and pass that spool  in the FM  CONVERT_ABAPSPOOLJOB_2_PDF.
    when second  report run in job  you can set your target like download in the server or  send email etc.
    Regards,
    Prasenjit

  • Is it possible to get the output of a text container into Spool..?

    Hi
    I am trying to write a report for a standard transaction(SM65) in BDC and run thru background job so as to get the output in to Spool. Right now I am facing an issue to get the SM65(text container) tcode output into spool.
    FYI..I am using "CALL TRANSACTION 'SM65' USING BDCDATA MODE 'E'."
    Please provide tour valuable inputs.
    Thanks!
    Shiv

    Hi Shiv,
    Instead of writing BDC for T-code SM65 I would suggest you to use following function module to get the required data.
          CALL FUNCTION 'BPT_ANALYSE_START'
            EXPORTING
              server_name            = servername_tmp
              check_all_btc_servers  = sbpt1020-allsrvchk
              profile_check          = sbpt1020-profilechk
              xpgm_environment_check = sbpt1020-xpgmcheck
            TABLES
              protocol_tbl           = global_protocol_tbl
            EXCEPTIONS
              OTHERS                 = 99.
    Once you got the data into "global_protocol_tbl " you can create spool of it.

  • Background job output to Presentation server

    Hi,
    I am executing report as Background job.
    after job gets completed output should be in excel format in front end or presentation server.
    Regards
    Naga

    Hi,
    We cannot perform any action on the presentation server in a program that is being execcuted in background. What you can do is to write the output on to the app server, and after wards move the file on to the Pres. server using CG3Y transaction.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Error 50103 (rwfdt:rwfdtprint): ERR Error occurred sending Job output

    Getting the below with a particular report I am running. Seems that the cache file isn't getting created for some reason. There are other cache files in the directory so it's not a user permission type thing I'm guessing.
    Anyone seen this before?
    [2007/7/4 2:10:15:431] APP 50103 (rwfdt:rwfdtni_NextInstance): running
    [2007/7/4 2:10:15:431] APP 50103 (rwfdt:rwfdtni_NextInstance): quit
    [2007/7/4 2:10:15:431] APP 50103 (rwfdt:rwfdtgcf_GenCachefile): running
    [2007/7/4 2:10:15:431] APP 50103 (rwfdt:rwfdtgcf_GenCachefile): Cache file is C:\oracle\product\10.2.0\MT\reports\cache\66117201.txt
    [2007/7/4 2:10:15:431] APP 50103 (rwfdt:rwfdtgcf_GenCachefile): quit
    [2007/7/4 2:10:15:431] APP 50103 (rwfdt:rwfdtprint): caching output from backend drivers
    [2007/7/4 2:10:15:431] Error 50103 (rwfdt:rwfdtprint): 14:10:15 ERR Error occurred sending Job output to cache

    Hi,
    Sorry I didn't realize that i didn't answer to this question because of reference to others.
    I solve it with change of values in rwserver.conf
    one of values is default but other solve issue.
    <property value="no" name="keepConnection"/>
    engLife="2"   or    engLife="1"This happens in my env because application often change user (db schema). And this is workaround for restarting engine.
    regards

  • How to get the output .pdf file of a quiz to report to the quiz results analyzer on my internal server (mamp)

    I created a quiz.
    Created an internal server on my compute rising a MAMP.
    When I publish my quiz using the multi-file publishing options...
    I am able to use both the "HTML" and the "swf" output files to complete a quiz and reporting the results to the quiz results analyzer.
    However, I am unable to get the output .pdf field to reporting to the quiz results analyzer.
    Any help? Would this issue have to do with the Acrobat Professional setting? Captivate setting? My internal server setting? or output fuel placement?
    I tired to put the .pdf file in the same MAMP root folder location as my "internalserverreporting.php and internalserverread.php files.
    Thanks for the help.

    Hello Varun,
    You cqan submit the report as a JOB and export the out put to memory, once the job is complete you can read the list to display the output.
    Cheers,
    Mano
    Cut & Paste form SAP help.
    Submit report ....
    EXPORTING LIST TO MEMORY
    Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".

  • How to get job ID/alias of jobs within a job group programatically

    We are trying to automate the export of job group/job definition from tidal in xml file, we know that you can use REST API to get job definition as xml.
    by using http://localhost:8080/api/tes-6.0/Job.get/<Job ID/alias> 
    but the problem is when you use it for group it does not tell you what are all the child of this job group. 
    here is the output you get from REST API 
    <entry><id>354</id><title>TestJOb</title><source>com.tidalsoft.webclient.tes.dsp.db.datatypes.Job</source><tes:job><tes:agenttype>6</tes:agenttype><tes:childrencount>6</tes:childrencount><tes:agentostype>1</tes:agentostype><tes:ownername>IDX_Workgroup</tes:ownername><tes:agentname>machinename</tes:agentname><tes:parentname>\Test</tes:parentname><tes:rerundependency>N</tes:rerundependency><tes:dependencylogic>1</tes:dependencylogic><tes:durationminimum>60</tes:durationminimum><tes:parentactive>Y</tes:parentactive><tes:unixprofile>0</tes:unixprofile><tes:type>1</tes:type><tes:normalexittorange>0</tes:normalexittorange><tes:estimatedmethod>1</tes:estimatedmethod><tes:predecessorsvalue>N</tes:predecessorsvalue><tes:isnotes>false</tes:isnotes><tes:historyretention>30</tes:historyretention><tes:jobdetailid>354</tes:jobdetailid><tes:durationestimated>60</tes:durationestimated><tes:trackingmethod>1</tes:trackingmethod><tes:active>Y</tes:active><tes:durationmaximum>60</tes:durationmaximum><tes:repeat/><tes:id>354</tes:id><tes:dirty> </tes:dirty><tes:ownerid>13</tes:ownerid><tes:fullpath>\Test\TestJOb</tes:fullpath><tes:concurrency>3</tes:concurrency><tes:isrunbook>false</tes:isrunbook><tes:excludeabnormalduration>4</tes:excludeabnormalduration><tes:inheritrepeat>Y</tes:inheritrepeat><tes:inheritoptions>Y</tes:inheritoptions><tes:disablecarryover>1</tes:disablecarryover><tes:normalexitfromrange>0</tes:normalexitfromrange><tes:successorsvalue>N</tes:successorsvalue><tes:inherittimewindow>N</tes:inherittimewindow><tes:lastusermodifiedtime>2013-05-13T00:47:30-0700</tes:lastusermodifiedtime><tes:allowrerun>Y</tes:allowrerun><tes:parentid>18</tes:parentid><tes:agentid>2</tes:agentid><tes:priority>50</tes:priority><tes:inheritagent>N</tes:inheritagent><tes:name>IDX.TestWebService</tes:name><tes:nearoutage>3</tes:nearoutage><tes:saveoutputoption>Y</tes:saveoutputoption><tes:alias>354</tes:alias><tes:allowunscheduled>Y</tes:allowunscheduled><tes:createtime>2013-05-12T23:32:05-0700</tes:createtime><tes:inheritcalendar>N</tes:inheritcalendar><tes:waitOperator>N</tes:waitOperator><tes:exitcodenormaloperator>1</tes:exitcodenormaloperator><tes:lastchangetime>2013-05-13T00:47:30-0700</tes:lastchangetime><tes:clientcachelastchangetime>2013-05-13T00:47:30-0700</tes:clientcachelastchangetime></tes:job></entry>
    it gives you number of child in the group, but does not give further info like what are the JOb ID/alias of children.
    we need this information to dynamically get job definition of all the jobs within a job group.
    Any help much appreacited.

    Solved myself.

  • FinancialUtilService, downloadESSJobExecutionDetails method is not uploading ESS job output/log files to UCM.

    Hi,
    We are invoking financialUtilService web service using HTTP Proxy Client to upload data files and submit ESS and to get ESS job log files. We are able to successfully upload and submit ESS job. But downloadESSJobExecutionDetails is not uploading logs/out files to UCM.
              List<DocumentDetails> docDetails = financialUtilService.downloadESSJobExecutionDetails(requestId.toString(), "log");
            //  List<DocumentDetails> docDetails1 = financialUtilService.downloadExportOutput(requestId.toString());
              System.out.println("Ess Job output:" + docDetails);
              for(DocumentDetails documentDetails : docDetails){
                System.out.println("Account: "+documentDetails.getDocumentAccount().getValue());
                System.out.println("File Name: "+documentDetails.getFileName().getValue());
                System.out.println("Document Title: "+documentDetails.getDocumentTitle().getValue());
                System.out.println("DocumentName " + documentDetails.getDocumentName().getValue());
                System.out.println("ContentType " + documentDetails.getContentType().getValue());
    Below output is returned:
    Ess Job status:SUCCEEDED
    Ess Job output:[com.oracle.xmlns.apps.financials.commonmodules.shared.financialutilservice.DocumentDetails@5354a]
    Account: fin$/payables$/import$
    File Name: null
    Document Title: Uma Test Import
    DocumentName:  84037.zip
    ContentType zip

    Hey
    We have the same problem. On calling `downloadESSJobExecutionDetails`, a zipfile is returned, but it only contains my original upload file, not any logs. Although, if I call `downloadESSJobExecutionDetails` on a dependent child subprocess, the log is included.
    I also reported this to oracle support (SR 3-10267411981) - they referred me to known bug, to be fixed in v11: https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=20356187 (not public accessible though )
    Is there any work around available?

  • Job output in System 9.3 Workspace

    We're learning the ins and outs of the workspace on System 9.3, and have two issues with job output:<BR><BR>1. Can we configure the system to NOT display the job log file? We don't want end users to see this!<BR><BR>2. Can we confgure the system to NOT display the job output as a type "Interactive Reporting Document (Web Client)"??? We want our users to view the output documents in the workspace's HTML viewer, but don't want them to install or use the browser plug-in client.<BR><BR>

    Hello,
    If you could provide a little more detail it might help narrow down the issue.
    Do the user's see the document within Workspace?
    Do they get an error when trying to access the document? If so what is the error?
    Are the user's provisioned to be able to access WebAnalysis?
    Do the user's have the appropriate JRE installed to launch the WebAnalysis Applet?

  • How to present a link to job (I want to bypass job output cycle wizard)

    Dear firends
    How to present a link to job (I want to bypass job output cycle wizard to open MyExample.BQY)
    http://MyServer:45000/workspace/browse/get/KursHYP2008/siyavus/MyExample?jobOutput=true&user=admin&pass=password
    this link shows wizard to open MyExample.BQY that I need to bypass it by putt it as parameter,
    regards

    Hello. Any update on this one ???
    Thanks in advance ...!

  • How to view Tidal Job output in a query?

    I am using a query to extract the standard output of a job:
    select jobrun_id, dbms_lob.substr( jobrun_output, 4000, 1 ) 
    from tidal.joboutput
    where  jobrun_id = 686361;
    The query returns output in an XML format:
    <TESXOUTPUT><MSG>Job output data is in XML format. To view job output upgrade your Client to latest version.</MSG><OUTPUT COMP="Y" RUN="1">eJzFVltv2zYUftevOBhQpB1CxXZuDQMXkC9...
    How can I translate this output into readable text?
    Thanks.

    I was running the REST api command to get the job output and received the same result as you. I found a method in the documentation that allows you to get the output in readable form.
    Here it is:
    JobOutput.getOutputContent/id
    where id is the job run id
    Hope that helps :)

  • Log job output to file - information missing? dbcc checkdb

    Hello
    Not sure where to put this question.. feel free to move it if necessary.
    I have a job which runs DBCC CHECKDB WITH PHYSICAL_ONLY on every database on the instance which is read_write. Problem is that I want to get the output of the result to make sure that every database is actually performing this command. When viewing normal
    history by right clicking the job and select "view history" I get cut off information due to the lack of space allowed (1000 chars default I think).
    So I tried to log it to table and view it by msdb.dbo.sp_help_jobsteplog but the information here does not cover all databases as well.. So then I tried to log it to a file. But I get the same information there, and not all databases are logged.
    So I start to wonder if the dbcc checkdb job does not get executed on the other databases?? If I look in the Current SQL Server Logs I only see that DBCC CHECKDB WITH PHYSICAL_ONLY executed on the same databases that is listed in my output file.
    What can I do? the instance contains over 400 databases but only approximately 70 is logged as doing a dbcc checkdb.
    This is my command:
    SET NOCOUNT ON
    EXEC sp_MSforeachdb @command1='
    IF NOT(SELECT DATABASEPROPERTYEX(''?'',''Updateability''))=''READ_ONLY''
    BEGIN
    DBCC CHECKDB (?) WITH PHYSICAL_ONLY
    END'

    There is a known issue with sp_MSforeachdb where under heavy load the procedure can actually miss databases with no errors. That can be the case in your environment. Aaron Bertrand wrote about the issue and solutions for the problems in the article:
    Making a more reliable and flexible sp_MSforeachdb.
    Ana Mihalj

  • How to execute this Procedure and get the output?

    I have created a Procedure the source code of the same is furnished below.
    create or replace procedure vin_test( p_deptno IN number
    , p_cursor OUT SYS_REFCURSOR)
    as
    v_res Emp%rowtype;
    begin
    open p_cursor FOR
    select *
    from emp
    where deptno = p_deptno;
    end vin_test;
    Now, if i want to see the out put of this Proc
    i will first set the Serveroutput on and then..
    Exec vin_test(10);
    I am getting an error saying wrong number of arguments,so can anybody tell me what parameter value should i pass on so that i can get desired output.
    Thanks in Advance
    OraCrazy

    In sqlplus you can do like this.
    SQL> create or replace procedure vin_test( p_deptno IN number, p_cursor OUT SYS_REFCURSOR)
      2  as
      3     v_res Emp%rowtype;
      4  begin
      5     open p_cursor for
      6     select *
      7       from emp
      8      where deptno = p_deptno;
      9  end;
    10  /
    Procedure created.
    SQL> var lcur refcursor
    SQL> exec vin_test(30,:lcur)
    PL/SQL procedure successfully completed.
    SQL> print lcur
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO        DIV
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30         10
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30         10
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30         10
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30         10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30         10
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30         10
    6 rows selected.Thanks,
    Karthick.

  • Getting the output of a batchfile to Powershell

    Greetings. I have a list of batchfiles that triggers Powershell script, that will throw error message when different errors were encountered in the execution. 
    In the end of the batchfile, I have included:
    if %errorlevel% neq 0 (echo error in previous command & exit /b %errorlevel%)
    and it works fine in itself. 
    However due to some requirements I need to use new separate batchfile that triggers a Powershell, that will in turn lauch the batchfiles mentioned earlier. 
    In the new Powershel, I have included: 
    $process = start-process $batchFile.FullName -ArgumentList $argumentList -PassThru -Wait
    and is able to get $process.ExitCode. However I would like to get the output or error message that would be raised from the first batchfile instead. 
    Any advice?

    Hi Bdrc,
    If you want to capture the output of the batch file, please try to run the batch file like:
    d:\test.bat argu1 argu2
    And the cmdlet start-process will start a process with the batch file.
    For more detailed information, please refer to this article:
    How to Execute a .bat File within a PowerShell Job
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang

Maybe you are looking for