Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books
Content
Oracle interview
Oracle architecture
Oracle processes
Oracle memory area
Oracle file types
Oracle database objects
Oracle operators
Oracle composite
Oracle constraints
Oracle data types
Oracle DCL and TCL
Oracle DML commands
Oracle error handling
Oracle functions
Oracle function, procedure, package
Oracle import and export
Oracle sub queries
Oracle table
Oracle triggers
Oracle views
Oracle synonym
Oracle indexes
Oracle joins
Oracle cursors
Oracle form
Oracle security
Oracle system privilege
Oracle object privileges
Oracle table privileges
Oracle view privileges
Oracle backup & recovery
Oracle DBA
Oracle PL/SQL
Oracle nested table & varrays
Oracle large objects
Oracle replication
Oracle transaction
Oracle optimizer
Oracle auditing
Oracle backup
Oracle database tuning
Oracle application tuning
Oracle procedures
Oracle functions
Oracle loops
Oracle exceptions
Oracle Select into clause
Oracle string functions
Oracle numeric functions
Oracle date functions
Oracle translate and decode
Oracle correlated sub-queries
Oracle union, intersect and minus
Oracle clusters
Oracle sequences
Oracle tablespaces
Oracle object datatypes
 
ASP.NET | ADO.NET | AJAX
C#.NET | VB.NET | PHP
NET Remoting | NET Interview
  
C | C++ | Java | Oops
Data Structure | OS
   
Database concepts | Oracle
SQL Server | Biztalk | Sharepoint
Notification services
Reporting Services
Service-oriented architecture
Data warehousing | MySQL
  
Project Management 
Linux | Testing | Networking
Software engineering 
  
UML | XML | HTML | SOAP 
CSS | VBScript  | Web Services
   
CV Cover letter | Interview 
HR | Soft skills | GD 
Working from Home 
Tutorial
ASP.NET | VB.NET | C#.NET     
Remoting.NET | Web service
Remoting overview | ADO.NET
UML | Sql server 
More links
Introduction to Legacy Modernization 
Oracle Web RowSet 
Books on Oracle
Oracle Modernization Solutions 
JDBC 4.0 and Oracle JDeveloper for J2EE Development 

Oracle Architecture

Oracle architecture questions

<<Previous  Next>>

Part 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30  | 31    NEXT>>  

Oracle architecture - August 11, 2008 at 15:00 PM by Amit Satpute

Describe Oracle architecture in brief.

Answer
The Oracle database has:

- Logical layer: The components of the logical layer map the data to these physical components

- Physical layer: The physical layer consists of the files that reside on the disk

Tablespaces and Datafiles
The database is divided into one or more logical pieces known as tablespaces. A tablespace is used to logically group data together

The Database Schema: A collection of logical-structure objects, known as schema objects.

These schema objects consist of structures such as:
- tables,
- clusters,
- indexes,
- views,
- stored procedures,
- database triggers, and
- sequences.

Segments, Extents, and Data Blocks
Within Oracle, the space used to store data is controlled by the use of logical structures. These structures consist of the following:

  • Data blocks--A block is the smallest unit of storage in an Oracle database. (contains header information concerning the block itself as well as the data)
  • Extents--Extents consist of data blocks.
  • Segments--A segment is a set of extents used to store a particular type of data.

The Oracle Instance has:

  • User processes
  • Oracle background processes
  • The shared memory

The Oracle Memory Structure contains:

  • The System Global Area (SGA)
  • The Data-Dictionary Cache
  • The Program Global Area (PGA)

What is the function of SMON?  

Answer
The SMON background process performs all system monitoring functions on the oracle database.

Each time oracle is re-started, SMON performs a warm start and makes sure that the transactions that were left incomplete at the last shut down are recovered.

SMON performs periodic cleanup of temporary segments that are no longer needed.



Oracle architecture - August 28, 2008 at 17:00 PM by Amit Satpute

Explain different types of segment. Data segment, Index segment, Rollback segment and temporary segment. 

Answer
There are four types of segments used in Oracle databases: 

- data segments
- index segments
- rollback segments
- temporary segments

Data Segments:
There is a single data segment to hold all the data of every non clustered table in an oracle database. This data segment is created when you create an object with the CREATE TABLE/SNAPSHOT/SNAPSHOT LOG command. Also, a data segment is created for a cluster when a CREATE CLUSTER command is issued.

The storage parameters control the way that its data segment's extents are allocated. These affect the efficiency of data retrieval and storage for the data segment associated with the object.

