GeekInterview.com
Series: Subject: Topic:

Database Admin Interview Questions

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

What is the difference between these two?

Asked By: Snowbird | Asked On: Apr 8th, 2012

I am new here and I am not sure if I am posting this in the correct place. But I have recently started studying to be a programmer but because there is so much out there between these two I am getting more and more confused about how to answer this. Could someone please answer these so I can at least...

Answered by: Tom Haughey on: Apr 29th, 2012

I will refer predominantly to Relational DBMS. In a file system, data is contained in a flattened structure that is often a variable length structure. For example, a shipment received could contain th...

What is DDL, dml?

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

Answered by: SHIMAR on: Apr 16th, 2012

DDL is used to create, alter and truncate
DML is used to insert, update, delete and drop

Answered by: Venki on: Dec 19th, 2011

DDL means "Data Definition Language". SELECT, UPDATE, INSERT belong to DML, which is "Data Modification Language". DDL is all the other commands -- for example, CREATE TABLE.

Oracle - change columns to row

Asked By: sweetpush.07je | Asked On: Oct 8th, 2011

What is the query to change the rows into column and columns into row

Answered by: oracle2066 on: Dec 28th, 2011

Alter table A add column address1 varchar2(10);

Answered by: Manas Kumar Hati on: Oct 31st, 2011

Unsing Pivot Query

How to calculate the row length?

Asked By: aadhisrilatha | Asked On: Jun 9th, 2008

Answered by: Lokesh M on: Dec 7th, 2011

You can make use of VSIZE function to get the number of bytes in the internal representation of individual field. However this cannot be applied on fields that has BLOB data type and in such case you have to use dbms_lob.getlength function on BLOB data type field.

In what situation you have to prefer offline and online backups ?

Asked By: karthikdb | Asked On: May 20th, 2011

Answered by: Lokesh M on: Dec 6th, 2011

Online backup also known as hot backup / open backup can be performed even the database is open and while users are working and is available for read and write activity. To perform Online backup, the ...

Recovery catalog

Asked By: santisofttuch | Asked On: Jan 11th, 2010

How will you find-out if your database is using recovery catalog or not?

Answered by: Lokesh M on: Dec 6th, 2011

There are few ways through which you would find if your database uses recovery catalog: Check backup scripts and findout if the scripts are making any connection to a recovery catalog. Check tnsnames...

Sort_area_size usage

Asked By: raghava.727 | Asked On: Jun 10th, 2011

Why we use sort_area_size parameter in init.Ora file?Kindly let me know?

Answered by: Lokesh M on: Dec 6th, 2011

SORT_AREA_SIZE is one of the deferred Oracle Server Parameters which is set in init.ora. Its value as bytes (integer) sets the size of in-memory sort work area. The default is 64K and the maximum valu...

Archivelog mode

Asked By: shanthiavari | Asked On: Jul 18th, 2008

Should you take the backup of logfiles if the database is running in archivelog mode?

Answered by: Shaikh Ziya on: Nov 22nd, 2011

Yes We can Take of Controlfile Online Mode Just
Fire The Command alter database backup controlfile trace And
alter database backup controlfile as trace '/Location where u want 2 take backup of ctlfile/';

Answered by: sulbha singh on: Sep 22nd, 2011

No, we can not take backup of redo log files even database is running in archive log mode because of inconsistency

How to recover the datafile without having backup?

Asked By: Saravana | Asked On: Aug 18th, 2011

Take cold backup and recover

Answered by: shoaib1786 on: Nov 5th, 2011

just create the datafile with same location mention in ur controlfile and recover the datafile ... Its simple.

Answered by: naveen on: Sep 19th, 2011

alter database create datafile 'and give the datafile location and /name' by using this command we can recover the datafile without backup also

How do you show Oracle free sga memory?

Asked By: manueljrd | Asked On: Sep 4th, 2011

Answered by: Harieshsivam on: Oct 13th, 2011

show sga;

we can see the memory of SGA space

What is the difference between database refresh and database cloning

Asked By: krishna | Asked On: Feb 1st, 2007

Answered by: Neo on: Oct 11th, 2011

Whats the process of refresh ? ( I mean steps). Do you export/import or we take a differential backup and restore on test DB ? Any links to an article will be of great help.

Answered by: dsp on: Aug 18th, 2011

Hi, There is little diff between them. First we clone the d.b totally(homepath,datafiles,data.....etc) from Prod to Test, where as in D.B Refresh we just refresh the additional data which is in p...

Disk space estimation

Asked By: Crescience | Asked On: Sep 26th, 2011

For this assignment task you will design a database for capturing student’s assessments marks and estimate the required amount of space. suppose we suppose that there are 5000 students at our institution and that on average each student registers for 5 courses in a semester design a database that...

How to use "alter database begin backup;" command in Oracle 9i.

Asked By: support dba 8910 | Asked On: Nov 25th, 2007

Answered by: sudhakar on: Sep 25th, 2011

1- When BEGIN BACKUP is issued: The hot backup flag in the datafile headers is set, so that the copy is identified to be a hot backup copy. This is to manage the backup consistency issue when the cop...

Answered by: tykarthick on: Oct 6th, 2009

Sql>alter database begin backup;The above query is used to freeze the header of all datafiles belongs to tablespace in that particular database.Freeze means lock i.e during backup no data's wil...

Kill multiple sessions

Asked By: gyanudba | Asked On: Jul 6th, 2011

If have 50 inactive session and I want to to kill all session at once tell me the procedure to kill all 50 session at once

Answered by: muthu5047 on: Sep 3rd, 2011

in our project to kill all the inactive session we use the following script.. run the sql script given below it will give u all inactive sessions sid and serial no and redirect output to (inactive_kil...

Alert log file

Asked By: gyanudba | Asked On: Jul 15th, 2011

How to see some selected lines in alert log file in UNIX environment. like tail -100f alert_sid.Log we can see only 100 lines but I need to see the lines between 300 to 500 from down .

Answered by: muthu5047 on: Sep 3rd, 2011

Assuming you need lines 20 to 40,

sed -n '20,40p' file_name

or

awk 'FNR>=20 && FNR<=40' file

Hope it will help!

How do you sort a table?

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

Answered by: dineshctbm on: Jul 2nd, 2011

Order By is a keyword which is using for sort the table records either ascending or desending.For eg,for ascending,Select emp_name,emp_identity from emp order by emp_identity;Select emp_name...

Answered by: nalinicisf on: May 19th, 2008

contents or data of the table can be sorted by using clause ORDER BY  in SELECT statement.By default the table is in ASCENDING order.SYN: SELECT  * from [table name]    &...

Database connections

Asked By: sam_gawde | Asked On: Oct 14th, 2009

How will you determine the number of connections connected to your database?

Answered by: Anupama Kanakam on: May 29th, 2011

We can also see these connections on Activity monitor. But you need permissions to see it.

Answered by: jsavarin on: Nov 8th, 2010

We can determine the number of connections by using this - SELECT COUNT(*) FROM v$session;

Do you need a commit after DDL statements?

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

Answered by: cmanne on: Mar 25th, 2007

There is no need to issue commit command after executing DDL statements as the DDL statements are commited automatically

Answered by: SUBBU M on: May 25th, 2006

 Dear Mam/Sir ,

NO NEED TO COMMIT AGAIN USING DDL STATEMENTS .

First | Prev | | Next | Last Page

 

 

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us:
 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, click "Subscribe".