DBA Data[Home] [Help]

APPS.FND_GFM SQL Statements

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

Line: 17

 *   we do not actually delete old elements in the table, but simply nullify
 *   them.  Thus, on new file openings, we first traverse the table looking
 *   for empty slots.
 */
TYPE file_handle IS RECORD ( fid NUMBER, offset INTEGER );
Line: 44

  select count(*) into rowcount
  from   fnd_lob_access
  where  nvl(file_id,-1) = nvl(authenticate.file_id, -1)
  and    access_id = authenticate.access_id
  and    timestamp > sysdate;
Line: 67

  insert into fnd_lob_access (access_id, file_id, timestamp)
  values (fnd_crypto.SmallRandomNumber,
          file_id, sysdate+1)
  returning access_id into result;
Line: 138

    update fnd_lobs set fnd_lobs.expiration_date = sysdate + 0.5
    where  fnd_lobs.file_id = construct_download_url2.file_id;
Line: 142

    select instr(file_name,'.',-1) into ext_length
    from fnd_lobs
    where file_id = construct_download_url2.file_id;
Line: 147

       select substr(file_name,instr(file_name,'/',-1)+1) into file_name
       from fnd_lobs
       where file_id = construct_download_url2.file_id;
Line: 208

      select function_id
      into   func_id
      from   fnd_form_functions
      where  function_name = 'FND_FNDFLUPL';
Line: 216

         select function_id
         into   func_id
         from   fnd_form_functions
         where  function_name = 'FND_FNDFLUPL'
         and    upper(type) = 'JSP';
Line: 321

 *                    explicitly deleted
 *   language         The document language; defaults to userenv('LANG')
Line: 350

       select  file_id
       into    fid
       from    fnd_lob_access
       where   access_id = confirm_upload.access_id;
Line: 367

    select fnd_lobs_s.nextval into fid from dual;
Line: 372

    select dbms_lob.getlength(blob_content), mime_type
    into bloblength, mt
    from fnd_lobs_document
    where name = confirm_upload.file_name
    and rownum=1;
Line: 401

      insert into fnd_lobs (file_id,
                          file_name,
                          file_content_type,
                          file_data,
                          upload_date,
                          expiration_date,
		          program_name,
                          program_tag,
                          language,
                          file_format)
      (select confirm_upload.fid,
            fn,
            ld.mime_type,
            ld.blob_content,
            sysdate,
            confirm_upload.expiration_date,
            confirm_upload.program_name,
            confirm_upload.program_tag,
            confirm_upload.language,
            fnd_gfm.set_file_format(mt)
       from   fnd_lobs_document ld
       where  ld.name = confirm_upload.file_name
       and    rownum=1);
Line: 429

      update fnd_lob_access set file_id = fid
      where  access_id = confirm_upload.access_id;
Line: 439

    delete from fnd_lobs_document;
Line: 440

    delete from fnd_lobs_documentpart;
Line: 446

    delete from fnd_lobs_document;
Line: 447

    delete from fnd_lobs_documentpart;
Line: 463

  select file_id into fid
  from   fnd_lob_access
  where  access_id = get_file_id.access_id;
Line: 560

    delete from fnd_lobs       where sysdate > expiration_date;
Line: 561

    delete from fnd_lob_access where sysdate > timestamp;
Line: 564

    delete from fnd_lobs
    where fnd_lobs.program_name = purge_expired.program_name
    and sysdate > expiration_date;
Line: 576

 * purge_set - purge selected rows from the LOB table
 */
PROCEDURE purge_set(program_name varchar2,
		    program_tag  varchar2 default null) is
pragma autonomous_transaction;
Line: 583

    delete from fnd_lobs where fnd_lobs.program_name = purge_set.program_name;
Line: 585

    delete from fnd_lobs
    where  fnd_lobs.program_name = purge_set.program_name
    and    fnd_lobs.program_tag  = purge_set.program_tag;
Line: 667

  insert into fnd_lobs (file_id, file_name, file_content_type,
	file_data, upload_date, expiration_date, program_name, program_tag,
	language,oracle_charset,file_format)
  values (fnd_lobs_s.nextval, file_name, ct,
	  EMPTY_BLOB(), sysdate, sysdate + 1, program_name, program_tag,
	  l_lang, fnd_gfm.iana_to_oracle(iana_cs), l_file_format)
  returning file_id into fh.fid;
Line: 696

  update fnd_lobs set expiration_date = null where file_id = fh.fid;
Line: 722

  select file_data, oracle_charset into flob, ocs
  from   fnd_lobs
  where  file_id = fh.fid
  for update of file_data;
