Professional Documents
Culture Documents
Where would you look for errors from the database engine?
In the alert log.
35. What are the two ways to determine the structure of a table in database?
DESCRIBE command and dbms_metadata_get_commit package
Yes, sometimes I had faced issues regarding old pages being rendered from cache to
the user. In such situation, I clear the cache and then try to investigate the
cause. Many times these issues happen because of the comparatively high refresh
interval. At that time, it is important to reduce the cache refresh interval.
All the users are complaining that their application is hanging. How you will
resolve this situation in OLTP?
First check the Alert log file if any error related to hang issue such. Then I
would like to suggest one important step, that is please check archive log
destination whether it has enough space, some times when archive log destination
got 100% full the database will be hanged and no one can connect to the database
apart from dba.
You have just compiled a PL/SQL package but got errors, how would you view the
errors?
SHOW ERRORS
What view would you use to look at the size of a data file and determine free space
in a tablespace?
DBA_DATA_FILES and DBA_FREE_SPACE
select * from (select rownum as rn,a.* from employees a) where mod(rn,2)=0 and
rn<=20
Declare
A number:=0;
begin
loop
A := A+2;
dbms_output.put_line (A);
exit when A=20;
end loop;
end;
/