My Oracle Dba Blog
Read what's life like as an Oracle Dba...
Thursday, March 14, 2013
Automatic Shared Memory Management problem ?
Our monitoring shows a 'time out' on different checks and when trying to connect using sql, the sql session is hanging. No connection is possible.
A few days ago, something like this happened again. Instead of bouncing the database, I decided to look for clues to find out why the database was 'hanging'.
The server itself did not show anything. Nothing strange was going on at that time, also the alert.log of the database did not show anything. Nothing strange before the hang and nothing during the hang. Also the other 'dump' directories did not help me in any way.
At that time I noticed the database was responding again.
The next day I decided the run an AWR report using a snapshot before and one after the hanging. I noticed the wait event 'SGA: allocation forcing component growth' in the top 3 of wait events. I also remembered that sometimes the mmon proces is using 100% cpu during the hang period. I did not notice that this time, but decided to look closer at this event.
I found the following going on at the time of the 'hanging' of the database (using the v$sga_resize_ops)
We noticed the hanging around 4:05 pm....The v$sga_resize_ops shows..
WHEN COMPONENT OPER_TYPE
------------------------- ------------------------- -------------
Mrt-12:16:08:11 DEFAULT buffer cache SHRINK
Mrt-12:16:08:11 shared pool GROW
Mrt-12:16:08:11 DEFAULT buffer cache SHRINK
Mrt-12:16:08:11 shared pool GROW
Mrt-12:16:08:11 DEFAULT buffer cache SHRINK
Mrt-12:16:08:11 shared pool GROW
Mrt-12:16:08:11 DEFAULT buffer cache SHRINK
Mrt-12:16:08:11 shared pool GROW
Mrt-12:16:08:11 DEFAULT buffer cache SHRINK
Mrt-12:16:08:11 shared pool GROW
Mrt-12:16:08:11 DEFAULT buffer cache SHRINK
The sga was resized 406 times (!!!) in one second. From 16:08:12 the resizing looked normal (?) again..
Mrt-12:16:08:11 shared pool GROW
Mrt-12:16:08:12 DEFAULT buffer cache SHRINK
Mrt-12:16:08:12 shared pool GROW
Mrt-12:16:08:12 DEFAULT buffer cache SHRINK
Mrt-12:16:08:12 shared pool GROW
Mrt-12:16:08:14 DEFAULT buffer cache SHRINK
I have to check this next time one off our databases is hanging, but this does not look good to me.
I noticed some bugs on MOS, but with no solution. A workaround solution is to disable ASMM by setting the sga_target to 0.
Monday, December 10, 2012
Missing controlfiles ?
The backup logfile was showing the following error :
NGP01I/
NGP02I/
NAME
--------------------------------------------------------------------------------
+NGPDATA/ngp01/controlfile/current.263.796827271
+FRA/ngp01/controlfile/current.3434.796827271
Same directory that does not exist according to RMAN (and I can't see it neither in ASM)
Update
Could it be possible the files still exist in the ASM cache ? The database is running fine, I also executed a backup controlfile to trace, and this file looks good. So, it seems the controlfile is online for the database (11.2.0.1.0), but it's no longer present on disk. So, what is the database using and updating ?
Monday, October 17, 2011
Oracle OEM 12c unzipping.....
After downloading the software, I had some trouble unzipping the two files.
The files downloaded where :
- em12_linux_x86_disk1of2.zip
- em12_linux_x86_disk2of2.zip
When unzipping the files, the following error occurred :
[oracle@localhost software]$ unzip em12_linux_x86_disk2of2.zip
Archive: em12_linux_x86_disk2of2.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of em12_linux_x86_disk2of2.zip or
em12_linux_x86_disk2of2.zip.zip, and cannot find em12_linux_x86_disk2of2.zip.ZIP, period.
The same error occured at both zip files, so I decided to download them again.... :(
After the second download, the unzip still showed the same errors. I downloaded the unzip from the download site...still no change. Then I downloaded the unzip for large files, the LINUX Intel (32bit and 64bit - Large file support) unzip tool. This time no errors...
Tuesday, October 11, 2011
Oralce eBS R12 Financials Cookbook

Monday, January 03, 2011
Oem Agent not starting anymore..
But then the agent stopt running and was producing al lot of errors like ..
EMAgent exited with signal 6
EMAgent is Thrashing. Exiting watchdog
oem agent Segmentation Fault
Could this have something to do with the password reset I did before ? I looked into the log/trace files but could not find anything special, except these errors. I decided to change the dbsnmp password again and not to change it in OEM, so the agent could not connect to the target. This time the agent started.
Chekcing the target again, I found the follwoing when executing sqlplus as system...
ORA-28002: the password will expire wuthin 7 days.
The target is a 11g database, could this be the problem ? I decided to edit the 'DEFAULT' profile.
alter profile default limit password_life_time unlimited;
Changed the system password back to is't previous value (so nothing changed...) and everything was fine.
The target is up and running in OEM..
Friday, October 29, 2010
Concurrent request error
A concurrent request was running into an error. The following error was shown in the logfile of the request.
APP-FND-00362: Routine afpbep cannot execute request &REQUEST for program &PROGRAM, because the environment variable &BASEPATH is not set for the application to which the concurrent program executable &EXECUTABLE belongs.
I noticed the $CUSTOM_TOP variable was not set, but after setting this variable the same error occurred.
Then I noticed something strange, the $XXX_TOP was not set in the environment. After adding this top to the adovars.env (to test the request), the concurrent request ended without error.
Tuesday, September 28, 2010
Configure Oracle dbconsole...
For a 10g database I wanted to check something in the database console. When trying to start this console, I received the following error : OC4J Configuration issue. Oracle/ora102/oc4j/j2ee/OC4J_DBConsole_.local_ not found
The ORACLE_HOME is a shared one, meaning different databases use the same ORACLE_HOME. So, because of this there were some other directories but not the one I needed. I decided to configure the dbconsole for this database using the emca tool. ./emca -config dbcontrol db
STARTED EMCA at Sep 27, 2010 10:38:38 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved. Enter the following information:
Database SID:
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional): ----------------------------------------------------------------- You have specified the following settings Database ORACLE_HOME ................ /oracle/ora102 Database hostname ................
Listener port number ................ 1521
Database SID ................
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ............... -----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Sep 27, 2010 10:43:24 AM
oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/ora102/cfgtoollogs/emca/wtcgo/emca_2010-09-27_10-38-38-AM.log. Sep 27, 2010 10:43:27 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ... Sep 27, 2010 10:45:02 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully Sep 27, 2010 10:45:02 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://host.domain:5503/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Sep 27, 2010 10:45:02 AM
After this the dbconsole was running and I was able to check something for the customer.