DBA Data[Home] [Help]

APPS.ORACLEAPPS SQL Statements

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

Line: 23

   select user_id into l_user_id from icx_sessions
   where session_id = icx_sec.g_session_id;
Line: 49

        select substr(c_error_message,12,512) into err_mesg from dual;
Line: 68

        select substr(c_error_message,12,512) into err_mesg from dual;
Line: 118

   update ICX_SESSIONS
   set	  HOME_URL = l_home_url
   where  SESSION_ID = n_session_id;
Line: 125

	update ICX_SESSIONS
	set    HOME_URL = l_home_url
	where  SESSION_ID = n_session_id;
Line: 133

        update ICX_SESSIONS
        set    HOME_URL = l_home_url,
	       MODE_CODE = 'SLAVE'
        where  SESSION_ID = n_session_id;
Line: 138

        select function_id
        into l_function_id
        from fnd_form_functions
        where function_name = i_3;
Line: 151

        select substr(c_error_message,12,512) into err_mesg from dual;
Line: 174

	select	MENU_ID
	into	l_menu_id
	from	ICX_SESSIONS
	where	SESSION_ID = l_session_id;
Line: 192

        select substr(c_error_message,12,512) into err_mesg from dual;
Line: 216

        select substr(c_error_message,12,512) into err_mesg from dual;
Line: 243

    updateWebUser(i_1,i_2,i_3,i_4,i_5,i_6,i_7,i_8,i_9,i_10,i_11,i_12);
Line: 249

        select substr(c_error_message,12,512) into err_mesg from dual;
Line: 302

         select user_id
           into l_user_id
           from icx_sessions
          where session_id = n_session_id;
Line: 316

            select       upper(value)
            into         l_language
            from         v$nls_parameters
            where        parameter = 'NLS_LANGUAGE';
Line: 322

           l_language:=icx_sec.getNLS_PARAMETER('NLS_LANGUAGE'); -- replaces above select mputman 1574527
Line: 336

            select       upper(value)
            into         l_date_format
            from         v$nls_parameters
            where        parameter = 'NLS_DATE_FORMAT';
Line: 341

            l_date_format:=icx_sec.getNLS_PARAMETER('NLS_DATE_FORMAT'); -- replaces above select mputman 1574527
Line: 373

        select substr(c_error_message,12,512) into err_mesg from dual;
Line: 428

         select user_id
           into l_user_id
           from icx_sessions
          where session_id = n_session_id;
Line: 442

            select       upper(value)
            into         l_language
            from         v$nls_parameters
            where        parameter = 'NLS_LANGUAGE';
Line: 447

            l_language:=icx_sec.getNLS_PARAMETER('NLS_LANGUAGE'); -- replaces above select mputman 1574527
Line: 461

            select       upper(value)
            into         l_date_format
            from         v$nls_parameters
            where        parameter = 'NLS_DATE_FORMAT';
Line: 466

            l_date_format:=icx_sec.getNLS_PARAMETER('NLS_DATE_FORMAT'); -- replaces above select mputman 1574527
Line: 485

   select fff.function_id
     into l_function_id
     from fnd_form_functions fff
    where fff.function_name = i_3;
Line: 490

   update icx_sessions
      set responsibility_id = NULL,
          function_id = l_function_id
    where session_id = n_session_id;
Line: 532

       SELECT user_id
       into l_user_id
       from fnd_user
       where user_name = upper(c_user_name);
Line: 538

      SELECT 'LDAP'
      INTO l_auth_mode
      FROM fnd_user
      WHERE l_user_id = icx_sec.g_user_id
      AND upper(encrypted_user_password)='EXTERNAL';
Line: 568

  select ICX_TEXT_S.Nextval into seq from dual;
Line: 753

      SELECT home_url
         INTO l_home_url
         FROM icx_parameters;
Line: 791

   SELECT nls_language
      INTO l_nls_lang
      FROM icx_sessions
      WHERE session_id=l_session_id;
Line: 816

      SELECT home_url
         INTO l_home_url
         FROM icx_parameters;
Line: 943

        select  b.language_code
        into    c_language_code
        from    fnd_languages b,
                icx_sessions a
        where   a.session_id = c_session_id
        and     b.nls_language = a.nls_language;
Line: 952

          select        LANGUAGE_CODE
          into          c_language_code
          from          FND_LANGUAGES
          where         INSTALLED_FLAG = 'B';
