Showing posts with label Technical. Show all posts
Showing posts with label Technical. Show all posts

Query to find Locked Object in Oracle Apps R12


How can find Locked Object in Oracle Apps R12 ?or How can find Locked object name and Oracle User name in Oracle Apps R12 ?





Query 1 -

SELECT b.owner
     , b.object_name
     , a.oracle_username
     , a.os_user_name
FROM   v$locked_object a
     , all_objects b
WHERE  a.object_id = b.object_id

Query 2 -

SELECT c.owner
     , c.object_name
     , c.object_type
     , b.SID
     , b.serial#
     , b.status
     , b.osuser
     , b.machine
FROM   v$locked_object a
     , v$session b
     , dba_objects c
WHERE  b.SID = a.session_id
AND    a.object_id = c.object_id;

Query 3 -

SELECT a.session_id
     , a.oracle_username
     , a.os_user_name
     , b.owner "OBJECT OWNER"
     , b.object_name
     , b.object_type
     , a.locked_mode
FROM   ( SELECT object_id
              , session_id
              , oracle_username
              , os_user_name
              , locked_mode
        FROM   v$locked_object ) a
     , ( SELECT object_id
              , owner
              , object_name
              , object_type
        FROM   dba_objects ) b
WHERE  a.object_id = b.object_id;







“A GUIDE FOR ORACLE E-BUSINESS SUITE” – A complete Solution and Learning platform For Oracle Apps R12/11i, Training, India Localization, Technical, P2P, O2C, Drop-shipment, AR/AP Cycle, Implementation, Bug or error in Oracle Apps R12/11i, Up-gradation, Support, Alert, Personalization, Discoverer management, OracleApps R12/11i Module, Finance, SCM, MRP, ASCP, WIP, BOM, FA, AP, AR, OM, INV, AOL, MOAC, TCA structure, Project Accounting, CM, Functional,Oracle DBA, ERP, Techno-functional, OAF, Oracle Apps Interview Question and Error in Oracle apps R12/11i. For More Information Visit on www.OracleAppsGuide.com Or Subscribe your email-id on OracleAppsGuide.



Query to find - Is an employer also a buyer or not in oracle Apps or How can check that employee is a buyer


Query to find Is an employee also a buyer or not In Oracle Apps R12 ?




Query -



SELECT pa.agent_id, papf.person_id, papf.employee_number, papf.email_address,
       pa.category_id, pa.location_id, papf.effective_start_date,
       papf.effective_end_date
  FROM po_agents pa, per_all_people_f papf, hr_all_organization_units haou
 WHERE pa.agent_id = papf.person_id
   AND papf.business_group_id = haou.business_group_id
   AND TRUNC (SYSDATE) BETWEEN papf.effective_start_date
                           AND papf.effective_end_date
--AND    email_address = 'rdamanho@redhat.com'
--AND PAPF.EFFECTIVE_END_DATE > SYSDATE
--AND HAOU.BUSINESS_GROUP_ID = 100




“A GUIDE FOR ORACLE E-BUSINESS SUITE” –A complete Solution and Learning platform For Oracle Apps R12/11i, Training, India Localization, Technical, P2P, O2C, Drop-shipment, AR/AP Cycle, Implementation, Bug or error in Oracle Apps R12/11i, Up-gradation, Support, Alert, Personalization, Discoverer management, OracleApps R12/11i Module, Finance, SCM, MRP, ASCP, WIP, BOM, FA, AP, AR, OM, INV, AOL, MOAC, TCA structure, Project Accounting, CM, Functional,Oracle DBA, ERP, Techno-functional, OAF, Oracle Apps Interview Question and Error in Oracle apps R12/11i. For More Information Visit on www.OracleAppsGuide.com Or Subscribe your email-id on OracleAppsGuide



Terminology Used in EBS Oracle Apps R12


What is Implementation,Upgradation ,Migration,Reimplementation,Rollout,Support in terms of Oracle Apps R12 

or

Difference between Implementation,Upgradation ,Migration,Reimplementation,Rollout,Support in terms of Oracle Apps R12 





Here are some of Important and frequently use Terminology in Oracle Apps EBS Listed below -:

  • Implementation
  • Upgradation
  • Migration
  • Reimplementation
  • Rollout
  • Support


