Top Oracle Database Architecture Interview Questions
Q – 1 What is an Oracle Data Segment?
Ans- Each Non-clustered table has a data segment. All of the table’s data is stored in the extents of its data segment. Each cluster has a data segment. The data of every table in the cluster is stored in the cluster’s data segment.
Q – 2 What is an oracle database schema?
Ans- A schema is collection of database objects of a User.
A schema is collection of database objects of an user and is used synonym of an user.
Schema name = user name
Q – 3 Can a Tablespace hold objects from different Schemes in Oracle?
Ans- Yes a Tablespace can hold objects from different Schemes in Oracle
Q – 4 What is an Integrity Constrains in Oracle?
Ans- An integrity constraint is a declarative way to define a business rule for a column of a table.
Q – 5 How to define Data Block size in Oracle?
Ans- A data block size is specified for each ORACLE database when the database is created. A database users and allocated free database space in ORACLE datablocks. Block size is specified in INIT.ORA file and can?t be changed latter.
A data block size is defined by DB_BLOCK parameter in pfile and there could be non standard block sizes supported by Oracle upto block size of 32bytes
Once set the block size could not be changed and the database has to be created again
Q – 6 Can an Integrity Constraint be enforced on a table if some existing table data does not satisfy the constraint?
Ans- Yes we can enforce integrity constraint on a table if some existing table does not satisfy the constraint by using “ENABLE NOVALIDATE”
Q – 7 What is an Oracle SYSTEM tablespace and when is it Created?
Ans- Every ORACLE database contains a tablespace named SYSTEM, which is automatically created when the database is created. The SYSTEM tablespace always contains the data dictionary tables for the entire database.
The SYSTEM tablespace is created automatically for each new Oracle database. It contains all the data dictionary objects for the entire database.
Q – 8 What is an Oracle Data Dictionary?
Ans- The data dictionary of an ORACLE database is a set of tables and views that are used as a read-only reference about the database.
It stores information about both the logical and physical structure of the database, the valid users of an ORACLE database, integrity constraints defined for tables in the database and space allocated for a schema object and how much of it is being used.
Q – 9 Describe the different type of Integrity Constraints supported by ORACLE?
Ans- NOT NULL Constraint – Disallows Nulls in a table’s column.
UNIQUE Constraint – Disallows duplicate values in a column or set of columns.
PRIMARY KEY Constraint – Disallows duplicate values and Nulls in a column or set of columns.
FOREIGN KEY Constrain – Require each value in a column or set of columns match a value in a related table’s UNIQUE or PRIMARY KEY.
CHECK Constraint – Disallows values that do not satisfy the logical expression of the constraint.
Q – 10 What is the function of Redo Log in Oracle?
Ans- The Primary function of the redo log is to record all changes made to data
Q – 11 Can a View based on another View in Oracle?
Ans- Yes a View based on another View in Oracle
Q – 12 What is the use of Oracle Control File?
Ans- When an instance of an ORACLE database is started, its control file is used to identify the database and redo log files that must be opened for database operation to proceed. It is also used in database recovery.
Control files is a binary file. Before database is opened it determines whether database is in valid state or not. If yes then database is opened.
Q – 13 Can objects of the same Schema reside in different tablespaces?
Ans- Yes objects of the same Schema reside in different tablespaces
Q – 14 What is an Oracle Data Block?
Ans- ORACLE database’s data is stored in data blocks. One data block corresponds to a specific number of bytes of physical database space on disk.
Oracle database consists of logical storage place which is called as blocks and the bytes in a block is set through DB_BLOCK parameter in parameter file
Q – 15 What are Oracle Schema Objects?
Ans- Schema objects are the logical structures that directly refer to the databases data. Schema objects include tables, views, sequences, synonyms, indexes, clusters, database triggers, procedures, functions packages and database links.
Q – 16 What are the uses of Oracle Rollback Segment?
Ans- Rollback Segments are used :
To generate read consistent database information during database recovery to rollback uncommitted transactions for users
Q – 17 What is an Oracle Rollback Segment?
Ans- A Database contains one or more Rollback Segments to temporarily store “undo” information.