-
-
-
What is the fastest way of accessing a row in a table ?
Using ROWID.CONSTRAINTS
-
What is an Integrity Constraint ?
Integrity constraint is a rule that restricts values to a column in a table.
-
What is a database link ?
Database Link is a named path through which a remote database can be accessed.
-
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.
-
What are the advantages of VIEW ?
To protect some of the columns of a table from other users.To hide complexity of a query.To hide complexity of calculations.
-
What is the use of TNSNAME.ORA and LISTENER.ORA files
tnsnames.ora is used to connect to the remote db. To get the connection listener.ora should be configured at the server and it should be up and running.
-
-
-
-
-
-
-
What is a transaction ?
Transaction is logical unit between two commits and commit and rollback.
-
Explain UNION,MINUS,UNION ALL, INTERSECT ?
INTERSECT returns all distinct rows selected by both queries.MINUS - returns all distinct rows selected by the first query but not by the second.UNION - returns all distinct rows selected by either queryUNION ALL - returns all rows selected by either query, including all duplicates.
-
What is Referential Integrity ?
Maintaining data integrity through a set of rules that restrict the values of one or more columns of the tables based on the values of primary key or unique key of the referenced table.
-
What are the usage of SAVEPOINTS ?
SAVEPOINTS are used to subdivide a transaction into smaller parts. It enables rolling back part of a transaction. Maximum of five save points are allowed.
-
What are the data types allowed in a table ?
CHAR,VARCHAR2,NUMBER,DATE,RAW,LONG and LONG RAW.
-
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.
SQL*Plus interview Questions
Ans