1- Implementation - First Time implementation or fresh implementation of oracle application on the server is called Oracle Implementation.

2- Upgradation - Upgrade Any lower version into its higher version is called Oracle Apps EBS Upgradation e.g 11i - R12(12.1.1) or R12 (12.1.1) to R12 (12.2.4).

3- Migration - Migrate some of Selected data from one Instance to another instance as per business requirement is called Migration of Data .

4- Reimplementation - Somehow fresh implementation is not working properly or 
it is not Suitable for the business then again Application Implement (Reimplement) with the best-fitted design.

5- Rollout - Same Structure develops and design for another Operating Unit within the Busines Group is called Rollout .In this process, one operating unit works for other preceding operating units as a base .

6- Support - Support is the maintenance of Oracle Application after Implementation or GO LIVE of Oracle Apps .


Note -: Link for Oracle Application Implementation guide document .



“A GUIDE FOR ORACLE E-BUSINESS SUITE” –A complete Solution and Learning platform For Oracle Apps R12/11i, Training, India Localization, Technical, P2P, O2C, Drop-shipment, AR/AP Cycle, Implementation, Bug or error in Oracle Apps R12/11i, Up-gradation, Support, Alert, Personalization, Discoverer management, OracleApps R12/11i Module, Finance, SCM, MRP, ASCP, WIP, BOM, FA, AP, AR, OM, INV, AOL, MOAC, TCA structure, Project Accounting, CM, Functional,Oracle DBA, ERP, Techno-functional, OAF, Oracle Apps Interview Question and Error in Oracle apps R12/11i. For More Information Visit on www.OracleAppsGuide.com Or Subscribe your email-id on OracleAppsGuide



How can make entry for "TNSNAMES.ORA" on the local host for Oracle Application (In Oracle Apps R12).



TNSNAMES.ORA entry to runs Oracle Application R12 at local Host 
OR 
TNS Entry steps to runs Oracle Application R12



Please follow the given steps -:

1- Go to  Host Desktop Screen 

2- Press Home key + R and Type 'drivers'




Then Press Enter .

3- Now Go to Folder etc < Hosts




Then



Then




In the Host File please make entry for -

IP Address   |   Hostname   |  SID

As - 192.168.1.5  ebs.example.com  EBSDB


Important -:  Default setup for Oracle Vision Instance to connect database and Application 


Host -  Host IP Address -  192.168.1.5 

Port -  Port Number       - 1521

SID -   Service Identification  -  EBSDB


Note - You can also Explorer the path directly .Follow the given below directory for the same .

C:\Windows\System32\drivers\etc



“A GUIDE FOR ORACLE E-BUSINESS SUITE” –A complete Solution and Learning platform For Oracle Apps R12/11i, Training, India Localization, Technical, P2P, O2C, Drop-shipment, AR/AP Cycle, Implementation, Bug or error in Oracle Apps R12/11i, Up-gradation, Support, Alert, Personalization, Discoverer management, OracleApps R12/11i Module, Finance, SCM, MRP, ASCP, WIP, BOM, FA, AP, AR, OM, INV, AOL, MOAC, TCA structure, Project Accounting, CM, Functional,Oracle DBA, ERP, Techno-functional, OAF, Oracle Apps Interview Question and Error in Oracle apps R12/11i. For More Information Visit on www.OracleAppsGuide.com Or Subscribe your email-id on OracleAppsGuide



Top 35 SQL Interview Question asked in Oracle Apps Technical Interview or SQL TOP 35 Frequently asked question in Technical Interview



Top 35 SQL Interview Question asked in Oracle Apps R12 Technical Interview 

or 

SQL TOP 35 Frequently asked question in Technical Interview 




Frequently asked Technical (SQL) question in Oracle apps r12 -:


1.    To find EVEN NUMBER

select * from emp where rowid in (select decode(mod(rownum,2),0,rowid, null) from emp);

2.    To find EVEN NUMBER

select * from emp where rowid in (select decode(mod(rownum,2),0,null ,rowid) from emp);

3.    To find the 5th MAX salary

select distinct sal from emp e1 where 5 = (select count(distinct sal) from emp e2 where e1.sal <= e2.sal);

4.    To find the 9th MIN salary in the emp table.

