Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles
New Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 








  Oracle Database Tips by Donald Burleson


                    p_page_item in varchar2 )
                    return boolean;

Sometimes there may be a stored procedure or PL/SQL, such as an application level process, that works for several application pages.  This function gives the ability to check for the existence of a page item.


      if htmldb_custom_auth.application_page_item_exists(
            'P100_CUSTOMER_ID' ) then
         -- Do something.

get_session_id return number;

This returns the users session id.  It can be used within stored procedures.  For example, if audit records are being inserted in the database, this function can be used to get the session id.


      n_sid number;
      n_sid := htmldb_custom_auth.get_session_id;

get_username return varchar2;

This returns the authenticated username.  If the application page is public, the return value will be NOBODY.


      s_username varchar2(255);
      s_username := htmldb_custom_auth.get_username(
         get_username );

         p_uname in varchar2,
         p_password in varchar2,
         p_session_id in varchar2,
         p_app_page in varchar2,
         p_entry_point in varchar2,
         p_preserve_case in boolean);

This procedure performs authentication and session registration.  It is commonly referred to as the Login API.


  • p_uname:  User's Login name.

  • password:  Password in clear text.

  • p_session_id:  Session ID of the current session.

  • p_app_page:  Application ID and page ID of where to navigate to after login.  Format APP_ID:APP_PAGE_ID (colon delimited).

  • p_entry_point:  Used internal by APEX only.

  • p_preserve_case:  If TRUE, do not change case of p_uname to uppercase.


      -- Only use V( ) when referencing APP_SESSION
      login( 'MCUNNING', 'easybook',
         V('APP_SESSION'), :APP_ID || ':1' );

The above book excerpt is from:

Easy HTML-DB Oracle Application Express

Create Dynamic Web Pages with OAE

ISBN 0-9761573-1-4   

Michael Cunningham & Kent Crotty

Oracle Training at Sea
oracle dba poster

Follow us on Twitter 
Oracle performance tuning software 
Oracle Linux poster


Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.