PLSQL Questions 1
PLSQL Questions 1
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.