select distinct sal from emp e1 where 9 = (select count(distinct sal) from emp e2 where e1.sal >= e2.sal);

5.    How can we use Rownum function/How can get output for first 10 row output

select * from emp where rownum <= &Enter_row_num;

6.    How can get output for Last 10 row output

select * from emp minus select * from emp where rownum <= (select count(*) - &Enter_row_num from emp);

7.    Use of Not in,Not Exists and /Department name without allocation of any Employee in it .
select * from dept where deptno not in (select deptno from emp);  

OR

select * from dept a where not exists (select * from emp b where a.deptno = b.deptno);

8.    To find 21 Max salaries ?

select distinct sal from emp a where 21 >= (select count(distinct sal) from emp b where a.sal <= b.sal) order by a.sal desc;

9.    To find 11 Min salaries ?

select distinct sal from emp a where 11 >= (select count(distinct sal) from emp b  where a.sal >= b.sal);

10.    To find nth maximum salary of employee with distinct function ?

select distinct hiredate from emp a where &n =  (select count(distinct sal) from emp b where a.sal >= b.sal);

11.    Example of Left or right join

select empno,ename,b.deptno,dname from emp a, dept b where a.deptno(+) = b.deptno and empno is null;

select empno,ename,b.deptno,dname from emp a, dept b where a.deptno = b.deptno(+) and empno is null;

12.    To delete duplicate Records from Table 

delete from emp a where rowid != (select max(rowid) from emp b where  a.empno=b.empno);

13.    Use of Group by Function 

select count(EMPNO), b.deptno, dname from emp a, dept b  where a.deptno(+)=b.deptno  group by b.deptno,dname;

14.    Use of Mathmatical Function in query 

select ename,sal/12 as monthlysal from emp;

15.    Select all record "OR" 

select * from emp where deptno=90 or deptno=40;

16.    Select all record Using Less then and greater then.

select * from emp where deptno=40 and sal>1100;

17.    Use of "Not in" by example 

select * from emp where job not in ('SALESMAN','CLERK');

18.    Use of "IN" by example 

select * from emp where empid in('10','20','30');

19.    Select all records where ename starts with 'Sonu' and its lenth is 8 char.

select * from emp where ename like'Sonu___';

20.    Select all records where ename end with 'Chauhan'/Use of "%"

select * from emp where ename like'%Chauhan';

21.    Use of Count function

select count(MGR),count(sal) from emp;

22.    Use Formula in select 

select ename,(sal+nvl(comm,0)) as totalsal from emp;

23.    Select  any salary <15000 from emp table using subquery

select * from emp  where sal> any(select sal from emp where sal<15000);

24.    Select  all salary <5000 from emp table using subquery 

select * from emp  where sal> all(select sal from emp where sal<5000);

25.    Select all the employee  group by deptno and sal in descending order.

select ename,deptno,sal from emp order by deptno,sal desc;

26.    How can I create an empty table emp1 with same structure as emp?

Create table emp1 as select * from emp where 3=5;

27.    How to retrive record where sal between 3000 to 7000? / Use of "Between"

Select * from emp where sal>=3000 And  sal<7000

28.    Select all records where dept no of both emp and dept table matches.

select * from emp where exists(select * from dept where emp.deptno=dept.deptno)

29.    How to use Union between two table 

(Select * from emp) Union (Select * from emp1)

30.    To find Intersect/Common attribute value 

(Select * from emp) Intersect (Select * from emp1)

31.     Use of "Minus"

(Select * from emp) Minus (Select * from emp1)

32.    Count the total sal  deptno wise where more than 2 employees exist.

SELECT  deptno, sum(sal) As totalsal FROM emp GROUP BY deptno HAVING COUNT(empno) > 2

33.    Example of Subquery 

SELECT * FROM   AP_EXPENSE_REPORT_HEADERS_ALL WHERE  EMPLOYEE_ID IN ( SELECT PERSON_ID FROM   PER_ALL_PEOPLE_F WHERE  EMAIL_ADDRESS = &Email_id )

34.    Example of Union 

SELECT PO_HEADER_ID FROM   PO_headers_all 
union 
SELECT PO_HEADER_ID FROM   PO_lines_all

35     Example of Function Like Sum ,Avg etc 

