Oracle FAQs
Oracle FAQs
Oracle FAQs
ORACLE9i FAQ’s
2. WHAT IS DATABASE?
Ans: The Collection of Interrelated Data is called Data Base.
5. WHAT IS ORDBMS?
Ans: Object (oriented) Relational Data Base Management System is one
that can store data, the relationship of the data, and the behavior of the data
(i.e., the way it interacts with other data).
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.
1
iLogic Technologies – Oracle9i – FAQ’s
2
iLogic Technologies – Oracle9i – FAQ’s
Create Alter Drop Truncate Rename, Select , Insert Update Delete Merge , Grant Revoke ,
Rollback Commit savepoint
3
iLogic Technologies – Oracle9i – FAQ’s
29. WHAT IS DIFFERENCE BETWEEN CHAR AND VARCHAR2 DATATYPES?
Ans: Varchar2 is similar to Char but can store variable no. Of
characters and while querying the table varchar2 trims the extra spaces from the column
and fetches the rows that exactly match the criteria.
30. HOW MUCH MEMORY IS ALLOCATED FOR DATE DATATYPE? WHAT IS DEFAULT
DATE FORMAT IN ORACLE?
4
iLogic Technologies – Oracle9i – FAQ’s
40. WHAT IS NULL? A CONSTRAINT OR DEFAULT VALUE?
Ans: It is a default value.
42. WHAT IS CREATED IMPLICITLY FOR EVERY UNIQUE AND PRIMARY KEY
COLUMNS?
Ans: Index.
47. HOW TO DROP A PARENT TABLE WHEN IT’S CHILD TABLE EXISTS?
Ans: Using "on delete cascade".
5
iLogic Technologies – Oracle9i – FAQ’s
57. WHAT ARE SQL OPERATORS?
Ans: Value (), Ref () is SQL operator. ( Used with Objects )
Character Functions:
Chr (x), Concat (string1, string2), Lower (string)
Upper (string), Substr (string, from_str, to_str), ASCII (string)
Length (string), Initcap (string).
6
iLogic Technologies – Oracle9i – FAQ’s
Date Functions:
Sysdate, Months between (d1, d2), To_char (d, format)
Last day (d), Next_day (d, day).add_months(d,n), Extract
Conversion Functions: To_char, To_date, To_number
8
iLogic Technologies – Oracle9i – FAQ’s
objects. A schema is owned by the database user and has the same name as that of user.
Each user owns a single schema. Schema objects include following
type of objects Clusters, Database Links, Functions, Indexes, Packages,
Procedures, Sequences, Synonyms, Tables, Database Triggers, Views.
100. HOW TO CHANGE LINE SIZE, PAGE SIZE AND SQL PROMPT?
Ans: By using SET LINESIZE <value>, SET PAGESIZE <value>,
SET SQLPROMPT <new prompt>.
9
iLogic Technologies – Oracle9i – FAQ’s
108. WHAT IS A PL/SQL ENGINE?
Ans: The PL/SQL engine accepts any valid PL/SQL block as input, executes the procedural
part of the statements and sends the SQL statements to the SQL statement executor in the
Oracle server.
10
iLogic Technologies – Oracle9i – FAQ’s
119. WHAT IS "OTHERS" EXCEPTION?
Ans: It is used to along with one or more exception handlers.
This will handle all the errors not already handled in the block.
133. WHAT ARE DIFFERENT EVENTS FOR A TRIGGER AND THEIR SCOPES?
Ans: Insert, Update or Delete.
11
iLogic Technologies – Oracle9i – FAQ’s
134. WHAT IS DIFFERENCE BETWEEN TABLE LEVEL AND ROW LEVEL TRIGGERS?
Ans: Table level Triggers execute once for each table based transaction
whereas Row level Triggers will execute once FOR EACH ROW.
12
iLogic Technologies – Oracle9i – FAQ’s
150. HOW TO MODIFY CONTENTS OF A VARRAY IN ORACLE?
Ans: To modify a stored VARRAY it has to selected into a
PL/SQL variable and then inserted back into the table.
14