Clouds
Home

RDBMS 1

RDBMS 2

RDBMS 3

RDBMS 4

RDBMS 5

RDBMS 6

RDBMS 7

RDBMS 8

RDBMS 9

RDBMS 10

RDBMS 11

RDBMS Interview Questions - Part 11


What are stand-alone procedures ?

Procedures that are not part of a package are known as stand-alone because they independently defined. A good example of a stand-alone procedure is one written in a SQL*Forms application. These types of procedures are not available for reference from other Oracle tools. Another limitation of stand-alone procedures is that they are compiled at run time, which slows execution.

What are cursors give different types of cursors.

PL/SQL uses cursors for all database information accesses statements. The language supports the use two types of cursors
  • Implicit
  • Explicit

    What is cold backup and hot backup (in case of Oracle) ?

  • Cold Backup: It is copying the three sets of files (database files, redo logs, and control file) when the instance is shut down. This is a straight file copy, usually from the disk directly to tape. You must shut down the instance to guarantee a consistent copy. If a cold backup is performed, the only option available in the event of data file loss is restoring all the files from the latest backup. All work performed on the database since the last backup is lost.
  • Hot Backup: Some sites (such as worldwide airline reservations systems) cannot shut down the database while making a backup copy of the files. The cold backup is not an available option. So different means of backing up database must be used - the hot backup. Issue a SQL command to indicate to Oracle, on a tablespace-by-tablespace basis, that the files of the tablespace are to backed up. The users can continue to make full use of the files, including making changes to the data. Once the user has indicated that he/she wants to back up the tablespace files, he/she can use the operating system to copy those files to the desired backup destination. The database must be running in ARCHIVELOG mode for the hot backup option. If a data loss failure does occur, the lost database files can be restored using the hot backup and the online and offline redo logs created since the backup was done. The database is restored to the most consistent state without any loss of committed transactions.

    What are Armstrong rules? How do we say that they are complete and/or sound

    The well-known inference rules for FDs
  • Reflexive rule : If Y is subset or equal to X then X Y.
  • Augmentation rule: If X Y then XZ YZ.
  • Transitive rule: If {X Y, Y Z} then X Z.
  • Decomposition rule : If X YZ then X Y.
  • Union or Additive rule: If {X Y, X Z} then X YZ.
  • Pseudo Transitive rule : If {X Y, WY Z} then WX Z. Of these the first three are known as Amstrong Rules. They are sound because it is enough if a set of FDs satisfy these three. They are called complete because using these three rules we can generate the rest all inference rules.

    What is meant by Proactive, Retroactive and Simultaneous Update.

  • Proactive Update: The updates that are applied to database before it becomes effective in real world .
  • Retroactive Update: The updates that are applied to database after it becomes effective in real world .
  • Simulatneous Update: The updates that are applied to database at the same time when it becomes effective in real world .

    What are the different types of JOIN operations ?

    Equi Join: This is the most common type of join which involves only equality comparisions. The disadvantage in this type of join is that there

    RDBMS Interview Questions - Part 1 >>>




    Home Clouds