SELECT avg(RATE) from PO_headers_all




“A GUIDE FOR ORACLE E-BUSINESS SUITE” – A complete Solution and Learning platform For Oracle Apps R12/11i, Training, India Localization, Technical, P2P, O2C, Drop-shipment, AR/AP Cycle, Implementation, Bug or error in Oracle Apps R12/11i, Up-gradation, Support, Alert, Personalization, Discoverer management, OracleApps R12/11i Module, Finance, SCM, MRP, ASCP, WIP, BOM, FA, AP, AR, OM, INV, AOL, MOAC, TCA structure, Project Accounting, CM, Functional,Oracle DBA, ERP, Techno-functional, OAF, Oracle Apps Interview Question and Error in Oracle apps R12/11i. For More Information Visit on www.OracleAppsGuide.com Or Subscribe your email-id on OracleAppsGuide






Link Between AP(Account Payable),GL(General Ledger) and SLA(Sub Ledger Accounting _XLA)



Complete relation Query for SLA(Sub Ledger Accounting _XLA),AP(Account Payable) and GL(General Ledger) Links in oracle apps r12 
Or 
Link Between AP(Account Payable),GL(General Ledger) and SLA(Sub Ledger Accounting _XLA)



SELECT DISTINCT GJH.PERIOD_NAME, TRUNC (GJH.CREATION_DATE) GL_DATE,
                GJH.JE_SOURCE, GJH.JE_CATEGORY, GJH.CURRENCY_CODE,
                GJL.DESCRIPTION, GJL.REFERENCE_5, GJL.REFERENCE_10,
                GJL.ACCOUNTED_CR, GJL.ACCOUNTED_DR, GJL.EFFECTIVE_DATE,
                GJL.REFERENCE_1, GCC.SEGMENT1, GCC.SEGMENT2, GCC.SEGMENT3,
                GCC.SEGMENT4, GCC.SEGMENT5, GCC.SEGMENT6, GCC.SEGMENT7,
                AERLA.JUSTIFICATION, AERLA.PROJECT_NUMBER,
                AERLA.EXPENDITURE_ITEM_DATE, AERLA.RECEIPT_CURRENCY_CODE
           FROM APPS.GL_JE_HEADERS GJH,
                APPS.GL_JE_LINES GJL,
                APPS.GL_CODE_COMBINATIONS GCC,
                APPS.GL_IMPORT_REFERENCES GIR,
                APPS.XLA_AE_LINES XAL,
                APPS.XLA_AE_HEADERS XAH,
                APPS.AP_INVOICES_ALL AIA,
                APPS.AP_INVOICE_LINES_ALL AILA,
                APPS.AP_INVOICE_DISTRIBUTIONS_ALL AIDA,
                APPS.AP_EXPENSE_REPORT_HEADERS_ALL AERHA,
                APPS.AP_EXPENSE_REPORT_LINES_ALL AERLA
--APPS.XLA_EVENTS XE,
--XLA.XLA_TRANSACTION_ENTITIES XTE,
--APPS.XLA_DISTRIBUTION_LINKS XDL,
WHERE           GJH.JE_HEADER_ID = GJL.JE_HEADER_ID
            AND GJL.CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
            AND GJL.JE_HEADER_ID = GIR.JE_HEADER_ID
            AND GJL.JE_LINE_NUM = GIR.JE_LINE_NUM
            AND GIR.GL_SL_LINK_ID = XAL.GL_SL_LINK_ID
            AND GIR.GL_SL_LINK_TABLE = XAL.GL_SL_LINK_TABLE
            AND XAL.APPLICATION_ID = XAH.APPLICATION_ID
            AND AIA.INVOICE_ID = AILA.INVOICE_ID
            AND AIA.INVOICE_ID = AIDA.INVOICE_ID
            AND AILA.LINE_NUMBER = AIDA.DISTRIBUTION_LINE_NUMBER
            AND AERHA.REPORT_HEADER_ID = AERLA.REPORT_HEADER_ID
            AND AIA.INVOICE_ID = AERHA.VOUCHNO
            AND AIDA.INVOICE_LINE_NUMBER = AERLA.DISTRIBUTION_LINE_NUMBER
            AND AIDA.ACCOUNTING_EVENT_ID = XAH.EVENT_ID
            AND XAL.AE_HEADER_ID = XAH.AE_HEADER_ID
            AND (    GJH.JE_SOURCE = 'Payables'
                 AND GJH.JE_CATEGORY = 'Purchase Invoices'
                )
            AND GJH.CURRENCY_CODE = 'INR'
