List of All ORACLE Interview Questions
List of All ORACLE Interview Questions
Answer: • A stored procedure can accept parameters while a trigger cannot. • A trigger can’t return any value while stored procedures can. • A trigger is
executed automatically on some event while a stored
Answer: A trigger if specified FOR EACH ROW; it is fired for each of the table being affected by the triggering statement. For example if a trigger needs to
be fired when rows of a table are deleted, it will
Answer: PL/SQL program for tracking operation on a emp table. Create or Replace Trigger EmpTracking Before Insert or Delete or Update on Emp For
each row Declare Begin If Inserting then
Answer: Stored procedures can accept parameters and can return values. Triggers can neither accept parameters nor return values. A Trigger is
dependent on a table and the application has no control to not fir
Answer: At times when SQL statement of a trigger can fire other triggers. This results in cascading triggers. Oracle allows around 32 cascading triggers.
Cascading triggers can cause result in abnormal behavi
Answer: A JOIN is used to match/equate different fields from 2 or more tables using primary/foreign keys. Output is based on type of Join and what is to be
queries i.e. common data between 2 tables, unique da
Answer: Types of joins are: Equijoins Non-equijoins self join outer join
Answer: New/User defined objects can be created from any database built in types or by their combinations. It makes it easier to work with complex data
like images, media (audio/video). An object types is jus
Answer: A composite data type could be a record, table, nested table, varray. This is so because all of them are composed of multiple data types.
Composite data types can be used to construct complex data typ
Answer: Nchar is used to store fixed length Unicode data. It is often used to store data in different languages. CHAR on the other hand is store fixed length
character data. When data is stored using CHAR,
Answer: CHAR is used to store fixed length character strings where as Varchar2 can store variable length character strings. However, for performance
sake Char is quit faster than Varchar2. If we have char n
Answer: DATE in Oracle returns month, day, year, century, hours, minutes, and seconds. For more granular details, TIMESTAMP should be used.
TIMESTAMP also returns fraction of seconds that helps to identify wh
Answer: CLOB and NCLOB can both be used to store 4 GB of data in the database. CLOB (Character Large Object) is used specifically to store character
set data whole NCLOB (National Large Object) is specifica
Answer: It refers to an external binary file and its size is limited by the operating system.
Answer: VARRAY is varying array type that is typically used when the number of instances to be stored is small. It has a set of data elements and all are of
the same data type. The size of VARRAY determines t
Answer: LOB is large object byte used to store large amount of data. The following types come under LOB data types: CLOB and NCLOB can both be
used to store 4 GB of data in the database. BLOB: Binary LOB is
Answer: Cursor is used to access the access the result set present in the memory. This result set contains the records returned on execution of a query.
They are of 2 types: 1. Explicit 2. Implicit
Answer: a. %FOUND - True, if the SQL statement has changed any rows. b. %NOTFOUND - True, if record was not fetched successfully. c.
%ROWCOUNT - The number of rows affected by the SQL statement. d. %ISOPEN
Answer: a. %FOUND - True, if the SQL statement has changed any rows. b. %NOTFOUND - True, if record was not fetched successfully. c.
%ROWCOUNT - The number of rows affected by the SQL statement. d. %ISOPEN
Answer: REF_CURSOR allows returning a recordset/cursor from a Stored procedure. It is of 2 types: Strong REF_CURSOR: Returning columns with
datatype and length need to be known at compile time. Weak REF_CU
Answer: Cursors allow row by row processing of recordset. For every row, a network roundtrip is made unlike in a Select query where there is just one
network roundtrip. Cursors need more I/O and temp storage
Answer: In case of a cursor, Oracle opens an anonymous work area that stores processing information. This area can be accessed by cursor variable
which points to this area. One must define a REF CURSOR type,
Answer: PL/SQL creates an implicit cursor whenever an SQL statement is executed through the code, unless the code employs an explicit cursor. The
developer does not explicitly declare the cursor, thus, known
Answer: A Package that returns a Cursor type is a package cursor. Eg: Create or replace package pkg_Util is cursor c_emp is select * from employee;
r_emp c_emp%ROWTYPE; end; /*Another pa
26] EXPLAIN WHY CURSOR VARIABLES ARE EASIER TO USE THAN CURSORS.
Answer: A cursor variable is actually a pointer pointing to a queries result set. Using a cursor variable, each time a new result set is created by a query,
cursor variable can be used to point the same. This
Answer: Locking is a mechanism to ensure data integrity while allowing maximum concurrent access to data. It is used to implement concurrency control
when multiple users access table to manipulate its data at
Answer: Oracle supports 3 transaction isolation levels: a. Read committed (default) b. Serializable transactions c. Read only
Answer: A number of data locks need to be monitored, in order to maintain a good performance level for all sessions, along with the time for which they last.
The current existing data locks are maintained in
Answer: SQL> ALTER USER user_name ACCOUNT LOCK; SQL> ALTER USER user_name ACCOUNT UNLOCK;
Answer: Oracle uses background process to increase performance. Database writer, DBWn Log Writer, LGWR Checkpoint, CKPT System Monitor, SMON
Process Monitor, PMON Archiver, ARCn
Answer: SQL*Loader is a loader utility used for moving data from external files into the Oracle database in bulk. It is used for high performance data loads
Answer: A SQL*Loader control file contains the following specification: • Location of the input data file. • The format of the input date file. • The target table
where the data should be loaded. • The
Answer: Two memory area. System global area(SGA) Program Global Area(PGA) SGA consist memory structure such as Shared Pool Database buffer
cache Redo log buffer large Pool Java Pool
35] WHAT IS PROGRAM GLOBAL AREA (PGA)?
Answer: The Program Global Area (PGA): stores data and control information for a server process in the memory. The PGA consists of a private SQL area
and the session memory.
Answer: Shared pool in oracle contains cache information that collects, parses, interprets and executes SQL statements that goes against database. This
shared pool acts like a buffer for these SQL statements.
Answer: A snapshot is a recent copy of a table from db or in some cases, a subset of rows/cols of a table. They are used to dynamically replicate the data
between distributed databases.
Answer: A synonym is an alternative name tables, views, sequences and other database objects.
Answer: A schema is a collection of database objects. Schema objects are logical structures created by users to contain data. Schema objects include
structures like tables, views, and indexes.
Answer: The list of all indexes in a schema can be obtained through the USER_INDEXES view with a SELECT statement: SELECT index_name,
table_name, uniqueness FROM USER_INDEXES WHERE table_name = 'tablename'
Answer: Schema objects are a part of the database. They include tables, views, indexes etc. they are logical structures containing or referring to actual
data.
Answer: Archiving is the process of removing of old data and unused data from the main databases. This process keeps databases smaller, more
manageable and thus acquires performance gain. To archive data, you
Answer: A sequence is a column in a table that allows a faster retrieval of data from the table because this column contains data which uniquely identifies a
row. It is the fastest way to fetch data through a
Answer: A cold backup is taken when database is not running. This means no users should be logged and no activity in progress. Because of this there are
no changes in the data files while backup is being take
Answer: SELECT DISTINCT (emp1.sal) FROM EMP emp1 WHERE &N = (SELECT COUNT (DISTINCT (emp2.sal)) FROM EMP emp2 WHERE
emp1.sal<= emp2.sal); Will work for any value if N, including 5
Answer: $FLEX$ is used to get a value used in the previous value set. It is usually used to retrieve the Flex value contained in an AOL value set or object.
$PROFILES$ is used to get the value for that profil
Answer: A trigger cannot be called within a stored procedure. Triggers are executed automatically as a result of DML or DDl commands
48] WHAT IS WATER MARK IN ORACLE? EXPLAIN THE SIGNIFICANCE OF HIGH WATER MARK.
Answer: WATER MARK is a divided segment of used and free blocks. Blocks which are below high WATER MARK i.e. used blocks, have at least once
contained some data. This data might have been deleted later. Oracl
Answer: Object group is a container for a group of objects. One can package related objects to copy or sub class them in another module.
Answer: Clustering means one than one database server configured for the same user connection. When users connect, one of the server’s responds and
connects based on availability. The user is completely ignor
Answer: Paging is a concept occurring in memory, whereas, Fragmentation occurs on disk level.
Answer: Insert image into a table: Create the following table: create table pics_table ( bfile_id number, bfile_desc varchar2(30), bfile_loc bfile, bfile_type
varchar2(4))
Answer: SELECT * FROM EMP WHERE SAL IN (SELECT MAX(SAL) FROM EMP WHERE SAL <> (SELECT MAX(SAL) FROM EMP))
Answer: Disadvantage of UDF in Oracle: Oracle does not support calling UDFs with Boolean parameters or return types. Users must design them to return
numbers such as 0,1 or character strings such as ‘true’,’
Answer: A Cluster provides an alternate method of storing table data. It is made up of a group of tables that share the same data i.e. same columns and
thus are often used together. Primary benefits of this a
Answer: Export and Import are the utilities provided by oracle in order to write data in a binary format from the db to OS files and to read them back. These
utilities are used: • To take backup/dump of da
Answer: Archivelog mode is a mode in which backup is taken for all the transactions that takes place so as to recover the database at any point of time.
Noarichvelog mode is in which the log files are not wri
Answer: It is used for fast and bulk data movement within oracle databases. Data Pump utility is faster than the original import & export utilities.
60] WHAT ARE SQLCODE AND SQLERRM AND WHY ARE THEY IMPORTANT FOR PL/SQL DEVELOPERS?
Answer: SQLCODE: It returns the error number for the last encountered error. SQLERRM: It returns the actual error message of the last encountered error.
Answer: A User-defined exception has to be defined by the programmer. User-defined exceptions are declared in the declaration section with their type as
exception. They must be raised explicitly using RAISE s
Answer: Exception is the raised when an error occurs while program execution. As soon as the error occurs, the program execution stops and the control
are then transferred to exception-handling part. There
Answer: Oracle exceptions are raised internally and user need not explicitly raise them. For example, when a number is attempted to be divided by ZERO,
ZERO_DIVIDE exception is raised. User defined exception
Answer: tkprof is used for diagnosing performance issues. It formats a trace file into a more readable format for performance analysis. It is needed because
trace file is a very complicated file to be read as
Answer: It is a utility that provides instant feedback on successful execution of any statement (select, update, insert, delete). It is the most basic utility to test
the performance issues.
Answer: Session Queries are implicitly constructed and executed by a Session based on input parameters.Input parameters are used to perform the most
common data source actions on objects. Database Queries ar
Answer: SQL*Plus is an interactive and batch query tool. It gets installed with every Oracle Database Server or Client installation. It has a command-line
user interface, a Windows Graphical User Interfac
Answer: The SET command can be used to change the settings in the SQl*PLUS environment. SET AUTOCOMMIT OFF: Turns off the auto-commit feature
SET FEEDBACK OFF: Stops displaying the "27 rows selected." messa
Answer: The behaviour of SQL PLUS depends on some environmental variables predefined in the OS: ORACLE_HOME: This variable stores the home
directory where the Oracle client application is installed PATH: It
Answer: The spooling feature facilitates copying of all the contents of the command line SQL*Plus to a specified file. This feature is called Spooling. Syntax:
SPOOL filename: Turns on output spooling with
Answer: When a query needs to be run which has a condition that needs to be a result of another query then, the query in the condition part of the main one
is called a sub-query. It is usually specified in th
Answer: Data block is the optimum level of storage. Also known as pages, each data block corresponds to a specific number of bytes. Adjacent data blocks
form an extent.
73] EXPLAIN THE DIFFERENCE BETWEEN A DATA BLOCK, AN EXTENT AND A SEGMENT.
Answer: Data blocks, extent and segments are logical units of data storage in oracle. Data block is the optimum level of storage. Also known as pages,
each data block corresponds to a specific number of byte
Answer: Rollback segment is an area that is used to access data of a transaction before it was committed. This segment is used when a transaction is rolled
back in order to read the old values. This data is t
Answer: Data Segment Index Segment Rollback Segment and Temporary Segment.
Answer: SQL is Structured Query Language comprising of Data Definition Language (DDL) and Data Manipulation Language (DML). DDL is used to define
the scheme while DDL is used to manipulate the data. Example
78] WRITE A PL/SQL PROGRAM FOR A FUNCTION RETURNING TOTAL TAX COLLECTED FROM A PARTICULAR PLACE.
Answer: PL/SQL program Create of Replace Function Tax-Amt Place varchar2, Return Number is Place_wise_tot_tax : = 0; Begin Select sum(TaxAmt)
from Tax where location = Place; Pla
Answer: Anonymous Block • It is a block of codes without a name. • It may contain a declaration part, an execution part, and exception handlers. Stored
Program Unit • It is a block of codes with a name.
Answer: Advantages of PL/SQL:- 1. PL/SQL is structured as it consists of blocks of code and hence streamlined. This makes PL/SQL highly productive. 2. It
is highly portable, has immense error handling mecha
Answer: WebDB tool is a tool to develop database driven applications and web sites. It’s a user friendly interface that allows database administrator to
application development.
Answer: Nested tables in oracle are similar to one dimensional array except the former’s size has no upper bound and can be increased dynamically. They
are one column database tables where the rows of a neste
Answer: Clusters in Oracle contain data of multiple tables that have the same one or more columns. All the rows from all the tables that share the same
cluster key are stored together. Example: Create a clu
84] EXPLAIN HOW TO ADD A NEW COLUMN TO AN EXISTING TABLE IN ORACLE.
Answer: Use the ALTER TABLE command to do this. ALTER TABLE employee ADD (department VARCHAR2);
Answer: Oracle supports 4 types of tables based on how data is organized in storage: Ordinary (heap-organized) table • A basic, general purpose table •
Data is stored as an unordered collection (heap) Cl
Answer: Use the command DESC and the table name to view the information about the columns. Eg: SQL> desc emp; Name Null? Type ------------ --
Answer: An oracle table that is accidentally dropped can be recovered using FLASHBACK command. When a table is dropped it stays in the recycle bin of
Oracle until it is explicitly PURGED. Such tables can be r
Answer: • The tables that have been dropped can be retrieved back using the reycle bin feature of Oracle. • They can be recovered back by the Flashback
Drop action. • Recycle bin can be turned on or off i
Answer: A table with its data stored outside the database as an OS file is an external table. The ORACLE_LOADER and ORACLE_DATAPUMP drivers are
used to access data of external tables. External tables can be
Answer: • Create an external table with columns matching data fields in the external file. • Create a similar table. • Execute INSERT INTO ... SELECT
statement to load data from the external file.
Answer: ARCn is an oracle background process responsible for copying the entirely filled online redo log file to the archive log. Once these files have been
copied, they can be overwritten. The n in ARCn repr
Answer: Structural difference between bitmap and btree index Btree It is made of branch nodes and leaf nodes. Branch nodes holds prefix key value along
with the link to the leaf node. The leaf node in turn
93] CAN YOU EXPLAIN HOW TO CONVERT ORACLE TABLE DATA INTO EXCEL SHEET?
Answer: There are 2 ways to do so: 1. Simply use the migration wizard shipped with Oracle. 2. Convert Excel sheet into CSV file. Create an oracle table,
and use SQLLoad to load the CSV file into the oracle
94] WHEN SHOULD WE GO FOR HASH PARTITIONING?
Answer: Scenarios for choosing hash partitioning: • Not enough knowledge about how much data maps into a give range. • Sizes of range partition differ
quite substantially, or are difficult to balance manual
Answer: A materialized view is a database object that contains the results of a query. A snapshot is similar to materialized view but has lesser features than
a materialized view. Like a snapshot, a materiali
96] WHAT ARE THE ADVANTAGES OF RUNNING A DATABASE IN NO ARCHIVE LOG MODE?
Answer: 1. Less disk space is consumed 2. Causes database to freeze if disk gets full
97] WHAT ARE THE ADVANTAGES OF RUNNING A DATABASE IN ARCHIVE LOG MODE?
Answer: DBA_SEGMENTS tells about the space allocated for all segments in the database for storage.
Answer: Table Composed of rows and column that stores data. View Represents subset of data from one or more tables. Sequence Auto generates primary
key value. Index Improve performance of queries.
121 WHICH SQL COMMAND TO BE USED TO GET A PRINT OUT FROM ORACLE?
]
Answer: PRINT:
124 DEFINE STATEMENT AUDITING, PRIVILEGE AUDITING AND OBJECT AUDITING IN ORACLE.
]
Answer: Statement auditing is the auditing of the powerful system privileges without regard to specifically named objects. Privilege auditing is the auditing of
the use of powerful system privileges without
138 EXPLAIN HOW TO SEE THE REPORT OUTPUT IN EXCEL SHEET IN ORACLE APPLICATIONS.
]
Answer: It is a two step process: 1. Export Oracle Report to text file 2. Import Text file into Excel
148 WHAT ARE THE TRIGGERS ASSOCIATED WITH IMAGE ITEMS? EXPLAIN THEM
]
Answer: There are 2 triggers associated with image items: • When-Image-Activated: Triggered when image is double clicked. • When-Image-Pressed:
Triggered when an image is selected or deselected.
149 EXPLAIN HOW TO VIEW THE STATUS OF THE ROLLBACK SEGMENT IN ORACLE.
]
Answer: SELECT segment_name, status FROM sys.dba_rollback_segs;
151 WHEN DO YOU GET A .PLL EXTENSION IN ORACLE? EXPLAIN ITS IMPORTANCE
]
Answer: .PLL extension is created when we save a library module. It contains both source code and platform specific complied executable code.
168 WHAT ARE THE DIFFERENT TYPES OF RECORD GROUPS IN ORACLE? EXPLAIN EACH OF THEM
]
Answer: Record group is an internal oracle forms data structure having a similar column-row structure and relationship as a database table. They are logical
groups and never displayed to the user as such. V
173 HOW TO CREATE LOV DYNAMICALLY AT RUNTIME & ATTACH TO TEXT FIELD?
]
Answer: Steps to create a dynamic LOV: 1. Create a record group, eg: RG 2. Create RG Sql query as Select col1,col2,col3 from dual; Keep in mind to
adjust data types accordingly 3. Create an LOV and attach
174 HOW CAN WE FORCE THE DATABASE TO USE THE USER SPECIFIED ROLLBACK SEGMENT?
]
Answer: We can do so by using the following SQL statement SET TRANSACTION USE ROLLBACK SEGMENT User_Rollback_Segment_Name
175 EXPLAIN THE USE OF CONSISTENT OPTION IN EXP COMMAND.
]
Answer: It specifies the read only statement for export to ensure data consistency.
199 NAME THE COMPONENTS OF PHYSICAL DATABASE STRUCTURE OF ORACLE DATABASE. EXPLAIN THEM
]
Answer: Datafiles Redo log files Control files Datafiles, Redo log files and Control files are the mandatory components of a physical database structure.
Datafile: This component stores the actual data.
201 WHY CAN'T WE ASSIGN NOT NULL CONSTRAINT AS TABLE LEVEL CONSTRAINT IN ORACLE?
]
Answer: Not NULL is a column level constraint to ensure that any value in that column is not null, hence can’t be used as a table level constraint. One can
however use it on multiple columns as per the need.
203 HOW TO DELETE ALL DUPLICATE RECORDS FROM A TABLE USING SUBQUERY?
]
Answer: Query: DELETE from table1 where rowid not in (select MAX(rowid) from table1 GROUP BY column_name); here, column_name should be the
column having duplicate values.
204 HOW MANY TYPES OF TRIGGER CAN BE USED IN A TABLE AT A TIME? WHAT ARE THEY?
]
Answer: We can use maximum of 12 triggers on a table. • BEFORE INSERT • AFTER INSERT • BEFORE UPDATE • AFTER UPDATE • BEFORE DELETE
• AFTER DELETE You can define a trigger • for each row • for each s
205 WHAT IS PARTITIONED TABLE? WHAT ARE ITS TYPES? EXPLAIN ITS PURPOSE AND HOW TO CREATE.
]
Answer: Partitioning allows decomposing large tables and indexes into smaller manageable units called partitions. Queries and DML statement don’t need
to be modified to work with them. DDL statements can acce
206 HOW THE SMON PROCESS IS USED TO WRITE INTO LOG FILES?
]
Answer: The Shared Global Area is where SMON process runs. Once the redo log buffer is full then SMON with the help of LOGWRITER (LGWR) writes
into the log files.
207 WHAT ARE THE TYPES OF CALCULATED COLUMNS AVAILABLE? EXPLAIN THEM
]
Answer: In forms there are 2 types of calculated columns 1. formula column 2. summary column
Answer: SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal); For Eg:-
Enter value for n: 2 SAL --------- 3700
Answer: EXISTS is more faster than IN because EXISTS returns a Boolean value whereas IN returns a value.
3] WHET ARE THE DIFFERENCE BETWEEN PRIMARY KEY AND FOREIGN KEY?
Answer: 1)Primary key is unique key but foriegn key always refers to primary key. 2) Primary keys enforce entity integrity by uniquely identifying entity
instances. Foreign keys enforce. 3)Primary k
4] WHAT IS THE MAXIMUM BUFFER SIZE THAT CAN BE SPECIFIED USING THE DBMS_OUTPUT.ENABLE FUNCTION?
Answer: The buffer size limit is 1000000 and 32767 bytes per line.
5] WHAT IS AN UTL_FILE.WHAT ARE DIFFERENT PROCEDURES AND FUNCTIONS ASSOCIATED WITH IT?
Answer: UTL_FILE is a package that adds the ability to read and write to operating system files. Procedures associated with it are FCLOSE, FCLOSE_ALL
and 5 procedures to output data to a file PUT, PUT_LINE,
Answer: yes you can assign default value to an actual parameter.. If the actual parameter holds NULL value then the DEFAULT Value will be assigned.
Answer: The variables declared in the procedure and which are passed, as arguments are called actual, the parameters in the procedure declaration. Actual
parameters contain the values that are passed to a pro
Answer: PL/SQL declares a cursor implicitly for all SQL data manipulation statements, including quries that return only one row. However,queries that return
more than one row you must declare an explicit curs
Answer: SUBSTR returns a specified portion of a string eg SUBSTR('BCDEF',4) output BCDE INSTR provides character position in which a pattern is found
in a string. eg INSTR('ABC-DC-F','-',2) output 7 (2nd occ
10 WHAT IS DIFFERENCE BETWEEN SQL AND SQL*PLUS?
]
Answer: SQL*PLUS is a command line tool where as SQL and PL/SQL language interface and reporting tool. Its a command line tool that allows user to
type SQL commands to be executed directly against an Oracle d
14 WHAT SHOULD BE THE RETURN TYPE FOR A CURSOR VARIABLE.CAN WE USE A SCALAR DATA TYPE AS RETURN TYPE?
]
Answer: LONG RAW data type is used for storing BLOB's (binary large objects).
22 WHAT ARE VARIOUS PRIVILEGES THAT A USER CAN GRANT TO ANOTHER USER?
]
Answer: -SELECT -CONNECT -RESOURCES
24 THERE IS A % SIGN IN ONE FIELD OF A COLUMN. WHAT WILL BE THE QUERY TO FIND IT?
]
Answer: '' Should be used before '%'.
27 TABLE NAME STUD, A MARK 23,B MARK 87,C MARK 75,D MARK 34; WRITE THE QUERY TO FIND 2ND HIGHEST MARK IN STUD TABLE?
]
Answer: To find the nth big earner: select mark from stud a where n=select count(distinct(mark)) from stud b where b.mark >= a.mark)
29 WHAT IS A CURSOR?
]
Answer: Oracle uses work area to execute SQL statements and store processing information PL/SQL construct called a cursor lets you name a work area
and access its stored information A cursor is a mechanism us
38 WHEN I HAVE 6 VALUES FOR ANY COLUMN, IN SELECT STATEMENT I GET DISPLAY OF 6 ROWS SELECTED WHILE IF I HAVE 5 VALUES FOR
] ONE COLUMN I DON'T GET DISPLAY OF 5 ROWS SELECTED, HOW TO GET THAT DISPLAY?
Answer: Even though you have 5 values for one column you won't get display of "5 rows selected" because by default the empty value taken as 'null' into the
table. So the row contains 'null' value is also cons
42 WHAT IS A VIEW?
]
Answer: A view is a virtual table. it is also one of the database object. two types: Resonable view updatable view
43 CAN CURSOR VARIABLES BE STORED IN PL/SQL TABLES.IF YES HOW. IF NOT WHY?
]
Answer: No, a cursor variable points a row which cannot be stored in a two-dimensional PL/SQL table.
46 WHEN DO YOU USE WHERE CLAUSE AND WHEN DO YOU USE HAVING CLAUSE?
]
Answer: HAVING clause is used when you want to specify a condition for a group function and it is written after GROUP BY clause. The WHERE clause is
used when you want to specify a condition for columns, sing
51 WHAT IS SYNTAX FOR DROPPING A PROCEDURE AND A FUNCTION .ARE THESE OPERATIONS POSSIBLE?
]
Answer: Drop Procedure procedure_name Drop Function function_name
56 SUPPOSE A CUSTOMER TABLE IS HAVING DIFFERENT COLUMNS LIKE CUSTOMER NO, PAYMENTS.WHAT WILL BE THE QUERY TO SELECT
] TOP THREE MAX PAYMENTS?
Answer: SELECT customer_no, payments from customer C1 WHERE 3<=(SELECT COUNT(*) from customer C2 WHERE C1.payment <= C2.payment)
57 THERE IS A STRING 120000 12 0 .125 , HOW YOU WILL FIND THE POSITION OF THE DECIMAL PLACE?
]
Answer: INSTR('120000 12 0 .125',1,'.') output 13
Answer: ***Source: wiki.answers.com*** DBMS stands for Database Management System which is a general term for a set of software dedicated to
controlling the storage of data. RDMBS stand for Relational
Answer: Select max(sal) from emp where sal<(select max(sal) from emp where sal<(select max (sal) from emp where sal<(select max (sal) from emp
where sal<(select max(sal) from emp))));
Answer: oracle programming why are using that which for use
4] WHAT ARE DIFFERENCE BETWEEN POST DATABASE COMMIT AND POST-FORM COMMIT?
Answer: Post-form commit fires once during the post and commit transactions process, after the database commit occurs. The post-form-commit trigger
fires after inserts, updates and deletes have been posted to
Answer: Because for each query, report has to open a separate cursor and has to rebind, execute and fetch data.
6] USE THE ADD_GROUP_COLUMN FUNCTION TO ADD A COLUMN TO A RECORD GROUP THAT WAS CREATED AT DESIGN TIME. I) TRUE
II)FALSE
Answer: False.
9] WHAT ARE THE TWO WAYS BY WHICH DATA CAN BE GENERATED FOR A PARAMETERS LIST OF VALUES?
10] WHAT ARE THE BUILT-INS USED FOR SENDING PARAMETERS TO FORMS?
Answer: You can pass parameter values to a form when an application executes the call_form, New_form, Open_form or Run_product.
11] CAN YOU HAVE MORE THAN ONE CONTENT CANVAS VIEW ATTACHED WITH A WINDOW?
Answer: Yes. Each window you create must have atleast one content canvas view assigned to it. You can also create a window that has manipulated
content canvas view. At run time only one of the content canvas
Answer: When one form invokes another form by executing new_form oracle form exits the first form and releases its memory before loading the new form
calling new form completely replace the first with the sec
Answer: A static record group is not associated with a query, rather, you define its structure and row values at design time, and they remain fixed at
runtime.
15] IS THE AFTER REPORT TRIGGER FIRED IF THE REPORT EXECUTION FAILS?
Answer: Yes.
16] WHAT IS THE "LOV OF VALIDATION" PROPERTY OF AN ITEM? WHAT IS THE USE OF IT?
Answer: When LOV for Validation is set to True, Oracle Forms compares the current value of the text item to the values in the first column displayed in the
LOV. Whenever the validation event occurs. If the v
Answer: Timer is an "internal time clock" that you can programmatically create to perform an action each time the timer expires.
Answer: When the value of a data parameter being passed to a called product is always the name of the record group defined in the current form. Data
parameters are used to pass data to produts invoked with th
Answer: Canvas views are the back ground objects on which you place the interface items (Text items), check boxes, radio groups etc.,) and boilerplate
objects (boxes, lines, images etc.,) that operators inter
20] HOW IS LINK TOOL OPERATION DIFFERENT BET. REPORTS 2 & 2.5?
Answer: In Reports 2.0 the link tool has to be selected and then two fields to be linked are selected and the link is automatically created. In 2.5 the first field
is selected and the link tool is then used t
Answer: It is a terminal screen with the internal state of the form. It updates the screen display to reflect the information that oracle forms has in its internal
representation of the screen.
Answer: Fires during the execute query and count query processing after oracle forms constructs the select statement to be issued, but before the
statement is actually issued. The pre-query trigger fires just
Answer: There are two phases of block coordination: the clear phase and the population phase. During, the clear phase, Oracle Forms navigates internally
to the detail block and flushes the obsolete detail rec
24] HOW IS IT POSSIBLE TO SELECT GENERATE A SELECT SET FOR THE QUERY IN THE QUERY PROPERTY SHEET?
Answer: By using the tables/columns button and then specifying the table and the column names.
Answer: Visual attributes are the font, color, pattern proprieties that you set for form and menu objects that appear in your application interface.
Answer: When-timer-expired.
Answer: A placeholder column is used to hold calculated values at a specified place rather than allowing is to appear in the actual row where it has to
appear.
28] HOW IS POSSIBLE TO RESTRICT THE USER TO A LIST OF VALUES WHILE ENTERING VALUES FOR PARAMETERS?
Answer: By setting the Restrict To List property to true in the parameter property sheet.
Answer: A query record group is a record group that has an associated SELECT statement. The columns in a query record group derive their default
names, data types, had lengths from the database columns refere
Answer: Only one window in a form can display the console, and you cannot change the console assignment at runtime.
31] WHAT IS THE DIFFERENCE BETWEEN SHOW_EDITOR AND EDIT_TEXTITEM?
Answer: Show editor is the generic built-in which accepts any editor name and takes some input string and returns modified output string. Whereas the
edit_textitem built-in needs the input focus to be in the
Answer: The maximum no of chars the parameter can store is only valid for char parameters, which can be upto 64K. No parameters default to 23Bytes and
Date parameter default to 7Bytes
33] WHAT IS THE DIFF. BET. SETTING UP OF PARAMETERS IN REPORTS 2.0 REPORTS2.5?
Answer: LOVs can be attached to parameters in the reports 2.5 parameter form.
Answer: A hidden column is used to when a column has to embed into boilerplate text.
35] WHAT ARE THE BUILT-INS THAT ARE USED TO ATTACH AN LOV PROGRAMMATICALLY TO AN ITEM?
Answer: Tool bar canvas views are used to create tool bars for individual windows. Horizontal tool bars are display at the top of a window, just under its
menu bar. Vertical Tool bars are displayed along the
Answer: More than one modelless window can be displayed at the same time, and operators can navigate among them if your application allows them to do
so . On most GUI platforms, modelless windows can also be
38] DOES A GROUPING DONE FOR OBJECTS IN THE LAYOUT EDITOR AFFECT THE GROUPING DONE IN THE DATA MODEL EDITOR?
Answer: No.
39] ATLEAST HOW MANY SET OF DATA MUST A DATA MODEL HAVE BEFORE A DATA MODEL CAN BE BASE ON IT?
Answer: Four
42] WHAT ARE THE SQL CLAUSES SUPPORTED IN THE LINK PROPERTY SHEET?
Answer: It represents the coordination causing event that occur on the master block in master-detail relation.
Answer: Yes
Answer: A library is a collection of subprograms including user named procedures, functions and packages.
Answer: No
Answer: when one form invokes another form by executing open_form the first form remains displayed, and operators can navigate between the forms as
desired. when one form invokes another form by executing cal
49] CAN A FIELD BE USED IN A REPORT WITHOUT IT APPEARING IN ANY DATA GROUP?
Answer: Yes
Answer: Yes
51] WHAT ARE THE DIFFERENT FILE EXTENSIONS THAT ARE CREATED BY ORACLE REPORTS?
Answer: System.mouse_button_pressedSystem.mouse_button_shift_statesystem.mouse_itemsystem.mouse_canvassystem.mouse_record
Answer: When-image-activated fires when the operators double clicks on an image itemwhen-image-pressed fires when an operator clicks or double clicks
on an image item
55] IS IT POSSIBLE TO HAVE A LINK FROM A GROUP THAT IS INSIDE A CROSS PRODUCT TO A GROUP OUTSIDE ?
Answer: No
56] HOW DO YOU CALL OTHER ORACLE PRODUCTS FROM ORACLE FORMS?
Answer: Run_product is a built-in, Used to invoke one of the supported oracle tools products and specifies the name of the document or module to be run. If
the called product is unavailable at the time of the
Answer: A user named editor has the same text editing functionality as the default editor, but, because it is a named object, you can specify editor attributes
such as windows display size, position, and titl
Answer: When_window_activated When_window_closed When_window_deactivated When_window_resized Within this triggers, you can examine the built
in system variable system. event_window to determine the name o
Answer: It is a command line argument that allows you to specify a file that contain a set of arguments for r20run.
60] WITH WHICH FUNCTION OF SUMMARY ITEM IS THE COMPUTE AT OPTIONS REQUIRED?
61] WHAT ARE THE TWO TYPES OF VIEWS AVAILABLE IN THE OBJECT NAVIGATOR(SPECIFIC TO REPORT 2.5)?
62] AN OPEN FORM CAN NOT BE EXECUTE THE CALL_FORM PROCEDURE IF YOU CHAIN OF CALLED FORMS HAS BEEN INITIATED BY ANOTHER
OPEN FORM?
Answer: True
63] DOES A BEFORE FORM TRIGGER FIRE WHEN THE PARAMETER FORM IS SUPPRESSED?
Answer: Yes.
Answer: An anchoring object is a print condition object which used to explicitly or implicitly anchor other objects to itself.
65] IF THE MAXIMUM RECORD RETRIEVED PROPERTY OF THE QUERY IS SET TO 10 THEN A SUMMARY VALUE WILL BE CALCULATED?
Answer: Libraries provide a convenient means of storing client-side program units and sharing them among multiple applications. Once you create a library,
you can attach it to any other form, menu, or library
68] WHY IS A WHERE CLAUSE FASTER THAN A GROUP FILTER OR A FORMAT TRIGGER?
Answer: Because, in a where clause the condition is applied during data retrievalthan after retrieving the data.
Answer: Lexical reference is place_holder for text that can be embedded in a sql statements. A lexical reference can be created using & before the column
or parameter name.
70] HOW DO YOU CREATE A NEW SESSION WHILE OPEN A NEW FORM?
Answer: Using open_form built-in setting the session option Ex. Open_form('Stocks ',active,session). when invoke the mulitiple forms with open form and
call_form in the same application, state whether the fol
Answer: Using transactional triggers we can control or modify the default functionality of the oracle forms.
73] WHAT ARE BUILT-INS ASSOCIATED WITH TIMERS?
Answer: find_timercreate_timerdelete_timer
76] IS IT POSSIBLE TO CENTER AN OBJECT HORIZONTALLY IN A REPEATING FRAME THAT HAS A VARIABLE HORIZONTAL SIZE?
Answer: Yes
Answer: The term is terminal definition file that describes the terminal form which you are using r20run.
78] WHICH PARAMETER CAN BE USED TO SET READ LEVEL CONSISTENCY ACROSS MULTIPLE QUERIES?
79] WHERE IS THE EXTERNAL QUERY EXECUTED AT THE CLIENT OR THE SERVER?
Answer: Parameters provide a simple mechanism for defining and setting the valuesof inputs that are required by a form at startup. Form parameters are
variables of type char,number,date that you define at des
81] WHAT IS THE DIFFERENCE BETWEEN BOILER PLAT IMAGES AND IMAGE ITEMS?
Answer: Boiler plate Images are static images (Either vector or bit map) that you import from the file system or database to use a graphical elements in your
form, such as company logos and maps. Image items
Answer: Most Canvas views are content canvas views a content canvas view is the "base" view that occupies the entire content pane of the window in
which it is displayed.
Answer: On-Check_delete_masterOn_clear_detailsOn_populate_details
84] WHAT ARE THE TRIGGERS AVAILABLE IN THE REPORTS?
Answer: Before report, Before form, After form , Between page, After report.
Answer: In Pl/Sql, You can reference and set the values of form parameters using bind variables syntax. Ex. PARAMETER name = '' or :block.item =
PARAMETER Parameter name
86] WHAT ARE THE IMPORTANT DIFFERENCE BETWEEN PROPERTY CLAUSE AND VISUAL ATTRIBUTES?
Answer: Named visual attributes differ only font, color & pattern attributes, property clauses can contain this and any other properties. You can change the
appearance of objects at run time by changing the n
87] WHAT IS THE MAIN DIFF. BET. REPORTS 2.0 & REPORTS 2.5?
Answer: No.
Answer: A break group is used to display one record for one group ones. While multiple related records in other group can be displayed.
90] WHAT IS THE DIFF. WHEN CONFINE MODE IS ON AND WHEN IT IS OFF?
Answer: When confine mode is on, an object cannot be moved outside its parent in the layout.
92] WHAT ARE THE VARIOUS SUB EVENTS A MOUSE DOUBLE CLICK EVENT INVOLVES?
Answer: Double clicking the mouse consists of the mouse down, mouse up, mouse click, mouse down & mouse up events.
Answer: A combo box style list item combines the features found in list and text item. Unlike the pop list or the text list style list items, the combo box style
list item will both display fixed values and a
94] AT WHAT POINT OF REPORT EXECUTION IS THE BEFORE REPORT TRIGGER FIRED?
Answer: After the query is executed but before the report is executed and the records are displayed.
Answer: A frame is a holder for a group of fields. A repeating frame is used to display a set of records when the no. of records that are to displayed is not
known before.
96] WHAT DOES THE TERM PANEL REFER TO WITH REGARD TO PAGES?
Answer: A panel is the no. of physical pages needed to print one logical page.
97] HOW CAN A SQUARE BE DRAWN IN THE LAYOUT EDITOR OF THE REPORT WRITER?
Answer: By using the rectangle tool while pressing the (Constraint) key.
98] IS IT POSSIBLE TO SPLIT THE PRINT REVIEWER INTO MORE THAN ONE REGION?
Answer: Yes
99] TO EXECUTE ROW FROM BEING DISPLAYED THAT STILL USE COLUMN IN THE ROW WHICH PROPERTY CAN BE USED?
100 WHAT ARE THE DEFAULT PARAMETER THAT APPEAR AT RUN TIME IN THE PARAMETER SCREEN?
]
Answer: Destype and Desname.
101 WHERE IS A PROCEDURE RETURN IN AN EXTERNAL PL/SQL LIBRARY EXECUTED AT THE CLIENT OR AT THE SERVER?
]
Answer: At the client.
103 IS IT POSSIBLE TO DISABLE THE PARAMETER FROM WHILE RUNNING THE REPORT?
]
Answer: Yes
104 FROM WHICH DESIGNATION IS IT PREFERRED TO SEND THE OUTPUT TO THE PRINTED?
]
Answer: Previewer
105 WHAT ARE THREE PANES THAT APPEAR IN THE RUN TIME PL/SQL INTERPRETER?
]
Answer: 1. Source pane. 2. Interpreter pane. 3. Navigator pane.
106 HOW CAN A BUTTON BE USED IN A REPORT TO GIVE A DRILL DOWN FACILITY?
]
Answer: By setting the action associated with button to Execute pl/sql option and using the SRW.Run_report function.
107 WHAT IS THE DIFF. WHEN FLEX MODE IS MODE ON AND WHEN IT IS OFF?
]
Answer: When flex mode is on, reports automatically resizes the parent when the child is resized.
109 IF A PARAMETER IS USED IN A QUERY WITHOUT BEING PREVIOUSLY DEFINED, WHAT DIFF. EXIST BETW. REPORT 2.0 AND 2.5 WHEN THE
] QUERY IS APPLIED?
Answer: While both reports 2.0 and 2.5 create the parameter, report 2.5 gives a message that a bind parameter has been created.
112 WHAT IS THE DIFFERENCE BETWEEN OLE SERVER & OLE CONTAINER?
]
Answer: An Ole server application creates ole Objects that are embedded or linked in ole Containers ex. Ole servers are ms_word & ms_excel. OLE
containers provide a place to store, display and manipulate obje
113 WHAT IS THE DIFFERENCE BETWEEN OBJECT EMBEDDING & LINKING IN ORACLE FORMS?
]
Answer: In Oracle forms, embedded objects become part of the form module, and linked objects are references from a form module to a linked source file.
115 WHAT ARE THE DIFFERENT OBJECTS THAT YOU CANNOT COPY OR REFERENCE IN OBJECT GROUPS?
]
Answer: Objects of different modules Another object groups Individual block dependent items Program units.
116 WHAT IS AN OBJECT GROUP?
]
Answer: An object group is a container for a group of objects; you define an object group when you want to package related objects, so that you copy or
reference them in other modules.
117 WHEN A FORM IS INVOKED WITH CALL_FORM, DOES ORACLE FORMS ISSUES A SAVE POINT?
]
Answer: Yes
118 ANY ATTEMPT TO NAVIGATE PROGRAMMATICALLY TO DISABLED FORM IN A CALL_FORM STACK IS ALLOWED?
]
Answer: False
119 WHAT ARE THE DEFAULT EXTENSIONS OF THE FILES CREATED BY LIBRARY MODULE?
]
Answer: The default file extensions indicate the library module type and storage format .pll - pl/sql library module binary
120 WHAT ARE THE DEFAULT EXTENSIONS OF THE FILES CREATED BY MENU MODULE?
]
Answer: .mmb, .mmx
121 WHAT ARE THE DEFAULT EXTENSIONS OF THE FILES CREATED BY FORMS MODULES?
]
Answer: .fmb - form module binary .fmx - form module executable
123 USE THE ADD_GROUP_ROW PROCEDURE TO ADD A ROW TO A STATIC RECORD GROUP 1. TRUE OR FALSE?
]
Answer: False
124 USE THE ADD_GROUP_COLUMN FUNCTION TO ADD A COLUMN TO RECORD GROUP THAT WAS CREATED AT A DESIGN TIME?
]
Answer: False
125 WHAT ARE THE BUILT-INS USED FOR FINDING OBJECT ID FUNCTIONS?
]
Answer: Find_group(function) Find_column(function)
126 WHAT ARE THE BUILT-IN USED FOR GETTING CELL VALUES?
]
Answer: Get_group_char_cell(function) Get_group_date_cell(function) Get_group_number_cell(function)
128 WHAT ARE THE BUILT -INS USED FOR MODIFYING A GROUPS STRUCTURE?
]
Answer: ADD-GROUP_COLUMN (function) ADD_GROUP_ROW (procedure) DELETE_GROUP_ROW(procedure)
129 WHAT ARE THE BUILT-INS USED FOR CREATING AND DELETING GROUPS?
]
Answer: CREATE-GROUP (function) CREATE_GROUP_FROM_QUERY(function) DELETE_GROUP(procedure)
133 WHAT ARE THE BUILT-INS THAT ARE USED FOR SETTING THE LOV PROPERTIES AT RUNTIME?
]
Answer: get_lov_property set_lov_property
134 WHAT ARE THE BUILT_INS USED THE DISPLAY THE LOV?
]
Answer: Show_lov List_values
135 WHAT IS THE BASIC DATA STRUCTURE THAT IS REQUIRED FOR CREATING AN LOV?
]
Answer: Record Group.
138 WHAT ARE THE DIFFERENT TYPES OF COORDINATIONS OF THE MASTER WITH THE DETAIL BLOCK?
]
Answer: Immediate Differred->Yes Autoquery->Yes Differred->Yes Autoquery->No
140 WHAT ARE THE DIFFERENT DEFAULT TRIGGERS CREATED WHEN MASTER DELETES PROPERTY IS SET TO ISOLATED?
]
Answer: Master Deletes Property Resulting Triggers --------------------------------------------------- Isolated On-Clear-Details On-Populate-Details
141 WHAT ARE THE DIFFERENT DEFAULT TRIGGERS CREATED WHEN MASTER DELETES PROPERTY IS SET TO CASCADE?
]
Answer: Master Deletes Property Resulting Triggers --------------------------------------------------- Cascading On-Clear-Details On-Populate-Details Pre-delete
142 WHAT ARE THE DIFFERENT DEFAULT TRIGGERS CREATED WHEN MASTER DELETES PROPERTY IS SET TO NON-ISOLATED?
]
Answer: Master Deletes Property Resulting Triggers ---------------------------------------------------- Non-Isolated(the default) On-Check-Delete-Master On-Clear-
Details On-Populate-Details
143 WHAT ARE THE DIFFERENT TYPES OF DELETE DETAILS WE CAN ESTABLISH IN MASTER-DETAILS?
]
Answer: Cascade Isolate Non-isolate
151 HOW CAN VALUES BE PASSED BET. PRECOMPILER EXITS & ORACLE CALL INTERFACE?
]
Answer: By using the statement EXECIAFGET & EXECIAFPUT.
154 IS IT POSSIBLE TO LINK TWO GROUPS INSIDE A CROSS PRODUCTS AFTER THE CROSS PRODUCTS GROUP HAS BEEN CREATED?
]
Answer: No
155 HOW CAN A GROUP IN A CROSS PRODUCTS BE VISUALLY DISTINGUISHED FROM A GROUP THAT DOES NOT FORM A CROSS PRODUCT?
]
Answer: A group that forms part of a cross product will have a thicker border.
169 WHAT IS THE DIFFERENCE BETWEEN $$DATE$$ & $$DBDATE$$$$DBDATE$$ RETRIEVES THE CURRENT DATABASE DATE$$DATE$$
] RETRIEVES THE CURRENT OPERATING SYSTEMDATE.
Answer: $$date$$ displaying local system date $$dbdate$$ displaying server date.
171 WHAT ARE THE POSSIBLE CLAUSES INCLUDED IN THE CREATE TABLE COMMAND?
]
Answer: Where clause, order by clause
172 WHAT ARE THE WAYS TO MONITOR THE PERFORMANCE OF THE REPORT?
]
Answer: Use reports profile executable statement. Use SQL trace facility.
173 IN ORACLE VERSION 9.2.0.4.0 WHAT DOES EACH NUMBER REFERS TO?
]
Answer: 1 byte.
176 WHAT ARE THE TWO REPEATING FRAME ALWAYS ASSOCIATED WITH MATRIX OBJECT?
]
Answer: One down repeating frame below one across repeating frame.
178 FOR A FIELD IN A REPEATING FRAME, CAN THE SOURCE COME FROM THE COLUMN WHICH DOES NOT EXIST IN THE DATA GROUP WHICH
] FORMS THE BASE FOR THE FRAME?
Answer: Yes
179 HOW CAN A TEXT FILE BE ATTACHED TO A REPORT WHILE CREATING IN THE REPORT WRITER?
]
Answer: By using the link file property in the layout boiler plate property sheet.
180 THE JOIN DEFINED BY THE DEFAULT DATA LINK IS AN OUTER JOIN YES OR NO?
]
Answer: Yes
181 IF TWO GROUPS ARE NOT LINKED IN THE DATA MODEL EDITOR, WHAT IS THE HIERARCHY BETWEEN THEM?
]
Answer: Two group that is above are the left most rank higher than the group that is to right or below it.
183 WHAT IS THE PURPOSE OF THE PRODUCT ORDER OPTION IN THE COLUMN PROPERTY SHEET?
]
Answer: To specify the order of individual group evaluation in a cross products.
184 IF A BREAK ORDER IS SET ON A COLUMN WOULD IT AFFECT COLUMNS WHICH ARE UNDER THE COLUMN?
]
Answer: No
185 IS IT POSSIBLE TO SET A FILTER CONDITION IN A CROSS PRODUCT GROUP IN MATRIX REPORTS?
]
Answer: No
186 IS IT POSSIBLE TO INSERT COMMENTS INTO SQL STATEMENTS RETURN IN THE DATA MODEL EDITOR?
]
Answer: Yes
1] HOW TO GET/SELECT THE NTH ROW FROM THE TABLE ? HOW TO SELECT FIRST N ROWS ,LAST N ROWS FROM A TABLE
Answer: nth salary select salary from table_name a where &n=(select count(salary) from table_name b where a.salary<=b.salary); n salaries select salary
from table_name a where &n>=(sele
Answer: A scrollable cursor, however, can move forward and backward, and can seek any desired record in the cursor. Such operations are common in
applications that present results sets in scrolling windows. W
3] SUBQUERY VS JOIN
Answer: subquery retrive the data depending on certain condition or manupulation in inner query. where as joins will join the enitire data depending on the
conditions given it cannot manupulate the data or
Answer: select sal from emp E wherenulln-1=(select count( distinct sal) from emp where sal>E.sal);
5] DISPLAY THE RECORDS BETWEEN TWO RANGE I KNOW THE NVL FUNCTION ONLY ALLOWS THE SAME DATA TYPE(IE. NUMBER OR CHAR
OR DATE NVL(COMM, 0)), IF COMMISSION IS NULL THEN THE TEXT ?NOT APPLICABLE? WANT TO DISPLAY, INSTEAD OF BLANK SPACE.
HOW DO I WRITE THE QUERY
Answer: You can use the decode function for the above requirement. Please find the query as below: select ename,decode(nvl(comm,0),0,'Not
Applicable',comm) from scott.emp;
Answer: Retrieves rows in hierarchical order. e.g. select empno, ename from emp where.
Answer: A View can be updated/deleted/inserted if it has only one base table if the view is based on columns from one or more tables then insert, update
and delete is not possible.
18 YOU WANT TO USE SQL TO BUILD SQL, WHAT IS THIS CALLED AND GIVE AN EXAMPLE
]
Answer: This is called dynamic SQL. An example would be: set lines 90 pages 0 termout off feedback off verify off spool drop_all.sql select ?drop user ?||
username||? cascade;? from dba_users where usernam
22 HOW TO ACCESS THE CURRENT VALUE AND NEXT VALUE FROM A SEQUENCE ? IS IT POSSIBLE TO ACCESS THE CURRENT VALUE IN A
] SESSION BEFORE ACCESSING NEXT VALUE ?
Answer: Sequence name CURRVAL, Sequence name NEXTVAL.It is not possible. Only if you access next value in the session, current value can be
accessed.
25 IS IT POSSIBLE TO ACCESS THE CURRENT VALUE IN A SESSION BEFORE ACCESSING NEXT VALUE
]
Answer: NEXTAVAL must be issued for that sequence before CURRVAL contaons a value from Oracle Server SQL references 8
27 HOW MANY LONG COLUMNS ARE ALLOWED IN A TABLE? IS IT POSSIBLE TO USE LONG COLUMNS IN WHERE CLAUSE OR ORDER BY ?
]
Answer: Only one LONG columns is allowed. It is not possible to use LONG column in WHERE or ORDER BY clause.
Answer: Oracle tables always have one guaranteed unique column, the rowid column. If you use a min/max function against your rowid and then select
against the proposed primary key you can squeeze out the rowi
37 IF A VIEW ON A SINGLE BASE TABLE IS MANIPULATED WILL THE CHANGES BE REFLECTED ON THE BASE TABLE?
]
Answer: if view on based on a single table then u can execute any DML directly on it and can see the changes in the base table and if view is based on join
of 2 tables then only one base table can be modif
39 WHAT IS DIFFERENCE BETWEEN CHAR AND VARCHAR2? WHAT IS THE MAXIMUM SIZE ALLOWED FOR EACH TYPE?
]
Answer: CHAR pads blank spaces to the maximum length. VARCHAR2 does not pad blank spaces. For CHAR it is 255 and 2000 for VARCHAR2.
40 YOU ARE JOINING A LOCAL AND A REMOTE TABLE, THE NETWORK MANAGER COMPLAINS ABOUT THE TRAFFIC INVOLVED, HOW CAN YOU
] REDUCE THE NETWORK TRAFFIC?
Answer: Push the processing of the remote data to the remote instance by using a view to pre-select the information for the join. This will result in only the
data required for the join being sent across.
53 WHAT IS ROWID
]
Answer: ROWID is a pseudo column attached to each row of a table. It is 18 character long, blockno, rownumber are the components of ROWID.
55 WHAT IS A TRANSACTION?
]
Answer: It is a operation on database / table. Which has to be confirmed after completion. It may be single sql stm or multiple stm
56 WHAT IS EXPLAIN PLAN AND HOW IS IT USED?
]
Answer: The EXPLAIN PLAN command is a tool to tune SQL statements. To use it you must have an explain_table generated in the user you are running
the explain plan for. This is created using the utlxplan.sql s
57 HOW DO YOU SET THE NUMBER OF LINES ON A PAGE OF OUTPUT, THE WIDTH?
]
Answer: 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
77 IF UNIQUE KEY CONSTRAINT ON DATE COLUMN IS CREATED, WILL IT VALIDATE THE ROWS THAT ARE INSERTED WITH SYSDATE?
]
Answer: If there is a unique key defined on a column which has date as the data type then one can insert the same date more than once.The date is always
stored in the format dd-mon-yyyy hh:mi:ss.The reason wh
78 WHAT ARE THE PRE-REQUISITES TO MODIFY DATATYPE OF A COLUMN AND TO ADD A COLUMN WITH NOT NULL CONSTRAINT?
]
Answer: 1) to modify datatype of a column 2) to add a column with NOT NULL constraint - the table must have 0 rows
1] WHAT IS A PACKAGE ?
Answer: A Package is a collection of related procedures, functions, variables and other package constructs together as a unit in the database.
2] WHAT IS A PROCEDURE ?
Answer: A Procedure consist of a set of SQL and PL/SQL statements that are grouped together as a unit to solve a specific problem or perform a set of
related tasks.
Answer: A Function returns a value to the caller where as a Procedure does not.
Answer: Database triggers can be used to automatic data generation, audit data modifications, enforce complex Integrity constraints, and customize
complex security authorizations.
5] WHAT ARE THE DIFFERENCES BETWEEN DATABASE TRIGGER AND INTEGRITY CONSTRAINTS ?
Answer: A declarative integrity constraint is a statement about the database that is always true. A constraint applies to existing data in the table and any
statement that manipulates the table. A trigger doe
Answer: Increased functionality (for example, global package variables can be declared and used by any procedure in the package) and performance (for
example all objects of the package are parsed compiled, an
7] WHAT ARE THE USES OF ORACLE ROLLBACK SEGMENT?
Answer: Rollback Segments are used : To generate read consistent database information during database recovery to rollback uncommitted transactions for
users
Answer: Schema objects are the logical structures that directly refer to the databases data. Schema objects include tables, views, sequences, synonyms,
indexes, clusters, database triggers, procedures, functi
Answer: ORACLE database's data is stored in data blocks. One data block corresponds to a specific number of bytes of physical database space on disk.
Oracle database consists of logical storage place which
10 WHAT ARE THE DIFFERENT TYPES OF PL/SQL PROGRAM UNITS THAT CAN BE DEFINED AND STORED IN ORACLE DATABASE ?
]
Answer: Procedures and Functions, Packages and Database Triggers.
Answer: Scenario testing is the real time testing techniques implemented on an application with the presence of certain applied conditions and
environment.In this type of testing the behavior of the applicati
Answer: after you get the legacy data thorugh exl format
1. you identify the which base table and which base column suitable for legacy data.
Answer: The wildcard char % can be placed in one of three ways: %searchwordhere% searchwordhere% %searchwordhere The searchwordhere% is the
fastest because it can use an index if one is specified
4] WHAT IS SPOOLING
Answer: Acronym for simultaneous peripheral operations on-line, spooling refers to putting jobs in a buffer, a special area in memory or on a disk where a
device can access them when it is ready. Spooling is
5] IF THE SQL * PLUS HANGS FOR A LONG TIME, WHAT IS THE REASON
Answer: You are running a cartisian query, typically by mistake. Make sure every table has a join criteria specified for it. You are working on a table with
100+million rows. The database server is bu
6] WHAT ARE THE DIFFERENCES BETWEEN DATABASE DESIGNING AND DATABASE MODELING
7] DUAL TABLE EXPLAIN. IS ANY DATA INTERNALLY STORING IN DUAL TABLE. LOT OF USERS ARE ACCESSING SELECT SYSDATE FROM DUAL
AND THEY GETTING SOME MILLISECOND DIFFERENCES. IF WE EXECUTE SELECT SYSDATE FROM EMP; WHAT ERROR WILL WE GET. WHY
Answer: The built-in function SYSDATE returns a DATE value containing the current date and time on your system. DUAL is built-in relation in Oracle which
serves as a dummy relation to put in the FROM clause w
8] ALL THE USERS ARE COMPLAINING THAT THEIR APPLICATION IS HANGING. HOW YOU WILL RESOLVE THIS SITUATION IN OLTP
Answer: If the user is complaining the hang problem ..then the experience of a dba reflects the work style that he is going to perform and basically as the
rule suggest first try to connect to the database it
Answer: You can create a procedure to return REF cursor or VARRAY or PL/SQL Table type out parameters which can return more than one value.
10 IF THE ENTIRE DISK IS CORRUPTED HOW WILL YOU AND WHAT ARE THE STEPS TO RECOVER THE DATABASE
]
Answer: if the entire disk is corrupted and no backup is there don nothing sit and relax their is no possibility of recovery ...a backup is required for restoration
and for recovery redo log and archive logs.
11 SCHEMA A HAS SOME OBJECTS AND CREATED ONE PROCEDURE AND GRANTED TO SCHEMA B. SCHEMA B HAS THE SAME OBJECTS LIKE
] SCHEMA A. SCHEMA B EXECUTED THE PROCEDURE LIKE INSERTING SOME RECORDS. IN THIS CASE WHERE THE DATA WILL BE STORED
WHETHER IN SCHEMA A OR SCHEMA B
Answer: This is an interesting question. So I thought to try it out instead of simply provide a guess. Here is the solution: Schema1 Leo Table Name emp
Procedure Test Schema2 Leo1 Table Nam
12 IF THE LARGE TABLE CONTAINS THOUSANDS OF RECORDS AND THE APPLICATION IS ACCESSING 35% OF THE TABLE WHICH METHOD TO
] USE: INDEX SEARCHING OR FULL TABLE SCAN
Answer: Index is more useful in this situation since it retrive rows faster than fts. fts read all blocks and since table contain thousands or rows .
13 IN EXCEPTION HANDLING WE HAVE SOME NOT_FOUND AND OTHERS. IN INNER LAYER WE HAVE SOME NOT_FOUND AND OTHERS. WHILE
] EXECUTING WHICH ONE WHETHER OUTER LAYER OR INNER LAYER WILL CHECK FIRST
Answer: inner layer. execution carry on furthur without going to outer exception blocks.
14 WHAT IS MUTATED TRIGGER, IS IT THE PROBLEM OF LOCKS. IN SINGLE USER MODE WE GOT MUTATED ERROR, AS A DBA HOW YOU WILL
] RESOLVE IT
Answer: mutated trigger: example:Table A has an insert trigger.In that Trigger: There is a statement like insert into Table A, which caues mutated
trigger.Avoid to have those kind of triggers in the database.
17 YOU ARE REGULARLY CHANGING THE PACKAGE BODY PART. HOW WILL YOU CREATE OR WHAT WILL YOU DO BEFORE CREATING THAT
] PACKAGE
19 WHAT ARE THE DIFFERENCES YOU HAVE SEEN WHILE INSTALLING ORACLE ON NT AND UNIX PLATFORM
]
Answer: Oracle Server = Oracle Instance + Oracle Database Oracle instance comprises of Background Process and memory structures in Unix all
background processes are treated as independent processes but in win
20 IN WHICH SITUATION WHETHER PEAK TIME OR OFF PEAK TIME YOU WILL EXECUTE THE ANALYZE TABLE COMMAND. WHY
]
Answer: You have to run the analyze command during off peak time only because it actually performs full table scan.
Answer: Oracle provides six data types for storing LOBs: CLOB and LONG for large fixed-width character data NCLOB for large fixed-width national
character set data BLOB and LONG RAW for storing un
2] EXPLAIN DIFFERENT TYPES OF SEGMENT. DATA SEGMENT, INDEX SEGMENT, ROLLBACK SEGMENT AND TEMPORARY SEGMENT.
Answer: There are four types of segments used in Oracle databases: - data segments - index segments - rollback segments - temporary segments Data
Segments: There is a single data segment to hold al
Answer: Online redo log files A control file contains information such as location of redo log files, backup data and redo log information. The control file is
updated to reflect the structure changes eve
Answer: SID (System Identifier) : A SID (almost) uniquely identifies an instance. Actually, $ORACLE_HOME, $ORACLE_SID and $HOSTNAME identify an
instance uniquely. The SID is 64 characters, or less; at least o
Answer: A materialized view is a replica of a target master from a singlepoint in time. The concept was first introduced with Oracle7 termed asSNAPSHOT.
In Oracle release 7.1.6 snapshots were enhanced to enab
Answer: The Oracle database has: - Logical layer: The components of the logical layer map the data to these physical components - Physical layer: The
physical layer consists of the files that reside on
7] EXPLAIN SGA MEMORY STRUCTURES: SHARED POOL, DATABASE BUFFER CACHE, REDO LOG CACHE, LARGE POOL JAVA POOL.
Answer: SGA (System Global Area) is a dynamic memory area of an Oracle Server. In SGA,the allocation is done in granuels. The size of the SGA is
dependent on SGA_MAX_SIZE parameter. The memory structures c
8] WHAT IS THE PHYSICAL AND LOGICAL STRUCTURE OF ORACLE?
Answer: Logical Database structures Logical structures include tablespaces, schema objects, data blocks, extents and segments. Tablespaces Database is
logically divided into one or more tablespaces. Ea
Answer: System Global Area The System Global Area (SGA) is a shared memory region that contains data and control information for one Oracle instance.
When an instance starts, the SGA is allocated by Oracle a
10 WHAT IS SQL LOADER? EXPLAIN THE FILES USED BY SQL LOADER TO LOAD FILE. I.E LOADER CONTROL FILE, INPUT DATAFILE, LOG FILE,
] BAD FILE, DISCARD FILE
Answer: SQL*Loader is a bulk loader utility used for moving data from external files into the Oracle database. SQL*Loader supports various load formats,
selective loading, and multi-table loads. When a con
11 EXPLAIN THE AREAS OF MEMORY USED BY ORACLE, I.E. SOFTWARE CODE AREA, SYSTEM GLOBAL AREA (SGA), PROGRAM GLOBAL
] AREA(PGA), SORT AREA.
Answer: Software area code: - It is a protected location that is used to store oracle code that is supposed to be run. The location is different from users'
programs. The software area code is read only and c
19 EXPLAIN THE CATEGORIES OF ORACLE PROCESSES I.E. USER, DATA WRITING PROCESSES, LOGGING PROCESSES AND MONITORING
] PROCESSES.
Answer: * User process ? User process is used in invocation of application software. * Data writing process - A database writer process is used to write
buffer content into a datafile. They are specifically
Answer: The data dictionary of an ORACLE database is a set of tables and views that are used as a read-only reference about the database. It stores
information about both the logical and physical structure o
Answer: Every ORACLE database has one or more physical data files. A database's data files contain all the database data. The data of logical database
structures such as tables and indexes is physically store
Answer: NOT NULL Constraint - Disallows Nulls in a table's column. UNIQUE Constraint - Disallows duplicate values in a column or set of columns.
PRIMARY KEY Constraint - Disallows duplicate values and Nulls
Answer: The Primary function of the redo log is to record all changes made to data.
6] CAN AN INTEGRITY CONSTRAINT BE ENFORCED ON A TABLE IF SOME EXISTING TABLE DATA DOES NOT SATISFY THE CONSTRAINT ?
Answer: I think so yes we can enforce integrity constraint on a table if some existing table does not satisfy the constraint by using "ENABLE NOVALIDATE"
Answer: The Information in a redo log file is used only to recover the database from a system or media failure prevents database data from being written to
a database's data files.
Answer: Yes.
Answer: Private database link is created on behalf of a specific user. A private database link can be used only when the owner of the link specifies a global
object name in a SQL statement or in the definitio
14 WHAT IS A VIEW ?
]
Answer: A view is a virtual table. Every view has a Query attached to it. (The Query is a SELECT statement that identifies the columns and rows of the
table(s) the view uses.)
18 WHAT ARE THE REFERENTIAL ACTIONS SUPPORTED BY FOREIGN KEY INTEGRITY CONSTRAINT ?
]
Answer: UPDATE and DELETE Restrict - A referential integrity rule that disallows the update or deletion of referenced data. DELETE Cascade - When a
referenced row is deleted all associated dependent rows are
20 WHAT IS SCHEMA?
]
Answer: A schema is collection of database objects of an user and is used synonym of an user. Schema name = user name
28 WHAT IS A SEQUENCE ?
]
Answer: A sequence generates a serial list of unique numbers for numerical columns of a database's tables.
31 WHAT ARE THE REFERENTIAL ACTIONS SUPPORTED BY FOREIGN KEY INTEGRITY CONSTRAINT ?
]
Answer: UPDATE and DELETE Restrict - A referential integrity rule that disallows the update or deletion of referenced data. DELETE Cascade - When a
referenced row is deleted all associated dependent rows are
33 WHAT IS A TABLESPACE?
]
Answer: A tablespace is the logical division of the oracle database which include the datafiles with their size and locations in the database. It is of two types
(1)created by oracle database itself at the
36 WHAT IS THE MAXIMUM NUMBER OF CHECK CONSTRAINTS THAT CAN BE DEFINED ON A COLUMN ?
]
Answer: No Limit.
41 WHAT IS AN EXTENT ?
]
Answer: An Extent is a specific number of contiguous data blocks, obtained in a single allocation, and used to store a specific type of information.
52 WHAT IS A SYNONYM ?
]
Answer: A synonym is an alias for a table, view, sequence or program unit.
53 WHAT IS TABLE ?
]
Answer: A table is the basic unit of data storage in an ORACLE database. The tables of a database hold all of the user accessible data. Table data is stored
in rows and columns.
55 WHEN AN INSTANCE OF AN ORACLE DATABASE IS STARTED, ITS CONTROL FILE IS USED TO IDENTIFY THE DATABASE AND REDO LOG FILES
] THAT MUST BE OPENED FOR DATABASE OPERATION TO PROCEED. IT IS ALSO USED IN DATABASE RECOVERY.
Answer: a table space can hold object of different schema if proper privilege is given to schema on which the table space resides.
Answer: A FUNCTION is always returns a value using the return statement. A PROCEDURE may return one or more values through parameters or may not
return at all.
Answer: Implicit Cursor are declared and used by the oracle internally. whereas the explicit cursors are declared and used by the user. more over implicitly
cursors are no need to declare oracle creates and p
Answer: ROWID - Hexa decimal number each and every row having unique.Used in searching ROWNUM - It is a integer number also unique for sorting
Normally TOP N Analysys. Other Psudo Column are NEXTVAL,
4] HOW WE CAN CREATE A TABLE IN PL/SQL BLOCK. INSERT RECORDS INTO IT? IS IT POSSIBLE BY SOME PROCEDURE OR FUNCTION?
PLEASE GIVE EXAMPLE...
Answer: CREATE OR REPLACE PROCEDURE ddl_create_proc (p_table_name IN VARCHAR2) AS l_stmt VARCHAR2(200); BEGIN
DBMS_OUTPUT.put_line('STARTING '); l_stmt := 'create table '|| p_table_name || ' as
5] WHAT IS DIFFERENCE BETWEEN STORED PROCEDURES AND APPLICATION PROCEDURES, STORED FUNCTION AND APPLICATION
FUNCTION?
Answer: Stored procedures are sub programs stored in the database and can be called & execute multiple times where in an application procedure is the
one being used for a particular application same is the wa
Answer: Advantage : In pl/sql if you want perform some actions more than one records you should user these cursors only. bye using these cursors you
process the query records. you can easily move the recor
7] NAME THE TABLES WHERE CHARACTERISTICS OF PACKAGE, PROCEDURE AND FUNCTIONS ARE STORED?
8] WHAT IS RAISE_APPLICATION_ERROR?
Answer: Raise_application_error is a procedure of package DBMS_STANDARD which allows to issue an user_defined error messages from stored sub-
program or database trigger.
Answer: WHERE CURRENT OF clause in an UPDATE,DELETE statement refers to the latest row fetched from a cursor. Database Triggers
10 WHAT WILL THE OUTPUT FOR THIS CODING? DECLARE CURSOR C1 IS SELECT * FROM EMP FORUPDATE; Z C1%ROWTYPE; BEGIN OPEN C1;
] FETCH C1 INTO Z; COMMIT; FETCH C1 IN TO Z; END;
Answer: By declaring this cursor we can update the table emp through z,means wo not need to write table name for updation,it may be only by "z".
11 1) WHAT IS THE STARTING "ORACLE ERROR NUMBER"? 2) WHAT IS MEANT BY FORWARD DECLARATION IN FUNCTIONS?
]
Answer: One must declare an identifier before referencing it. Once it is declared it can be referred even before defining it in the PL/SQL. This rule applies to
function and procedures also ORACLE ERROR NO s
15 WHAT IS TRIGGER, CURSOR, FUNCTIONS IN PL-SQL AND WE NEED SAMPLE PROGRAMS ABOUT IT?
]
Answer: Trigger is an event driven PL/SQL block. Event may be any DML transaction. Cursor is a stored select statement for that current session. It will not
be stored in the database, it is a logical compo
16 CAN COMMIT, ROLLBACK, SAVEPOINT BE USED IN DATABASE TRIGGERS? IF YES THAN HOW? IF NO WHY? WITH REASONS
]
Answer: we cannot commit inside a trigger. As we all know that when a dml is complete one can issue a commit. A trigger if created is fired before the dml
completes. so we cannot commit intermediatel
17 HOW MANY TYPES OF DATABASE TRIGGERS CAN BE SPECIFIED ON A TABLE? WHAT ARE THEY?
]
Answer: Insert Update Delete Before Row o.k. o.k. o.k. After Row o.k. o.k. o.k. Before Statement o.k. o.k. o.k. After Statement o.k. o.k. o.k. If FOR EACH
ROW clause is specified, then the trigger for ea
22 CAN WE DECLARE A COLUMN HAVING NUMBER DATA TYPE AND ITS SCALE IS LARGER THAN PRICESION EX: COLUMN_NAME NUMBER
] (10,100), COLUMN_NAME NUMBAER (10,-84)
Answer: Yes, we can declare a column with above condition. table created successfully.
24] IN PL/SQL FUNCTIONS WHAT IS USE OF OUT PARAMETER EVEN THOUGH WE HAVE RETURN STATEMENT.
Answer: Without parameters you can get the more than one out values in the calling program. It is recommended not to use out
parameters in functions. If you need more than one out values then use procedures i
25] HOW TO AVOID USING CURSORS? WHAT TO USE INSTEAD OF CURSOR AND IN WHAT CASES TO DO SO?
Answer: just use subquery in for clause ex: for emprec in (select * from emp) loop dbms_output.put_line(emprec.empno); end loop; no
exit statement needed implicit open,fetch,close occurs
32 WHAT ARE TWO VIRTUAL TABLES AVAILABLE DURING DATABASE TRIGGER EXECUTION?
]
Answer: The table columns are referred as OLD.column_name and NEW.column_name. For triggers related to INSERT only NEW.column_name values
only available. For triggers related to UPDATE only OLD.column_name
33 IS IT POSSIBLE TO USE TRANSACTION CONTROL STATEMENTS SUCH A ROLLBACK OR COMMIT IN DATABASE TRIGGER? WHY?
]
Answer: It is not possible. As triggers are defined for each table, if you use COMMIT of ROLLBACK in a trigger, it affects logical transaction processing.
38 WHAT IS DIFFERENCE BETWEEN A CURSOR DECLARED IN A PROCEDURE AND CURSOR DECLARED IN A PACKAGE SPECIFICATION?
]
Answer: A cursor declared in a package specification is global and can be accessed by other procedures or procedures in a package. A cursor declared in a
procedure is local to the procedure that can not be a
39 WHAT IS PL/SQL?
]
Answer: PL/SQL is a procedural language that has both interactive SQL and procedural programming language constructs such as iteration, conditional
branching.
45 WHAT ARE % TYPE AND % ROWTYPE ? WHAT ARE THE ADVANTAGES OF USING THESE OVER DATATYPES?
]
Answer: % TYPE provides the data type of a variable or a database column to that variable. % ROWTYPE provides the record type that represents a entire
row of a table or view or columns selected in the cursor
49 WHAT IS NVL?
]
Answer: NVL: Null value function converts a null value to a non-null value for the purpose of evaluating an expression. Numeric Functions accept numeric I/P
& return numeric values. They are MOD, SQRT, ROUND,
50 WRITE THE ORDER OF PRECEDENCE FOR VALIDATION OF A COLUMN IN A TABLE ? I. DONE USING DATABASE TRIGGERS. II. DONE USING
] INTEGARITY CONSTRAINTS.
51 WHAT IS SPOOL?
]
Answer: spool command used for printing the out put of the sql statments in a file. Eg. spool /tmp/sql_out.txt select emp_name, emp_id from emp where
dept='sales'; spool off; we can see the out on /tm
52 WHAT IS ROLLBACK?
]
Answer: Rollback causes work in the current transaction to be undone.
55 WHAT IS INTERSECT?
]
Answer: Intersect is the product of two tables listing only the matching rows.
58 QUESTION: BELOW IS THE TABLE CITY GENDER NAME DELHI MALE A DELHI FEMALE B MUMBAI MALE C MUMBAI FEMALE D DELHI MALE E I
] WANT THE O/P AS FOLLOWS: MALE FEMALE DELHI 2 1 MUMBAI 1 1 PLEASE HELP ME IN WRITING THE QUERY THAT CAN YIELD THE O/P
MENTIONED ABOVE?
Answer: select city, sum(decode(gender,'male',1,0)) Male_cnt, sum(gender,'female',1,0) female_cnt from table_name group by city
59 WHAT IS SAVEPOINT?
]
Answer: Savepoint is a point within a particular transaction to which you may rollback without rolling back the entire transaction.
61 WHAT IS SQL*LOADER?
]
Answer: 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
64 WHAT IS SYNONYMS?
]
Answer: Synonyms is the alias name for table, views, sequences & procedures and are created for reasons of Security and Convenience. Two levels are
Public - created by DBA & accessible to all the users. Priv
65 WHAT IS CONSISTENCY?
]
Answer: Consistency: Assures users that the data they are changing or viewing is not changed until the are thro' with it.
66 WHAT IS SEQUENCES?
]
Answer: Sequences are used for generating sequence numbers without any overhead of locking. Drawback is that after generating a sequence number if the
transaction is rolled back, then that sequence number is
67 WHAT IS INDEXES?
]
Answer: Indexes are optional structures associated with tables used to speed query execution and/or guarantee uniqueness. Create an index if there are
frequent retrieval of fewer than 10-15% of the rows in a
71 WHAT IS COLUMN?
]
Answer: COLUMN command defines column headings & format data values.
72 WHAT IS COMPUTE?
]
Answer: Command control computations on subsets created by the BREAK command.
73 WHAT IS COMMIT?
]
Answer: Commit is an event that attempts to make data in the database identical to the data in the form. It involves writing or posting data to the database
and committing data to the database. Forms check th
78 WHAT IS SET?
]
Answer: SET command changes the system variables affecting the report environment.
79 WHAT IS UNION?
]
Answer: Union is the product of two or more tables. Which is removed duplicate values from the query.
80 WHAT IS MINUS?
]
Answer: Minus is the product of two tables listing only the non-matching rows.
84 WHAT IS TRANSACTION?
]
Answer: Transaction is defined as all changes made to the database between successive commits.
85 WHAT IS POSTING?
]
Answer: Posting is an event that writes Inserts, Updates & Deletes in the forms to the database but not committing these transactions to the database.
86 WHAT IS LOCKING?
]
Answer: Locking are mechanisms intended to prevent destructive interaction between users accessing data. Locks are used to achieve.
87 HOW PACKAGED PROCEDURES AND FUNCTIONS ARE CALLED FROM THE FOLLOWING? A. STORED PROCEDURE OR ANONYMOUS BLOCK B.
] AN APPLICATION PROGRAM SUCH A PRC *C, PRO* COBOL C. SQL *PLUS
Answer: a. PACKAGE NAME.PROCEDURE NAME (parameters); variable := PACKAGE NAME.FUNCTION NAME (arguments); EXEC SQL EXECUTE b.
BEGIN PACKAGE NAME.PROCEDURE NAME (parameters) variable := PACKAGE NAME.FUNCT
93 THE SELECT INTO STATEMENT IS MOST OFTEN USED TO CREATE BACKUP COPIES OF TABLES OR FOR ARCHIVING RECORDS?
]
Answer: SELECT column_name(s) INTO newtable [IN externaldatabase] FROM source SELECT column_name(s) INTO newtable [IN externaldatabase]
FROM source WHERE column_name operator value.
96 THE IN OPERATOR MAY BE USED IF YOU KNOW THE EXACT VALUE YOU WANT TO RETURN FOR AT LEAST ONE OF THE COLUMNS.
]
Answer: SELECT column_name FROM table_name WHERE column_name IN (value1,value2,..)