Method to execute all jobs at a time

Hi Experts,
I have 100 jobs i want to execute all at a time,
Any idea or suggestion,
If we can do throught script ,Sample Script please
Thanks
Madhu

Hi Madhu,
You can execute all jobs using different method like through "Data Services management Console scheduling option" or through script (SHELL/BATCH).
But here again you have to check the below points before executing all jobs
Check the current server configuration because if you schedule all 100 job in one time it will put more load on server
If you have dependency in jobs please run that jobs/schedule that jobs first.
Please refer the below link for how to execute for LINUX or Windows
Steps for executing BODS job from Unix Script with user defined global parameters
http://scn.sap.com/community/data-services/blog/2013/09/02/steps-for-executing-bods-job-from-unix-script-with-user-defined-global-parameters
SAP Data Services - Running & Scheduling Data Services Jobs from Linux Command Line using Third party Scheduler
http://scn.sap.com/community/data-services/blog/2012/08/22/sap-bods--running-scheduling-bods-jobs-from-linux-command-line-using-third-party-scheduler
http://www.dwbiconcepts.com/etl/23-etl-bods/39-one-stop-to-sap-bodibods.html?showall=1
Thanks,
Daya

Similar Messages

  • From Time to Time error while executing RMAN Job

    Hi everybody,
    i have a strange problem. From time to time i recieve following error when executing a Job from Grid Control (Enterprise Manager).
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-04004: Fehler aus Recovery-Katalog-Datenbank: ORA-12170: TNS: Connect Timeout aufgetreten
    After that error the Job uses the Control File of the Database so the job runs. The strange thing for me is, that sometimes the jobs runs without problems and sometimes it gaves the error shown above.
    For clarifying. Grid Control runs on a Unix (Sun Solaris) Machine and the target Database runs on a Windows Server in a DMZ. I tried to find out what the problem is but neither on the windows server nor on the firewall side there are any problems.
    So can anybody help me finding out what the problem is?
    Any help would be appreciated.
    Greetings

    Hi sunny,
    i have tried the tnsping several times. There is no problem with this. The tnsping works without problems and in an appropriate time.
    When i issue the command on our unix machine it shows the following:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = srvxyz)(PORT = 1521))) (CONNECT_DATA = (SID = db1) (SERVICE_NAME = db1)))
    OK (10 msec)
    And when issue it on the Windows Server the follwoing output is shown:
    TNS Ping Utility for 64-bit Windows: Version 10.2.0.4.0 - Production on 26-APR-2011 10:35:45
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Parameterdateien benutzt:
    O:\ORACLE\product\10.2.0\network\admin\sqlnet.ora
    Adapter TNSNAMES zur Auflösung des Alias benutzt
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = SRVXYZ)(Port = 1521))) (CONNECT_DATA = (SID = db1)))
    OK (0 ms)
    So any other ideas??

  • How to identify all jobs that were running at a particular point in time?

    TES 6.1.0.391
    From time to time, we have a need to identify all jobs that were running at a particular moment in time on a particular agent (we have about 800 agents)...eg "what was running ("Active") at 09:03:42 a.m. two days ago on agent XYZ?"
    I've used other job schedulers, and have written queries to extract that info, but I thought before I work on one for Tidal that I would ask the community....how are you getting this info?
    Any help is greatly appreciated, thanks.

    I had some time over the weekend and was able to come up with something of use.
    Please note that our repository is MSSQL
    select jobmst_prntname as ParentJobName,
    a.jobmst_prntid as ParentJobId,
    a.jobmst_id as JobId,
    a.jobdtl_id as JobDetailID,
    jobmst_name as JobName,
    b.owner_name as JobOwnerName,
    c.jobdtl_cmd as JobCommand,
    c.jobdtl_params as JobParameters,
    jobmst_lstchgtm as LastUpdateDate,
    d.nodlstmst_name as AgentListName
    ,[jobrun_status]
    ,[jobrun_duration]
    ,[jobrun_time] as starttime
    ,DATEADD(ss,jobrun_duration, jobrun_time) as endtime
    ,f.nodmst_name as AgentName
    ,[jobrun_owner]
    ,[jobrun_cmd]
    ,[jobrun_rundt]
    ,[jobrun_batch]
    ,[jobrun_params]
    ,[jobrun_launchtm]
    ,[jobrun_fullpath]
    from Admiral..jobmst a,
    Admiral.dbo.[owner] b,
    Admiral.dbo.jobdtl c,
    Admiral.dbo.nodlstms d,
    Admiral.dbo.jobrun e,
    [Admiral].[dbo].[nodmst] f
    where a.jobmst_owner=b.owner_id
    and a.jobdtl_id=c.jobdtl_id
    and c.nodlstmst_id=d.nodlstmst_id
    and e.jobmst_id=a.jobmst_id
    and e.nodmst_id=f.nodmst_id
    and jobmst_active='Y' --This condition shows only the active jobs
    and jobrun_rundt ='2014-01-26' --This is the job run date. If the job finishes the next day, that is what is going to be used.
    and f.nodmst_name = 'abc' --This is where you input your agent name
    Hope this helps!

  • IPhone calendar appointments set to local calendar, and need to switch to exchange calendar. Have to edit each appointment one at a time and change to exchange calendar. Is there any method to edit all appoints in my calendar at once?

    iPhone calendar appointments set to local calendar, and need
    to switch to exchange calendar. Have to edit each appointment one at a time and
    change to exchange calendar. Is there any method to edit all appoints in my
    calendar at once and change the calendar setting?

    Not sure this will work but if you go into the Keyboard preferences, then click the Keyboad Shortcuts tab, and then the '+', you can add your own shortcuts for any application.  I am not sure what happens if you try to override an existing shortcut since I haven't tried using this.
    Edit/Update:
    Probably against my better judgement I'll also throw this out there - there's an Unsanity haxie called Menumaster which might also allow you to do what you want.  Against my better judgement because personally I stay clear of haxies.  It's (all haxies) probably almost certain to break in Lion.  They always do with each major release.

  • Execute 4 jobs at the same time

    Hello guys,
    Is it possible with DBMS_SCHEDULER to execute 4 jobs at the same time. I'd like to use DBMS scheduler to refresh 4 different materialized view at the same time. After that, I'd like to start another job if they refreshed correctly.
    So, can this be achieved?
    Thanks for your help

    It can be achieved using a chain job. Here is how you would do it:
    Call DBMS_SCHEDULER.create_program to create 5 programs corresponding to the 4 MV jobs + the one extra job.
    Call DBMS_SCHEDULER.create_chain to create a new disabled chain.
    Call DBMS_SCHEDULER.define_chain_step to create 5 chain steps corresponding to the 5 programs you created earlier.
    Call DBMS_SCHEDULER.define_chain_rule to create 3 chain rules:
    -- Rule1:
    condition => 'TRUE'
    action => 'START step1, step2, step3, step4'
    -- Rule2:
    condition => 'step1 SUCCEEDED and step2 SUCCEEDED and step3 SUCCEEDED and step4 SUCCEEDED'
    action => 'START step5'
    -- Rule3:
    condition => 'step5 SUCCEEDED'
    action => 'END'
    Call DBMS_SCHEDULER.enable to enable the chain.
    Call DBMS_SCHEDULER.create_job to create the corresponding chain job of type chain.
    Hope that helps.

  • Execute all methods in a callass (use reflection?)

    Hi there,
    I�m trying to create a method that calls all methods in the class (except itself and the constructors). All methods returns an element and this element should be added to a linked list.
    I wonder if there is such possibility to do that (I know that JUnit suite does something similar where you don�t have to specify all tests and it is generated for you)
    I tried something with reflection (like the code below) but that obviously it didn�t work out.
    Any idea?
         public LinkedList getElements()
              Method m[] = MyClass.class.getDeclaredMethods();
              for (int i = 0; i < m.length; i++)
                   elementList.add(m.toString());
              return this.elementList;

    all methods returns an Element. I want to avoid typing somthing like:
    public LinkedList()
    linkedList.add(getConstantValue());
    linkedList.add(getPetroName());
    linkedList.add(getFileReferenceNumber());
    // instead I wish to have somthign like:
    //for loop on all methods
    // linkedList(exec method 1..2..3..4.)
         public Element getConstantValue()
              return new Element ("ffsd", "CONS", 3,42, line);
         public Element getPetroName()
              return new Element ("ffzx", "PXNM", 49,45, line);
         public Element getFileReferenceNumber()
              return new Element ("aawr", "CSTF", 27,94, line);
         public Element getIdentification()
              return new Element ("ttre", "CLID", 8,121, line);
         }

  • Executing a Job via Web Services using a Server Group?

    When executing a job from Designer or from the Management Console you have the option to select a specific job server or a server group.
    But when executing a job via Web Services it uses the first job server with which the repository was associated (i.e. the first job server listed in AL_MACHINE_INFO).
    Is there a way to get the job to execute using a server group instead simply choosing the first job server in the list?
    Note: We are using FIM to execute the jobs via web services and don't have access to additional parameters.

    Joe
    Here is the where you can change the server group/job server.
    - After you add the Batch/real Time job as a webservice.
    - Go to the Webservice Batch Job Attribute and from the drop down choose the "Enable job Attributes" and hit apply.
    - After this if you use the WSDL URL http://<Data Services Web Server>:<Web server Port>/DataServices/servlet/webservices?ver=2.0&wsdlxml
    - You will see the job attributes that you can change based on the allowed parameters mentioned in the documentation.
    The batch job or real time job is published without the job parameters by default. Once you enable the job attributes, remove and re publish the batch job as a web service. The application making the call to this webservice should be able to read the WSDL generated by Data services and pickup all the input and output parameters of the method.
    Refer to the Data Services Integrator guide (Chapter 3 : pages 25 - 33 ) to get the exact parameter values permitted via Data Services jobs called via web services.
    Hope this helps!
    Thanks & Regards
    Tiji

  • Executing a Job and Exporting PDF Output via API

    I can't seem to execute a job and export the PDF output via the API.<BR><BR>I use the following code snippet and nothing is exported:<BR><BR> jobAction.setAction(jobAction.ACTION_EXPORT_SECTION);<BR>     jobAction.setFormat(jobAction.FORMAT_PDF);<BR><BR>If use the snippet below, HMTL is exported:<BR> <BR> jobAction.setAction(jobAction.ACTION_EXPORT_AS_JOB_OUTPUT);<BR>     jobAction.setFormat(jobAction.FORMAT_PDF);<BR><BR>The javadoc for JobActionEnum says to use the former method. However, this doesn't seem to work. Is this an API bug or something obvious that I am not doing?<BR><BR><BR> -Eric D. Hill

    Joe
    Here is the where you can change the server group/job server.
    - After you add the Batch/real Time job as a webservice.
    - Go to the Webservice Batch Job Attribute and from the drop down choose the "Enable job Attributes" and hit apply.
    - After this if you use the WSDL URL http://<Data Services Web Server>:<Web server Port>/DataServices/servlet/webservices?ver=2.0&wsdlxml
    - You will see the job attributes that you can change based on the allowed parameters mentioned in the documentation.
    The batch job or real time job is published without the job parameters by default. Once you enable the job attributes, remove and re publish the batch job as a web service. The application making the call to this webservice should be able to read the WSDL generated by Data services and pickup all the input and output parameters of the method.
    Refer to the Data Services Integrator guide (Chapter 3 : pages 25 - 33 ) to get the exact parameter values permitted via Data Services jobs called via web services.
    Hope this helps!
    Thanks & Regards
    Tiji

  • Error on auto execute of job 1032656.. Where i can get the details?

    ORA-12012: error on auto execute of job 1032656
    ORA-04063: ORA-04063: package body "ORACLE_OCM.MGMT_DB_LL_METRICS" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "ORACLE_OCM.MGMT_DB_LL_METRICS"
    ORA-06512: at line 1
    ORA-1580 signalled during: alter database backup controlfile to 'backup_control_file.ctl'..
    Hi All,
    I am getting the above error in my alert log.
    When i check in my dba_jobs there were only two jobs having job column 1 & 21.
    Where i can see the job 1032656 and its details ?
    Regards
    Arun

    Hi Arun,
    This is due to invalid objects in ORACLE_OCM schema.
    Please read metalink note id:
    Invalid Objects After Revoking EXECUTE Privilege From PUBLIC [ID 797706.1]
    Symptoms
    OEM recommends that EXECUTE privilege being revoked from PUBLIC. After revoking the privilege, the following errors appeared in alert log:
    ORA-12012: error on auto execute of job 66171
    ORA-04063: package body "ORACLE_OCM.MGMT_DB_LL_METRICS" has errors
    ORA-06508: PL/SQL: could not find program unit being called: ORACLE_OCM.MGMT_DB_LL_METRICS"
    ORA-06512: at line 1 has errors .
    Also, the below query returns invalid rows count (approximately 46 rows)
    SQL> select object_name, owner, object_type, status from dba_objects where status = 'INVALID';
    Owners of invalid objects are ORACLE_OCM and WMSYS
    *Cause*
    At the time of installation of the database, Oracle execute scripts that test to see if PUBLIC access is granted to all of the routines that ORACLE_OCM and WMSYS need access to. If PUBLIC access is NOT available, Oracle scripts grant specific access rights. However, If EXECUTE privilege is revoked from PUBLIC after installation, then those specific access rights needs to be granted manually.
    *Solution*
    You will need to grant execute on UTL_FILE and DBMS_SCHEDULER to ORACLE_OCM and WMSYS. The below action plan should solve the issue:
    SQL> grant execute on UTL_FILE to oracle_ocm;
    SQL> grant execute on DBMS_SCHEDULER to oracle_ocm;
    SQL> grant execute on UTL_FILE to wmsys;
    SQL> grant execute on DBMS_SCHEDULER to wmsys;
    SQL> shutdown immediate;
    SQL> startup restrict;
    SQL> @utlrp.sql /* $ORACLE_HOME/rdbms/admin/@utlrp.sql */
    SQL> shutdown immediate;
    SQL> startup;
    Regards
    Rajesh

  • Error while executing the Job for Objects :null  Batch Risk Analysis

    Hi All,
    We've recently upgraded Virsa to version  5.3_14 .  I'm encountering a problem when executing the Batch Risk Analysis job for users, roles and profiles.  The job does not complete for some objects and it seems to be sporadic and shows this error: -
    Background Job History: job id=395, status=2, message=Error while executing the Job for Object(s) :ABROWN:null                                                                               
    I've attached the log for your review.
    Thanks in advance for your help.                                                                               
    Linda Lewis                                                                               
    Feb 9, 2011 1:47:53 PM com.virsa.cc.xsys.meng.ObjAuthMatcher <init>
    FINEST: ObjAuthMatcher constructed: 4ms, #singles=2141, #ranges=0, #super=0
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.riskanalysis.AnalysisEngine riskAnalysis
    WARNING:  Job ID:395 : Failed to run Risk Analysis
    java.lang.StringIndexOutOfBoundsException at java.lang.String.substring(String.java:1019)
    at com.virsa.cc.xsys.util.RuleLoader.getPermRule(RuleLoader.java:573)
    at com.virsa.cc.xsys.riskanalysis.AnalysisEngine.performActPermAnalysis(AnalysisEngine.java:1609)
    at com.virsa.cc.xsys.riskanalysis.AnalysisEngine.riskAnalysis(AnalysisEngine.java:321)
    at com.virsa.cc.xsys.bg.BatchRiskAnalysis.performBatchRiskAnalysis(BatchRiskAnalysis.java:1166)
    at com.virsa.cc.xsys.bg.BatchRiskAnalysis.performBatchSyncAndAnalysis(BatchRiskAnalysis.java:1464)
    at com.virsa.cc.xsys.bg.BgJob.runJob(BgJob.java:560)
    at com.virsa.cc.xsys.bg.BgJob.run(BgJob.java:363)
    at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.scheduleJob(AnalysisDaemonBgJob.java:375)
    at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.start(AnalysisDaemonBgJob.java:92)
    at com.virsa.cc.comp.BgJobInvokerView.wdDoModifyView(BgJobInvokerView.java:444)
    at com.virsa.cc.comp.wdp.InternalBgJobInvokerView.wdDoModifyView(InternalBgJobInvokerView.java:1236)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
    at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:332)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(AccessController.java:207)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock lock
    FINEST: Lock:1004
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock unlock
    FINEST: Unlock:1004
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.BatchRiskAnalysis performBatchRiskAnalysis
    WARNING: Error: while executing BatchRiskAnalysis for JobId=395 and object(s):ABROWN: Skipping error to continue with next object: null Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.BgJob updateJobHistory
    FINEST: --- @@@@@@@@@@@ Updating the Job History -
    2@@Msg is Error while executing the Job for Object(s) :ABROWN:null
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.dao.BgJobHistoryDAO insert
    INFO: -
    Background Job History: job id=395, status=2, message=Error while executing the Job for Object(s) :ABROWN:null
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock lock
    FINEST: Lock:1004
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock unlock
    FINEST: Unlock:1004
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.BatchRiskAnalysis performBatchRiskAnalysis
    INFO: --- BKG User Permission Analysis (System: P20:020) completed ---  elapsed time: 4522 ms
    Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock lock
    Edited by: Linda Lewis on Feb 9, 2011 9:08 PM

    Hi,
    Was a solution found for this error?
    Thanks,
    Glen

  • Can a dbms_job.run execute a job that execute another dbms_job.run?

    Hi,
    I'm using Oracle9iR2 database.
    I create a package procedure that loop through a list of jobs from user_jobs table and run it using dbms_job.run(jobid).
    Then I schedule this package procedure as a job (say JobA) itself to execute the above procedure every 15 minutes.
    However, it always fail. When I execute JobA manually from sqlplus, I get the folllowing error. Any idea what's wrong?
    SQL> exec dbms_job.run(55805);
    BEGIN dbms_job.run(55805); END;
    ERROR at line 1:
    ORA-12011: execution of 1 jobs failed
    ORA-06512: at "SYS.DBMS_IJOB", line 406
    ORA-06512: at "SYS.DBMS_JOB", line 272
    ORA-06512: at line 1
    Please advise.
    Thank you.
    Message was edited by:
    bchurn

    Hi,
    I am bchurn's colleague who is currently also looking into this problem. The code that we have is similiar to yours except there's a cursor looping through all the failed jobs and executing them.
    I am not sure what is the actual difference but it is actually a job running a procedure instead of through SQL Plus.
    However, we found out that a job cannot run another job. But it seems to be alright with your settings :-/
    What we have is actually a job created for every email to be sent out to our users (jobA). But many a times, the emails were not sent out because of unknown problems (during that time - I think it's the ORA-00600 error).
    The last time we created the second job (jobB) for the purpose of re-executing failed jobA jobs. The errors are that a job cannot execute another job.
    Then, we worked around to change jobB to re-adjust the execution time for all the jobA jobs instead of directly reexecuting them. While some failed jobA jobs are executed successfully because of it, some still remains. We found out that the errors from failed execution of jobA jobs as following:
    ORA-00600: internal error code, arguments: [kgassg_2], [], [], [], [], [], [], []
    ORA-29279: SMTP permanent error: 555 5.5.4 <fieldNameHere> parameter unrecognized
    The second error very seldom. First one most common. The jobs eventually being executed successfully after many re-execution (sometimes about 3 to 4 times, some over 20 or 60 times). Anyone can give suggestions or inputs on the first error? The error log file and its trace files do not give much information on the errors with something like the following:
    Error log file:
    Errors in file /opt/app/oracle/products/920/admin/testapp/bdump/somefilename.trc:
    ORA-00600: internal error code, arguments: [kgassg_2], [], [], [], [], [], [], []
    And when I go and search for the somefilename.trc, it does not exist.
    Any idea on how to solve this or identifying the actual problem?
    Thank you in advance.

  • Re: Error when executing the Job.

    Hi,
    I am trying to Migrate data from SAP to MySQL. When I try to execute the JOB, it gives me the following error:
    1. 3964     1660     DBS-070401     6/29/2010 4:37:23 PM     |Dataflow DF_Sales_Headers|Loader Query_sales_headers
    2. 3964     1660     DBS-070401     6/29/2010 4:37:23 PM     ODBC data source <MyODBC> error message for operation   <SQLExecute>: <[MySQL][ODBC 3.51
    3. 3964     1660     DBS-070401     6/29/2010 4:37:23 PM     Driver][mysqld-5.0.34-enterprise-nt]Duplicate entry '0010000000' for key 1>.
    4. 3964     1660     RUN-051005     6/29/2010 4:37:23 PM     |Dataflow DF_Sales_Headers|Loader Query_sales_header     Execution of <Regular Load Operations> for target <sales_headers> failed. Possible causes: (1) Error in the SQL syntax; (2) Database connection is broken; (3) Database related errors such as transaction log is full, etc.; (4) The user defined in the datastore has insufficient privileges to execute the SQL. If the error is for preload or postload operation, or if it is for egular load operation and load triggers are defined, please check the SQL. Otherwise, for (3) and (4), please contact your local DBA.
    [Note: But when I validate the DataFlow before Executing, it does not show any error msgs.]
    This is pretty simple Batch Job, with one source Table and a Target table. I have used Query for mapping the columns.
    I am Pretty much new to BODI, so please bare with me, if the question seems silly.
    Any kind of help is appreciated. Thank You!!

    Hi all,
    Sorry for any inconvenience. I found out that, my Job has already executed and also populated the data. But, somehow, i missed that and was trying to re-execute it.
    But then again, I am trying to execute another job and has another peculiar problem.[This time, Have checked everything before posting].
    Following is the Error Message:
    5412     6600     R3C-151001     6/29/2010 6:13:35 PM     |Dataflow DF_Sales_Item Error calling R/3 to get table data: <RFC Error: Key: RFC_ERROR_SYSTEM_FAILURE Status: Error in ASSIGN assignment in program SAPLSDTX >.
    I am not sure why, as i have checked all the connections and i dont see any problems.
    Any kind of help is appreciated.
    Thank You!!
    Edited by: Ragini_sri on Jun 30, 2010 5:35 PM

  • SharePoint Designer workflow executing same lines\steps multiple time in single instance

    I am working SharePoint 2010 workflow. I am facing an issue.
    Problem:
    1) I have few workflows running on different situation
    2) Out of all workflows one is set to execute on "Item Created"
    3) This workflow having some lines to execute and then create an item and then wait for a change in field value.
    4) Expectation: This should create one instance and execute the lines\steps only once and wait for field change.
    5) Actual Out-Come: The workflow is executing the lines\steps three times in a single instance.
    6) The workflow history is showing the three time execution of all lines\steps using log to history.
    7) It is a SPD workflow so there is no while loop. but it behaving like while loop.
    8) On create Item, we are creating task, so it is creating three tasks. It is sending three emails and also we are appending text in title so text is appended three times.
    I did a lot of research but not able to find the solution.
    Please help.
    - Khan Abubakar Disclaimer: The opinions expressed herein are my own personal opinions and do not represent any others view in anyway.

    Hi Khan,
    According to your description, my understanding is that your workflow executed some actions three times.
    What actions did you for the problematic actions?
    If they are "Start Approval Process" action, please check whether there are multiple approvers for tasks. If yes, the action will create one task for each approver.
    Please create a new list and a new workflow based on the problematic workflow, test again, compare the result.
    For reproducing your issue, I suggest you provide more information about your list and workflow (detailed actions or some screenshots). It will make others in the forum easy to find a solution for you.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to delete all data in all tables in one time ?!

    1 CREATE OR REPLACE PROCEDURE delete_all_data
    2 IS
    3 v_statement VARCHAR2 (200);
    4 BEGIN
    5 FOR i IN (SELECT *
    6 FROM user_tables)
    7 LOOP
    8 v_statement :=
    9 'delete table ' || i.table_name ;
    10 EXECUTE IMMEDIATE v_statement;
    11 END LOOP;
    12 commit;
    13* END;
    SQL> /
    Procedure created.
    SQL> exec delete_all_data
    BEGIN delete_all_data; END;
    ERROR at line 1:
    ORA-00903: invalid table name
    ORA-06512: at "DE2.DELETE_ALL_DATA", line 10
    ORA-06512: at line 1
    I made the previous code , but it's didn't work with me .... any help for this problem please ?!
    I'm just reminder ..... all what I need ,that delete all data in all tables in one time only .
    I'm waiting for the answer ..... and thanks in advance

    create or replace
    FUNCTION TRUNC_SCHEMA RETURN NUMBER AS
    CURSOR select_table IS SELECT TABLE_NAME AS TNAME FROM USER_TABLES ORDER BY 1;
    sTableName Varchar2(128);
    sUser Varchar2(128);
    sConstraintName Varchar2(128);
    plsql_block Varchar2(512);
    BEGIN
    SELECT USER INTO sUser FROM DUAL;
    IF ((sUser='SYSTEM') OR (sUser='SYS')) THEN
    RETURN 1;
    END IF;
    EXECUTE IMMEDIATE 'PURGE RECYCLEBIN';
    -- DISABLE table's constraints
    FOR C1 IN (select CONSTRAINT_NAME, TABLE_NAME from user_constraints where STATUS = 'ENABLED' AND CONSTRAINT_TYPE in ('P','R') ORDER BY R_CONSTRAINT_NAME) LOOP
    sConstraintName := C1.CONSTRAINT_NAME;
    sTableName := C1.TABLE_NAME;
    plsql_block := 'ALTER TABLE ' || sTableName || ' DISABLE CONSTRAINT ' || sConstraintName;
    EXECUTE IMMEDIATE plsql_block ;
    END LOOP;
    FOR D IN select_table LOOP
    --get table name
    sTableName := D.TNAME;
    -- clear table
    plsql_block := 'TRUNCATE TABLE ' || sTableName;
    EXECUTE IMMEDIATE plsql_block ;
    END LOOP;
    -- ENABLE table's constraints
    FOR C2 IN (select CONSTRAINT_NAME, TABLE_NAME from user_constraints where STATUS = 'DISABLED' AND CONSTRAINT_TYPE in ('P','R') ORDER BY R_CONSTRAINT_NAME desc) LOOP
    sConstraintName := C2.CONSTRAINT_NAME;
    sTableName := C2.TABLE_NAME;
    plsql_block := 'ALTER TABLE ' || sTableName || ' ENABLE CONSTRAINT ' || sConstraintName;
    EXECUTE IMMEDIATE plsql_block ;
    END LOOP;
    RETURN 0;
    EXCEPTION WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR: ' || SQLERRM);
    RETURN 1;
    END TRUNC_SCHEMA;
    /

  • Option to execute one sql at a time

    Hi,
    I have 10 sql's according to parameter value i have to execute one sql at a time.Currently i am using union all for all 10 sql and according to parameter it is executing one sql.I am getting performance issue while using this approach.It is executing all the 10 sql ,getting result for 1 sql .
    As per requirement i can not use ref cursor or procedure.
    Is there any other options for this requirement.
    Thanks in advance.

    is this a duplicate of this thread:
    Re: problem with union all queries --urgent ?
    if so, did you learn anything from the people who tried to help you?

