Oracle Background Processes & Developer Tools
Oracle Background Processes & Developer Tools
There are basically 9 Processes but in a general system we need to mention the
first five background processes. They do the house keeping activities for the Oracle
and are common in any system.
Data Base Writer Writes Modified blocks from Database buffer cache to Data
Files. This are required since the data is not written whenever a transaction is
committed.
Log Writer writes the redo log entries to disk. Redo Log data is generated in redo
log buffer of SGA. As transaction commits and log buffer fills, LGWR writes log
entries into a online redo log file.
The Process Monitor performs process recovery when user Process fails. Pmon
Clears and Frees resources that process was using.
At Specified times, all modified database buffers in SGA are written to data files
by DBWR at Checkpoints and Updating all data files and control files of database to
indicate the most recent checkpoint
Archieves(ARCH):
The Archiver copies online redo log files to archival store when they are busy.
Recoveror(RECO):
Dispatcher (Dnnn):
Lckn:
We can have up to 10 lock processes for inter instance locking in parallel sql.
3) What is meant by Developer 2000, what are the developer 2000 tools?
runtime deployment. Generating a form module compiles all of its code objects
and creates an .FMX run file.
Oracle forms run form: The run form component is the runtime engine that form
operates use
Forms: Forms are collections of objects and code, including windows, text items,
check
boxes, buttons, trigger and procedures. A form can include any number
of separate windows.
Menus: Menus are collections of menu objects (Main menu, pull-down menu,
menu items)
be called from other modules. You can integrate form, menu & library
modules as
Forms-Blocks-Record-Items
Form- composed of a group of related blocks
8) When you create a form module, you work with various objects specific to form
modules, including:
A window is, by itself, an empty frame. Windows have a title bar and handles for
interaction, allowing end users to scroll, move, and resize the window.
Canvases are background objects on which you place the interface objects and
graphic
elements that end users interact with when they use a Form Builder application.
Blocks are logical containers for Form Builder items, and are the basic unit of
Items are interface objects that display information to end users and allow them to
interact with the application.
9) Introducing Blocks
A control block has no association with a database table or view; its objects do not
relate to database columns.
The Data Block Wizard is a powerful tool that enables you to quickly and easily
create data blocks for use in your application. When you use the wizard to create a
data block, it can automatically generate code to enforce integrity constraints. The
Data Block Wizard can be re-entered after initial creation of the data block, enabling
you to modify an existing data block, even if it was not originally created with the
wizard.
11) What is meant by Oracle forms items? what are the different types of oracle
forms items?
Items are interface objects that display information to users and allow them
to interact with your application.
(7) OLE items (8) Chart items (Oracle graphics chart items)
Syntax:-
Ex:-
Module-type=forms\forms\menu\library
Or
14) What is the object Navigator? What are the operations, you can perform in the
object Navigator?
The object Navigator provides a hierarchical display of the objects in all open
Modules. Objects are grouped under the appropriate node. For example, all of the
windows defined in a form module appear under the Windows node. The Windows
node, in turn, appears under the appropriate form module object. The top-level
nodes in the navigator include forms, Menus, Libraries, Build-in packages and
Database objects.
b) Select objects.
g) Quickly display the code associated with objects such as triggers and
program units.
Interface items and boilerplate text and graphics in a form. In the Layout Editor,
you work on a single Canvas-view. Canvas-views are displayed in windows at
runtime. You specify the window a Canvas-view will be displayed in by setting the
Canvas-view's window property.
16) What are the difference between the Items and the Boilerplate graphics?
Items
Items are the interface controls (text items, check boxes, radio graphs, etc.)
that operators interact within your forms. Every item belongs to a block, and is
listed under the block in the object Navigator hierarchy. You can create items in the
object Navigator and in the new block window, or by drawing them with the item
tools in the Layout Editor.
Boilerplates
Boilerplate graphics are the lines, circles, text and images that you draw or
import onto a canvas-view. Boilerplate graphics are associated with the canvas-view
on which you place them. Deleting a canvas view deletes all of its boiler graphics
objects.
Boilerplate objects are not named objects. Boilerplate objects do not appear in the
object Navigator and their properties are not displayed in the properties window.
We can create boilerplate graphics on the desired canvas-view in the Layout Editor.
We cannot create boilerplate objects in the object Navigator.
17) What is meant by PL/SQL Editor? What are the PL/SQL Editor commands?
PL/SQL Editor:
The PL/SQL Editor is where you enter and compile code objects. Code
objects in oracle forms Including event triggers, subprograms (functions and
procedures), menu item commands, menu startup Code and packages.
Compile: Compiles the code in the source code field. The compiler detects syntax
errors, semantic errors, and references to non-existent objects, procedures
and functions.
Revert: Restores the program unit to its state at the last apply or revert operation. If
no apply or revert operations have occurred, the program unit is returned to its
original state.
New: Displays the New Program Unit dialog, where you can specify the type and
name of the program unit you wish to create.
Source pane: Used to enter and edit PL/SQL program unit source text.
Status Bar: Displays status information about the current code object,
Form, menu, and library modules created in Form Builder are stored in
binary format, can be saved to files or to the database, and are portable across
platforms.
When you compile a binary module, Form Builder creates a platform-specific run
file. You can also use the Forms Compiler to create a human-readable text file that
is portable across platforms.
The following table shows the file extensions for each type of module & storage
format.
The default file extensions indicate the module type and storage format:
Lov represents an internal Form Builder data structure that has a column/row
framework similar to a database table.
An LOV object is a scrollable popup window that provides the end user with either a
single or multi-column selection list.
End users cannot work in other windows when an LOV is displayed. End users can
move and resize LOVs if the runtime window manager supports doing so.
LOVs can be displayed by end user request (when an LOV is available), when
the end user navigates to a text item with an associated LOV, or
programmatically, Independent of any specific text item.
LOV auto-reduction and search features allow end users to locate specific
values.
LOV values that are selected by the end user can be assigned to form items
according to the return items you designate.
At design time, an LOV can be attached to one or more text items in the form.
20) Which Oracle forms object associate with LOV? Or From which oracle forms
LOV values will be derived?
LOV is always associated with a named record group. LOV values are derived
from record group.
21) What is meant by LOV Return Items? What are the different types of LOV
Return Items?
When the operator selects a choice from the LOV, oracle forms assigns the
values from the columns in the selected record to the items called return items.
Parameter.my-parameter
22) What is LOV hidden Column?
A hidden column of an LOV is any column whose values are not displayed in the
LOV window. The display width property is zero for hidden column. We can
designate a return item for a hidden column.
23) What are the built-in- subprograms associated with an LOV object?
1) FIND-LOV 2) SHOW-LOV
3) LIST-VALUES 4) GET-LOV-PROEPRTY
5) SET-LOV-PROPERTY
24) Can we display the same LOV at more than one place in an application? how?
Yes, we can display the same LOV at more than one place in an application; you
can accomplish this by using global variable or form parameters as return items in
conjunction with the SHOW_LOV built-in subprogram.
For ex, you might define an LOV based on 4 column record group that returns values
into 4 global variables, named global. One through global. Four Trigger texts:
Declare
LOV-id Boolean;
Begin
End;
25) Is it possible to replace an LOV's record group with a different record group?
We can replace an LOV's record group with a user record group. The new record
group must * exist in the form when SET_LOV_PROPERTY is called.
* have column names & types that match the column names and types in the
record group being replaced.
The static lov contains the predetermined values while the dynamic lov
contains values that come at run time.
A record Group is an internal oracle forms data structure that has a column/row
framework similar to a database table, record groups are separate objects that
belong to the form module in which they are defined.
A record group built from a query can store records from database tables much like
a database view; with the added advantage that record group is local to the form
builder rather than existing in the database. Also the select statement used to
create and populate a query record group can be constructed dynamically at
runtime.
28) How many types of record groups are there and what are they?
We can create query record group first and then associate LOV to it or when LOV is
created, automatically record group gets created.
A Non-query record group is a group that does not have an associated query,
but whose structure and values can be modified programmatically at runtime. Non-
query record groups can be created and modified only during run time.
A static record group is not associated with a query, instead we define its
structure and row values at design time, and they remain fixed at runtime. Static
record groups can be created only at design time.
32) What are the record groups, we can create at design time?
34) If you create a record group programmatically what are all the operations you
can perform on the group?
* Modify its structure by adding columns & rows
* You cannot add columns to groups that were created at design time
35) If you want to add a new column to an existing record group, what are all the
conditions that record group must meet?
36) What is the Difference between a post query and a pre query?
A post query will fire for every row that is fetched but the pre query will fire
only once.
37) Can we create two blocks with the same name in form 3.0 ?
No.
Function key triggers are associated with individual Run form function keys.
A function key triggers fires only when an operator presses the associated function
key. The actions defined in a function key trigger replace the default action that the
function key would normally perform.
A Key-Fn trigger fires when an operator presses the associated key. You can
attach Key-fn triggers to 10 Keys or key sequences that normally do not perform any
Form Builder operations. These keys are referred to as Key-F0 through Key-F9.
Before you can attach key triggers to these keys, you or the DBA must use Oracle
Terminal to map the keys to the appropriate functions.
41) A query fetched 10 records How many times does a PRE-QUERY Trigger will
get executed ?
Fires during Execute Query or Count Query processing, just before Form Builder
constructs and issues the SELECT statement to identify rows that match the query
criteria.
43) How can you execute the user defined triggers in forms 3.0?
User named trigger has the unique user_supplied name because of this it cant
be called or fired individually. It has to be executed by calling it from within a built-in
trigger, menu_item command or user named subprogram.
It will fires whenever SQL * Forms would normally attempt to lock a row.
Post-Block is a
a. Navigational Trigger.
b. Key trigger.
c. Transaction Trigger.
Ans: a.
45) What are the unrestricted procedures used to change the popup screen
position during run time?
Anchor-view
Resize -View
Move-View.
Returns the value of the indicated variable. The returned value is in the form
of a character string. However, you can use NAME_IN to return numbers and dates
as character strings and then convert those strings to the appropriate data types.
You can use the returned value as you would use any value within an executable
statement. If you nest the NAME_IN function, Form Builder evaluates the individual
NAME_IN functions from the innermost one to the outermost one.
Another imp use of name_in is u can use these to refer global variables which we
cant directly use in program units i.e., by referring with : ' operator.
Copy:
Copies a value from one item or variable into another item or global
variable. Use specifically to write a value into an item that is referenced through
the NAME_IN built-in.
1. You cannot use standard PL/SQL syntax to set a referenced item equal to a value.
Post writes data in the form to the database but does not perform database
commit
49) Which package procedure used for invoke sql *plus from sql *forms?
50) When the form is running in DEBUG mode, If you want to examine the values
of global variables and other form variables, What package procedure command
you would use?
Break.
a. Number
b. Boolean
Ans: b
Do_key executes the key trigger that corresponds to the specified built-in
subprogram. If no such key trigger exists, then the specified subprogram executes.
This behavior is analogous to pressing the corresponding function key.
ex:- BEGIN
Do_Key ('Execute_Query');
END;
If the record corresponds to a row in the database, Form Builder locks the record
before removing it and marking it as a delete.
If a query is open in the block, Form Builder fetches a record to refill the block if
necessary.
56) What are the different types of triggers available in Forms? Explain
Active X triggers
Key triggers
Master-Detail triggers
Message-Handling triggers
Navigation triggers
On triggers
Post triggers
Pre triggers
Query-Time triggers
Transactional triggers
Validation triggers
When triggers
1. Active X triggers
EX -On-Dispatch-Event Trigger
This trigger is called when an ActiveX control event occurs. You can call the
DISPATCH_EVENT built-in from within this trigger to specify the dispatch mode as
either restricted or unrestricted.
Legal Commands
When_Clear_Block
When_Create_Record
When_Database_Record
When_Remove_Record
a. When-Clear-Block
Fires just before Form Builder clear the data from the current block. Note that the
When-Clear_Block trigger does not fire when Form Builder clears the current block
during the CLEAR_FORM event.
Legal Commands
Fires In
CLEAR_BLOCK, COUNT_QUERY,ENTER_QUERY
b.When_Create_Record
Fires when Form Builder creates a new record. For example, when the
operator presses the [Insert] key, or navigates to the last record in a set while
scrolling down, Form Builder fires this trigger.
Legal Commands
c.When-Database-Record Trigger
Fires when Form Builder first marks a record as an insert or an update. That
is, the trigger fires as soon as Form Builder determines through validation that the
record should be processed by the next post or commit as an insert or update.
D.When-Remove-Record Trigger
Fires In
CLEAR_RECORD
DELETE_RECORD
When-Button-Pressed, When-Checkbox-Changed
When-Custom-Item-Event, When-Image-Activated
When-List-Activated, When-List-Changed
When-Mouse-Click, When-Mouse-Double-Click
When-Mouse-Down, When-Mouse-Enter
When-Mouse-Leave, When-Mouse-Move
When-Mouse-Up, When-Radio-Changed
When-Timer-Expired, When-Window-Activated
When-Window-Closed, When-Window-Deactivated
When-Window-Resized
A. When-Button-Pressed
B. When-List-Activated Trigger
A When-List-Activated trigger fires only for T-list style list items, not for drop-down
lists or combo box style list items. The display style of a list item is determined by
the List Style property.
C. When-Mouse-Click Trigger
Fires after the operator click the mouse if one of the following events occurs:
if attached to the form, when the mouse is clicked within any canvas or item in the
form
if attached to a block, when the mouse is clicked within any item in the block
Any trigger that is associated with these events will fire before the When-Mouse-
Click trigger fires.
D. When-Timer-Expired Trigger
Key-Fn
Key-Others
Key-Others Trigger
A Key-Others trigger is associated with all keys that can have key triggers
associated with them but are not currently defined by function key triggers (at any
level).
Usage
Use Key-Others trigger to limit an operator's possible actions. Specifically, use Key-
Others trigger to perform the following tasks:
5. Master-Detail Triggers
On-Check-Delete-Master
On-Clear-Details
On-Populate-Details
6. Message-Handling Triggers
On-Error
On-Message
7. Mouse Event Triggers
When-Custom-Item-Event
When-Mouse-Click
When-Mouse-DoubleClick
When-Mouse-Down
When-Mouse-Enter
When-Mouse-Leave
When-Mouse-Move
When-Mouse-Up
8. Navigation triggers
Post-Block, Post-Form
Post-Record, Post-Text-Item
Pre-Block, Pre-Form
Pre-Record, Pre-Text-Item
User-Named,
When-New-Block-Instance
When-New-Form-Instance
When-New-Item-Instance
When-New-Record-Instance
9. on Triggers
B.On-Clear-Details Trigger
10.Query-Time Triggers
Post-Query
Pre-Query
11.Transactional triggers
On-Check-Delete-Master, On-Check-Unique
On-Clear-Details, On-Close
On-Column-Security, On-Commit
On-Count, On-Delete
On-Dispatch-Event, On-Error
On-Fetch, On-Insert
On-Lock, On-Logon
On-Logout, On-Message
On-Populate-Details, On-Rollback
On-Savepoint, On-Select
On-Sequence-Number, On-Update
Post-Block, Post-Change
Post-Database-Commit, Post-Delete
Post-Form, Post-Forms-Commit
Post-Insert, Post-Logon
Post-Logout, Post-Query
Post-Record, Post-Select
Post-Text-Item, Post-Update
Pre-Block, Pre-Commit
Pre-Delete, Pre-Form
Pre-Insert, Pre-Logon
Pre-Query, Pre-Select
Pre-Text-Item, Pre-Update
12. Validation Triggers
When-Validate-Item
When-Validate-Record
When-Validate-Item Trigger
Fires during the Validate the Item process. Specifically, it fires as the last part of
item validation for items with the New or Changed validation status.
Usage Notes
Form Builder provides four types of canvases, all of which can be displayed in the
same window at runtime. When you create a canvas, you specify its type by setting
the Canvas Type property.
1) Content
2) Stacked
3) Tab
4) Toolbar
1. Content Canvas: The most common canvas type is the content canvas (the
default type).Acontent canvas is the "base" view that occupies the entire content
pane of the window in which it is displayed. You must define at least one content
canvas for each window you create.
4. Toolbar Canvas: A toolbar canvas often is used to create toolbars for individual
windows. You can create two types of toolbar canvases: horizontal or vertical.
Horizontal toolbar canvases are displayed at the top of a window, just under its
menu bar, while vertical toolbars are displayed along the far left edge of a window.
System variables:
A system variable is an Form Builder variable that keeps track of an internal Form
Builder state. You can reference the value of a system variable to control the way
an application behaves.
Form Builder maintains the values of system variables on a per form basis. That is,
the values of all system variables correspond only to the current form. The names
of the available system variables are:
SYSTEM.BLOCK_STATUS, SYSTEM.CURRENT_BLOCK
SYSTEM.CURRENT_DATETIME, SYSTEM.CURRENT_FORM
SYSTEM.CURRENT_ITEM, SYSTEM.CURRENT_VALUE
SYSTEM.CURSOR_BLOCK, SYSTEM.CURSOR_ITEM
SYSTEM.CURSOR_RECORD, SYSTEM.CURSOR_VALUE
SYSTEM.FORM_STATUS, SYSTEM.LAST_QUERY
SYSTEM.LAST_RECORD, SYSTEM.MASTER_BLOCK
SYSTEM.MOUSE_ITEM, SYSTEM.MOUSE_CANVAS
SYSTEM.RECORD_STATUS, SYSTEM.TRIGGER_BLOCK
SYSTEM.TRIGGER_ITEM, SYSTEM.TRIGGER_RECORD
1. If the current navigation unit is the block, record, or item (as in the Pre-
and Post- Item, Record, and Block triggers), the value of
SYSTEM.CURRENT_BLOCK is the name of the block that Form Builder is processing
or that the cursor is in.
2. If the current navigation unit is the form (as in the Pre- and Post-Form
triggers), the value of SYSTEM.CURRENT_BLOCK is NULL.
Syntax
SYSTEM.BLOCK_STATUS
1 CHANGED: Indicates that the block contains at least one Changed record.
3 QUERY: Indicates that the block contains only valid records that have been
retrieved from the database.
Usage Notes: Each time this value is referenced, it must be constructed by Form
Builder. If a block contains a large number of records, using SYSTEM.BLOCK_STATUS
could adversely affect performance.
The Duplicate record built-in is used to copy the values of each item in the record
with
The next lower sequence number to the corresponding item in the current
record.
59) There is a property class in forms which will become Red in color when u alter
any property in property palette and its name is..? And its purpose is to
INHERIT & Sets the current property to its default setting when u clicks on it.
Note: All DDL operations issue an implicit COMMIT and will end the current
transaction without allowing Form Builder to process any pending changes.
To check whether the statement issued using FORMS_DDL executed correctly, use
the FORM_SUCCESS or FORM_FAILURE Boolean functions. If the statement did not
execute correctly, check the error code and error text using DBMS_ERROR_CODE
and DBMS_ERROR_TEXT. Note that the values of DBMS_ERROR_CODE and
DBMS_ERROR_TEXT are not automatically reset following successful execution,
so their values should only be examined after an error has been detected by a call
to FORM_SUCCESS or FORM_FAILURE.
Example:
BEGIN
ELSE
END IF;
END;
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 can inherit the setting of any property in the class
that makes sense for that object.
There can be any number of properties in a property class, and the properties in a
class can apply to different types of objects. For example, a property class might
contain some properties that are common to all types of items, some that apply
only to text items, and some that apply only to check boxes.
Property classes are separate objects, and, as such, can be copied between
modules as needed. Perhaps more importantly, property classes can be sub classed
in any number of modules.
Yes, we can define trigger for the property class. Once you have defined a
trigger in a property class, any forms, blocks or items you base on the class inherit
the trigger. For example, if you define a When-Button-Pressed trigger in a property
class, any form, block or item of type button that you base on the property class
inherits the When-Button-Pressed
Trigger. At runtime, these objects behave exactly as they would if you had attached
the When-Button-Pressed trigger to each of them directly.
64) Can a button have icon and label at the same time?
-NO
Syntax:
PROCEDURE CALL_FORM
(formmodule_name VARCHAR2);
Syntax:
PROCEDURE OPEN_FORM
(form_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
Run form 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.
Syntax:
PROCEDURE NEW_FORM
(formmodule_name VARCHAR2);
The stack represents the chain of subprogram calls starting from the initial
entry point down to the currently executing subprogram.
Stack:
Visual attributes are the font, color, and pattern properties that you set for
form and menu objects that appear in your application's interface.
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 take precedence, and any visual
attribute properties in the class are ignored.
You can manually enter a value, or you can set up a LOV and select values
from the LOV into specified items of a block.
The Menu Editor is a Form Builder design tool you use (along with the Object
Navigator and Property Palette) to create and arrange custom form menu modules
and popup menus.
Before you can use the Menu Editor to work with menu objects, you must create a
new menu module (or open an existing one) in the Object Navigator.
Types of menu:
For every form menu item and popup menu item you create, you must set the Menu
Item Type and Command Type properties. These menu-item-level properties
determine the appearance and functionality of each menu item.
Plain
Check
Radio
Separator
Magic
The most common menu item type is plain; the other menu types are used to
customize the appearance and functionality of a menu.
When you drag objects to copy them from one module to another, an alert is
displayed that prompts you to specify whether you want to create a copy of the
object or create a reference object.
Copying creates a new and separate instance of the object for the target module.
Referencing creates a new object that maintains a link to the source object. Once
you create a reference object, any changes you make to the source object
are inherited by the reference object when you open or regenerate the module that
contains the reference object.
76) What are all the properties we can change for the reference block?
a) Block name
b) Comment.
77) What are all the properties we can change for the reference item?
a) Canvas-view
b) Comment
c) Item Name
d) X position, y position
78) What is object Group? What are all the objects can/cannot be placed in an
object Group?
a) Dragging a block into an object group implicitly includes are objects that are
owned by (items, triggers, relations).
e) The objects in a group must all be defined in the same module. You cannot place
objects from two different forms in the same object.
f) Deleting an object group from a module does not delete the objects it contains
from the module.
What is a Display Item? What is the difference between Text item and the
Display item?
A display Item is similar to a Text Item with the exception that display items cannot
be edited or navigated to at runtime. Indeed a display item is a read only text box
where value must be fetched or assigned programmatically.
3) To conserve memory (Display Items requires less memory than Text Items)
4) To avoid operators navigate to the items and edit the values on the items.
84) What are the different types of list style in a List Item?
1) Poplist style
85) What are all data types of text item support format mast property?
* NUMBER
* DATE
* TIME
* DATETIME
86) What is a Master Deletes property of a relation object? What are three Types
of Master Deletes?
The Master Deletes property allows you to specify how the deletion of a
record in the master block should affect records in the detail block.
1) Non-Isolated
2) Isolated
3) Cascading
Isolated: Allows the master record to be deleted and does not affect the associated
detail records in the database.
Cascading: Allows the master record to be deleted and automatically deletes any
associated detail records from the database table at commit time.
A detail with two masters relationship involves a single detail block that has
two master blocks. Oracle forms displays the appropriate detail records for
whichever master block is the current in the form. Detail with two masters
relationship that includes three blocks & two relation objects.
88) What are the triggers oracle forms will generate when you define the master-
detail relationships?
a REF pointer relationship between the tables on which the blocks are based.
1. Ensures that the detail block displays only those records that are associated with
the current (master) record in the master block
When you create a relation, oracle forms generates different triggers depending on
how the Master Deletes & co-ordination properties are set. When you change the
setting of the Master Deletes property for an existing relation, oracle forms adds or
removes triggers as needed.
Triggers are:
89) What are all the procedures will be generated when you define master-detail
relationships in Oracle forms?
1) Clear-All-Master-Details
2) Query-Master-Details
3) Check-Package-Failure
90) What is Alert? What are the two types of Alerts in Oracle forms?
Alert: An Alert is a modal window that display a message modifying the operator of
some application condition
Use alerts to advise operators of unusual situation or to warn operators who are
about to perform an action that might have undesirable or unexpected
consequences.
Built-in Alerts: An Oracle form has many built-in-Alerts that display pre-defined
messages. There is no need to write a trigger or user-named routine to display the
alert.
Custom Alerts: This is user-defined alert that display in response for application
specific events. You must write a trigger or user-named routine to display the alert
in response to a particular event. In addition the action that each button initiates is
determined by the PL/SQL code you write to involve the alert.
1) Stop
2) Caution
3) Note(Information)
92) In Alert, what are all the properties we can change during the runtime?
93) By default, how many buttons alert will have? What are the default text labels
for that?
200 Characters.
95) What are all the Built-in routines related with Alert object?
i) SHOW-ALERT
ii) FIND-ALERT
iii) SET-ALERT-PROPERTY
iv) GET-ALERT-PROPERTY
i) Default Editor
ii) System Editor
Default Editor
The default editor provides standard editing features, including search/replace and
cut, copy and paste. It is built into every form and is automatically available from
every text item.
System Editor
If you specify 'SYSTEM-EDITOR' in the Editor Name property for the item, an
operating system environment variable would identify them which system editor
(e.g. Write, Notepad) will be used for such items.
User-Named Editor
It is a named object and you can specify editor attributes such as window display
size, position, and title. User-Named editor can be displayed programmatically with
the built-on procedure Show-Editor independent of any particular text item.
98) Which environment variable can be used for defining system Editor?
99) What are the Built-in subprograms we can use to display an editor
dynamically?
1) EDIT-TEXTITEM
2) SHOW-EDITOR
EDIT-TEXTITEM
Syntax:
SHOW-EDITOR
Syntax:
NO, only 3 datatypes allowed for record groups (char, number and date).
101)Redo logs.
102)Control files
Each database instance has at least one control file. In this file the name of
the database instance and the locations (disks) of the data files and redo-log files
are recorded. Each time an instance is started, the data and redo-log files are
determined by using the control file(s).
Archive/Backup Files
Hierarchy property specifies the current trigger code should execute if there
is a trigger with the same name defined at a higher level in the object hierarchy.
1. Override: specifies that the current trigger fire instead of any trigger by
the same name at any higher scope. (Override parent behaviour).
2. Before: specifies that the current trigger fire before firing the same trigger
at the next higher scope.(fire before parent).
3. After: specifies that the current trigger fire after firing the same trigger at
the next higher scope.(fire after behaviour).
Any built in that initializes navigation is restricted. These are not allowed in
triggers that fire in response to navigation.
These built-ins cant be called from triggers like pre-block or post-block which
initiate navigation. Are called unrestricted built-ins.
Synchronize with item property specifics the name of the item from which
the current item should derive its value. Setting this property synchronises the
values of the two items, so that they effectively mirror each other. When the user
changes the value of the either item, the values of other item will also change.
When synchronization is on, the object navigator, layout editor & menu editors
maintain the same current selection. I.e. selecting a button in the layout editor,
automatically selects same button in object navigator as well. When synchronization
is off, selecting an object in the object navigator or an editor does not update the
current selection in other windows.
Pl/sql library is parallel to form module and can be shared among different oracle
developer modules.
Modeless Windows you can display multiple modeless windows at the same time,
and end users can navigate freely among them (provided your application logic
allows it). On most GUI platforms, you can layer modeless windows so that they
appear either in front of or behind other windows. Modeless windows remain
displayed until they are dismissed by the end user or hidden programmatically. You
can set the Hide on Exit property for a modeless window to specify whether it
should remain displayed when the end user navigates to another window. You also
can set the properties of a modeless window to specify its border and title, and
whether end users should be allowed to scroll, resize, move, close, iconify, and
zoom the window.
Modal Windows Modal windows are usually used as dialogs, and have restricted
functionality compared to modeless windows. On some platforms, for example, end
users cannot resize, scroll, or iconify a modal window. Modal windows are often
displayed with a platform-specific border unique to modal windows. On some
platforms, modal windows are "always-on-top" windows that cannot be layered
behind modeless windows.
The Hide on Exit property does not apply to modal windows. By default, Form
Builder prevents end users from navigating out of modal windows with the mouse,
but does allow them to navigate to another window with keyboard commands.
When such navigation occurs, Form Builder always closes the modal window, unless
the target window is itself a modal window.
Modal dialog windows cannot have scroll bars, thus setting the Scroll Bar properties
has no effect. (Modal non-dialog windows, however, can have scroll bars.)
116) I have 2 blocks master and detail block. If u creates a new field in master block
how will u link it to backend table?
By changing database item yes in property pallet for that new item.
117) In forms I have edited 10 employees names. I want to save the changed
names in a flat file. How to do?
118) What are the things you can see when you open new form builder?
Forms
Menus
Pl/sql libraries
Built in packages
Database objects.
119) MDI:
file1 TEXT_IO.FILE_TYPE;
file2 TEXT_IO.FILE_TYPE;
str VARCHAR2(80);
BEGIN
TEXT_IO.FCLOSE( file1 );
TEXT_IO.FCLOSE( file2 );
END;