DBA Data[Home] [Help]

APPS.ICX_POR_MAP_CATEGORIES SQL Statements

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

Line: 10

  gNewCatIdTab.DELETE;
Line: 11

  gNewCatNameTab.DELETE;
Line: 12

  gNewCatLangTab.DELETE;
Line: 23

    SELECT rt_category_id, category_name, language
    FROM icx_cat_categories_tl
    WHERE upper_key = UPPER(p_destCatKey) ;
Line: 28

    SELECT language_code
      FROM fnd_languages
     WHERE installed_flag in ('B', 'I');
Line: 40

  UPDATE ICX_POR_category_data_sources
  SET category_key = p_destCatKey,
      last_updated_by = p_userId,
      last_update_date = sysdate
  WHERE external_source_key = p_sourceCategory
  AND external_source = 'Oracle';
Line: 47

  p_message := 'No: of rows updated in icx_por_category_data_sources:' ||SQL%ROWCOUNT;
Line: 64

    SELECT rt_category_id INTO v_oldCatId
    FROM icx_cat_categories_tl
    WHERE upper_key = UPPER(p_oldCatKey)
    and rownum = 1;
Line: 72

    UPDATE  icx_cat_category_items ci1
    SET     ci1.rt_category_id = gNewCatIdTab(1)
    WHERE   (ci1.rt_item_id, ci1.rt_category_id) in
    (SELECT ci2.rt_item_id, ci2.rt_category_id
     FROM   icx_cat_category_items ci2,
            icx_cat_items_b i
     WHERE  ci2.rt_category_id = v_oldCatId
       AND  ci2.rt_item_id = i.rt_item_id
       -- only update extracted items
       AND  i.extractor_updated_flag = 'Y' );
Line: 82

    p_message := p_message ||'; No: of rows updated in icx_cat_category_items:' ||SQL%ROWCOUNT;
Line: 85

    SELECT 1 into hasLocals
    FROM   icx_cat_descriptors_tl
    WHERE  rt_category_id = :oldCatID
    AND    rownum = 1

    if ( hasLocals = 1 )then
    */

    xErrLoc := 800;
