Showing posts with label important queries in oracle apps. Show all posts
Showing posts with label important queries in oracle apps. Show all posts

Some Important Oracle HRMS Queries

 ----------------------------------------------------------------------------------------
      --- Cursor to check whether a person SSN already exists in the oracle or not
      ----------------------------------------------------------------------------------------
      CURSOR cur_per_ssn (
         p_national_identifier    per_all_people_f.national_identifier%TYPE,
         p_biz_id                 NUMBER)
      IS
         SELECT national_identifier
           FROM apps.per_all_people_f papf
          WHERE papf.national_identifier = p_national_identifier

Oracle Apps Application Object Library SQL scripts


Oracle apps provides a number of scripts which are very useful for the data base administrator for DB monitoring & tracking purpose.
Here is the application server path were you can see the following SQL scripts.

Oracle Applications $FND_TOP/sql directory has a collection of scripts. Most of them can be used for different purposes.



Some frequently used queries for oracle apps developers

Get all the views that refer a particular table:

SELECT o.object_name, o.status, o.last_ddl_time
  FROM SYS.dba_objects o
 WHERE o.object_type = 'VIEW'
   AND EXISTS (
              SELECT 'x'
                   FROM SYS.dba_dependencies d
           WHERE d.referenced_type = 'TABLE'
                 AND d.TYPE = 'VIEW'
                    AND d.owner = 'APPS'
             AND d.NAME = o.object_name
                 AND d.referenced_name LIKE '<TABLE_NAME>');

Useful oracle apps queries/ scripts/ codes/ tips


Visit our new blog: Oracle apps scripts and tips

I am working on this blog post. For now i have placed only few scripts. Keep checking this post for further updates: