Search This Blog

Drop Table If Exists in Oracle

In case of drop table statement you will face an exception in oracle, but in mysql there is a if exists in drop statement. so we can follow the following to avoid this in Oracle.




--CREATE TABLE MENNAN.TABLE_EXAMPLE AS SELECT * FROM DUAL;
---SIMPLE WAY, if execute immediate fails, because table not exists, transaction will be committed
BEGIN
  EXECUTE IMMEDIATE 'DROP TABLE MENNAN.TABLE_EXAMPLE';
EXCEPTION
  WHEN OTHERS THEN
    IF SQLCODE <> -942 THEN
      RAISE;
    END IF;
END;
/

---- NAMED EXCEPTION, the same as SIMPLE WAY
DECLARE
  ve_TableNotExists EXCEPTION;
  PRAGMA EXCEPTION_INIT(ve_TableNotExists, -942);

  vs_DynamicDropTableSQL VARCHAR2(1024);
  vs_TableName           VARCHAR2(64);
BEGIN
  vs_TableName           := 'MENNAN.TABLE_EXAMPLE';
  vs_DynamicDropTableSQL := 'DROP TABLE ' || vs_TableName;

  EXECUTE IMMEDIATE vs_DynamicDropTableSQL;
EXCEPTION
  WHEN ve_TableNotExists THEN
    dbms_output.put_line(vs_TableName || ' not exist, skipping....');
  WHEN OTHERS THEN
    dbms_output.put_line(SQLERRM);
    RAISE;
END;
/


---- NAMED EXCEPTION, the same as SIMPLE WAY but more general one
DECLARE
  ve_TableNotExists EXCEPTION;
  PRAGMA EXCEPTION_INIT(ve_TableNotExists, -942);


  PROCEDURE DropTable(pis_TableName IN VARCHAR2IS
    vs_DynamicDropTableSQL VARCHAR2(1024);
  BEGIN
 
    vs_DynamicDropTableSQL := 'DROP TABLE ' || pis_TableName; 
    EXECUTE IMMEDIATE vs_DynamicDropTableSQL;
   
  EXCEPTION
    WHEN ve_TableNotExists THEN
      dbms_output.put_line(pis_TableName || ' not exist, skipping....');
    WHEN OTHERS THEN
      dbms_output.put_line(SQLERRM);
      RAISE;
  END DropTable;
 
 
BEGIN
  DropTable('MENNAN.TABLE_EXAMPLE');
END;
/

---Yet another way, first check from dictionary, if exists drop the table. Checking from dictionary may take time but avoids unnecessary transactions
DECLARE
  vs_TableName VARCHAR2(64);
  vn_Count     PLS_INTEGER;
BEGIN
  vs_TableName := 'MENNAN.TABLE_EXAMPLE';
 
  SELECT COUNT(*)
    INTO vn_Count
    FROM ALL_TABLES
   WHERE OWNER || '.' || TABLE_NAME = vs_TableName;

  IF vn_Count > 0 THEN
    EXECUTE IMMEDIATE 'DROP TABLE ' || vs_TableName;
  END IF;
END;
/

Oracle Apps HRMS tables

Here is a list of Oracle HRMS Tables, with a brief description. This list can also be get from FND_TABLES
Oracle HRMS Table NameTable Description
HR_ALL_ORGANIZATION_UNITSOrganization unit definitions.
HR_ALL_ORGANIZATION_UNITS_TLTranslated organization unit name definitions.
HR_ALL_POSITIONS_FPosition definition information.
HR_ALL_POSITIONS_F_TLTranslation table
HR_API_BATCH_MESSAGE_LINESResults and messages generated during batch API processing.
HR_API_HOOKSLists the hook points which are available in each API module.
HR_API_HOOK_CALLSLists which extra logic, package procedures or formula, should be called from the API hook points.
HR_API_MODULESHolds details of the business processes and row handlers.
HR_API_TRANSACTIONSKiosk processes in progress
HR_API_TRANSACTION_STEPSKiosk workflow data rows
HR_API_TRANSACTION_VALUESKiosk workflow data columns and values
HR_API_USER_HOOK_REPORTSUsed to hold HR_API_USER_HOOK error information if this exists otherwise no information is held.
HR_ASSIGNMENT_SETSFormula definitions that identify sets of assignments.
HR_ASSIGNMENT_SET_AMENDMENTSIdentifies explicit include and exclude rules for an assignment set.
HR_ASSIGNMENT_SET_CRITERIAIdentifies individual criteria in the definition of an assignment set.
HR_ATH_ELIGIBLE_TBLS
HR_ATH_ENROLL_TBLSThis table contains ODBC connectivity information for the Authoria enrolled plans table(s).
HR_ATH_VARIABLEMAPVariable mappings table for the Authoria Integration
HR_AUTHORIA_MAPPINGSAuthoria Mapping Information
HR_CALENDARSDated instances of a repeating pattern.
HR_CALENDAR_USAGESAssignments of calendars to individual entities.
HR_CANVAS_PROPERTIESCanvas properties for configurable forms
HR_COMMENTSCentral repository for comments.
HR_DE_LIABILITY_PREMIUMS_FHolds Liability Insurance Providers Premium rates for the Organization
HR_DE_ORGANIZATION_LINKSHolds extra information for Organizations links with External Orgs
HR_DE_SOC_INS_CONTR_LVLS_FHolds German Social Insurance Contibution data
HR_DM_APPLICATION_GROUPSData Migrator locking ladder groups for applications.
HR_DM_COLUMN_DEFINITIONSColumn definitions for sequence range management
HR_DM_DATABASESTable containing names of all databases within database farm
HR_DM_DT_DELETESThis table holds the information for the deletion of date tracked data.  This table is also used to hold participant data information of data that has been downloaded but not been uploaded.
HR_DM_EXP_IMPSThis table holds the data from various tables in the source database that will be moved to the destination database using the transportable tablespace for upload in the destination database
HR_DM_GROUPSThis table holds information about the groupings used in the data migration process.
HR_DM_HIERARCHIESThis entity will contain the relationships between tables.  The following relationship will be recorded:
HR_DM_LOADER_PARAMSThis entity contains the configuration data for the AOL loader files
HR_DM_LOADER_PHASE_ITEMSThis entity contains the migration specific configuration data for the AOL loader files.
HR_DM_MIGRATIONSThis table contains the data migration information. There is one row per migration in progress.
HR_DM_MIGRATION_RANGESThis table holds the allocated ranges for each slave process to process during each Download Application/Participant data phase of the migration.
HR_DM_MIGRATION_REQUESTSThis table holds the information about the request id of the issuing concurrent program.
HR_DM_PHASESThis table holds the information about each phase of the migration process.
HR_DM_PHASE_ITEMSThis table details the work to be undertaken for each phase of the Data Migrator.
HR_DM_PHASE_RULESThis table contains the rules governing which phases apply to which migrations.
HR_DM_RESOLVE_PKSThis entity contains the values of the primary key for both the source and destination database for each table for use by the TUPS package.
HR_DM_SEQUENCE_DEFINITIONSTable containing Sequence Name information for the PER/PAY/DT/FF/OTA/SSP/GHR/HXT/BEN applications.
HR_DM_SEQUENCE_HISTORIESTable containing sequence information from the different Fidelity databases. To be updated before any changes to sequences are made to enable sequence history tracking.
HR_DM_SEQUENCE_RANGESTable containing Sequence Ranges for particular Sequence and Database.  This table can hold multiple Ranges for a given Sequence and Database.
HR_DM_TABLESThis entity contains a HRMS table listing that will be processed by the data migrator.
HR_DM_TABLE_GROUPINGSThis entity holds the information for the grouping of tables.
HR_DOCUMENT_EXTRA_INFODocuments of Record Information
HR_DOCUMENT_TYPESDocument Types for Documents od Record
HR_DOCUMENT_TYPES_TLTranslated Document Types for Documents of Record
HR_DU_COLUMN_MAPPINGSThis table holds the relationship between the column name used in the source object (e.g. the spreadsheet column) and the output target (e.g. the Data Pump parameter name).
HR_DU_DESCRIPTORSThis table holds the descriptor details for each API to be uploaded.
HR_DU_ERRORSThis table holds details about errors encountered during processing of a batch by any of the Data Uploader modules.
HR_DU_MODULESThis table holds the details about each module which can be used for either input, process or output with in the data Uploader.
HR_DU_UPLOADSThis table holds the data relating to information uploaded from a single source file.
HR_DU_UPLOAD_HEADERSThis table holds the details for each API to be uploaded.
HR_DU_UPLOAD_LINESThis table holds the details for each item to be uploaded with an item spanning one or more rows
HR_EFC_ACTIONSContains one row for each time the EFC conversion process or delete _EFC table data process is run.
HR_EFC_CURRENCY_HISTORIESContains one row per NCU currency as defined in FND_CURRENCIES at the time of the EFC processing with details of the NCU.
HR_EFC_PROCESS_COMPONENTSHolds one row for each processing script in each conversion processing run.
HR_EFC_ROUNDING_ERRORSHolds one row for each time a rounding error adjustment has been made.
HR_EFC_WORKERSHolds one row for each parallel worker instance of a processing component.
HR_EFC_WORKER_AUDITSHolds one row for each HR_EFC_WORKER row per currency code processed for update scripts only.
HR_EXCEPTION_USAGESIdentifies usage of defined exceptions to a repeating pattern.
HR_FORM_CANVASES_BCanvas definition for configurable forms
HR_FORM_CANVASES_TLTranslated canvas definitions for configurable forms.
HR_FORM_DATA_GROUPS_BForm data group definition for configurable forms
HR_FORM_DATA_GROUPS_TLTranslated form data group definitions for configurable forms
HR_FORM_DATA_GROUP_ITEMSLinks items with data groups for configurable forms
HR_FORM_ITEMS_BDefinition of items available for configurable forms
HR_FORM_ITEMS_TLTranslated definitions of form items for configurable forms
HR_FORM_PROPERTIESConfigurable properties for configurable forms modules
HR_FORM_TAB_PAGES_BDefinition of form tab page for configurable forms
HR_FORM_TAB_PAGES_TLTranslated definition of form tab page for configurable forms
HR_FORM_TAB_STACKED_CANVASESDefinition of stacked canvas for tab pages in configurable forms
HR_FORM_TEMPLATES_BDefinition of template used by configurable forms
HR_FORM_TEMPLATES_TLTranslated template definition for use in configurable forms
HR_FORM_WINDOWS_BDefinition of windows for use in configurable forms
HR_FORM_WINDOWS_TLTranslated definition of windows for configurable form
HR_H2PI_ADDRESSESThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to addresses while data upload is in progress.
HR_H2PI_ASSIGNMENTSThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to assignments  while data upload is in progress.
HR_H2PI_BG_AND_GREThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to bg_and_gre  while data upload is in progress.
HR_H2PI_CITY_TAX_RULESThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to us employees city tax rules while data upload is in progress.
HR_H2PI_COST_ALLOCATIONSThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to cost allocations s while data upload is in progress.
HR_H2PI_COUNTY_TAX_RULESThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to us employee county tax rules while data upload is in progress.
HR_H2PI_DATA_FEED_HISTThis table stores information about date feed history for Oracle HR to Oracle Payroll Interface (H2PI).
HR_H2PI_ELEMENT_ENTRIESThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to element entries  while data upload is in progress.
HR_H2PI_ELEMENT_ENTRY_VALUES
HR_H2PI_ELEMENT_LINKS
HR_H2PI_ELEMENT_NAMES
HR_H2PI_ELEMENT_TYPES
HR_H2PI_EMPLOYEESThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to employees while data upload is in progress.
HR_H2PI_FEDERAL_TAX_RULES
HR_H2PI_HR_ORGANIZATIONS
HR_H2PI_ID_MAPPINGThis table stores information about ID mapping for Oracle HR to Oracle Payroll Interface (H2PI).
HR_H2PI_INPUT_VALUES
HR_H2PI_LOCATIONSThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to locations  while data upload is in progress.
HR_H2PI_MESSAGE_LINESThis table stores information about all the messages for Oracle HR to Oracle Payroll Interface (H2PI).
HR_H2PI_ORGANIZATION_CLASS
HR_H2PI_ORGANIZATION_INFOThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to  organization info while data upload is in progress.
HR_H2PI_ORG_PAYMENT_METHODS
HR_H2PI_PATCH_STATUS
HR_H2PI_PAYMENT_METHODS
HR_H2PI_PAYROLLS
HR_H2PI_PAY_BASES
HR_H2PI_PERIODS_OF_SERVICE
HR_H2PI_SALARIES
HR_H2PI_STATE_TAX_RULES
HR_H2PI_US_CITY_NAMES
HR_H2PI_US_MODIFIED_GEOCODESThis is staging table for the Oracle HR to Oracle Payroll Interface (H2PI) and  stores data related to  US midified geocodes while data upload is in progress.
HR_INCOMPATIBILITY_RULESIncompatibility rules for navigation units.
HR_ITEM_CONTEXTSCombinations table for the item context key flexfield ICX
HR_ITEM_PROPERTIES_BProperties for form or template items used by configurable forms.
HR_ITEM_PROPERTIES_TLTranslatable properties of items for configurable forms
HR_JP_PARAMETERSThis table holds unique id for Japanese legislative specific data in order not to hard-code Multibyte characters in Japanese localization code objects.
HR_KI_EXT_APPLICATIONSThis table holds the details of the KI integration external applications
HR_KI_SESSIONS
HR_LAYOUTSInformation about an instance of a Self-Service User Interface configuration.
HR_LAYOUTS_TLTranslation table for HR_LAYOUTS.
HR_LAYOUT_COMPONENTSSet of User Interface Components used within a configurable Self-Service layout.
HR_LAYOUT_COMP_DEFINITIONSDefinitions of the set of User Interface components that can be used within a configurable Self Service User Interface Layout.
HR_LAYOUT_COMP_PROMPTSSet of prompt codes associated with a Configurable UI Layout Component
HR_LAYOUT_COMP_QUALIFIERSSet of layout qualifiers which can be used to modify the rendering of a Self Service User Interface component.
HR_LAYOUT_COMP_QUAL_RULESSet of rules that determine whether a Self Service User Interface component can use a particular layout qualifier.
HR_LEGISLATION_INSTALLATIONSStatus of each product/legislation combination installed
HR_LOCATIONS_ALLWork location definitions.
HR_LOCATIONS_ALL_TLTranslated location codes and descriptions.
HR_LOCATION_EXTRA_INFOExtra information for a location.
HR_LOCATION_INFO_TYPESTypes of extra information that may be held against a Location.
HR_NAME_FORMATSContains the format masks used to determine the displayed formats of personal names in Applications. Oracle will seed rows in this table which cannot be deleted, but can be modified by customers. Additional rows can be created.
HR_NAVIGATION_CONTEXT_RULESContext specific rules for taskflow navigation.
HR_NAVIGATION_NODESTaskflow node definitions.
HR_NAVIGATION_NODE_USAGESIntersection table between HR_WORKFLOWS, HR_NAVIGATION_NODES and HR_NAVIGATION_PATHS.
HR_NAVIGATION_PATHSTaskflow navigation path details.
HR_NAVIGATION_PATHS_TL
HR_NAVIGATION_UNITSInformation about potential navigation options in a taskflow.
HR_NAVIGATION_UNITS_TLTranslated fields for hr_navigation_units
HR_NAV_UNIT_GLOBAL_USAGESGlobal variable usage by specific navigation unit.  (Form or block).
HR_ORGANIZATION_INFORMATIONAdditional attributes of an organization, dependent on class or organization information type.
HR_ORGANIZATION_INFORMATIO_EFCThis is a copy of theHR_ORGANIZATION_INFORMATION  table which is populated by the EFC (Euro as Functional Currency) process.
HR_ORG_INFORMATION_TYPESInformation types that are used to add information for an organization.
HR_ORG_INFO_TYPES_BY_CLASSDefines organization information types for specific organization classifications.
HR_PATTERNSA repeating time pattern, eg a work pattern, SSP qualifying pattern or a resource schedule.
HR_PATTERN_BITSA defined period of time used to construct a pattern.
HR_PATTERN_CONSTRUCTIONSDecomposition of a repeating pattern into its individual ‘bits’ of time.
HR_PATTERN_EXCEPTIONSAn exception to a repeating pattern.
HR_PATTERN_PURPOSESPotential purpose for the parent pattern, eg ‘Work Pattern’, ‘Resource schedule’, etc.
HR_PATTERN_PURPOSE_USAGESValid combinations of entities and pattern purposes.
HR_PTL_SUMMARY_DATA
HR_PUMP_BATCH_EXCEPTIONSHolds data pump processing exception (error) information.
HR_PUMP_BATCH_HEADERSStores information on a batch to be loaded by the data pump.
HR_PUMP_BATCH_LINESEach rows stores the information required to make an API call. OUT-parameter values are written back after the API call.
HR_PUMP_BATCH_LINE_USER_KEYSUser keys and their associated information is stored here on the creation of entities that require user keys.
HR_PUMP_DEFAULT_EXCEPTIONSLists API modules that do not conform to the API parameter defaulting rules.
HR_PUMP_MAPPING_PACKAGESLists PL/SQL packages that contain the parameter mapping functions used by data pump generated code. If module_package and module_name are both null then the mapping functions may be used by all APIs.
HR_PUMP_MODULE_PARAMETERSHolds seeded information about API parameters for data pump code generation.
HR_PUMP_RANGESControls the parallelisation of the work when the data pump is running on multiprocessor platforms.
HR_PUMP_REQUESTSHolds information on data pump concurrent requests currently running.
HR_QUESTIONNAIRESQuestionnaires used within SSHR.
HR_QUEST_ANSWERSAnswers for a questionnaire.
HR_QUEST_ANSWER_VALUESAnswer values for a questionnaire.
HR_QUEST_FIELDSFields of a questionnaire.
HR_SOFT_CODING_KEYFLEXLegislation specific information for payrolls, organizations and assignments.
HR_SOURCE_FORM_TEMPLATESIdentities of templates which have been copied and the resulting copy. Helps distinguish seeded templates from copied ones.
HR_STU_EXCEPTIONSError conditions from the startup data process.
HR_STU_HISTORYVersions of HRMS Startup data installed
HR_SUMMARYHR_SUMMARY holds all data for the Generic Summary Process.
HR_SUMMARY_EFCThis is a copy of the HR_SUMMARY table which is populated by the EFC (Euro as Functional Currency) process.
HR_S_MAGNETIC_BLOCKS
HR_S_MAGNETIC_RECORDS
HR_S_US_CITY_GEOCODES
HR_S_US_CITY_NAMESUS cities and their VERTEX geocodes, used to validate US addresses.
HR_S_US_CITY_SCHOOL_DSTS
HR_S_US_CITY_TAX_INFO_FElement definitions.
HR_S_US_COUNTY_TAX_INFO_FElement definitions.
HR_S_US_FEDERAL_TAX_INFO_FElement definitions.
HR_S_US_GARN_EXEMPTION_RULES_F
HR_S_US_GARN_FEE_RULES_F
HR_S_US_GARN_LIMIT_RULES_F
HR_S_US_STATE_TAX_INFO_FElement definitions.
HR_S_US_ZIP_CODESValid zip code ranges for VERTEX cities, used to validate US addresses.
HR_S_VALID_DEPENDENT_TYPES- Retrofitted
HR_S_WC_STATE_SURCHARGES- Retrofitted
HR_TAB_PAGE_PROPERTIES_BProperties of tab pages for configurable forms
HR_TAB_PAGE_PROPERTIES_TLTranslated properties of tab pages for configurable forms
HR_TEMPLATE_CANVASES_BDefinition of canvases on template for configurable forms
HR_TEMPLATE_DATA_GROUPSDefinition for data group on template for configurable forms
HR_TEMPLATE_ITEMS_BDefinition of items on template for configurable forms
HR_TEMPLATE_ITEM_CONTEXTS_BDefinition of items on a template for given context, for configurable forms
HR_TEMPLATE_ITEM_CONTEXT_PAGESInformation about which tab pages item belongs to for a specific context, on template for configurable form.
HR_TEMPLATE_ITEM_TAB_PAGESInformation about which tab pages item belongs to on template for configurable form.
HR_TEMPLATE_TAB_PAGES_BDefinition of tab page for template, for configurable forms
HR_TEMPLATE_WINDOWS_BDefinition of window for a template, for configurable forms
HR_TIPSHelp components used within SSHR.
HR_WINDOW_PROPERTIES_BProperties of windows for configurable forms
HR_WINDOW_PROPERTIES_TLTranslated properties of windows for configurable forms
HR_WIP_LOCKSStores context lock for a transaction
HR_WIP_TRANSACTIONSStores the transaction information and state
HR_WORKFLOWSTaskflows in Oracle HRMS.
HR_WORKING_PERSON_LISTSHolds a list of people who constitute a user current list, used in the Line Manager Web pages
PER_ABSENCE_ATTENDANCESRecords of absence, or attendance for an employee.
PER_ABSENCE_ATTENDANCES_EFCThis is a copy of the PER_ABSENCE_ATTENDANCES  table which is populated by the EFC (Euro as Functional Currency) process.
PER_ABSENCE_ATTENDANCE_TYPESUser defined absence types.
PER_ABS_ATTENDANCE_REASONSValid absence reasons for an absence type.
PER_ABS_ATTENDANCE_TYPES_TLHolds translated information for Absence Types
PER_ADDRESSESAddress information for people.
PER_ALL_ASSIGNMENTS_FEmployee and applicant assignment details.
PER_ALL_PEOPLE_FDateTracked table holding personal information for employees, applicants and other people.
PER_ALL_POSITIONSDual-maintained position definition information.
PER_ALL_VACANCIESVacancies within a specific requisition.
PER_ANALYSIS_CRITERIAFlexfield combination table for the personal analysis key flexfield.
PER_APPLICATIONSApplications for employment.
PER_APPRAISALSAn  appraisal is a record of an evaluation of a person by others.
PER_APPRAISAL_TEMPLATESThe heading or grouping of appraisal questions.
PER_ASSESSMENTSThe grouping of a set of assessment elements.
PER_ASSESSMENT_GROUPSGrouping of People for 360 reviews
PER_ASSESSMENT_TYPESThe definition of an assessment template
PER_ASSIGNMENT_BUDGET_VALUES_FBudget values for an assignment.
PER_ASSIGNMENT_BUDGET_VALU_EFCThis is a copy of the PER_ASSIGNMENT_BUDGET_VALUES_F  table which is populated by the EFC (Euro as Functional Currency) process.
PER_ASSIGNMENT_EXTRA_INFOExtra information for an assignment.
PER_ASSIGNMENT_EXTRA_INFO_EFCThis is a copy of the PER_ASSIGNMENT_EXTRA_INFO  table which is populated by the EFC (Euro as Functional Currency) process.
PER_ASSIGNMENT_INFO_TYPESTypes of extra information that may be held against an assignment.
PER_ASSIGNMENT_INFO_TYPES_TLTranslated types of extra information that may be held against an assignment.
PER_ASSIGNMENT_LISTList of assignments that a secure user can access.
PER_ASSIGNMENT_STATUS_TYPESPredefined and user defined assignment status types.
PER_ASSIGNMENT_STATUS_TYPES_TLPredefined and user defined translated assignment status types.
PER_ASSIGN_PROPOSAL_ANSWERSWeb Candidate Offer Answers
PER_ASS_STATUS_TYPE_AMENDSUser amendments to predefined assignment status types.
PER_ASS_STATUS_TYPE_AMENDS_TLTranslated user amendments to predefined assignment status types.
PER_BF_BALANCE_AMOUNTSHolds assignment level run amount and summary values for backfeed balances by payroll processing period
PER_BF_BALANCE_AMOUNTS_EFC
PER_BF_BALANCE_TYPESTypes of balances that can be held
PER_BF_BALANCE_TYPES_EFC
PER_BF_PAYMENT_DETAILSHolds details of payments that have been processed by a 3rd party payroll provider, by assignment.
PER_BF_PAYMENT_DETAILS_EFC
PER_BF_PAYROLL_RUNSPayrolls processed by 3rd party payroll provider.
PER_BF_PROCESSED_ASSIGNMENTSIntersection table storing details of assignments that have been processed by a 3rd party payroll provider in each payroll run
PER_BOOKINGSEvent booking details.
PER_BUDGETSDefinitions of HR budgets.
PER_BUDGET_ELEMENTSCombinations of organization, grade, job, and position used to define detailed budget values.
PER_BUDGET_VALUESPlanned HR budget values for specific budget elements.
PER_BUDGET_VALUES_EFCThis is a copy of the PER_BUDGET_VALUES  table which is populated by the EFC (Euro as Functional Currency) process.
PER_BUDGET_VERSIONSIdentifies specific versions of an HR budget.
PER_CAGR_APIS
PER_CAGR_APIS_TL
PER_CAGR_API_PARAMETERS
PER_CAGR_API_PARAMETERS_TL
PER_CAGR_COPY_LOG
PER_CAGR_ENTITLEMENTS
PER_CAGR_ENTITLEMENT_ITEMS
PER_CAGR_ENTITLEMENT_ITEMS_TL
PER_CAGR_ENTITLEMENT_LINES_F
PER_CAGR_ENTITLEMENT_RESULTS
PER_CAGR_GRADESThe reference collectively agreed grades for a Collective Agreement.
PER_CAGR_GRADES_DEFCollective agreement grades key flexfield combinations table.
PER_CAGR_GRADE_STRUCTURESThe valid collectively agreed grade key flexfield structures for a particular collective agreement
PER_CAGR_LOG
PER_CAGR_REQUESTS
PER_CAGR_RETAINED_RIGHTS
PER_CALENDAR_ENTRIESCalendar Entries
PER_CAL_ENTRY_GEO_LISTCalendar Entry Geo Coverage Cache
PER_CAL_ENTRY_ORG_LISTCalendar Entry Org Coverage Cache
PER_CAL_ENTRY_VALUESCalendar Entry Values
PER_CAREER_PATHSList of career paths for jobs.
PER_CAREER_PATH_ELEMENTSProgression paths for specific jobs.
PER_CA_EE_REPORT_LINES
PER_CHECKLIST_ITEMSChecklist information.
PER_COBRA_COVERAGE_BENEFITS_FDetails of a benefit that the employee accepts or rejects as part of their COBRA coverage.
PER_COBRA_COVERAGE_PERIODSHolds coverage periods for COBRA qualifying events.
PER_COBRA_COVERAGE_STATUSESTracks the status of a COBRA enrollment.
PER_COBRA_COV_ENROLLMENTSEnrollments for people who are eligible for continued benefit coverage under COBRA.
PER_COBRA_DEPENDENTS_FHolds employee dependents coverage for a COBRA qualifying event.
PER_COBRA_QFYING_EVENTS_FEvents that have meaning in the context of COBRA coverage, e.g. Divorce, Termination, Death  etc.
PER_COLLECTIVE_AGREEMENTSCollective agreement information.
PER_COMPETENCESA competence is a definition of knowledge, skills, abilities or other charactaristics that a person may possess.
PER_COMPETENCES_TLThis table is used for language translations
PER_COMPETENCE_DEFINITIONSCOMPETENCES Key flexfield combinations table
PER_COMPETENCE_ELEMENTSA competence element is used to record an individual competence and an evaluation rating.
PER_COMPETENCE_OUTCOMESCompetence outcomes
PER_COMP_ELEMENT_OUTCOMESThe outcomes achieved towards a given Competency .
PER_CONTACT_EXTRA_INFO_FExtra information for a contact relationship.
PER_CONTACT_INFO_TYPESTypes of extra information that may be held against a contact relationship.
PER_CONTACT_INFO_TYPES_TLTranslated types of extra information that may be held against  a contact relationship.
PER_CONTACT_RELATIONSHIPSContacts and relationship details for dependents, beneficiaries, emergency contacts, parents etc.
PER_CONTRACTS_FThe details of a persons contract of employment
PER_CPN_DATA_UPGRADEUsed to log errors / warnings during the conversion of competences to a key flex structure.
PER_DEPLOYMENT_FACTORSA factor affecting a person’s capacity to be deployed within an organization.
PER_DISABILITIES_FHold Disability information for one person
PER_ELECTIONSHolds election related information.
PER_ELECTION_CANDIDATESHolds information of Election candidates.
PER_ELECTION_CONSTITUENCYSThis table holds information related to constituencies participating in the election.
PER_EMPDIR_ASSIGNMENTS
PER_EMPDIR_JOBS
PER_EMPDIR_LOCATIONS
PER_EMPDIR_LOCATIONS_TL
PER_EMPDIR_ORGANIZATIONS
PER_EMPDIR_PEOPLE
PER_EMPDIR_PHONES
PER_EMPDIR_POSITIONS
PER_ESTABLISHMENTSThis entity is used to maintain a list  of educational establishments e.g. schools, colleges, universities, etc.
PER_ESTABLISHMENT_ATTENDANCESA record of educational establishments that a person is currently attending or has previously attended.
PER_EVENTSRecord of events such as interviews and appraisals for applicants and employees.
PER_FORM_FUNCTIONSNavigation and person change information for the Enter Person information screens.
PER_GENERIC_REPORT_OUTPUTText lines for output by a generic report script, including: title, header, footer and body lines.
PER_GEN_HIERARCHY
PER_GEN_HIERARCHY_NODES
PER_GEN_HIERARCHY_VERSIONS
PER_GEN_HIER_NODE_TYPES
PER_GRADESGrade definitions for a business group.
PER_GRADES_TLTrnslated fields for per_grades
PER_GRADE_DEFINITIONSGrade key flexfield combinations table.
PER_GRADE_SPINES_FStores the progression points for each grade scale.
PER_HEADCOUNT_PORTLET_TBL
PER_HTML_TOOLKIT_REC_TYPESDefault values for the HR html toolkit.
PER_IMAGESImages for a designated row in a designated table.
PER_INFO_TYPE_SECURITYCross table between Responsibilty and Info_type tables, used to secure info types based on responsibility.
PER_JOBSJobs defined for a Business Group.
PER_JOBS_TLTranslated  columns for per_jobs
PER_JOB_DEFINITIONSJob key flexfield combinations table.
PER_JOB_EVALUATIONSJob evaluation details for specific jobs or positions.
PER_JOB_EXTRA_INFOExtra information for a job.
PER_JOB_GROUPSHolds Job Group Information. Each Job will be a member of a Job Group and a Job Group can optionally be within a business group.
PER_JOB_INFO_TYPESTypes of extra information that may be held against a job.
PER_JOB_REQUIREMENTSRequirements for specific jobs or positions.  For example, skills, qualifications, experience, training.
PER_JP_ADDRESS_LOOKUPSLookups for Japanese Addresses
PER_JP_BANK_LOOKUPSLookups for Japanese Bank Branches
PER_JP_POSTAL_CODESLookups for Japanese postal codes and districts
PER_JP_SCHOOL_LOOKUPSLookups for Japanese Educational Institutions
PER_KR_ADDRESSESKR specific
PER_KR_GRADESKR specific
PER_KR_GRADE_AMOUNT_FKR specific
PER_KR_G_POINTSKR specific
PER_KR_G_POINT_AMOUNT_FKR specific
PER_LETTER_GEN_STATUSESAssociations between letter types and possible status type changes.
PER_LETTER_REQUESTSRequests for specific types of standard letter.
PER_LETTER_REQUEST_LINESDetails of individual letter requests.
PER_LETTER_TYPESLetter types and auto-request definitions.
PER_MASS_MOVESHigh level mass move definition.
PER_MEDICAL_ASSESSMENTSHold Medical Assessment information for one person
PER_MM_ASSIGNMENTSPER_MM_ASSIGNMENTS holds assignments that were defined as part of a mass move.
PER_MM_JOB_REQUIREMENTSPER_MM_JOB_REQUIREMENTS holds data related to transferring position requirements to a newly created position.
PER_MM_POSITIONSPER_MM_POSITIONS holds positions that were defined as part of a mass move.
PER_MM_VALID_GRADESPER_MM_VALID_GRADES holds valid grades that will be moved with a position during a mass move.
PER_NL_ABSENCE_ACTIONSDutch Specific Absence Actions
PER_NL_ABSENCE_CHANGESDutch Specific Absence Changes
PER_NL_ASG_SCL_UPGRADERecords the Dutch Assignment SCL Context Information Migrated used by the Report
PER_NUMBER_GENERATION_CONTROLSPER_NUMBER_GENERATION_CONTROLS holds the numbers that are automatically generated for a Business Group.
PER_OBJECTIVESA target or goal which may be evaluated during an appraisal.
PER_ORGANIZATION_LISTList of organizations that a secure user can access.
PER_ORGANIZATION_STRUCTURESOrganization hierarchy names.
PER_ORG_STRUCTURE_ELEMENTSOrganization hierarchy details showing parent-child reporting relationships between organizations.
PER_ORG_STRUCTURE_VERSIONSVersion control information for specific organization hierarchies.
PER_PARENT_SPINESDetails of pay scales, (previously known as parent spines).
PER_PARTICIPANTSA person participating in an appraisal or assessment.
PER_PAY_BASESDefinitions of specific salary bases.
PER_PAY_PROPOSALSSalary proposals and performance review information for employee assignments.
PER_PAY_PROPOSALS_EFCThis is a copy of the PER_PAY_PROPOSALS  table which is populated by the EFC (Euro as Functional Currency) process.
PER_PAY_PROPOSAL_COMPONENTSComponent details of a pay proposal for an employee assignment.
PER_PAY_PROPOSAL_COMPONENT_EFCThis is a copy of the PER_PAY_PROPOSAL_COMPONENT table which is populated by the EFC (Euro as Functional Currency) process.
PER_PAY_PROPOSAL_COMPONENT_EFC
PER_PEOPLE_EXTRA_INFOExtra information for a person.
PER_PEOPLE_INFO_TYPESThe table holds the definitions of extra information types that may be held against a person.
PER_PERFORMANCE_RATINGSA single evaluation of an objective.
PER_PERFORMANCE_REVIEWSPerformance review information for employees.
PER_PERIODS_OF_PLACEMENTPeriods of placement details for a non-payrolled worker
PER_PERIODS_OF_SERVICEPeriod of service details for an employee.
PER_PERIODS_OF_SERVICE_EFCThis is a copy of the PER_PERIODS_OF_SERVICE table which is populated by the EFC (Euro as Functional Currency) process.
PER_PERSON_ANALYSESSpecial information types for a person.
PER_PERSON_DLVRY_METHODSThe communication delivery method for a person.
PER_PERSON_LISTList of people that a secure user can access.
PER_PERSON_LIST_CHANGESList of people that are to be added to current PER_PERSON_LIST.
PER_PERSON_LIST_CHG_ARCHArchive table to hold content of PER_PERSON_LIST_CHANGES on upgrade.
PER_PERSON_TYPESPerson types visible to specific Business Groups.
PER_PERSON_TYPES_TLTranslated person types information.
PER_PERSON_TYPE_USAGES_FIdentifies the types a person may be.
PER_PHONESPER_PHONES holds phone numbers for current and ex-employees, current and ex-applicants and employee contacts.
PER_POSITION_DEFINITIONSCombinations of segments stored in the PER_POSTIONS table.
PER_POSITION_EXTRA_INFOExtra information for a position.
PER_POSITION_INFO_TYPESTypes of extra information that may be held against a position.
PER_POSITION_LISTList of positions that a secure user can access.
PER_POSITION_STRUCTURESPosition Hierarchy names.
PER_POS_STRUCTURE_ELEMENTSPosition hierarchy details showing parent-child reporting relationships between positions.
PER_POS_STRUCTURE_VERSIONSVersion control information for specific position hierarchies.
PER_PREVIOUS_EMPLOYERS
PER_PREVIOUS_JOBSUsed to store Previous Jobs
PER_PREVIOUS_JOB_EXTRA_INFOPrevious Jobs extra info
PER_PREVIOUS_JOB_INFO_TYPESUsed to store previous job info types
PER_PREVIOUS_JOB_USAGESUsed to store previous job Usages
PER_PREV_JOB_EXTRA_INFOPrevious Jobs extra info
PER_PREV_JOB_INFO_TYPESUsed to store previous job info types
PER_PROPOSAL_CATEGORY_MEMBERSWeb Offers profile categories of questions
PER_PROPOSAL_CATEGORY_TYPESGeneric web offer category definitions
PER_PROPOSAL_OFFER_PARAGRAPHSWeb Offer letter text
PER_PROPOSAL_QUESTIONS_ADVWeb Offer advanced questions
PER_PROPOSAL_QUESTION_MEMBERSWeb offer profile questions
PER_PROPOSAL_QUESTION_TYPESGeneric web offer questions
PER_PROPOSAL_TEMPLATES- Retrofitted
PER_PTU_DFF_MAPPING_HEADERSTable for storing DFF migration mapping Information from PER_ALL_PEOPLE_F to PER_PERSON_TYPE_USAGES_F.
PER_PTU_DFF_MAPPING_LINESTable for storing DFF migration mapping Information from PER_ALL_PEOPLE_F to PER_PERSON_TYPE_USAGES_F.
PER_PTU_DFF_MIG_FAILED_PEOPLEThis table is used to store the details of the person records failed to migrate to PER_PERSON_TYPE_USAGES_F from PER_ALL_PEOPLE_F.
PER_QUALIFICATIONSA record of educational qualification, certificates, licenses, etc that a person holds or is acquiring.
PER_QUALIFICATIONS_EFCThis is a copy of the PER_QUALIFICATIONS  table which is populated by the EFC (Euro as Functional Currency) process.
PER_QUALIFICATIONS_TLTranslated qualification details.
PER_QUALIFICATION_TYPESMaintains the list of qualiification types that can be attained.
PER_QUALIFICATION_TYPES_TLMaintains the list of qualiification type translations
PER_QUERY_CRITERIAUsed to store criteria to build up a query
PER_QUICKPAINT_INVOCATIONSIdentifies QuickPaint report runs.
PER_QUICKPAINT_RESULT_TEXTText description for the result of a single QuickPaint run.
PER_RATING_LEVELSA rating scale step is a single point on a rating scale and is used to rate competences.
PER_RATING_LEVELS_TLA rating scale step is a single point on a rating scale and is used to rate competences.
PER_RATING_SCALESA scale used to rate compentencies.
PER_RATING_SCALES_TLTranslated rating scale name and description.
PER_RECRUITMENT_ACTIVITIESRecruitment activities and costs.
PER_RECRUITMENT_ACTIVITIES_EFCThis is a copy of the PER_RECRUITMENT_ACTIVITIES  table which is populated by the EFC (Euro as Functional Currency) process.
PER_RECRUITMENT_ACTIVITY_FORVacancies associated with a specific recruitment activity.
PER_REQUISITIONSVacancy requisition details.
PER_RI_DEPENDENCIESDependencies among Workbench tasks
PER_RI_REQUESTSConcurrent requests for workbench componenets
PER_RI_SETUP_SUB_TASKSWorkbench setup sub-tasks
PER_RI_SETUP_SUB_TASKS_TLTL table for PER_RI_SETUP_SUB_TASKS
PER_RI_SETUP_TASKSWorkbench Setup Tasks
PER_RI_SETUP_TASKS_TLTL table for PER_RI_SETUP_TASKS table
PER_RI_VIEW_REPORTSStores data related to view reports for HRMS
PER_RI_VIEW_REPORTS_TLWorkbench View Reports Translation Table
PER_RI_WORKBENCH_ITEMS Workbench items
PER_RI_WORKBENCH_ITEMS_TLTranslation table for Per_ri_workbench_items
PER_ROLESHolds the different roles that a person performs.
PER_SALARY_SURVEYSMarket salary survey information.
PER_SALARY_SURVEY_LINESDetails for market salary surveys.
PER_SALARY_SURVEY_LINES_EFCThis is a copy of the PER_SALARY_SURVEY_LINES  table which is populated by the EFC (Euro as Functional Currency) process.
PER_SALARY_SURVEY_MAPPINGSMapping information for a salary survey line.
PER_SCHED_COBRA_PAYMENTSPayment schedules for benefits provided by a COBRA coverage.
PER_SECONDARY_ASS_STATUSESSecondary assignment statuses used for information and reporting.
PER_SECURITY_ORGANIZATIONSList of organizations to include or exclude from
security list
PER_SECURITY_PROFILESSecurity profile definitions to restrict user access to specific HRMS records.
PER_SECURITY_USERSList of users for a security profile whose access permissions will be stored in static lists duringSecurity List Maintenance.
PER_SEC_PROFILE_ASSIGNMENTSSecurity profile assignments for User, Responsibility and Business Group.
PER_SHARED_TYPESHolds ‘type’ and ‘status’ information.
PER_SHARED_TYPES_TLTranslated information for shared types.
PER_SPECIAL_INFO_TYPESSpecial information types available to a Business Group.
PER_SPECIAL_INFO_TYPE_USAGESLimits usage of special information types to specific windows.
PER_SPINAL_POINTSList of progression points in a pay scale.
PER_SPINAL_POINT_PLACEMENTS_FDetails of assignment placements to a grade step and point.
PER_SPINAL_POINT_STEPS_FGrade steps defined in a specific grade scale and their incremental order.
PER_STANDARD_HOLIDAYSStatutory Holiday information.
PER_STARTUP_PERSON_TYPES_TLPredefined list of translated person types.
PER_STD_HOLIDAY_ABSENCESRecords when Statutory Holidays are taken.
PER_SUBJECTS_TAKENHolds a record of a person’s subject usages for a qualification
PER_SUBJECTS_TAKEN_TLTranslated grade_attained.
PER_SUCCESSION_PLANNINGThe record of a person’s proposed succession to a position.
PER_TIME_PERIODSTime period definitions for payroll processing and HR budget calendars.
PER_TIME_PERIOD_RULESRules for time periods used by the system.
PER_TIME_PERIOD_SETSSpecific dates for a defined calendar.
PER_TIME_PERIOD_TYPESPredefined list of valid period types for payroll and HR budget calendars.
PER_TIME_PERIOD_TYPES_TLPredefined list of translated period types for payroll and HR budget calendars.
PER_US_INVAL_ADDRESSESTemporary table used to hold invalid addresses.
PER_US_INVAL_LOCATIONSTemporary table used to hold invalid location addresses.
PER_VALID_GRADESLists valid grades for jobs and positions.
PER_WORK_INCIDENTSHolds information on Incidents that happen at work or en route to work, for example, an industrial accident
PER_WORK_INCIDENTS_EFCThis is a copy of the PER_WORK_INCIDENTS  table which is populated by the EFC (Euro as Functional Currency) process.
PER_ZA_AREAS_OF_ASSESSMENTTable to store the Areas of assessment per NQF Assessment
PER_ZA_ASSESSMENTSTable to store the NQF Assessment info for a person
PER_ZA_EMPLOYMENT_EQUITYTemporary table for Employment Equity Reporting
PER_ZA_FORMAL_QUALIFICATIONSTable to store additional NQF Qualification info for a person
PER_ZA_LEARNERSHIP_AGREEMENTSTable to store the NQF learnership agreement info between a person and the organization
PER_ZA_QUALIFICATION_TYPESTable to link qualification types (titles) to NQF qualification types
PER_ZA_TRAININGTable to store NQF Training info for a person

ONE THOUGHT ON “ORACLE APPS HRMS TABLES

  1. To find the Employee Supervisor name:
    SELECT papf1.full_name supervisor_name
    From apps.per_all_people_f papf,
    apps.per_all_assignments_f paaf,
    apps.per_all_people_g papf1
    WHERE papf.person_id = paaf.person_id
    AND paaf.primary_flag = ‘Y’
    AND paaf.assignment_type = ‘E’
    AND paaf.supervisor_id = papf1.person_id
    AND papf1.current_employee_flag = ‘Y’
    AND papf.business_group_id = paaf.business_group_id
    AND SYSDATE BETWEEN papf.effective_start_date and papf.effective_end_date
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND SYSDATE BETWEEN papf1.effective_start_date AND papf1.effective_end_date
    AND papf.employee_number = :p_emp_number;