Line: 1147

      select  fr.menu_id, furg.responsibility_id,
              furg.security_group_id, furg.responsibility_application_id
      from    fnd_responsibility fr,
              fnd_user_resp_groups furg,
              fnd_user fu
      where   fu.USER_ID = p_user_id
      and     fu.START_DATE <= sysdate
      and     (fu.END_DATE is null or fu.END_DATE > sysdate)
      and     furg.USER_ID = fu.USER_ID
      and     furg.START_DATE <= sysdate
      and     (furg.END_DATE is null or furg.END_DATE > sysdate)
      and     furg.RESPONSIBILITY_APPLICATION_ID = fr.APPLICATION_ID
      and     furg.RESPONSIBILITY_ID = fr.RESPONSIBILITY_ID
      and     fr.VERSION = 'W'
      and     fr.START_DATE <= sysdate
      and     (fr.END_DATE is null or fr.END_DATE > sysdate);
Line: 1166

      select function_id
      from   fnd_form_functions
      where  function_name = p_function_name;
Line: 1180

    select USER_ID
    into   l_user_id
    from   FND_USER
    where  USER_NAME = l_username;
Line: 1252

      icx_sec.updateSessionContext(p_function_name     => l_function_name,
                                   p_function_id       => l_function_id,
                                   p_application_id    => l_resp_appl_id,
                                   p_responsibility_id => l_responsibility_id,
                                   p_security_group_id => l_security_group_id,
                                   p_session_id        => l_session_id,
                                   p_transaction_id    => l_transaction_id);
Line: 1339

    select USER_ID
    into   l_user_id
    from   FND_USER
    where  USER_NAME = l_username;
Line: 1453

        select  b.RESPONSIBILITY_APPLICATION_ID,
                b.SECURITY_GROUP_ID,
                a.responsibility_id,
		a.responsibility_name,
		a.description,
		a.web_host_name,
		a.web_agent_name,
		a.version,
		a.menu_id
	from	fnd_responsibility_vl a,
                FND_USER_RESP_GROUPS b
        where   b.user_id = c_user_id
        and     a.responsibility_id = b.responsibility_id
	and	a.application_id = b.RESPONSIBILITY_application_id
	and     a.version = 'W'
	and	a.start_date <= sysdate
	and	(a.end_date is null or a.end_date > sysdate)
	and	b.start_date <= sysdate
	and	(b.end_date is null or b.end_date > sysdate)
        order by responsibility_name;
Line: 1476

	select 	b.menu_id,
		b.entry_sequence,
		b.sub_menu_id,
		b.function_id,
		c.web_html_call,
		b.prompt,
		b.description,
		c.web_icon
	from 	fnd_form_functions c,
	     	fnd_menu_entries_vl b
	where 	b.menu_id = c_menu_id
	and	c.function_id(+) = b.function_id
        and     nvl(c.type,'WWW') in ('WWW','WWK', 'SERVLET','JSP', 'INTEROPJSP')
	order	by b.entry_sequence;
Line: 1499

   select       nls_language,date_format_mask
   into         l_language,l_date_format
   from         icx_sessions
   where        session_id = n_session_id;
Line: 1549

      select b.language_code
      into   c_language_code
      from   fnd_languages b,
             icx_sessions a
      where  a.session_id = n_session_id
      and    b.nls_language = a.nls_language;
Line: 1559

   select  a.description, a.user_name, a.user_id
   into    c_known_as, c_user_name, c_user_id
   from    fnd_user a,
           icx_sessions b
   where   b.session_id = n_session_id
   and     b.user_id    = a.user_id;
Line: 1623

    select  count(1)
    into    l_count
    from    fnd_menu_entries
    where   menu_id = c_menu_id
    and     function_id is not null
    and     sub_menu_id is not null;
Line: 1632

      select  function_id
      into    l_function_id
      from    fnd_menu_entries
      where   menu_id = c_menu_id
      and     function_id is not null
      and     sub_menu_id is not null;
Line: 1824

              select substr(c_error_msg,12,512) into c_display_error from dual;
Line: 1894

select 	a.menu_id,
	a.entry_sequence,
	a.sub_menu_id,
	a.function_id,
	b.web_html_call,
        a.prompt,
        a.description,
	b.web_icon
from 	fnd_form_functions b,
	fnd_menu_entries_vl a
where 	a.menu_id = l_menu_id
and	a.function_id = b.function_id(+)
order   by a.entry_sequence;
Line: 1966

	    select RESPONSIBILITY_NAME, DESCRIPTION
	    into   l_menu_name, l_menu_description
	    from   fnd_responsibility_vl
	    where  RESPONSIBILITY_ID = l_responsibility_id;
Line: 1972

	    select PROMPT, DESCRIPTION
	    into   l_menu_name, l_menu_description
	    from   fnd_menu_entries_vl
	    where  MENU_ID = l_menuItems(i-1).menuId
	    and    SUB_MENU_ID = l_menuItems(i).menuId;
