What Is ?: Software
What Is ?: Software
Ans :A database is a logically coherent collection of data with some inherent meaning,
representing some aspect of real world and which is designed, built and populated with data
for a specific purpose..
What is DBMS?
Ans :It is a collection of programs that enables user to create and maintain a database. In
other words it is general-purpose software that provides the users with the processes of
defining, constructing and manipulating the database for various applications. .
Advantages of DBMS?
Ans :1. Redundancy is controlled.
2. Unauthorised access is restricted.
3. Providing multiple user interfaces.
4. Enforcing integrity constraints.
5. Providing backup and recovery..
What is an Entity?
Ans :It is a 'thing' in the real world with an independent existence. .
What is an attribute?
Ans :It is a particular property, which describes the entity. .
What is Relationship?
Ans :It is an association among two or more entities. .
What is Record-at-a-time?
Ans :The Low level or Procedural DML can specify and retrieve each record from a set of
records. This retrieve of a record is said to be Record-at-a-time..
How does Tuple-oriented relational calculus differ from domain-oriented relational calculus
Ans :The tuple-oriented calculus uses a tuple variables i.e., variable whose only permitted
values are tuples of that relation. E.g. QUEL,The domain-oriented calculus has domain
variables i.e., variables that range over the underlying domains instead of over relation. E.g.
ILL, DEDUCE..
What is normalization?
Ans :It is a process of analysing the given relation schemas based on their Functional
Dependencies (FDs) and primary key to achieve the properties : Minimizing redundancy,
Minimizing insertion, deletion and update anomalies. .
What is 2NF?
Ans :A relation schema R is in 2NF if it is in 1NF and every non-prime attribute A in R is fully
functionally dependent on primary key..
What is 3NF?
Ans :A relation schema R is in 3NF if it is in 2NF and for every FD X-->A either of the following
is true
1. X is a Super-key of R.
2. A is a prime attribute of R.
In other words, if every non prime attribute is non-transitively dependent on primary key. .
What is 4NF?
Ans :A relation schema R is said to be in 4NF if for every Multivalued dependency X -->Y that
holds over R, one of following is true :
1. X is subset or equal to (or) XY = R,
2. X is a super key..
What is 5NF?
Ans :A Relation schema R is said to be 5NF if for every join dependency {R1, R2, ..., Rn} that
holds R, one the following is true :
1. Ri = R for some i
2. The join dependency is implied by the set of FD, over R in which the left side is key of R. .
What is Domain-Key Normal Form?
Ans :A relation is said to be in DKNF if all constraints and dependencies that should hold on
the the constraint can be enforced by simply enforcing the domain constraint and key
constraint on the relation..
What is a query?
Ans :A query with respect to DBMS relates to user commands that are used to interact with a
data base. The query language can be classified into data definition language and data
manipulation language..
What are the primitive operations common to all record management systems?
Ans :Addition, deletion and modification..
Name the buffer in which all the commands that are typed in are stored.
Ans :‘Edit’ Buffer.
Are the resulting relations of PRODUCT and JOIN operation the same?
Ans :No.
PRODUCT: Concatenation of every row in one relation with every row in another.
JOIN: Concatenation of rows from one relation and related rows from another. .
What is RDBMS KERNEL?
Ans :Two important pieces of RDBMS architecture are the kernel, which is
the software, and the data dictionary, which consists of the system-level
data structures used by the kernel to manage the database. You might
think of an RDBMS as an operating system (or set of subsystems),
designed specifically for controlling data access; its primary functions are
storing, retrieving, and securing data. An RDBMS maintains its own list of
authorized users and their associated privileges; manages memory caches
and paging; controls locking for concurrent resource usage; dispatches and
schedules user requests; and manages space usage within its table-space
structures.
Which part of the RDBMS takes care of the data dictionary? How
Ans :Data dictionary is a set of tables and database objects that is stored in a special area of
the database and maintained exclusively by the kernel. .
Define SQL and state the differences between SQL and other conventional programming
Languages
Ans :SQL is a nonprocedural language that is designed specifically for data access operations
on normalized relational database structures. The primary difference between SQL and other
conventional programming languages is that SQL statements specify what data operations
should be performed rather than how to perform them. .
Name the three major set of files on disk that compose a database in Oracle
Ans :There are three major sets of files on disk that compose a database. All the files are
binary. These are
1. Database files
2. Control files
3. Redo logs
The most important of these are the database files where the actual data resides. The
control files and the redo logs support the functioning of the architecture itself. All three sets
of files must be present, open, and available to Oracle for any data on the database to be
useable. Without these files, you cannot access the database, and the database
administrator might have to recover some or all of the database using a backup, if there is
one..
What are the four Oracle system processes that must always be up and running for the
database to be useable
Ans :The four Oracle system processes that must always be up and running for the database
to be useable include
1. DBWR (Database Writer)
2. LGWR (Log Writer)
3. SMON (System Monitor)
4. PMON (Process Monitor).
What is ROWID?
Ans :The ROWID is a unique database-wide physical address for every row on every table.
Once assigned (when the row is first inserted into the database), it never changes until the
row is deleted or the table is dropped. The ROWID consists of the following three
components, the combination of which uniquely identifies the physical storage location of the
row.
1. Oracle database file number, which contains the block with the rows
2. Oracle block address, which contains the row
3. The row within the block (because each block can hold many rows)
The ROWID is used internally in indexes as a quick means of retrieving rows with a particular
key value. Application developers also use it in SQL statements as a quick way to access a
row once they know the ROWID.
What is database Trigger?
Ans :A database trigger is a PL/SQL block that can defined to automatically
execute for insert, update, and delete statements against a table. The
trigger can e defined to execute once for the entire statement or once for
every row that is inserted, updated, or deleted. For any one table, there are
twelve events for which you can define database triggers. A database trigger
can call database procedures that are also written in PL/SQL. .
Name two utilities that Oracle provides, which are use for backup and recovery.
Ans :1. The Export utility dumps the definitions and data for the specified part of the database
to an operating system binary file.
2. The Import utility reads the file produced by an export, recreates the definitions of objects,
and inserts the data.
What are stored-procedures? And what are the advantages of using them.
Ans :Stored procedures are database objects that perform a user defined operation. A stored
procedure can have a set of compound SQL statements. A stored procedure executes the SQL
commands and returns the result to the client. Stored procedures are used to reduce network
traffic..
Which command displays the SQL command in the SQL buffer, and then executes it?
Ans :RUN.
What are the privileges that can be granted on a table by a user to others?
Ans :Insert, update, delete, select, references, index, execute, alter, all .
What command is used to get back the privileges offered by the GRANT command?
Ans :REVOKE.
Which system tables contain information on privileges granted and privileges obtained?
Ans :USER_TAB_PRIVS_MADE, USER_TAB_PRIVS_RECD .
Which system table contains information on constraints on all the tables created?
Ans :USER_CONSTRAINTS.
TRUNCATE TABLE EMP; DELETE FROM EMP; Will the outputs of the above two commands
differ?
Ans :Both will result in deleting all the rows in the table EMP.
What command is used to create a table by copying the structure of another table?
Ans :CREATE TABLE .. AS SELECT command
Explanation :To copy only the structure, the WHERE clause of the SELECT command should
contain a FALSE statement as in the following. CREATE TABLE NEWTABLE AS SELECT * FROM
EXISTINGTABLE WHERE 1=2; If the WHERE condition is true, then all the rows or rows
satisfying the condition will be copied to the new table..