<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Technical Interview Questions &#187; Oracle Interview Questions &amp; Answers</title>
	<atom:link href="http://www.technicalinterview.info/category/oracle-interview-questions-answers/feed" rel="self" type="application/rss+xml" />
	<link>http://www.technicalinterview.info</link>
	<description>Java Interview Questions &#124; IT interview questions &#124; Software Testing Interview questions &#124; .Net Interview Questions &#124; Job Interview Questions &#38; Answers &#124; Tough Interview Questions &#124; Technology Interview Questions &#124; Tech Interview Questions &#124; Testing Interview Questions &#124; SAP Interview Questions &#124; ABAP Interview Questions &#124; Data Warehousing Interview Questions</description>
	<pubDate>Tue, 02 Sep 2008 08:33:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Oracle Interview Questions &#038; Answers</title>
		<link>http://www.technicalinterview.info/oracle-interview-questions-answers/</link>
		<comments>http://www.technicalinterview.info/oracle-interview-questions-answers/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 11:55:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle Interview Questions &amp; Answers]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/oracle-interview-questions-answers/</guid>
		<description><![CDATA[What command would you use to create a backup control file?
Alter database backup control file to trace.
Give the stages of instance startup to a usable state where normal users may access it.
STARTUP NOMOUNT - Instance startup
STARTUP MOUNT - The database is mounted
STARTUP OPEN - The database is opened
What column differentiates the V$ views to the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What command would you use to create a backup control file?</strong></p>
<p>Alter database backup control file to trace.</p>
<p><strong>Give the stages of instance startup to a usable state where normal users may access it.</strong></p>
<p>STARTUP NOMOUNT - Instance startup<br />
STARTUP MOUNT - The database is mounted<br />
STARTUP OPEN - The database is opened</p>
<p><strong>What column differentiates the V$ views to the GV$ views and how?</strong></p>
<p>The INST_ID column which indicates the instance in a RAC environment the information came from.</p>
<p><strong>How would you go about generating an EXPLAIN plan?</strong></p>
<p>Create a plan table with utlxplan.sql.<br />
Use the explain plan set statement_id = &#8216;tst1&#8242; into plan_table for a SQL statement<br />
Look at the explain plan with utlxplp.sql or utlxpls.sql</p>
<p><strong>How would you go about increasing the buffer cache hit ratio?</strong></p>
<p>Use the buffer cache advisory over a given workload and then query the v$db_cache_advice table. If a change was necessary then I would use the alter system set db_cache_size command.</p>
<p><strong>Explain an ORA-01555</strong></p>
<p>You get this error when you get a snapshot too old within rollback. It can usually be solved by increasing the undo retention or increasing the size of rollbacks. You should also look at the logic involved in the application getting the error message.</p>
<p><strong>Explain the difference between $ORACLE_HOME and $ORACLE_BASE.</strong></p>
<p>ORACLE_BASE is the root directory for oracle. ORACLE_HOME located beneath ORACLE_BASE is where the oracle products reside.</p>
<p><strong>Describe the difference between a procedure, function and anonymous pl/sql block.</strong></p>
<p>Candidate should mention use of DECLARE statement, a function must return a value while a procedure doesn&#8217;t have to.</p>
<p><strong>What is a mutating table error and how can you get around it?</strong></p>
<p>This happens with triggers. It occurs because the trigger is trying to update a row it is currently using. The usual fix involves either use of views or temporary tables so the database is selecting from one while updating the other.</p>
<p><strong>Describe the use of %ROWTYPE and %TYPE in PL/SQL</strong></p>
<p>%ROWTYPE allows you to associate a variable with an entire table row. The %TYPE associates a variable with a single column type.</p>
<p><strong>What packages (if any) has Oracle provided for use by developers?</strong></p>
<p>Oracle provides the DBMS_ series of packages. There are many which developers should be aware of such as DBMS_SQL, DBMS_PIPE, DBMS_TRANSACTION, DBMS_LOCK, DBMS_ALERT, DBMS_OUTPUT, DBMS_JOB, DBMS_UTILITY, DBMS_DDL, UTL_FILE. If they can mention a few of these and describe how they used them, even better. If they include the SQL routines provided by Oracle, great, but not really what was asked.</p>
<p><strong>Describe the use of PL/SQL tables</strong></p>
<p>PL/SQL tables are scalar arrays that can be referenced by a binary integer. They can be used to hold values for use in later queries or calculations. In Oracle 8 they will be able to be of the %ROWTYPE designation, or RECORD.</p>
<p><strong>When is a declare statement needed ?</strong></p>
<p>The DECLARE statement is used in PL/SQL anonymous blocks such as with stand alone, non-stored PL/SQL procedures. It must come first in a PL/SQL stand alone file if it is used.</p>
<p><strong>In what order should a open/fetch/loop set of commands in a PL/SQL block be implemented if you use the %NOTFOUND cursor variable in the exit when statement? Why?</strong></p>
<p>OPEN then FETCH then LOOP followed by the exit when. If not specified in this order will result in the final return being done twice because of the way the %NOTFOUND is handled by PL/SQL.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/oracle-interview-questions-answers/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