Line: 2220

              select substr(c_error_msg,12,512) into c_display_error from dual;
Line: 2255

delete from icx_text where text_id=E;commit;     --mputman added 1545083
Line: 2440

    select TYPE
    into   l_function_type
    from   FND_FORM_FUNCTIONS
    where  FUNCTION_ID = l_function_id;
Line: 2456

  select multi_org_flag
  into   l_multi_org_flag
  from   fnd_product_groups
  where  rownum < 2;
Line: 2471

  update ICX_SESSIONS
  set 	 RESPONSIBILITY_APPLICATION_ID = l_resp_appl_id,
         RESPONSIBILITY_ID = l_responsibility_id,
         SECURITY_GROUP_ID = l_security_group_id,
         ORG_ID = l_org_id,
         FUNCTION_ID = l_function_id,
         FUNCTION_TYPE = l_function_type,
         MENU_ID = l_menu_id
  where	SESSION_ID = l_session_id;
Line: 2488

                           c_update => FALSE);
Line: 2557

        SELECT 'exists'
        FROM   FND_ENABLED_PLSQL
        WHERE  PLSQL_TYPE = 'PROCEDURE'
        AND    PLSQL_NAME = p_name
        AND    ENABLED = 'Y';
Line: 2564

        SELECT 'exists'
        FROM   FND_ENABLED_PLSQL
        WHERE  (PLSQL_TYPE = 'PACKAGE' AND PLSQL_NAME = p_pack
        OR     PLSQL_TYPE = 'PACKAGE.PROCEDURE' AND PLSQL_NAME = p_proc)
        AND    ENABLED = 'Y';
Line: 2572

select * into f
from	fnd_form_functions
where	function_id = c_function_id;
Line: 2626

  select responsibility_id, RESPONSIBILITY_APPLICATION_ID
  into   l_responsibility_id, l_resp_appl_id
  from   icx_sessions
  where  session_id = n_session_id;
Line: 2634

    select	web_host_name, web_agent_name
    into	l_resp_web_host, l_resp_web_agent
    from	fnd_responsibility
    where	responsibility_id = nvl(p_responsibility_id,l_responsibility_id) -- Bug 2726022
    and         application_id = nvl(p_resp_appl_id,l_resp_appl_id); -- Bug 2160456
Line: 2979

		select	a.responsibility_id,a.responsibility_name,
		web_HOST_NAME,web_AGENT_NAME
	from  	fnd_responsibility_vl a,
		FND_USER_RESP_GROUPS b,
		icx_sessions c
	where   n_session_id = c.session_id
	and	c.user_id = b.user_id
        and     a.version = 'W'
        and     a.start_date <= sysdate
        and     (a.end_date is null or a.end_date > sysdate)
        and     b.start_date <= sysdate
        and     (b.end_date is null or b.end_date > sysdate)
	order by responsibility_name;
Line: 2994

        	select	user_function_name,description,
			web_HOST_NAME,web_AGENT_NAME,web_HTML_CALL,
			PARAMETERS
        	from	fnd_form_functions_vl c,
			fnd_resp_functions a
        	where	c_responsibility_id = a.responsibility_id
		and	a.action_id = c.function_id
		order by user_function_name;
Line: 3177

        SELECT LANGUAGE_CODE,
               NLS_LANGUAGE,
               DESCRIPTION,
               ISO_LANGUAGE,
               ISO_TERRITORY
        FROM   FND_LANGUAGES_VL
        WHERE  INSTALLED_FLAG in ('I', 'B')
        ORDER BY DESCRIPTION;
Line: 3187

        select NAME, TEXT
        from WF_RESOURCES
        where TYPE = 'WFTKN'
        and NAME LIKE 'WFPREF_MAILP%'
        and LANGUAGE = userenv('LANG')
        ORDER BY NAME;
Line: 3195

   SELECT  node_id, node_name
   FROM   fnd_dm_nodes
   ORDER  BY node_name;
Line: 3200

     select t.territory_short_name territory_name,
	    t.nls_territory
     from   fnd_territories_vl t,
	    v$nls_valid_values v
     where t.nls_territory = v.value
     and   v.parameter = 'TERRITORY'
     order by t.territory_short_name;
Line: 3209

     SELECT '(GMT ' ||
       rtrim(tz_offset(timezone_code),chr(0))
      || ') ' || name DISPLAYED_NAME
       , upgrade_tz_id PROFILE_VALUE
     FROM FND_TIMEZONES_VL
     WHERE enabled_flag = 'Y'
     ORDER BY gmt_offset, name;
