DBA Data[Home] [Help]

APPS.BEN_BENMNGLE_PURGE SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 30

        				                   delete_reporting_rows procedure.
        26-DEC-02        rpillay    115.11     NOCOPY changes
        02-Aug-04        nhunur     115.12     3805304 - Added code to handle null request_id
                                               rows in ben_benefit_actions.
        03-Dec-04        ikasire    115.13     Bug 4046914
        28-Dec-07        nhunur     115.14     Bug 6075014 - perf changes
*/
--------------------------------------------------------------------------------
--
g_package varchar2(80) := 'ben_benmngle_purge';
Line: 107

     buff  => 'Benefit Action ID Deleted   = '||p_benefit_action_id);
Line: 111

     buff  => 'Benefit Action Rows Deleted = '||p_benefit_action_rows);
Line: 115

     buff  => 'Batch Range Rows Deleted    = '||p_batch_range_rows);
Line: 119

     buff  => 'Person Action Rows Deleted  = '||p_person_action_rows);
Line: 123

     buff  => 'Dependent Information Rows Deleted  = '||p_dpnt_rows);
Line: 127

     buff  => 'Electable Choice Information Rows Deleted  = '||p_elctbl_chc_rows);
Line: 131

     buff  => 'Eligibility Rows Deleted  = '||p_elig_rows);
Line: 135

     buff  => 'Process Information Rows Deleted  = '||p_proc_rows);
Line: 139

     buff  => 'Rate Information Rows Deleted  = '||p_rate_rows);
Line: 143

     buff  => 'Life Event Information Rows Deleted  = '||p_ler_rows);
Line: 147

     buff  => 'Reporting Rows Deleted      = '||p_reporting_rows);
Line: 165

