Top DB Administration Interview Questions :: ALLInterview.com http://www.allinterview.com Top DB Administration Interview Questions en-us How can you gather statistics on a table? http://www.allinterview.com/showanswers/13368.html We can gather statistics on a table through>> analyze table TABLE_NAME compute statistics , or analyze table TABLE_NAME estimate statistics Regards Abhinav What does coalescing a tablespace do? http://www.allinterview.com/showanswers/13356.html If we find that fragmentation of space in a tablespace is high (contiguous space on our disk appears as non-contiguous),we can coalesce any free space using the ALTER TABLESPACE TABLESPACE_NAME COALESCE ; command We must have the ALTER TAB What is the difference between the SQL Loader and IMPORT utilities? http://www.allinterview.com/showanswers/13370.html Sql loader can import data from any flat files where as import command import data from exported file. How do you resize a data file? http://www.allinterview.com/showanswers/13361.html alter databse datafile 'location of datafile' resize 2000M Regards Abhinav Phadnis How would you force a log switch? http://www.allinterview.com/showanswers/13354.html alter system switch logfile Regards Abhinav Phadnis How do you switch from an init.ora file to a spfile? http://www.allinterview.com/showanswers/13324.html Just create a spfile for pfile and then bounce the database...While restarting, if Oracle finds spile first it will use it first instead on pfile. How can you rebuild an index? http://www.allinterview.com/showanswers/13365.html dbcc dbreindex ('table_name' [, index_name [, fillfactor ]]) [WITH NO_INFOMSGS] Name two files used for network connection to a database. http://www.allinterview.com/showanswers/13371.html tnsnames.ora Explain the difference between a hot backup and a cold backup and the http://www.allinterview.com/showanswers/13322.html Cold Backup - In this case, they take the database down then they have backup. this is called cold backup. Hot Backup - In this case, they take running database backup (like SQL Server) this is called hot backup. Explain the difference between $ORACLE_HOME and $ORACLE_BASE. http://www.allinterview.com/showanswers/13341.html ORACLE_BASE is the root directory for oracle. ORACLE_HOME located beneath the ORACLE_BASE and is the place oracle products reside. Regards Abhinav Phadnis How can you enable a trace for a session? http://www.allinterview.com/showanswers/13369.html Enable trace at session level ( A )to start trace: ALTER SESSION SET sql_trace = TRUE; - or - EXECUTE dbms_session.set_sql_trace (TRUE); - or - EXECUTE dbms_support.start_trace; (B) to stop trace: ALTER SESSION SET sql_trace What is the difference between a TEMPORARY tablespace and a PERMANENT http://www.allinterview.com/showanswers/13357.html Temporary Tablespace is in generally used for sorting purpose while Permanent tablespace is used to sore permanent objects Regards Abhinav Phadnis How would you determine who has added a row to a table? http://www.allinterview.com/showanswers/13364.html use trigger. You have just compiled a PL/SQL package but got errors, how would you http://www.allinterview.com/showanswers/13367.html show error; This is the command used to view the errors.. Can you take Online Backups if the the database is running in NOARCH http://www.allinterview.com/showanswers/69727.html 1.no 2.archive mode enable level.