Database Scheduled Jobs not working

Hai All,
In my database Scheduled database jobs not working , but it work manullay fine...
All parameter are correct including job_queue_processes.. Where I can start troubleshoot for this problem.
Oracle: Oracle 9.2.0.1.0
Platform : AIX
Please help ...
Shiju

did you enabled the job?Unlikely. DBMS_SCHEDULER was a 10g innovation and as the OP mentioned, they're on 9i.
Oracle: Oracle 9.2.0.1.0Cheers, APC

Similar Messages

  • Scheduling is not working.

    Hi Experts,
    Scheduling is not working.
    I have created the Standalone agent and start the agent. It is working fine.
    I have scenario on package. I did scheduling for every data at 5AM.
    The scheduling is not happing (Scheduling is not working).
    In topology  agent  I have updated the Scheduling also.
    I am looking advice…
    Thanks in advance.
    Regards
    Zakeer

    Hi,
    We are implementing OWS. We have successfully installed and deployed OWS but yet to open the OWS applicaation. we are defining the entire CCD parameters. Apprreciate help on the same, whether you have have any setup document. A business flow or the process flow on OWS.
    Sincerely appreciat your help. My id: [email protected]
    Regards,
    Abhijit

  • Creation of a Database Schema is not working (Into a Sync Group)

    Hello,
    We have in: Sql Databases > Sync > Sync Group, a group called "SyncGroupViviendasProyectosVentasPruebas"
    If we go to "Sync Rules" and click "DEFINE SYNC RULES", no matter the databse we choose (there are 2), when we click in "REFRESH
    THE DATABASE SCHEMA" it dont works!
    It seems to be working but minutes later there is no Schema created.
    Why? Why the Create Database Schema is not working?
    Thanks,

    The detail error log from our service backend is:
    'Type=Microsoft.SqlServer.Management.Sdk.Sfc.InvalidVersionEnumeratorException,Message=Operation not supported on version 11.0 SqlAzureDatabase.,Source=Microsoft.SqlServer.SqlEnum,StackTrace=   at Microsoft.SqlServer.Management.Smo.XmlReadDoc.LoadFile(Assembly
    a, String strFile)
       at Microsoft.SqlServer.Management.Smo.SqlObject.LoadInitDataFromAssemblyInternal(Assembly assemblyObject, String file, ServerVersion ver, String alias, StringCollection requestedFields, Boolean store,
    StringCollection roAfterCreation, DatabaseEngineType databaseEngineType)
       at Microsoft.SqlServer.Management.Smo.SqlObject.LoadInitData(String file, ServerVersion ver, DatabaseEngineType databaseEngineType)
       at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.LoadElement(ObjectLoadInfo oli, ServerVersion ver, DatabaseEngineType databaseEngineType)
       at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetElement(ObjectLoadInfo oli, ServerVersion ver, DatabaseEngineType databaseEngineType)
       at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetAllElements(Urn urn, ServerVersion ver, DatabaseEngineType databaseEngineType, Object ci)
       at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetObjectsFromCache(Urn urn, Object ci)
       at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object connectionInfo, Request request)
       at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object connectionInfo, Request request),'
    It might be a collation/SMO issue after I do some research, so may I know that have you change the collation of you SQL Azure database? If yes, please try to use default collation and try again.
    Regards,
    Bowen

  • My database connectivity is not working inspite of installing sql express

    My database connectivity is not working inspite of installing sql express ...what should I do so that my database works

    Hello karan7,
    In addition to pvdg's post, can you reproduce this issue with a new fresh database? If you can this means it is a SQL Setup related problem. If you cannot, your database file may already corrupt.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Scheduling is not working in BI Publisher

    Hi all,
    I am trying to schedule the report on BI publisher it's giving the following error:
    oracle.apps.xdo.servlet.scheduler.ProcessingException: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12519, TNS:no appropriate service handler found
    The Connection descriptor used by the client was: localhost:1521:xe (I am using oracle database 10g and obiee 10.1.3.2).
    I have followed the instructions provided in the link "Exploring Advanced Features of Oracle Business Intelligence Publisher"
    Created mail server as instructed in the link ...
    Problems are:
    Unable to connect incoming and outgoing mail servers. I have used my machine host name i.e user as both incoming and outgoing server (u.ser.com)
    also Scheduled jobs are not working in BI publisher.
    Please let me know the solution for the above problem.
    regards
    chandra kanth.

    gurus,
    pls answer the above one, as i am unable to proceed further.
    regards
    chandra kanth.

  • Schedule task not working in OIM11gr2

    Hi Experts,
    I have coded a schedule task, using the plugin approach, the steps i have followed are:
    1. Created the custom code jar
    2. Created plugin.xml
    the above 2 files are added in plugin and registerd in OIM
    3. Created the task.xml and registered in MDSWhile creating the job i could see it shows up in the tasks but when i executed thejob it is giving me below error:
    I tried putting it in using UploadJars.sh utility and placed thejar in schedule tasks folder but did not work.
    An error occurred while loading the plugin class. Class null was not found.
    Please provide help this is really urgent!!
    thanks

    This is how my Task.xml (MDS file) looks
    <?xml version='1.0' encoding='UTF-8'?>
    <scheduledTasks xmlns="http://xmlns.oracle.com/oim/scheduler">
    <task>
    <name>RIMReconTask</name>
    <class>com.abc.iam.customtask.rim.RIMReconST</class>
    <description>This scheduled task will reconcile the RIM profile to the OIM users</description>
    <retry>0</retry>
    <parameters>
    <string-param required="true" helpText="User Login">User Login</string-param>
    <string-param required="true" helpText="User Status">User Status</string-param>
    <string-param required="true" helpText="Resource Object">Resource Object</string-param>
    </parameters>
    </task>
    </scheduledTasks>
    I have removed the plugin file completely. I have validated that class path and name it is the same as com.abc.iam.customtask.rim.RIMReconST
    I have registered the jar in OIM database using UploadJars.sh utility.
    I get the following error:
    An error occurred while loading the plugin class. Class null was not found.
    Dont know what is wrong here !!

  • BIP scheduled job stoped work

    BIP with OBIEE 10.3.4 on Orace database. Both OBI and database are on Redhat Linux. We have a few scheduled report to be sent to a printer. It wors fine for many months. But two days ago they stopped work. There is not error messges in BIP Schedules page. In the Schedules>Schedules page, all scheduled job are still there within the data range that scheduled to run daily. In the Schedules>Hiistory page, reports are seen up to 2 days ago. There are no yesterday and today's records.
    Where to find useful info to debug this? Any tips to fix it?
    Thanks.

    The reports haven't been scheduled last two days. In case the schedule is still there, there might be something wrong with actually loading them in the scheduler.
    You could restart the scheduler service, and/or the complete BI server.
    Have you tried manually scheduling a report, to run immediately? What happens?

  • OIM schedule task not working properly (error - MISFIRE_INSTRUCTION_RE....)

    Hello,
    we're doing trusted reconciliation from DB and it is implemented through a GTC connector (OIM 10g BP 15).
    After we did a sync of OIM from prod to this environment, we're seeing issue using this related trusted recon scheduled job. Here is the error :
    DEBUG,24 Jan 2012 15:09:12,321,[XELLERATE.SCHEDULER],Loading Scheduled task class com.thortech.xl.scheduler.core.quartz.QuartzWrapperusing ADP classloader
    DEBUG,24 Jan 2012 15:09:12,321,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:12,321,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],Class/Method: QuartzSchedulerImpl/getQuartzTrigger entered.
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],Creating Custom Trigger with StartTime 2012-01-24 with repeat interval of 21600000 secs
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],triggerFreq : CUSTOM
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],triggerImpl : Trigger 'DEFAULT.MYMDB_GTC': triggerClass: 'org.quartz.SimpleTrigger isVolatile: false calendar: 'null' misfireInstruction: 0
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],trigger Misfire instruction : MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],Class/Method: QuartzSchedulerImpl/getQuartzTrigger left.
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],MYMDB_GTC trigger is related to DEFAULT.MYMDB_GTC and new job is DEFAULT.MYMDB_GTC
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],Scheduling task : MYMDB_GTC with trigger : Trigger 'DEFAULT.MYMDB_GTC': triggerClass: 'org.quartz.SimpleTrigger isVolatile: false calendar: 'null' misfireInstruction: 5
    DEBUG,24 Jan 2012 15:09:12,392,[XELLERATE.SCHEDULER],Loading Scheduled task class com.thortech.xl.scheduler.core.quartz.QuartzWrapperusing ADP classloader
    DEBUG,24 Jan 2012 15:09:12,392,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:12,392,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    DEBUG,24 Jan 2012 15:09:12,407,[XELLERATE.SCHEDULER],Class/Method: QuartzSchedulerImpl/updateXellerateForTrigger entered.
    DEBUG,24 Jan 2012 15:09:12,407,[XELLERATE.SCHEDULER],Updating Trigger Details: lastStartTime : 2012-01-24 lastStopTime : Tue Jan 24 15:09:12 PST 2012 nextStartTime : 2012-01-24
    DEBUG,24 Jan 2012 15:09:12,411,[XELLERATE.SCHEDULER],LefMethodDebug
    DEBUG,24 Jan 2012 15:09:12,411,[XELLERATE.SCHEDULER],Class/Method: QuartzSchedulerImpl/updateScheduledTask left.
    DEBUG,24 Jan 2012 15:09:14,035,[XELLERATE.SCHEDULER],Loading Scheduled task class com.thortech.xl.scheduler.core.quartz.QuartzWrapperusing ADP classloader
    DEBUG,24 Jan 2012 15:09:14,035,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:14,035,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    DEBUG,24 Jan 2012 15:09:14,066,[XELLERATE.SCHEDULER],Loading Scheduled task class com.thortech.xl.scheduler.core.quartz.QuartzWrapperusing ADP classloader
    DEBUG,24 Jan 2012 15:09:14,066,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:14,066,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    INFO,24 Jan 2012 15:09:14,093,[XELLERATE.SERVER],Quartz Executing Scheduled task : MYMDB_GTC
    DEBUG,24 Jan 2012 15:09:14,099,[XELLERATE.SCHEDULER],Class/Method: SchedulerUtil/eventPreInsert entered.
    DEBUG,24 Jan 2012 15:09:14,099,[XELLERATE.SCHEDULER],Class/Method: SchedulerUtil/getSchedulerInstanc left.
    DEBUG,24 Jan 2012 15:09:14,175,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:14,175,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    Any idea what could be wrong here?
    Thanks,

    Hello,
    I tried "Edit" the GTC connector and "SAVE" the connector back without doing any editing. I hope that will not cause any difference in the deployed corresponding GTC schedule task which used to work earlier.
    Anyways, i also checked the trusted source database and populated some new values in there and tried reconciling again (incremental reconciliation configured). Surprisingly i see some new error in the logs. Is this because of the unnecessary "Edit" operation i performed ?
    ==========================================================================================================
    ERROR,31 Jan 2012 16:22:49,269,[XELLERATE.GC.FRAMEWORKRECONCILIATION],Reconciliation Encountered error:
    java.lang.IllegalArgumentException: Cannot format given Object as a Date
    at java.text.DateFormat.format(DateFormat.java:281)
    at java.text.Format.format(Format.java:140)
    at com.thortech.xl.gc.impl.common.DBFacade.getStringFromSQLObject(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.retrieveRecord(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.getRecord(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.getTargetRecord(Unknown Source)
    at com.thortech.xl.gc.impl.recon.DBReconTransportProvider.getFirstPage(Unknown Source)
    at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)
    at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
    at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
    at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:477)
    DEBUG,31 Jan 2012 16:22:49,270,[XELLERATE.SCHEDULER.TASK],Class/Method: SchedulerBaseTask/setResult entered.
    DEBUG,31 Jan 2012 16:22:49,270,[XELLERATE.SCHEDULER.TASK],Class/Method: SchedulerBaseTask/setResult left.
    WARN,31 Jan 2012 16:22:49,270,[XELLERATE.GC.FRAMEWORKRECONCILIATION],Though Reconciliation Scheduled task has encountered an error, Reconciliation Transport providers have been "ended" smoothly. Any provider operation that occurs during that "end" or "clean-up" phase would have been executed e.g. Data archival. In case you want that data to be a part of next Reconciliation execution, restore it from Staging. Provider logs must be containing details about storage entities that would have been archived
    DEBUG,31 Jan 2012 16:22:49,270,[XELLERATE.SCHEDULER.TASK],Class/Method: SchedulerBaseTask/run left.
    ========================================================================================

  • Java Job not working

    We have a java job that sends an XML to remote URL by opening OutputStreamWriter to URL and receives the response XML from same URL using InputStreamWriter.
    This Job is working fine, when running on Solaris Env. Now we have new server installed on Red Hat Linux. This job is not working on this new environment.
    Error i am getting is as below:
    <message>XML Parse Error</message>
    - <message>XML Parse Error</message>
    <reason>Error #-1072896680
    - <reason>Error #-1072896680
    XML document must have a top level element.
    - XML document must have a top level element.
    </reason>
    - </reason>
    <position src_code_pos="1"><line>0</line><column>0</column></position><src></src>
    - <position src_code_pos="1"><line>0</line><column>0</column></position><src></src>
    </RCP_CONTROL><SERVICE_INCIDENT Acknowledge="0"/><TRANSACTION/></RCP>
    - </RCP_CONTROL><SERVICE_INCIDENT Acknowledge="0"/><TRANSACTION/></RCP>
    java.io.IOException: Bad file descriptor
    I Dont see any issue with code as it is still working fine from server installed on Solaris. Pls help

    If Remote URL have received XML Successfully, then it creates some entries in its Database. But its not doing so. So i guess it is not even able to send the XML Successfully. And Since URL is not getting proper desired XML input so its returning error XML output.
    But i am wondering same code is running smooth on Solaris Env.
    Remote URL is part of 3rd party tool. so we even dont have much access on it so that we can determine what is received at their end, when we send an XML from our side.

  • Scheduled job not getting executed on a logical standby

    Hello,
    We have created a job(through dbms_scheduler API). The job is enabled and shows up in the SCHEDULERJOBS view also.
    However the job does not get executed. I looked into the following tables there was no relevant entry found for the aforesaid job:
    select * from all_scheduler_job_log
    select * from dba_scheduler_running_jobs
    select * from DBA_SCHEDULER_JOB_RUN_DETAILS order by log_date desc
    Is there any limitation that we cannot execute scheduled jobs on a logical standby database. If i execute the relevant program (that is configured to be run as job in this scenario) as an individual procedure from SQL plus, it gets executed successfully implying there is no errors/problem in the subprogram that the job is going to invoke.
    Appreciate your thoughts in this regard.
    Thanks.

    Hi Justin,
    Thanks for your response.
    As per the app design, the job invokes a stored program(that maps to a stored procedure present in standby db itself) that reads the data from standby and populates the relevant tables/entities in another database(third db, not primary or standby) which acts as a repository. No write operations are to be performed on standby.
    So, i have two doubts:
    -- Can scheduled jobs execute on logical standby db[Oracle release 10g(R2)]
    I was going through few of the oracle docs and it is mentioned that this is a known limitation in 10g
    R2 release and has been corrected in 11g. Now we have something called database_role
    attribute that needs to be set to 'LOGICAL STANDBY' if you need to execute a job on
    standby. However it is available in 11g onwards.
    -- If there is no workaround for the above mentioned problem in 10g-R2 release.
    Then we may have to schedule a job from third db instance that shall invoke the program(residing on the standby db). Can we have a scheduled job which executes a program that maps to a remote stored procedure instead of local stored procedure?
    Appreciate your thoughts.
    Thanks

  • Back Ground Job not Working

    Hi,
    I have watched all the threads regarding Back Ground job like SE36 & SE37. I have given a back ground job and its not working.
    Its an ABAP Program which is creating an OLEDB Connection to MSACCESS and then retrieving and updating database table. The program is working very fine on foreground but when it is given to back ground job then it shows that the program is running, i mean in delay the time is ticking. But at last it is canceled by the system.
    What's the thing i am missing or what should i do here? I have already set my program at high priority.
    Thanks.

    Hi Atish,
    Are you sure that we cannot run in background? Can you please explain me why it cant be done.
    Thanks,
    Inder.

  • 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."

  • KM Scheduler is not working

    Hi Experts,
    I created a KM scheduler task in NWDS and deployed into portal. The same task is working in one system ie. in DEV.  But its not working in QUA system. I Deployed the same into QUA.
    I selected the CM and time interval but its not working. Please let me if I should activate/enable something to make my scheduler run?
    Ram

    Please check
    Configuration -->  Content Management -->  Global Services -->  Scheduler Tasks
    Make sure timetable and CM System is assigned to the Schedular task
    Regards,
    Tushar

  • SQL Server 2012 Database Email is not working with AWS SES Services

    Hi Greetings to all,
    I have issue with the SQL Server Database mail Services. I have Configured Amazon Simple Email Services (AWS SES) as db profile in SQL Server and for last 2 years its working perfectly. But, from last two days on wards it is not working properly the Emails
    are queued but not sent to the recipients. the SES Services are working fine in outlook. but, not working in SQL Server. 
    Please help on this. tried changing the ports no result only one or two emails only sent remaining are failing.the info messages is as below
    Message
    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 10 (2015-04-10T17:12:41). Exception Message: Cannot send mails to mail server. (The operation has timed out.).
    RehaanKhan. M

    Hello,
    Try to use port 465, port 2587 or port 587 instead of using port 25, as explained on the following articles.
    http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-issues.html
    http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html
    The first of above URLs is intended for troubleshooting SMTP issues in general.
    Verify you the mail account has not reached any limit. Limit of emails per day, per second, etc.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Other database delete is not working on forall statement

    Dear all,
    My scenario is , i create a program, the program fetch the data from database x and i want to delete on the same x database but i am running this program at y database, so
    so i created a view
    create or replace view vw_ibs_pda_bills_x as
    SELECT *
            FROM ibs_pda_bills_x@testarch1my program
    Declare
          CURSOR c2 IS
          SELECT *
            FROM vw_ibs_pda_bills_x
           WHERE bill_month <= '31-dec-2008'; -- AND bpref_no = :cons;
           opr varchar2(10) := 'DELETE';
          TYPE tsch IS TABLE OF c2%ROWTYPE;
          vtsch      tsch;
          cnt        NUMBER := 0;
          stime      NUMBER;
          etime      NUMBER;
          DURATION   NUMBER;
          rcount     NUMBER;
          errorsd   PLS_INTEGER;
          ecode     NUMBER;
          val1   VARCHAR2 (100);
          val2   VARCHAR2 (100);
          val3   VARCHAR2 (100);
          val4   VARCHAR2 (100);
       BEGIN
          BEGIN
             stime := DBMS_UTILITY.get_time ();
             OPEN c2;
             LOOP
                FETCH c2
                BULK COLLECT INTO vtsch LIMIT 1000;
                IF vtsch.COUNT = 1000
                THEN
                   cnt := cnt + 1;
                END IF;
            If opr = 'INSERT' Then
                    FORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
                          INSERT INTO dlul.ibs_pda_bills
                        VALUES vtsch (i);
            Else
                    FORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
                        Delete from vw_ibs_pda_bills_x where bill_month = vtsch(i).bill_month;
            End if;
                EXIT WHEN c2%NOTFOUND;
             END LOOP;
             etime := DBMS_UTILITY.get_time ();
             DURATION := ((etime - stime) / 100) / 60;
             rcount :=
                 (cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
         If opr = 'INSERT' Then
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_PDA_BILLS', DURATION, rcount);
         Else
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_PDA_BILLS-D', DURATION, rcount);
         End if;
             CLOSE c2;
             COMMIT;
          EXCEPTION
             WHEN OTHERS
             THEN
                errorsd := SQL%BULK_EXCEPTIONS.COUNT;
                IF errorsd > 0
                THEN
                   FOR j IN 1 .. errorsd
                   LOOP
                      ecode := SQL%BULK_EXCEPTIONS (j).ERROR_CODE;
                      val1 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).sch_code;
                      val2 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bpref_no;
                      val3 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bill_month;
                      val4 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).service_code;
                  If opr = 'INSERT' Then         
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
                                   'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'INSERT');
              Else
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
                                   'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'DELETE');
              End if;
                   END LOOP;
                END IF;
          END;
       END pda_insert;the program want to do the delet option for all delete is not working. The program executed successful but the operation delete is not happening
    how to solve this issue.
    please help me
    kanish

    No error encountered in my log table
    the new workaround you said, that is instead of for all , already i tried for i in 1.. to like
    instead of forall delete i tried the following way
    Declare
          CURSOR c2 IS
    SELECT *
            FROM ibs_pda_bills_x@testarch1
           WHERE bill_month <= '31-dec-2008'; -- AND bpref_no = :cons;
           opr varchar2(10) := 'DELETE';
          TYPE tsch IS TABLE OF c2%ROWTYPE;
          vtsch      tsch;
          cnt        NUMBER := 0;
          stime      NUMBER;
          etime      NUMBER;
          DURATION   NUMBER;
          rcount     NUMBER;
          errorsd   PLS_INTEGER;
          ecode     NUMBER;
          val1   VARCHAR2 (100);
          val2   VARCHAR2 (100);
          val3   VARCHAR2 (100);
          val4   VARCHAR2 (100);
       BEGIN
          BEGIN
             stime := DBMS_UTILITY.get_time ();
             OPEN c2;
             LOOP
                FETCH c2
                BULK COLLECT INTO vtsch LIMIT 1000;
                IF vtsch.COUNT = 1000
                THEN
                   cnt := cnt + 1;
                END IF;
            If opr = 'INSERT' Then
                    FORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
                          INSERT INTO dlul.ibs_pda_bills
                        VALUES vtsch (i);
            Else
                   /* fORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
                     Delete from vw_ibs_pda_bills_x where to_char(bill_month,'dd-mm-rrrr') = to_char(vtsch (i).bill_month,'dd-mm-rrrr');*/
                     for i in 1..vtsch.count loop
                       delete ibs_pda_bills_x@testarch1 where to_char(bill_month,'dd-mm-rrrr') = to_char(vtsch (i).bill_month,'dd-mm-rrrr');
                     end loop; 
            End if;
                EXIT WHEN c2%NOTFOUND;
             END LOOP;
             etime := DBMS_UTILITY.get_time ();
             DURATION := ((etime - stime) / 100) / 60;
             rcount :=
                 (cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
         If opr = 'INSERT' Then
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_PDA_BILLS', DURATION, rcount);
         Else
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_PDA_BILLS-D', DURATION, rcount);
         End if;
             CLOSE c2;
             COMMIT;
          EXCEPTION
             WHEN OTHERS
             THEN
                errorsd := SQL%BULK_EXCEPTIONS.COUNT;
                IF errorsd > 0
                THEN
                   FOR j IN 1 .. errorsd
                   LOOP
                      ecode := SQL%BULK_EXCEPTIONS (j).ERROR_CODE;
                      val1 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).sch_code;
                      val2 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bpref_no;
                      val3 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bill_month;
                      val4 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).service_code;
                  If opr = 'INSERT' Then         
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
                                   'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'INSERT');
              Else
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
                                   'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'DELETE');
              End if;
                   END LOOP;
                END IF;
          END;
       END pda_insert;i am receiving the following error
    ORA-02055: distributed update operation failed; rollback required
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at line 77
    ORA-06531: Reference to uninitialized collection
    kanish

Maybe you are looking for

  • Moving excel sheet from different files to excel template

    Hi Everyone, I need help from you guys.. I want to fetch excel sheet from different files (say for example from 3 excel files) and put in to one template file. If any one have idea regarding this please let me know. Thanks in advance Thanks & Regards

  • Highlight the current row in the called form

    hi, how can i highlight the current selected row in the called form.. do i have to use current_record or current rowid as parameter and pass to a called form ?? thanks

  • How to display icon in view

    I've already seen some questions on this forum about displaying icons but in ALV Table.I have data in ALV display and user status as icon but when i select a row i need to display all row details in another view but for user status field its not show

  • Forum Module, How to link to the forum register page?

    Simple qeustion: Is there a way to just link to the forum register page? if so how?! Btw where can you find the bc docs? im really getting annoyed because i cant figure out just that simple stuff. - Rob

  • Problem with large inlined images

    One of the annoying aspects when inlining images is the fact that it seems to be possible to blow the margins by any amount with no limit. Once a thread contain an image a few thousand pixels wide, all posts in the thread will wrap the text at a widt