Professional Documents
Culture Documents
DBMS Lab Manual
DBMS Lab Manual
Ex.No.1. Creation of a database and writing SQL queries to retrieve information from the
database.
Aim:
Procedure:
Syntax:
Procedure:
a. Create table
Syntax:
CREATE TABLE table_name
(
column_name1 data_type(size) constraint_name,
column_name2 data_type(size) constraint_name,
column_name3 data_type(size) constraint_name,
....
);
Constraints:
Coding:
Output:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 3
Syntax:
Desc tablename;
Coding:
Output:
c. Inserting Records:
Syntax:
INSERT INTO table_name VALUES (value1,value2,value3,...);
Insert into table_name VALUES (&value1,&value2,&value3,...);
Coding:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 4
d. Deleting Records:
Syntax:
DELETE FROM table_name
WHERE some_column=some_value;
Coding:
e. Modification of Records:
i. Altering Records:
Syntax:
ALTER TABLE table_name
ADD column_name datatype
ALTER TABLE table_name
DROP COLUMN column_name
Coding:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 5
Coding:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 6
g. Viewing Records:
Syntax:
SELECT TOP number|percent column_name(s)
FROM table_name;
SELECT column_name(s)
FROM table_name
WHERE ROWNUM <= number;
SELECT column_name(s)
FROM table_name
WHERE column_name LIKE pattern;
SELECT column_name(s)
FROM table_name
WHERE column_name IN (value1,value2,...);
SELECT column_name(s)
FROM table_name
WHERE column_name BETWEEN value1 AND value2;
SELECT column_name AS alias_name
FROM table_name;
Coding:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 7
Aim:
Procedure:
i. Creation of Views:
Syntax:
CREATE VIEW view_name AS
SELECT column_name(s)
FROM table_name
WHERE condition
DROP VIEW view_name
Coding:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 8
Coding:
Coding:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 9
Coding:
Procedure:
a) Consider the database schema EMP(empname, type, b_date, set of (Exam_names), set of
(skills))
Children(emp_name, ch_name, birthdate)
Skills(type, set(exam_names))
Exam_names(exam_name, year, city)
Write SQL statemesnts for the following queries:
i. Find the name of all employees who have birthday in March as their children.
ii. Find those employees who took an examination for the skill type “typing” in the city
“chennai”
iii. List all exam names under specific skill type for the given employees other than his
exam names.
iv. Find the names of the city and year where the examination is going to held for the
given skill type.
b) Consider the following relation
Employee(emp_name, company_name, Salary)
Write the SQL for the following:
i. Find the total salary of each company
ii. Find the emp_name who is getting lowest salary
iii. Find the company_name which has lowest average salary
iv. Find the emp_name whose salary is higher than average salary of TCS.
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 12
Syntax:
SELECT column_name(s) FROM table1
UNION
SELECT column_name(s) FROM table2;
Declaration Section:
The Declaration section of a PL/SQL Block starts with the reserved keyword DECLARE. This
section is optional and is used to declare any placeholders like variables, constants, records and
cursors, which are used to manipulate data in the execution section. Placeholders may be any of
Variables, Constants and Records, which stores data temporarily. Cursors are also declared in this
section.
Execution Section:
The Execution section of a PL/SQL Block starts with the reserved keyword BEGIN and ends
with END. This is a mandatory section and is the section where the program logic is written to
perform any task. The programmatic constructs like loops, conditional statement and SQL
statements form the part of execution section.
Exception Section:
The Exception section of a PL/SQL Block starts with the reserved keyword EXCEPTION. This
section is optional. Any errors in the program can be handled in this section, so that the PL/SQL
Blocks terminates gracefully. If the PL/SQL Block contains exceptions that cannot be handled,
the Block terminates abruptly with errors.
Every statement in the above three sections must end with a semicolon ; . PL/SQL blocks can be
nested within other PL/SQL blocks. Comments can be used to document code.
How a Sample PL/SQL Block Looks
DECLARE
Variable declaration
BEGIN
Program Execution
EXCEPTION
Exception handling
END;
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 16
Advantages of PL/SQL
These are the Advantages of PL/SQL
Block Structures: PL SQL consists of blocks of code, which can be nested within each
other. Each block forms a unit of a task or a logical module. PL/SQL Blocks can be
stored in the database and reused.
Procedural Language Capability: PL SQL consists of procedural language constructs
such as conditional statements (if else statements) and loops like (FOR loops).
Better Performance: PL SQL engine processes multiple SQL statements simultaneously
as a single block, thereby reducing network traffic.
Error Handling: PL/SQL handles errors or exceptions effectively during the execution
of a PL/SQL program. Once an exception is caught, specific actions can be taken
depending upon the type of the exception or it can be displayed to the user with a
message.
Exception Handling
In this section we will discuss about the following,
1) What is Exception Handling.
2) Structure of Exception Handling.
3) Types of Exception Handling.
1) Type of Exception
2) An Error Code
3) A message
By Handling the exceptions we can ensure a PL/SQL block does not exit abruptly.
3) Types of Exception.
There are 3 types of Exceptions.
a) Named System Exceptions
b) Unnamed System Exceptions
c) User-defined Exceptions
For example: NO_DATA_FOUND and ZERO_DIVIDE are called Named System exceptions.
Named system exceptions are:
1) Not Declared explicitly,
2) Raised implicitly when a predefined Oracle error occurs,
3) caught by referencing the standard name within an exception-handling routine.
Exception Name Reason Error
Number
CURSOR_ALREADY_OPENWhen you open a cursor that is already open. ORA-
06511
INVALID_CURSOR When you perform an invalid operation on a cursor like ORA-
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 18
EXCEPTION_INIT.
EXCEPTION_INIT will associate a predefined Oracle error number to a programmer_defined
exception name.
Steps to be followed to use unnamed system exceptions are
• They are raised implicitly.
• If they are not handled in WHEN Others they must be handled explicity.
• To handle the exception explicity, they must be declared using Pragma EXCEPTION_INIT as
given above and handled referecing the user-defined exception name in the exception section.
The general syntax to declare unnamed system exception using EXCEPTION_INIT is:
DECLARE
exception_name EXCEPTION;
PRAGMA
EXCEPTION_INIT (exception_name, Err_code);
BEGIN
Execution section
EXCEPTION
WHEN exception_name THEN
handle the exception
END;
c) User-defined Exceptions
Apart from sytem exceptions we can explicity define exceptions based on business rules. These
are known as user-defined exceptions.
Steps to be followed to use user-defined exceptions:
• They should be explicitly declared in the declaration section.
• They should be explicitly raised in the Execution Section.
• They should be handled by referencing the user-defined exception name in the exception
section.
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 19
RAISE_APPLICATION_ERROR ( )
RAISE_APPLICATION_ERROR is a built-in procedure in oracle which is used to display the
user-defined error messages along with the error number whose range is in between -20000 and -
20999.
Whenever a message is displayed using RAISE_APPLICATION_ERROR, all previous
transactions which are not committed within the PL/SQL Block are rolled back automatically (i.e.
change due to INSERT, UPDATE, or DELETE statements).
RAISE_APPLICATION_ERROR raises an exception but does not handle it.
RAISE_APPLICATION_ERROR is used for the following reasons,
a) to create a unique id for an user-defined exception.
b) to make the user-defined exception look like an Oracle error.
The General Syntax to use this procedure is:
7. Write a PL/SQL block to satisfy some conditions by accepting input from the user.
Aim:
Procedure:
Program:
SQL> set serveroutput on;
SQL> declare
2 a number;
3 b number;
4 begin
5 a:=&a;
6 b:=&b;
7
8 dbms_output.put_line (a);
9 dbms_output.put_line (b);
10
11 if( a > b ) then
12 dbms_output.put_line('A is greater than B');
13 else
14 dbms_output.put_line('B is greater than A');
15 end if;
16
17 end;
18 /
Output:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 21
Aim:
Procedure:
Program:
Output:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 22
Aim:
Procedure:
Program:
Output:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 23
DUP_VAL_ON_INDEX ORA-00001 -1
positive number.
8. b) Raising Exceptions
Output:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 29
Aim:
Procedure:
SQL> DECLARE
2 a number;
3 PROCEDURE squareNum(x IN OUT number) IS
4 BEGIN
5 x := x * x;
6 END;
7 BEGIN
8 a:= 23;
9 squareNum(a);
10 dbms_output.put_line(' Square of (23): ' || a);
11 END;
12 /
Output:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 30
Procedure:
10. A) Functions:
SQL> select * from person;
Output:
SQL> DECLARE
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 31
2 c number;
3 BEGIN
4 c := totpersons();
5 dbms_output.put_line('Total no. of Persons: ' || c);
6 END;
7 /
Output:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 32
10. B) Triggers:
Syntax:
Coding:
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 33
Sample Project:
Form1:
Else
MsgBox "Invalid ID", vbCritical, "Alert"
Text1.Text = ""
Text1.SetFocus
End If
Else
MsgBox "Enter the valid field", vbOKOnly, "Alert"
End If
End Sub
Form2:
Form3:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Viva Questions:
1. What is RDBMS?
Ans. Relational Data Base Management system is system software that stores and
manages access to data held in relational form, laid down by Dr.E.F.Codd
5. What is SGA?
Ans.System Global Area or Shared Global Area is a group of shared memory
structures
that contain data and control information for one instance. If multiple users are
concurrently connected to the same instance, the data in the instance's SGA is
"shared" among the users.
6. What is instance?
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 38
Ans.The combination of the SGA and the Oracle processes (Background Process) is
called an Oracle database instance. Instance will start in NOMOUNT stage.
14. What are DBWR, LGWR, PMON, SMON, RECO, CKPT, Dnnn and ARCH?
Ans.DBWR - Database Writer process or Dirty Buffer Writer (DBWR) writes DB
buffers to datafiles
LGWR - Log Writer process (LGWR) writes the redo log buffer to a redo log file on
disk
PMON – Process Monitor (PMON) performs process recovery when a user process
fails. PMON is responsible for cleaning up the cache and freeing resources (Lock)
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 39
SMON - System Monitor process (SMON) performs instance recovery at instance start
up. SMON is also responsible for cleaning up temporary segments; it also coalesces
contiguous free extents to make larger blocks. In a Parallel Server environment, SMON
performs instance recovery for a failed CPU or instance.
RECO - Recoverer process (RECO) is a process used with the distributed option that
Automatically resolves failures involving distributed transactions and resolves indoubt
transactions also.
CKPT - When a checkpoint occurs, Oracle must update the header of all data files to
highest SCN to indicate the checkpoint.
Dnnn - Dispatcher processes allow user processes to share a limited number of server
processes.
ARCH - Archiver process (ARCH) copies online redo log files to a designated storage
device once they become full. ARCH is present only when the redo log is used in
ARCHIVELOG mode and automatic archiving is enabled.
16. Is checkpoint optional? Then which one will take care of ckpt is not present?
Ans.Yes. Checkpoint is optional. If you are not enabled CKPT using
CHECKPOINT_PROCESS=TRUE, this job is performed by LGWR
17. Which background process you can have more than in an instance?
Ans.Dnnn. You can create multiple dispatcher processes for a single database instance.
18. When the data buffer will be flushed into respective files?
Ans.1. When ever dirty list gets filled.
2. When ever checkpoint is taking place.
20. Which parameter can’t be changed after the init file has been set?
Ans.DB_BLOCK_SIZE. If you want change the block size you have to recreate the
database.
d) Temporary segments
e) Bootstrap segments.
ii). You want to drop a rollback segment, but cannot because transactions are currently
using it. To prevent the rollback segment from being used, you can take it offline before
dropping it.
Syntax.
ALTER ROLLBACK SEGMENT user_rs_2 OFFLINE;
Note: You cannot take the SYSTEM rollback segment offline.
37. When system tablespace and system rollback segment will be made offline?
Ans.System tablespace and system rollback segments can’t make offline. Because system
transactions and data dictionary views will take place in the system rollback segments
and system tablespaces.
Ans.Row migration is, If a row in a data block is updated, so that the overall row length
increases and the block's free space has been completely filled, the data for the entire row
is migrated to a new data block, assuming the entire row can fit in a new block.
Row chaining is Oracle stores the data for the row in a chain of data blocks (one or
more) reserved for that segment. Row chaining most often occurs with large rows.
65. What is object audit, how to enable it and where will you see the result?
Ans.To audit all successful and unsuccessful DELETE statements on the EMP table,
BY SESSION (the default value), enter the following statement:
AUDIT DELETE ON emp;
SELECT * FROM sys.dba_obj_audit_opts;
66. What is statement audit, how to enable it and where will you see the result?
Ans.To audit all successful and unsuccessful connections to and disconnection from the
database BY SESSION (the default and only value for this option), enter the following
statement:
AUDIT SESSION BY Scott, lori;
SELECT * FROM sys.dba_stmt_audit_opts;
67. What is privilege audit, how to enable it and where will you see the result?
Ans.To audit all unsuccessful SELECT, INSERT, and DELETE statements on all tables
and unsuccessful uses of the EXECUTE ANY PROCEDURE system privilege, by all
database users, BY ACCESS, enter the following statement:
AUDIT SELECT TABLE, INSERT TABLE, DELETE TABLE,
EXECUTE ANY PROCEDURE BY ACCESS WHENEVER NOT SUCCESSFUL;
SELECT * FROM sys.dba_priv_audit_opts;
71. How to change from noarchivelog to archivelog? Explain all the steps.
Ans.ALTER DATABASE ARCHIVELOG;
Steps:
a. Shut down the database instance.
b. Start up a new instance and mount but do not open the database.
c. In mount Stage say ALTER DATABASE ARCHIVELOG;
d. Open the database;
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 47
72. How to change from archivelog to noarchivelog? Explain all the steps.
Ans.ALTER DATABASE NOARCHIVELOG;
Steps:
e. Shut down the database instance.
f. Start up a new instance and mount but do not open the database.
g. In mount Stage say ALTER DATABASE NOARCHIVELOG;
h. Open the database;
c). The next startup of the database will not require any instance recovery
Procedures.
90. How do you take the backup of control file. Why do you have to take that?
Ans.SVRMGR> ALTER DATABASE BACKUP CONTROL FILE TO TRACE;
Because a control file keeps track of the associated database's physical file structure, a
backup of a database's control file should be made every time a structural change is made
to the database.
93. What is hot backup, when do you take it and how do you take it? Explain the steps.
Ans.Online or HOT backups allow you to back up all or part of the database while it is
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 50
running.
Syntax
ALTER TABLESPACE <Tablespace name> BEGIN BACKUP;
.... Operating system commands to copy datafiles...
.... Copy completed...
ALTER TABLESPACE < Tablespace name>END BACKUP;
94. What is cold backup, when do you take it and how do you take it? Explain the steps.
Ans.Offline or COLD backups are taken while the database is shut down. Before you
make an offline backup, you must therefore shutdown server.
Steps.
SVRMGR> Shutdown
SVRMGR> ! (goto o/s level)
C:\……….> Copy all the files
C:\……….>exit (back to svrmgr tool)
SVRMGR>startup
95. What is export? Where it will be stored?
Ans.Using EXP tool extract the object definitions and table data from an Oracle
database and store them in an Oracle-binary format export file that is located typically
on tape or on disk. Export files can be used to transfer data between databases that are
on machines not connected via a network or as backups in addition to normal backup
procedures. Default export file name is EXPDAT.DMP
99. What happens when you issue begin backup and end backup?
Ans.When you say begin backup, checkpoint will take place to update the highest
SCN in the respective Tablespace’s datafile header after that datafile header will be
frozen.
When you say end backup, datafile header frozen will be released.
Checkpoint will not take place.
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 51
100.What is recovery?
Ans.If hardware, software, network, process, or system failure affects the
operation of a database system, you must usually recover the databases and return to
normal operations as quickly as possible.
redo to be applied. If all instances were cleanly shutdown, and no backups were restored,
RECOVER DATABASE indicates a no recovery required error.
Syntax : SVRMGR>Recover database;(In mount stage)
112.What is Normalization?
Ans.Normalization is basic to designing a high-performance system. It is the process of
breaking down all items to their lowest level, making sure that each piece of data can be
uniquely identified and is not duplicated.
113.What is De-normalization?
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 53
Ans.In the real world, a world in which performance may be more important than abstract
perfection, you may find that you need to compromise your commitment to normalize
and be flexible about dealing with real data, for that you may need to embrace the
necessary evil of denormalization.
114.When do de-normalize?
Ans.There are number of situations in which you may improve performance by
denormalizing your data. If you find that your application is performing repetitive SQL
table joins and sort/merges on large tables, you may be able to avoid reducing the need
for these operations if you denormalize some part of your database.
117.In one table how many database triggers can be invoked in V7.x and V8.x?
Ans.In oracle 7.x a table can have 12 triggers maximum, but in oracle 8.x any number of
triggers can in be invoked to a table.
121.What is Sql*loader?
Ans.SQL*Loader moves data from external files into tables in an Oracle database.
SQL*Loader loads data in a variety of formats, performs filtering and loads multiple
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 54
tables simultaneously.
SQL*Loader can:
. Load data from multiple datafiles of different file types
. Handle fixed-format, delimited-format, and variable-length records
. Manipulate data fields with SQL functions before inserting the data into
database columns
. Load multiple tables during the same run, loading selected rows into each table
. Load data from disk or tape
. Provide thorough error reporting capabilities, so you can easily adjust and load
all records
123.What is DDBMS?
Ans.Distributed Database Management Systems:
A distributed database system appears to a user as a single server but is, in fact, a
set of two or more servers. The data on each server can be simultaneously accessed and
modified via a network. Each server in the distributed system is controlled by its local
database administrator (DBA), and each server cooperates to maintain the consistency of
the global database.
124.What is SQL?
Ans.Structured Query Language (SQL), pronounced "sequel," is the set of commands
that all programs and users must use to access data within the Oracle database.
126.What is Savepoint?
Ans.To identify a point in a transaction to which you can later roll back.
128.What is PL/sql?
Ans.PL/SQL (Procedural Language/SQL) is set of procedural capabilities that extend
the power of traditional SQL. PL/sql statements can be combined with traditional SQL in
S.S.M. COLLEGE OF ENGINEERING, KOMARAPALAYAM – 638 183.
DEPARTMENT OF INFORMATION TECHNOLOGY
(NBA Accredited & certified by ISO 9001:2008)
IT6312 DATABASE MANAGEMENT SYSTEMS LABORATORY PAGE NO: 55
129.What is ODBC?
Ans.Open Database Connectivity.
A standard protocol for accessing Relational Database around sql.