Line: 3222

     select  * into u
     from    fnd_user
     where   user_id = icx_sec.g_user_id;
Line: 3255

          SELECT 'LDAP'
          INTO l_auth_mode
          FROM fnd_user
          WHERE user_id = icx_sec.g_user_id
          AND upper(encrypted_user_password)='EXTERNAL';
Line: 3270

            SELECT '(GMT ' ||
              rtrim(tz_offset(timezone_code),chr(0))
             || ') ' || name DISPLAYED_NAME
            INTO
              l_timezone_code
            FROM FND_TIMEZONES_VL
            WHERE enabled_flag = 'Y'
            AND upgrade_tz_id=l_timezone;
Line: 3380

		 htp.p('');
Line: 3400

		 htp.p('');
Line: 3425

		 htp.p('');
Line: 3450

		 htp.formSelectOpen('i_3');
Line: 3454

			 htp.formSelectOption(to_char(to_date('31/12/2000','DD/MM/RRRR'),l_lookup_codes(i)),'SELECTED','VALUE="'||l_lookup_codes(i)||'"');
Line: 3456

			 htp.formSelectOption(to_char(to_date('31/12/2000','DD/MM/RRRR'),l_lookup_codes(i)),'','VALUE="'||l_lookup_codes(i)||'"');
Line: 3459

		 htp.formSelectClose;
Line: 3466

		  htp.p('');
Line: 3495

		  htp.p('');
Line: 3512

                 htp.p('');
Line: 3548

         htp.p('');
Line: 3578

		  htp.p('');
Line: 3702

        htp.p('function update_user(){
        var l_alert = false;');
Line: 3783

                       P_HyperTextCall => 'javascript:update_user()',
                       P_LanguageCode => c_language_code,
                       P_JavaScriptFlag => FALSE);
Line: 3810

procedure updateWebUser(c_KNOWN_AS    in VARCHAR2,
                        c_LANGUAGE    in VARCHAR2,
		                  c_DATE_FORMAT in VARCHAR2,
                        c_PASSWORD1   in VARCHAR2,
                        c_PASSWORD2   in VARCHAR2,
                        c_PASSWORD3   in VARCHAR2,
                        c_MAILPREF    in VARCHAR2,
                        c_DMPREF      in VARCHAR2,
                        c_NUMERIC_CHARACTERS in VARCHAR2,
                        c_TERRITORY   in VARCHAR2,
                        c_TIMEZONE    IN VARCHAR2,
                        c_ENCODING    IN VARCHAR2) is

l_server_name           varchar2(80);
Line: 3825

l_password_updated	boolean;
Line: 3866

   l_password_updated := TRUE;
Line: 3881

              fnd_message.set_name('FND','SQL-NO INSERT');
Line: 3903

           FND_USER_PVT.Update_User(p_api_version_number => 1.0,
                                    p_init_msg_list => 'T',
                                    p_commit => 'T',
				    p_host_port => l_server_name||':'||l_server_port,
				    p_old_password => c_PASSWORD1,
				    p_new_password => c_PASSWORD2,
                                    p_last_updated_by => l_user_id,
                                    p_last_update_date => sysdate,
                                    p_user_id => l_user_id,
                                    p_return_status => l_return_status,
                                    p_msg_count => l_msg_count,
                                    p_msg_data => l_msg_data);
Line: 3917

	     l_password_updated := FALSE;
Line: 3918

         end if; -- update password
Line: 3920

	  l_password_updated := FALSE;
Line: 3923

      if not l_password_updated
      then

      c_error_msg := fnd_message.get;  -- get the password update error placed on the stack by fnd_user_pvt
Line: 3950

      end if;  -- not l_password_updated
Line: 3970

	    l_password_updated := FALSE;
Line: 3973

    if l_password_updated
    then

           FND_USER_PVT.Update_User(p_api_version_number => 1.0,
                                    p_init_msg_list => 'T',
                                    p_commit => 'T',
				    p_language => c_LANGUAGE,
				    p_date_format_mask => l_date_format,
                                    p_territory => c_TERRITORY,
                                    p_numeric_characters => c_NUMERIC_CHARACTERS,
                                    p_known_as => c_KNOWN_AS,
                                    p_last_updated_by => l_user_id,
                                    p_last_update_date => sysdate,
                                    p_user_id => l_user_id,
                                    p_return_status => l_return_status,
                                    p_msg_count => l_msg_count,
                                    p_msg_data => l_msg_data);
Line: 3993

           select  nls_language
              into    p_lang_change
              from    fnd_languages
              where   language_code = (SELECT language_code
                                       FROM icx_sessions
                                       WHERE session_id = n_session_id);
