Are you in hunt for a new job in Oracle 9i? Then we Wisdomjobs have provided you with the complete details about the Oracle 9i Interview Question and Answers. All the Oracle suffix digits indicates the versions of Oracle. So, you should be expertise in oracle to clear the interviews in any oracle related versions jobs. If you are expertise in Oracle then there are various companies that offer jobs in various positions like Oracle sql Pl/sql D2K Oracle 8i 9i 10g oracle apps, Database Administrator - Oracle 9i, Team Lead - Advance Java with Oracle 9i (advance) and many other roles too. We’ve framed multiple job interview questions and answers for your reference in our www.wisdomjobs.com. Following oracle 9i interview questions and answers site for quick win in oracle 9i job hunt.
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.
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.
Question 3. How Do You Switch From An Init.ora File To A Spfile?
Answer :
Issue the create spfile from pfile command.
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.
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.
Question 6. Where Would You Look For Errors From The Database Engine?
Answer :
In the alert log.
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.
Question 8. Give The Reasoning Behind Using An Index?
Answer :
Faster access to data blocks in a table.
Answer :
Fact tables and dimension tables. A fact table contains measurements while dimension tables will contain data that will help describe the fact tables.
Question 10. What Type Of Index Should You Use On A Fact Table?
Answer :
A Bitmap index.
Question 11. Give Two Examples Of Referential Integrity Constraints?
Answer :
A primary key and a foreign key.
Answer :
Disable the foreign key constraint to the parent, drop the table, re-create the table, enable the foreign key constraint.
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.
Question 14. What Command Would You Use To Create A Backup Control File?
Answer :
Alter database backup control file to trace.
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.
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.
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
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.
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.
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.
Question 21. How Would You Determine The Time Zone Under Which A Database Was Operating?
Answer :
select DBTIMEZONE from dual;
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.
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.
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.
Question 25. Name Three Advisory Statistics You Can Collect.
Answer :
Buffer Cache Advice, Segment Level Statistics, & Timed Statistics.
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
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.
Question 28. When A User Process Fails, What Background Process Cleans Up After It?
Answer :
PMON
Question 29. What Background Process Refreshes Materialized Views?
Answer :
The Job Queue Processes.
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.
Answer :
Use of V$SESSION and V$SESSION_WAIT
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.
Question 33. How Would You Force A Log Switch?
Answer :
ALTER SYSTEM SWITCH LOGFILE;
Question 34. Give Two Methods You Could Use To Determine What Ddl Changes Have Been Made.
Answer :
You could use Logminer or Streams
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.
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.
Question 37. Name A Tablespace Automatically Created When You Create A Database?
Answer :
The SYSTEM tablespace.
Answer :
Grant the CONNECT to the user.
Question 39. How Do You Add A Data File To A Tablespace?
Answer :
ALTER TABLESPACE <tablespace_name> ADD DATAFILE <datafile_name> SIZE <size>
Question 40. How Do You Resize A Data File?
Answer :
ALTER DATABASE DATAFILE <datafile_name> RESIZE <new_size>;
Question 41. What View Would You Use To Look At The Size Of A Data File?
Answer :
DBA_DATA_FILES
Question 42. What View Would You Use To Determine Free Space In A Tablespace?
Answer :
DBA_FREE_SPACE
Question 43. How Would You Determine Who Has Added A Row To A Table?
Answer :
Turn on fine grain auditing for the table.
Question 44. How Can You Rebuild An Index?
Answer :
ALTER INDEX <index_name> REBUILD;
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.
Question 46. You Have Just Compiled A Pl/sql Package But Got Errors, How Would You View The Errors?
Answer :
SHOW ERRORS
Question 47. How Can You Gather Statistics On A Table?
Answer :
The ANALYZE command.
Question 48. How Can You Enable A Trace For A Session?
Answer :
Use the DBMS_SESSION.SET_SQL_TRACE or
Use ALTER SESSION SET SQL_TRACE = TRUE;
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.
Question 50. Name Two Files Used For Network Connection To A Database.
Answer :
TNSNAMES.ORA and SQLNET.ORA
Oracle 9i Related Tutorials |
|
---|---|
Oracle 10g Tutorial | Oracle 9i Tutorial |
Oracle 8i Tutorial | Informatica Tutorial |
Oracle 11g Tutorial |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.