GeekInterview.com
Series: Subject: Topic:

SQL*Plus interview Questions

Showing Questions 1 - 20 of 133 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

What are the pre requisites ?

Asked By: Interview Candidate | Asked On: Sep 7th, 2004

I. To modify data type of a column ? Ii. To add a column with not null constraint ? To modify the datatype of a column the column must be empty. To add a column with not null constrain, the table must be empty.

What is the usage of savepoints

Asked By: Interview Candidate | Asked On: Mar 25th, 2005

Answered by: Scott on: May 12th, 2005

By utilizing savepoints, you are able to rollback to a given point in your processing. An example of this would be: ... COMMIT;  INSERT UPDATE SAVEPOINT A  DELE...

Answered by: Ratan on: Mar 25th, 2005

Savepoints are the temporary bookmarks. it is possible to rollback up to the named savepoint.

If yes - under what conditions

Asked By: Interview Candidate | Asked On: Aug 10th, 2005

Answered by: Sandipanni Bharadwaj on: Aug 10th, 2005

5. The query of the view shoud not consist of any aggregate funtion  6. The query shoud not consist of any subquery 7 And the other option is we can use the instead of trigger to update the ...

Answered by: Swapnil on: Jul 28th, 2005

an Insert,Update,delete can be done through views is 
1. inserts/updates/deletes done only in one base table at a time 
2. primary key columns should be part of view 
3. columns which are going to be updated must be part of vew def. 
4. it shouldn't voielet the contraints

What are the different types of outer joins

Asked By: Interview Candidate | Asked On: Aug 24th, 2005

Answered by: flamey on: Aug 24th, 2005

LEFT OUTER JOIN, RIGHT OUTER JOIN, FULL OUTER JOIN

What is a database link

Asked By: Interview Candidate | Asked On: Jul 28th, 2005

Answered by: Atal on: Sep 16th, 2005

scott@8i> create database link ora8idev
  2  connect to scott
  3  identified by tiger
  4  using 'ora8idev'
  5  /

Database link created.

scott@8i> select * from dual@ora8idev;

D
-
X

scott@8i>

Answered by: Swapnil on: Jul 28th, 2005

it is a way of connecting to remote database. 
usage is  
@xyz.tablename.column

What are the advantages of view ?

Asked By: Interview Candidate | Asked On: Sep 7th, 2004

To protect some of the columns of a table from other users.To hide complexity of a query.To hide complexity of calculations.

Answered by: SaratKumar Puranam on: Oct 4th, 2005

Advantages of view:1. Restricts the access to particular columns and rows of the base tables.2. Hide the data complexity.3. Can access the data for two different base tables with out performing a join...

What is the theory behind the join statement in db2

Asked By: Interview Candidate | Asked On: Aug 26th, 2004

What are PL/SQL cursor exceptions

Asked By: Interview Candidate | Asked On: Jul 27th, 2005

Answered by: Jayakumar M on: Nov 9th, 2005

Cursor_already_open, Invalid_cursor

Answered by: kumar vikal on: Jul 27th, 2005

invalid_cursor, cursor_not_open

What is a non- corelated subquery

Asked By: Interview Candidate | Asked On: Aug 26th, 2004

Answered by: SaratKumar Puranam on: Oct 4th, 2005

Non corelated subquery, where the subquery has been executed once for the entire parent statement.

What is a transaction ?

Asked By: Interview Candidate | Asked On: Aug 25th, 2005

Transaction is logical unit between two commits and commit and rollback.

Answered by: Vaibhavi on: Dec 21st, 2005

A  Transaction  is  a  logical  unit of 
work that comprises one or more SQL statements 
executed by a single user.

Answered by: j lehew on: Aug 25th, 2005

A transaction either commits (i.e. all its actions happen), or it aborts (i.e. all its actions are undone). This all-or-nothing quality makes for a simple programming model.  
 
Transactions also meets the ACID test: Atomic, Consistent, Isolation, and Durable

What is snapshot in Oracle 9i and what is different between view and snapshot?

Asked By: ashok | Asked On: Dec 20th, 2005

