Académique Documents
Professionnel Documents
Culture Documents
By implementing an INSERT trigger for logging details during each INSERT operation on
the table.
2.How do you set the number of lines on a page of output? The width
The SET command in SQLPLUS is used to control the number of lines generated per page
and the width of those lines, for example SET PAGESIZE 60 LINESIZE 80 will generate
reports that are 60 lines long with a line width of 80 characters. The PAGESIZE and
LINESIZE options can be shortened to PAGES and LINES.
The SET option TERMOUT controls output to the screen. Setting TERMOUT OFF turns off
screen output. This option can be shortened to TERM.
4.How do you prevent Oracle from giving you informational messages during and after a
SQL
statement execution
LONG RAW data type is used for storing BLOB's (binary large objects).
EXISTS is more faster than IN because EXISTS returns a Boolean value whereas IN returns
a value.
SAL (TO_CHAR(TO_DATE(SAL,'J'),'JSP'))
--------- ----------------------------------------
For all operators except for concatenation (||), if a value in an expression is a NULL, that
expression evaluates to NULL
Yes, pictures can be stored in the database using Long Raw Data type.
This datatype is used to store binary data for 2 gigabytes of length.
However, the table can have only one Long Raw data type.
10.What is SQL*Plus?
SQL*Plus is an application that recognizes & executes SQL commands & specialized
SQL*Plus commands that can customize reports, provide help & edit facility & maintain
system variables.
SHALINI
1.What is TTITLE & BTITLE?
TTITLE & BTITLE are commands to control report headings & footers.
SET command changes the system variables affecting the report environment.
3.What is Locking?
Locking are mechanisms intended to prevent destructive interaction between users accessing
data.
4.Explain SQL*Loader
SQL*Loader is a product for moving data in external files into tables in an Oracle database.
To load data from external files into an Oracle database, two types of input must be provided
to SQL*Loader : the data itself and the control file.
The control file describes the data to be loaded. It describes the Names and format of the data
files, Specifications for loading data and the Data to be loaded (optional). Invoking the loader
sqlload username/password controlfilename <options>.
NO DATA FOUND is an exception raised only for the SELECT....INTO statements when the
where clause of the query does not match any rows.
When the where clause of the explicit cursor does not match any rows the %NOTFOUND
attribute is set to TRUE instead.
In the declaration part, you must define all local variables before defining any sub procedures
or sub functions.
Named parameters are actual parameters specified not by position but by providing formal
parameter names when calling the procedure or function. The main advantage of named
parameters is that the caller don't have to remember the position of each parameter. But the
caller have to remember the formal parameter names.
When this clause is used with the DROP command, a parent table can be dropped even when
a child table exists