﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals / Oracle Forum / Oracle Interview Questions / Oracle General Interview Questions </title><generator>InstantForum.NET v4.1.4</generator><description>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals</description><link>http://www.franklinfaces.com/</link><webMaster>no-reply@FranklinFaces.com</webMaster><lastBuildDate>Sat, 31 Jul 2010 07:11:48 GMT</lastBuildDate><ttl>20</ttl><item><title>Oracle Database Interview Questions</title><link>http://www.franklinfaces.com/Topic320-76-1.aspx</link><description>Could u please provide answer to the following questions as follows:&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Brief information about yourself and your family&lt;/EM&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;STRONG&gt;I am xxx, an xxx currently working for xxx.  I have x brothers and x sisters and I am married person and have one son. My wife is xxx and my son is xxx (x years old).&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Your education &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;I have done my graduation in Bachelor of Computer Sciences i.e B.Sc (Computers)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Your experience with Oracle. When you started first? Has it been interest of your side or just a coincidence?&lt;/EM&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;I started using and practicing Oracle SQL &amp;amp; PL/SQL from my graduation in the year xxx. When I completed my graduation, I got trained in Oracle 8i DBA Administration in the year xxx. Then, I started working as Oracle DBA since xxx.&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What was the motive behind to prefer Oracle? Who you have been influenced by? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My elder brother,  who was already interviewed, is my motivator and mentor. He preferred me to choose my career in Oracle Technologies, and also he taught me many core techniques in Oracle DBA. I always follow his footsteps. He is not only a motivator to me but also he is a motivator for many other DBAs too. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What would your preference of profession if not Oracle?&lt;/EM&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;If not an Oracle DBA, then I would have been a programmer or developer&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What motivates you in your job? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My ability to work hard and deliver results, and reorganization and appreciation at the work motivates me.  My past experience motivates me to become DBA from Junior to Senior Level.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Do you refer to the documentation? And how often does it happen? &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Of course and I regularly refer the Oracle Documentations, my first and foremost source would be Oracle Documentation to get the concepts clear, and definitely documentation is a key for every Oracle Professional. I would prefer to read ILT materials as well, as these ILT chapters and concepts are refined and prepared from the vast Oracle Decimations. &lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What is the biggest mistake you have ever made during your DBA career? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;As long as I remember, I have never done such mistake in my DBA career which causes bigger problem.  Sometimes, I do commit silly mistakes which can be negligible; well after all we are human beings    &lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What was your greatest achievement as an Oracle DBA? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;STRONG&gt;Implanted Oracle 10g R2 RAC on Two Nodes, Upgraded and migrated critical banking database (2TB) from 9i to 10g, Converted single-instance to RAC Database using RCONFIG in with nominal downtime, Converted large Data Warehouse Databases from non-ASM to  ASM, Performed Cross Platform Database Migration, Implemented Physical Standby Database, etc. &lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What is your priority to manage the challenges you face? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;First understanding the issue or challenge, and prepare myself to resolve the issue with all the possibilities I know, or discussing with the team members or contacting with Oracle Support  to get their ideas to approach the solution, i.e. no question of giving up the challenges to face.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;How would you describe the essence of your success? According to your definition of success, how successful have you been so far?&lt;/EM&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Confidence, dedication and hard work are few essences of my success; these helped me a lot to be in this position today.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What are your best skills which make you differ from others?&lt;/EM&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Sharing the knowledge and help others in resolving the problems&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What’s your major weakness? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Being transparent and being calm sometimes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Have you ever lost your spirit? If so, what has been the reason and how have you overcome it? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Have no such known. But sometimes discourage and criticism make us feel loosing spirit. But no issue, after all we are humans, we need to think positive and need to know what we are, and get going. Never feel happy when someone appreciate your work and never feel bad or loose your spirit when someone discourage or criticize. So, believe in always of what you do. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What is the next success you would like to attain and your efforts to this end? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My next goal or success is to become an Oracle Certified Master; I’m gearing up for it, and will appear for this exam by the end of this year or the beginning of the next year. But, I have to undergo two Oracle Training courses to eligible for writing this exam.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;How do you balance your daily life with your career? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Not so easy to balance the personal life with professional life. All the time I’m on demand and should available for weekend activities in the bank. Due to this, sometimes, I don’t find enough time to spend with family, but I will surely fulfill the promises right after my busy schedules. &lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;How many hours do you work and sleep in a day? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;I work for 9-10 hours and sleep for 6 hours a day.&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Where and how do you spend your daily, weekly and annual holidays? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;During weekends with friends and colleagues, and definitely annual holidays with parents back in India.&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Do you think about Oracle during vacations? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;No&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;EM&gt;What’s your average typing speed? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;Not too fast and not too slow, just average  &lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Have you ever get involved in politics?&lt;/EM&gt;&lt;EM&gt;&lt;/EM&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;Never but like to read and know about politics.&lt;/STRONG&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;EM&gt;What’s your biggest ambition? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;My ambition is to acquire the most elite position and to attain senior level in Oracle field. And, of course, to join and extend my support to my elder brother in his future establishing company&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What would be your advice to the beginners in Oracle? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;I would suggest and advice the beginners in Oracle to join OTN Forums and other Oracle Forums, do practice all the DBA scenarios on different OS including Unix/Linux, prepare for Oracle Certifications, make a habit of referring Oracle Documentations/books/blogs., etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Would you like your children to follow in your footsteps or take a different path in life?&lt;/EM&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;I will wish them to choose their own path which would definitely better for them. &lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Do you have any followers of you? &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;Yes, my followers are from my family, friends, and my blog viewers.&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;What is your vision on the future of Oracle?&lt;/EM&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;Oracle has already come up with consolidate, compress and control in the latest version 11g R2 in the market.  But still I would like to see Oracle is to be more integrated technology and complete solution for all the worlds business needs. i.e. All-in-One/one place for everything.&lt;/STRONG&gt;</description><pubDate>Mon, 14 Jun 2010 14:36:50 GMT</pubDate><dc:creator>Admin</dc:creator></item><item><title>Oracle DBA General Interview Questions</title><link>http://www.franklinfaces.com/Topic23-76-1.aspx</link><description>&lt;FONT color=#115511&gt;&lt;STRONG&gt;1. How would you determine the time zone under which a database was operating?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;select DBTIMEZONE from dual;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#115511&gt;&lt;STRONG&gt;2. Explain the use of setting GLOBAL_NAMES equal to TRUE.&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&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;BR&gt;&lt;STRONG&gt;&lt;FONT color=#113311&gt;3. What command would you use to encrypt a PL/SQL application?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;WRAP&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;4. Explain the difference between a FUNCTION, PROCEDURE and PACKAGE.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&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;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;5. Explain the use of table functions.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&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;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;6. Name three advisory statistics you can collect.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Buffer Cache Advice, Segment Level Statistics, &amp;amp; Timed Statistics&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;7. Where in the Oracle directory tree structure are audit traces placed?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;In unix $ORACLE_HOME/rdbms/audit, in Windows the event viewer&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;8. Explain materialized views and how they are used.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&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;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;9. When a user process fails, what background process cleans up after it?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;PMON&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;10. What background process refreshes materialized views?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;The Job Queue Processes.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;11. How would you determine what sessions are connected and what resources they are waiting for?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Use of V$SESSION and V$SESSION_WAIT&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;12. Describe what redo logs are.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&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;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;13. How would you force a log switch?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;ALTER SYSTEM SWITCH LOGFILE;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;14. Give two methods you could use to determine what DDL changes have been made.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;You could use Logminer or Streams&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;15. What does coalescing a tablespace do?&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&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;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;16. What is the difference between a TEMPORARY tablespace and a PERMANENT tablespace?&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&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;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;17. Name a tablespace automatically created when you create a database.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;The SYSTEM tablespace.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;18. When creating a user, what permissions must you grant to allow them to connect to the database?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Grant the CONNECT to the user.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;19. How do you add a data file to a tablespace?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;ALTER TABLESPACE &lt;TABLESPACE_NAME&gt;ADD DATAFILE &lt;DATAFILE_NAME&gt;SIZE &lt;SIZE&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;20. How do you resize a data file?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;ALTER DATABASE DATAFILE &lt;DATAFILE_NAME&gt;RESIZE &lt;NEW_SIZE&gt;;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;21. What view would you use to look at the size of a data file?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;DBA_DATA_FILES&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;22. What view would you use to determine free space in a tablespace?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;DBA_FREE_SPACE&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;23. How would you determine who has added a row to a table?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Turn on fine grain auditing for the table.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;24. How can you rebuild an index?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;ALTER INDEX &lt;INDEX_NAME&gt;REBUILD;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;25. Explain what partitioning is and what its benefit is.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Partitioning is a method of taking large tables and indexes and splitting them into smaller, more manageable pieces.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;26. You have just compiled a PL/SQL package but got errors, how would you view the errors?&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;SHOW ERRORS&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;27. How can you gather statistics on a table?&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;The ANALYZE command.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;28. How can you enable a trace for a session?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Use the DBMS_SESSION.SET_SQL_TRACE or&lt;BR&gt;&lt;BR&gt;Use ALTER SESSION SET SQL_TRACE = TRUE;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;29. What is the difference between the SQL*Loader and IMPORT utilities?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&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;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;30. Name two files used for network connection to a database.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;TNSNAMES.ORA and SQLNET.ORA&lt;BR&gt;Technical - UNIX&lt;BR&gt;&lt;BR&gt;Every DBA should know something about the operating system that the database will be running on. The questions here are related to UNIX but you should equally be able to answer questions related to common Windows environments.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;31. How do you list the files in an UNIX directory while also showing hidden files?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;ls -ltra&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;32. How do you execute a UNIX command in the background?&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;Use the "&amp;amp;"&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;33. What UNIX command will control the default file permissions when files are created?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Umask&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;34. Explain the read, write, and execute permissions on a UNIX directory.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Read allows you to see and list the directory contents.&lt;BR&gt;&lt;BR&gt;Write allows you to create, edit and delete files and subdirectories in the directory.&lt;BR&gt;&lt;BR&gt;Execute gives you the previous read/write permissions plus allows you to change into the directory and execute programs or shells from the directory.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;35. What is the difference between a soft link and a hard link?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;A symbolic (soft) linked file and the targeted file can be located on the same or different file system while for a hard link they must be located on the same file system.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;36. Give the command to display space usage on the UNIX file system.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;df -lk&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;37. Explain iostat, vmstat and netstat.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Iostat reports on terminal, disk and tape I/O activity.&lt;BR&gt;&lt;BR&gt;Vmstat reports on virtual memory statistics for processes, disk, tape and CPU activity.&lt;BR&gt;&lt;BR&gt;Netstat reports on the contents of network data structures.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;38. How would you change all occurrences of a value using VI?&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;Use :%s/&lt;OLD&gt;/&lt;NEW&gt;/g&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;39. Give two UNIX kernel parameters that effect an Oracle install&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;SHMMAX &amp;amp; SHMMNI&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;40. Briefly, how do you install Oracle software on UNIX.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Basically, set up disks, kernel parameters, and run orainst.&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;&lt;FONT color=#115511&gt;41. Describe the Oracle Wait Interface, how it works, and what it provides. What are some limitations? What do the db_file_sequential_read and db_file_scattered_read events indicate?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;The Oracle Wait Interface refers to Oracle's data dictionary for managing wait events. Selecting from tables such as v$system_event and v$session_event give you event totals through the life of the database (or session). The former are totals for the whole system, and latter on a per session basis. The event db_file_sequential_read refers to single block reads, and table accesses by rowid. db_file_scattered_read conversely refers to full table scans. It is so named because the blocks are read, and scattered into the buffer cache.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#115511&gt;&lt;STRONG&gt;42. How do you return the top-N results of a query in Oracle? Why doesn't the obvious method work?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;Most people think of using the ROWNUM pseudocolumn with ORDER BY. Unfortunately the ROWNUM is determined *before* the ORDER BY so you don't get the results you want. The answer is to use a subquery to do the ORDER BY first. For example to return the top-5 employees by salary:&lt;BR&gt;&lt;BR&gt;SELECT * FROM (SELECT * FROM employees ORDER BY salary) WHERE ROWNUM &amp;lt; 5; &lt;BR&gt;&lt;BR&gt;&lt;FONT color=#115511&gt;&lt;STRONG&gt;43. What is a database link? What is the difference between a public and a private database link? What is a fixed user database link?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;A database link allows you to make a connection with a remote database, Oracle or not, and query tables from it, even incorporating those accesses with joins to local tables.&lt;BR&gt;&lt;BR&gt;A private database link only works for, and is accessible to the user/schema that owns it. A global one can be accessed by any user in the database.&lt;BR&gt;&lt;BR&gt;A fixed user link specifies that you will connect to the remote db as one and only one user that is defined in the link. Alternatively, a current user database link will connect as the current user you are logged in as.&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#115511&gt;&lt;STRONG&gt;44. What are some advantages to using Oracle's CREATE DATABASE statement to create a new database manually?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;* You can script the process to include it in a set of install scripts you deliver with a product.&lt;BR&gt;* You can put your create database script in CVS for version control, so as you make changes or adjustments to it, &lt;BR&gt;you can track them like you do changes to software code.&lt;BR&gt;* You can log the output and review it for errors.&lt;BR&gt;* You learn more about the process of database creation, such as what options are available and why.&lt;BR&gt;</description><pubDate>Thu, 27 Nov 2008 01:33:11 GMT</pubDate><dc:creator>Admin</dc:creator></item></channel></rss>