9. What are triggers in Oracle?
A trigger is a named PL/SQL block that is stored in Oracle database and executed automatically whenever a triggering event takes place.
There are three types of triggers based on timing - BEFORE trigger, AFTER Trigger and INSTEAD OF Trigger.
There are two level based triggers - STATEMENT level Trigger and ROW level Trigger. And there are three event triggers - DML Trigger, DDL Trigger, DATABASE Trigger.
10. What is the process of BI Publisher XML report in Oracle?
1.Build a query
2.Create a data template file with the query
3.Create a concurrent program with the Executable method as 'XDODTEXE' (Java Concurrent Program) and give parameters(if any). Select the output format as 'XML'.
4.Go to XML Publisher>Data Definitions>Create a Data definition with the Concurrent Program short name and attach the data template file(.xml).
5.Go to Data Templates in the same responsibility>Create the data template with the Concurrent Program short name. Attach the layout template which can be either RTF or EXCEL template based on the data.
6.Run the report.
11. What are the sections available in XML data template file?
dataTemplate
parameters
dataQuery
sqlStatement
dataTrigger
dataStructure
group
element
12. What is the default parameter in RDF reports?
p_conc_request_id.
13. How to register PL/SQL stored procedure in concurrent program?
Build a PL/SQL stored procedure.
Create an executable with execution method as 'PL/SQL Stored Procedure' and mention the procedure name in 'File name' field.
Create a concurrent program with this executable and run the report.
14. How to generate XML output through PL/SQL procedure in concurrent program?
We need to embed XML tags in PL/SQL procedure and register it in the concurrent program with output type 'XML'.
15. What are the mandatory parameters for a PL/SQL stored procedure that is used in a concurrent program?
Errbuf (varchar2) - Used to store error message
Retcode (number) - To store the status of the concurrent request.
Without these 2 parameters defined in a procedure or a package, the program will result in error when it is run.
16. Can we set the status as 'Warning' when using PL/SQL stored procedure as execution method in concurrent program?
Yes, we can manually set it through retcode.
Retcode = 1, Warning
Retcode = 2, Error (0 for Success).
17. How can we make one parameter dependent on another?Assume that the values are coming from a table.
We can use $FLEX$ to achieve this requirement.
1. Define first parameter. Eg: XX_DEPTNO
2.Define second parameter with table value set. In the Where condition, give $FLEX$.First parameter name
Eg: select ename from emp where deptno = :$FLEX$.XX_DEPTNO.
18. What is the difference between an interface and a conversion in oracle?
The main difference is that a conversion is a one-time load where as an interface is a periodic process to load data into the applications but they have the same functionality which is loading data into the applications.
19. What are interfaces in Oracle and how many types of interfaces do we have?
An interface is used to load the data into the system periodically or when there is a requirement.
There are two types of interfaces in Oracle:
1. Inbound Interface
2. Outbound Interface
20. What is the process of inbound interface?
Step 1: Create a staging table with all the required columns.
Step 2: Create .ctl file with staging table name and columns.
Step 3: Place both control file and flat file (where we have data) into the server under <your application top directory>.
Step 4: Create an executable with execution method as 'SQL Loader' and give the control file name without any extension.
Step 5: Create a concurrent program for the executable and run the program. Data will be loaded into the staging table if the request status is Success.
21. What is the process of Outbound interface?
Create a procedure or a Package with utl file commands. Register it in the concurrent program and run the report.
22. What are the exceptions of UTL_FILE?
INVALID_PATH, INVALID_MODE, INVALID_FILEHANDLE, INVALID_OPERATION, READ_ERROR, WRITE_ERROR, INTERNAL_ERROR.
23. What are some of the tables in OM?
OE_ORDER_HEADERS_ALL
OE_ORDER_LINES_ALL
OE_ORDER_HOLDS_ALL
WSH_DELIVERY_DETAILS
WSH_NEW_DELIVERIES
WSH_DELIVERY_ASSIGNMENTS
24. Name some tables in AP.
AP_INVOICES_ALL
AP_INVOICE_LINES_ALL
AP_INVOICE_DISTRIBUTIONS_ALL
AP_PAYMENT_SCHEDULES_ALL
AP_PAYMENT_HISTORY_ALL
AP_HOLDS_ALL
AP_AE_LINES_ALL
25. What are the types of collections that we have in Oracle?
Associative array, Nested table, Varray.
26. How to remove a new line character in oracle?
CHR(13) is used to remove new line characters.
Eg: select replace(column_name, CHR(13), '') from table;
27. Can we call a function using select statement when used DML commands in it?
We cannot call a function using a SELECT statement when there are DML statements in it.
28. Can we use DDL statements in a function?
We cannot use DDL statements in a function.
29. How to set multi org from backend?
begin
apps.mo_global.set_policy_context('M');
end;
30. How many report triggers we have in RDF and XML reports?
RDF - Before Parameter, After Parameter, Between Pages, Before Report, After Report.
XML - beforeReport and afterReport
31. Can we use XML bursting for any other purpose rather than sending emails?
Yes, we can use it for FTP.
32. What is the difference between a simple view and a complex view?
A simple view is made up of only one table where as a complex view is created using more than one table.
33. Can we use DML statements in Complex views?
No, Complex views don't support DML statements but simple views do.
34. What functions can we perform using summary column in RDF?
We can perform functions like Average, Count, First, Last, Maximum, Minimum, % of Total, Std Deviation, Sum, Variance using Summary column.
35. What is Pragma autonomous transaction in Oracle?
Use of Pragma autonomous transaction makes a sub program independent of main program. We can perform SQL operations and commit or rollback operations without committing the data in the main transaction. COMMIT or ROLLBACK is must when using Pragma autonomous transaction in the sub program.
36. What are the types of flexfields in oracle and what is their use?
Key flexfields - Used to enter multi-segment values
Descriptive flexfields - Used to enter additional information that Oracle has not provided.
37. How to see the table name and column names in a particular form in Oracle?
For a table or a view name, Help>Record History
For a column name, Click on the particular field that you want to see then click on Help>Diagnostics>Examine.
38. What is the difference between CASE and DECODE in Oracle? (OR) How is CASE different from DECODE?
CASE is a statement which can perform operations like =, >, <, BETWEEN , LIKE where as DECODE is a function which performs only equality check. CASE can even be used as a parameter of a function or a procedure. CASE expects data type consistency but DECODE doesn't. CASE can work with logical operators, predicates, searchable sub queries where as DECODE works only with scalar values.
39. What is the difference between a table and a table with suffix _ALL?
_ALL table stores data related to multiple organizations.
40. What are the PO interface, error and base tables and what is the program to load data into the base tables?
Interface Tables:
PO_HEADERS_INTERFACE
PO_LINES_INTERFACE
PO_DISTRIBUTIONS_INTERFACE
Error Table:
PO_INTERFACE_ERRORS
Base Tables:
PO_HEADERS_ALL
PO_LINES_ALL
PO_DISTRIBUTIONS_ALL
Interface Program:
Import Standard Purchase Orders.
41. What are lookups in Oracle?
Lookups are a static collection of codes used by Oracle. Every lookup has a code associated with it and a meaning for the code. We can define a maximum of 250 lookup values for a lookup type.
42. What are the types of value sets in Oracle apps?
We have 8 types of value sets in Oracle apps.
None
Table
Independent
Dependent
Translatable Independent
Translatable Dependent
Special
Pair.
No comments:
Post a Comment