Database monitoring question
I don't want to get in to a lot of detail, so I will try to keep is really simple and short. I have a rather large database, and an application that can access that database and add/manipulate/etc. data within it. I'm looking for a way to run the application and to then see what tables within the database are affected and how. If there is any way to do this or something similar, I would really appreciate the help. Thanks.
Another option is to trace the session and use tkprof to interpret what happened.
You can issue a command to turn on trace. I think that is alter session set sqltrace = true;
There is also a way to turn on trace from a remote session.
After you trun it on your session should generate a trace file under the udump directory on the db server. You would run that file through tkprof.
Similar Messages
-
Using JMX to database monitoring
Hello, I'm a software developer, and I want to use JMX to database monitoring.
I did sth to see in jconsole some data from our database, but Ive got problem to
refresh it. I mean when jconsole is running and somebody makes changes in DB
how can I see it on monitor ... ?? Something like dynamic MBeans ??
second question - is it possible to use MXBean in java 1.5 ??
thanks for answers
PS. we are using Java 5 unfortunetellyoh I should say that:
-I'm using jconsole to monitoring jobs i DB;
-every job has its own MBean;
-of course if some changes in already defined jobs occure - its no problem;
Problem is when somebody create/delete jobs ... how can I using refresh button on jconsole get information about new job ? -
Database monitoring and control i
Hi all,
I am looking for various options to monitor and control the database.
Could you provide your thoughts on this.You will get more, faster and better responses to your questions when you learn that your questions should contain as much information about your interests as you can provide.
What you asked about database monitoring is pretty close to posting only question mark in you post. Like this : *?*
When you are going to car mechanic to ask him for advice about your car, you will not just tell him : I am looking for thoughts on achiving higher HP for my car,tell me ,how to do that? .
You will obviusly tell him at least what car you have, what model, what year was made and so on. You can apply almost the same logic when asking oracle questions here.
For zilion reasons , providing at least information about database release you are using is a 'must do' when asking a question.
Also, your first stop when looking for info about something that is so general as your question here suggests, should be http://tahiti.oracle.com/ , where you could eventually, as in this case , after few more clicks lead yourself to this, and after that enable yourself to ask more specific and concrete question.
By the way, your forum activity statistics are saying that you are one of those posters which is appearing here with the moto 'ask question-respond never' , and this attitude can discourage many forum members to help you because they prefer two-way communication, which you obviusly don't. -
Error in Database monitoring in Solution Manager Diagnostic
Hello All,
I'm facing issue in configuring Database monitoring for Java system (EP/PI) from Solution manager .
It could be configured from sol man diagnostic>Diagnostic System>Managed system>Database monitoring, iei'm unable to have java system in DBACOCKPIT system .
I can have connection as successful, but along with it i'm getting error as "Error in CL_DB6_SYS with return code ADBC error", for this issue, i got note # 1263152, i did applied this note, but still no success.
I'm having Sol man system, which is on EHP1 SP2 and rest other java systems are at PI 7.1 & EP 7.0, database is Oracle 10.2.0.4.
Please let me know, if anyone did face such kind of issue & solution for the same...
Thanks
Anand.I could solve this problem....latest kernel on managing & managed system is thumb rule for this.
-
ORAMON: Oracle Database Monitoring tool in PHP
ORAMON is a free Oracle database monitoring tool written in PHP. It can help you in managing critical database administration task easily. It also offers SQL Editor where you can write your own customize queries.
What you can monitor from Oramon?
* Database/Listener status
* Notification on database status
* Hit ratios
* User information
* Rollback segments
* Tablespaces
and more..
Please visit oramon website http://www.oramon.org for more detail.
For download go to http://www.oramon.org/download.phpCan you please list this project in open source project list?
-
Rz20 remote database monitoring
Hi girus,
we have to monitor from our Solution Manager a java remote database. We have followed note 1139623, everything works well in transaction DB02 for this remote system except Alert Monitor Tree under Folder Alert . The icons are inactive and are not showing data.
We have already set flag "collect alert data" in transaction DBACOCKPIT.
Any ideas?Hello,
Could you please check note:
1265134 - DBA Cockpit: Connecting a remote database
1711688 - DBA Cockpit: RZ20 alerts are not generated
868063 - Database space statistics monitor for Oracle
1540222 - DBA Cockpit: Monitoring non-ABAP/Java Oracle databases
If a database is installed on a remote server than the SAPLOCALHOST parameter should be maintained correctly in the agent profile, the value
for this parameter should be exactly the same as the SAPDBHOST parameter value in the instance profile. If this is correctly done than in the
transaction AL15 automatically the flag "DB server" will be selected for the related SAPCCMSR agent RFC destination (note 444947).
1068204 - New monitor template for database monitoring
Monitoring Standalone DB Server using CCMS Agents
http://scn.sap.com/community/netweaver-administrator/blog/2013/12/18/monitoring-standalone-db-server-using-ccms-agents
BR
T -
Hi guys,
I am pretty new into Oracle Database Administration. I am currently tasked with database monitoring and I would like to ask you guys what parameters or aspects of database we have to constantly monitor? I know for sure we have to monitor the harddisk space, tablespace free space and latch. However, apart from those parameters, anything else I have to pay attention to? And what are the threshold for each parameter? For example, what is the good percentage of freespace to determine when to expand a tablespace?
I would really appreciate your view as I am completely clueless. I have checked some books on this matter but most of them jump straight to the finetuning without revealing any detail on the monitoring parameter, threshold, etc.
My situation is worse since I am the only DBA and the only one competent in it (*sigh*).
Thank you.
Richard Siburianjust study following and try to grab
#Current working directory
cwd=`pwd`
#DBA to whome mail will be sent
DBALIST="[email protected]";
while true
do
clear
echo "**************************************************************************"
echo "* MENU *"
echo "**************************************************************************"
echo "* ( 1) Check status of Listener !! *"
echo "* ( 2) Check status of all Database whose entry in oratab *"
echo "* ( 3) Display database uptime (days and hours) *"
echo "* ( 4) Check the ORA- Error in alert log and mail it to dba *"
echo "* ( 5) Displays information on all database sessions. *"
echo "* ( *) Press any other key to Go back to main menu *"
echo "**************************************************************************"
echo "Enter Your Choice from Menu between 1 and 6 :-"
read choice
case $choice in
1)
echo "checking for the listiner"
listiner_up=`ps -ef | grep LISTENER | grep -v grep |awk '{print$9}'|wc -l`
if [ $listiner_up -ge 2 ]
then
echo "listiner is up, Have a Great time......"
while true
do
echo " Do you want to Stop the Listiner? (y or n) :"
read CONFIRM1
case $CONFIRM1 in
y|Y|YES|yes|Yes)
lsnrctl stop;
callme;
break ;;
n|N|no|NO|No)
echo Aborting - you entered $CONFIRM
callme;
break
*) echo Please enter only y or n
esac
done
else
echo "Listiner is Down, ."
while true
do
echo " Do you want to Start the Listiner? (y or n) :"
read CONFIRM1
case $CONFIRM1 in
y|Y|YES|yes|Yes)
lsnrctl start;
callme;
break ;;
n|N|no|NO|No)
echo Aborting - you entered $CONFIRM
callme;
break
*) echo Please enter only y or n
esac
done
fi
2)
#Script By DCP
#Check status of all Database whose entry in oratab
clear;
if [ -f /etc/oratab ]
then
ORATAB=/etc/oratab
elif [ -f /var/opt/oracle/oratab ]
then
ORATAB=/var/opt/oracle/oratab
else
echo "Unable to locate "
fi
echo "`date` "
echo "Oracle Database(s) Status `hostname` "
db=`egrep -i ":Y|:N" $ORATAB | cut -d":" -f1 | grep -v "\#" | grep -v "\*"`
for i in $db ; do
database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
if [ $database_up -eq 1 ]
then
echo "Oracle Instance - $i : UP"
else
echo "Oracle Instance - $i : Down"
fi
done
while true
do
echo "Do you want to Continue or not Please confirm ? (y or n) :"
read CONFIRM
case $CONFIRM in
y|Y|YES|yes|Yes) break ;;
n|N|no|NO|No)
echo Aborting - you entered $CONFIRM
exit
*) echo Please enter only y or n
esac
done
echo You entered $CONFIRM. Continuing ...;;
3)
#Script By DCP
#Display database uptime (days and hours)
clear;
echo "---------------------------------------------------"
echo "`date` "
echo "Oracle Database(s) Status `hostname` "
echo "---------------------------------------------------"
Live=`ps -ef | grep ora_smon | grep -v grep |awk '{print$8}'|cut -d "_" -f2-3 >$cwd/live.txt`
db=`egrep -i "smon" $cwd/live.txt |cut -d "_" -f2`
for i in $db ; do
database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
if [ $database_up -eq 1 ]
then
echo "Oracle Instance - $i : UP"
fi
echo "---------------------------------------------------"
done
echo "Enter the Database name:- "
read ORACLE_SID
db=`ps -ef | grep ora_smon_$ORACLE_SID|grep -v grep |awk '{print$8}'|cut -d "_" -f3`
if [ "$db" = "$ORACLE_SID" ]
then
export ORACLE_SID
sqlplus -s "/ as sysdba" <<EOF
set feed off
set linesize 280
set pagesize 200
select SYSDATE-logon_time "Days", (SYSDATE-logon_time)*24 "Hours"
from sys.v_\$session
where program like '%PMON%';
exit;
EOF
else
echo "Enter the Valid Name or DB is shudown"
fi
while true
do
echo "Do you want to Continue or not Please confirm ? (y or n) :"
read CONFIRM
case $CONFIRM in
y|Y|YES|yes|Yes) break ;;
n|N|no|NO|No)
echo Aborting - you entered $CONFIRM
clear
exit
echo Please enter only y or n
esac
done
echo You entered $CONFIRM. Continuing ...
4)
#Script By DCP
# Check the ORA- Error in alert log and mail it to dba
clear;
echo "---------------------------------------------------"
echo "`date` "
echo "Oracle Database(s) Status `hostname` "
echo "---------------------------------------------------"
Live=`ps -ef | grep ora_smon | grep -v grep |awk '{print$8}'|cut -d "_" -f2-3 >$cwd/live.txt`
db=`egrep -i "smon" $cwd/live.txt |cut -d "_" -f2`
for i in $db ; do
database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
if [ $database_up -eq 1 ]
then
echo "Oracle Instance - $i : UP"
fi
echo "---------------------------------------------------"
done
echo "---------------------------------------------------------------------------"
echo Alert \!!! This part is hardcoded, PLZ Modify it , just change Value of DLOC
echo "---------------------------------------------------------------------------"
sleep 2;
DLOC=/u01/oracle/product/10.2.0/test/test/bdump
while true
do
echo "Enter the database name: "
read SID
echo "Checking for alert log of $SID database"
case $SID in
$SID)
cd $DLOC
if [ -f alert_${SID}.log ]
then
echo Moving....................
mv /$DLOC/alert_${SID}.log /$DLOC/alert_work.log
echo Touching................
touch /$DLOC/alert_${SID}.log
cat /$DLOC/alert_work.log >> /$DLOC/alert_${SID}.hist
echo greping.....................
grep ORA- /$DLOC/alert_work.log > /$DLOC/alert.err
if [ `cat /$DLOC/alert.err|wc -l` -gt 0 ]
then
mail -s "${SID} ORACLE ALERT ERRORS" $DBALIST < /$DLOC/alert.err
echo Sending Mail.................
else
echo "No Error from last ......Nothing to Mail to DBA...."
fi
rm -f /$DLOC/alert.err
rm -f /$DLOC/alert_work.log
while true
do
echo "Do you want to Continue or not Please confirm ? (y or n) :"
read CONFIRM
case $CONFIRM in
y|Y|YES|yes|Yes) break ;;
n|N|no|NO|No)
echo Aborting - you entered $CONFIRM
clear
exit
echo Please enter only y or n
esac
done
echo You entered $CONFIRM. Continuing ...
else
echo " "
echo "No alert Log file found......Nothing to Mail to DBA...."
echo " "
callme;
fi
break ;;
n|N|no|NO|No)
echo Aborting - you entered $CONFIRM
exit
*) echo Please enter only y or n
esac
done
5)
#Script By DCP
#Displays information on all database sessions
clear;
echo "---------------------------------------------------"
echo "`date` "
echo "Oracle Database(s) Status `hostname` "
echo "---------------------------------------------------"
Live=`ps -ef | grep ora_smon | grep -v grep |awk '{print$8}'|cut -d "_" -f2-3 >$cwd/live.txt`
db=`egrep -i "smon" $cwd/live.txt |cut -d "_" -f2`
for i in $db ; do
database_up=`ps -ef | grep ora_smon_$i|grep -v grep |awk '{print$8}'|wc -l`
if [ $database_up -eq 1 ]
then
echo "Oracle Instance - $i : UP"
fi
echo "---------------------------------------------------"
done
echo "Enter the Database name:- "
read ORACLE_SID
db=`ps -ef | grep ora_smon_$ORACLE_SID|grep -v grep |awk '{print$8}'|cut -d "_" -f3`
if [ "$db" = "$ORACLE_SID" ]
then
export ORACLE_SID
sqlplus -s "/ as sysdba" <<EOF
spool $cwd/curses.log
#set feed off
#set heading off
set line 180
SET LINESIZE 500
SET PAGESIZE 1000
SET VERIFY OFF
COLUMN username FORMAT A15
COLUMN machine FORMAT A25
COLUMN logon_time FORMAT A20
SELECT NVL(a.username, '(oracle)') AS username,
a.osuser,
c.value ,
a.status,
a.module,
a.machine,
a.program,
TO_CHAR(a.logon_Time,'DD-MON-YYYY HH24:MI:SS') AS logon_time
FROM v\$session a,
v\$sesstat c,
v\$statname d
WHERE a.sid = c.sid
AND c.statistic#
= d.statistic#
AND d.name = DECODE(UPPER('value'), 'READS', 'session logical reads',
'EXECS', 'execute count',
'CPU', 'CPU used by this session',
'CPU used by this session')
AND USERNAME IS NOT NULL
ORDER BY c.value DESC;
SET PAGESIZE 14
spool off;
exit;
EOF
if [ `cat $cwd/curses.log|wc -l` -gt 0 ]
then
cat $cwd/curses.log
else
echo "Oppppppssss....No Active user session"
fi
else
echo "Enter the Valid Name or DB is shudown"
fi
while true
do
echo "Do you want to Continue or not Please confirm ? (y or n) :"
read CONFIRM
case $CONFIRM in
y|Y|YES|yes|Yes) break ;;
n|N|no|NO|No)
echo Aborting - you entered $CONFIRM
clear
exit
echo Please enter only y or n
esac
done
echo You entered $CONFIRM. Continuing ...
#hi
clear
exit
esac
done -
Hi,
first time i am working db2 database on support project (linux with db2) what are the things i have to monitor on db2 database level daily.appreciate ur help.
ThankuQuery seems very generic, info could be found out by googling as well.
However, if you can't, I would advise you to start with DBACOCKPIT transaction in SAP - most important and easiest way to monitor DB2 in SAP.
For e.g. please refer the link
https://websmp108.sap-ag.de/~sapidb/011000358700001298992010E.PDF
More guides for database monitoring and administration, you can find on service.sap.com and http://www.sdn.sap.com/irj/sdn/db6
service.sap.com/swdc --> installation n upgrades --> installation n upgrade guides --> NW version --> Operations --> DB guides
Thanks -
How to configure the database monitoring (DBA Cockpit) after Support pack
Hi,
I did the Support Pack Upgrade for BW system and i ran SGEN as well, now i need to configure the database , could you please suggest how to configure the database monitoring (DBA Cockpit) after Support Pack Upgrade.
Server is MSSQL , Component is SAP NetWeaver 2004s and OS is Windows NT.
Plesae suggest.
Chandu.Hi,
You are right. SAP delivers this functionality from SP-12. So when you have applied the SP-12, you must have done these config steps to enable the DBA Cockpit.
If you have done these steps earlier, So you must have DBA Cockpit enable right now and putting extra SPs like 13, 14 and so on, should not be a matter.
Now if you have not performed those config steps before, Please do them now and you will be able to use DBA cockpit.
Please understand that SP12 is the base to run DBA Cockpit.
With Regards,
Saurabh -
RCA:Database Monitoring error for SAP Systems on OS/4000 with DB4
Hello Experts,
We are trying to add ECC systems in DATABASE monitoring(DBACOCKPIT) in RCA workcenter of solman 7.0 ehp1 sp26, the DBSID of the systems are shown as *LOCAL.hence the system is not getting added .This is the case only for system on OS/400 and DB4.
The DBSID in RCA is fetched from SMSY-Which is fetched from SLD->The data supplier in ECC pushing the data to SLD
The DBSID in System(Menu)-Status is showing as LOCAL, hence this DBSID(LOCAL) is reported in SLD->SMSY
any pointers on this?Hi Nilesh,
Please have a look into below SAP note
1887354 *
[ODBC SQL Server Driver] Associated statement is not prepared
Hope this helps.
Regards,
Deepak Kori -
SMD database monitoring for Java MSCS cluster system
Dear All,
We have install SAP netweaver 7.0 EHP1 java stack on oracle 10.2.0.5 with windows 2008 R2 MSCS cluster enviornmant.
now we are configuring SMD
From SMD, while configuring Managed system(JAVA ONLY system)--> database monitoring I am getting following error
DB connection Id :%_SID_virtualhost_SAPSR3DB
Connectivity test :
Database history :This connection could not be tested, thus the DB performance warehouse was not set up
Extractors activation :This connection could not be tested, thus the DB extractors were not set up
Connectivity test details :
Database connection %_SID_virtualhost_SAPSR3DB : SQL error 12505 ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
Database connection :%_SID_virtualhost_SAPSR3DB could not be established
System Details
Solman - SAP EHP 1 for SAP Solution Manager 7.0
managed system - Netweaver 7.0 ehp1AS JAVA(New Installation)
Connection parameters
Database Name: SID
Database Host :virtual host
TNS Name:SID.WORLD
User Name:SAPSR3DB
Password:xxxxxxxxxxx
Tns ping command is also not working when we give host name as virtual host of JAVA system
but when we change it to phyiscal IP address of the cluster server it is working fine.
Could you please let me know any setting need to be done
Sincerely
PareshHi Paresh,
>> Tns ping command is also not working when we give host name as virtual host of JAVA system
but when we change it to phyiscal IP address of the cluster server it is working fine.
>> SQL error 12505 ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
Virtual hostname must be resolved on both hosts while configuring SMD. Otherwise you'll not able to access Oracle Listener.
Best regards,
Orkun Gedik -
Problems with SMD database monitoring
Hello,
We are configuring SMD and Wily. From the diagnostics system we are initializing Database Monitoring.
We get this error:
Database history :You are not authorized for DB access (S_DBCON: TSXIT TXQ <Windows authentication> 03).
Extractors activation :The DB performance warehouse failed to be setup, thus the DB extractors were not activated.
Anyone can help me here?
Who is it that Is not authorized?
Regards,
KennethPls, check Note 1027512 - MSSQL: DBA cockpit for basis release 7.00 and later
Sven -
Database Monitoring Scripts in Metalink
Hi,
Someone give me before a metalink notes where in lots of database monitoring/tuning scripts are compiled.
I remember saving it in my folder. But I can not find where the folder is located now. :(
Can you help me find that metalink note again please....
Thanks a lot
Ms KHi again;
Please also check:
Script To Monitor Memory Usage By Database Sessions [ID 239846.1]
Script to Monitor Current User Activity in the Database [ID 135749.1]
How to Perform a Health Check on the Database [ID 122669.1]
RDBPROD: Monitor Lock Scripts for Oracle Rdb Databases [ID 137026.1]
Script: To Monitor the Usage of Indexes [ID 1033478.6]
Regard
Helios -
Hi
Can any one plz help me with the Tcode for database monitoring and to check the how much space occupies my BI Object in Database...
Regards
AdwardHi........
Apart from those two tcodes :
RSRCACHE OLAP: Cache Monitor
DB02 Tables and Indexes Monitor
DB14 Display DBA Operation Logs
DB16 Display DB Check Results
DB20 Update DB Statistics
Regards,
Debjani......... -
Best Practices for NCS/PI Server and Application Monitoring question
Hello,
I am deploying a virtual instance of Cisco Prime Infrastructure 1.2 (1.2.1.012) on an ESX infrastructure. This is being deployed in an enterprise enviroment. I have questions around the best practices for moniotring this appliance. I am looking to monitor application failures (services down, db issues) and "hardware" (I understand this is a virtual machine, but statistics on the filesystem and CPU/Memory is good).
Firstly, I have enabled via the CLI the snmp-server and set the SNMP trap host destination. I have created a notification receiver for the SNMP traps inside the NCS GUI and enabled the "System" type alarm. This type includes alarms like NCS_DOWN and PI database is down. I am trying to understand what the difference between enabling SNMP-SERVER HOST via the CLI and setting the Notification destination inthe GUI is? Also how can I generate a NCS_DOWN alarm in my lab. Doing NCS stop does not generate any alarms. I have not been able to find much information on how to generate this as a test.
Secondly, how and which processes should I be monitoring from the Management Station? I cannot easily identify the main NCS procsses from the output of ps -ef when logged in the shell as root.
Thanks guys!Amihan_Zerrudo wrote:
1.) What is the cost of having the scope in a <jsp:useBean> tag set to 'session'? I am aware that there are a list of scopes like page, application, etc. and that if i use 'session' my variable will live for as long as that session is alive. (did i get this right?). You should rather look to the functional requirements instead of costs. If the bean need to be session scoped (e.g. maintain the logged in user), then do it so. If it just need to be request scoped (e.g. single page form data), then keep it request scoped.
2.)If the JSP Page where i use that <useBean> is to be accessed hundred of times a day, will it compensate my server resources? Right now i am using the Sun Glassfish Server.It will certainly eat resources. Just supply enough CPU speed and memory to a server. You cannot expect that a webserver running at a Pentium 500MHz with 256MB of memory can flawlessly serve 100 simultaneous users at the same second. But you may expect that it can serve 100 users per 24 hour.
3.) Can you suggest best practice in memory management given the architecture i described above?Just write code so that it doesn't unnecessarily eat memory. Only allocate memory if your application need to do so. You should rather let the hardware depend on the application requirements, not to let the application depend on the hardware specs.
4.)Also, I have implemented connection pooling in my architecture, but my application is to be used by thousands of clients everyday.. Can the Sun Glassfish Server take care of that or will I have to purchase a powerful sever?Glassfish is just an application server software, it is not server hardware. Your concerns are rather hardware related.
Maybe you are looking for
-
DECODE Function In Reports 3.0
Hi, When I use the decode function in a query (Reports 3.0.5.8.0) I receive an error message "Bind Variable Does Not Exist" (ORA-1006). When I remove the decode function from the query, the query compiles fine. All table and column references are exi
-
Cannot Install LV Runtime Engine 7.1
HI, Some of our users are having unusual installatiion problems while installing the LV runtime Engine 7.1.1 on win2k. Our users have installed another application recently and in that process the LV runtime engine was removed from their computer. So
-
PDF in-browser will not show attachments panel
Hi. I'm working with a PDF with attachments. I created it to open with the attachments panel visibile. It works fine except for in Chrome, it shows the PDF in-browser but the attachments panel is not visible. This is causing some problems for our sit
-
DVI out to component in (DVCPro HD)
Repost... Sorry, accidently posted in FCE, would like to ask again here. Other than buying the Matrox MXO, I'm stumped. I need to capture a clients PowerPoint into a FCP HD timeline so that they can see all their transitions, then I'll use Compressor
-
Keyboard lighting at the login screen?
Hi, I have a mid 2011 MBA with 10.7.4. Lion used to have the feature where the keyboard light had its own setting for the login screen. This way I could set it so that the light was on at the login screen and went off right after logging in. After i