Professional Documents
Culture Documents
Interview Qns With Unix
Interview Qns With Unix
Interview Qns With Unix
Have you ever installed a new release of Oracle? What version and on what OS?
Name the main Oracle Background processes and what they do?
o SMON – performs instance recovery as needed, cleans up objects no longer needed
o PMON – cleans up failed user processes, frees up the resources
o DBWR – writes changed blocks from the SGA to the data files
o LGWR – writes redo log buffer contents to the redo log data files
o CKPT (optional) - causes DBWR to write to data files, and records checkpoint info
(timestamp) on the data file headers and the control files
o RECO (optional) – manages distributed databases
o ARCH (optional) – copies redo log file to an archive file
What steps would you perform to recover from a disk failure on a data file?
o Restore data file from backup
o Roll forward using the redo logs (archive and current redo logs)
What are the two types of Oracle optimizers and how do they work?
o Cost-based optimizer
The Cost Based Optimizer calculates the cost of different execution plans and then chooses the
plan with the lowest cost. To calculate the cost, the Cost Based Optimizer uses statistics
gathered when tables and/or indexes are analyzed.
o Rule-based optimizer
The RULE Based Optimizer uses a strict set of rules to determine the plan.
What 3rd party tools have you used in your job as a DBA
What was the most difficult technical obstacle you encountered in your job this past year?
What parts of your job do you like most? What parts do you like least?
Unix questions:
1. Explain in as much detail as possible what the UNIX command chmod does:
2. If I’m unix user oracle and I own a file named “hello.world” and I execute “Chmod 754
hello.world”, what permissions have I set?
3. How would you show the permissions for all files in a directory?
4. Lets say you have two Oracle instances installed on a HPUX machine called Prod1 and Prod2, and
you want to set a unix login to automatically be set to log into the Prod2 instance. How would you
accomplish that?
5. What is the difference between a “fully qualified pathname” and a “relative” path name?
6. What is the difference between the unix commands “mv” and “cp” ?
7. How do you bring up the native UNIX help facility for the unix command “chown”?
8. A user calls you and wants you to end their database session, you use a tool such as OEM to end
their session, but its not going away and they want you to attempt to end the session more quickly
via UNIX, how do you go about that? After you’ve accomplished that,how do you verify via a
unix command line?