1. what are the physical database components
2. what are the logical database components
3. what is row chaining
4. what is the relation between oracle data block ,extents and segments
5. how many types of segments are there
6. what is temporary segments
7. what is redo log
8. what is the difference between rollback segments and redo log files
9. what is the difference between database buffers and redo log buffer of SGA
10.
1) How delete duplicate records in a table
delete from emp where rowid not in (select max(rowid) from emp group by empno);
2) How to make a column into not null column.
Ans: alter table emp
modify (empno not null); ->this can be done only when all the values in empno are non null (i.e not empty)
'h To make a not null column into null column
alter table emp
modify (empno null);
The fallowing are the rules for
i. adding null or not null property
>You may change a column's null property to not null only when that field does contain null values(i. It can't be empty)
>At any time you may change a column's not null property to null
ii. adding a colum to a table
>You may add a column at any time if NOT NULL isn't specified (i.e when new column can accept null values )
>You may add a NOT NULL column in three steps.
a. Add the column without NOT NULL specified.
b. Fill every row in that column with data.
c. Modify the column to be NOT NULL.
iii. modifying a column
>You can increase a CHAR column's width at any time.
>You can increase the number of digits and the number of decimal places in a NUMBER column at any time
>To CHANGE data types or to DECREASE column's width the column should be null for every row
3)Write queries for the fallowing
ex. select * from emp_self;
EMP_NO EMPN_NAME SAL MGR DEPTID
--------- -------------------- ---------- ---------- ----------
400 jane 20000 110 20
102 Mary 19000 110 20
101 charles 8000 105 50
104 Linda 9000 100 10
110 john 25000 105 20
105 newton 2000 50
100 ALEN 15000 105 50
200 BORIS 3000 110 20
103 DAVID 10000 100 10
300 monica 7000 105 50
i) Query to get the employees who are working under mgr with salary > 10000
select emp_no,mgr from emp_self where mgr in (select emp_no from emp_self where sal > 10000);
ii) Query to get the employees who are getting salaries more than their managers
select a.emp_no from emp_self a,emp_self b where a.mgr =b.emp_no and a.sal > b.sal;
EMP_NO
-------
101
100
110
300
iii) Query to find the nth highest salary
select a.empn_name,a.sal from emp_self a where &n = (select count(*) from emp_self b where a.sal < b.sal);
When n=1 , sal =20000 ->second highest salary ; n=4 , sal =10000 ->fifth highest salary ;
iv) Query to find the second highest salary in different departments.
select a.deptid,min(a. sal) from emp_self a where 1 in (select count(*) from emp_self b
where a.sal < b.sal group by b.deptid) group by a.deptid;
DEPTID MIN(A.SAL)
------- ----------
10 9000
20 20000
50 8000
v) Query to find departments with total salary >25000
select deptid from emp_self having sum(sal) >25000 group by deptid;
DEPTID
------
20
50
4) study the fallowing pl/sql block and find the type of error ->syntax,semantic(logical) or precedence
begin
for i in 1..5 loop
update emp
set sal = 1000 where empno =100 ;
end loop;
end;
5) Difference between (MAX,MIN) and (GREATEST ,LEAST)
The functions max and min compares different rows . Whereas greatest and least work on a group of columns ,either actual or calculated values within a single row.
Ex. select * from emp_self;
EMP_NO EMPN_NAME SAL MGR
------ -------------------- ------- ----------
100 alen 9,000 105
200 boris 10,000 110
101 charles 8,000 105
SQL> select max(sal),min(sal) from emp_self;
MAX(SAL) MIN(SAL)
---------- ----------
10000 8000
SQL> select greatest(sal),least(sal) from emp_self;
GREATEST(SAL) LEAST(SAL)
------------- ----------
9000 9000
10000 10000
8000 8000
6)Different kinds of constraints .
6)Where Procedures,Functions and Triggers are stored ?.
7)What are the improtant differences between Procedures,Functions and Triggers ?.
8)Can we call a Procedure from a Trigger ?.
9)what are packages ?.
9)What are the different kinds of parameters ?.
10)Can we return a OUT parameter from a procedure ?.
11)Differences between ROWNUM and ROWID .
12)How do you handle exceptions ?.
12)How many system defined exceptions are there ?.
13)How do you write user defined message for all the system defined exceptions.
14)Difference between Commit and H(?)ost .
15)Differences between delete ,truncate and drop commands .
16) How do you display messages in the backend procedure ?.
17) why can't you use create/drop while declaring a trigger ?.
18)Advantages of union over joins .
19)Definitions of commit, rollback, save point
20)Difference between truncate and delete (truncate =delete + commit)
1)Name the five global report triggers
i. before report
ii. after report
iii. between pages
iv. before parameter form
v.after parameter form
As a general rule, any processing that will affect the data retrieved by the report should be performed in the Before Parameter Form or After Parameter Form triggers. (These are the two report triggers that fire before anything is parsed or fetched.) Any processing that will not affect the data retrieved by the report can be performed in the other triggers.
Report Builder has five global report triggers. You cannot create new global report triggers. The trigger names indicate at what point the trigger fires:
Before Report Fires before the report is executed but after queries are parsed.
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 Office 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.
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. 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.
Before Parameter 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. If the Runtime Parameter Form is suppressed, this trigger still fires. Consequently, you can use this trigger for validation of command line parameters.
After Parameter 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. If the Runtime Parameter Form is suppressed, the After Parameter Form trigger still fires. Consequently, you can use this trigger for validation of command line parameters or other data.
2) Name the different types of alerts
note , stop ,caution
3)call_form ( ), new_form ( )
call_form ( ) :-Runs an indicated form while keeping the parent form active. Form Builder runs the called form with the same Runform preferences as the parent form. When the called form is exited Form Builder processing resumes in the calling form at the point from which you initiated the call to CALL_FORM.
PROCEDURE CALL_FORM
(formmodule_name VARCHAR2);
New_form( ) :-
Exits the current form and enters the indicated form. The calling form is terminated as the parent form. If the calling form had been called by a higher form, Form Builder keeps the higher call active and treats it as a call to the new form. Form Builder releases memory (such as database cursors) that the terminated form was using.
Form Builder runs the new form with the same Runform options as the parent form. If the parent form was a called form, Form Builder runs the new form with the same options as the parent form.
PROCEDURE NEW_FORM
(formmodule_name VARCHAR2);
4) system.mode->
SYSTEM.MODE indicates whether the form is in Normal, Enter Query, or Fetch Processing mode. The value is always a character string.
NORMAL Indicates that the form is currently in normal processing mode.
ENTER-QUERY Indicates that the form is currently in Enter Query mode.
QUERY Indicates that the form is currently in fetch processing mode, meaning that a query is currently being processed.
Usage Notes
When using SYSTEM.MODE to check whether the current block is in Enter Query mode, be aware that if testing from a When-Button-Pressed trigger in a control block, Enter Query mode will never be entered, because the control block is not the current block.
4)What are important new(Advanced) features of Forms 6.0.
5)Different types of list boxes.
6)What are record groups ?.
7)In case of a block with multiple records how to display records on the screen without using cursors ?.
8)Can we access a row in the first block from second by referencing block name along with the rowid ?.
9)In case of a block with multiple records how do check where a user entering a duplicate record well before saving it ?.
10)How to take care of concurrency ?.
9.0 Forms 4.5
9.1 Object Groups
1. What is an object group ?
An object group is a container for a group of obects. You define an object group when you want to package related objects, so that you can copy or reference them in another module.
2. What are the different objects that you cannot copy or
reference in object groups ?
Objects of different modules
Another Objects group
Individual block depndent objects
Program Units.
9.2 Canvas Views
3. What are different types of canvas views ?
There are four types of canvas views :
Content canvas views
Stacked canvas views
Horizontal tool bar
Vertical tool bar
4. Explain about Content Canvas Views
Most canvas views are Content-Canvas Views. It is the base view that occupies the entire content pane of the window in which it is displayed.
5. Explain about Stacked Canvas Views ?
A stacked canvas view is displayed in a window on top of, or "stacked" on the content canvas view assigned to that same window. Stacked canvas view obscure some part of the underlying content-canvas view, and are often shown and hidden programmatically.
6. Explain about Horizontal/Vertical toolbar Canvas-Views ?
Toolbar canvas-views are used to create toolbar for individual windows. Horizontal toolbars are displayed at the top a window, just under the menubar. Vertical toolbars are displayed along the leftside of a window.
7. Name the functions used to get/set the canvas properties ?
get_view_property, set_view_property.
9.3 Windows
8. What is the relation between windows and Canvas Views ?
Canvas-Views are the background objects on which you place the interface items(text items, check boxes, radio groups etc.,) and boilerplate objects(boxes,lines,images, etc.,) that operators interact with as they run your form. Each canvas-view is displayed in a window.
9. What are the Different Modals of Windows ?
There are Two different modals of Windows are
Modeless Windows
Modal Windows
10. What are Modeless Windows ?
More than one modeless windows can be displayed at the same time, and operators can navigate among them if your application allows them to do so. On most GUI platforms, modeless windows can also be layered to appear either in front of or behind other windows.
11. What are Modal Windows ?
Modal windows are usually used as dialogs, and have restricted funtionality compared to modeless windows. On some platforms,for example, operators cannot resize, scroll, or iconify a modal window.
12. How do you display console on a window ?
The console includes the status line and message line, and is displayed at the bottom of the window to which it is assigned.
To specify that the console should be displayed, set the console window form property to the name of any window in the form, To hide the console, set the console window to <Null>
13. What is the Remove on Exit property ?
For a modeless window, it determines whether Oracle Forms hides the window automatically, when the operator navigates to an item in another window.
14. How many windows in a form can have Console ?
Only one window in a form can display the console, and you cannot change the console assignment at runtime.
15. Can you have more than one content canvas view attached
with a window?
Yes. Each window you create must have at least one content canvas-view assigned to it. You can also create a window that has multiple content canvas-views. At runtime, only one of the content canvas-views assigned to a window is displayed at a time.
16. What are the different Window Events activated at Runtime ?
When-Window-Activated
When-Window_Closed
When-Window_Deactivated
When_Window_Resized
Within these triggers, you can examine the build-in system variable SYSTEM.EVENT_WINDOW to determine the name of the window for which the trigger fired
9.4 Modules
17. What are the different types of Modules available in Oracle
Forms ?
There are three types of modules in Oralcle Forms :
Form Module - A collection of objects and code routines
Menu Module - A collection of Menus( a main menu and any number of submenu objects) and menu item commands that together make up an application menu.
Library Module - A collection of user-named procedures,functions, and packages that can be called from other modules in the application.
18. What are the default extensions of the files created by Forms
Module ?
.FMB Form Module Binary
.FMX Form Module Executable
19. What are the default extensions of the files created by Menu
Module ?
.MMB Menu Module Binary
.MMX Menu Module Executable
20. What are the default extensions of the files created by
Library Module ?
.PLL PL/SQL Library Module Binary
9.5 Master - Detail
21. What is Master Detail Relationship ?
A Master-detail relationship is an association between two base table blocks - a master block and a detail block. The relationship between the blocks reflects a primary key to foreign key relationship between the tables on which the blocks are based.
22. What is coordination Event?
Any event that makes a different record in themaster block the current record is a coordination-causing event.
23. What are the two phases of block coordination?
There are two phases of block coordination; the clear phase and the population phase. During the clear phase, Oracle forms navigates internally to the detail block and flushes the obsolete detail records. During the population phase, oracle forms issues a SELECT statement to repopulate the details block with the detail records associated with the new master record. These operations are accomblished through the execution og triggers.
24. what are most common types of complex master_detail
relationship?
There are three most common types of complex master-detail relationships:
master with dependent details
master with independent details
detail with two masters
25. What arethe different types of Delete details we can establish
in Master-Details?
Cascade
Isolate
Non-Isolate
26. What are the different default triggers created when Master
Deletes Property is set to Non-isolated?
Master Deletes Property Resulting Triggers
Non-Isolated (the default) On-Check-Delete-Master
On-Clear-Details
On-Populate-Details
27. What are the different default triggers created when Master
Deletes Property is set to Cascade?
Master Deletes Property Resulting Triggers
Cascading On-Clear-Details
On-Populate-Details
Pre-Delete
28. What are the different default triggers created when Master
Deletes Property is set to Isolated?
Master Deletes Property Resulting Triggers
Isolated On-Clear-Details
On-Populate-Details
29. What are the Coordination properties ina master detai
relationship?
The coordinatio in properties are
Deferred
Auto-Query
These properties determine when the population phase of block coordination should occur.
30. What are the different types of coordinations of the Master
with the Detail block?
Coordination of the detail block with its master can be
Immediate
Deferred with Auto-Query
Deferred with the no Auto-Query
31. what is the immediate coordination of the Master with the
Detail block?
Immediate(Deferred False, Auto-Querry False) The default settings.
When a coordination-causing event occurs, the detail records are fetched immediately.
32. What is the deferred with Auto-Quey Coordination of the
Master with the Detail block?
Deferred with Auto-Query(Deferred True,Auto-Query true) When a Coordination-causing events occurs,Oracle Forms defers fetching the associated detail records until the operator navigates to the detail block.
33 . What is the Deferred with no Auto-Query Coordination of
the Master with the Detail block?
Deferred with Auto-Query(Deferred True,Auto-Query False) When a Coordination-causing events occurs,Oracle Forms doesn't automatically fetch the detail records the operator must navigate to the detail block and explicitly execute a query.
34. What is an Alert?
An Alert is a modal Window that displays a message notifying the operator of some application condition.
35. When do you use Alert?
Use alerts to advise operators of unusual situations or to warn operators who are about to perform an action that might have undesirable or unexpected consequences.
36 . what are the different display styles of alert?
Find_alert
Show_alert
37 . How do you change the alert message during runtime?
You can change an alert message at run time by executing the SET_ALERT_PROPERTY built-in procedure. Changing an alert's message allows you to reuse the same alert object, but display a different message each time it is invoked.
Example
Set_Alert_Property(alert_id,ALERT_MESSAGE_TEXT,"The product you selected is not in stock");
Editors
38 . What are the different types of editors?
There are three editors that can be used at run time the default editor, a system editor,or a
user-named editor.
39 . What is the default editor?
The default editor provides standard editing features,including search/replace and cut,copy and paste. The default editor is built into every form and is automatically available from every
text item.
40. What is the System Editor?
If there is a system editor available, you can specify that Oracle Forms should use the current system editor, rather than the default editor.
41 . What is the User named Editor?
A User named Editor has the same text editing functionality has the default editor, but, because it is a named object,you can specify editor attributes such as window display size,position,and title.
42 . What are the built-ins to display the user-named editor?
A User-named editor can be displayed programatically with built in procedure SHOW_EDITOR,EDIT_TEXTITEM independent of any particular text item.
43 . What is the difference between SHOW_EDITOR and
EDIT_TEXTITEM?
Show_Editor is the generic built-in which accepts any editor name and takes some input string and returns modified output string. whereas the edit_textitem built_in needs the input focus to be in the textitem before the built_in is executed.
LOV(List Of Values)
44. What is an LOV?
An LOV is a scrollable popup window that provides the operator with either a single or multi-column selection list.
45. What is the basic data structure that is required for creating
an LOV?
Record Group
46. What is the "LOV for validation" Property of an item? What is
the use of it?
When LOV for validation is set to true, Oracle Forms compares the current value of the text item to the values in the first column displayed in the LOV whenever the validation event occurs.
If the value in the text item matches one of the values in the first column of the LOV, Validation succeeds ,The LOV is not displayed, the processing continues normally.
If the value in the text item doesn��t match one of the values in the first column of the LOV,Oracle Forms displays the LOV and uses the text item value as the search criteria to automatically reduce the list.
47. What are the built-ins used to display the LOV?
Show_lov
list_values
47. What are the built-ins that are used to attach an LOV
programatically to an item?
Set_item_property
Get_item_property
(by setting the LOV_NAMEproperty)
48. What are the built-ins that are used for setting the LOV
properties at runtime?
get_lov_property
set_lov_property
Record Groups
49. What is the Record Group?
A record group is an internal Oracle Forms data structure that has a column/row framework similar to a database table. However, unlike database tables,record groups are separate objects that bekong to the form module in which they are defined.
50. How many number of columns a record group can have?
A record group can have an ultimate number of columns of type CHAR,LONG,NUMBER, and DATE provided that the total number of columns does not exceed 64k.
51 . What is the maximum allowed length of a Record Group
Column?
Record group column names cannot exceed 30 characters.
52. What are the different types of Record Group?
Query Record Groups
NonQuery Record Groups
Static Record Groups
53. What is a Query Record Group?
A Query record is a record group that has an associated SELECTstatement. The columns in a query record group derive their default names,datatypes and lengths from the database columns referenced in the SELECT statement. The records in a query record group are the rows retreived by the query associated with that record group.
54 . What is a Non Query Record Group?
A non-query record group is a group that does not have an associated query,but whose structures can be modified programatically at runtime.
55. What is a Static Record Group?
A Static record group is not associated with a query,rather, you define its structure and row values at design time, and they remain fixed at runtime.
56 . What are the built-ins used for creating and deleting
groups?
CREATE_GROUP(function)
CREATE_GROUP_FROM_QUERY(function)
DELETE_GROUP(Procedure)
57. What are the built-ins used for modifying a group structure?
ADD_GROUP_COLUMN(function)
ADD_GROUP_ROW(Procedure)
DELETE_GROUP_ROW(Procedure)
POPULATE_GROUP(function)
POPULATE_GROUP_WITH_QUERY(function)
SET_GROUP_CHAR_CELL(Procedure)
SET_GROUP_DATE_CELL(Procedure)
SET_GROUP_NUMBER_CELL(Procedure)
58 . What are the built-ins used for getting cell values?
GET_GROUP_CHAR_CELL(function)
GET_GROUP_DATE_CELL(function)
GET_GROUP_NUMBER_CELL(function)
59 . What are the built-ins used for processing rows?
GET_GROUP_ROW_COUNT(function)
GET_GROUP_SELECTION(function)
GET_GROUP_SELECTION(function)
RESET_GROUP_SELECTION(Procedure)
SET_GROUP_SELECTION(Procedure)
UNSET_GROUP_SELECTION(Procedure)
60. What are the built-ins used for finding Object ID functions?
FIND_GROUP(function)
FIND_COLUMN(function)
61. Use the ADD_GROUP_COLUMN function to add a column to
a record group that was created at design time
(1) True (2) False.
False
62. Use the Add_Group_row procedure to add a row to a static
record group.(1)True (2) False
False
PARAMETERS
63. What are the Parameters?
Parameters provide a simple mechanism for defining and setting the values of inputs that are required by a form at startup. Form parameters are variables of type CHAR,NUMBER, or
DATE that you define at design time.
64 . What are the Built-ins used for sending Parameters to
forms?
You can pass parameter values to a form when an application executes the CALL_FORM,NEW_FORM,OPEN_FORM,or RUN_PRODUCT.
65 . What is the maximum number of characters the parameter
can store?
The maximum number of characters the parameter can store is only valid for CHAR parameters, which can be up to 64k. Number parameters default to 23 bytes and DATE parameters default to 7 bytes.
66 . How do you call other ORACLE products from Oracle
Forms?
RUN_PRODUCT is a built-in used to invoke one of the supported Oracle tools products and specifies the name of the document or module to be run. If the called product is unavailable at the time of calkl, Oracle Forms returns a message to the operator.
67. How do you reference a Parameter?
In PL/SQL, you can reference and set the values of form parameters using bind variable syntax.
Example
:PARAMETER.parameter_name="VIKRAM"; or
:block.item=PARAMETER.parameter_name;
68 . How do you reference a parameter indirectly?
To indirectly reference a parameter
Use the NAME_IN and COPY built-ins to indirectly set and reference the parameter's value.
Example:
Name_In("PARAMETER.my_param")
Copy("SURESH","PARAMETER>my_param")
69 . What are the difference Parameter Types?
Text Parameters
Data Parameters
70 . When do you use DATA_PARAMETER type?
When the value of a data parameter being passed to a called product is always the name of a record group defined in the current form. Data paremeters are used to pass data to products invoked with the RUN_PRODUCT built-in subprogram.
71 . Can you pass data parameters to forms?
No.
Images
72. What are the different types of images?
BoilerPlate Images
Image Items
73 . What is the difference between Boilerplate images and
image items?
Boilerplate Images BoilerPlate images are static images(either vector or bitmap) that you import from the file system or database to use as graphical elements in your form, such as company logos and maps.
Image ItemsImage items are special types of interfaace controls that store and display either vector or bitmaps images. Like other items that store values, image items can be either base table items (items that relate directly to database columns) or control items. The definiton of an image item is storred as part of the form module. .FMB and .FMX files, but no image file is actually assciated with an image item until the item is populated at runtime.
74 . What are the triggers associated with the image items?
The Following triggers are available for responding programatically to image items events
When-Image-Activated
First when the operator double-clicks on a image item
When-Image_Pressed
Fires when an operator clicks or double-clicks on an image item
75. What is the use of IMAGE_ZOOM built_in?
You can use the IMAGE_ZOOM built-in subprogram to manipulate images in image items.
Working with Multiple Forms
76. How do you create a new session while opening a new form?
Using OPEN_FORM built-in setting the SESSION option.
Ex: OPEN_FORM("STOCKS",ACTIVE,SESSION);
When you invoke multiple forms with OPEN_FORM and CALL_FORM in the
Same application,state whether the following are TRUE or FALSE
77 . Any attempt to navigate programatically to a disabled form
in a call form stack is allowed
FALSE
78 . An open form cannot execute the CALL_FORM procedure if
a chain of called forms has been initiated by another open
form
TRUE
79. When a form is invoked with CALL_FORM, does Oracle
Forms issues a savepoint? TRUE/FALSE
TRUE
80. What are the various subevents a mouse double click event
invokes?
Double_clicking the mouse consists of the mouse down,mouse up,mouse click,mouse down and mouse up events.
81 . State any three mouse event System Variables?
SYSTEM.MOUSE_BUTTON_PRESSED
SYSTEM.MOUSE_BUTTON_SHIFT_STATE
SYSTEM.MOUSE_ITEM
SYSTEM.MOUSE_CANVAS
SYSTEM.MOUSE_RECORD
OLE
82. What is an OLE?
Object Linking and Embedding (OLE) provides you with the capability to integrate objectrs from many MS Windows applications into a single compound document. Creating integrated applications enables you to use the features from several MS Windows application.
83. What is the difference between Object Embedding and
Linking in Oracle Forms?
An Ole server applications creates OLE objects that are embedded or linked in OLE containers. Examples of OLE servers are MS Word and MS Excel. OLE containers provide a place to store,display and manipulate objects that are created by OLE server applications.
Example: Oracle Forms is an example of an OLE container
84. What are the different styles of Activation of OLE objects?
In-place Activation
External Activation
Visual Attributes And Property Classes
85. What are Visual attributes?
Visual attributes are the font,color and pattern properties that you set for form and menu objects that appear in your application's interface.
86. What is a Property Class?
A Property class is a named object that contains a list of properties and their settings. Once you create a property class you can base other objects on it. An object based on a property class inherit the setting of any property in the class that makes sense for that object.
87 . Can a Property class itself be based on a property class?
Yes
88 . What are the Important differences between property
classes and visual attributes?
The important differences betweeen property classes and visual attributes are Named Visual attributes define only font.color and pattern attributes ; property classes can contain these and any other properties.
You can change the appearance of objects at runtime by changing the named visual attribute programmatically; Property class assignment cannot be changed programmatically
When an object is inheriting from both a property class and a named visual attribute, the named visual attribute settings settings take precedence, and any visual attribute properties in the class are ignored.
Forms Built-ins
89. What is a TEXT_IO package?
The Text_IO package allows you to read and write information to a file in the file system.
90. What is an USER_EXIT?
Calls the user exit named in the user_exit_string invokes a 3GL program by name which has been properly linked into your current Oracle Forms executable.
91. What is SYNCHRONIZE?
Synchronizes the terminal screen with the internal state of the form. That is SYNCHRONIZE updates the screen display to reflect the information that Oracle Forms has in its internal representation of the screen.
Triggers
92. What is WHEN-DATABASE-RECORDN Trigger?
Fires when Oracle Forms first marks a record as an insert or an update. That is, the trigger fires as soon as Oracle Forms Determines through validation that the record should be processed by the next post or commit as an insert or update. This generally occurs only when the operator modifies the first item in a record, and after the operator attempts to navigate out of the item.
93. What are Master_Detail Triggers?
ON_CHECK_DELETE_MASTER
ON_CLEAR_DETAILS
ON_POPULATE_DETAILS
System Variables
94. What is the difference between $$DATE$$ and
$$DBDATE$$?
$$$$DBDATE$$ retrieves the current database date
DBDATE$$ retrieves the current operating system date.
95. What is SYSTEM.COORDINATION_OPERATION?
SYSTEM.COORDINATION_OPERATION represents the coordination causing event that occureson the master block in master detail relationship.
Example: System.Cooordination_Operation=
Miscelleneous
96. What are the differences between LOV and List item?
LOV is a Property whereas List item is an item.
A List item can have only one column whereas an LOV can have one or more columns.
97. What are the different display styles of List item?
Poplist
Text list
Combo box.
98 . What is a Poplist?
The poplist style list item appears initially as a single field(similar to a text item field. When The operator selects the list icon, a list of available choices appears.
99 . What is a Text list?
The text list style item appears as a rectangular box which displays a fixed number of values. When the text list contains values that cannot be displayed(due to the display area of the item), a vertical scroll bar appears, allowing the operator to view and select undisplayed values.
100. What is a Combo Box?
The Combo Box style list item combines the features found in list and text items. Unlike the poplist or the text list style list items, the combo box style list item will both display fixed values and accept one operator-entered values.
101. What are Display items?
Display items are similar to text items with the exception that displays items only store and display fetched or assigned values. Display items are generally used asa boilerplate or as conditional text.
102. What is the difference between OPEN_FORM AND
CALL_FORM?
when one form invokes another form by executing OPEN_FORM, the first form remains displayed, and operators can navigate between the forms as desires.
When one form invokes another form by executing CALL_FORM, the called form is modal with respect to the calling form. That is, any windowa that belong to the calling form are disabled and operators cannot navigate to them until they first exit the called form.
103. What is NEW_FORM built-in?
When one form invokes another form by executing New_form, Oracle Forms exists the first form and releases its memeory before loading the new form. Calling NEW_FORM completely replaces the first form with the second. If there are changes pending in the first form, the operator will be prompted to save them before the new form is loaded.
104. what is a Library?
A library is a collection of subprograms, including user- named procedures,functions and packages.
105. What are the advantages of libraries?
Libraries provide a convenient means of storing client-side program units and sharing them among multiple applications.
Once you create a library,you can attach it to any other form,menu or library ,module.
Then, you can call library units from triggers, menu item commands and user-named routines you write in the modules to which modules to which you have attached the library.
When a library attaches another library,program units in the first library can reference program units in the attached library.
Libraries support dynamic loading-that is, a library's program units are loaded into an application only when needed. This can significantly reduce the runtime memory requirements of an application.
106. What is a STRIP_SOURCE generate option?
Removes the source code from the library file and generates a library file that contains only pcode.
The resulting file can be used for final deployment, but cannot be subsequently edited in the designer.
Example:f45gen module=old_lib.pll userid=scott/tiger
Strip_source=YES output_file=<new_file_name>
107. What are VBX controls?
VBX controls provide a simple method of building and enhancing user interfaces. The controls can be used to obtain user input and display program output. The controls can be used to obtain user input and display program output. VBX controls were originally developed as extensions for the MS Visual Basic environment and include such items as sliders,grids and knobs.
108. What is a Timer?
A timer is an "internal time clock" that you programatically create to perform an action each time the timer expires.
109. What are the built-ins associated with timers?
FIND_TIMER
CREATE_TIMER
DELETE_TIMER
110. What is the difference between POST-DATABASE-COMMIT
and POST-FORM-COMMIT?
POST-FORM-COMMIT fires once during the Post and Commit Transactions process, after the database commit occurs. The Post-Forms-Commit trigger fires after inserts, updates and deletes have been posted to the database, but before the transaction has been fibalized by issuing the commit. The Post-Database-Commit Trigger fires after Oracle Forms issues the Commit to finalize the transaction.
111. What is the difference between PRE-SELECT and PRE-
QUERY?
Fires during Execute Query and Count Query processing, after Oracle Forms constructs the SELECT statement to be issued, but before the statement is actually issued.
The Pre-Query trigger fires just before Oracle Forms
issues the SELECT statement to the database, after the operator has defined the example record by entering query criteria in Enter Query Mode.
Pre-Query trigger fires before Pre-Select trigger.
112. What is the trigger associated with the TIMER?
WHEN-TIMER-EXPIRED
113. What is the use of the Transactional Triggers?
Using Transactional triggers we can control or modify the default functionality of the Oracle Forms.
2. what are the logical database components
3. what is row chaining
4. what is the relation between oracle data block ,extents and segments
5. how many types of segments are there
6. what is temporary segments
7. what is redo log
8. what is the difference between rollback segments and redo log files
9. what is the difference between database buffers and redo log buffer of SGA
10.
1) How delete duplicate records in a table
delete from emp where rowid not in (select max(rowid) from emp group by empno);
2) How to make a column into not null column.
Ans: alter table emp
modify (empno not null); ->this can be done only when all the values in empno are non null (i.e not empty)
'h To make a not null column into null column
alter table emp
modify (empno null);
The fallowing are the rules for
i. adding null or not null property
>You may change a column's null property to not null only when that field does contain null values(i. It can't be empty)
>At any time you may change a column's not null property to null
ii. adding a colum to a table
>You may add a column at any time if NOT NULL isn't specified (i.e when new column can accept null values )
>You may add a NOT NULL column in three steps.
a. Add the column without NOT NULL specified.
b. Fill every row in that column with data.
c. Modify the column to be NOT NULL.
iii. modifying a column
>You can increase a CHAR column's width at any time.
>You can increase the number of digits and the number of decimal places in a NUMBER column at any time
>To CHANGE data types or to DECREASE column's width the column should be null for every row
3)Write queries for the fallowing
ex. select * from emp_self;
EMP_NO EMPN_NAME SAL MGR DEPTID
--------- -------------------- ---------- ---------- ----------
400 jane 20000 110 20
102 Mary 19000 110 20
101 charles 8000 105 50
104 Linda 9000 100 10
110 john 25000 105 20
105 newton 2000 50
100 ALEN 15000 105 50
200 BORIS 3000 110 20
103 DAVID 10000 100 10
300 monica 7000 105 50
i) Query to get the employees who are working under mgr with salary > 10000
select emp_no,mgr from emp_self where mgr in (select emp_no from emp_self where sal > 10000);
ii) Query to get the employees who are getting salaries more than their managers
select a.emp_no from emp_self a,emp_self b where a.mgr =b.emp_no and a.sal > b.sal;
EMP_NO
-------
101
100
110
300
iii) Query to find the nth highest salary
select a.empn_name,a.sal from emp_self a where &n = (select count(*) from emp_self b where a.sal < b.sal);
When n=1 , sal =20000 ->second highest salary ; n=4 , sal =10000 ->fifth highest salary ;
iv) Query to find the second highest salary in different departments.
select a.deptid,min(a. sal) from emp_self a where 1 in (select count(*) from emp_self b
where a.sal < b.sal group by b.deptid) group by a.deptid;
DEPTID MIN(A.SAL)
------- ----------
10 9000
20 20000
50 8000
v) Query to find departments with total salary >25000
select deptid from emp_self having sum(sal) >25000 group by deptid;
DEPTID
------
20
50
4) study the fallowing pl/sql block and find the type of error ->syntax,semantic(logical) or precedence
begin
for i in 1..5 loop
update emp
set sal = 1000 where empno =100 ;
end loop;
end;
5) Difference between (MAX,MIN) and (GREATEST ,LEAST)
The functions max and min compares different rows . Whereas greatest and least work on a group of columns ,either actual or calculated values within a single row.
Ex. select * from emp_self;
EMP_NO EMPN_NAME SAL MGR
------ -------------------- ------- ----------
100 alen 9,000 105
200 boris 10,000 110
101 charles 8,000 105
SQL> select max(sal),min(sal) from emp_self;
MAX(SAL) MIN(SAL)
---------- ----------
10000 8000
SQL> select greatest(sal),least(sal) from emp_self;
GREATEST(SAL) LEAST(SAL)
------------- ----------
9000 9000
10000 10000
8000 8000
6)Different kinds of constraints .
6)Where Procedures,Functions and Triggers are stored ?.
7)What are the improtant differences between Procedures,Functions and Triggers ?.
8)Can we call a Procedure from a Trigger ?.
9)what are packages ?.
9)What are the different kinds of parameters ?.
10)Can we return a OUT parameter from a procedure ?.
11)Differences between ROWNUM and ROWID .
12)How do you handle exceptions ?.
12)How many system defined exceptions are there ?.
13)How do you write user defined message for all the system defined exceptions.
14)Difference between Commit and H(?)ost .
15)Differences between delete ,truncate and drop commands .
16) How do you display messages in the backend procedure ?.
17) why can't you use create/drop while declaring a trigger ?.
18)Advantages of union over joins .
19)Definitions of commit, rollback, save point
20)Difference between truncate and delete (truncate =delete + commit)
1)Name the five global report triggers
i. before report
ii. after report
iii. between pages
iv. before parameter form
v.after parameter form
As a general rule, any processing that will affect the data retrieved by the report should be performed in the Before Parameter Form or After Parameter Form triggers. (These are the two report triggers that fire before anything is parsed or fetched.) Any processing that will not affect the data retrieved by the report can be performed in the other triggers.
Report Builder has five global report triggers. You cannot create new global report triggers. The trigger names indicate at what point the trigger fires:
Before Report Fires before the report is executed but after queries are parsed.
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 Office 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.
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. 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.
Before Parameter 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. If the Runtime Parameter Form is suppressed, this trigger still fires. Consequently, you can use this trigger for validation of command line parameters.
After Parameter 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. If the Runtime Parameter Form is suppressed, the After Parameter Form trigger still fires. Consequently, you can use this trigger for validation of command line parameters or other data.
2) Name the different types of alerts
note , stop ,caution
3)call_form ( ), new_form ( )
call_form ( ) :-Runs an indicated form while keeping the parent form active. Form Builder runs the called form with the same Runform preferences as the parent form. When the called form is exited Form Builder processing resumes in the calling form at the point from which you initiated the call to CALL_FORM.
PROCEDURE CALL_FORM
(formmodule_name VARCHAR2);
New_form( ) :-
Exits the current form and enters the indicated form. The calling form is terminated as the parent form. If the calling form had been called by a higher form, Form Builder keeps the higher call active and treats it as a call to the new form. Form Builder releases memory (such as database cursors) that the terminated form was using.
Form Builder runs the new form with the same Runform options as the parent form. If the parent form was a called form, Form Builder runs the new form with the same options as the parent form.
PROCEDURE NEW_FORM
(formmodule_name VARCHAR2);
4) system.mode->
SYSTEM.MODE indicates whether the form is in Normal, Enter Query, or Fetch Processing mode. The value is always a character string.
NORMAL Indicates that the form is currently in normal processing mode.
ENTER-QUERY Indicates that the form is currently in Enter Query mode.
QUERY Indicates that the form is currently in fetch processing mode, meaning that a query is currently being processed.
Usage Notes
When using SYSTEM.MODE to check whether the current block is in Enter Query mode, be aware that if testing from a When-Button-Pressed trigger in a control block, Enter Query mode will never be entered, because the control block is not the current block.
4)What are important new(Advanced) features of Forms 6.0.
5)Different types of list boxes.
6)What are record groups ?.
7)In case of a block with multiple records how to display records on the screen without using cursors ?.
8)Can we access a row in the first block from second by referencing block name along with the rowid ?.
9)In case of a block with multiple records how do check where a user entering a duplicate record well before saving it ?.
10)How to take care of concurrency ?.
9.0 Forms 4.5
9.1 Object Groups
1. What is an object group ?
An object group is a container for a group of obects. You define an object group when you want to package related objects, so that you can copy or reference them in another module.
2. What are the different objects that you cannot copy or
reference in object groups ?
Objects of different modules
Another Objects group
Individual block depndent objects
Program Units.
9.2 Canvas Views
3. What are different types of canvas views ?
There are four types of canvas views :
Content canvas views
Stacked canvas views
Horizontal tool bar
Vertical tool bar
4. Explain about Content Canvas Views
Most canvas views are Content-Canvas Views. It is the base view that occupies the entire content pane of the window in which it is displayed.
5. Explain about Stacked Canvas Views ?
A stacked canvas view is displayed in a window on top of, or "stacked" on the content canvas view assigned to that same window. Stacked canvas view obscure some part of the underlying content-canvas view, and are often shown and hidden programmatically.
6. Explain about Horizontal/Vertical toolbar Canvas-Views ?
Toolbar canvas-views are used to create toolbar for individual windows. Horizontal toolbars are displayed at the top a window, just under the menubar. Vertical toolbars are displayed along the leftside of a window.
7. Name the functions used to get/set the canvas properties ?
get_view_property, set_view_property.
9.3 Windows
8. What is the relation between windows and Canvas Views ?
Canvas-Views are the background objects on which you place the interface items(text items, check boxes, radio groups etc.,) and boilerplate objects(boxes,lines,images, etc.,) that operators interact with as they run your form. Each canvas-view is displayed in a window.
9. What are the Different Modals of Windows ?
There are Two different modals of Windows are
Modeless Windows
Modal Windows
10. What are Modeless Windows ?
More than one modeless windows can be displayed at the same time, and operators can navigate among them if your application allows them to do so. On most GUI platforms, modeless windows can also be layered to appear either in front of or behind other windows.
11. What are Modal Windows ?
Modal windows are usually used as dialogs, and have restricted funtionality compared to modeless windows. On some platforms,for example, operators cannot resize, scroll, or iconify a modal window.
12. How do you display console on a window ?
The console includes the status line and message line, and is displayed at the bottom of the window to which it is assigned.
To specify that the console should be displayed, set the console window form property to the name of any window in the form, To hide the console, set the console window to <Null>
13. What is the Remove on Exit property ?
For a modeless window, it determines whether Oracle Forms hides the window automatically, when the operator navigates to an item in another window.
14. How many windows in a form can have Console ?
Only one window in a form can display the console, and you cannot change the console assignment at runtime.
15. Can you have more than one content canvas view attached
with a window?
Yes. Each window you create must have at least one content canvas-view assigned to it. You can also create a window that has multiple content canvas-views. At runtime, only one of the content canvas-views assigned to a window is displayed at a time.
16. What are the different Window Events activated at Runtime ?
When-Window-Activated
When-Window_Closed
When-Window_Deactivated
When_Window_Resized
Within these triggers, you can examine the build-in system variable SYSTEM.EVENT_WINDOW to determine the name of the window for which the trigger fired
9.4 Modules
17. What are the different types of Modules available in Oracle
Forms ?
There are three types of modules in Oralcle Forms :
Form Module - A collection of objects and code routines
Menu Module - A collection of Menus( a main menu and any number of submenu objects) and menu item commands that together make up an application menu.
Library Module - A collection of user-named procedures,functions, and packages that can be called from other modules in the application.
18. What are the default extensions of the files created by Forms
Module ?
.FMB Form Module Binary
.FMX Form Module Executable
19. What are the default extensions of the files created by Menu
Module ?
.MMB Menu Module Binary
.MMX Menu Module Executable
20. What are the default extensions of the files created by
Library Module ?
.PLL PL/SQL Library Module Binary
9.5 Master - Detail
21. What is Master Detail Relationship ?
A Master-detail relationship is an association between two base table blocks - a master block and a detail block. The relationship between the blocks reflects a primary key to foreign key relationship between the tables on which the blocks are based.
22. What is coordination Event?
Any event that makes a different record in themaster block the current record is a coordination-causing event.
23. What are the two phases of block coordination?
There are two phases of block coordination; the clear phase and the population phase. During the clear phase, Oracle forms navigates internally to the detail block and flushes the obsolete detail records. During the population phase, oracle forms issues a SELECT statement to repopulate the details block with the detail records associated with the new master record. These operations are accomblished through the execution og triggers.
24. what are most common types of complex master_detail
relationship?
There are three most common types of complex master-detail relationships:
master with dependent details
master with independent details
detail with two masters
25. What arethe different types of Delete details we can establish
in Master-Details?
Cascade
Isolate
Non-Isolate
26. What are the different default triggers created when Master
Deletes Property is set to Non-isolated?
Master Deletes Property Resulting Triggers
Non-Isolated (the default) On-Check-Delete-Master
On-Clear-Details
On-Populate-Details
27. What are the different default triggers created when Master
Deletes Property is set to Cascade?
Master Deletes Property Resulting Triggers
Cascading On-Clear-Details
On-Populate-Details
Pre-Delete
28. What are the different default triggers created when Master
Deletes Property is set to Isolated?
Master Deletes Property Resulting Triggers
Isolated On-Clear-Details
On-Populate-Details
29. What are the Coordination properties ina master detai
relationship?
The coordinatio in properties are
Deferred
Auto-Query
These properties determine when the population phase of block coordination should occur.
30. What are the different types of coordinations of the Master
with the Detail block?
Coordination of the detail block with its master can be
Immediate
Deferred with Auto-Query
Deferred with the no Auto-Query
31. what is the immediate coordination of the Master with the
Detail block?
Immediate(Deferred False, Auto-Querry False) The default settings.
When a coordination-causing event occurs, the detail records are fetched immediately.
32. What is the deferred with Auto-Quey Coordination of the
Master with the Detail block?
Deferred with Auto-Query(Deferred True,Auto-Query true) When a Coordination-causing events occurs,Oracle Forms defers fetching the associated detail records until the operator navigates to the detail block.
33 . What is the Deferred with no Auto-Query Coordination of
the Master with the Detail block?
Deferred with Auto-Query(Deferred True,Auto-Query False) When a Coordination-causing events occurs,Oracle Forms doesn't automatically fetch the detail records the operator must navigate to the detail block and explicitly execute a query.
34. What is an Alert?
An Alert is a modal Window that displays a message notifying the operator of some application condition.
35. When do you use Alert?
Use alerts to advise operators of unusual situations or to warn operators who are about to perform an action that might have undesirable or unexpected consequences.
36 . what are the different display styles of alert?
Find_alert
Show_alert
37 . How do you change the alert message during runtime?
You can change an alert message at run time by executing the SET_ALERT_PROPERTY built-in procedure. Changing an alert's message allows you to reuse the same alert object, but display a different message each time it is invoked.
Example
Set_Alert_Property(alert_id,ALERT_MESSAGE_TEXT,"The product you selected is not in stock");
Editors
38 . What are the different types of editors?
There are three editors that can be used at run time the default editor, a system editor,or a
user-named editor.
39 . What is the default editor?
The default editor provides standard editing features,including search/replace and cut,copy and paste. The default editor is built into every form and is automatically available from every
text item.
40. What is the System Editor?
If there is a system editor available, you can specify that Oracle Forms should use the current system editor, rather than the default editor.
41 . What is the User named Editor?
A User named Editor has the same text editing functionality has the default editor, but, because it is a named object,you can specify editor attributes such as window display size,position,and title.
42 . What are the built-ins to display the user-named editor?
A User-named editor can be displayed programatically with built in procedure SHOW_EDITOR,EDIT_TEXTITEM independent of any particular text item.
43 . What is the difference between SHOW_EDITOR and
EDIT_TEXTITEM?
Show_Editor is the generic built-in which accepts any editor name and takes some input string and returns modified output string. whereas the edit_textitem built_in needs the input focus to be in the textitem before the built_in is executed.
LOV(List Of Values)
44. What is an LOV?
An LOV is a scrollable popup window that provides the operator with either a single or multi-column selection list.
45. What is the basic data structure that is required for creating
an LOV?
Record Group
46. What is the "LOV for validation" Property of an item? What is
the use of it?
When LOV for validation is set to true, Oracle Forms compares the current value of the text item to the values in the first column displayed in the LOV whenever the validation event occurs.
If the value in the text item matches one of the values in the first column of the LOV, Validation succeeds ,The LOV is not displayed, the processing continues normally.
If the value in the text item doesn��t match one of the values in the first column of the LOV,Oracle Forms displays the LOV and uses the text item value as the search criteria to automatically reduce the list.
47. What are the built-ins used to display the LOV?
Show_lov
list_values
47. What are the built-ins that are used to attach an LOV
programatically to an item?
Set_item_property
Get_item_property
(by setting the LOV_NAMEproperty)
48. What are the built-ins that are used for setting the LOV
properties at runtime?
get_lov_property
set_lov_property
Record Groups
49. What is the Record Group?
A record group is an internal Oracle Forms data structure that has a column/row framework similar to a database table. However, unlike database tables,record groups are separate objects that bekong to the form module in which they are defined.
50. How many number of columns a record group can have?
A record group can have an ultimate number of columns of type CHAR,LONG,NUMBER, and DATE provided that the total number of columns does not exceed 64k.
51 . What is the maximum allowed length of a Record Group
Column?
Record group column names cannot exceed 30 characters.
52. What are the different types of Record Group?
Query Record Groups
NonQuery Record Groups
Static Record Groups
53. What is a Query Record Group?
A Query record is a record group that has an associated SELECTstatement. The columns in a query record group derive their default names,datatypes and lengths from the database columns referenced in the SELECT statement. The records in a query record group are the rows retreived by the query associated with that record group.
54 . What is a Non Query Record Group?
A non-query record group is a group that does not have an associated query,but whose structures can be modified programatically at runtime.
55. What is a Static Record Group?
A Static record group is not associated with a query,rather, you define its structure and row values at design time, and they remain fixed at runtime.
56 . What are the built-ins used for creating and deleting
groups?
CREATE_GROUP(function)
CREATE_GROUP_FROM_QUERY(function)
DELETE_GROUP(Procedure)
57. What are the built-ins used for modifying a group structure?
ADD_GROUP_COLUMN(function)
ADD_GROUP_ROW(Procedure)
DELETE_GROUP_ROW(Procedure)
POPULATE_GROUP(function)
POPULATE_GROUP_WITH_QUERY(function)
SET_GROUP_CHAR_CELL(Procedure)
SET_GROUP_DATE_CELL(Procedure)
SET_GROUP_NUMBER_CELL(Procedure)
58 . What are the built-ins used for getting cell values?
GET_GROUP_CHAR_CELL(function)
GET_GROUP_DATE_CELL(function)
GET_GROUP_NUMBER_CELL(function)
59 . What are the built-ins used for processing rows?
GET_GROUP_ROW_COUNT(function)
GET_GROUP_SELECTION(function)
GET_GROUP_SELECTION(function)
RESET_GROUP_SELECTION(Procedure)
SET_GROUP_SELECTION(Procedure)
UNSET_GROUP_SELECTION(Procedure)
60. What are the built-ins used for finding Object ID functions?
FIND_GROUP(function)
FIND_COLUMN(function)
61. Use the ADD_GROUP_COLUMN function to add a column to
a record group that was created at design time
(1) True (2) False.
False
62. Use the Add_Group_row procedure to add a row to a static
record group.(1)True (2) False
False
PARAMETERS
63. What are the Parameters?
Parameters provide a simple mechanism for defining and setting the values of inputs that are required by a form at startup. Form parameters are variables of type CHAR,NUMBER, or
DATE that you define at design time.
64 . What are the Built-ins used for sending Parameters to
forms?
You can pass parameter values to a form when an application executes the CALL_FORM,NEW_FORM,OPEN_FORM,or RUN_PRODUCT.
65 . What is the maximum number of characters the parameter
can store?
The maximum number of characters the parameter can store is only valid for CHAR parameters, which can be up to 64k. Number parameters default to 23 bytes and DATE parameters default to 7 bytes.
66 . How do you call other ORACLE products from Oracle
Forms?
RUN_PRODUCT is a built-in used to invoke one of the supported Oracle tools products and specifies the name of the document or module to be run. If the called product is unavailable at the time of calkl, Oracle Forms returns a message to the operator.
67. How do you reference a Parameter?
In PL/SQL, you can reference and set the values of form parameters using bind variable syntax.
Example
:PARAMETER.parameter_name="VIKRAM"; or
:block.item=PARAMETER.parameter_name;
68 . How do you reference a parameter indirectly?
To indirectly reference a parameter
Use the NAME_IN and COPY built-ins to indirectly set and reference the parameter's value.
Example:
Name_In("PARAMETER.my_param")
Copy("SURESH","PARAMETER>my_param")
69 . What are the difference Parameter Types?
Text Parameters
Data Parameters
70 . When do you use DATA_PARAMETER type?
When the value of a data parameter being passed to a called product is always the name of a record group defined in the current form. Data paremeters are used to pass data to products invoked with the RUN_PRODUCT built-in subprogram.
71 . Can you pass data parameters to forms?
No.
Images
72. What are the different types of images?
BoilerPlate Images
Image Items
73 . What is the difference between Boilerplate images and
image items?
Boilerplate Images BoilerPlate images are static images(either vector or bitmap) that you import from the file system or database to use as graphical elements in your form, such as company logos and maps.
Image ItemsImage items are special types of interfaace controls that store and display either vector or bitmaps images. Like other items that store values, image items can be either base table items (items that relate directly to database columns) or control items. The definiton of an image item is storred as part of the form module. .FMB and .FMX files, but no image file is actually assciated with an image item until the item is populated at runtime.
74 . What are the triggers associated with the image items?
The Following triggers are available for responding programatically to image items events
When-Image-Activated
First when the operator double-clicks on a image item
When-Image_Pressed
Fires when an operator clicks or double-clicks on an image item
75. What is the use of IMAGE_ZOOM built_in?
You can use the IMAGE_ZOOM built-in subprogram to manipulate images in image items.
Working with Multiple Forms
76. How do you create a new session while opening a new form?
Using OPEN_FORM built-in setting the SESSION option.
Ex: OPEN_FORM("STOCKS",ACTIVE,SESSION);
When you invoke multiple forms with OPEN_FORM and CALL_FORM in the
Same application,state whether the following are TRUE or FALSE
77 . Any attempt to navigate programatically to a disabled form
in a call form stack is allowed
FALSE
78 . An open form cannot execute the CALL_FORM procedure if
a chain of called forms has been initiated by another open
form
TRUE
79. When a form is invoked with CALL_FORM, does Oracle
Forms issues a savepoint? TRUE/FALSE
TRUE
80. What are the various subevents a mouse double click event
invokes?
Double_clicking the mouse consists of the mouse down,mouse up,mouse click,mouse down and mouse up events.
81 . State any three mouse event System Variables?
SYSTEM.MOUSE_BUTTON_PRESSED
SYSTEM.MOUSE_BUTTON_SHIFT_STATE
SYSTEM.MOUSE_ITEM
SYSTEM.MOUSE_CANVAS
SYSTEM.MOUSE_RECORD
OLE
82. What is an OLE?
Object Linking and Embedding (OLE) provides you with the capability to integrate objectrs from many MS Windows applications into a single compound document. Creating integrated applications enables you to use the features from several MS Windows application.
83. What is the difference between Object Embedding and
Linking in Oracle Forms?
An Ole server applications creates OLE objects that are embedded or linked in OLE containers. Examples of OLE servers are MS Word and MS Excel. OLE containers provide a place to store,display and manipulate objects that are created by OLE server applications.
Example: Oracle Forms is an example of an OLE container
84. What are the different styles of Activation of OLE objects?
In-place Activation
External Activation
Visual Attributes And Property Classes
85. What are Visual attributes?
Visual attributes are the font,color and pattern properties that you set for form and menu objects that appear in your application's interface.
86. What is a Property Class?
A Property class is a named object that contains a list of properties and their settings. Once you create a property class you can base other objects on it. An object based on a property class inherit the setting of any property in the class that makes sense for that object.
87 . Can a Property class itself be based on a property class?
Yes
88 . What are the Important differences between property
classes and visual attributes?
The important differences betweeen property classes and visual attributes are Named Visual attributes define only font.color and pattern attributes ; property classes can contain these and any other properties.
You can change the appearance of objects at runtime by changing the named visual attribute programmatically; Property class assignment cannot be changed programmatically
When an object is inheriting from both a property class and a named visual attribute, the named visual attribute settings settings take precedence, and any visual attribute properties in the class are ignored.
Forms Built-ins
89. What is a TEXT_IO package?
The Text_IO package allows you to read and write information to a file in the file system.
90. What is an USER_EXIT?
Calls the user exit named in the user_exit_string invokes a 3GL program by name which has been properly linked into your current Oracle Forms executable.
91. What is SYNCHRONIZE?
Synchronizes the terminal screen with the internal state of the form. That is SYNCHRONIZE updates the screen display to reflect the information that Oracle Forms has in its internal representation of the screen.
Triggers
92. What is WHEN-DATABASE-RECORDN Trigger?
Fires when Oracle Forms first marks a record as an insert or an update. That is, the trigger fires as soon as Oracle Forms Determines through validation that the record should be processed by the next post or commit as an insert or update. This generally occurs only when the operator modifies the first item in a record, and after the operator attempts to navigate out of the item.
93. What are Master_Detail Triggers?
ON_CHECK_DELETE_MASTER
ON_CLEAR_DETAILS
ON_POPULATE_DETAILS
System Variables
94. What is the difference between $$DATE$$ and
$$DBDATE$$?
$$$$DBDATE$$ retrieves the current database date
DBDATE$$ retrieves the current operating system date.
95. What is SYSTEM.COORDINATION_OPERATION?
SYSTEM.COORDINATION_OPERATION represents the coordination causing event that occureson the master block in master detail relationship.
Example: System.Cooordination_Operation=
Miscelleneous
96. What are the differences between LOV and List item?
LOV is a Property whereas List item is an item.
A List item can have only one column whereas an LOV can have one or more columns.
97. What are the different display styles of List item?
Poplist
Text list
Combo box.
98 . What is a Poplist?
The poplist style list item appears initially as a single field(similar to a text item field. When The operator selects the list icon, a list of available choices appears.
99 . What is a Text list?
The text list style item appears as a rectangular box which displays a fixed number of values. When the text list contains values that cannot be displayed(due to the display area of the item), a vertical scroll bar appears, allowing the operator to view and select undisplayed values.
100. What is a Combo Box?
The Combo Box style list item combines the features found in list and text items. Unlike the poplist or the text list style list items, the combo box style list item will both display fixed values and accept one operator-entered values.
101. What are Display items?
Display items are similar to text items with the exception that displays items only store and display fetched or assigned values. Display items are generally used asa boilerplate or as conditional text.
102. What is the difference between OPEN_FORM AND
CALL_FORM?
when one form invokes another form by executing OPEN_FORM, the first form remains displayed, and operators can navigate between the forms as desires.
When one form invokes another form by executing CALL_FORM, the called form is modal with respect to the calling form. That is, any windowa that belong to the calling form are disabled and operators cannot navigate to them until they first exit the called form.
103. What is NEW_FORM built-in?
When one form invokes another form by executing New_form, Oracle Forms exists the first form and releases its memeory before loading the new form. Calling NEW_FORM completely replaces the first form with the second. If there are changes pending in the first form, the operator will be prompted to save them before the new form is loaded.
104. what is a Library?
A library is a collection of subprograms, including user- named procedures,functions and packages.
105. What are the advantages of libraries?
Libraries provide a convenient means of storing client-side program units and sharing them among multiple applications.
Once you create a library,you can attach it to any other form,menu or library ,module.
Then, you can call library units from triggers, menu item commands and user-named routines you write in the modules to which modules to which you have attached the library.
When a library attaches another library,program units in the first library can reference program units in the attached library.
Libraries support dynamic loading-that is, a library's program units are loaded into an application only when needed. This can significantly reduce the runtime memory requirements of an application.
106. What is a STRIP_SOURCE generate option?
Removes the source code from the library file and generates a library file that contains only pcode.
The resulting file can be used for final deployment, but cannot be subsequently edited in the designer.
Example:f45gen module=old_lib.pll userid=scott/tiger
Strip_source=YES output_file=<new_file_name>
107. What are VBX controls?
VBX controls provide a simple method of building and enhancing user interfaces. The controls can be used to obtain user input and display program output. The controls can be used to obtain user input and display program output. VBX controls were originally developed as extensions for the MS Visual Basic environment and include such items as sliders,grids and knobs.
108. What is a Timer?
A timer is an "internal time clock" that you programatically create to perform an action each time the timer expires.
109. What are the built-ins associated with timers?
FIND_TIMER
CREATE_TIMER
DELETE_TIMER
110. What is the difference between POST-DATABASE-COMMIT
and POST-FORM-COMMIT?
POST-FORM-COMMIT fires once during the Post and Commit Transactions process, after the database commit occurs. The Post-Forms-Commit trigger fires after inserts, updates and deletes have been posted to the database, but before the transaction has been fibalized by issuing the commit. The Post-Database-Commit Trigger fires after Oracle Forms issues the Commit to finalize the transaction.
111. What is the difference between PRE-SELECT and PRE-
QUERY?
Fires during Execute Query and Count Query processing, after Oracle Forms constructs the SELECT statement to be issued, but before the statement is actually issued.
The Pre-Query trigger fires just before Oracle Forms
issues the SELECT statement to the database, after the operator has defined the example record by entering query criteria in Enter Query Mode.
Pre-Query trigger fires before Pre-Select trigger.
112. What is the trigger associated with the TIMER?
WHEN-TIMER-EXPIRED
113. What is the use of the Transactional Triggers?
Using Transactional triggers we can control or modify the default functionality of the Oracle Forms.