Professional Documents
Culture Documents
2. What is a view?
3. What is referential integrity?
4. Name the data dictionary that stores user-defined constraints?
5. What is a collection of privileges?
6. What is a snapshot?
7. What is a synonym?
8. What is a cursor?
9. What is a sequence?
10. What is a trigger?
11. What is an exception?
12. What is a partition of table?
13. What are pseudo-columns in SQL? Provide examples.
14. What are the Data Control statements?
15. What is a schema?
16. What is a type?
17. What is a data model?
18. What is a relation?
19. Advantages of redo log files?
20. What is an Archiver?
21. What is a database buffer cache?
22. What are the background processes in Oracle?
23. %type and %rowtype are attributes for…?
24. What are the steps in a two-phase commit?
25. What is a union, intersect, minus?
26. What is a join, explain the types of joins?
27. What is a co-related sub-query?
28. ODBC stands for…?
29. Data-type used to work with integers is?
30. Describe data models?
31. Describe the Normalization principles?
32. What are the types of Normalization?
33. What is de-normalization?
After starting an instance, Oracle associates the instance with the specified
database. This is called mounting the database. The database is then ready to
be
opened, which makes it accessible to authorized users.
Only the database administrator can start up an instance and open the database.
If a database is open, the database administrator can shut down the database so
that it is closed. When a database is closed, users cannot access the
information that it contains.
Q: What is a view?
View
Views present a different representation of the data that resides within the
base tables. Views are very powerful because they allow you to tailor the
presentation of data to different types of users.
Rules governing the relationships between primary keys and foreign keys of
tables within a relational database that determine data consistency. Referential
integrity requires that the value of every foreign key in every table be matched
by the value of a primary key in another table.
5. Can i execute Stored Procedures & Functions from SQL prompt ? If yes how
can i execute ?
6. Hi Krishna
What is a collection of privileges?
collection of privilages is role.
sasi242@yahoo.com
7. What is a cursor?
Ans:
cursor is a private sql work area used to perform manipulations on data using
pl\sql.
adv:
1.mainly used for multiple row manipulations and locking columns.
note: data which is populated into the cursor is known as active dataset.
cursors are of two types
1.implicit
2.explicit
implicit
———
attributes or properties for implicit cursor
1.sql%is open:attribute returns a boolean value stating wether the cursor is
open or closed.
2.sql % found: returns boolean value stating whether the record is found in the
cursor.
3.sql%notfound : returns a boolean value stating whether the record is not
found in the cursor
4.sql %rowcount :returns a pneumeric value stating no.of rows executed in the
cursor.
Note: DATA which is populated in the cursor is known as active data set.
8. What is a sequence?
Ans:It is a database object to auto generate numbers.
Happy Coding
sasi242@yahoo.com
10. hi ,
i would like know more about sql advanced queries .
Suppose i am created a function add which returns the addition of two numbers
then
13. Thanks a lot for providing answers for the above questions…i am grateful to
all of you
Regards
Ravi Prakash
15. hi
i have problem with import
i have export file on linux os and oracle8i
i want import on windows platform
what should i do?
16. Hi Krishna ,
Thanks a lot for the Answers
17. Hi All,
Syntax:
create synonym synonym-name for schemaname.object-name
what is an exception ?
for all the exceptions raised oracle fills in sqleerm and sqlcode variable which
provide the error message and error code for the exception raised.
A pseudocolumn behaves like a table column, but is not actually stored in the
table. You can select from pseudocolumns, but you cannot insert, update, or
delete their values.
Examples:
CURRVAL,NEXTVAL,ROWID,LEVEL
what is a schema ?
A schema is a oracle database user account.
so, we can define co-related sub query as for every record retrival from the sub
query is processed and based on result of process the parent record is
displayed.
Regards
Lucky
27. i want to know how to use rownum and rowid efficiently in sql*plus queries
28. hi
will u plezzzz tell me
can we return cursor in the function if yes than what the process?
can we define exceptions twice in same block?
what is max. no. of statment that can specified in triggers?
in cursor where the cursor variable used in package body?
30. How can I assigned two table in a single block (database block) in forms6i?
32. pseudo columns in sql are currval and nextval.These are used with sequences
to retreive the next sequence value and current sequence value.
The usage is as follows
suppose abc is the sequence name if i want to see the currval of the sequence
we issue the sql statement
select abc.currval from dual;
if we want to see the next value of the sequence we issue the command
select abc.nextval from dual;
Srinivasa Reddy
34. hi,
what is the major difference between normal FOR LOOP and CURSOR
LOOP?
-Regards
Muttappa S.T.
35. Hi,
when we install the new version of Oracle then what happens to our earlier
forms?
37. is it possible to create a cursor which is based on more than one table.
Once u login into ur account/user, u can access other user’s schema objects like
i can write scott.emp, if at all i’ve acces to scott user’s emp table.
40. Data Model: The logical data structure developed during the logical database
design process is a data model or entity model. It is also a description of the
structural properties that define all entries represented in a database and all the
relationships that exist among them.
%ROWTYPE is used to declare a record with the same types as found in the
specified database table, view or cursor
%TYPE is used to declare a field with the same type as that of a specified
table’s column.
Index for a physical structure (b-tree) to help you query run faster.
Table partition is a method of breaking a large table into smaller tables grouped
by some logical separators. in your case, having both index and partition will
make things faster.
Trigger : A program in a database that gets called each time a row in a table is
INSERTED, UPDATED, or DELETED. Triggers allow you to check that any
changes are correct, or to fill in missing information before it is commited.
Triggers are normally written in PL/SQL or Java.
Redo Log: A set of files that record all changes made to an Oracle database. A
database MUST have at least two redo log files. Log files can be multiplexed
on multiple disks to ensure that they will not get lost. Also see thread.
Buffer Cache: The portion of the SGA that holds copies of Oracle data blocks.
All user processes that connect to an instance share access to the buffer cache.
Performance of the buffer cache is indicated by the BCHR (Buffer Cache Hit
Ratio).
Regards.