Professional Documents
Culture Documents
11) What is the starting "oracle error number"? 2) What is meant by forward declaration in
functions?
12) What is pl/sql? What are the advantages of pl/sql?
13) Explain how procedures and functions are called in a PL/SQL block?
14) What is trigger, cursor, functions in pl-sql and we need sample programs about it?
15) What is ref cursor?
16) How many types of database triggers can be specified on a table? What are they?
17) How to debug the procedure?
18) Can Commit, Rollback, Savepoint be used in Database Triggers? If yes than HOW? If no Why?
With Reasons
19) Where the Pre_defined_exceptions are stored?
20) How to disable multiple triggers of a table at at a time?
Reports 6i Interview Questions:
2. What is the difference between Master - Detail Report and report created by
breaks ?
* Master/detail data models are very similar to break report data models. However, a
master/detail data model is created using two queries, each of which owns at least one
group, and a data link. A break report data model is created using one query and at least
two groups. While reports based on a single query are usually more efficient than reports
based on multiple queries, sometimes the structure of your data tables may require you
to link multiple tables.
Implicit Anchors : At runtime, Oracle Reports generates an implicit anchor for each
layout object that does not already have an explicit anchor. It determines for each layout
object which objects, if any, can overwrite it, then creates an anchor from the layout
object to the closest object that can overwrite it. This prevents the object from being
overwritten. The implicit anchor functionality saves you from having to define the
positioning of each object. Implicit anchors are not visible in the Layout editor. However,
you can specify that the Object Navigator display anchoring information using the Object
Navigator Options dialog.
Explicit Anchors : Create an anchor in the Layout editor by clicking on the Anchor tool,
dragging from one edge of the child to the one of the parent's edges, then specifying the
anchor's properties in its property sheet. Any anchor you create for an object will
override its implicit anchoring. Explicit anchors are always visible in the Layout editor
unless you specify otherwise via the Layout Options dialog
9. What are the various report triggers ? What is their order of firing ?
A There are eight report triggers. Of these there are five global triggers called the Report
Triggers. They are fired in the following order :
* Before Parameter Form
* After Parameter Form
* Before Report
* Between Pages
* After Report
Apart from the above Five Report Triggers, there are three other types of triggers :
* Validation Triggers
* Format Triggers
* Action Triggers
Before Form : Fires before the Runtime Parameter Form is displayed. From this trigger,
you can access and change the values of parameters, PL/SQL global variables, and
report-level columns. (Note : If the Runtime Parameter Form is suppressed, this trigger
still fires. Consequently, you can use this trigger for validation of command line
parameters).
After Form : Fires after the Runtime Parameter Form is displayed. From this trigger, you
can access parameters and check their values. This trigger can also be used to change
parameter values or, if an error occurs, return to the Runtime Parameter Form. Columns
from the data model are not accessible from this trigger. (Note : If the Runtime
Parameter Form is suppressed, the After Form trigger still fires. Consequently, you can
use this trigger for validation of command line parameters or other data).
Before Report : Fires before the report is executed but after queries are parsed and data
is fetched.
Between Pages : Fires before each page of the report is formatted, except the very first
page. This trigger can be used for customized page formatting. (Note : In the Previewer,
this trigger only fires the first time that you go to a page. If you subsequently return to the
page, the trigger does not fire again.)
After Report : Fires after you exit the Previewer, or after report output is sent to a
specified destination, such as a file, a printer, or an Oracle*Mail userid. This trigger can
be used to clean up any initial processing that was done, such as deleting tables. Note,
however, that this trigger always fires, whether or not your report completed
successfully.
Validation Triggers : Validation Triggers are PL/SQL functions that are executed when
parameter values are specified on the command line and when you accept the Runtime
Parameter Form. (Notice that this means each Validation Trigger may fire twice when
you execute the report). Validation Triggers are also used to validate the Initial Value of
the parameter in the Parameter property sheet.
Format Triggers : Format Triggers are PL/SQL functions executed before the object is
formatted. The trigger can be used to dynamically change the formatting attributes of the
object.
Action Triggers : Action Triggers are PL/SQL procedures executed when a button is
selected in the Previewer. The trigger can be used to dynamically call another report
(drill down) or execute any other PL/SQL.
Physical Page : A physical page (or panel) is the size of a page that will be output by
your printer.
Logical Page: A logical page is the size of one page of your actual report; one logical
page may be made up of multiple physical pages. The Previewer displays the logical
pages of your report output, one at a time.
23. What are the various page layout sections in Oracle Reports ?
A A report has three sections : the report header pages, report body/margin pages, and
report trailer pages.
Lexical Referencing : Lexical references are placeholders for text that you embed in a
SELECT statement. Use Lexical reference when you want the parameter to substitute
multiple values at runtime. You can use lexical references to replace the clauses
appearing after SELECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING,
CONNECT BY, and START WITH.
37. In Reports, how can you print one record per page in the output ?
* Set the Maximum records per page property of the Repeating frame to 1.
44. What are the various values of the 'Print Condition Type' property in Reports ?
* The various values are :
All : All means the object and all of its contents will be printed on all logical pages of the
Print Condition Object. The object will be repeated on any overflow pages of the Print
Condition Object and will be truncated at the logical page boundary, if necessary.
All but First : All but First means the object and all of its contents will be printed on all
logical pages of the Print Condition Object except the first logical page. The object will
be formatted only on overflow pages of the Print Condition Object and will be truncated
at the logical page boundary, if necessary.
All but Last : All but Last means the object and all of its contents will be printed on all
logical pages of the Print Condition Object except the last logical page. The object will be
repeated on any overflow pages of the Print Condition Object except the last one and
will be truncated at the logical page boundary, if necessary.
*Default : Default means that Oracle Reports will use object positioning to set the Print
Condition Type to either *First or *Last for you. (The asterisk indicates that Oracle
Reports specified the setting for you.)
First : First means that the object and all of its contents will only be printed on the first
logical page of the Print Condition Object. The object will be formatted and will overflow
to subsequent pages, if necessary.
Last : Last means that the object and all of its contents will only be printed on the last
logical page of the Print Condition Object. The object will be formatted after the Print
Condition Object and will overflow to subsequent pages, if necessary.
* For repeating frames, the print condition type property refers to every logical page of
every instance (record) of the repeating frame. If you specify a Print Condition Type
setting of All and a Print Condition Object setting of Enclosing Object for a field F_1, it
prints in every instance of repeating frame R_1 on every logical page. If you specify a
Print Condition Type setting of All but First in the above case , then the field will be
printed only in those cases where a single instance (row or record) of the repeating
frame spans across more than one page (which is normally not the case since many
records are there in a single logical page and not one record in many pages). In such a
case the field will be printed on all subsequent pages of this instance except the first
page.
45. What are the various values of the 'Print Condition Object' property in
Reports ?
* The various values are :
Anchoring Object : Anchoring Object is the parent object to which the current object is
implicitly or explicitly anchored.
Enclosing Object : Enclosing Object is the object that encloses the current object.
47. What are the various values of the horizontal of vertical sizing property ?
* The various values are :
Contract : Contract means the vertical size of the object decreases, if the formatted
objects or data within it are short enough, but it cannot increase to a height greater than
that shown in the editor. Note : Truncation of data may occur. (You can think of this
option as meaning "only contract, do not expand.")
Expand : Expand means the vertical size of the object increases, if the formatted objects
or data within it are tall enough, but it cannot decrease to a height less than that shown
in the editor. (You can think of this option as meaning "only expand, do not contract.")
Fixed : Fixed means the height of the object is the same on each logical page,
regardless of the size of the objects or data within it. Note : Truncation of data may
occur. The height of the object is defined to be its height in the editor.
Variable : Variable means the object may expand or contract vertically to accommodate
the objects or data within it (with no extra space), which means the height shown in the
editor has no effect on the object's height at runtime.
51. How do you display a message in reports ?
* SRW.Message
54. What are the various values of 'Print Panel Order' property of report ?
* The various values are :
Across/Down : Across/Down means the physical pages of the report body will print left-
to-right then top-to-bottom.
Down/Across : Down/Across means the physical pages of the report body will print top-
to-bottom and then left-to-right.
56. What are the various values of the 'Print Direction' Property of Repeating frames ?
* The various values are :
Across : Across means that each instance of the repeating frame subsequent to the first
instance is printed to the right of the previous instance across the logical page.
Down : Down means that each instance of the repeating frame subsequent to the first
instance is printed below the previous instance down the logical page.
Header : The report header pages appear once at the beginning of each report on a set
of separate pages. They can contain text, graphics, data, and computations.
Body/Margin : The body/margin pages appear between the header and trailer pages,
and are the bulk of the report. Each physical page in this section consists of a body and
a margin. The body contains the majority of the report's text, graphics, data, and
computations.
A top and bottom margin appear on each page, until all data within the body has been
formatted. A margin may include text, graphics, page numbers, page totals, and grand
totals. The default margin size is one half inch each for the top and bottom margins and
zero for the left and right margins.
Trailer : The report trailer pages appear once at the end of each report on a set of
separate pages. They can contain text, graphics, data, and computations.
-Question: How many types of columns are there and what are they?
Formula columns: For doing mathematical calculations and returning one value
Place holder Columns: These columns are useful for storing the value in a variable
Answer: It is possible to have more than one layout in a report by using the additional layout option in
the layout editor. Yes it is possible to run the report without parameter form by setting the PARAM
value to Null
Answer: By using the lock option we cannot move the fields in the layout editor outside the frame. This
is useful for maintaining the fields.
Answer: Flex is the property of moving the related fields together by setting the flex property on
Answer: First the before parameter trigger will raise, after firing this trigger parameter form will
displayed, after passing parameter after parameter trigger will fire query will parsed & then before
report trigger will fired then if there are number of pages in your report then the between pages trigger
will fired but it will fire between first & second & so on pages but it will not fired in reverse condition the
after report trigger will fire after closing the run time parameter form is closed.
Answer: Bind variables are used in report 6i for replacing the single parameter in the select statement
Answer: Lexical Parameter is used to replace the where, order by ………conditions at run time.
Answer: There are three types of columns in the report 6i these are:
2) Formula Column
3) Summary Column
Question: What is the minimum number of groups required for a matrix report?
Q. How do you write the report output to Excel file or text file?
Q. The total printed at the bottom of first page has to be carried to the top of the next page. How do u
do this technically?
Q. How can you grey out/ highlight/hide some records based on conditions in a report?
Q. while creating XML reoprt,which one is mandatory either Data Definition or Template creation? and
why?
Q. What is the diff. between normal report and XML report? give me atleast 4 differences?
A: The total printed at the bottom of first page has to be carried to the top of the next page.
Q. How many minimum fields are require to develop the Matrix, Matrix with Group Reports?
Q. How can we display header information for every page while developing XML report?
Q. What is Report Busting?
Q. Report is not displaying data present in database, what could be the reason?
Q. why we use incompatability option in concurant program window? Explian with an example in real
time.
Q. If we have two data models then how many frames we need to design?
Q. What is the difference between "AFTER PARAMETER FORM" trigger and "BEFORE REPORT" trigger?