--AND XAH.EVENT_ID=XE.EVENT_ID
--AND XAH.APPLICATION_ID=XE.APPLICATION_ID
--AND XE.ENTITY_ID=XTE.ENTITY_ID
--AND XE.APPLICATION_ID=XTE.APPLICATION_ID
--AND XTE.SOURCE_ID_INT_1=AIA.INVOICE_ID
--AND XAH.APPLICATION_ID=XTE.APPLICATION_ID
--AND XAH.ENTITY_ID=XTE.ENTITY_ID
--AND XDL.APPLICATION_ID=XAH.APPLICATION_ID
--AND AIDA.INVOICE_DISTRIBUTION_ID=XDL.SOURCE_DISTRIBUTION_ID_NUM_1
--AND XDL.AE_HEADER_ID=XAH.AE_HEADER_ID
--AND XE.EVENT_ID=AIDA.ACCOUNTING_EVENT_ID
--AND AERHA.INVOICE_NUM LIKE '%12345%'
--AND GJH.PERIOD_NAME = 'AUG-15'





“A GUIDE FOR ORACLE E-BUSINESS SUITE” –A complete Solution and Learning platform For Oracle Apps R12/11i, Training, India Localization, Technical, P2P, O2C, Drop-shipment, AR/AP Cycle, Implementation, Bug or error in Oracle Apps R12/11i, Up-gradation, Support, Alert, Personalization, Discoverer management, OracleApps R12/11i Module, Finance, SCM, MRP, ASCP, WIP, BOM, FA, AP, AR, OM, INV, AOL, MOAC, TCA structure, Project Accounting, CM, Functional,Oracle DBA, ERP, Techno-functional, OAF, Oracle Apps Interview Question and Error in Oracle apps R12/11i. For More Information Visit on www.OracleAppsGuide.com Or Subscribe your email-id on OracleAppsGuide

FND (Foundation) Basic Table Name in Oracle Apps R12




FND (Foundation) Basic Table Name in Oracle Apps R12 

Basic Table List -:

FND_APPLICATION
FND_APPLICATION_TL
FND_CONCURRENT_PROGRAMS
FND_CONCURRENT_PROGRAMS_TL
FND_CONCURRENT_QUEUES
FND_CONCURRENT_QUEUES_TL
FND_CONCURRENT_QUEUE_CONTENT
FND_CONCURRENT_QUEUE_PARAMS
FND_CONCURRENT_QUEUE_SIZE
FND_CONCURRENT_REQUESTS
FND_CONCURRENT_REQUEST_CLASS
FND_CONCURRENT_TIME_PERIODS
FND_CONC_PP_TEMPLATES_TL



“A GUIDE FOR ORACLE E-BUSINESS SUITE” –A complete Solution and Learning platform For Oracle Apps R12/11i, Training, India Localization, Technical, P2P, O2C, Drop-shipment, AR/AP Cycle, Implementation, Bug or error in Oracle Apps R12/11i, Up-gradation, Support, Alert, Personalization, Discoverer management, OracleApps R12/11i Module, Finance, SCM, MRP, ASCP, WIP, BOM, FA, AP, AR, OM, INV, AOL, MOAC, TCA structure, Project Accounting, CM, Functional,Oracle DBA, ERP, Techno-functional, OAF, Oracle Apps Interview Question and Error in Oracle apps R12/11i. For More Information Visit on www.OracleAppsGuide.com Or Subscribe your email-id on OracleAppsGuide

AP, AR, GL, INV, PA, FA, PO, TCA, Workflow - Interface and Base table in Oracle Apps R12



Main Interface and Base table in Oracle Apps R12



GL Module (General Ledger Module tables in Oracle Apps R12)
Interface Table
Base Table
gl_interface
gl_budget_interface
gl_je_batches
gl_je_headers
gl_je_lines
gl_je_sources
gl_je_categories
gl_sets_of_books
gl_daily_rates
gl_balances
gl_periods
gl_period_sets
gl_code_conbinations
AR Module (Account Receivable Module tables in Oracle Apps R12)
Interface Table
Base Table
ra_customers_interface_all  
ra_contact_phones_int_all
ra_customer_profiles_int_all
hz_parties hz_cust_accounts
hz_cust_acct_sites_all
hz_cust_sit_use_all
hz_party_sites
hz_locations
hz_party_site_uses
hz_customer_profiles
hz_organization_profiles
hz_person_profiles

ra_interface_lines_all
ra_interface_distributions_all
ra_interface_salescredits_all
ra_customer_trx_all
ra_customer_trx_lines_all
ra_cust_trx_line_gl_dist_all
ra_cust_trx_types_all
ar_payment_schedules_all
ra_batch_sources_All
ar_vat_tax_all
ra_terms ar_periods
ar_period_types
OM Module (Order Management Module tables in Oracle Apps R12)
Interface Table
Base Table
oe_headers_iface_all
oe_lines_iface_all
oe_actions_iface_all
oe_order_headers_all
oe_order_lines_all
oe_order_sources
oe_transaction_types_tl
oe_transaction_types_all
INV Module (Inventory Module tables in Oracle Apps R12)
Interface Table
Base Table
mtl_system_items_interface
mtl_item_categories_interface
mtl_item_revisions_interface
mtl_interface_errors
mtl_system_items_b
mtl_system_items_tl
mtl_item_locations
mtl_item_categories
mtl_item_revisions_b
mtl_parameters
hr_all_organizations_units
cst_item_costs
qp_list_headers
jft_rs_salesreps
Workflow Tables tables in Oracle Apps R12
Interface Table
Base Table

wf_items
wf_process_activities
wf_item_activity_statuses
wf_item_types_tl
PO Module (Purchase Order tables in Oracle Apps R12)
Interface Table
Base Table
PO REQUISITIONS
po_requistitions_interface_all
po_req_dist_interface_all

PURCHASE ORDERS
po_headers_interface
po_lines_interface
po_distributions_interface


PO VENDORS
po_vendors
po_vendor_sites_all
po_vendor_contacts

PO REQUISITIONS
po_requisition_headers_all
po_requisition_lines_all
po_req_distributions_all


PURCHASE ORDERS
po_headers_all
po_lines_all
po_line_locations_all
po_distributions_all
AP Module (Account Payables tables in Oracle Apps R12)
Interface Table
Base Table
ap_invoices_interface
ap_invoice_lines_interface
ap_invoices_all
ap_invoice_distributions_all
ap_payments_schedules_all
FA Module (Fixed Asset tables in Oracle Apps R12)
Interface Table
Base Table
fa_inv_interface
fa_production_interface
fa_mass_additions
fa_additions_b
fa_additions_tl
fa_books
fa_deprn_summary
fa_deprn_details
fa_deprn_history
fa_retirements
PA  Module (Project Accounting in Oracle Apps R12)
Interface Table
Base Table

pa_tasks
pa_expenditure_items_all
pa_expenditures_all
pa_transaction_constrols
pa_projects_all
pa_budget_versions
pa_resource_assigments
TCA Architecture (Trading Community Architecture tables in Oracle Apps R12)
Interface Table
Base Table

hz_parties hz_cust_accounts
hz_cust_acct_sites_all
hz_cust_sit_use_all
hz_party_sites
hz_locations
hz_party_site_uses
hz_customer_profiles
hz_organization_profiles
hz_person_profiles




“A GUIDE FOR ORACLE E-BUSINESS SUITE” –A complete Solution and Learning platform For Oracle Apps R12/11i, Training, India Localization, Technical, P2P, O2C, Drop-shipment, AR/AP Cycle, Implementation, Bug or error in Oracle Apps R12/11i, Up-gradation, Support, Alert, Personalization, Discoverer management, OracleApps R12/11i Module, Finance, SCM, MRP, ASCP, WIP, BOM, FA, AP, AR, OM, INV, AOL, MOAC, TCA structure, Project Accounting, CM, Functional,Oracle DBA, ERP, Techno-functional, OAF, Oracle Apps Interview Question and Error in Oracle apps R12/11i. For More Information Visit on www.OracleAppsGuide.com Or Subscribe your email-id on OracleAppsGuide