Oracle 9i Interview Questions & Answers

  1. Question 1. Explain The Difference Between A Hot Backup And A Cold Backup And The Benefits Associated With Each.

    Answer :

    A hot backup is basically taking a backup of the database while it is still up and running and it must be in archive log mode. A cold backup is taking a backup of the database while it is shut down and does not require being in archive log mode. The benefit of taking a hot backup is that the database is still available for use while the backup is occurring and you can recover the database to any point in time. The benefit of taking a cold backup is that it is typically easier to administer the backup and recovery process. In addition, since you are taking cold backups the database does not require being in archive log mode and thus there will be a slight performance gain as the database is not cutting archive logs to disk.

  2. Question 2. You Have Just Had To Restore From Backup And Do Not Have Any Control Files. How Would You Go About Bringing Up This Database?

    Answer :

    I would create a text based backup control file, stipulating where on disk all the data files where and then issue the recover command with the using backup control file clause.

  3. Oracle 10g Interview Questions

  4. Question 3. How Do You Switch From An Init.ora File To A Spfile?

    Answer :

    Issue the create spfile from pfile command.

  5. Question 4. Explain The Difference Between A Data Block, An Extent And A Segment.

    Answer :

    A data block is the smallest unit of logical storage for a database object. As objects grow they take chunks of additional storage that are composed of contiguous data blocks. These groupings of contiguous data blocks are called extents. All the extents that an object takes when grouped together are considered the segment of the database object. Extent may not be continuous.

  6. Oracle 10g Tutorial

  7. Question 5. Give Two Examples Of How You Might Determine The Structure Of The Table Dept.

    Answer :

    Use the describe command or use the dbms_metadata.get_ddl package.

  8. Oracle 8i Interview Questions

  9. Question 6. Where Would You Look For Errors From The Database Engine?

    Answer :

    In the alert log.

  10. Question 7. Compare And Contrast Truncate And Delete For A Table?

    Answer :

    Both the truncate and delete command have the desired outcome of getting rid of all the rows in a table. The difference between the two is that the truncate command is a DDL operation and just moves the high water mark and produces a now rollback. The delete command, on the other hand, is a DML operation, which will produce a rollback and thus take longer to complete.

  11. Oracle 9i Tutorial
    Informatica Interview Questions

  12. Question 8. Give The Reasoning Behind Using An Index?

    Answer :

    Faster access to data blocks in a table.

  13. Question 9. Give The Two Types Of Tables Involved In Producing A Star Schema And The Type Of Data They Hold.

    Answer :

    Fact tables and dimension tables. A fact table contains measurements while dimension tables will contain data that will help describe the fact tables.

  14. PL/SQL Interview Questions

  15. Question 10. What Type Of Index Should You Use On A Fact Table?

    Answer :

    A Bitmap index.

  16. Oracle 8i Tutorial

  17. Question 11. Give Two Examples Of Referential Integrity Constraints?

    Answer :

    A primary key and a foreign key.

  18. Oracle 11g Interview Questions

  19. Question 12. A Table Is Classified As A Parent Table And You Want To Drop And Re-create It. How Would You Do This Without Affecting The Children Tables?

    Answer :

    Disable the foreign key constraint to the parent, drop the table, re-create the table, enable the foreign key constraint.

  20. Oracle 10g Interview Questions

  21. Question 13. Explain The Difference Between Archivelog Mode And Noarchivelog Mode And The Benefits And Disadvantages To Each?

    Answer :

    ARCHIVELOG mode is a mode that you can put the database in for creating a backup of all transactions that have occurred in the database so that you can recover to any point in time. NOARCHIVELOG mode is basically the absence of ARCHIVELOG mode and has the disadvantage of not being able to recover to any point in time. NOARCHIVELOG mode does have the advantage of not having to write transactions to an archive log and thus increases the performance of the database slightly.

  22. Informatica Tutorial

  23. Question 14. What Command Would You Use To Create A Backup Control File?

    Answer :

    Alter database backup control file to trace.

  24. Question 15. Give The Stages Of Instance Startup To A Usable State Where Normal Users May Access It?

    Answer :

    STARTUP NOMOUNT – Instance startup. Control File is read here.

    STARTUP MOUNT – The database is mounted. Datafiles are read for the status and checked with control file.

    STARTUP OPEN – The database is opened. Normal users can access.

  25. SQL Interview Questions

  26. Question 16. What Column Differentiates The V$ Views To The Gv$ Views And How?

    Answer :

    The INST_ID column which indicates the instance in a RAC environment the information came from.

  27. Oracle 11g Tutorial

  28. Question 17. How Would You Go About Generating An Explain Plan?

    Answer :

    Create a plan table with utlxplan.sql.
    Use the explain plan set statement_id = ‘tst1’ into plan_table for a SQL statement
    Look at the explain plan with utlxplp.sql or utlxpls.sql

  29. Oracle apps Interview Questions

  30. Question 18. How Would You Go About Increasing The Buffer Cache Hit Ratio?

    Answer :

    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.

  31. Oracle 8i Interview Questions

  32. Question 19. Explain An Ora-01555

    Answer :

    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.

  33. Question 20. Explain The Difference Between $oracle_home And $oracle_base?

    Answer :

    ORACLE_BASE is the root directory for oracle. ORACLE_HOME located beneath ORACLE_BASE is where the oracle products reside.

  34. Sybase Interview Questions

  35. Question 21. How Would You Determine The Time Zone Under Which A Database Was Operating?

    Answer :

    select DBTIMEZONE from dual;

  36. Question 22. Explain The Use Of Setting Global_names Equal To True?

    Answer :

    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.

  37. Question 23. Explain The Difference Between A Function, Procedure And Package?

    Answer :

    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.

  38. Oracle Apps ERP Interview Questions

  39. Question 24. Explain The Use Of Table Functions.

    Answer :

    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.

  40. Informatica Interview Questions

  41. Question 25. Name Three Advisory Statistics You Can Collect.

    Answer :

    Buffer Cache Advice, Segment Level Statistics, & Timed Statistics.

  42. Question 26. Where In The Oracle Directory Tree Structure Are Audit Traces Placed?

    Answer :

    In unix $ORACLE_HOME/rdbms/audit, in Windows the event viewer

  43. Oracle 7.3 Interview Questions

  44. Question 27. Explain Materialized Views And How They Are Used.

    Answer :

    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.

  45. PL/SQL Interview Questions

  46. Question 28. When A User Process Fails, What Background Process Cleans Up After It?

    Answer :


  47. Question 29. What Background Process Refreshes Materialized Views?

    Answer :

    The Job Queue Processes.

  48. Oracle Access Manager Interview Questions

  49. Question 30. What Is The Difference Between Oltp And Olap?

    Answer :

    OLTP is nothing but OnLine Transaction Processing ,which contains a normalised tables and online data,which have frequent insert/updates/delete.

    But OLAP(Online Analtical Programming) contains the history of OLTP data, which is, non-volatile ,acts as a Decisions Support System and is used for creating forecasting reports.

  50. Question 31. How Would You Determine What Sessions Are Connected And What Resources They Are Waiting For?

    Answer :


  51. Question 32. Describe What Redo Logs Are?

    Answer :

    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.

  52. Oracle Application Framework Interview Questions

  53. Question 33. How Would You Force A Log Switch?

    Answer :


  54. Oracle 11g Interview Questions

  55. Question 34. Give Two Methods You Could Use To Determine What Ddl Changes Have Been Made.

    Answer :

    You could use Logminer or Streams

  56. Question 35. What Does Coalescing A Tablespace Do?

    Answer :

    Coalescing is only valid for dictionary-managed tablespaces and de-fragments space by combining neighboring free extents into large single extents.

  57. Question 36. What Is The Difference Between A Temporary Tablespace And A Permanent Tablespace?

    Answer :

    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.

  58. SQL Interview Questions

  59. Question 37. Name A Tablespace Automatically Created When You Create A Database?

    Answer :

    The SYSTEM tablespace.

  60. Question 38. When Creating A User, What Permissions Must You Grant To Allow Them To Connect To The Database?

    Answer :

    Grant the CONNECT to the user.

  61. Question 39. How Do You Add A Data File To A Tablespace?

    Answer :


  62. Question 40. How Do You Resize A Data File?

    Answer :


  63. Oracle apps Interview Questions

  64. Question 41. What View Would You Use To Look At The Size Of A Data File?

    Answer :


  65. Question 42. What View Would You Use To Determine Free Space In A Tablespace?

    Answer :


  66. Sybase Interview Questions

  67. Question 43. How Would You Determine Who Has Added A Row To A Table?

    Answer :

    Turn on fine grain auditing for the table.

  68. Question 44. How Can You Rebuild An Index?

    Answer :


  69. Question 45. Explain What Partitioning Is And What Its Benefit Is.

    Answer :

    Partitioning is a method of taking large tables and indexes and splitting them into smaller, more manageable pieces.

  70. Question 46. You Have Just Compiled A Pl/sql Package But Got Errors, How Would You View The Errors?

    Answer :


  71. Question 47. How Can You Gather Statistics On A Table?

    Answer :

    The ANALYZE command.

  72. Question 48. How Can You Enable A Trace For A Session?

    Answer :



  73. Question 49. What Is The Difference Between The Sql*loader And Import Utilities?

    Answer :

    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.

  74. Question 50. Name Two Files Used For Network Connection To A Database.

    Answer :