Line: 95

    update icx_cat_ext_items_tlp ext
    set rt_category_id = gNewCatIdTab(1), --newCatID
        text_cat_attribute1 = null, text_cat_attribute2 = null, text_cat_attribute3 = null,
        text_cat_attribute4 = null, text_cat_attribute5 = null, text_cat_attribute6 = null,
        text_cat_attribute7 = null, text_cat_attribute8 = null, text_cat_attribute9 = null,
        text_cat_attribute10 = null, text_cat_attribute11 = null, text_cat_attribute12 = null,
        text_cat_attribute13 = null, text_cat_attribute14 = null, text_cat_attribute15 = null,
        text_cat_attribute16 = null, text_cat_attribute17 = null, text_cat_attribute18 = null,
        text_cat_attribute19 = null, text_cat_attribute20 = null, text_cat_attribute21 = null,
        text_cat_attribute22 = null, text_cat_attribute23 = null, text_cat_attribute24 = null,
        text_cat_attribute25 = null, text_cat_attribute26 = null, text_cat_attribute27 = null,
        text_cat_attribute28 = null, text_cat_attribute29 = null, text_cat_attribute30 = null,
        text_cat_attribute31 = null, text_cat_attribute32 = null, text_cat_attribute33 = null,
        text_cat_attribute34 = null, text_cat_attribute35 = null, text_cat_attribute36 = null,
        text_cat_attribute37 = null, text_cat_attribute38 = null, text_cat_attribute39 = null,
        text_cat_attribute40 = null, text_cat_attribute41 = null, text_cat_attribute42 = null,
        text_cat_attribute43 = null, text_cat_attribute44 = null, text_cat_attribute45 = null,
        text_cat_attribute46 = null, text_cat_attribute47 = null, text_cat_attribute48 = null,
        text_cat_attribute49 = null, text_cat_attribute50 = null,
        num_cat_attribute1 = null, num_cat_attribute2 = null, num_cat_attribute3 = null,
        num_cat_attribute4 = null, num_cat_attribute5 = null, num_cat_attribute6 = null,
        num_cat_attribute7 = null, num_cat_attribute8 = null, num_cat_attribute9 = null,
        num_cat_attribute10 = null, num_cat_attribute11 = null, num_cat_attribute12 = null,
        num_cat_attribute13 = null, num_cat_attribute14 = null, num_cat_attribute15 = null,
        num_cat_attribute16 = null, num_cat_attribute17 = null, num_cat_attribute18 = null,
        num_cat_attribute19 = null, num_cat_attribute20 = null, num_cat_attribute21 = null,
        num_cat_attribute22 = null, num_cat_attribute23 = null, num_cat_attribute24 = null,
        num_cat_attribute25 = null, num_cat_attribute26 = null, num_cat_attribute27 = null,
        num_cat_attribute28 = null, num_cat_attribute29 = null, num_cat_attribute30 = null,
        num_cat_attribute31 = null, num_cat_attribute32 = null, num_cat_attribute33 = null,
        num_cat_attribute34 = null, num_cat_attribute35 = null, num_cat_attribute36 = null,
        num_cat_attribute37 = null, num_cat_attribute38 = null, num_cat_attribute39 = null,
        num_cat_attribute40 = null, num_cat_attribute41 = null, num_cat_attribute42 = null,
        num_cat_attribute43 = null, num_cat_attribute44 = null, num_cat_attribute45 = null,
        num_cat_attribute46 = null, num_cat_attribute47 = null, num_cat_attribute48 = null,
        num_cat_attribute49 = null, num_cat_attribute50 = null,
        tl_text_cat_attribute1 = null, tl_text_cat_attribute2 = null, tl_text_cat_attribute3 = null,
        tl_text_cat_attribute4 = null, tl_text_cat_attribute5 = null, tl_text_cat_attribute6 = null,
        tl_text_cat_attribute7 = null, tl_text_cat_attribute8 = null, tl_text_cat_attribute9 = null,
        tl_text_cat_attribute10 = null, tl_text_cat_attribute11 = null, tl_text_cat_attribute12 = null,
        tl_text_cat_attribute13 = null, tl_text_cat_attribute14 = null, tl_text_cat_attribute15 = null,
        tl_text_cat_attribute16 = null, tl_text_cat_attribute17 = null, tl_text_cat_attribute18 = null,
        tl_text_cat_attribute19 = null, tl_text_cat_attribute20 = null, tl_text_cat_attribute21 = null,
        tl_text_cat_attribute22 = null, tl_text_cat_attribute23 = null, tl_text_cat_attribute24 = null,
        tl_text_cat_attribute25 = null, tl_text_cat_attribute26 = null, tl_text_cat_attribute27 = null,
        tl_text_cat_attribute28 = null, tl_text_cat_attribute29 = null, tl_text_cat_attribute30 = null,
        tl_text_cat_attribute31 = null, tl_text_cat_attribute32 = null, tl_text_cat_attribute33 = null,
        tl_text_cat_attribute34 = null, tl_text_cat_attribute35 = null, tl_text_cat_attribute36 = null,
        tl_text_cat_attribute37 = null, tl_text_cat_attribute38 = null, tl_text_cat_attribute39 = null,
        tl_text_cat_attribute40 = null, tl_text_cat_attribute41 = null, tl_text_cat_attribute42 = null,
        tl_text_cat_attribute43 = null, tl_text_cat_attribute44 = null, tl_text_cat_attribute45 = null,
        tl_text_cat_attribute46 = null, tl_text_cat_attribute47 = null, tl_text_cat_attribute48 = null,
        tl_text_cat_attribute49 = null, tl_text_cat_attribute50 = null
    where rt_category_id = v_oldCatId --oldCatID
    and exists ( select 'x' from icx_cat_items_b b
                 where ext.rt_item_id = b.rt_item_id
                 and   b.extractor_updated_flag = 'Y' );
Line: 154

    p_message := p_message ||'; No: of rows updated in icx_cat_ext_items_tlp:' ||SQL%ROWCOUNT;
Line: 158

    SELECT icx_por_batch_jobs_s.nextval
      INTO v_jobNum
      FROM dual;
Line: 180

	-- update icx_cat_items_tlp with jobNum and primary_category_name and primary_category_id.
        UPDATE icx_cat_items_tlp
           SET --job_number = v_jobNum,
               request_id = v_jobNum,
               primary_category_id = gNewCatIdTab(1),
               primary_category_name = v_newCatName
         WHERE language = lang.language_code
           AND rt_item_id in
               (SELECT i.rt_item_id
                  FROM icx_cat_category_items ci,
                       icx_cat_items_b i
                 WHERE ci.rt_category_id = gNewCatIdTab(1)
                   AND ci.rt_item_id = i.rt_item_id
                   AND i.extractor_updated_flag = 'Y');
Line: 194

	p_message := p_message ||'; No: of rows updated in icx_cat_items_tlp for '||lang.language_code ||' :' ||SQL%ROWCOUNT;
Line: 204

    INSERT INTO ICX_POR_category_data_sources
    (external_source_key, external_source,  created_by, last_updated_by, creation_date, last_update_date, category_key, last_update_login)
    VALUES ( p_sourceCategory, 'Oracle', p_userId, p_userId, sysdate, sysdate, p_destCatKey, p_userId );
Line: 207

    p_message := p_message ||'; New row inserted into icx_por_category_data_sources';