How would you go about generating an EXPLAIN plan?
Answers were Sorted based on User's Feedback
Answer / daid kumar
The EXPLAIN PLAN statement displays execution plans chosen
by the Oracle optimizer for SELECT, UPDATE, INSERT, and
DELETE statements.
Run This Script To create Plan Table
$ORACLE_HOME/rdbms/admin/UTLXPLAN.SQL
Then Write like this
SQL> EXPLAIN PLAN FOR
SELECT name FROM emp;
Now to see O/P u can select * from "plan_table"
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / bharath
explain plan for select * from t1 where num_col = '1';
select * from table(dbms_xplan.display);
| Is This Answer Correct ? | 2 Yes | 1 No |
Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.
Where in the Oracle directory tree structure are audit traces placed?
What is the cache hit ratio, what impact does it have on performance of an Oracle database and what is involved in tuning it?
Give the stages of instance startup to a usable state where normal users may access it.
Explian different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?
What are the operating modes in which database mirroring runs? : sql server DBA
How would you begin to troubleshoot an ORA-3113 error?
Can you redefine a table online?
If you are given access to a sql server, how do you find if the sql instance is a named instance or a default instance? : sql server DBA
how can you initialize log miner?
Query processing is slow(eg select query)how will u solve that
what are the benefits of flashback feature?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)