Answered by: Narender Reddy on: Jan 4th, 2006

In Oracle 9i instead of snapshot we can use meterialized views which can act as snapshot.Diff between view & snapshot is view is not a table its a virtual table to join one or more table or to pre...

Answered by: prakash2906 on: Dec 27th, 2005

A snapshot is a table that contains the
    results of a query of one or more tables or views, often located on
    a remote database.

Is 'define' a valid SQL statement?

Asked By: suresh | Asked On: Oct 21st, 2005

Answered by: vijaya on: Jan 10th, 2006

if DEFINE is isqlplus command then how do u define ACCEPT command. what is difference between them?i think define is a command in sql *plus which works same in isqlplus with ACCEPT.pls do forward the argument.

Answered by: marthand on: Dec 27th, 2005

define is not a sql command

define is Isql*plus command.  to give a global variable we use it

What is an integrity constraint ?

Asked By: Interview Candidate | Asked On: Sep 7th, 2004

Integrity constraint is a rule that restricts values to a column in a table.

Answered by: samiksc on: Jan 19th, 2006

Integrity constraint restricts values of a column so that only meaningful values as per the business logic of the table be entered into the column.Integrity constraints are of the following types:Not ...

4)what is the process of connecting to database manually in Oracle database

Asked By: kiranbtech01 | Asked On: Feb 2nd, 2006

Answered by: Shankar on: Feb 24th, 2006

The startup of database depends on the nature of Oracle server :Incase Of Enterprise Server and Unix Environment :Go to Unix and type the following commands :sqldba lmode=yconnect internalstartupThis ...

Answered by: rajat dey on: Feb 9th, 2006

in oracle 7.1.6

unix enviournment

sqldba lmode=y

connect internel

statup

oracle 7.3.4 and 8i

svrmgrl

connect internel

statup

in 9i

sqlplus /nolog

connect /as sysdba

startup

u can use option like alter database open

startup mount /nomount

What is a database link ?

Asked By: Interview Candidate | Asked On: Sep 7th, 2004

Database link is a named path through which a remote database can be accessed.

Answered by: tarun1282 on: Apr 27th, 2006

when u want to access the database from remote database then u hv to create a database link with creating a directory .

What is the fastest way of accessing a row in a table ?

Asked By: Interview Candidate | Asked On: Sep 7th, 2004

Using rowid.Constraints

Answered by: tarun1282 on: Apr 27th, 2006

by using the index and rowid

Is it possible to access the current value in a session before accessing next value

Asked By: Interview Candidate | Asked On: Sep 1st, 2005

Answered by: rajanipriya on: May 11th, 2006

Nextval must be used to generate a sequence number in the current user's session before currval can be referenced.

Answered by: Shasi on: Jan 7th, 2006

You can find the last number used in the session for your sequence from the below mentioned query

select last_number from user_sequences where sequence_name =

I wanna to know every thing of implementation and theinterview questions

Asked By: waleed | Asked On: Oct 10th, 2005

I don no

Answered by: Ramprasad K on: May 30th, 2006

Hi,Implementing a project from the begining to the production and maintenance stage.(1) System Planning:        (Scope & Budget of the Project)(2) Business Analy...

Any three PL/SQL exceptions

Asked By: Interview Candidate | Asked On: Jul 9th, 2005

Answered by: sushilsb on: Jun 2nd, 2006

TOO_MANY_ROWS

NO_DATA_FOUND

INVALID_CURSORS

CURSOR_ALREADY_OPEN

DUP_VAL_ON_INDEX

Answered by: koi.milgaya on: Jul 9th, 2005

I think WHEN_OTHERS is only OTHERS 
NO_DATA_FOUND  
WHEN_OTHERS  
TOO_MANY_ROWS  

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 ?

Asked By: Interview Candidate | Asked On: Sep 7th, 2004

Sequence name currval, sequence name nextval.It is not possible. Only if you access next value in the session, current value can be accessed.

Answered by: RamPrasad K on: Jun 12th, 2006

Hi,

Yes,We can use current and next values from a sequence.

-Regards,

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.