0% found this document useful (0 votes)
86 views

Explain Materialized Views?: Oracle DBA Interview Questions and Answers PDF

Materialized views store analyzed data to avoid commonly used data analysis. Dynamic SQL builds SQL statements at runtime when not all parts are known while writing. A cursor is a pointer to memory allocated for SQL execution. Analytical functions perform data analysis on data subsets using partitions. Conditional compilation compiles code conditionally based on directives. Procedures carry out operations while functions apply functions to return values; packages group procedures and functions. The GLOBAL_NAMES parameter determines if database links must match remote database names. EXECUTE IMMEDIATE processes dynamic SQL statements. Index organized tables store entire rows with indexes rather than rowids. The CONNECT permission allows users to connect to a database.

Uploaded by

Good Morning
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views

Explain Materialized Views?: Oracle DBA Interview Questions and Answers PDF

Materialized views store analyzed data to avoid commonly used data analysis. Dynamic SQL builds SQL statements at runtime when not all parts are known while writing. A cursor is a pointer to memory allocated for SQL execution. Analytical functions perform data analysis on data subsets using partitions. Conditional compilation compiles code conditionally based on directives. Procedures carry out operations while functions apply functions to return values; packages group procedures and functions. The GLOBAL_NAMES parameter determines if database links must match remote database names. EXECUTE IMMEDIATE processes dynamic SQL statements. Index organized tables store entire rows with indexes rather than rowids. The CONNECT permission allows users to connect to a database.

Uploaded by

Good Morning
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Oracle DBA Interview Questions and Answers Pdf

Question: 1

Explain materialized views?


Materialized views are called snapshot.

They represent a state of data at a specific point to time.

These are generally used in warehouse application to avoid commonly used data analysis by
storing analyzed data. Unlike normal views, they actually store data and need to be refreshed.

Question: 2

What is the use of dynamic SQL?


Dynamic SQL is an enhanced form of Structured Query Language (SQL) that is used to build
SQL statement at runtime.

It is used when you do not know all parts of the SQL while writing the SQL.

Question: 3

What is a cursor?
Cursor is a handle or pointer to memory context area allocated for the execution of SQL
statement.

Question: 4

What is Analytical function?


Analytical functions are used to perform data analysis for different subsets of a data set.

This is achieved through partition clause.

There are different types of analytical functions available in Oracle, which are given as follows.

Ranking functions, such as rank, dense_rank, row_number, ntile, percent_rank and cume_dist.
Windows functions, such as sum, max and avg.

Question: 5

What is conditional compilation?


Conditional compilation allows you to compile code conditionally based on compiler directives.

It is helpful when you need to have different code based on certain conditions.

Question: 6

Explain the difference between function, procedure


and package?
A PL/SQL function or procedures is used to carry out a single task.

Although there is no restriction, a procedure is generally used to carry out an operation while a
function is used to apply a function on one or many columns to return a value.

A package is a collection of procedures or functions. Even though there is no restriction on


grouping different though there is no restriction on grouping different procedures or functions,
generally they are grouped based on the modular approach used in application.

Question: 7

Explain the use of GLOBAL_NAMES setting?


The GLOBAL_NAMES setting determines whether database link can be created with a different
name rather than the remote database name.

If the parameter is set to TRUE, then the database link must be created with the same name as
remote database.

If the parameter is set to FALSE, then the database link can be created with a different name.

Oracle lets you create database link with different name even when the GLOBAL_NAMES is set
to TRUE but the link cannot be used.
You will receive the error ORA-02085, if you try to use a database link with different name
when GLOBAL_NAMES is set to TRUE.

Question: 8

What is EXECUTE IMMEDIATE?


EXECUTE IMMEDIATE is a statement required to process most dynamic SQL statements.

Question: 9

What is an index organized table?


Generally, a table is stored independently of any index and the index stores index value with the
rowed of the table to enhance the performance of the queries.

In case of index organized tables, the entire row is stored with the index value and not just the
rowid.

Question: 10

What permissions must be granted to users to allow


them to connect to the database?
You should grant the CONNECT permission to the user.

You might also like