DBA Interview Q&A
DBA Interview Q&A
Questions and
answers second
set
Sep. 17
http://www.geekinterview.com/Interview-Questions/Oracle/DatabaseAdministration
http://www.coolinterview.com/type.asp?iType=8
Technical - Oracle
1. Explain the difference between a hot backup and a cold backup and the
benefits associated with each
2. You have just had to restore from backup and do not have any control files.
How would you go about bringing up this database?
3. How do you switch from an init.ora file to a spfile?
4. Explain the difference between a data block, an extent and a segment.
5. Give two examples of how you might determine the structure of the table
DEPT.
6. Where would you look for errors from the database engine?
7. Compare and contrast TRUNCATE and DELETE for a table.
8. Give the reasoning behind using an index.
9. Give the two types of tables involved in producing a star schema and the type
of data they hold.
10. . What type of index should you use on a fact table?
11. . Give two examples of referential integrity constraints.
12. A table is classified as a parent table and you want to drop and re-create it.
How would you do this without affecting the children tables?
13. Explain the difference between ARCHIVELOG mode and NOARCHIVELOG
mode and the benefits and disadvantages to each.
14. What command would you use to create a backup control file?
15. Give the stages of instance startup to a usable state where normal users may
access it.
16. What column differentiates the V$ views to the GV$ views and how?
17. How would you go about generating an EXPLAIN plan?
18. How would you go about increasing the buffer cache hit ratio?
19. Explain an ORA-01555
20. Explain the difference between $ORACLE_HOME and $ORACLE_BASE.
21. How would you determine the time zone under which a database was
operating?
22. Explain the use of setting GLOBAL_NAMES equal to TRUE.
23. What command would you use to encrypt a PL/SQL application?
24. Explain the difference between a FUNCTION, PROCEDURE and PACKAGE.
25. Explain the use of table functions.
26. Name three advisory statistics you can collect.
27. Where in the Oracle directory tree structure are audit traces placed?
28. Explain materialized views and how they are used.
29. When a user process fails, what background process cleans up after it?
30. What background process refreshes materialized views?
31. How would you determine what sessions are connected and what resources
they are waiting for?
32. Describe what redo logs are.
33. How would you force a log switch?
Sep. 17
Technical - UNIX
1. How do you list the files in an UNIX directory while also showing hidden files?
2. How do you execute a UNIX command in the background?
3. What UNIX command will control the default file permissions when files are
created?
4. Explain the read, write, and execute permissions on a UNIX directory.
5. What is the difference between a soft link and a hard link?
6. Give the command to display space usage on the UNIX file system.
7. Explain iostat, vmstat and netstat.
8. How would you change all occurrences of a value using VI?
9. Give two UNIX kernel parameters that effect an Oracle install
10. Briefly, how do you install Oracle software on UNIX.
Sep. 17
Sep. 17
8. The appropriate table to use when performing arithmetic calculations on values defined
within the
SELECT statement (not pulled from a table column) is
a. EMP
b. The table containing the column values
c. DUALD. An Oracle-defined table
9. Which of the following is not a group function?
a. avg( )
c. sqrt( )
c. sum( )
d. max( )
10. Once defined, how long will a variable remain so in SQL*Plus?
a. Until the database is shut down
b. Until the instance is shut down
c. Until the statement completes
d. Until the session completes
11. The default character for specifying runtime variables in SELECT statements is
a. Ampersand
b. Ellipses
c. Quotation marks
d. Asterisk
12. A user is setting up a join operation between tables EMP and DEPT. There are some
employees in the EMP table
that the user wants returned by the query, but the employees are not assigned to
departments yet. Which SELECT
statement is most appropriate for this user?
a. select e.empid, d.head from emp e, dept d;
b. select e.empid, d.head from emp e, dept d where e.dept# = d.dept#;
c. select e.empid, d.head from emp e, dept d where e.dept# = d.dept# (+);
d. select e.empid, d.head from emp e, dept d where e.dept# (+) = d.dept#;
13. Developer ANJU executes the following statement: CREATE TABLE animals AS
SELECT * from
MASTER.ANIMALS; What is the effect of this statement?
a. A table named ANIMALS will be created in the MASTER schema with the same data
as the ANIMALS
table owned by ANJU
b. A table named ANJU will be created in the ANIMALS schema with the same data as
the ANIMALS
table owned by MASTER
c. A table named ANIMALS will be created in the ANJU schema with the same data as
the ANIMALS
Sep. 17
Sep. 17
c. First increase the size of adjacent column datatypes, then add the column.
d. Add the column, populate the column, then add the NOT NULL constraint.
20. Which line of the following statement will produce an error?
a. CREATE TABLE goods
b. (good_no NUMBER,
c. good_name VARCHAR2 check(good_name in (SELECT name FROM avail_goods)),
d. CONSTRAINT pk_goods_01
e. PRIMARY KEY (goodno));
f. There are no errors in this statement.
21. MAXVALUE is a valid parameter for sequence creation.
a. TRUE
b. FALSE
22. Which of the following lines in the SELECT statement below contain an error?
a SELECT DECODE(empid, 58385, INACTIVE, ACTIVE) empid
b. FROM emp
c. WHERE SUBSTR(lastname,1,1) > TO_NUMBER(S')
d. AND empid > 02000
e. ORDER BY empid DESC, lastname ASC;
f. There are no errors in this statement.
23. Which function below can best be categorized as similar in function to an IF-THENELSE statement?
a. SQRT
b. DECODE
c. NEW_TIME
d. ROWIDTOCHAR
24. Which two of the following orders are used in ORDER BY clauses? (choose two)
a. ABS
b. ASC
c. DESC
d. DISC
26. Which of the following statements is true about implicit cursors?
a. Implicit cursors are used for SQL statements that are not named.
b. Developers should use implicit cursors with great care.
c. Implicit cursors are used in cursor for loops to handle data processing.
d. Implicit cursors are no longer a feature in Oracle.
27. Which of the following is not a feature of a cursor FOR loop?
a. Record type declaration.
b. Opening and parsing of SQL statements.
Sep. 17
Sep. 17
Sep. 17
BEGIN
SELECT yearly_budget
INTO v_yearly_budget
FROM studio
WHERE id = v_studio_id;
RETURN v_yearly_budget;
END;
Which set of statements will successfully invoke this function within SQL*Plus?
a VARIABLE g_yearly_budget NUMBER EXECUTE g_yearly_budget :=
GET_BUDGET(11);
b. VARIABLE g_yearly_budget NUMBER EXECUTE :g_yearly_budget :=
GET_BUDGET(11);
c. VARIABLE :g_yearly_budget NUMBER EXECUTE :g_yearly_budget :=
GET_BUDGET(11);
d. VARIABLE g_yearly_budget NUMBER :g_yearly_budget := GET_BUDGET(11);
39.CREATE OR REPLACE PROCEDURE update_theater (v_name IN VARCHAR2,
v_theater_id IN
NUMBER) IS
BEGIN
UPDATE theater
SET name = v_name
WHERE id = v_theater_id;
END update_theater;
When invoking this procedure, you encounter the error: ORA-00001: Unique constraint
(SCOTT.THEATER_NAME_UK) violated.How should you modify the function to
handle this error?
a. An user defined exception must be declared and associated with the error code and
handled in the
EXCEPTION section.
b. Handle the error in EXCEPTION section by referencing the error code directly.
c. Handle the error in the EXCEPTION section by referencing the UNIQUE_ERROR
predefined exception.
d. Check for success by checking the value of SQL%FOUND immediately after the
UPDATE statement.
40.CREATE OR REPLACE PROCEDURE calculate_budget IS v_budget
studio.yearly_budget%TYPE;
BEGIN
v_budget := get_budget(11);
IF v_budget
Sep. 17
Sep. 17
10. It is very difficult to grant and manage common privileges needed by different groups
of database users
using the roles
a True, b False
Answer : False
11. What is difference between a DIALOG WINDOW and a DOCUMENT WINDOW
regarding
moving the window with respect to the application window
a Both windows behave the same way as far as moving the window is concerned.
b A document window can be moved outside the application window while a dialog
window
cannot be moved
c A dialog window can be moved outside the application window while a document
window
cannot be moved
Answer : C
12 . What is the difference between a MESSAGEBOX and an ALERT
a. A messagebox can be used only by the system and cannot be used in user application
while an
alert can be used in user application also.
b A alert can be used only by the system and cannot be use din user application while an
messagebox
can be used in user application also.
c An alert requires an response from the user while a messagebox just flashes a message
and only requires an acknowledgment from the user
d An message box requires an response from the user while a alert just flashes a message
an only
requires an acknowledgment from the user
Answer : C
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
Answer : D
14. Can a DIALOG WINDOW have scroll bar attached to it ?
Sep. 17
a Yes, b No
Answer : B
15. Which of the following is not an advantage of GUI systems ?
a. Intuitive and easy to use., b. GUIs can display multiple applications in multiple
windows
c. GUIs provide more user interface objects for a developer d. None of the above
Answer
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 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
Answer : A
17. In a CLIENT/SERVER environment , which of the following would not be done at
the client ?
a User interface part, b Data validation at entry line,
c Responding to user events,
d None of the above
Answer : D
18. Why is it better to use an INTEGRITY CONSTRAINT to validate data in a table than
to use a STORED
PROCEDURE ?
a. Because an integrity constraint is automatically checked while data is inserted into or
updated in a table
while a stored procedure has to be specifically invoked
b Because the stored procedure occupies more space in the database than a integrity
constraint definition
c Because a stored procedure creates more network traffic than a integrity constraint
definition
Answer : A
Sep. 17
Sep. 17
Sep. 17
Answer : B
9. Which of the following packaged procedure is UNRESTRICTED ?
a CALL_INPUT, b CLEAR_BLOCK, c EXECUTE_QUERY, d USER_EXIT
Answer : D
30. Identify the RESTRICTED packaged procedure from the following
a USER_EXIT, b MESSAGE, c BREAK, d EXIT_FORM
Answer : D
31. What is SQL*FORMS
a SQL*FORMS is a 4GL tool for developing & executing Oracle based interactive
applications.
b SQL*FORMS is a 3GL tool for connecting to the Database.
c SQL*FORMS is a reporting tool
d None of the above.
Answer : A
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
Answer : C
33. What is a trigger
a. A piece of logic written in PL/SQL
b Executed at the arrival of a SQL*FORMS event
c Both A & B
d None of the above
Answer : C
34. Which of the following is TRUE for a ERASE packaged procedure
1 ERASE removes an indicated Global variable & releases the memory associated with it
2 ERASE is used to remove a field from a page
1 Only 1 is TRUE
2 Only 2 is TRUE
3 Both 1 & 2 are TRUE
4 Both 1 & 2 are FALSE
Answer : 1
Sep. 17
35. All datafiles related to a Tablespace are removed when the Tablespace is dropped
a TRUE
b FALSE
Answer : B
36. Size of Tablespace can be increased by
a Increasing the size of one of the Datafiles
b Adding one or more Datafiles
c Cannot be increased
d None of the above
Answer : B
37 . Multiple Tablespaces can share a single datafile
a TRUE
b FALSE
Answer : B
38 . A set of Dictionary tables are created
a Once for the Entire Database
b Every time a user is created
c Every time a Tablespace is created
d None of the above
Answer : A
39. Datadictionary can span across multiple Tablespaces
a TRUE
b FALSE
Answer : B
40. What is a DATABLOCK
a Set of Extents
b Set of Segments
c Smallest Database storage unit
d None of the above
Answer : C
41. Can an Integrity Constraint be enforced on a table if some existing table data does not
satisfy the constraint
a Yes
b No
Sep. 17
Answer : B
42. A column defined as PRIMARY KEY can have NULLs
a TRUE
b FALSE
Answer : B
43. A Transaction ends
a Only when it is Committed
b Only when it is Rolledback
c When it is Committed or Rolledback
d None of the above
Answer : C
44. A Database Procedure is stored in the Database
a. In compiled form
b. As source code
c. Both A & B
d. Not stored
Answer : C
45. A database trigger does not apply to data loaded before the definition of the trigger
a TRUE
b FALSE
Answer : A
46. Dedicated server configuration is
a One server process - Many user processes
b Many server processes - One user process
c One server process - One user process
d Many server processes - Many user processes
Answer : C
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
Answer : C
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
a CREATE
b ALTER
c ALTER SESSION
Answer : C
75. The Data Manipulation Language statements are
a INSERT
b UPDATE
c SELECT
d All of the above
Answer : D
76. EMPNO ENAME SAL
A822 RAMASWAMY 3500
A812 NARAYAN 5000
A973 UMESH
A500 BALAJI 5750
Using the above data
Select count(sal) from Emp will retrieve
a1
b0
c3
d None of the above
Answer : C
77. If an UNIQUE KEY constraint on DATE column is created, will it accept the rows
that are inserted with
SYSDATE ?
a Will
b Wont
Answer : B
78. What are the different events in Triggers ?
a Define, Create
b Drop, Comment
c Insert, Update, Delete
d All of the above
Answer : C
Sep. 17
Sep. 17
c Run_Product built_in
d Call_Product built_in
Answer : C
85. When do you get a .PLL extension ?
a Save Library file
b Generate Library file
c Run Library file
d None of the above
Answer : A
86. What is built_in Subprogram ?
a Stored procedure & Function
b Collection of Subprogram
c Collection of Packages
d None of the above
Answer : D
87. GET_BLOCK property is a
a Restricted procedure
b Unrestricted procedure
c Library function
d None of the above
Answer : D
88. A CONTROL BLOCK can sometimes refer to a BASETABLE ?
a TRUE
b FALSE
Answer : B
89. What do you mean by CHECK BOX ?
a Two state control
b One state control
c Three state control
d none of the above
Answer : C - Please check the Correctness of this Answer ( The correct answers 2 )
Sep. 17
Sep. 17
d GET_FILE
Answer A
96. When a form is invoked with CALL_FORM does Oracle forms issues SAVEPOINT ?
a Yes
b No
Answer : A
97. Can we attach the same LOV to different fields in Design time ?
a Yes
b No
Answer : 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
Answer : B
99. Can you copy the PROGRAM UNIT into an Object group ?
a Yes
b No
Answer : B
100. Can MULTIPLE DOCUMENT INTERFACE (MDI) be used in Forms 4.5 ?
a Yes
b No
Answer : A
101. When is a .FMB file extension is created in Forms 4.5 ?
a Generating form
b Executing form
c Save form
d Run form
Sep. 17
Answer : C
102. What is a Built_in subprogram ?
a Library
b Stored procedure & Function
c Collection of Subprograms
d None of the above
Answer : D
103. What is a RADIO GROUP ?
a Mutually exclusive
b Select more than one column
c Above all TRUE
d Above all FALSE
Answer : A
104. Identify the Odd one of the following statements ?
a Poplist
b Tlist
c List of values
d Combo box
Answer : C
105. What is an ALERT ?
a Modeless window
b Modal window
c Both are TRUE
d None of the above
Answer : B
106. Can an Alert message be changed at runtime ?
a Yes
b No
Answer : A
107. Can we create an LOV without an RECORD GROUP ?
Sep. 17
a Yes
b No
Answer : B
108. How many no of columns can a RECORD GROUP have ?
a 10
b 20
c 50
d None of the above
Answer D
109. Oracle precompiler translates the EMBEDDED SQL statements into
a Oracle FORMS
b Oracle REPORTS
c Oracle LIBRARY
d None of the above
Answer : D
110. Kind of COMMENT statements placed within SQL statements ?
a Asterisk(*) in column ?
b ANSI SQL style statements()
c C-Style comments (/**/)
d All the above
Answer : D
111. What is the appropriate destination type to send the output to a
printer ?
a Screen
b Previewer
c Either of the above
d None of the above
Answer : D
112. What is TERM ?
a TERM is the terminal definition file that describes the terminal from which you are
using R20RUN
( Reports run time )
Sep. 17
b TERM is the terminal definition file that describes the terminal from which you are
using R20DES
( Reports designer )
c There is no Parameter called TERM in Reports 2.0
d None of the above
Answer : A
113. If the maximum records retrieved property of a query is set to 10, then a summary
value will
be calculated
a Only for 10 records
b For all the records retrieved
c For all the records in the referenced table
d None of the above
Answer : A
114. With which function of a summary item in the COMPUTE AT optio required ?
a Sum
b Standard deviation
c Variance
d % of Total function
Answer : D
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
Answer : 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
Answer : C
117. Is it possible to Disable the Parameter form while running the report?
Sep. 17
a Yes
b No
Answer : 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
Answer : D
119. What are the types of Calculated columns available ?
a Summary, Place holder & Procedure column
b Summary, Procedure & Formula columns
c Procedure, Formula & Place holder columns
d Summary, Formula & Place holder columns
Ans.: D
120. If two groups are not linked in the data model editor, what is the hierarchy between
them?
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
Answer : C
121. Sequence of events takes place while starting a Database is
a Database opened, File mounted, Instance started
b Instance started, Database mounted & Database opened
c Database opened, Instance started & file mounted
d Files mounted, Instance started & Database opened
Answer : B
122. SYSTEM TABLESPACE can be made off-line
a Yes
b No
Answer : B
Sep. 17
Sep. 17
Answer : B
130. Constraints cannot be exported through Export command?
a TRUE
b FALSE
Answer : B
131. It is very difficult to grant and manage common privileges needed by
different groups of database users using roles
a TRUE
b FALSE
Answer : B
132. The status of the Rollback segment can be viewed through
a DBA_SEGMENTS
b DBA_ROLES
c DBA_FREE_SPACES
d DBA_ROLLBACK_SEG
Answer : D
133. Explicitly we can assign transaction to a rollback segment
a TRUE
b FALSE
Answer : A
134. What file is read by ODBC to load drivers ?
a ODBC.INI
b ODBC.DLL
c ODBCDRV.INI
d None of the above
Answer : A
Sep. 17
company?
What version of Oracle were you running?
How many databases did the organization have and what sizes?
What motivates you to do a good job?
What two or three things are most important to you at work?
What qualities do you think are essential to be successful in this
kind of work?
What courses did you attend? What job certifications do you hold?
What subjects/courses did you excel in? Why?
What subjects/courses gave you trouble? Why?
How does your previous work experience prepare you for this
position?
How do you define success?
What has been your most significant accomplishment to date?
Describe a challenge you encountered and how you dealt with it.
Describe a failure and how you dealt with it.
Describe the ideal job the ideal supervisor.
What leadership roles have you held?
What prejudices do you hold?
What do you like to do in your spare time?
What are your career goals (a) 3 years from now; (b) 10 years from
now?
Sep. 17
data, and the behavior of the data (i.e., the way it interacts with
other data).
6. NAME SOME CODDS RULES.
Answer: Dr. E.F. Codd presented 12 rules that a database must obey if it
is to be considered truly relational. Out those,
some are as follows
a) The rules stem from a single rule- the zero rule: For a system to
Qualify as RELATIONAL
DATABASE MANAGEMENT system, it must use its RELATIONAL facilities
to MANAGE the DATABASE.
b) Information Rule: Tabular Representation of Information.
c) Guaranteed Access Rule: Uniqueness of tuples for guaranteed
accessibility.
d) Missing Information Rule: Systematic representation of missing
information as NULL values.
e) Comprehensive Data Sub-Language Rule: QL to support Data definition,
View definition,
Data manipulation, Integrity, Authorization and
Security.
7. WHAT ARE HIERARCHICAL, NETWORK, AND RELATIONAL DATABASE
MODELS?
Answer: a) Hierarchical Model: The Hierarchical Model was introduced in
the Information Management System (IMS)
developed by IBM in 1968. In this data is organized as a tree
structure. Each tree is made of nodes and branches.
The nodes of the tree represent the record types and it is a collection
of data attributes entity at that point. The
topmost node in the structure is called the root. Nodes succeeding
lower levels are called children.
b) Network Model: The Network Model, also called as the CODSYL database
structure, is an improvement over the
Hierarchical mode, in this model concept of parent and child is
expanded to have multiple parent-child
relationships, i.e. any child can be subordinate to many different
parents (or nodes). Data is represented by
collection of records, and relationships among data are represented by
links. A link is an association between
precisely two records. Many-to-many relationships can exists between
the parent and child.
c) Relational Model: The Relational Database Model eliminates the need
for explicit parent-child relationships.
In RDBMS, data is organized in two-dimensional tables consisting of
relational, i.e. no pointers are maintained
between tables.
8. WHAT IS DATA MODELING?
Answer: Data Modeling describes relationship between the data objects. The
Sep. 17
Sep. 17
Answer:
Procedural Language NON-Procedural Language
A program in this implements a step-by-step algorithm to solve the
problem. It contains what to do but not how to do
17.WHAT TYPE OF LANGUAGE SQL IS?
Answer: SQL is a Non-procedural, 4th generation Language,/ which concerts
what to do rather than how to do any
process.
18. CLASSIFICATION OF SQL COMMANDS?
Answer:
DDL (Data Definition Language) DML (Data Manipulating Language) DCL
(Data Control
Language) DTL(Data Transaction Language)
Create Alter Drop Select Insert Update Delete Rollback Commit Grant
Revoke
19. WHAT IS DIFFERENCE BETWEEN DDL AND DML COMMANDS?
Answer: For DDL commands auto commit is ON implicitly whereas For DML
commands auto commit is to be turned
ON explicitly.
20. WHAT IS DIFFERENCE BETWEEN A TRANSACTION AND A QUERY?
Answer: A Transaction is unit of some commands where as Query is a single
line request for the information from the
database.
21. WHAT IS DIFFERENCE BETWEEN TRUNCATE AND DELETE COMMANDS?
Answer: Truncate Command will delete all the records where as Delete
Command will delete specified or all the
records depending only on the condition given.
22. WHAT IS DIFFERENCE BETWEEN UPDATE AND ALTER COMMANDS?
Answer: Alter command is used to modify the database objects where as the
Update command is used to modify the
values of a data base objects.
23. WHAT ARE COMMANDS OF TCL CATEGORY?
Answer: Grant and Revoke are the two commands belong to the TCL Category.
24. WHICH IS AN EFFICIENT COMMAND - TRUNCATE OR DELETE? WHY?
Answer: Delete is the efficient command because using this command we can
delete only those records that are not
really required.
25. WHAT ARE RULES FOR NAMING A TABLE OR COLUMN?
Answer: 1) Names must be from 1 to 30 bytes long.
2) Names cannot contain quotation marks.
3) Names are not case sensitive.
4) A name must begin with an alphabetic character from your database
character set and the characters $ and #.
But these characters are discouraged.
Sep. 17
Sep. 17
type.
b) Then copy the values in the column to be renamed into new column.
c) drop the old column.
33. HOW TO DECREASE SIZE OR CHANGE DATATYPE OF A COLUMN?
Answer: To Decrease the size of a Data type of a column
i. Truncate the table first.
ii. Alter the table column whose size is to be decreased using the same
name and data type but new size.
34. WHAT IS A CONSTRAINT? WHAT ARE ITS VARIOUS LEVELS?
Answer: Constraint: Constraints are representators of the column to
enforce data entity and consistency.There r two
levels
1)Column-level constraints 2)Table-level constraints.
35. LIST OUT ALL THE CONSTRAINTS SUPPORTED BY SQL.
Answer: Not Null, Unique, Check, Primary Key and Foreign Key or
Referential Integrity.
36. WHAT IS DIFFERENCE BETWEEN UNIQUE+NOT NULL AND PRIMARY
KEY?
Answer: Unique and Not Null is a combination of two Constraints that can
be present any number of times in a table
and cant be a referential key to any column of an another table where
as Primary Key is single Constraint that
can be only once for table and can be a referential key to a column of
another table becoming a referential integrity.
37. WHAT IS A COMPOSITE PRIMARY KEY?
Answer: A Primary key created on combination of columns is called
Composite Primary Key.
38. WHAT IS A CANDIDATE COLUMN? HOW MANY CANDIDATE COLUMNS
CAN BE
POSSIBLE
PER COMPOSITE PRIMARY KEY?
Answer:
39. HOW TO DEFINE A NULL VALUE?
Answer: A NULL value is something which is unavailable, it is neither zero
nor a space and any mathematical
calculation with NULL is always NULL.
40. WHAT IS NULL? A CONSTRAINT OR DEFAULT VALUE?
Answer: It is a default value.
41. WHAT IS DEFAULT VALUE FOR EVERY COLUMN OF A TABLE?
Answer: NULL.
42. WHAT IS CREATED IMPLICITLY FOR EVERY UNIQUE AND PRIMARY KEY
COLUMNS?
Answer: Index.
43. WHAT ARE LIMITATIONS OF CHECK CONSTRAINT?
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Answer: Too_Many_Rows
No_Data_Found
Zero_Divide
Not_Logged_On
Storage_Error
Value_Error etc.
118. HOW TO CREATE A USER-DEFINED EXCEPTION?
Answer: User-Defined Exception is created as follows:
DECLARE
EXCEPTION;
---------;
- - - - - - - - -;
BEGIN
- - - - - - - - -;
- - - - - - - - -;
RAISE ;
EXCEPTION
WHEN THEN
- - - - - - - - -;
- - - - - - - - -;
END;
119. WHAT IS OTHERS EXCEPTION?
Answer: It is used to along with one or more exception handlers.
This will handle all the errors not already handled in the block.
120. WHAT IS SCOPE OF EXCEPTION HANDLING IN NESTED BLOCKS?
Answer: Exception scope will be within that block in which exception
handler is written.
121. WHAT IS A SUB-PROGRAM?
Answer: A SUBPROGRAM IS A PL/SQL BLOCK, WHICH WILL BE INVOKED BY
TAKING
PARAMATERS.
122. WHAT ARE DIFFERENT TYPES OF SUB-PROGRAMS?
Answer: THEY R TWO TYPES: 1) PROCEDURE 2) FUNCION.
123. HOW A PROCEDURE IS DIFFERENT FROM A FUNCTION?
Answer: Function has return key word and returns a value whereas a
Procedure doesnt return any value.
124. WHAT ARE TYPES OF PARAMETERS THAT CAN BE PASSED TO
FUNCTION OR
PROCEDURE?
Answer: IN, IN OUT, OUT.
125. WHAT IS IN OUT PARAMETER?
Answer: A parameter, which gets value into the Procedure or Function and
takes the value out of the Procedure or
Function area, is called IN OUT parameter.
126. DOES ORACLE SUPPORTS PROCEDURE OVERLOADING?
Sep. 17
Answer: NO.
127. WHAT IS A PACKAGE AND PACKAGE BODY?
Answer: Package is declarative part of the functions and procedures stored
in that package and package body is
the definition part of the functions and procedures of that package.
128. WHAT IS ADVANTAGE OF PACKAGE OVER PROCEDURE OR FUNCTION?
Answer: Packages provides Functions or Procedures Overloading facility and
security to those Functions or
Procedures.
129. IS IT POSSIBLE TO HAVE A PROCEDURE AND A FUNCTION WITH THE
SAME
NAME?
Answer: NO if it is outside a Package, YES if it is within a Package.
130. DOES ORACLE SUPPORTS RECURSIVE FUNCTION CALLS?
Answer: YES.
131. WHAT IS A TRIGGER? HOW IT IS DIFFERENT FROM A PROCEDURE?
Answer: Trigger: A Trigger is a stored PL/SQL program unit associated
with a specific database table.
Procedure: A Procedure is to be explicitly called by the user
whereas Triggers are automatically called implicitly
by Oracle itself whenever event Occurs.
132. WHAT IS DIFFERENCE BETWEEN A TRIGGER AND A CONSTRAINT?
Answer: Constraints are always TRUE whereas Triggers are NOT always TRUE
and Constraints has some limitations
whereas Trigger has no limitations.
133. WHAT ARE DIFFERENT EVENTS FOR A TRIGGER AND THEIR SCOPES?
Answer: Insert, Update or Delete.
134. WHAT IS DIFFERENCE BETWEEN TABLE LEVEL AND ROW LEVEL
TRIGGERS?
Answer: Table level Triggers execute once for each table based transaction
whereas Row level Triggers will execute
once FOR EACH ROW.
** 135. WHAT ARE AUTONOMOUS TRIGGERS?
Answer:
136. WHAT IS AN INSTEAD OF TRIGGER?
Answer: These Triggers are used with the Complex Views only to make
possible of Insert, Update and Delete on those
Views.
** 137. HOW MANY TRIGGERS CAN BE CONFIGURED ON A TABLE AND
VIEW?
Answer:
138. WHAT IS TABLE MUTATING ERROR? HOW TO SOLVE IT?
Answer: ORA-04091: Table name is mutating, trigger/function may not see it
Cause : A trigger or a user-defined PL/SQL function that is referenced
in the statement attempted to query or
modify a table that was in the middle of being modified by the
Sep. 17
Sep. 17
GET_LINE
PUT_LINE
PUTF
NEW_LINE
**154. WHAT IS SQLJ? HOW IT IS DIFFERENT FROM JDBC CONNECTIVITY?
Answer: SQLJ is basically a Java program containing embedded static SQL
statements that are compatible with
Java design philosophy.
155. WHAT IS AN ITERATOR? Name some TYPES OF ITERATORS?
Answer: SQLJ Iterators are basically record groups generated during
transaction, which requires manipulation of
more than one records from one or more tables. There are two types
Iterators namely Named Iterator and
Positional Iterator.
** 156. WHAT ARE DIFFERENT STEPS TO WRITE A DYNAMIC SQL PROGRAM?
Answer:
Eg: char c_sqlstring[]={DELETE FROM sailors WHERE rating>5};
EXEC SQL PREPARE readytogo FROM :c_sqlstring;
EXEC SQL EXECUTE readytogo;
157. WHAT IS TABLE PARTITIONING AND INDEX PARTITIONING?
Answer: Oracle8 allows tables and Indexes to be partitioned or broken up
into smaller parts based on range of key
values. Partitioning is a divide and conquer strategy that improves
administration and performance in data
warehouse and OLTP systems.
158. WHAT IS PARALLEL PROCESSING?
Answer:
159. WHAT IS PHYSICAL MEMORY STRUCTURE OF ORACLE?
Answer: The basic oracle memory structure associated with Oracle includes:
Software Code Areas
The System Global Area (SGA)
The Database Buffer Cache
The shared Pool
The Program Global Areas (PGA)
Stack Areas
Data Areas
Sort Areas
160. WHAT IS LOGICAL MEMORY STRUCTURE OF ORACLE?
DB_STG
STUDENT SYSTEM
EMP DEPT EMP_IND .. ..
DATA DATA INDEX
Answer: Database
Tablespace
DB Object
Sep. 17
Segment
Extends
161. WHAT IS SGA?
Answer: A System Global Area is a group of shared memory allocated by
Oracle that contains data and control
information for one Oracle database instance. IF the multiple users are
concurrently connected to the same
instance, the data in the instances SGA is shared among the users.
Consequently, the SGA is
often referred to as either the system Global Area or the Shared
Global Area.
162. WHAT IS PGA?
Answer: The Program Global Area is a memory buffer that contains data and
control information for
a server process. A PGA is created by Oracle when a server process is
started. The information in a PGA
depends on the configuration of Oracle.
163. WHAT IS AN ORACLE INSTANCE?
Answer: Every time a database is started, an SGA is allocated and Oracle
background processes are started.
The combination of these processes and memory buffers is called an
Oracle instance.
164. WHAT ARE DIFFERENT ORACLE PROCESSES?
Answer: A process is a thread of control or a mechanism in an operating
system that can be execute a series
of steps. Some operating systems use terms jobs or task. A process
normally has its own private memory area
in which it runs. An Oracle database system has general types of
process: User Processes and Oracle Processes.
**165. WHAT IS DIFFERENCE BETWEEN PMON AND SMON?
Answer: SMON (System Monitor) performs instance recovery at instance of
startup. In a multiple instance system
(one that uses the parallel server), SMON of one instance can also
perform instance recovery
other instance that have failed whereas The PMON (Process Monitor)
performs process recovery when
a user process fails.
**166. WHAT IS DIFFERENCE BETWEEN DATABASE AND TABLESPACE?
Answer:
167. WHAT IS JOB OF DATABASE WRITER (DBWR) PROCESS?
Answer: The Data Base Writer writes modified blocks from the database
buffer cache to the data files.
168. WHAT IS JOB OF LOG WRITER (LGWR) PROC*SS?
Answer: The Log Writer writes redo log files to disk. Redo log data is
generated in the redo log buffer of the SGA.
Sep. 17
As transactions commit and log buffer fills, LGWR writes redo entries
into an online redo log file.
169. WHAT IS RECOVERER?
Answer: The Recover (RECO) is used to resolve distributed transactions
that are pending due to network or
system failure in a distributed database. At timed intervals, the local
RECO attempts to concept to remote
database and automatically complete the commit or rollback of the local
portion of any pending distributed
transactions.
170. WHAT IS ARCHIVER?
Answer: The Archiver (ARCH) copies the online redo log files to archival
storage when they are full.
ARCH is active only when a databases redo log is used ARCHILOG mode.
** 171. WHAT IS A STORED QUERY?
Answer: VIEW
172. WHAT IS USER PROCESS AND SERVER PROCESS?
Answer: A User process is created and maintained to execute the software
code of an application program (such as
PRO * Program) or an ORACLE tool (such as SQL * DBA). The User process
also manages the communication
with server processes. User processes communication with the server
processes through the program interface.
Other processes call ORACLE processes. In a dedicated server
configuration, a server
Process handles requests for a single user process. A multithread
server configuration allows many user processes
to share a small number of server processes, minimizing the utilization
of available system resources.
**173. WHAT IS A SELF REFERENTIAL INTEGRITY?
Answer: Table related to itself .Foreign key of the table links to primary
key of the same table.
174. WHAT IS A RAISE STATEMENT?
Answer: It is used to Raise Exceptions.
175. WHAT IS ROWID? HOW IT IS DIFFERENT FROM ROWNUM?
Answer: Rowid is the address of the row at where it is stored in the
database. Rownum is count of records whereas
Rowid is identification of the each row.
DBA, SQL, PL/SQL, Forms questions:
1. What is Log Switch ?
Sep. 17
The point at which ORACLE ends writing to one online redo log file
and begins writing to another is called a log switch.
2. What is On-line Redo Log?
The On-line Redo Log is a set of two 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.
3. Which parameter specified in the DEFAULT STORAGE clause of CREATE
TABLESPACE cannot be altered after creating the tablespace?
All the default storage parameters defined for the tablespace can be
changed using the ALTER TABLESPACE command. When objects are created
their INITIAL and MINEXTENS values cannot be changed.
4. What are the steps involved in Database Startup ?
Start an instance, Mount the Database and Open the Database.
5. What are the steps involved in Instance Recovery?
Rolling forward to recover data that has not been recorded in data
files yet has been recorded in the on-line redo log, including the
contents of rollback segments. Rolling back transactions that have
been explicitly rolled back or have not been committed as indicated
by the rollback segments regenerated in step a. Releasing any
resources (locks) held by transactions in process at the time of the
failure. Resolving any pending distributed transactions undergoing a
two-phase commit at the time of the instance failure.
6. Can Full Backup be performed when the database is open?
No.
7. 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.
Sep. 17
Sep. 17
Yes.
17. What is the use of Control File ?
When an instance of an ORACLE database is started, its control file
is used to identify the database and redo log files that must be
opened for database operation to proceed. It is also used in
database recovery.
18. Do View contain Data ?
Views do not contain or store data.
19. 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.
20. What are the type of Synonyms?
There are two types of Synonyms Private and Public
21. What is a Redo Log ?
The set of Redo Log files YSDATE,UID,USER or USERENV SQL functions,
or the pseudo columns LEVEL or ROWNUM.
22. What is an Index Segment ?
Each Index has an Index segment that stores all of its data.
23. Explain the relationship among Database, Tablespace and Data
file.?
Each databases logically divided into one or more tablespaces one or
more data files are explicitly created for each tablespace
24. What are the different type of Segments ?
Data Segment, Index Segment, Rollback Segment and Temporary Segment.
25. What are Clusters ?
Sep. 17
Sep. 17
Sep. 17
A data block size is specified for each ORACLE database when the
database is created. A database users and allocated free database
space in ORACLE datablocks. Block size is specified in INIT.ORA file
and cant be changed latter.
45. What does a Control file Contain ?
A Control file records the physical structure of the database. It
contains the following information.
Database Name
Names and locations of a databases files and redolog files.
Time stamp of database creation.
46.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 cant contain Nulls.
47.What is Index Cluster ?
A Cluster with an index on the Cluster Key
48.When does a Transaction end ?
When it is committed or Rollbacked.
49. What is the effect of setting the value ALL_ROWS for
OPTIMIZER_GOAL parameter of the ALTER SESSION command ? What are the
factors that affect OPTIMIZER in choosing an Optimization approach ?
Answer The OPTIMIZER_MODE initialization parameter Statistics in the
Data Dictionary the OPTIMIZER_GOAL parameter of the ALTER SESSION
command hints in the statement.
50. 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 at least one of the tables
accessed by the SQL statement exist in the data dictionary.
Otherwise the OPTIMIZER chooses RULE_based approach.
51. What is the function of Optimizer ?
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
and Import (imp) utilities allow you to move existing data in ORACLE
format to and from ORACLE database.
79. How can you enable automatic archiving ?
Shut the database
Backup the database
Modify/Include LOG_ARCHIVE_START_TRUE in init.ora file.
Start up the database.
80. What are roles? How can we implement roles ?
Roles are the easiest way to grant and manage common privileges
needed by different groups of database users. Creating roles and
assigning provides to roles. Assign each role to group of users.
This will simplify the job of assigning privileges to individual
users.
81. What are Roles ?
Roles are named groups of related privileges that are granted to
users or other roles.
82. What are the use of Roles ?
REDUCED GRANTING OF PRIVILEGES - Rather than explicitly granting the
same set of privileges to many users a database administrator can
grant the privileges for a group of related users granted to a role
and then grant only the role to each member of the group.
DYNAMIC PRIVILEGE MANAGEMENT - When the privileges of a group must
change, only the privileges of the role need to be modified. The
security domains of all users granted the groups role automatically
reflect the changes made to the role.
SELECTIVE AVAILABILITY OF PRIVILEGES - The roles granted to a user
can be selectively enable (available for use) or disabled (not
available for use). This allows specific control of a users
privileges in any given situation.
APPLICATION AWARENESS - A database application can be designed to
automatically enable and disable selective roles when a user
attempts to use the application.
83. What is Privilege Auditing ?
Privilege auditing is the auditing of the use of powerful system
privileges without regard to specifically named objects.
Sep. 17
Sep. 17
DBA_FREE_SPACE
DBA_SEGMENTS
DBA_DATA_FILES.
91. 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 base tables and views for the databases dictionary are
store in this schema and are manipulated only by ORACLE. 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.
92. 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.
93. How can we specify the Archived log file name format and
destination?
By setting the following values in init.ora file. LOG_ARCHIVE_FORMAT
= arch %S/s/T/tarc (%S - Log sequence number and is zero left padded,
%s - Log sequence number not padded. %T - Thread number left-zeropadded and %t - Thread number not padded). The file name created is
arch 0001 are if %S is used. LOG_ARCHIVE_DEST = path.
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Yes
124. Is it possible to disable the parameter from while running the
report?
Yes
126. When a form is invoked with call_form, Does oracle forms issues
a save point?
Yes
127. Can a property clause itself be based on a property clause?
Yes
128. If a parameter is used in a query without being previously
defined, what diff. exist between. report 2.0 and 2.5 when the query is
applied?
While both reports 2.0 and 2.5 create the parameter, report 2.5
gives a message that a bind parameter has been created.
129. What are the sql clauses supported in the link property sheet?
Where start with having.
130. What is trigger associated with the timer?
When-timer-expired.
131. What are the trigger associated with image items?
When-image-activated fires when the operators double clicks on an
image item when-image-pressed fires when an operator clicks or double
clicks on an image item
132. What are the different windows events activated at runtimes?
When_window_activated
When_window_closed
When_window_deactivated
When_window_resized
Within this triggers, you can examine the built in system variable
system. event_window to determine the name of the window for which
the trigger fired.
Sep. 17
Sep. 17
Sep. 17
Two group that is above are the left most rank higher than the group
that is to right or below it.
147. An open form cannot be execute the call_form procedure if you
chain of called forms has been initiated by another open form?
True
148. Explain about horizontal, Vertical tool bar canvas views?
Tool bar canvas views are used to create tool bars for individual
windows. Horizontal tool bars are display at the top of a window,
just under its menu bar. Vertical Tool bars are displayed along the
left side of a window
149. 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.
150. What is the use of image_zoom built-in?
To manipulate images in image items.
151. How do you reference a parameter indirectly?
To indirectly reference a parameter use the NAME IN, COPY built-ins
to indirectly set and reference the parameters value Example
name_in (capital parameter my param), Copy (SURESH, 'Parameter my_param)
152. What is a timer?
Timer is an internal time clock that you can programmatically
create to perform an action each time the times.
153. 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 detail block with detail records
associated with the new master record. These operations are
accomplished through the execution of triggers.
Sep. 17
Sep. 17
Sep. 17
169. 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)
170. 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 operator.
171. What is the main diff. bet. Reports 2.0 & Reports 2.5?
Report 2.5 is object oriented.
172. What are the different file extensions that are created by
oracle reports?
Rep file and Rdf file.
173. What is strip sources generate options?
Removes the source code from the library file and generates a
library files that contains only pcode. The resulting file can be
used for final deployment, but cannot be subsequently edited in the
designer.ex. f45gen module=old_lib.pll userid=scott/tiger
strip_source YES output_file
176. What is the basic data structure that is required for creating
an LOV?
Record Group.
177. What is the Maximum allowed length of Record group Column?
Record group column names cannot exceed 30 characters.
178. Which parameter can be used to set read level consistency
across multiple queries?
Read only
179. What are the different types of Record Groups?
Sep. 17
Sep. 17
Only one window in a form can display the console, and you cannot
change the console assignment at runtime
188.If the maximum record retrieved property of the query is set to
10 then a summary value will be calculated?
Only for 10 records.
189.What are the two repeating frame always associated with matrix
object?
One down repeating frame below one across repeating frame.
190. What are the master-detail triggers?\
On-Check_delete_masterOn_clear_detailsOn_populate_details
191. What are the different objects that you cannot copy or
reference in object groups?
Objects of different modules
Another object groups
Individual block dependent items
Program units.
192. What is an OLE?
Object Linking & Embedding provides you with the capability to
integrate objects from many Ms-Windows applications into a single
compound document creating integrated applications enables you to
use the features form .
193. Is it possible to modify an external query in a report which
contains it?
No.
194. Does a grouping done for objects in the layout editor affect
the grouping done in the data model editor?
No.
195. Can a repeating frame be created without a data group as a
base?
No
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Four
226. To execute row from being displayed that still use column in
the row which property can be used?
Format trigger.
227. What are different types of modules available in oracle form?
Form module - a collection of objects and code routines Menu
modules - a collection of menus 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
228. What is the remove on exit property?
For a modalless window, it determines whether oracle forms hides the
window automatically when the operators navigates to an item in the
another window.
229. What is WHEN-Database-record trigger?
Fires when oracle forms first marks a record as an insert or an
update. 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. c generally occurs only when the
operators modifies the first item in the record, and after the
operator attempts to navigate out of the item.
230. 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.
231. What are built-ins associated with timers?
find_timer create_timer delete_timer
232. What are the built-ins used for finding object ID functions?
Sep. 17
Find_group(function)
Find_column(function)
233. What are the built-ins used for finding Object ID function?
FIND_GROUP(function)
FIND_COLUMN(function)
234. Any attempt to navigate programmatically to disabled form in a
call_form stack is allowed?
False
235. Use the Add_group_row procedure to add a row to a static record
group 1. true or false?
False
236. Use the add_group_column function to add a column to record
group that was created at a design time?
False
237. What are the various sub events a mouse double click event
involves? 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.
238. How can a break order be created on a column in an existing
group? What are the various sub events a mouse double click event
involves?
By dragging the column outside the group.
239. What is the use of place holder column? What are the various
sub events a mouse double click event involves?
A placeholder column is used to hold calculated values at a
specified place rather than allowing is to appear in the actual row
where it has to appear.
240. What is the use of hidden column? What are the various sub
events a mouse double click event involves?
Sep. 17
Sep. 17
Cascade
Isolate
Non-isolate
249. What is relation between the window and canvas views?
Canvas views are the back ground 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 us they run your form . Each canvas views displayed in
a window.
250. What is a 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.
251. How is it possible to select generate a select set for the
query in the query property sheet?
By using the tables/columns button and then specifying the table and
the column names.
252. How can values be passed bet. precompiler exits & Oracle call
interface?
By using the statement EXECIAFGET & EXECIAFPUT.
253. How can a square be drawn in the layout editor of the report
writer?
By using the rectangle tool while pressing the (Constraint) key.
254. 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.
255. How can I message to passed to the user from reports?
By using SRW.MESSAGE function.
256. How is possible to restrict the user to a list of values while
entering values for parameters?
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
Sep. 17
294. What are the default extensions of the files created by forms
modules?
.fmb - form module binary
.fmx - form module executable
295. 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.
296. 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 kernel which writing into disk.
Disk Corruption will be very less.
297. What are disadvantages of having raw devices ?
We should depend on export/import utility for backup/recovery (fully
reliable) The tar command cannot be used for physical file backup,
instead we can use dd command which is less flexible and has limited
recoveries.
298. What is the significance of having storage clause ?
We can plan the storage for a table as how much initial extents are
required, how much can be extended next, how much % should leave
free for managing row updating etc.,
299. What is the use of INCTYPE option in EXP command ?
Type export should be performed COMPLETE,CUMULATIVE,INCREMENTAL.
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 anotion Completes. e. will be written.
300. What is the use of FILE option in IMP command ?
The name of the file from which import should be performed.
301. What is a Shared SQL pool?
Sep. 17
Sep. 17