Maybe you are looking for

  • "iMessage needs to be enabled to send this message?

    What does "iMessage needs to be enabled to send this message" mean?  I can't get my messages to send and when I try that pops up. What is it and how can I fix it?

  • Data modelling - counter scenrio

    I need to report counters for no of sales orders on delivery block, incomplete orders and billing blocks and count backorder line items. I have a DSO mapped with VAITM, key fields sales doc and item no. I have all - delivery block, incomplete orders

  • URGENT:calling subscreen in IA05 - Internal tab

    Hi All I have an urgent Requirement. I need to upload data into SAP using transaction IA05. In IA05 first we need to enter header data then operation data. After entering data for particular operation then we need to select "Internal" tab to enter th

  • Delaying folder action until file creation is complete

    I'm trying to create a folder action that takes the output of a bounce from ProTools and then imports it into iTunes. The problem I'm having is that it takes real time (about 20 min) to create the complete ProTools file in the folder, however the scr

  • Can the new Mac Mini run OSX 10.7.5?

    I have the new 1.4GHz Mac Mini w/4GB Ram. I bought a Mediasonic external 4 bay drive. It's connected by USB 3.0. One of the drives in the enclosure is my old HD with Mac OSX 10.7.5 installed. I've tried booting up from that drive through the USB 3 co