Oracle Dba
Oracle Dba
Oracle Dba
_____________________________________________________________________
Oracle 7 Concepts and Architecture Database Structures.
3. What is a Tablespace?
A database is divided into Logical Storage Unit called tablespaces. A tablespace is used to grouped related
logical structures together.
6. What is schema?
A schema is collection of database objects of a User.
53.Can an Integrity Constraint be enforced on a table if some existing table data does not satisfy the constraint ?
No.
55. What is difference between UNIQUE constraint and PRIMARY KEY constraint ?
A column defined as UNIQUE can contain NULLs while a column defined as PRIMARY KEY can't contain
Nulls.
57. What are the Referential actions supported by FOREIGN KEY integrity constraint?
UPDATE and DELETE Restrict - A referential integrity rule that disallows the update or deletion of referenced
data.
DELETE Cascade - When a referenced row is deleted all associated dependent rows are deleted.
60. What is the maximum number of CHECK constraints that can be defined on a column ?
No Limit.
SYSTEM ARCHITECTURE :
DATA ACCESS
98. What are the different approaches used by Optimizer in choosing an execution plan ?
Rule-based and Cost-based.
99. What are the factors that affect OPTIMIZER in choosing an Optimization approach ?
The OPTIMIZER_MODE initialization parameter Statistics in the Data Dictionary the
OPTIMIZER_GOAL parameter of the ALTER SESSION command hints in the statement.
100. What are the values that can be specified for OPTIMIZER MODE Parameter ?
COST and RULE.
101. Will the Optimizer always use COST-based approach if OPTIMIZER_MODE is set to "Cost'?
Presence of statistics in the data dictionary for atleast one of the tables accessed by the SQL statements is
necessary for the OPTIMIZER to use COST-based approach. Otherwise OPTIMIZER chooses RULE-based
approach.
103. What are the values that can be specified for OPTIMIZER_GOAL parameter of the ALTER SESSION
Command ?
CHOOSE,ALL_ROWS,FIRST_ROWS and RULE.
9
104. What is the effect of setting the value "CHOOSE" for OPTIMIZER_GOAL, parameter of the ALTER
SESSION Command ?
The Optimizer chooses Cost_based approach and optimizes with the goal of best throughput if statistics for
atleast one of the tables accessed by the SQL statement exist in the data dictionary. Otherwise the OPTIMIZER
chooses RULE_based approach.
105. What is the effect of setting the value "ALL_ROWS" for OPTIMIZER_GOAL parameter of the ALTER
SESSION command ?
This value causes the optimizer to the cost-based approach for all SQL statements in the session regardless of
the presence of statistics and to optimize with a goal of best throughput.
106. What is the effect of setting the value 'FIRST_ROWS' for OPTIMIZER_GOAL parameter of the
ALTER SESSION command ?
This value causes the optimizer to use the cost-based approach for all SQL statements in the session regardless
of the presence of statistics and to optimize with a goal of best response time.
107. What is the effect of setting the 'RULE' for OPTIMIER_GOAL parameter of the ALTER SESSION
Command ?
This value causes the optimizer to choose the rule-based approach for all SQL 0statements in a session
regardless of the presence of statistics.
PROGRAMMATIC CONSTRUCTS
110. What are the different types of PL/SQL program units that can be defined and stored in ORACLE
database ?
Procedures and Functions,Packages and Database Triggers.
117. What are the differences between Database Trigger and Integrity constraints ?
A declarative integrity constraint is a statement about the database that is always true. A constraint applies to
existing data in the table and any statement that manipulates the table. A trigger does not apply to data loaded
before the definition of the trigger, therefore, it does not guarantee all data in a table conforms to the rules
established by an associated trigger. A trigger can be used to enforce transitional constraints where as a
declarative integrity constraint cannot be used.
DATABASE SECURITY
124. What are the system resources that can be controlled through Profile ?
The number of concurrent sessions the user can establish the CPU processing time available to the user's session
the CPU processing time available to a single call to ORACLE made by a SQL statement the amount of logical
I/O available to the user's session the amout of logical I/O available to a single call to ORACLE made by a
SQL statement the allowed amount of idle time for the user's session the allowed amount of connect time for
the user's session.
11
126. What are the different Levels of Auditing ?
Statement Auditing, Privilege Auditing and Object Auditing.
140. What are the different modes of mounting a Database with the Parallel Server ?
Exclusive Mode If the first instance that mounts a database does so in exclusive mode, only that Instance can
mount the database.
Parallel Mode If the first instance that mounts a database is started in parallel mode, other instances that are
started in parallel mode can also mount the database.
144.WhatisOn-lineRedoLog?
The On-line Redo Log is a set of tow or more on-line redo files that record all committed changes made to the
database. Whenever a transaction is committed, the corresponding redo entries temporarily stores in redo log
buffers of the SGA are written to an on-line redo log file by the background process LGWR. The on-line
redo log files are used in cyclical fashion.
147. What are the advantages of operating a database in ARCHIVELOG mode over operating it in NO
ARCHIVELOG mode ?
Complete database recovery from disk failure is possible only in ARCHIVELOG mode.
Online database backup is possible only in ARCHIVELOG mode.
Introduction to DBA
3. What is a Schema ?
The set of objects owned by user account is called the schema.
5. What is clusters ?
Group of tables physically stored together because they share common columns and are often used together is
called Cluster.
MEMORY MANAGEMENT
9. What is SGA ? How it is different from Ver 6.0 and Ver 7.0 ?
The System Global Area in a Oracle database is the area in memory to facilitates the transfer of information
between users. It holds the most recently requested structural information between users. It holds the most
recently requested structural information about the database. The structure is Database buffers, Dictionary
cache, Redo Log Buffer and Shared SQL pool (ver 7.0 only) area.
13. What are the factors causing the reparsing of SQL statements in SGA?
Due to insufficient Shared SQL pool size. Monitor the ratio of the reloads takes place while executing SQL
statements. If the ratio is greater than 1 then increase the SHARED_POOL_SIZE.
18. How will you swap objects into a different table space for an existing database ?
Export the user.
Perform import using the command imp system/manager file=export.dmp indexfile=newrite.sql. This will
create all definitions into newfile.sql.
Drop necessary objects.
Run the script newfile.sql after altering the tablespaces.
Import from the backup for the necessary objects.
19. List the Optional Flexible Architecture (OFA) of Oracle database ? or How can we organise the
tablespaces in Oracle database to have maximum performance ?
SYSTEM - Data dictionary tables.
DATA - Standard operational tables.
DATA2- Static tables used for standard operations
INDEXES - Indexes for Standard operational tables.
INDEXES1 - Indexes of static tables used for standard operations.
TOOLS - Tools table.
TOOLS1 - Indexes for tools table.
RBS - Standard Operations Rollback Segments,
RBS1,RBS2 - Additional/Special Rollback segments.
TEMP - Temporary purpose tablespace
TEMP_USER - Temporary tablespace for users.
USERS - User tablespace.
20. How will you force database to use particular rollback segment ?
SET TRANSACTION USE ROLLBACK SEGMENT rbs_name.
22. How free extents are managed in Ver 6.0 and Ver 7.0 ?
Free extents cannot be merged together in Ver 6.0.
Free extents are periodically coalesces with the neighboring free extent in
Ver 7.0
23.Which parameter in Storage clause will reduce no. of rows per block?
PCTFREE parameter
Row size also reduces no of rows per block.
16
26. What is the role of PCTFREE parameter is Storage clause ?
This is used to reserve certain amount of space in a block for expansion of rows.
30. How the space utilisation takes place within rollback segments ?
It will try to fit the transaction in a cyclic fashion to all existing extents. Once it found an extent is in use then
it forced to acquire a new extent (No. of extents is based on the optimal size)
34. List the sequence of events when a large transaction that exceeds beyond its optimal value when an
entry wraps and causes the rollback segment to expand into another extend.
Transaction Begins.
An entry is made in the RES header for new transactions entry
Transaction acquires blocks in an extent of RBS
The entry attempts to wrap into second extent. None is available, so that the RBS must extent.
The RBS checks to see if it is part of its OPTIMAL size.
RBS chooses its oldest inactive segment.
Oldest inactive segment is eliminated.
RBS extents
The Data dictionary table for space management are updated.
Transaction Completes.
36. How will you estimate the space required by a non-clustered tables?
Calculate the total header size
Calculate the available dataspace per data block
Calculate the combined column lengths of the average row
Calculate the total average row size.
Calculate the average number rows that can fit in a block
Calculate the number of blocks and bytes required for the table.
After arriving the calculation, add 10 % additional space to calculate the initial extent size for a working table.
37. It is possible to use raw devices as data files and what is the advantages over file. system files ?
Yes.
The advantages over file system files.
I/O will be improved because Oracle is bye-passing the kernnel which writing into disk. Disk Corruption will
be very less.
38. What is a Control file ?
Database's overall physical architecture is maintained in a file called control file. It will be used to maintain
internal consistency and guide recovery operations. Multiple copies of control files are advisable.
39. How to implement the multiple control files for an existing database ?
Shutdown the databse
Copy one of the existing control file to new location
Edit Config ora file by adding new control file.name
Restart the database.
40. What is meant by Redo Log file mirrorring ? How it can be achieved?
Process of having a copy of redo log files is called mirroring.
This can be achieved by creating group of log files together, so that LGWR will automatically writes them to
all the members of the current on-line redo log group. If any one group fails then database automatically switch
over to next group. It degrades performance.
The tar command cannot be used for physical file backup, instead we can use dd command which is less flexible
and has limited recoveries.
47. List the factors that can affect the accuracy of the estimations ?
The space used transaction entries and deleted records does not become free immediately after completion due to
delayed cleanout.
Trailling nulls and length bytes are not stored.
Inserts of, updates to and deletes of rows as well as columns larger than a single datablock, can cause
fragmentation an chained row pieces.
50. What are the dictionary tables used to monitor a database spaces ?
DBA_FREE_SPACE
DBA_SEGMENTS
DBA_DATA_FILES.
52. What are the roles and user accounts created automatically with the database ?
DBA - role Contains all database system privileges.
SYS user account - The DBA role will be assigned to this account. All of the basetables and views for the
database's dictionary are store in this schema and are manipulated only by ORACLE.
19
SYSTEM user account - It has all the system privileges for the database and additional tables and views that
display administrative information and internal tables and views used by oracle tools are created using this
username.
55. What are the minimum parameters should exist in the parameter file (init.ora) ?
DB NAME - Must set to a text string of no more than 8 characters and it will be stored inside the datafiles,
redo log files and control files and control file while database creation.
DB_DOMAIN - It is string that specifies the network domain where the database is created. The global
database name is identified by setting these parameters (DB_NAME & DB_DOMAIN)
CONTORL FILES - List of control filenames of the database. If name is not mentioned then default name will
be used.
DB_BLOCK_BUFFERS - To determine the no of buffers in the buffer cache in SGA.
PROCESSES - To determine number of operating system processes that can be connected to ORACLE
concurrently. The value should be 5 (background process) and additional 1 for each user.
ROLLBACK_SEGMENTS - List of rollback segments an ORACLE instance acquires at database startup.
Also optionally LICENSE_MAX_SESSIONS,LICENSE_SESSION_WARNING and
LICENSE_MAX_USERS.
58. What are the steps to switch a database's archiving mode between NO ARCHIVELOG and ARCHIVELOG
mode ?
60. How can we specify the Archived log file name format and destination ?
By setting the following values in init.ora file.
20
LOG_ARCHIVE_FORMAT = arch %S/s/T/tarc (%S - Log sequence number and is zero left paded, %s - Log
sequence number not padded. %T - Thread number lef-zero-paded and %t - Thread number not padded). The
file name created is arch 0001 are if %S is used.
LOG_ARCHIVE_DEST = path.
22
Flag to indicate whether table rows should be exported. If 'N' only DDL statements for the databse objects will
be created.
23
99. What is the use of INDEXES option in IMP command ?
A flag to indicate whether import should import index on tables or not.
2. What is a transaction ?
Transaction is logical unit between two commits and commit and rollback.
3. What is difference between TRUNCATE & DELETE ?
TRUNCATE commits after deleting entire table i.e., can not be rolled back. Database triggers do not fire on
TRUNCATE
DELETE allows the filtered deletion. Deleted records can be rolled back or committed.
Database triggers fire on DELETE.
CONSTRAINTS
17. What is difference between CHAR and VARCHAR2 ? What is the maximum SIZE allowed for each
type ?
CHAR pads blank spaces to the maximum length. VARCHAR2 does not pad blank spaces. For CHAR it is 255
and 2000 for VARCHAR2.
18. How many LONG columns are allowed in a table ? Is it possible to use LONG columns in WHERE clause
or ORDER BY ?
Only one LONG columns is allowed. It is not possible to use LONG column in WHERE or ORDER BY clause.
22. If an unique key constraint on DATE column is created, will it validate the rows that are inserted with
SYSDATE ?
25
It won't, Because SYSDATE format contains time attached with it.
24. How to access the current value and next value from a sequence ? Is it possible to access the current value
in a session before accessing next value ?
Sequence name CURRVAL, Sequence name NEXTVAL.
It is not possible. Only if you access next value in the session, current value can be accessed.
NO CYCLE specifies that the sequence cannot generate more values after reaching its maximum or minimum
value.
28.If a View on a single base table is manipulated will the changes be reflected on the base table ?
If changes are made to the tables which are base tables of a view will the changes be reference on the view.
3. Name the two files that are created when you generate the form give the filex extension ?
INP (Source File)
FRM (Executable File)
BLOCK
6. Can we create two blocks with the same name in form 3.0 ?
No.
26
7. While specifying master/detail relationship between two blocks specifying the join condition is a must ?
True or False.
True.
8. What is a Trigger ?
A piece of logic that is executed at or triggered by a SQL *forms event.
11. What is the difference between a Function Key Trigger and Key Function Trigger ?
Function key triggers are associated with individual SQL*FORMS function keys
You can attach Key function triggers to 10 keys or key sequences that normally do not perform any SQL *
FORMS operations. These keys refered as key F0 through key F9.
17. A query fetched 10 records How many times does a PRE-QUERY Trigger and POST-QUERY Trigger will
get executed ?
PRE-QUERY fires once.
POST-QUERY fires 10 times.
18. What is the difference between ON-VALIDATE-FIELD trigger and a POST-CHANGE trigger ?
When you changes the Existing value to null, the On-validate field trigger will fire post change trigger will not
fire. At the time of execute-query post-chage trigger will fire, on-validate field trigger will not fire.
22. Give the sequence in which triggers fired during insert operations, when the following 3 triggers are defined
at the smae block level ?
a. ON-INSERT b. POST-INSERT c. PRE-INSERT
PRE-INSERT,ON-INSERT & POST-INSERT.
25. How can you execute the user defined triggers in forms 3.0 ?
Execute_Trigger (trigger-name)
Navigational Trigger.
31. What is the difference between restricted and unrestricted package procedure ?
Restricted package procedure that affects the basic basic functions of SQL * Forms. It cannot used in all triggers
execpt key triggers.
28
Unrestricted package procedure that does not interfere with the basic functions of SQL * Forms it can be used
in any triggers.
32. Classify the restricted and unrestricted procedure from the following.
a. Call
b. User-Exit
c. Call-Query
d. Up
e. Execute-Query
f. Message
g. Exit-From
h. Post
i. Break
a. Call - unrestricted
b. User Exit - Unrestricted
c. Call_query - Unrestricted
d. Up - Restricted
e. Execute Query - Restricted
f. Message - Restricted
g. Exit_form - Restricted
h. Post - Restricted
i. Break - Unrestricted.
35. What are the unrestricted procedures used to change the popup screen position during run time ?
Anchor-view
Resize -View
Move-View.
1. Error_Code
2. Error_Text
3. Form_Failure
4. Form_Fatal
5. Message_Code
43. What package procedure used for invoke sql *plus from sql *forms ?
Host (E.g. Host (sqlplus))
46. 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 in your trigger text ?
Break.
SYSTEM VARIABLES
User Exits :
50. What is an User Exits ?
A user exit is a subroutine which are written in programming languages using pro*C pro *Cobol , etc., that
link into the SQL * forms executable.
Page:
52. What do you mean by a page ?
Pages are collection of display information, such as constant text and graphics.
56. Deleting a page removes information about all the fields in that page ?
a. True. b. False
a. True.
Popup Window :
Alert :
FORMS 4.0
BLOCK
ITEMS
09. Can you change the color of the push button in design time?
32
No.
PL/SQL
Basiscs of PL/SQL
1. What is PL/SQL ?
PL/SQL is a procedural language that has both interactive SQL and procedural programming language
constructs such as iteration, conditional branching.
Datatypes PL/SQL
6. What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?
% TYPE provides the data type of a variable or a database column to that variable.
% ROWTYPE provides the record type that represents a entire row of a table or view or columns selected in the
cursor.
The advantages are : I. Need not know about variable's data type
ii. If the database definition of a column in a table changes, the data type of a variable changes accordingly.
33
Cursors
Database Triggers
34
Database trigger is stored PL/SQL program unit associated with a specific database table. Usages are Audit
data modificateions, Log events transparently, Enforce complex business rules Derive column values
automatically, Implement complex security authorizations. Maintain replicate tables.
17. How many types of database triggers can be specified on a table ? What are they ?
Insert Update Delete
18. Is it possible to use Transaction control Statements such a ROLLBACK or COMMIT in Database Trigger ?
Why ?
It is not possible. As triggers are defined for each table, if you use COMMIT of ROLLBACK in a trigger,
it affects logical transaction processing.
19. What are two virtual tables available during database trigger execution ?
The table columns are referred as OLD.column_name and NEW.column_name.
For triggers related to INSERT only NEW.column_name values only available.
For triggers related to UPDATE only OLD.column_name NEW.column_name values only available.
For triggers related to DELETE only OLD.column_name values only available.
20. What happens if a procedure that updates a column of table X is called in a database trigger of the same table
?
Mutation of table occurs.
Exception :
25. What are the return values of functions SQLCODE and SQLERRM ?
SQLCODE returns the latest code of the error that has occured.
SQLERRM returns the relevant error message of the SQLCODE.
30. What are the modes of parameters that can be passed to a procedure ?
IN,OUT,IN-OUT parameters.
36
34. Explain how procedures and functions are called in a PL/SQL block ?
Function is called as part of an expression.
sal := calculate_sal ('a822');
procedure is called as a PL/SQL statement
calculate_bonus ('A822');
38. What is difference between a Cursor declared in a procedure and Cursor declared in a package specification ?
A cursor declared in a package specification is global and can be accessed by other procedures or procedures in a
package.
A cursor declared in a procedure is local to the procedure that can not be accessed by other procedures.
39. How packaged procedures and functions are called from the following?
a. Stored procedure or anonymous block
b. an application program such a PRC *C, PRO* COBOL
c. SQL *PLUS
40. Name the tables where characteristics of Package, procedure and functions are stored ?
User_objects, User_Source and User_error.
FORMS4.0
16. How many maximum number of radio buttons can you assign to a radio group?
Unlimited no of radio buttons can be assigned to a radio group
17. can you change the default value of the radio button group at run time?
No.
Visual Attributes.
Window
24. List the buil-in routine for controlling window during run-time?
Find_window,
get_window_property,
hide_window,
move_window,
resize_window,
set_window_property,
show_View
38
25. List the windows event triggers available in Forms 4.0?
When-window-activated, when-window-closed, when-window-deactivated,
when-window-resized
26. What built-in is used for changing the properties of the window dynamically?
Set_window_property
Canvas-View
28. Give the equivalent term in forms 4.0 for the following.
Page, Page 0?
Page - Canvas-View
Page 0 - Canvas-view null.
31. List the built-in routines for the controlling canvas views during run-time?
Find_canvas
Get-Canvas_property
Get_view_property
Hide_View
Replace_content_view
Scroll_view
Set_canvas_property
Set_view_property
Show_view
Alert
35. What built-in is used for showing the alert during run-time?
Show_alert.
39
36. Can you change the alert messages at run-time?
If yes, give the name of th built-in to chage the alert messages at run-time.
Yes. Set_alert_property.
37. What is the built-in function used for finding the alert?
Find_alert
Editors
LOV
42. Can you attach an lov to a field at run-time? if yes, give the build-in name.
Yes. Set_item_proprety
44. What is the built-in used to get and set lov properties during run-time?
Get_lov_property
Set_lov_property
Record Group
48. What is the built_in routine used to count the no of rows in a group?
Get_group _row_count
System Variables
49. List system variables available in forms 4.0, and not available in forms 3.0?
System.cordination_operation
System Date_threshold
System.effective_Date
System.event_window
System.suppress_working
The library pll files is a portable design file comparable to an fmb form file
The library lib file is a plat form specific, generated library file comparable to a fmx form file
The pld file is Txt format file and can be used for source controlling your library files
Parameter
54. How do you pass the parameters from one form to another form?
To pass one or more parameters to a called form, the calling form must perform the following steps in a
trigger or user named routine excute the create_parameter_list built_in function to programatically.
Create a parameter list to execute the add parameter built_in procedure to add one or more parameters list.
Execute the call_form, New_form or run_product built_in procedure and include the name or id of the
parameter list to be passed to the called form.
54. What are the built-in routines is available in forms 4.0 to create and manipulate a parameter list?
Add_parameter
Create_Parameter_list
Delete_parameter
Destroy_parameter_list
Get_parameter_attr
Get_parameter_list
set_parameter_attr
41
55. What are the two ways to incorporate images into a oracle forms application?
Boilerplate Images
Image_items
57. What are the triggers associated with the image item?
When-Image-activated(Fires when the operator double clicks on an image Items)
When-image-pressed(fires when the operator selects or deselects the image item)
61. What are the menu items that oracle forms 4.0 supports?
Plain, Check,Radio, Separator, Magic
FORMS4.5
object groups
02. what are the different objects that you cannot copy or reference in object groups?
objects of differnt modules
another object groups
individual block dependent items
program units.
canvas views
Windows
14. Can you have more than one content canvas view attached with a window?
43
Yes.
Each window you create must have atleast one content canvas view assigned to it. You can also create a
window that has manipulate contant canvas view. At run time only one of the content canvas views assign to a
window is displayed at a time.
Modules
18. What are the default extensions of the files careated by forms modules?
.fmb - form module binary
.fmx - form module executable
19. What are the default extentions of the files created by menu module?
.mmb, .mmx
20 What are the default extension of the files created by library module?
The default file extensions indicate the library module type and storage format
.pll - pl/sql library module binary
Master Detail
25. What are the different types of Delete details we can establish in Master-Details?
Cascade
Isolate
Non-isolote
26. What are the different defaust triggers created when Master Deletes Property is set to Non-isolated?
Master Delets Property Resulting Triggers
----------------------------------------------------
Non-Isolated(the default) On-Check-Delete-Master
On-Clear-Details
On-Populate-Details
26. Whar are the different default triggers created when Master Deletes Property is set to Cascade?
Ans: 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?
30. What are the different types of Coordinations of the Master with the Detail block?
45
An LOV is a scrollable popup window that provides the operator with either a single or multi column selection
list.
46. What is the basic data structure that is required for creating an LOV?
Record Group.
47. What is the "LOV of 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, and processing continues normally.
If the value in the text item does not 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.
48. What are the built_ins used the display the LOV?
Show_lov
List_values
49. What are the built-ins that are used to Attach an LOV programmatically to an item?
set_item_property
get_item_property
(by setting the LOV_NAME property)
50. What are the built-ins that are used for setting the LOV properties at runtime?
get_lov_property
set_lov_property
46
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.
58. What are the built-ins used for Creating and deleting groups?
CREATE-GROUP (function)
CREATE_GROUP_FROM_QUERY(function)
DELETE_GROUP(procedure)
59.What are the built -ins used for Modifying a group's structure?
ADD-GROUP_COLUMN (function)
ADD_GROUP_ROW (procedure)
DELETE_GROUP_ROW(procedure)
60. POPULATE_GROUP(function)
POPULATE_GROUP_WITH_QUERY(function)
SET_GROUP_CHAR_CELL(procedure)
SET_GROUP_DATE_CELL(procedure)
SET_GROUP_NUMBER_CELL(procedure)
61. What are the built-ins used for Getting cell values?
GET_GROUP_CHAR_CELL (function)
GET_GROUP_DATE_CELL(function)
GET_GROUP_NUMBET_CELL(function)
63. What are the built-ins used for finding Object ID function?
FIND_GROUP(function)
FIND_COLUMN(function)
64. Use the ADD_GROUP_COLUMN function to add a column to a record group that was created at design
time.
I) TRUE II)FALSE
II) FALSE
65. Use the ADD_GROUP_ROW procedure to add a row to a static record group
I) TRUE II)FALSE
I) FALSE
61. What are the built-in used for getting cell values?
Get_group_char_cell(function)
Get_group_date_cell(function)
Get_group_number_cell(function)
47
62. What are the built-ins used for processing rows?
Get_group_row_count(function)
Get_group_selection_count(function)
Get_group_selection(function)
Reset_group_selection(procedure)
Set_group_selection(procedure)
Unset_group_selection(procedure)
63. What are the built-ins used for finding object ID functions?
Find_group(function)
Find_column(function)
64. Use the add_group_column function to add a column to record group that was created at a design time?
False.
65. Use the Add_group_row procedure to add a row to a static record group 1. true or false?
False.
parameters
67. 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.
69. 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 the call, Oracle Forms returns a
message to the opertor.
IMAGES
76. What is the difference between boiler plat images and image items?
Boiler plate Images are static images (Either vector or bit map) that you import from the file system or database
to use a grapical elements in your form, such as company logos and maps Image items are special types of
interface controls that store and display either vector or bitmap images. Llike other items that store values,
image items can be either base table items(items that relate directly to database columns) or control items. The
definition of an image item is stored as part of the form module FMB and FMX files, but no image file is
actualy associated with an image item until the item is populate at run time.
79. How do you create a new session while open a new form?
Using open_form built-in setting the session option Ex. Open_form('Stocks ',active,session). when invoke the
mulitiple forms with open form and call_form in the same application, state whether the following are
true/False
80. Any attempt to navigate programatically to disabled form in a call_form stack is allowed?
False
81. An open form can not be execute the call_form procedure if you chain of called forms has been initiated by
another open form?
True
82. When a form is invoked with call_form, Does oracle forms issues a save point?
True
Mouse Operations
83. What are the various sub events a mouse double click event involves?
Double clicking the mouse consists of the mouse down, mouse up, mouse click, mouse down & mouse up
events.
OLE
86. What is the difference between object embedding & linking in Oracle forms?
In Oracle forms, Embedded objects become part of the form module, and linked objects are references from a
form module to a linked source file.
87. What is the difference between OLE Server & Ole Container?
An Ole server application creates ole Objects that are embedded or linked in ole Containers ex. Ole servers are
ms_word & ms_excell. OLE containers provide a place to store, display and manipulate objects that are created
by ole server applications. Ex. oracle forms is an example of an ole Container.
92. What are the important difference between property clause and visual attributes?
Named visual attributes differed only font, color & pattern attributes, property clauses can contain this and any
other properties. You can change the appearance of objects at run time by changing the named visual
attributes programatically , property clause assignments cannot be changed programatically. When an object is
inheriting from both a property clause and named visual attribute, the named visual attribute settings take
precedence, and any visual attribute properties in the class are ignored.
Form Build-ins
50
Calls the user exit named in the user_exit_string. Invokes a 3Gl programe by name which has been properly
linked into your current oracle forms executable.
Triggers
101. What are the difference between lov & list item?
Lov is a property where as list item ias an item. A list item can have only one column, lov can have one or more
columns.
51
106. What are display items?
Display items are similar to text items with the exception that display items only store and display fetched or
assigned values.Display items are generaly used as boilerplate or conditional text.
115. what are 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
occures. The post-form-commit trigger fires after inserts,updates and deletes have been posted to the database
but before the transactions have been finalished in the issuing the command.The post-database-commit
trigger fires after oracle forms issues the commit to finalished transactions.
52
116. What is a difference between pre-select and pre-query?
Fires during the 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 as define the example records by entering the query criteria in enter query mode.
Pre-query trigger fires before pre-select trigger.
REPORTS
1. What are the different file extensions that are created by oracle reports?
Rep file and Rdf file.
7.Where is a procedure return in an external pl/sql library executed at the client or at the server?
At the client.
9. What are the default parameter that appear at run time in the parameter screen?
Destype and Desname.
10. Which parameter can be used to set read level consistency across multiple queries?
Read only.
53
12. What is use of term?
The term file which key is correspond to which oracle report functions.
13. Is it possible to insert comments into sql statements return in the data model editor?
Yes.
14. If the maximum record retrieved property of the query is set to 10 then a summary value will be calculated?
Only for 10 records.
15. What are the sql clauses supported in the link property sheet?
Where startwith having.
16. To execute row from being displayed that still use column in the row which property can be used?
Format trigger.
17. Is it possible to set a filter condition in a cross product group in matrix reports?
No.
18.if a break order is set on a column would it effect columns which are under the column?
No.
19. With which function of summary item is the compute at options required?
percentage of total functions.
20. What is the purpose of the product order option in the column property sheet?
To specify the order of individual group evaluation in a cross products.
28. If two groups are not linked in the data model editor, What is the hierarchy between them?
Two group that is above are the left most rank higher than the group that is to right or below it.
29.The join defined by the default data link is an outer join yes or no?
54
Yes.
30. How can a text file be attached to a report while creating in the report writer?
By using the link file property in the layout boiler plate property sheet.
32. Can a field be used in a report wihtout it appearing in any data group?
Yes.
33. For a field in a repeating frame, can the source come from the column which does not exist in the data group
which forms the base for the frame?
Yes.
34. Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size?
Yes.
35. If yes,how?
By the use anchors.
36. What are the two repeating frame always associated with matrix object?
One down repeating frame below one across repeating frame.
37. Is it possible to split the printpreviewer into more than one region?
Yes.
38. Does a grouping done for objects in the layout editor affect the grouping done in the datamodel editor?
No.
39. How can a square be drawn in the layout editor of the report writer?
By using the rectangle tool while pressing the (Constraint) key.
40. To display the page no. for each page on a report what would be the source & logical page no. or & of
physical page no.?
& physical page no.
41. What does the term panel refer to with regard to pages?
A panel is the no. of physical pages needed to print one logical page.
55
REPORT TRIGGERS.
46. Does a Before form trigger fire when the parameter form is suppressed.
Yes.
47. At what point of report execution is the before Report trigger fired?
After the query is executed but before the report is executed and the
records are displayed.
48. Is the After report trigger fired if the report execution fails?
Yes.
51. What are the ways to monitor the performance of the report?
Use reports profile executable statement.
Use SQL trace facility.
55. Why is a Where clause faster than a group filter or a format trigger?
Because, in a where clause the condition is applied during data retrieval
than after retrieving the data.
56. What is the main diff. bet. Reports 2.0 & Reports 2.5?
Report 2.5 is object oriented.
57. What is the diff. bet. setting up of parameters in reports 2.0 reports
2.5?
LOVs can be attached to parameters in the reports 2.5 parameter form.
58. How is link tool operation different bet. reports 2 & 2.5?
In Reports 2.0 the link tool has to be selected and then two fields to be
linked are selected and the link is automatically created. In 2.5 the first
field is selected and the link tool is then used to link the first field to
56
the second field.
59.What are the two types views available in the object navigator(specific
to report 2.5)?
View by structure and view by type .
62. How is it possible to select generate a select ste. for the query in
the query property sheet?
By using the tables/columns button and then specifying the table and the
column names.
66. What is the diff. when Flex mode is mode on and when it is off?
When flex mode is on, reports automatically resizes the parent when the
child is resized.
67. How can a button be used in a report to give a drill down facility?
By setting the action asscoiated with button to Execute pl/sql option and
using the SRW.Run_report function.
68. What are the two ways by which data can be generated for a parameter's
list of values?
1. Using static values.
2. Writing select statement.
69. What are the two panes that Appear in the design time pl/sql
interpreter?
1.Source pane. 2. Interpreter pane
70. What are three panes that appear in the run time pl/sql interpreter?
1.Source pane. 2. interpreter pane. 3. Navigator pane.
57
CROSS PRODUCTS AND MATRIX REPORTS
75. Is it possible to link two groups inside a cross products after the
cross products group has been created?
No.
78. How can values be passed bet. precompiler exits & Oracle call
interface?
By using the statement EXECIAFGET & EXECIAFPUT.
Oracle DBA
58
4. ENQUEUE resources parameter information is derived from
[DBA] a] Processes or DDL_LOCKS and DML_LOCKS, b] LOG_BUFFER,
c] DB__BLOCK_SIZE..
Ans : A
13. Which of the following is not an reason for the fact that most of the
processing is done at the
server ?
a] To reduce network traffic. b] For application sharing, c] To
implement business rules
centrally, d] None of the above
Ans : D
16. What is the difference between a LIST BOX and a COMBO BOX ?
a] In the list box, the user is restricted to selecting a value from a
list but in a combo box
the user can type in a value which is not in the list
b] A list box is a data entry area while a combo box can be used only
for control purposes
c] In a combo box, the user is restricted to selecting a value from a
list but in a list box the
user can type in a value which is not in the list
d] None of the above
Ans : A
22. The system variable that records the select statement that SQL * FORMS
most recently used
to populate a block is
a] SYSTEM.LAST_RECORD
b] SYSTEM.CURSOR_RECORD
c] SYSTEM.CURSOR_FIELD
d] SYSTEM.LAST_QUERY
Ans: D
23. Which of the following is TRUE for the ENFORCE KEY field
a] ENFORCE KEY field characterstic indicates the source of the value
that SQL*FORMS
uses to populate the field
b] A field with the ENFORCE KEY characterstic should have the INPUT
ALLOWED
charaterstic turned off
a] Only 1 is TRUE
b] Only 2 is TRUE
61
c] Both 1 and 2 are TRUE
d] Both 1 and 2 are FALSE
Ans : A
27. The packaged procedure that makes data in form permanent in the
Database is
a] Post
b] Post form
c] Commit form
d] None of the above
Ans : C
28. Which of the following is TRUE for the SYSTEM VARIABLE $$date$$
a] Can be assigned to a global variable
b] Can be assigned to any field only during design time
c] Can be assigned to any variable or field during run time
d] None of the above
Ans : B
32. Name the two files that are created when you generate a form using
Forms 3.0
a] FMB & FMX, b] FMR & FDX, c] INP & FRM, d] None of the above
Ans : C
35. All datafiles related to a Tablespace are removed when the Tablespace
is dropped
a] TRUE
b] FALSE
Ans : B
45. A database trigger doesnot apply to data loaded before the definition
of the trigger
a] TRUE
b] FALSE
Ans : A
64
47. Which of the following does not affect the size of the SGA
a] Database buffer
b] Redolog buffer
c] Stored procedure
d] Shared pool
Ans : C
51. Declare
fvar number := null; svar number := 5
Begin
goto << fproc>>
if fvar is null then
<< fproc>>
svar := svar + 5
end if;
End;
61. Which of the following is not correct about the "TABLE" datatype ?
a] Can contain any no of columns
b] Simulates a One-dimensional array of unlimited size
c] Column datatype of any Scalar type
d] None of the above
Ans : A
66. Declare
a number := 5; b number := null; c number := 10;
Begin
if a > b AND a < c then
a := c * a;
end if;
End;
What will be the value of 'a' after execution ?
a] 50
b] NULL
c] 5
d] None of the above
Ans : C
67. Does the Database trigger will fire when the table is TRUNCATED ?
a] Yes
67
b] No
Ans : B
Select SAL from EMP E1 where 3 > ( Select count(*) from Emp E2
where E1.SAL > E2.SAL ) will retrieve
a] 3500,5000,2500
b] 5000,2850
c] 2850,5750
d] 5000,5750
Ans : A
94. What type of file is used for porting Forms 4.5 applications to various
platforms ?
a] .FMB file
b] .FMX file
c] .FMT file
d] .EXE file
Ans : C
96. When a form is invoked with CALL_FORM does Oracle forms issues
SAVEPOINT ?
a] Yes
b] No
Ans : A
97. Can we attach the same LOV to different fields in Design time ?
a] Yes
71
b] No
Ans : A
98. How do you pass values from one form to another form ?
a] LOV
b] Parameters
c] Local variables
d] None of the above
Ans : B
99. Can you copy the PROGRAM UNIT into an Object group ?
a] Yes
b] No
Ans : B
115. For a field in a repeating frame, can the source come from a column
which does not exist in
the datagroup which forms the base of the frame ?
a] Yes
b] No
Ans : A
116. What are the different file extensions that are created by Oracle
Reports ?
a] .RDF file & .RPX file
b] .RDX file & .RDF file
c] .REP file & .RDF file
d] None of the above
Ans : C
117. Is it possible to Disable the Parameter form while running the report
?
a] Yes
b] No
Ans : A
118.What are the SQL clauses supported in the link property sheet ?
a] WHERE & START WITH
b] WHERE & HAVING
c} START WITH & HAVING
d] WHERE, START WITH & HAVING
Ans : D
120. If two groups are not linked in the data model editor, what is the
hierarchy between them?
74
a] There is no hierarchy between unlinked groups
b] The group that is right ranks higher than the group that is to the
left
c] The group that is above or leftmost ranks higher than the group
that is to right or below
it
d] None of the above
Ans : C
76