Oracle Dba Jobs Interview Question and Answers. PART-1
Salam,
These are the Oracle DBA Interview Questions, these are compiled together at one place so that at the last movement you can have a look and go for the Interview.
1. Basic Level
1.1 Q- Which are the default passwords of
SYSTEM/SYS?
ANS- MANAGER / CHANGE_ON_INSTALL
1.2 Q- How can you execute a script file
in SQLPLUS?
ANS - To execute a script file in
SQLPlus, type @ and then the file name.
1.3 Q- Where can you find official Oracle
documentation?
ANS - tahiti.oracle.com
1.4 Q- What is the address of the Official
Oracle Support?
ANS - metalink.oracle.com or
support.oracle.com
1.5 Q- What file will you use to establish
Oracle connections from a remote client?
ANS - tnsnames.ora
1.6 Q- How can you check if the database
is accepting connections?
ANS -
lsnrctl status or lsnrctl services
1.7 Q- Which log would you check if a
database has a problem?
ANS - Alert log
1.8 Q- Name three clients to connect with
Oracle, for example, SQL Developer:
ANS
- SQL Developer, SQL-Plus, TOAD, dbvisualizer, PL/SQL Developer… There are
several, but an experienced dba should know at least three clients.
1.9 Q- How can you check the structure of
a table from sqlplus?
ANS - DESCRIBE or DESC
1.10 Q- What command will you start to run
the installation of Oracle software on Linux?
ANS -
runInstaller
2. Moderate
Level
2.1 Q- What should you do if you encounter
an ORA-600?
ANS -
Contact Oracle Support
2.2 Q- Explain the differences between
PFILE and SPFILE
ANS - A PFILE is a Static, text file
that initializes the database parameter in the moment that it’s started. If you
want to modify parameters in PFILE, you have to restart the database.
A SPFILE is
a dynamic, binary file that allows you to overwrite parameters while the
database is already started (with some exceptions)
2.3 Q- In which Oracle version was Data
Pump introduced?
ANS
- Oracle 10g
2.4 Q- Say two examples of DML, two of DCL
and two of DDL
ANS - DML: SELECT, INSERT, UPDATE,
DELETE, MERGE, CALL, EXPLAIN PLAN, LOCK TABLE DDL: CREATE, ALTER, DROP,
TRUNCATE, COMMENT, RENAME
DCL: GRANT,
REVOKE
2.5 Q- You want to save the output of an
Oracle script from sqlplus. How would you do it?
ANS - spool script_name.txt
select *
from your_oracle_operations; spool off;
2.6 Q- What is the most important
requirement in order to use RMAN to make consistent hot backups?
ANS - Your database has to be in
ARCHIVELOG mode.
2.7 Q- Can you connect to a local database
without a listener?
ANS
- Yes, you can.
2.8 Q- In which view can you find
information about every view and table of oracle dictionary?
ANS - DICT or DICTIONARY
2.9 Q- How can you view all the users
account in the database?
ANS - SELECT USERNAME FROM DBA_USERS;
2.10 Q- In linux, how can we change which
databases are started during a reboot?
ANS - Edit /etc/oratab
3. Advanced
3.1 Q- When a user process fails, what
Oracle background process will clean after it?
ANS - PMON
3.2 Q- How can you reduce the space of
TEMP datafile?
ANS - Prior to Oracle 11g, you had to
recreate the datafile. In Oracle 11g a new feature was introduced, and you can
shrink the TEMP tablespace.
3.3 Q- How can you view all the current
users connected in your database in this moment?
ANS - SELECT COUNT(*),USERNAME FROM V$SESSION GROUP BY USERNAME;
3.4 Q- Explain the differences between
SHUTDOWN, SHUTDOWN NORMAL, SHUTDOWN IMMEDIATE AND SHUTDOWN ABORT
ANS - SHUTOWN NORMAL = SHUTDOWN : It
waits for all sessions to end, without allowing new connections.
SHUTDOWN
IMMEDIATE : Rollback current transactions and terminates every session.
SHUTDOWN
ABORT : Aborts all the sessions, leaving the database in an inconsistent state.
It’s the fastest method, but can lead to database corruption.
3.5 Q- Is it possible to backup your
database without the use of an RMAN database to store the catalog?
ANS
- Yes, but the catalog would be stored in the controlfile.
3.6 Q- Which are the main components of
Oracle Grid Control?
ANS - OMR (Oracle Management
Repository), OMS (Oracle Management Server) and OMA (Oracle Management Agent).
3.7 Q- What command will you use to
navigate through ASM files?
ANS - asmcmd
3.8 Q- What is the difference between a
view and a materialized view?
ANS - A view is a select that is
executed each time an user accesses to it. A materialized view stores the
result of this query in memory for faster access purposes.
3.9 Q- Which one is faster: DELETE or
TRUNCATE?
ANS - TRUNCATE
3.10 Q- Are passwords in oracle case
sensitive?
ANS - Only since Oracle 11g.
4. RAC DBA INTERVIEW QUESTION AND ANSWERS ONLY !!
4.1 Q- What is the recommended method to
make backups of a RAC environment?
ANS - RMAN to make backups of the
database, dd to backup your voting disk and hard copies of the OCR file.
4.2 Q- What command would you use to check
the availability of the RAC system? ANS
- crs_stat -t -v (-t -v are optional)
4.3 Q- What is the minimum number of
instances you need to have in order to create a RAC? ANS - 1. You can create a RAC with just one server.
4.4 Q- Name two specific RAC background
processes
ANS - RAC processes are: LMON, LMDx,
LMSn, LKCx and DIAG.
4.5 Q- Can you have many database versions
in the same RAC?
ANS - Yes, but Clusterware version must
be greater than the greater database version.
4.6 Q- What was RAC previous name before
it was called RAC?
ANS - OPS: Oracle
Parallel Server
4.7 Q- What RAC component is used for
communication between instances?
ANS
- Private Interconnect.
4.8 Q- What is the difference between
normal views and RAC views?
ANS - RAC views has the prefix ‘G’. For
example, GV$SESSION instead of V$SESSION
4.9 Q- Which command will we use to manage
(stop, start…) RAC services in command-line mode?
ANS - srvctl
4.10 Q- How many alert logs exist in a RAC
environment?
ANS - One for each instance.
5. MASTER'S ADVANCE LEVEL
5.1 Q- How can you difference a usual
parameter and an undocumented parameter?
ANS - Undocumented parameters have the
prefix ‘_’. For example, _allow_resetlogs_corruption
5.2 Q- What is BBED?
ANS - An undocumented Oracle tool used
for forensic purposes. Stans for Block Browser and Editor.
5.3 Q- The result of the logical
comparison (NULL = NULL) will be… And in the case of (NULL! = NULL)
ANS - False in both cases.
5.4 Q- Explain Oracle memory structure
ANS - The Oracle RDBMS creates and uses
storage on the computer hard disk and in random access memory (RAM). The
portion in the computer s RAM is called memory structure. Oracle has two memory
structures in the computer s RAM. The two structures are the Program Global
Area (PGA) and the System Global Area (SGA).
The PGA
contains data and control information for a single user process. The SGA is the
memory that stores data that the user has retrieved from the database or data
that the user wants to place into the database.
5.5 Q- Will RMAN take backups of read-only
tablespaces?
ANS - No
5.6 Q- Will a user be able to modify a
table with SELECT only privilege?
ANS - He won’t be able to UPDATE/INSERT
into that table, but for some reason, he will still be able to lock a certain
table.
5.7 Q- What Oracle tool will you use to transform
datafiles into text files?
ANS - Trick question: you can’t do
that, at least with any Oracle tool. A very experienced DBA should perfectly
know this.
5.8 Q- SQL> SELECT * FROM
MY_SCHEMA.MY_TABLE;
SP2-0678:
Column or attribute type can not be displayed by SQL*Plus Why I’m getting this
error?
ANS - The table has a BLOB column.
5.9 Q- What parameter will you use to
force the starting of your database with a corrupted resetlog? ANS - _ALLOW_RESETLOGS_CORRUPTION
5.10 Q- Name the seven types of Oracle tables
ANS - Heap Organized Tables, Index
Organized Tables, Index Clustered Tables, Hash Clustered Tables, Nested Tables,
Global Temporary Tables, Object Tables
http://ghufranahmedkhan.blogspot.com/2015/06/oracle-dba-jobs-interview-question-and_22.html
Click here to move to Next Part of the Question and Answers.
http://ghufranahmedkhan.blogspot.com/2015/06/oracle-dba-jobs-interview-question-and_22.html
Comments
Post a Comment
Welcome to the Oracle DBA Blog.
Stay Hungry Stay Foolish