Oracle Interview Questions - 13
Q.What are the types of database links?
Private database link, public database link & network database link.
Q.What is public database link?
Public database link is created for the special user group PUBLIC. A public database link can be used when any user in the associated database specifies a global object name in a SQL statement or object definition.
Q.What is network database link?
Network database link is created and managed by a network domain service. A network database link can be used when any user of any database in the network specifies a global object name in a SQL statement or object definition.
Q.What is private database link?
Private database link is created on behalf of a specific user. A private database link can be used only when the owner of the link specifies a global object name in a SQL statement or in the definition of the owner's views or procedures.
Q.What is data block?
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.
Q.What is an extent?
An extent is a specific number of contiguous data blocks, obtained in a single allocation and used to store a specific type of information.
Q.How to define data block size?
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 data blocks. Block size is specified in init.ora file and cannot be changed latter.
Q.What are the different types of segments?
Data segment, index segment, rollback segment and temporary segment.
Q.What is row chaining?
In circumstances, all of the data for a row in a table may not be able to fit in the same data block. When this occurs, the data for the row is stored in a chain of data block (one or more) reserved for that segment.
Q.What is a temporary segment?
Temporary segments are created by Oracle when a SQL statement needs a temporary work area to complete execution. When the statement finishes execution, the temporary segment extents are released to the system for future use.
Q.What is a data segment?
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.What is rollback segment?
A database contains one or more rollback segments to temporarily store "undo" information.
Q.What are the uses of rollback segment?
To generate read-consistent database information during database recovery and to rollback uncommitted transactions by the users.
Q.What is an index segment?
Each index has an index segment that stores all of its data.
Q.Where would you look for errors from the database engine?
In the alert log.
Q.Explain the difference between a hot backup and a cold backup and the benefits associated with each.
A hot backup is basically taking a backup of the database while it is still up and running and it must be in archive log mode. A cold backup is taking a backup of the database while it is shut down and does not require being in archive log mode. The benefit of taking a hot backup is that the database is still available for use while the backup is occurring and you can recover the database to any point in time. The benefit of taking a cold backup is that it is typically easier to administer the backup and recovery process. In addition, since you are taking cold backups the database does not require being in archive log mode and thus there will be a slight performance gain as the database is not cutting archive logs to disk.
Q.You have just had to restore from backup and do not have any control files.
How would you go about bringing up this database?
I would create a text based backup control file, stipulating where on disk all the data files where and then issue the recover command with the using backup control file clause.
Q.What is a datafile?
Every Oracle database has one or more physical data files. A database's data files contain all the database data. The data of logical database structures such as tables and indexes is physically stored in the data files allocated for a database.
Q.What are the characteristics of data files?
A data file can be associated with only one database. Once created a data file can't change size. One or more data files form a logical unit of database storage called a tablespace.
Q.Can a formula column be obtained through a select statement?
Q.Is it possible to insert comments into sql statements return in the data model editor?
Q.What is a redo log?
The set of redo log files for a database is collectively known as the database redo log.
Q.What is the function of redo log?
The primary function of the redo log is to record all changes made to data.
Q.What does a control file contains?
- Database name
- Names and locations of a database's files and redolog files.
- Time stamp of database creation.
Q.Explain the difference between a data block, an extent and a segment.
A data block is the smallest unit of logical storage for a database object. As objects grow they take chunks of additional storage that are composed of contiguous data blocks. These groupings of contiguous data blocks are called extents. All the extents that an object takes when grouped together are considered the segment of the database object.
Q.How do you switch from an init.ora file to a spfile?
Issue the create spfile from pfile command.
Q.Give two examples of how you might determine the structure of the table DEPT.
Use the describe command or use the dbms_metadata.get_ddl package.
Q.What is the use of control file?
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.
Q.Is it possible to split the print reviewer into more than one region?
Q.Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size?
Q.For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame?
Q.Compare and contrast TRUNCATE and DELETE for a table.
Both the truncate and delete command have the desired outcome of getting rid of all the rows in a table. The difference between the two is that the truncate command is a DDL operation and just moves the high water mark and produces a now rollback. The delete command, on the other hand, is a DML operation, which will produce a rollback and thus take longer to complete.
Q.Give the reasoning behind using an index.
Faster access to data blocks in a table.
Q.Can a field be used in a report without it appearing in any data group?
Q.The join defined by the default data link is an outer join yes or no?
Q.Can a formula column referred to columns in higher group?
Q.What is the use of redo log information?
The information in a redo log file is used only to recover the database from a system or media failure prevents database data from being written to a database's data files.
Q.Is it possible to disable the parameter from while running the report?
Q.When a form is invoked with call_form, Does oracle forms issues a save point?
Q.Give the two types of tables involved in producing a star schema and the type of data they hold.
Fact tables and dimension tables. A fact table contains measurements while dimension tables will contain data that will help describe the fact tables.
Oracle Interview Questions -1
Oracle Interview Questions -2
Oracle Interview Questions -3
Oracle Interview Questions -4
Oracle Interview Questions -5
Oracle Interview Questions -6
Oracle Interview Questions -7
Oracle Interview Questions -8
Oracle Interview Questions -9
Oracle Interview Questions -10
Oracle Interview Questions -11
Oracle Interview Questions -12
Oracle Interview Questions -14
Oracle Interview Questions -15
Oracle Interview Questions -16
Oracle Interview Questions -17
Oracle Interview Questions -18
Oracle Interview Questions -19
Oracle Interview Questions -20
Oracle Interview Questions -21
Oracle Interview Questions -22