procedure delete_reporting_rows(p_benefit_action_id in  number,
                                p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_reporting_rows';
Line: 169

  l_records_to_be_deleted number := 5000; /* Deleting 5000 records at a time */
Line: 180

  	delete from ben_reporting
  	where  benefit_action_id = p_benefit_action_id
  	and rownum <=l_records_to_be_deleted;
Line: 193

end delete_reporting_rows;
Line: 195

procedure delete_batch_range_rows(p_benefit_action_id in  number,
                                  p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_batch_range_rows';
Line: 199

  l_records_to_be_deleted number := 5000;
Line: 207

    delete from ben_batch_ranges
    where  benefit_action_id = p_benefit_action_id
    and rownum <=l_records_to_be_deleted;
Line: 220

end delete_batch_range_rows;
Line: 222

procedure delete_batch_ler_rows(p_benefit_action_id in  number,
                                p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_batch_ler_rows';
Line: 227

  l_records_to_be_deleted number := 5000;
Line: 234

    delete from ben_batch_ler_info
    where  benefit_action_id = p_benefit_action_id
    and rownum <=l_records_to_be_deleted;
Line: 247

end delete_batch_ler_rows;
Line: 249

procedure delete_batch_dpnt_rows(p_benefit_action_id in  number,
                                 p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_batch_dpnt_rows';
Line: 254

  l_records_to_be_deleted number := 5000;
Line: 261

    delete from ben_batch_dpnt_info
    where  benefit_action_id = p_benefit_action_id
    and rownum <=l_records_to_be_deleted;
Line: 274

end delete_batch_dpnt_rows;
Line: 276

procedure delete_batch_elctbl_rows(p_benefit_action_id in  number,
                                   p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_batch_elctbl_rows';
Line: 280

  l_records_to_be_deleted number := 5000;
Line: 288

    delete from ben_batch_elctbl_chc_info
    where  benefit_action_id = p_benefit_action_id
    and rownum <=  l_records_to_be_deleted ;
Line: 302

end delete_batch_elctbl_rows;
Line: 304

procedure delete_batch_elig_rows(p_benefit_action_id in  number,
                                 p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_batch_elig_rows';
Line: 309

  l_records_to_be_deleted number := 5000;
Line: 316

     delete from ben_batch_elig_info
     where  benefit_action_id = p_benefit_action_id
     and rownum <=  l_records_to_be_deleted ;
Line: 329

end delete_batch_elig_rows;
Line: 331

procedure delete_batch_proc_rows(p_benefit_action_id in  number,
                                 p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_batch_proc_rows';
Line: 335

  l_records_to_be_deleted number := 5000;
Line: 343

    delete from ben_batch_proc_info
    where  benefit_action_id = p_benefit_action_id
    and rownum <=  l_records_to_be_deleted ;
Line: 357

end delete_batch_proc_rows;
Line: 359

procedure delete_batch_rate_rows(p_benefit_action_id in  number,
                                 p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_batch_rate_rows';
Line: 364

  l_records_to_be_deleted number := 5000;
Line: 371

    delete from ben_batch_rate_info
    where  benefit_action_id = p_benefit_action_id
    and rownum <=  l_records_to_be_deleted ;
Line: 385

end delete_batch_rate_rows;
Line: 387

procedure delete_person_action_rows(p_benefit_action_id in  number,
                                    p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_person_action_rows';
Line: 392

  l_records_to_be_deleted number := 5000;
Line: 399

    delete from ben_person_actions
    where  benefit_action_id = p_benefit_action_id
    and rownum <= l_records_to_be_deleted;
Line: 412

end delete_person_action_rows;
Line: 414

procedure delete_benefit_action_rows(p_benefit_action_id in  number,
                                     p_rows              out nocopy number) is
  --
  l_package varchar2(80) := g_package||'.delete_benefit_action_rows';
Line: 423

  delete from ben_benefit_actions
  where  benefit_action_id = p_benefit_action_id;
Line: 432

end delete_benefit_action_rows;
Line: 468

  delete_reporting_rows(p_benefit_action_id => p_benefit_action_id,
                        p_rows              => l_reporting_rows);
Line: 470

  delete_batch_range_rows(p_benefit_action_id => p_benefit_action_id,
                          p_rows              => l_batch_range_rows);
Line: 472

  delete_person_action_rows(p_benefit_action_id => p_benefit_action_id,
                            p_rows              => l_person_action_rows);
Line: 474

  delete_batch_dpnt_rows(p_benefit_action_id => p_benefit_action_id,
                         p_rows              => l_dpnt_rows);
Line: 476

  delete_batch_elctbl_rows(p_benefit_action_id => p_benefit_action_id,
                           p_rows              => l_elctbl_chc_rows);
Line: 478

  delete_batch_elig_rows(p_benefit_action_id => p_benefit_action_id,
                         p_rows              => l_elig_rows);
Line: 480

  delete_batch_proc_rows(p_benefit_action_id => p_benefit_action_id,
                         p_rows              => l_proc_rows);
Line: 482

  delete_batch_rate_rows(p_benefit_action_id => p_benefit_action_id,
                         p_rows              => l_rate_rows);
Line: 484

  delete_batch_ler_rows(p_benefit_action_id => p_benefit_action_id,
                        p_rows              => l_ler_rows);
Line: 486

  delete_benefit_action_rows(p_benefit_action_id => p_benefit_action_id,
                             p_rows              => l_benefit_action_rows);
Line: 515

    select bft.benefit_action_id
    from   ben_benefit_actions bft,
           fnd_concurrent_requests fnd
    where  bft.business_group_id = nvl(p_business_group_id,bft.business_group_id)
    and    nvl(bft.request_id,-1) = nvl(p_concurrent_request_id,nvl(bft.request_id,-1))
    and    bft.process_date      = nvl(l_effective_date,bft.process_date)
    /* Outer join to provide backwards compatability, for all cases where request id is blank */
    and    fnd.request_id(+) = bft.request_id
    and    nvl(fnd.phase_code,'C') = 'C';