Index Segments:
Every index in an Oracle database has a single index segment to hold all of its data. Oracle creates the index segment for the index when you issue the CREATE INDEX command. Setting the storage parameters directly affects the efficiency of data retrieval and storage.

Rollback Segments
Rollbacks are required when the transactions that affect the database need to be undone. Rollbacks are also needed during the time of system failures. The way the roll-backed data is saved in rollback segment, the data can also be redone which is held in redo segment. 

A rollback segment is a portion of the database that records the actions of transactions if the transaction should be rolled back. Each database contains one or more rollback segments. Rollback segments are used to provide read consistency, to rollback transactions, and to recover the database.

Types of rollbacks:
- statement level rollback 
- rollback to a savepoint 
- rollback of a transaction due to user request 
- rollback of a transaction due to abnormal process termination 
- rollback of all outstanding transactions when an instance terminates abnormally 
- rollback of incomplete transactions during recovery.

Temporary Segments:
The SELECT statements need a temporary storage. When queries are fired, oracle needs area to do sorting and other operation due to which temporary storages are useful.

The commands that may use temporary storage when used with SELECT are:
GROUP BY, UNION, DISTINCT, etc. 

Explain SGA memory structures: Shared Pool, Database buffer Cache, Redo log Cache, Large Pool Java Pool.

Answer
SGA (System Global Area) is a dynamic memory area of an Oracle Server. In SGA,the allocation is done in granuels. The size of the SGA is dependent on SGA_MAX_SIZE parameter.

The memory structures contained by SGA are:-

Shared Pool -
this memory structure is divided into two sub-structures which are Library Cache and Data Dictionary Cache for storing recently used PL/SQL statements and the recent data definitions. The maximum size of the Shared Pool depends on the SHARED_POOL_SIZE parameter.

Database Buffer Cache –
This memory structure improves the performance while fetching or updating the recently used data as it stores the recently used datafiles. The size of this block is decided by DB_BLOCK_SIZE.

Redo Log Buffer –
This memory structure is used to store all the changes made to the database and it's primarily used for the data recovery purposes. The size of this block is decided by LOG_BUFFER.

Java Pool –
This memory structure is used when Java is installed on the Oracle server. Size that can be used is stored in parameter named JAVA_POOL_SIZE.

Large Pool –
This memory structure is used to reduce the burden of the Shared Pool, as the Session memory for the Shared Server, as the temporary storage for the I/O and for the backup and restore operations or RMAN. Parameter that stores the maximum size is LARGE_POOL_SIZE.

What is SQL Loader? Explain the files used by SQL Loader to load file. i.e Loader control file, Input datafile, Log File, Bad File, Discard file.

Answer
SQL*Loader is a bulk loader utility used for moving data from external files into the Oracle database. SQL*Loader supports various load formats, selective loading, and multi-table loads.

When a control file is fed to an SQL*Loader, it writes messages to the log file, bad rows to the bad file and discarded rows to the discard file.

Control file
The SQL*Loader control file contains information that describes how the data will be loaded. It contains the table name, column datatypes, field delimiters, etc.
controlfile.sql should be used to generate an accurate control file for a given table.

Log File
The log file contains information about the SQL*loader execution. It should be viewed after each SQL*Loader job is complete.

Explain the methods provided by SQL Loader.

Answer
Conventional Path Load
Direct Path Load


What is the physical and logical structure of oracle?

Answer
Logical Database structures 
Logical structures include tablespaces, schema objects, data blocks, extents and segments.

Tablespaces 
Database is logically divided into one or more tablespaces. Each tablespace creates one or more datafiles to physically store data.

Schema objects
Schema objects are the structure that represents database's data. Schema objects include structures such as tables, views, sequences, stored procedures, indexes, synonyms, clusters and database links.

Data Blocks
Data block represents specific number of bytes of physical database space on disk. 

Extents
An extent represents continuous data blocks that are used to store specific data information.

Segments
A segment is a set of extents allocated for a certain logical structure.

Physical database structure
The physical database structure comprises of datafiles, redo log files and control files

Datafiles
Datafiles contain database's data. The data of logical data structures such as tables and indexes is stored in datafiles of the database. One or more datafiles form a logical unit of database storage called a tablespace. 

Redo log files
The purpose of these files is to record all changes made to data. These files protect database against failures.

Control files
Control files contain entries such as database name, name and location of datafiles and redo log files and time stamp of database creation.   


<<Previous  Next>>



 
Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.