Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> interview questions

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: interview questions
 lvr  Posted: May 26, 2008 11:17:47 PM

 Total Post: 12
 Joined: May, 2008






 1. Write the Sql query for creating database backup?
2. What is TABLE SPACE?
3. Types of backups ?
4. How to create a primary key with out creating an index? is it possible?
5. Does SQL*Plus contains pl/sql Engine?
6. What is the fastest way of accessing a row in a table?

plz give answer for these questions

 Murtuja
Posted: May 27, 2008 12:42:37 AM  

 Total Post: 857
 Joined: Jan, 2006






 
Hi,

Read Oracle DBA books or try to read from online documents.

For que 6

Table access by ROWID


The rowid of a row specifies the datafile and data block containing the row and the location of the row in that block. Locating a row by specifying its rowid is the fastest way to retrieve a single row, because the exact location of the row in the database is specified.

To access a table by rowid, Oracle first obtains the rowids of the selected rows, either from the statement's WHERE clause or through an index scan of one or more of the table's indexes. Oracle then locates each selected row in the table based on its rowid.



 Shoikat
Posted: May 27, 2008 12:45:52 AM  

 Total Post: 1
 Joined: May, 2008






 
What is Table Space ?

An oracle database consists of two or more table spaces, and each table space consists of two or more datafile.

The data block size is a table space attribute. The database always allocates and uses disk space in units of data block.

CREATE TABLESPACE HR_DATA DATAFILE 'D:\oracle\oradata\ora10\hr_data.dbf'

TYPES of BACKUP ?

Whole - A whole database backup includes all datafile and at least one control file.
Partial- Partial database backup includes zero or more table space
Full - A full backup includes all block of every datafile backed up in a whole or partial database backup
Incremental - A incremental backup makes a copy of all data blocks that have change since a previous backup
Consistent- also known as off line backup . performed when database not open.
inconsistent- this is online backup. performed when database is open and available to user.

Does SQL*Plus contains pl/sql Engine?

yes

How to create a primary key with out creating an index? is it possible?

No it is not possible. primary creates an index implicitly.

plz someone ans question no. 1 and 6 and also some one plz verify my ans.

 lvr
Posted: May 27, 2008 01:26:10 AM  

 Total Post: 12
 Joined: May, 2008






 
hi Murtuja,

Thanks for ur guidance. but these questions were asked in my interview. i am not good in dba and dont want elaborate explanation. just give some valuable points .



 Murtuja
Posted: May 27, 2008 01:32:06 AM  

 Total Post: 857
 Joined: Jan, 2006






 
Hi LVR,

Are you working as DBA? Please tell me about your role.

 lvr
Posted: May 27, 2008 02:02:42 AM  

 Total Post: 12
 Joined: May, 2008






 
no i am working in java, j2ee..




 Murtuja
Posted: May 27, 2008 08:33:52 AM  

 Total Post: 857
 Joined: Jan, 2006






 
Hi,

As a Java developer you need to prepare about sql and pl/sql questions only.



 Geetha
Posted: May 30, 2008 07:35:59 AM  

 Total Post: 21
 Joined: Mar, 2008






 
Hi Murtuja,

I agree your answer for 6th question. I've few questions here. When I was using the below query, it took few minutes of time for its output.

select * from emp where rowid between 1 and 10;

Couldn't guess what the problm would be. Is this related to the number of records found in the database??? If not, could you please explain me the reason why the delay has happened???

Thanks,
Geetha

 Gitesh
Posted: May 30, 2008 08:11:23 AM  

 Total Post: 322
 Joined: May, 2005






 
There is no rowid available like 1 and 10. Due to this it is fetching full table scan for checking this.


 Geetha
Posted: May 30, 2008 09:53:48 AM  

 Total Post: 21
 Joined: Mar, 2008






 
Hi all...
I'm very sorry that instead of rownum, I mentioned as rowid...

The query is,
select * from emp where rownum between 1 and 10;

Could you plz suggest me???

Thanks,
Geetha

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi335
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software