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

PLSQL Questions 1

When SQL statements are executed, undo information is temporarily stored in rollback segments to allow for transaction rollback. When data is inserted or updated, it is initially stored in the database buffer cache rather than the data files. Commiting the transaction is required for the changes to be saved to the data files. After the first execution, a query's data block addresses are cached in the SGA, allowing faster retrieval when the query is run again.

Uploaded by

seenuguddu
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
193 views

PLSQL Questions 1

When SQL statements are executed, undo information is temporarily stored in rollback segments to allow for transaction rollback. When data is inserted or updated, it is initially stored in the database buffer cache rather than the data files. Commiting the transaction is required for the changes to be saved to the data files. After the first execution, a query's data block addresses are cached in the SGA, allowing faster retrieval when the query is run again.

Uploaded by

seenuguddu
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

ORACLE ASSIGNMENT-II (D. Srinivas Reddy &Team) 1) What is the relation between SQL statement and rollback?

Ans) One or more rollback segments for database are created by administrator to temporarily store undo information. 2) If we insert data into a table in one session, we cannot view it in another session until we commit the changes. How it takes place? Ans) When ever we update or insert, the data will be stored in database buffer cache. If we do commit then only it is going to save in the data file. Before this any body access data, it will give the values in the data file. 3) If the SQL statement is executed for the first time it takes 5 minutes and if we execute the same for next time it takes only 2 minutes. Why? Ans) Once a query is executed its data blocks addresses are maintained in the SGA. So if it again called it can directly refer to the addresses of that blocks and fetch the data. 4) Can we bypass the index of an indexed column? Ans) Yes , Disable the index 5) What are the constituents of SGA? Ans) SGA is a shared memory region that contains data and control information for one oracle instance. 6) Can we connect to Oracle without an instance? Ans) Except DBA nobody can connect to the oracle without instance. But even the DBA cannot retrieve data in the database without instance. 7) One Oracle multiple instances and vice versa. Is it possible? Ans) An Instance cannot share multiple databases. Because instance contains SGA + control files which can control one database at a time.

8) What is the difference between backup domain controller and primary domain controller? Ans) 9) What is dirty buffer? Ans) The dirty buffer contain data that has been modified but has not yet been written to the disk. 10) Can we create synonym for a cursor? Ans) No, we cannot create synonym for cursor is a pointer to sql private area, which is a temporary memory. 11) What is reference cursor? Ans) REF CURSOR is a cursor variable, which can be associated with different statements at run time.

You might also like