You are on page 1of 2

alert log name is alert_$ORACLE_SID.log (alert_samidb.

log

its always in $ORACLE_HOME/admin/$ORACLE_SID/bdump/alert_ORACLE_SID.log


Alert log

vi $ORACLE_HOME/admin/$ORACLE_SID/bdump/alert_$ORACLE_SID.log

look for errors by "esc > /ORA- > n=next error > N=previous error".

cat alert_$ORACLE_SID.log | grep ORA-


(to check all the errors)

cat alert_$ORACLE_SID.log | grep ORA- | more


(to go page by page use <tab>, and for line by line, use <enter>)

cat alert_junaid.log |grep "Starting up" | wc -l


(to check number of times db has started since it was built)

SQL> show parameter dump;


adump = audit dump destination
bdump = background dump destination
cdump = core dump destination
(for details in binary, oracle usually asks for these files for solvong
probs.
udump = user dump destination

SQL> show parameter control;


(this shows how many control files are there and locs, oracle recommends at least
2 control files cuz if one is cuppurted, other one can be used to open db; then
sync the 1st control file.)

-----------------------------------------------------
Memory

sga = system global area - show parameter sga_target; to check the memory size
assigned
show parameter sga; (to see all the sga related information)
pga = program global area - show parameter pga; to check the memory size assigned

Static Parameter = Restart of db is required | change in spfile | scope=spfile


Dynamic Parameter = Restart od db is not required | scope=memory

SGA_MAX_SIZE = static parameter


SGA_Target = dymanic parameter

$ free -m = to see free memory in o/s

var/log/message = If db is slow, one of the reason could be that swap might be in


used.
Convince all the events are reported and maintained in this file,
it does not have .ext for whatever reason, only unix admins have
access to this
file.

alter system set sga_target = 210M scope = memory; (to change in current session)
scope = spfile (to change perm from next sessions -
changes are made in spfile)
scope = both (to change in current and next sessions,
both.
if scope is not used, it takes scope=both by default)

select name, issys_modifiable from v$parameter order by 2 (asc/desc);


(to check if parameter is static or dymanic - immediate = dynamic | false = static)

select name, issys_modifiable from v$parameter where name like 'sga%';


(to get all sga parameter outputs)

You might also like