Oracle interview Questions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Oracle Concepts and Architecture
Qus. 9. Where the integrity constraints are stored in data dictionary?
Ans: The integrity constraints are stored in USER_CONSTRAINTS.
Qus. 0. How will you activate/deactivate integrity constraints?
Ans: The integrity constraints can be enabled or disabled by ALTER TABLE
ENABLE CONSTRAINT / DISABLE CONSTRAINT.
Qus. 1. If unique key constraint on DATE column is created, will it validate
the rows that are inserted with SYSDATE?
Ans: It won't, Because SYSDATE format contains time attached with it.
Qus. 2. What is a database link?
Ans: Database link is a named path through which a remote database can be
accessed.
Qus. 3. 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?
Ans: Sequence name CURRVAL, sequence name NEXTVAL. It is not possible. Only
if you access next value in the session, current value can be accessed.
Qus. 4. What is CYCLE/NO CYCLE in a Sequence?
Ans: CYCLE specifies that the sequence continue to generate values after
reaching either maximum or minimum value. After pan-ascending sequence reaches
its maximum value, it generates its minimum value. After a descending sequence
reaches its minimum, it generates its maximum.
NO CYCLE specifies that the sequence cannot generate more values after
reaching its maximum or minimum value.
Qus. 5. What are the advantages of VIEW?
Ans: - To protect some of the columns of a table from other users.
- To hide complexity of a query.
- To hide complexity of calculations.
Qus. 6. Can a view be updated/inserted/deleted? If Yes - under what
conditions?
Ans: A View can be updated/deleted/inserted if it has only one base table
if the view is based on columns from one or more tables then insert, update
and delete is not possible.
Qus. 7. If a view on a single base table is manipulated will the changes be
reflected on the base table?
Ans: If changes are made to the tables and these tables are the base tables
of a view, then the changes will be reference on the view.
1 2 3 4 5 6 7 8 9 10 11 12 13
14 15