<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>PROBLEM WITH ANSWERS</title><link>http://ckeyword.blogspot.com/</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CProgrammingLanguageQuestionWithAnswer" /><description>C C++ C#  JAVA ASP ASP.NET XML PHP SQL ORACAL JSP HTML JAVASCRIPT CSS  ARE IN THE BLOG AND  programming Language Question with answer,PHP pages,JSP pages ,HTML interview, question,Placement  interview question ,Placement Question with solution ,Technical Placement question,Technical Placement question with Answer,Technical Placement question with Solution or other Links</description><language>en</language><managingEditor>noreply@blogger.com (Jiya)</managingEditor><lastBuildDate>Wed, 01 Oct 2008 13:04:49 PDT</lastBuildDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">305</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">25</openSearch:itemsPerPage><feedburner:info uri="cprogramminglanguagequestionwithanswer" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:subtitle>C C++ C# JAVA ASP ASP.NET XML PHP SQL ORACAL JSP HTML JAVASCRIPT CSS ARE IN THE BLOG AND programming Language Question with answer,PHP pages,JSP pages ,HTML interview, question,Placement interview question ,Placement Question with solution ,Technical Plac</itunes:subtitle><itunes:summary>C C++ C# JAVA ASP ASP.NET XML PHP SQL ORACAL JSP HTML JAVASCRIPT CSS ARE IN THE BLOG AND programming Language Question with answer,PHP pages,JSP pages ,HTML interview, question,Placement interview question ,Placement Question with solution ,Technical Placement question,Technical Placement question with Answer,Technical Placement question with Solution or other Links</itunes:summary><item><title>What is a join ? Explain the different Types of joins ?</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/HBmG0X9pa9s/what-is-join-explain-different-types-of.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:53:20 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-7100246053584432312</guid><description>&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a join ? Explain the different types of joins ? &lt;/b&gt;&lt;br /&gt;Join is a query which retrieves related columns or rows from multiple tables.Self Join - Joining the table with itself.Equi Join - Joining two tables by equating two common columns.Non-Equi Join - Joining two tables by equating two common columns.Outer Join - Joining two tables in such a way that query can also retrieve rows that do not have corresponding join value in the other table.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;If an unique key constraint on DATE column is created, will it validate the rows that are inserted with SYSDATE ? &lt;/b&gt;&lt;br /&gt;It won't, Because SYSDATE format contains time attached with it.&lt;/p&gt;&lt;p class="answers"&gt;page 20&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;How does one stop and start the OMS? (for DBA)&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;Use the following command sequence to stop and start the OMS (Oracle Management Server):&lt;br /&gt;oemctl start oms&lt;br /&gt;oemctl status oms sysman/oem_temp&lt;br /&gt;oemctl stop oms sysman/oem_temp&lt;br /&gt;Windows NT/2000 users can just stop and start the required services. The default OEM administrator is "sysman" with a password of "oem_temp".&lt;br /&gt;NOTE: Use command oemctrl instead of oemctl for Oracle 8i and below.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is an Integrity Constraint ? &lt;/b&gt;&lt;br /&gt;Integrity constraint is a rule that restricts values to a column in a table.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one create a repository? (for DBA)&lt;/b&gt;&lt;br /&gt;For OEM v2 and above, start the Oracle Enterprise Manager Configuration Assistant (emca on Unix) to create and configure the management server and repository. Remember to setup a backup for the repository database after creating it.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;If a View on a single base table is manipulated will the changes be reflected on the base table ? &lt;/b&gt;&lt;br /&gt;If changes are made to the tables which are base tables of a view will the changes be reference on the view.&lt;br /&gt;&lt;br /&gt;The following describes means to create a OEM V1.x (very old!!!) repository on WindowsNT:&lt;br /&gt;&lt;br /&gt;. Create a tablespace that would hold the repository data. A size between 200- 250 MB would be ideal. Let us call it Dummy_Space.&lt;br /&gt;. Create an Oracle user who would own this repository. Assign DBA, SNMPAgent, Exp_Full_database, Imp_Full_database roles to this user. Lets call this user Dummy_user. Assign Dummy_Space as the default tablespace.&lt;br /&gt;. Create an operating system user with the same name as the Oracle username. I.e. Dummy_User. Add 'Log on as a batch job' under advanced rights in User manager.&lt;br /&gt;. Fire up Enterprise manager and log in as Dummy_User and enter the password. This would trigger the creation of the repository. From now on, Enterprise manager is ready to accept jobs.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a database link ? &lt;/b&gt;&lt;br /&gt;Database Link is a named path through which a remote database can be accessed.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aBUUW2HzeaOMAwbd9u0Qir5_GUA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aBUUW2HzeaOMAwbd9u0Qir5_GUA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aBUUW2HzeaOMAwbd9u0Qir5_GUA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aBUUW2HzeaOMAwbd9u0Qir5_GUA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/HBmG0X9pa9s" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:53:20.173-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/what-is-join-explain-different-types-of.html</feedburner:origLink></item><item><title>How does one list one's databases in the OEM Console? (for DBA)</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/j0FvYmOfgJI/how-does-one-list-ones-databases-in-oem.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:52:07 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-5982273535322179905</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one list one's databases in the OEM Console? (for DBA)&lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Follow these steps to discover databases and other services from the OEM Console:&lt;br /&gt;1. Ensure the GLOBAL_DBNAME parameter is set for all databases in your LISTENER.ORA file (optional). These names will be listed in the OEM Console. Please note that names entered are case sensitive. A portion of a listener.ora file:&lt;br /&gt;(SID_DESC =&lt;br /&gt;(GLOBAL_DBNAME = DB_name_for_OEM)&lt;br /&gt;(SID_NAME = ...&lt;br /&gt;2. Start the Oracle Intelligent Agent on the machine you want to discover. See section "How does one start the Oracle Intelligent Agent?".&lt;br /&gt;3. Start the OEM Console, navigate to menu "Navigator/ Discover Nodes". The OEM Discovery Wizard will guide you through the process of discovering your databases and other services.&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is CYCLE/NO CYCLE in a Sequence ? &lt;/b&gt;&lt;br /&gt;CYCLE specifies that the sequence continues to generate values after reaching either maximum or minimum value. After pan ascending sequence reaches its maximum value, it generates its minimum value. After a descending sequence reaches its minimum, it generates its maximum.NO CYCLE specifies that the sequence cannot generate more values after reaching its maximum or minimum value.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is correlated sub-query ? &lt;/b&gt;&lt;br /&gt;Correlated sub query is a sub query which has reference to the main query.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the data types allowed in a table ? &lt;/b&gt;&lt;br /&gt;CHAR,VARCHAR2,NUMBER,DATE,RAW,LONG and LONG RAW.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is difference between CHAR and VARCHAR2 ? What is the maximum SIZE allowed for each type ? &lt;/b&gt;&lt;br /&gt;CHAR pads blank spaces to the maximum length. VARCHAR2 does not pad blank spaces. For CHAR it is 255 and 2000 for VARCHAR2.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can a view be updated/inserted/deleted? If Yes under what conditions ? &lt;/b&gt;&lt;br /&gt;A View can be updated/deleted/inserted if it has only one base table if the view is based on columns from one or more tables then insert, update and delete is not possible.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the different types of Coordinations of the Master with the Detail block? &lt;/b&gt;&lt;br /&gt;POPULATE_GROUP(function)&lt;br /&gt;POPULATE_GROUP_WITH_QUERY(function)&lt;br /&gt;SET_GROUP_CHAR_CELL(procedure)&lt;br /&gt;SET_GROUPCELL(procedure)&lt;br /&gt;SET_GROUP_NUMBER_CELL(procedure)&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Use the ADD_GROUP_COLUMN function to add a column to a record group that was created at design time? &lt;/span&gt;&lt;br /&gt;I) TRUE II) FALSE &lt;/b&gt;&lt;br /&gt;II) FALSE&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Use the ADD_GROUP_ROW procedure to add a row to a static record group? &lt;/span&gt;&lt;br /&gt;I) TRUE II) FALSE &lt;/b&gt;&lt;br /&gt;I) FALSE&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/9chIzLZWQJ8nJXGISx8YhBJVeHE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9chIzLZWQJ8nJXGISx8YhBJVeHE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/9chIzLZWQJ8nJXGISx8YhBJVeHE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9chIzLZWQJ8nJXGISx8YhBJVeHE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/j0FvYmOfgJI" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:52:07.794-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/how-does-one-list-ones-databases-in-oem.html</feedburner:origLink></item><item><title>maxvalue.sql Select the Nth Highest value from a table</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/gS4MTkQGwpk/maxvaluesql-select-nth-highest-value.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:51:17 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-3406416439168005397</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;maxvalue.sql Select the Nth Highest value from a table? &lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 102, 0);"&gt;select level, max('col_name') from my_table where level = '&amp;amp;n' connect by prior ('col_name') &gt; 'col_name')&lt;/span&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;/span&gt;group by level;&lt;br /&gt;Example:&lt;br /&gt;Given a table called emp with the following columns:&lt;br /&gt;-- id number&lt;br /&gt;-- name varchar2(20)&lt;br /&gt;-- sal number&lt;br /&gt;--&lt;br /&gt;-- For the second highest salary:&lt;br /&gt;-- select level, max(sal) from emp&lt;br /&gt;-- where level=2&lt;br /&gt;-- connect by prior sal &gt; sal&lt;br /&gt;-- group by level&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Find out nth highest salary from emp table? &lt;/b&gt;&lt;br /&gt;SELECT DISTINCT (a.sal) FROM EMP A WHERE &amp;amp;N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B WHERE a.sal&lt;=b.sal); For E.g.:- Enter value for n: 2 SAL --------- 3700&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Suppose a customer table is having different columns like customer no, payments.What will be the query to select top three max payments? &lt;/b&gt;&lt;br /&gt;SELECT customer_no, payments from customer C1&lt;br /&gt;WHERE 3&lt;=(SELECT COUNT(*) from customer C2 WHERE C1.payment &lt;= C2.payment)&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How you will avoid your query from using indexes? &lt;/b&gt;&lt;br /&gt;SELECT * FROM emp&lt;br /&gt;Where emp_no+' '=12345;&lt;br /&gt;i.e you have to concatenate the column name with space within codes in the where condition.&lt;br /&gt;SELECT /*+ FULL(a) */ ename, emp_no from emp&lt;br /&gt;where emp_no=1234;&lt;br /&gt;i.e using HINTS&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What utility is used to create a physical backup? &lt;/b&gt;&lt;br /&gt;Either rman or alter tablespace begin backup will do..&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cAJa1ciWXDi8H8jNdn3hjhQVGEs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cAJa1ciWXDi8H8jNdn3hjhQVGEs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cAJa1ciWXDi8H8jNdn3hjhQVGEs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cAJa1ciWXDi8H8jNdn3hjhQVGEs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/gS4MTkQGwpk" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:51:17.455-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/maxvaluesql-select-nth-highest-value.html</feedburner:origLink></item><item><title>Back ground processes in Oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/utIoakxd5zM/back-ground-processes-in-oracle.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:50:17 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-8645432674363454627</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the Back ground processes in Oracle and what are they. &lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;This is one of the most frequently asked question.There are basically 9 Processes but in a general system we need to mention the first five background processes.They do the house keeping activities for the Oracle and are common in any system.&lt;br /&gt;The various background processes in oracle are&lt;br /&gt;a) Data Base Writer(DBWR) :: Data Base Writer Writes Modified blocks from Database buffer cache to Data Files.This is required since the data is not written whenever a transaction is committed.&lt;br /&gt;b)LogWriter(LGWR) :: LogWriter writes the redo log entries to disk. Redo Log data is generated in redo log buffer of SGA. As transaction commits and log buffer fills, LGWR writes log entries into a online redo log file.&lt;br /&gt;c) System Monitor(SMON) :: The System Monitor performs instance recovery at instance startup. This is useful for recovery from system failure&lt;br /&gt;d)Process Monitor(PMON) :: The Process Monitor performs process recovery when user Process fails. Pmon Clears and Frees resources that process was using.&lt;br /&gt;e) CheckPoint(CKPT) :: At Specified times, all modified database buffers in SGA are written to data files by DBWR at Checkpoints and Updating all data files and control files of database to indicate the most recent checkpoint&lt;br /&gt;f)Archieves(ARCH) :: The Archiver copies online redo log files to archival storal when they are busy.&lt;br /&gt;g) Recoveror(RECO) :: The Recoveror is used to resolve the distributed transaction in network&lt;br /&gt;h) Dispatcher (Dnnn) :: The Dispatcher is useful in Multi Threaded Architecture&lt;br /&gt;i) Lckn :: We can have upto 10 lock processes for inter instance locking in parallel sql.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How many types of Sql Statements are there in Oracle &lt;/b&gt;&lt;br /&gt;There are basically 6 types of sql statments.They are&lt;br /&gt;a) Data Definition Language(DDL) :: The DDL statements define and maintain objects and drop objects.&lt;br /&gt;b) Data Manipulation Language(DML) :: The DML statements manipulate database data.&lt;br /&gt;c) Transaction Control Statements :: Manage change by DML&lt;br /&gt;d) Session Control :: Used to control the properties of current session enabling and disabling roles and changing .e.g. :: Alter Statements, Set Role&lt;br /&gt;e) System Control Statements :: Change Properties of Oracle Instance .e.g.:: Alter System&lt;br /&gt;f) Embedded Sql :: Incorporate DDL, DML and T.C.S in Programming Language.e.g:: Using the Sql Statements in languages such as 'C', Open, Fetch, execute and close&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Transaction in Oracle ?&lt;/b&gt;&lt;br /&gt;A transaction is a Logical unit of work that compromises one or more SQL Statements executed by a single User. According to ANSI, a transaction begins with first executable statement and ends when it is explicitly committed or rolled back.&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jz6CWAaKMAHaCvW_cZk8CEfYxMA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jz6CWAaKMAHaCvW_cZk8CEfYxMA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jz6CWAaKMAHaCvW_cZk8CEfYxMA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jz6CWAaKMAHaCvW_cZk8CEfYxMA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/utIoakxd5zM" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:50:17.943-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/back-ground-processes-in-oracle.html</feedburner:origLink></item><item><title>Key Words Used in Oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/sZc9P9zNhIg/key-words-used-in-oracle.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:49:32 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-5521211457977173106</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Key Words Used in Oracle &lt;/b&gt;&lt;br /&gt;The Key words that are used in Oracle are ::&lt;br /&gt;a) Committing :: A transaction is said to be committed when the transaction makes permanent changes resulting from the SQL statements.&lt;br /&gt;b) Rollback :: A transaction that retracts any of the changes resulting from SQL statements in Transaction.&lt;br /&gt;c) SavePoint :: For long transactions that contain many SQL statements, intermediate markers or savepoints are declared. Savepoints can be used to divide a transaction into smaller points.&lt;br /&gt;d) Rolling Forward :: Process of applying redo log during recovery is called rolling forward.&lt;br /&gt;e) Cursor :: A cursor is a handle ( name or a pointer) for the memory associated with a specific stamen. A cursor is basically an area allocated by Oracle for executing the Sql Statement. Oracle uses an implicit cursor statement for Single row query and Uses Explicit cursor for a multi row query.&lt;br /&gt;f) System Global Area(SGA) :: The SGA is a shared memory region allocated by the Oracle that contains Data and control information for one Oracle Instance. It consists of Database Buffer Cache and Redo log Buffer.&lt;br /&gt;g) Program Global Area (PGA) :: The PGA is a memory buffer that contains data and control information for server process.&lt;br /&gt;g) Database Buffer Cache :: Database Buffer of SGA stores the most recently used blocks of database data. The set of database buffers in an instance is called Database Buffer Cache.&lt;br /&gt;h) Redo log Buffer :: Redo log Buffer of SGA stores all the redo log entries.&lt;br /&gt;i) Redo Log Files :: Redo log files are set of files that protect altered database data in memory that has not been written to Data Files. They are basically used for backup when a database crashes.&lt;br /&gt;j) Process :: A Process is a 'thread of control' or mechanism in Operating System that executes series of steps.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What are snap shots and views&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;Snapshots are mirror or replicas of tables. Views are built using the columns from one or more tables. The Single Table View can be updated but the view with multi table cannot be updated&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the OOPS concepts in Oracle. &lt;/b&gt;&lt;br /&gt;Oracle does implement the OOPS concepts. The best example is the Property Classes. We can categorize the properties by setting the visual attributes and then attach the property classes for the objects. OOPS supports the concepts of objects and classes and we can consider the property classes as classes and the items as objects&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between candidate key, unique key and primary key &lt;/b&gt;&lt;br /&gt;Candidate keys are the columns in the table that could be the primary keys and the primary key is the key that has been selected to identify the rows. Unique key is also useful for identifying the distinct rows in the table.)&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is concurrency &lt;/b&gt;&lt;br /&gt;Concurrency is allowing simultaneous access of same data by different users. Locks useful for accesing the database are&lt;br /&gt;a) Exclusive&lt;br /&gt;The exclusive lock is useful for locking the row when an insert,update or delete is being done.This lock should not be applied when we do only select from the row.&lt;br /&gt;b) Share lock&lt;br /&gt;We can do the table as Share_Lock as many share_locks can be put on the same resource.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Previleges and Grants &lt;/b&gt;&lt;br /&gt;Previleges are the right to execute a particulare type of SQL statements. e.g :: Right to Connect, Right to create, Right to resource Grants are given to the objects so that the object might be accessed accordingly.The grant has to be given by the owner of the object&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/f6a4tIXBFS_5HDMGHKotOR8zcCg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/f6a4tIXBFS_5HDMGHKotOR8zcCg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/f6a4tIXBFS_5HDMGHKotOR8zcCg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/f6a4tIXBFS_5HDMGHKotOR8zcCg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/sZc9P9zNhIg" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:49:32.229-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/key-words-used-in-oracle.html</feedburner:origLink></item><item><title>Table Space,Data Files,Parameter File, Control Files  in oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/ZYwwDkdYCGE/table-spacedata-filesparameter-file.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:48:46 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-8887364823018916639</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Table Space,Data Files,Parameter File, Control Files &lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Table Space :: The table space is useful for storing the data in the database.When a database is created two table spaces are created.&lt;br /&gt;a) System Table space :: This data file stores all the tables related to the system and dba tables&lt;br /&gt;b) User Table space :: This data file stores all the user related tables&lt;br /&gt;We should have seperate table spaces for storing the tables and indexes so that the access is fast.&lt;br /&gt;Data Files :: Every Oracle Data Base has one or more physical data files.They store the data for the database.Every datafile is associated with only one database.Once the Data file is created the size cannot change.To increase the size of the database to store more data we have to add data file.&lt;br /&gt;Parameter Files :: Parameter file is needed to start an instance.A parameter file contains the list of instance configuration parameters e.g.::&lt;br /&gt;db_block_buffers = 500&lt;br /&gt;db_name = ORA7&lt;br /&gt;db_domain = u.s.acme lang&lt;br /&gt;Control Files :: Control files record the physical structure of the data files and redo log files&lt;br /&gt;They contain the Db name, name and location of dbs, data files ,redo log files and time stamp.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Physical Storage of the Data &lt;/b&gt;&lt;br /&gt;The finest level of granularity of the data base are the data blocks.&lt;br /&gt;Data Block :: One Data Block correspond to specific number of physical database space&lt;br /&gt;Extent :: Extent is the number of specific number of contigious data blocks.&lt;br /&gt;Segments :: Set of Extents allocated for Extents. There are three types of Segments&lt;br /&gt;a) Data Segment :: Non Clustered Table has data segment data of every table is stored in cluster data segment&lt;br /&gt;b) Index Segment :: Each Index has index segment that stores data&lt;br /&gt;c) Roll Back Segment :: Temporarily store 'undo' information&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the Pct Free and Pct Used &lt;/b&gt;&lt;br /&gt;Pct Free is used to denote the percentage of the free space that is to be left when creating a table. Similarly Pct Used is used to denote the percentage of the used space that is to be used when creating a table&lt;br /&gt;eg.:: Pctfree 20, Pctused 40&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Row Chaining &lt;/b&gt;&lt;br /&gt;The data of a row in a table may not be able to fit the same data block.Data for row is stored in a chain of data blocks .&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a 2 Phase Commit &lt;/b&gt;&lt;br /&gt;Two Phase commit is used in distributed data base systems. This is useful to maintain the integrity of the database so that all the users see the same values. It contains DML statements or Remote Procedural calls that reference a remote object. There are basically 2 phases in a 2 phase commit.&lt;br /&gt;a) Prepare Phase :: Global coordinator asks participants to prepare&lt;br /&gt;b) Commit Phase :: Commit all participants to coordinator to Prepared, Read only or abort Reply&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between deleting and truncating of tables &lt;/b&gt;&lt;br /&gt;Deleting a table will not remove the rows from the table but entry is there in the database dictionary and it can be retrieved But truncating a table deletes it completely and it cannot be retrieved.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are mutating tables &lt;/b&gt;&lt;br /&gt;When a table is in state of transition it is said to be mutating. eg :: If a row has been deleted then the table is said to be mutating and no operations can be done on the table except select.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are Codd Rules &lt;/b&gt;&lt;br /&gt;Codd Rules describe the ideal nature of a RDBMS. No RDBMS satisfies all the 12 codd rules and Oracle Satisfies 11 of the 12 rules and is the only Rdbms to satisfy the maximum number of rules.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/d64eVJZO0DEXxkQIXxvsFwlb5K4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/d64eVJZO0DEXxkQIXxvsFwlb5K4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/d64eVJZO0DEXxkQIXxvsFwlb5K4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/d64eVJZO0DEXxkQIXxvsFwlb5K4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/ZYwwDkdYCGE" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:48:46.811-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/table-spacedata-filesparameter-file.html</feedburner:origLink></item><item><title>What is Normalisation ? - oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/kNUKsUQp7uo/what-is-normalisation-oracle.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:47:56 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-2877787094810838476</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Normalisation ?&lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Normalisation is the process of organising the tables to remove the redundancy.There are mainly 5 Normalisation rules.&lt;br /&gt;a) 1 Normal Form :: A table is said to be in 1st Normal Form when the attributes are atomic&lt;br /&gt;b) 2 Normal Form :: A table is said to be in 2nd Normal Form when all the candidate keys are dependant on the primary key&lt;br /&gt;c) 3rd Normal Form :: A table is said to be third Normal form when it is not dependant transitively&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the Difference between a post query and a pre query &lt;/b&gt;&lt;br /&gt;A post query will fire for every row that is fetched but the pre query will fire only once.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Deleting the Duplicate rows in the table &lt;/b&gt;&lt;br /&gt;We can delete the duplicate rows in the table by using the Rowid&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can U disable database trigger? How? &lt;/b&gt;&lt;br /&gt;Yes. With respect to table&lt;br /&gt;ALTER TABLE TABLE&lt;br /&gt;[[ DISABLE all_trigger ]]&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GHHpDIgFUfSMd9RRKWTpt9v01Lc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GHHpDIgFUfSMd9RRKWTpt9v01Lc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GHHpDIgFUfSMd9RRKWTpt9v01Lc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GHHpDIgFUfSMd9RRKWTpt9v01Lc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/kNUKsUQp7uo" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:47:56.800-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/what-is-normalisation-oracle.html</feedburner:origLink></item><item><title>What is pseudo columns ? Name them? - oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/kbGHkqoc4JM/what-is-pseudo-columns-name-them-oracle.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:46:57 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-5017479715649334644</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is pseudo columns ? Name them? &lt;/b&gt;&lt;br /&gt;A pseudocolumn behaves like a table column, but is not actually stored in the table. You can select from pseudocolumns, but you cannot insert, update, or delete their values. This section describes these pseudocolumns:&lt;br /&gt;* CURRVAL&lt;br /&gt;* NEXTVAL&lt;br /&gt;* LEVEL&lt;br /&gt;* ROWID&lt;br /&gt;* ROWNUM&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How many columns can table have? &lt;/b&gt;&lt;br /&gt;The number of columns in a table can range from 1 to 254.&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Is space acquired in blocks or extents ? &lt;/b&gt;&lt;br /&gt;In extents .&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is clustered index? &lt;/b&gt;&lt;br /&gt;In an indexed cluster, rows are stored together based on their cluster key values . Can not applied for HASH.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the datatypes supported By oracle (INTERNAL)? &lt;/b&gt;&lt;br /&gt;Varchar2, Number,Char , MLSLABEL.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are attributes of cursor? &lt;/b&gt;&lt;br /&gt;%FOUND , %NOTFOUND , %ISOPEN,%ROWCOUNT&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Can you use select in FROM clause of SQL select ? &lt;/span&gt;&lt;br /&gt;&lt;/b&gt;Yes.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WYXU1CL4uCaY-F02VBIHbpBGXVg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WYXU1CL4uCaY-F02VBIHbpBGXVg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WYXU1CL4uCaY-F02VBIHbpBGXVg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WYXU1CL4uCaY-F02VBIHbpBGXVg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/kbGHkqoc4JM" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:46:57.131-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/what-is-pseudo-columns-name-them-oracle.html</feedburner:origLink></item><item><title>trigger are created when master -detail relay</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/Cf9pwWcHAZA/trigger-are-created-when-master-detail.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:46:13 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-135638257177930488</guid><description>&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;Which trigger are created when master -detail relay?&lt;/span&gt;&lt;span class="answers"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;master delete property&lt;br /&gt;* NON-ISOLATED (default)&lt;br /&gt;a) on check delete master&lt;br /&gt;b) on clear details&lt;br /&gt;c) on populate details&lt;br /&gt;* ISOLATED&lt;br /&gt;a) on clear details&lt;br /&gt;b) on populate details&lt;br /&gt;* CASCADE&lt;br /&gt;a) per-delete&lt;br /&gt;b) on clear details&lt;br /&gt;c) on populate details&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;which system variables can be set by users? &lt;/b&gt;&lt;br /&gt;SYSTEM.MESSAGE_LEVEL&lt;br /&gt;SYSTEM.DATE_THRESHOLD&lt;br /&gt;SYSTEM.EFFECTIVE_DATE&lt;br /&gt;SYSTEM.SUPPRESS_WORKING&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are object group? &lt;/b&gt;&lt;br /&gt;An object group is a container for a group of objects. You define an object group when you want to package related objects so you can copy or reference them in another module.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are referenced objects? &lt;/b&gt;&lt;br /&gt;Referencing allows you to create objects that inherit their functionality and appearance from other objects. Referencing an object is similar to copying an object, except that the resulting reference object maintains a link to its source object. A reference object automatically inherits any changes that have been made to the source object when you open or regenerate the module that contains the reference object.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can you store objects in library? &lt;/b&gt;&lt;br /&gt;Referencing allows you to create objects that inherit their functionality and appearance from other objects. Referencing an object is similar to copying an object, except that the resulting reference object maintains a link to its source object. A reference object automatically inherits any changes that have been made to the source object when you open or regenerate the module that contains the reference object.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Is forms 4.5 object oriented tool ? why? &lt;/b&gt;&lt;br /&gt;yes , partially. 1) PROPERTY CLASS - inheritance property 2) OVERLOADING : procedures and functions.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZfjQWqP1MvAzz-l4orw88gEERh4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZfjQWqP1MvAzz-l4orw88gEERh4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZfjQWqP1MvAzz-l4orw88gEERh4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZfjQWqP1MvAzz-l4orw88gEERh4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/Cf9pwWcHAZA" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:46:13.163-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/trigger-are-created-when-master-detail.html</feedburner:origLink></item><item><title>DDL in forms  oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/Sxo0KZp4i2w/ddl-in-forms-oracle.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:44:41 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-6378942908686491839</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can you issue DDL in forms? &lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;yes, but you have to use FORMS_DDL.&lt;br /&gt;Referencing allows you to create objects that inherit their functionality and appearance from other objects. Referencing an object is similar to copying an object, except that the resulting reference object maintains a link to its source object. A reference object automatically inherits any changes that have been made to the source object when you open or regenerate the module that contains the reference object. Any string expression up to 32K:&lt;br /&gt;- a literal&lt;br /&gt;- an expression or a variable representing the text of a block of dynamically created PL/SQL code&lt;br /&gt;- a DML statement or&lt;br /&gt;- a DDL statement&lt;br /&gt;Restrictions:&lt;br /&gt;The statement you pass to FORMS_DDL may not contain bind variable references in the string, but the values of bind variables can be concatenated into the string before passing the result to FORMS_DDL.&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is SECURE property? &lt;/b&gt;&lt;br /&gt;- Hides characters that the operator types into the text item. This setting is typically used for password protection.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lUQc91crkg7YBJB6YK3NXWjRvcc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lUQc91crkg7YBJB6YK3NXWjRvcc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lUQc91crkg7YBJB6YK3NXWjRvcc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lUQc91crkg7YBJB6YK3NXWjRvcc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/Sxo0KZp4i2w" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:44:41.867-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/ddl-in-forms-oracle.html</feedburner:origLink></item><item><title>types of triggers and The sequence of firing in text item</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/Ne1ncDTaBsI/types-of-triggers-and-sequence-of.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:43:17 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-1556772387468669214</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the types of triggers and how the sequence of firing in text item &lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Triggers can be classified as Key Triggers, Mouse Triggers ,Navigational Triggers.&lt;br /&gt;Key Triggers :: Key Triggers are fired as a result of Key action.e.g :: Key-next-field, Key-up,Key-Down&lt;br /&gt;Mouse Triggers :: Mouse Triggers are fired as a result of the mouse navigation.e.g. When-mouse-button-presed,when-mouse-doubleclicked,etc&lt;br /&gt;Navigational Triggers :: These Triggers are fired as a result of Navigation. E.g. : Post-Text-item,Pre-text-item.&lt;br /&gt;We also have event triggers like when ?new-form-instance and when-new-block-instance.&lt;br /&gt;We cannot call restricted procedures like go_to(?my_block.first_item?) in the Navigational triggers&lt;br /&gt;But can use them in the Key-next-item.&lt;br /&gt;The Difference between Key-next and Post-Text is an very important question. The key-next is fired as a result of the key action while the post text is fired as a result of the mouse movement. Key next will not fire unless there is a key event. The sequence of firing in a text item are as follows ::&lt;br /&gt;a) pre - text&lt;br /&gt;b) when new item&lt;br /&gt;c) key-next&lt;br /&gt;d) when validate&lt;br /&gt;e) post text&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can you store pictures in database? How? &lt;/b&gt;&lt;br /&gt;Yes , in long Raw datatype.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are property classes ? Can property classes have trigger? &lt;/b&gt;&lt;br /&gt;Property class inheritance is a powerful feature that allows you to quickly define objects that conform to your own interface and functionality standards. Property classes also allow you to make global changes to applications quickly. By simply changing the definition of a property class, you can change the definition of all objects that inherit properties from that class.&lt;br /&gt;Yes . All type of triggers .&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;If you have property class attached to an item and you have same trigger written for the item . Which will fire first? &lt;/b&gt;&lt;br /&gt;Item level trigger fires , If item level trigger fires, property level trigger won't fire. Triggers at the lowest level are always given the first preference. The item level trigger fires first and then the block and then the Form level trigger.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ftQxK_QqDCiAciDqV1pcC0dH_C4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ftQxK_QqDCiAciDqV1pcC0dH_C4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ftQxK_QqDCiAciDqV1pcC0dH_C4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ftQxK_QqDCiAciDqV1pcC0dH_C4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/Ne1ncDTaBsI" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:43:17.369-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/types-of-triggers-and-sequence-of.html</feedburner:origLink></item><item><title>What are record groups ? * Can record groups created at run-time?</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/za-Ci_GkJf0/what-are-record-groups-can-record.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:42:30 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-3303218530615180982</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are record groups ? * Can record groups created at run-time? &lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;A record group is an internal Oracle Forms data structure that has a column/row framework similar to a database table. However, unlike database tables, record groups are separate objects that belong to the form module in which they are defined. A record group can have an unlimited number of columns of type CHAR, LONG, NUMBER, or DATE provided that the total number of columns does not exceed 64K. Record group column names cannot exceed 30 characters.&lt;br /&gt;Programmatically, record groups can be used whenever the functionality offered by a two-dimensional array of multiple data types is desirable.&lt;br /&gt;TYPES OF RECORD GROUP:&lt;br /&gt;Query Record Group A query record group is a record group that has an associated SELECT statement. The columns in a query record group derive their default names, data types, and lengths from the database columns referenced in the SELECT statement. The records in a query record group are the rows retrieved by the query associated with that record group.&lt;br /&gt;Non-query Record Group A non-query record group is a group that does not have an associated query, but whose structure and values can be modified programmatically at runtime.&lt;br /&gt;Static Record Group A static record group is not associated with a query; rather, you define its structure and row values at design time, and they remain fixed at runtime.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are ALERT? &lt;/b&gt;&lt;br /&gt;An ALERT is a modal window that displays a message notifying operator of some application condition.&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can a button have icon and label at the same time ? &lt;/b&gt;&lt;br /&gt;-NO&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is mouse navigate property of button? &lt;/b&gt;&lt;br /&gt;When Mouse Navigate is True (the default), Oracle Forms performs standard navigation to move the focus to the item when the operator activates the item with the mouse.&lt;br /&gt;When Mouse Navigate is set to False, Oracle Forms does not perform navigation (and the resulting validation) to move to the item when an operator activates the item with the mouse.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is FORMS_MDI_WINDOW? &lt;/b&gt;&lt;br /&gt;forms run inside the MDI application window. This property is useful for calling a form from another one.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are timers ? when when-timer-expired does not fire? &lt;/b&gt;&lt;br /&gt;The When-Timer-Expired trigger can not fire during trigger, navigation, or transaction processing.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can object group have a block? &lt;/b&gt;&lt;br /&gt;Yes , object group can have block as well as program units.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How many types of canvases are there. &lt;/b&gt;&lt;br /&gt;There are 2 types of canvases called as Content and Stack Canvas. Content canvas is the default and the one that is used mostly for giving the base effect. Its like a plate on which we add items and stacked canvas is used for giving 3 dimensional effect.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are user-exits? &lt;/b&gt;&lt;br /&gt;It invokes 3GL programs.&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/baZwWB54aZT8WHyiFUgFZuuOal0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/baZwWB54aZT8WHyiFUgFZuuOal0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/baZwWB54aZT8WHyiFUgFZuuOal0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/baZwWB54aZT8WHyiFUgFZuuOal0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/za-Ci_GkJf0" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:42:30.987-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/what-are-record-groups-can-record.html</feedburner:origLink></item><item><title>pass values to-and-fro from foreign function  - oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/jYIIKr8toEA/pass-values-to-and-fro-from-foreign.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:41:50 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-4332040033484907104</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can you pass values to-and-fro from foreign function ? how ? &lt;/b&gt;&lt;br /&gt;Yes . You obtain a return value from a foreign function by assigning the return value to an Oracle Forms variable or item. Make sure that the Oracle Forms variable or item is the same data type as the return value from the foreign function.&lt;br /&gt;After assigning an Oracle Forms variable or item value to a PL/SQL variable, pass the PL/SQL variable as a parameter value in the PL/SQL interface of the foreign function. The PL/SQL variable that is passed as a parameter must be a valid PL/SQL data type; it must also be the appropriate parameter type as defined in the PL/SQL interface.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is IAPXTB structure ? &lt;/b&gt;&lt;br /&gt;The entries of Pro * C and user exits and the form which simulate the proc or user_exit are stored in IAPXTB table in d/b.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can you call WIN-SDK thru user exits? &lt;/b&gt;&lt;br /&gt;YES.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What command would you use to create a backup control file?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;Alter database backup control file to trace.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Give the stages of instance startup to a usable state where normal users may access it. &lt;/b&gt;&lt;br /&gt;STARTUP NOMOUNT - Instance startup&lt;br /&gt;STARTUP MOUNT - The database is mounted&lt;br /&gt;STARTUP OPEN - The database is opened&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What column differentiates the V$ views to the GV$ views and how? &lt;/b&gt;&lt;br /&gt;The INST_ID column which indicates the instance in a RAC environment the information came from.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How would you go about generating an EXPLAIN plan? &lt;/b&gt;&lt;br /&gt;Create a plan table with utlxplan.sql.&lt;br /&gt;Use the explain plan set statement_id = 'tst1' into plan_table for a SQL statement&lt;br /&gt;Look at the explain plan with utlxplp.sql or utlxpls.sql&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How would you go about increasing the buffer cache hit ratio? &lt;/b&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LIwBKYEXOFCzltYeasEssnoD9_A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LIwBKYEXOFCzltYeasEssnoD9_A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LIwBKYEXOFCzltYeasEssnoD9_A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LIwBKYEXOFCzltYeasEssnoD9_A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/jYIIKr8toEA" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:41:50.166-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/pass-values-to-and-fro-from-foreign.html</feedburner:origLink></item><item><title>Explain an ORA-01555</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/1TAvgevaIXc/explain-ora-01555.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:40:56 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-3409848191256683930</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain an ORA-01555 ?&lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;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.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain the difference between $ORACLE_HOME and $ORACLE_BASE. &lt;/b&gt;&lt;br /&gt;ORACLE_BASE is the root directory for oracle. ORACLE_HOME located beneath ORACLE_BASE is where the oracle products reside.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How would you determine the time zone under which a database was operating? &lt;/b&gt;&lt;br /&gt;select DBTIMEZONE from dual;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain the use of setting GLOBAL_NAMES equal to TRUE. &lt;/b&gt;&lt;br /&gt;Setting GLOBAL_NAMES dictates how you might connect to a database. This variable is either TRUE or FALSE and if it is set to TRUE it enforces database links to have the same name as the remote database to which they are linking.&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What command would you use to encrypt a PL/SQL application? &lt;/b&gt;&lt;br /&gt;WRAP&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3yYM72vARZx0v_QArE4c7iNmr9o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3yYM72vARZx0v_QArE4c7iNmr9o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3yYM72vARZx0v_QArE4c7iNmr9o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3yYM72vARZx0v_QArE4c7iNmr9o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/1TAvgevaIXc" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:40:56.708-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/explain-ora-01555.html</feedburner:origLink></item><item><title>Difference between a FUNCTION, PROCEDURE and PACKAGE</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/iU1sn-V0_Vw/difference-between-function-procedure.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:40:18 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-9089356611193699216</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain the difference between a FUNCTION, PROCEDURE and PACKAGE. &lt;/b&gt;&lt;br /&gt;A function and procedure are the same in that they are intended to be a collection of PL/SQL code that carries a single task. While a procedure does not have to return any values to the calling application, a function will return a single value. A package on the other hand is a collection of functions and procedures that are grouped together based on their commonality to a business function or application.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain the use of table functions. &lt;/b&gt;&lt;br /&gt;Table functions are designed to return a set of rows through PL/SQL logic but are intended to be used as a normal table or view in a SQL statement. They are also used to pipeline information in an ETL process.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Name three advisory statistics you can collect. &lt;/b&gt;&lt;br /&gt;Buffer Cache Advice, Segment Level Statistics, &amp;amp; Timed Statistics&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Where in the Oracle directory tree structure are audit traces placed? &lt;/b&gt;&lt;br /&gt;In unix $ORACLE_HOME/rdbms/audit, in Windows the event viewer&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain materialized views and how they are used. &lt;/b&gt;&lt;br /&gt;Materialized views are objects that are reduced sets of information that have been summarized, grouped, or aggregated from base tables. They are typically used in data warehouse or decision support systems.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;When a user process fails, what background process cleans up after it? &lt;/b&gt;&lt;br /&gt;PMON&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What background process refreshes materialized views? &lt;/b&gt;&lt;br /&gt;The Job Queue Processes.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How would you determine what sessions are connected and what resources they are waiting for? &lt;/b&gt;&lt;br /&gt;Use of V$SESSION and V$SESSION_WAIT&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Describe what redo logs are. &lt;/b&gt;&lt;br /&gt;Redo logs are logical and physical structures that are designed to hold all the changes made to a database and are intended to aid in the recovery of a database.&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How would you force a log switch? &lt;/b&gt;&lt;br /&gt;ALTER SYSTEM SWITCH LOGFILE;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Give two methods you could use to determine what DDL changes have been made. &lt;/b&gt;&lt;br /&gt;You could use Logminer or Streams&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What does coalescing a tablespace do? &lt;/b&gt;&lt;br /&gt;Coalescing is only valid for dictionary-managed tablespaces and de-fragments space by combining neighboring free extents into large single extents.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between a TEMPORARY tablespace and a PERMANENT tablespace? &lt;/b&gt;&lt;br /&gt;A temporary tablespace is used for temporary objects such as sort structures while permanent tablespaces are used to store those objects meant to be used as the true objects of the database.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Name a tablespace automatically created when you create a database. &lt;/b&gt;&lt;br /&gt;The SYSTEM tablespace.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;When creating a user, what permissions must you grant to allow them to connect to the database? &lt;/b&gt;&lt;br /&gt;Grant the CONNECT to the user.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do you add a data file to a tablespace &lt;/b&gt;&lt;br /&gt;ALTER TABLESPACE &lt;tablespace_name&gt;ADD DATAFILE &lt;datafile_name&gt;SIZE&lt;/datafile_name&gt;&lt;/tablespace_name&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do you resize a data file? &lt;/b&gt;&lt;br /&gt;ALTER DATABASE DATAFILE &lt;datafile_name&gt;RESIZE &lt;new_size&gt;;&lt;/new_size&gt;&lt;/datafile_name&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What view would you use to look at the size of a data file? &lt;/b&gt;&lt;br /&gt;DBA_DATA_FILES&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What view would you use to determine free space in a tablespace? &lt;/b&gt;&lt;br /&gt;DBA_FREE_SPACE&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How would you determine who has added a row to a table? &lt;/b&gt;&lt;br /&gt;Turn on fine grain auditing for the table.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can you rebuild an index? &lt;/b&gt;&lt;br /&gt;ALTER INDEX &lt;index_name&gt;REBUILD;&lt;/index_name&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Explain what partitioning is and what its benefit is. &lt;/b&gt;&lt;br /&gt;Partitioning is a method of taking large tables and indexes and splitting them into smaller, more manageable pieces.&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="for_questions_blue"&gt;&lt;b&gt;You have just compiled a PL/SQL package but got errors, how would you view the errors? &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;SHOW ERRORS&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can you gather statistics on a table? &lt;/b&gt;&lt;br /&gt;The ANALYZE command.&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can you enable a trace for a session? &lt;/b&gt;&lt;br /&gt;Use the DBMS_SESSION.SET_SQL_TRACE or&lt;br /&gt;Use ALTER SESSION SET SQL_TRACE = TRUE;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HKk7jmFTFP_33BHOljkw5LEqSBk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HKk7jmFTFP_33BHOljkw5LEqSBk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HKk7jmFTFP_33BHOljkw5LEqSBk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HKk7jmFTFP_33BHOljkw5LEqSBk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/iU1sn-V0_Vw" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:40:18.502-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/difference-between-function-procedure.html</feedburner:origLink></item><item><title>resize tablespaces and data files  (for DBA)</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/MNvVgkRfP7o/resize-tablespaces-and-data-files-for.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:39:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-6186962773414275443</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can one resize tablespaces and data files? (for DBA) &lt;/b&gt;&lt;br /&gt;One can manually increase or decrease the size of a datafile from Oracle 7.2 using the command.&lt;br /&gt;ALTER DATABASE DATAFILE 'filename2' RESIZE 100M;&lt;br /&gt;Because you can change the sizes of datafiles, you can add more space to your database without adding more datafiles. This is beneficial if you are concerned about reaching the maximum number of datafiles allowed in your database.&lt;br /&gt;Manually reducing the sizes of datafiles allows you to reclaim unused space in the database. This is useful for correcting errors in estimations of space requirements.&lt;br /&gt;Also, datafiles can be allowed to automatically extend if more space is required. Look at the following command:&lt;br /&gt;CREATE TABLESPACE pcs_data_ts&lt;br /&gt;DATAFILE 'c:\ora_apps\pcs\pcsdata1.dbf' SIZE 3M&lt;br /&gt;AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED&lt;br /&gt;DEFAULT STORAGE (INITIAL 10240&lt;br /&gt;NEXT 10240&lt;br /&gt;MINEXTENTS 1&lt;br /&gt;MAXEXTENTS UNLIMITED&lt;br /&gt;PCTINCREASE 0)&lt;br /&gt;ONLINE&lt;br /&gt;PERMANENT;&lt;/p&gt;&lt;div&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between the SQL*Loader and IMPORT utilities? &lt;/b&gt;&lt;br /&gt;These two Oracle utilities are used for loading data into the database. The difference is that the import utility relies on the data being produced by another Oracle utility EXPORT while the SQL*Loader utility allows data to be loaded that has been produced by other utilities from different data sources just so long as it conforms to ASCII formatted or delimited files.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Name two files used for network connection to a database. &lt;/b&gt;&lt;br /&gt;TNSNAMES.ORA and SQLNET.&lt;span class="to_transl_class" title="Click to correct" id="1"&gt;ORA&lt;/span&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the function of Optimizer ?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;The goal of the optimizer is to choose the most efficient way to execute a SQL statement.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is Execution Plan ? &lt;/b&gt;&lt;br /&gt;The combinations of the steps the optimizer chooses to execute a statement is called an execution plan.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lsVF1nklXimCo7RI34bdnTjxPyI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lsVF1nklXimCo7RI34bdnTjxPyI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lsVF1nklXimCo7RI34bdnTjxPyI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lsVF1nklXimCo7RI34bdnTjxPyI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/MNvVgkRfP7o" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:39:00.615-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/resize-tablespaces-and-data-files-for.html</feedburner:origLink></item><item><title>What is SAVE POINT ?  - oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/zZqGnhGtKto/what-is-save-point-oracle.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:38:10 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-1091561470706670527</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is SAVE POINT ? &lt;/b&gt;&lt;br /&gt;For long transactions that contain many SQL statements, intermediate markers or savepoints can be declared which can be used to divide a transaction into smaller parts. This allows the option of later rolling back all work performed from the current point in the transaction to a declared savepoint within the transaction.&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the values that can be specified for OPTIMIZER MODE Parameter ? &lt;/b&gt;&lt;br /&gt;COST and RULE.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Can one rename a tablespace? (for DBA) &lt;/b&gt;&lt;br /&gt;No, this is listed as Enhancement Request 148742. Workaround:&lt;br /&gt;Export all of the objects from the tablespace&lt;br /&gt;Drop the tablespace including contents&lt;br /&gt;Recreate the tablespace&lt;br /&gt;Import the objects&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is RULE-based approach to optimization ? &lt;/b&gt;&lt;br /&gt;Choosing an executing planbased on the access paths available and the ranks of these access paths.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the values that can be specified for OPTIMIZER_GOAL parameter of the ALTER SESSION Command ?&lt;/b&gt;&lt;br /&gt;CHOOSE,ALL_ROWS,FIRST_ROWS and RULE.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jAdVTC59nEZO14F0IBQzJzL3cI0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jAdVTC59nEZO14F0IBQzJzL3cI0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jAdVTC59nEZO14F0IBQzJzL3cI0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jAdVTC59nEZO14F0IBQzJzL3cI0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/zZqGnhGtKto" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:38:10.737-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/what-is-save-point-oracle.html</feedburner:origLink></item><item><title>create a standby database  (for DBA)</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/Vod-WpS0x8A/create-standby-database-for-dba.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:37:31 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-3859744099219861556</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one create a standby database? (for DBA) &lt;/b&gt;&lt;br /&gt;While your production database is running, take an (image copy) backup and restore it on duplicate hardware. Note that an export will not work!!!&lt;br /&gt;On your standby database, issue the following commands:&lt;br /&gt;ALTER DATABASE CREATE STANDBY CONTROLFILE AS 'filename';&lt;br /&gt;ALTER DATABASE MOUNT STANDBY DATABASE;&lt;br /&gt;RECOVER STANDBY DATABASE;&lt;br /&gt;On systems prior to Oracle 8i, write a job to copy archived redo log files from the primary database to the standby system, and apply the redo log files to the standby database (pipe it). Remember the database is recovering and will prompt you for the next log file to apply.&lt;br /&gt;Oracle 8i onwards provide an "Automated Standby Database" feature, which will send archived, log files to the remote site via NET8, and apply then to the standby database.&lt;br /&gt;When one needs to activate the standby database, stop the recovery process and activate it:&lt;br /&gt;ALTER DATABASE ACTIVATE STANDBY DATABASE;&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one give developers access to trace files (required as input to tkprof)? (for DBA) &lt;/b&gt;&lt;br /&gt;The "alter session set sql_trace=true" command generates trace files in USER_DUMP_DEST that can be used by developers as input to tkprof. On Unix the default file mask for these files are "rwx r-- ---".&lt;br /&gt;There is an undocumented INIT.ORA parameter that will allow everyone to read (rwx r-r--) these trace files:&lt;br /&gt;_trace_files_public = true&lt;br /&gt;Include this in your INIT.ORA file and bounce your database for it to take effect.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4gfweMZTRZfalFrNa2rZQR8guZM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4gfweMZTRZfalFrNa2rZQR8guZM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4gfweMZTRZfalFrNa2rZQR8guZM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4gfweMZTRZfalFrNa2rZQR8guZM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/Vod-WpS0x8A" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:37:31.241-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/create-standby-database-for-dba.html</feedburner:origLink></item><item><title>Responsibilities of a Database Administrator</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/VfX0YIjXxFQ/responsibilities-of-database.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:36:53 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-8408279795277541690</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the responsibilities of a Database Administrator ? &lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Installing and upgrading the Oracle Server and application tools. Allocating system storage and planning future storage requirements for the database system. Managing primary database structures (tablespaces) Managing primary objects (table,views,indexes) Enrolling users and maintaining system security. Ensuring compliance with Oralce license agreement Controlling and monitoring user access to the database. Monitoring and optimizing the performance of the database. Planning for backup and recovery of database information. Maintain archived data on tape Backing up and restoring the database. Contacting Oracle Corporation for technical support.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a trace file and how is it created ? &lt;/b&gt;&lt;br /&gt;Each server and background process can write an associated trace file. When an internal error is detected by a process or user process, it dumps information about the error to its trace. This can be used for tuning the database.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the roles and user accounts created automatically with the database? &lt;/b&gt;&lt;br /&gt;DBA - role Contains all database system privileges.&lt;br /&gt;SYS user account - The DBA role will be assigned to this account. All of the base tables and views for the database's dictionary are store in this schema and are manipulated only by ORACLE. SYSTEM user account - It has all the system privileges for the database and additional tables and views that display administrative information and internal tables and views used by oracle tools are created using this username.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YmF9t4zZOs4H9UY3LHJln8gvjec/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YmF9t4zZOs4H9UY3LHJln8gvjec/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YmF9t4zZOs4H9UY3LHJln8gvjec/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YmF9t4zZOs4H9UY3LHJln8gvjec/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/VfX0YIjXxFQ" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:36:53.451-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/responsibilities-of-database.html</feedburner:origLink></item><item><title>What are the minimum parameters should exist in the parameter file (init.ora) ? -oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/9Uk2o2jaB8E/what-are-minimum-parameters-should.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:36:13 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-8843166723942768790</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the minimum parameters should exist in the parameter file (init.ora) ? &lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;DB NAME - Must set to a text string of no more than 8 characters and it will be stored inside the datafiles, redo log files and control files and control file while database creation.&lt;br /&gt;DB_DOMAIN - It is string that specifies the network domain where the database is created. The global database name is identified by setting these parameters&lt;br /&gt;(DB_NAME &amp;amp; DB_DOMAIN) CONTORL FILES - List of control filenames of the database. If name is not mentioned then default name will be used.&lt;br /&gt;DB_BLOCK_BUFFERS - To determine the no of buffers in the buffer cache in SGA.&lt;br /&gt;PROCESSES - To determine number of operating system processes that can be connected to ORACLE concurrently. The value should be 5 (background process) and additional 1 for each user.&lt;br /&gt;ROLLBACK_SEGMENTS - List of rollback segments an ORACLE instance acquires at database startup. Also optionally LICENSE_MAX_SESSIONS,LICENSE_SESSION_WARNING and LICENSE_MAX_USERS.&lt;/p&gt;&lt;p class="answers"&gt;e.&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;It is advisable to use more than one of these methods to backup your database. For example, if you choose to do on-line database backups, also cover yourself by doing database exports. Also test ALL backup and recovery scenarios carefully. It is better to be save than sorry.&lt;br /&gt;Regardless of your strategy, also remember to backup all required software libraries, parameter files, password files, etc. If your database is in ARCGIVELOG mode, you also need to backup archived log files.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between online and offline backups? (for DBA)&lt;/b&gt;&lt;br /&gt;A hot backup is a backup performed while the database is online and available for read/write. Except for Oracle exports, one can only do on-line backups when running in ARCHIVELOG mode.&lt;br /&gt;A cold backup is a backup performed while the database is off-line and unavailable to its users.&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/x1RtVuVf4Gwt1gea18DA1HCNv08/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/x1RtVuVf4Gwt1gea18DA1HCNv08/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/x1RtVuVf4Gwt1gea18DA1HCNv08/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/x1RtVuVf4Gwt1gea18DA1HCNv08/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/9Uk2o2jaB8E" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:36:13.397-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/what-are-minimum-parameters-should.html</feedburner:origLink></item><item><title>Why and when should I backup my database? (for DBA)</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/d53mWRRt81Y/why-and-when-should-i-backup-my.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:35:28 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-73891005215062969</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Why and when should I backup my database? (for DBA)&lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Backup and recovery is one of the most important aspects of a DBAs job. If you lose your company's data, you could very well lose your job. Hardware and software can always be replaced, but your data may be irreplaceable!&lt;br /&gt;Normally one would schedule a hierarchy of daily, weekly and monthly backups, however consult with your users before deciding on a backup schedule. Backup frequency normally depends on the following factors:&lt;br /&gt;. Rate of data change/ transaction rate&lt;br /&gt;. Database availability/ Can you shutdown for cold backups?&lt;br /&gt;. Criticality of the data/ Value of the data to the company&lt;br /&gt;. Read-only tablespace needs backing up just once right after you make it read-only&lt;br /&gt;. If you are running in archivelog mode you can backup parts of a database over an extended cycle of days&lt;br /&gt;. If archive logging is enabled one needs to backup archived log files timeously to prevent database freezes&lt;br /&gt;. Etc.&lt;br /&gt;Carefully plan backup retention periods. Ensure enough backup media (tapes) are available and that old backups are expired in-time to make media available for new backups. Off-site vaulting is also highly recommended.&lt;br /&gt;Frequently test your ability to recover and document all possible scenarios. Remember, it's the little things that will get you. Most failed recoveries are a result of organizational errors and miscommunications.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What strategies are available for backing-up an Oracle database? (for DBA)&lt;/b&gt;&lt;br /&gt;The following methods are valid for backing-up an Oracle database:&lt;br /&gt;Export/Import - Exports are "logical" database backups in that they extract logical definitions and data from the database to a file.&lt;br /&gt;Cold or Off-line Backups - Shut the database down and backup up ALL data, log, and control files.&lt;br /&gt;Hot or On-line Backups - If the databases are available and in ARCHIVELOG mode, set the tablespaces into backup mode and backup their files. Also remember to backup the control files and archived redo log files.&lt;br /&gt;RMAN Backups - While the database is off-line or on-line, use the "rman" utility to backup the databas&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rVe9i8A9Xnw7G-xi-I5J8ehaRyY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rVe9i8A9Xnw7G-xi-I5J8ehaRyY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rVe9i8A9Xnw7G-xi-I5J8ehaRyY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rVe9i8A9Xnw7G-xi-I5J8ehaRyY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/d53mWRRt81Y" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:35:28.859-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/why-and-when-should-i-backup-my.html</feedburner:origLink></item><item><title>Difference between restoring and recovering-oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/3POD0uOm2jE/difference-between-restoring-and.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:34:50 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-4211203025291412554</guid><description>&lt;b class="for_questions_blue"&gt;What is the difference between restoring and recovering? (for DBA)&lt;/b&gt;&lt;br /&gt;Restoring involves copying backup files from secondary storage (backup media) to disk. This can be done to replace damaged files or to copy/move a database to a new location.&lt;br /&gt;Recovery is the process of applying redo logs to the database to roll it forward. One can roll-forward until a specific point-in-time (before the disaster occurred), or roll-forward until the last transaction recorded in the log files. Sql&gt; connect SYS as SYSDBA&lt;br /&gt;Sql&gt; RECOVER DATABASE UNTIL TIME '2001-03-06:16:00:00' USING BACKUP CONTROLFILE;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/njkAQoysKI_QSjn8T7sRKw718AQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/njkAQoysKI_QSjn8T7sRKw718AQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/njkAQoysKI_QSjn8T7sRKw718AQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/njkAQoysKI_QSjn8T7sRKw718AQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/3POD0uOm2jE" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:34:50.998-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/difference-between-restoring-and.html</feedburner:origLink></item><item><title>master detail relationship-- oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/51-iDj7Yh4s/master-detail-relationship-oracle.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:34:02 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-4116706656370058358</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How does one backup a database using the export utility? (for DBA)&lt;/b&gt;&lt;br /&gt;Oracle exports are "logical" database backups (not physical) as they extract data and logical definitions from the database into a file. Other backup strategies normally back-up the physical data files.&lt;br /&gt;One of the advantages of exports is that one can selectively re-import tables, however one cannot roll-forward from an restored export file. To completely restore a database from an export file one practically needs to recreate the entire database.&lt;br /&gt;Always do full system level exports (FULL=YES). Full exports include more information about the database in the export file than user level exports.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the built_ins used the display the LOV? &lt;/b&gt;&lt;br /&gt;Show_lov&lt;br /&gt;List_values&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do you call other Oracle Products from Oracle Forms? &lt;/b&gt;&lt;br /&gt;Run_product is a built-in, Used to invoke one of the supported oracle tools products and specifies the name of the document or module to be run. If the called product is unavailable at the time of the call, Oracle Forms returns a message to the operator.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the main diff. bet. Reports 2.0 &amp;amp; Reports 2.5? &lt;/b&gt;&lt;br /&gt;Report 2.5 is object oriented.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the Built-ins to display the user-named editor? &lt;/b&gt;&lt;br /&gt;A user named editor can be displayed programmatically with the built in procedure SHOW-EDITOR, EDIT_TETITEM independent of any particular text item.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How many number of columns a record group can have? &lt;/b&gt;&lt;br /&gt;A record group can have an unlimited number of columns of type CHAR, LONG, NUMBER, or DATE provided that the total number of column does not exceed 64K.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a Query Record Group? &lt;/b&gt;&lt;br /&gt;A query record group is a record group that has an associated SELECT statement. The columns in a query record group derive their default names, data types, had lengths from the database columns referenced in the SELECT statement. The records in query record group are the rows retrieved by the query associated with that record group.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What does the term panel refer to with regard to pages? &lt;/b&gt;&lt;br /&gt;A panel is the no. of physical pages needed to print one logical page.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a master detail relationship? &lt;/b&gt;&lt;br /&gt;A master detail relationship is an association between two base table blocks- a master block and a detail block. The relationship between the blocks reflects a primary key to foreign key relationship between the tables on which the blocks are based.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is a library? &lt;/b&gt;&lt;br /&gt;A library is a collection of subprograms including user named procedures, functions and packages.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is an anchoring object &amp;amp; what is its use? What are the various sub events a mouse double click event involves? &lt;/span&gt;&lt;br /&gt;&lt;/b&gt;An anchoring object is a print condition object which used to explicitly or implicitly anchor other objects to itself.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;Use the add_group_column function to add a column to record group that was created at a design time? &lt;/b&gt;&lt;br /&gt;False&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the various sub events a mouse double click event involves? What are the various sub events a mouse double click event involves? &lt;/b&gt;&lt;br /&gt;Double clicking the mouse consists of the mouse down, mouse up, mouse click, mouse down &amp;amp; mouse up events&lt;span title="Click to correct" class="transl_class" id="2"&gt;।&lt;/span&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;What is the use of break group? What are the various sub events a mouse double click event involves?&lt;/span&gt;&lt;span class="answers"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;A break group is used to display one record for one group ones. While multiple related records in other group can be displayed.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What tuning indicators can one use? (for DBA)&lt;/b&gt;&lt;br /&gt;The following high-level tuning indicators can be used to establish if a database is performing optimally or not:&lt;br /&gt;. Buffer Cache Hit Ratio&lt;br /&gt;Formula: Hit Ratio = (Logical Reads - Physical Reads) / Logical Reads&lt;br /&gt;Action: Increase DB_CACHE_SIZE (DB_BLOCK_BUFFERS prior to 9i) to increase hit ratio&lt;br /&gt;. Library Cache Hit Ratio&lt;br /&gt;Action: Increase the SHARED_POOL_SIZE to increase hit ratio&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What tools/utilities does Oracle provide to assist with performance tuning? (for DBA)&lt;/b&gt;&lt;br /&gt;Oracle provide the following tools/ utilities to assist with performance monitoring and tuning:&lt;br /&gt;. TKProf&lt;br /&gt;. UTLBSTAT.SQL and UTLESTAT.SQL - Begin and end stats monitoring&lt;br /&gt;. Statspack&lt;br /&gt;. Oracle Enterprise Manager - Tuning Pack&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/o_kzJlzdEV1fMP9EjDwU5p0F47E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o_kzJlzdEV1fMP9EjDwU5p0F47E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/o_kzJlzdEV1fMP9EjDwU5p0F47E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o_kzJlzdEV1fMP9EjDwU5p0F47E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/51-iDj7Yh4s" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:34:02.815-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/master-detail-relationship-oracle.html</feedburner:origLink></item><item><title>What is STATSPACK and how does one use it? (for DBA) or STATSPACK</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/usC67urfZsU/what-is-statspack-and-how-does-one-use.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:33:03 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-4021002838835656431</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is STATSPACK and how does one use it? (for DBA)&lt;/b&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Statspack is a set of performance monitoring and reporting utilities provided by Oracle from Oracle8i and above. Statspack provides improved BSTAT/ESTAT functionality, though the old BSTAT/ESTAT scripts are still available. For more information about STATSPACK, read the documentation in file $ORACLE_HOME/rdbms/admin/spdoc.txt.&lt;br /&gt;Install Statspack:&lt;br /&gt;cd $ORACLE_HOME/rdbms/admin&lt;br /&gt;sqlplus "/ as sysdba" @spdrop.sql -- Install Statspack -&lt;br /&gt;sqlplus "/ as sysdba" @spcreate.sql-- Enter tablespace names when prompted&lt;br /&gt;Use Statspack:&lt;br /&gt;sqlplus perfstat/perfstat&lt;br /&gt;exec statspack.snap; -- Take a performance snapshots&lt;br /&gt;exec statspack.snap;&lt;br /&gt;o Get a list of snapshots&lt;br /&gt;select SNAP_ID, SNAP_TIME from STATS$SNAPSHOT;&lt;br /&gt;@spreport.sql -- Enter two snapshot id's for difference report&lt;br /&gt;Other Statspack Scripts:&lt;br /&gt;. sppurge.sql - Purge a range of Snapshot Id's between the specified begin and end Snap Id's&lt;br /&gt;. spauto.sql - Schedule a dbms_job to automate the collection of STATPACK statistics&lt;br /&gt;. spcreate.sql - Installs the STATSPACK user, tables and package on a database (Run as SYS).&lt;br /&gt;. spdrop.sql - Deinstall STATSPACK from database (Run as SYS)&lt;br /&gt;. sppurge.sql - Delete a range of Snapshot Id's from the database&lt;br /&gt;. spreport.sql - Report on differences between values recorded in two snapshots&lt;br /&gt;. sptrunc.sql - Truncates all data in Statspack tables&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the common RMAN errors (with solutions)? (for DBA)&lt;/b&gt;&lt;br /&gt;Some of the common RMAN errors are:&lt;br /&gt;RMAN-20242: Specification does not match any archivelog in the recovery catalog.&lt;br /&gt;Add to RMAN script: sql 'alter system archive log current';&lt;br /&gt;RMAN-06089: archived log xyz not found or out of sync with catalog&lt;br /&gt;Execute from RMAN: change archivelog all validate;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How can you execute the user defined triggers in forms 3.0 ? &lt;/b&gt;&lt;br /&gt;Execute Trigger (trigger-name)&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What ERASE package procedure does ? &lt;/b&gt;&lt;br /&gt;Erase removes an indicated global variable.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between NAME_IN and COPY ? &lt;/b&gt;&lt;br /&gt;Copy is package procedure and writes values into a field.&lt;br /&gt;Name in is a package function and returns the contents of the variable to which you apply.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What package procedure is used for calling another form ? &lt;/b&gt;&lt;br /&gt;Call (E.g. Call(formname)&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;When the form is running in DEBUG mode, If you want to examine the values of global variables and other form variables, What package procedure command you would use in your trigger text ? &lt;/b&gt;&lt;br /&gt;Break.&lt;br /&gt;SYSTEM VARIABLES&lt;br /&gt;&lt;/p&gt;&lt;p class="answers"&gt;&lt;b&gt;&lt;span class="for_questions_blue"&gt;The value recorded in system.last_record variable is of type&lt;/span&gt;&lt;br /&gt;a. Number&lt;br /&gt;b. Boolean&lt;br /&gt;c. Character. ? &lt;/b&gt;&lt;br /&gt;b. Boolean.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is mean by Program Global Area (PGA) ? &lt;/b&gt;&lt;br /&gt;It is area in memory that is used by a Single Oracle User Process.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is hit ratio ? &lt;/b&gt;&lt;br /&gt;It is a measure of well the data cache buffer is handling requests for data. Hit Ratio = (Logical Reads - Physical Reads - Hits Misses)/ Logical Reads.&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do u implement the If statement in the Select Statement &lt;/b&gt;&lt;br /&gt;We can implement the if statement in the select statement by using the Decode statement. e.g. select DECODE (EMP_CAT,'1','First','2','Second'Null); Here the Null is the else statement where null is done .&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VoRIHDUUZLVuyIpS6CabrqXSjMk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VoRIHDUUZLVuyIpS6CabrqXSjMk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VoRIHDUUZLVuyIpS6CabrqXSjMk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VoRIHDUUZLVuyIpS6CabrqXSjMk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/usC67urfZsU" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:33:03.210-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/what-is-statspack-and-how-does-one-use.html</feedburner:origLink></item><item><title>Types of Exceptions are in oracle</title><link>http://feedproxy.google.com/~r/CProgrammingLanguageQuestionWithAnswer/~3/kGOC2xQN0Zo/types-of-exceptions-are-in-oracle.html</link><author>noreply@blogger.com (Jiya)</author><pubDate>Wed, 01 Oct 2008 12:31:58 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4486140450439693804.post-1836398984490912565</guid><description>&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How many types of Exceptions are there &lt;/b&gt;&lt;br /&gt;There are 2 types of exceptions. They are&lt;br /&gt;a) System Exceptions&lt;br /&gt;e.g. When no_data_found, When too_many_rows&lt;br /&gt;b) User Defined Exceptions&lt;br /&gt;e.g. My_exception exception&lt;br /&gt;When My_exception then&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What are the inline and the precompiler directives &lt;/b&gt;&lt;br /&gt;The inline and precompiler directives detect the values directly&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How do you use the same lov for 2 columns &lt;/b&gt;&lt;br /&gt;We can use the same lov for 2 columns by passing the return values in global values and using the global values in the code&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;How many minimum groups are required for a matrix report &lt;/b&gt;&lt;br /&gt;The minimum number of groups in matrix report are 4&lt;/p&gt;&lt;p class="answers"&gt;&lt;b class="for_questions_blue"&gt;What is the difference between static and dynamic lov &lt;/b&gt;&lt;br /&gt;The static lov contains the predetermined values while the dynamic lov contains values that come at run time&lt;/p&gt;&lt;p class="answers"&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/W9_PVeez4iYhIH7CzaQ3CiWntf8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W9_PVeez4iYhIH7CzaQ3CiWntf8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/W9_PVeez4iYhIH7CzaQ3CiWntf8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W9_PVeez4iYhIH7CzaQ3CiWntf8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CProgrammingLanguageQuestionWithAnswer/~4/kGOC2xQN0Zo" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-01T12:31:58.977-07:00</app:edited><feedburner:origLink>http://ckeyword.blogspot.com/2008/10/types-of-exceptions-are-in-oracle.html</feedburner:origLink></item><media:rating>nonadult</media:rating></channel></rss>