Line: 789

  select tag into charset
  from   fnd_lookup_values_vl
  where  lookup_type = charmap
  and    lookup_code = substr(userenv('LANGUAGE'),
                            instr(userenv('LANGUAGE'),'.')+1);
Line: 810

  select tag into cs
  from   fnd_lookup_values_vl
  where  lookup_type = charmap
  and    upper(lookup_code) = upper(ics);
Line: 835

  select tag into ics
  from   fnd_lookup_values_vl
  where  lookup_type = charmap
  and    upper(lookup_code) = upper(cs)
  and    rownum = 1;
Line: 855

 *   If purge is specified, then the row is deleted immediately
 */
PROCEDURE download(file_id number,
                   access  number,
                   purge   varchar2 default NULL) is
  doc  blob;
Line: 871

  *  delete from fnd_lobs where file_id = download.file_id;  */
Line: 872

    update fnd_lobs
      set fnd_lobs.expiration_date = sysdate + 0.5
     where fnd_lobs.file_id = download.file_id;
Line: 909

  select file_content_type, oracle_charset, program_name, file_data
  into   ct, ocs, pn, doc
  from   fnd_lobs
  where  file_id = download_blob.fid;
Line: 1018

      INSERT INTO fnd_lob_access (access_id, file_id, timestamp)
        VALUES (ticket, value, sysdate+1);
Line: 1065

  select file_id into value from fnd_lob_access
    where access_id = ticket for update;
Line: 1067

  delete from fnd_lob_access where access_id = ticket;
Line: 1111

 *   If purge is specified, then the row is deleted immediately
 */
PROCEDURE get(p_path varchar2)  is
  doc  blob;
Line: 1146

  SELECT fnd_lobs_s.nextval
  INTO fid_to
  FROM dual;
Line: 1150

  SELECT file_id,
         file_name,
         file_content_type,
         upload_date,
         expiration_date,
         program_name,
         program_tag,
         file_data,
         language,
         oracle_charset,
         file_format
  INTO fnd_lobs_rec.file_id,
       fnd_lobs_rec.file_name,
       fnd_lobs_rec.file_content_type,
       fnd_lobs_rec.upload_date,
       fnd_lobs_rec.expiration_date,
       fnd_lobs_rec.program_name,
       fnd_lobs_rec.program_tag,
       fnd_lobs_rec.file_data,
       fnd_lobs_rec.language,
       fnd_lobs_rec.oracle_charset,
       fnd_lobs_rec.file_format
  FROM fnd_lobs
  WHERE file_id = fid_from;
Line: 1175

  INSERT INTO fnd_lobs (file_id,
                        file_name,
                        file_content_type,
                        upload_date,
                        expiration_date,
                        program_name,
                        program_tag,
                        file_data,
                        language,
                        oracle_charset,
                        file_format)
  VALUES  (fid_to,
           fnd_lobs_rec.file_name,
           fnd_lobs_rec.file_content_type,
           fnd_lobs_rec.upload_date,
           fnd_lobs_rec.expiration_date,
           fnd_lobs_rec.program_name,
           fnd_lobs_rec.program_tag,
           fnd_lobs_rec.file_data,
           fnd_lobs_rec.language,
           fnd_lobs_rec.oracle_charset,
           fnd_lobs_rec.file_format);
Line: 1229

 SELECT ctx_format_code
 INTO l_file_format
 FROM fnd_mime_types
 WHERE mime_type = l_mime_type;
Line: 1278

    select fnd_lobs_s.nextval into fid from dual;
Line: 1293

    INSERT INTO fnd_lobs (
       file_id,
       file_name,
       file_content_type,
       upload_date,
       expiration_date,
       program_name,
       program_tag,
       file_data,
       language,
       oracle_charset,
       file_format )
     VALUES (
       fid,
       file_name,
       v_content_type,
       sysdate,
       null,
       'FNDAPI',
       null,
       empty_blob(),
       v_language,
       fnd_gfm.iana_to_oracle(fnd_gfm.get_iso_charset),
       fnd_gfm.set_file_format(v_content_type));
Line: 1318

select file_data into l_blob_loc from fnd_lobs
where file_id = fid;
Line: 1371

 * delete_lob - this api deletes a lob in fnd_lobs using file_id.
 *
*/

PROCEDURE DELETE_LOB (fid number) IS
BEGIN
delete from fnd_lobs where file_id = fid;
Line: 1381

    fnd_gfm.err_msg('delete_lob');
Line: 1383

END delete_lob;
Line: 1408

   SELECT  upper(type)
   INTO    l_type
   FROM    fnd_form_functions
   WHERE   function_name  = 'FND_FNDFLUPL' ;