Dba Questions
Dba Questions
==============
1. Difference between varchar and varchar2 data types?
Varchar can store upto 2000 bytes and varchar2 can store upto 4000 bytes. Varchar
will occupy space for NULL values and Varchar2 will not occupy any space. Both are
differed with respect to space.
3. What is DML?
Data Manipulation Language (DML) is used to access and manipulate data in the
existing objects. DML statements are insert, select, update and delete and it
won’t implicitly commit the current transaction.
9. What is a View?
View is a logical table which based on one or more tables or views. The tables
upon which the view is based are called Base Tables and it doesn’t contain data.
11. Can we store pictures in the database and if so, how it can be done?
Yes, we can store pictures in the database by Long Raw Data type. This datatype is
used to store binary data for 2 gigabytes of length. But the table can have only on
Long Raw data type.
to store the table for faster retrieval. Apply hash value on the table to retrieve
the rows from the table.
18. What is the fastest query method to fetch data from the table?
Row can be fetched from table by using ROWID. Using ROW ID is the fastest query
method to fetch data from the table.
19. What is the maximum number of triggers that can be applied to a single table?
12 is the maximum number of triggers that can be applied to a single table.
DATABASE QUESTIONS:
===================
1. What are the components of physical database structure of Oracle database?
Components of physical database structure are given below.
One or more data files.
Two or more redo log files.
One or more control files.
3. What is a tablespace?
A database contains Logical Storage Unit called tablespaces. A tablespace is a set
of related logical structures. Actually a tablespace groups related logical
structures together.
5. What is the difference between hot backup and cold backup in Oracle? Tell about
their benefits also.
Hot backup (Online Backup): A hot backup is also known as online backup because it
is done while the database is active. Some sites can not shut down their database
while making a backup copy, they are used for 24 hour a day, 7 days a week.
Cold backup (Offline Backup): A cold backup is also known as offline backup because
it is done while the database has been shutdown using the SHUTDOWN normal command.