Line: 4000

      select  language_code
      into    c_language_code
      from    fnd_languages
      where   nls_language = c_LANGUAGE;
Line: 4041

      update  icx_sessions
      set     nls_language = c_LANGUAGE,
              language_code = c_language_code,
	           date_format_mask = l_date_format,
              nls_territory  = c_TERRITORY,
              nls_numeric_characters = c_NUMERIC_CHARACTERS,
              nls_date_language = z_date_lang,
              nls_sort = z_sort
      where   session_id = n_session_id;
Line: 4127

     updateNewPassword(i_1,i_2,i_3,i_4);
Line: 4129

     updateNewFndPassword(i_1,i_2,i_3,i_4,c_mode_code,c_url);
Line: 4137

procedure updateNewFndPassword(c_USERNAME  in VARCHAR2,
                               c_PASSWORD1 in VARCHAR2,
                               c_PASSWORD2 in VARCHAR2,
                               c_PASSWORD3 in VARCHAR2,
                               p_mode_code in varchar2,
                               c_url       in varchar2) is

l_user_id		number;
Line: 4147

l_password_updated      boolean;
Line: 4169

   l_password_updated := TRUE;
Line: 4182

	   l_password_updated := FALSE;
Line: 4186

	    l_password_updated := FALSE;
Line: 4190

      if not l_password_updated
      then
	 c_language_code := icx_sec.getID(icx_sec.PV_LANGUAGE_CODE);
Line: 4230

      end if;  -- not l_password_updated
Line: 4241

procedure updateNewPassword(c_USERNAME  in VARCHAR2,
                            c_PASSWORD1 in VARCHAR2,
                            c_PASSWORD2 in VARCHAR2,
                            c_PASSWORD3 in VARCHAR2) is

l_user_id		number;
Line: 4251

l_password_updated      boolean;
Line: 4270

   l_password_updated := TRUE;
Line: 4283

        select user_id,web_password
        into   l_user_id,l_web_password
        from   fnd_user
        where  user_name = l_username;
Line: 4302

            l_password_updated := FALSE;
Line: 4305

          l_password_updated := FALSE;
Line: 4308

      if not l_password_updated
      then
	 c_language_code := icx_sec.getID(icx_sec.PV_LANGUAGE_CODE);
Line: 4335

      end if;  -- not l_password_updated
Line: 4392

isolate the commit to just the ticket insert */

function FormsLF_prep(c_string     varchar2,
			             c_session_id NUMBER)
         return varchar2 is
PRAGMA AUTONOMOUS_TRANSACTION;
Line: 4515

         select  b.language_code, b.nls_language
            into    c_language_code, c_nls_language
            from    fnd_languages b
            where   b.language_code = c_upper_lang;
Line: 4524

               select        LANGUAGE_CODE, nls_language
                  into          c_language_code, c_nls_language
                  from          FND_LANGUAGES
                  where         INSTALLED_FLAG = 'B';
Line: 4552

                     }');  --mputman hosted update
Line: 4573

   htp.formHidden('c_sec_grp_id','');             --mputman hosted update
Line: 4579

   htp.tableRowOpen;                             -- SITE --mputman hosted update
Line: 4735

          select nls_language
            into l_language
            from fnd_languages_vl
            where LANGUAGE_CODE = l_language_code;
Line: 4774

               SELECT user_id
               INTO l_user_id
               FROM fnd_user
               WHERE user_name = upper(i_1);
Line: 4792

               SELECT user_id INTO l_org_id FROM icx_sessions WHERE session_id=l_session_id;
Line: 4798

               UPDATE icx_sessions
               SET user_id = l_user_id,
                   first_connect = SYSDATE,
                   last_connect = SYSDATE,
                   counter =1,
                   nls_language = l_language,
                   language_code = l_language_code,
		             date_format_mask = l_date_format,
                   nls_date_language = l_date_language,
		             nls_numeric_characters = l_numeric_characters,
		             nls_sort = l_nls_sort,
		             nls_territory = l_nls_territory,
             		 limit_time = l_limit_time,
		             limit_connects = l_limit_connects,
         RESPONSIBILITY_APPLICATION_ID = l_resp_appl_id,
         RESPONSIBILITY_ID = l_responsibility_id,
         SECURITY_GROUP_ID = l_security_group_id,
         FUNCTION_ID = l_function_id,
                   org_id = l_org_id,
                   xsid = l_new_xsid
               WHERE session_id = l_session_id;
Line: 4884

                     }');  --mputman hosted update
Line: 4911

   htp.tableRowOpen;                             -- SITE --mputman hosted update