Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
13499941 Oracle DBA Interview Question2

13499941 Oracle DBA Interview Question2

|Views: 154|Likes:
Published by mansvi
DBA interview Questions
DBA interview Questions

More info:

Published by: mansvi on Aug 11, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





ORACLE BASICS INTERVIEW QUESTIONS1.What is difference between varchar and varchar2?Varchar means fixed length char varchar2 means variable length char 2. Difference between oracle8i and oracle9i?a. The biggest difference between Oracle8i and Oracle9i is that Oracle9i lets you resize the SGA memoryareas dynamically i.e., the Database Buffer Cache DB_CACHE_SIZE or the SHARED_POOL_SIZE, etc.,can be resized when the database is up and running. The same is not possible with Oracle8i. You can getmore information from OTN b. Oracle 9i is an enhanced version of the Oracle 8i.Oracle 8i does not provided time stamping facility, whichis provided in Oracle 9i.c. you can drop a column in oracle 9i using alter table command where as this is not available in oracle 8id. Database performance ease of management scalability security availability Windows 2000 integration andapplication areas: Internet content management commerce integration packaged applications BusinessIntelligence native compilation of PL/SQL reduction in latch contention (SGA locks) and I/O improvements better Java performance (better compilation, improved garbage collection) distributed database performanceenhancements enhanced 3-tier security (integration with LDAP...) improved hosting security (through use of virtual private databases), fine-grained auditing and single sign-on improved user security (more passwordmanagement features, etc.)Ability to encrypt stored data row-level access control (Oracle Label Security)e. Listed below are some of the features of 9i:1) U has automatic undo management.2) U has automatic segment space management3) U got these locally managed tablespaces which is better than the dictionary managed tablespacesas u can avoid fragmentation with locally managed tablespaces.4) U has a new dbms_metadata package to extract object definitions from database.5) Multi table insert is possible with 9i6) Importantly u has this spfile in 9i.7) Also u has dynamic memory management facility with 9i.8) U has tuning advisories with 9i.9) U has multi block size parameter with 9i and many more features like these.3.What is Pro*C? What is OCI?Pro *CThe Pro* c/C++ precompiler takes the SQL statement that embedded in C/C++ code convert into standardC/C++ code. When successfully precompile this code, the result is a C or C++ program that we compile andused to build the application that access the Oracle Application.OCI: - OCI refer to Oracle Call interface is set of Low Level API (Application Program Interface Call) used tointeract with Oracle Database. By OCI one can use the operation such as Logon, Fatch, parse, execute etc.Generally these are written in C/C++.4.What is the difference between "NULL in C" and "NULL in Oracle?The NULL in C treated as Zero or void. but in SQL NULL value is Non or blank represented it can'tmanipulated 5. In Oracle varchar2 takes dynamic space for storage then why char is still in oracle?
The major difference between varchar2 and char is fixed length and variable length. Varchar2 have variablelength mean if we declare as 20 space and its use only 5 space the memory assign only 5. But in char takesdaclare space while use any number space less than declare6.what are the difference between and constraints and triggers?Constraints are used to maintain the integrity and atomicity of database .in other words it can be said they areused to prevent invalid data entry. The main 5 constraints are NOT NULL, PRIMARY KEY, FOREIGN KEY, UNIQUE KEY and CHECK Triggers are basically stored procedures, which automatically fired when any insert, update or delete is issuedon tableAnother most imp. Diff. is that trigger effected only those row after which trigger applied but constrainteffected all row of table.7.what is normalization? What is the advantage of normalization (briefly)1.The process of separating data into distinct, unique sets is called normalization. This is implemented toimprove the performance of the RDBMS, such as reduces redundancy of data and data inconsistency.2.Normalization is the process of removing redundant data from your tables in order to improve storageefficiency, data integrity and scalability.3.Database normalization is a series of steps followed to obtain a database design that allows for consistentstorage and efficient access of data in a relational database. These steps reduce data redundancy and the risk of data becoming inconsistent.4.Normalization is the process used to reduce the unnecessary repetition of data i.e., redundant data. It is performed on the data, which is redundant and makes the data in a normalized format. It is of step-by-step process IstNotmal, FormIIndNormal, formIIIrdNormal, formIVthNormal form or Boyce odd Normal form By performing this we will get the data in the Normalized formati.,e from DBMS to RDBMS.8.How the logs are escalated?There are different types are logs which are logged by Oracle Database Engine. A DBA has to look in for alter log which exist background dump dust. The seviourity of the problem are analysed and escalated based on theinformation provided by the alter log.9.What is structure of Database?1.Oracle database usually contains one database and a single instance. But, Oracle 9i, 10g RAC (RealApplication Clusters) can have multiple instances to interact with a single database for high availability.Instance is non-persistent, memory based background processes and structures.Database is persistent, disk based, data and control files2.Physical Structure of Database:One or more data files, control file(s), Redo log file(s) and init.ora fileLogical Structure of Database:Table spaces, segments, extents, blocks10.what is the difference between primary key, unique key, and surrogate key?Primary Key: A column in a table whose values uniquely identify the rows in the table. A primary key valuecannot be NULL.Unique Key: Unique Keys are used to uniquely identify each row in an Oracle table. There can be one andonly one row for each unique key value.
 Surrogate Key: A system generated key with no business value. Usually implemented with database-generatedsequences.Primary Key Unique key1.There is only one 1. There may be more than 1Primary key for I table Unique Key in table2.It can contain Null Value 2. It can contain Null Value 1. what are the diffrent file types that are supported by SQL*Loader?a.direct method (skips dbcache, no redo generation) b. conventional method (just opposite of direct load)2.How to find how many database reside in Oracle server in query?select count(*) from v$database;3.What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statementuse an index, even if the index scan may appear to be calculated as more costly?CBO (Cost Based Optimizer): Generates an execution plan for a SQL statementOptimizer_index_cost_adj parameter can be set to help CBO to decide an execution plan, which affectsthe speed of SQL query. We can also make necessary changes to the following parameters to effectCBO performance:Optimizer_search_limit & optimizer_max_permutations4.How many memory layers are in the shared pool?The shared pool portion of the SGA contains three major areas: library cache, dictionary cache, buffersfor parallel execution messages, and control structures.5.What are the attributes of the Virtual Indexes?a.These are permanent and continue to exist unless we drop them. b.Their creation will not affect existing and new sessions. Only sessions marked for Virtual Indexusage will become aware of their existence.c.Such indexes will be used only when the hidden parameter "_use_nosegment_indexes" is set totrue.d. The Rule based optimizer did not recognize Virtual Indexes when ITested, however, CBO recognizes them. In all of my examples, I have used CBO. However, I did notcarry out intensive testing in RBO and you may come across exceptions to this view.d.Dictionary view DBA_SEGMENTS will not show an entry for Virtual Indexes. The tableDBA_INDEXES and DBA_OBJECTS will have an entry for them in Oracle 8i; in Oracle 9ionwards, DBA_INDEXES no longer show Virtual Indexes.e. Virtual Indexes cannot be altered and throw a "fake index" error!f. Virtual Indexes can be analyzed, using the ANALYZE command or DBMS_STATS package, but thestatistics cannot be viewed (in Oracle 8i, DBA_INDEXES will not show this either). Oracle may begenerating artificial statistics and storing it somewhere for referring it later.Creating Virtual Index

Activity (6)

You've already reviewed this. Edit your review.
1 hundred reads
bhaaswanthy liked this
cthmanish liked this
Vipinkumar Jha liked this
mani246ibibo liked this
Carl Qin liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->