HP loadrunner report for database performance
Hi Team,
client testing team gave us a report for database, from load runner and asked if the database load testing parameters is correct on the basis of below mentioned 4 parameters. I have also attached report here for your reference. please help me to analyze and let me know what is the minimum and maximum value for these parameters. Thanks.
bytes received via SQL*Net from client
bytes sent via SQL*Net to client
CPU used by this session
SQL*Net roundtrips to/from client
Scale
Measurement
Graph Minimum
Graph Average
Graph Maximum
Graph Std. Deviation
1.00E-06
bytes received via SQL*Net from client (V$SYSSTAT 1/RM_Q) (absolute):
70175856636
71089487223
71998425926
622767259.2
1.00E-06
bytes sent via SQL*Net to client (V$SYSSTAT 1/RM_Q) (absolute):
70903049507
71974218479
73016616305
721035721.7
1.00E-06
CPU used by this session (V$SYSSTAT 1/RM_Q) (absolute):
22273715.16
22679322.52
23057004.4
265680.491
1.00E-06
SQL*Net roundtrips to/from client (V$SYSSTAT 1/RM_Q) (absolute):
76493132.84
78422403.32
80169678.32
1244089.29
Regards,
ankit
You can Generate AWR(Automatic Workload Repository) and ADDM(Automatic Database Diagnostic Monitor) Reports to see the performance.
They are similar to staspack report with more information.
Similar Messages
-
10g grid control. minimum DB privileges for database performance tab?
database -> performance tab -> log into database.
what are the minimum privileges needed for this? I normally use DBA privs. However, I need to give access to non-dbas. When I try to log in with their account, it says see the help. I have been hunting through the help, but can't find anything about this.This article may be of use: http://dbastreet.com/blog/?tag=grid-control
If you "grant select any table" (Query tables, views, or mviews in any schema) to the role oem_monitor you get what you want. Maybe an overkill but thats what I can think of now.
Eric -
Need link for database performance monitoring tool
Hi,
Can anybody give link to a download free database performance monitoring tool.
Thanksi am using oracle 10.1.0
and any link which can told what thing need to check
to make sure good performance.
Thanks
Message was edited by:
Umesh Sharma -
Reports for Database metriks: what is possible?
Hello,
we are using the GridControl since several months. For our databases we are collecting several metrics and keep them for 365 days. I know how to look up the metrics for historic data (e.g. the first week in january), but for reporting purposes I need something like this:
=> a report which contains the metriks CPU, User I/O and System I/O of the week before the actual week (and of the complete month before the current month, and of the year before the
current year)
What the report should show is some kind of grafical curve which shows: the values of the metrics have increased, decreased or stayed the some
When looking into the report tab of the GridControl I find all kinds of predefined reports - but not exactly what I'm looking for...
Any help will be appreciated
Rgds
JHPlease read below tutorials for creating custom reports:
http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b40007/views.htm#BACCEIBI
Metalink Notes:
Generic Issues With Custom Reports [ID 758293.1]
Examples: Creating Custom Reports [ID 831243.1]
Grid Control Reports FAQ [ID 460894.1]
Regards
Rajesh -
Custom Report For Database Availability
SELECT target_name,
target_type,
SUM (up_time) up_time,
SUM (down_time) down_time,
SUM (blackout_time) blackout_time,
TRUNC( SUM (up_time)
/ (SUM (NVL (up_time, 1)) + SUM (NVL (down_time, 1)))
* 100)
availability_pct
FROM ( SELECT target_name,
target_type,
SUM(TRUNC( (NVL (end_timestamp, SYSDATE) - start_timestamp)
* 24))
total_hours,
CASE availability_status
WHEN 'Target Down'
THEN
0
WHEN 'Target Up'
THEN
0
WHEN 'Blackout'
THEN
SUM(TRUNC( (NVL (end_timestamp, SYSDATE)
- start_timestamp)
* 24))
END
blackout_time,
CASE availability_status
WHEN 'Target Down'
THEN
0
WHEN 'Target Up'
THEN
SUM(TRUNC( (NVL (end_timestamp, SYSDATE)
- start_timestamp)
* 24))
WHEN 'Blackout'
THEN
0
END
up_time,
CASE availability_status
WHEN 'Target Down'
THEN
SUM(TRUNC( (NVL (end_timestamp, SYSDATE)
- start_timestamp)
* 24))
WHEN 'Target Up'
THEN
0
WHEN 'Blackout'
THEN
0
END
down_time,
availability_status
FROM MGMT$AVAILABILITY_HISTORY
WHERE target_type IN ('oracle_database', 'rac_database')
AND availability_status IN
('Target Down', 'Target Up', 'Blackout')
GROUP BY target_name, target_type, availability_status
ORDER BY target_name, availability_status)
GROUP BY target_name, target_type
ORDER BY target_name
Above is the Query that i'm using for the element "Table from SQL" but getting the error "Error rendering element. Exception: ORA-01476: divisor is equal to zero "
Can anyone please help me with fixing this report.
Thanks
Edited by: 822424 on Aug 22, 2011 8:27 AM
Edited by: 822424 on Aug 22, 2011 8:27 AMThe error says that somewhere in you statement you are using a value 0 as an divisor.
So A / B where B = 0
Try to debug you SQL statement to make sure you will never use the value 0 as divisor.
Once you corrected your statement, your report will work fine
Rob
http://oemgc.wordpress.com -
Need the report for database fragmentation
HI,
Is there any script to get database defragmentation report
ThanksHi;
Please also check:
http://www.orafaq.com/node/1936
Script to Report Extents and Contiguous Free Space [ID 162994.1]
Script to Report Tablespace Free and Fragmentation [ID 1019709.6]
Regard
Helios -
Standard ABAP report for XI performance monitoring?
Hi All,
Is there any standard ABAP report that can be run in ECC, that would provide summary of which interfaces(namespaces) ran over the 24 hour period in a graphical view.
Regards,
XIerHi,
Performance tuning :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/489f5844-0c01-0010-79be-acc3b52250fd
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/defd5544-0c01-0010-ba88-fd38caee02f7?prtmode=navigate
Performance Tuning Checks in SAP Exchange Infrastructure(XI): Part-III
REgards
Seshagiri -
Graphical Reports for Database Health Check or Database Statictics
Hello
we are using oracle 10g on Solaris.
Is there a way I can get the Database health check or database statictics report in graphical form like to represent the growth of database (in a week or month), log size etc..
ThanksYou'll have to develop your own method/application/script as per your requirement. To some extent Enterprise manager may help you but I think this is not your requirement.
-
Loadrunner 12 for Mobile Performance Testing
I need to know does HP Load runner or UFT supports telecom protocols such as
MML
SMPP
DCC
SFTP
SOAP
can it support telecom apps
SMS
MMS
testing calls etc.. If yes then how?Hi Marc,
Have a look at tx. R3AR2 / R3AR3 / R3AR4 to load data from CRM to the CDB (and further to the mobile clients). You should be able to schedule the creation of such data loads also as a job: e.g. if you define a request for 1 BP and start this every 3 seconds, this would be equivalent to a BP change every 3 seconds. The same is true for sales orders or activities.
An alternative would be to use the ASCII Adapter (see help.sap.com) on this to mass-generate also BDocs.
I am not a Windows / network guy, so I cannot say how to measure performance here. But nevertheless you should have a look at commstation behaviour and also client behaviour if you execute such tests, as esp. client data processing is taking very long times if there is too many data sent to the clients.
Hope this helps,
Kai -
Hi: I'm analyzing this STATSPACK report: it is "volume test" on our UAT server, so most input is from 'bind variables'. Our shared pool is well utilized in oracle. Oracle redo logs is not appropriately configured on this server, as in 'Top 5 wait events' there are 2 for redos.
I need to know what else information can be dig-out from 'foreground wait events' & 'background wait events', and what can assist us to better understanding, in combination of 'Top 5 wait event's, that how the server/test went? it could be overwelming No. of wait events, so appreciate any helpful diagnostic or analysis. Database is oracle 11.2.0.4 upgraded from 11.2.0.3, on IBM AIX power system 64bit, level 6.x
STATSPACK report for
Database DB Id Instance Inst Num Startup Time Release RAC
~~~~~~~~ ----------- ------------ -------- --------------- ----------- ---
700000XXX XXX 1 22-Apr-15 12:12 11.2.0.4.0 NO
Host Name Platform CPUs Cores Sockets Memory (G)
~~~~ ---------------- ---------------------- ----- ----- ------- ------------
dXXXX_XXX AIX-Based Systems (64- 2 1 0 16.0
Snapshot Snap Id Snap Time Sessions Curs/Sess Comment
~~~~~~~~ ---------- ------------------ -------- --------- ------------------
Begin Snap: 5635 22-Apr-15 13:00:02 114 4.6
End Snap: 5636 22-Apr-15 14:00:01 128 8.8
Elapsed: 59.98 (mins) Av Act Sess: 0.6
DB time: 35.98 (mins) DB CPU: 19.43 (mins)
Cache Sizes Begin End
~~~~~~~~~~~ ---------- ----------
Buffer Cache: 2,064M Std Block Size: 8K
Shared Pool: 3,072M Log Buffer: 13,632K
Load Profile Per Second Per Transaction Per Exec Per Call
~~~~~~~~~~~~ ------------------ ----------------- ----------- -----------
DB time(s): 0.6 0.0 0.00 0.00
DB CPU(s): 0.3 0.0 0.00 0.00
Redo size: 458,720.6 8,755.7
Logical reads: 12,874.2 245.7
Block changes: 1,356.4 25.9
Physical reads: 6.6 0.1
Physical writes: 61.8 1.2
User calls: 2,033.7 38.8
Parses: 286.5 5.5
Hard parses: 0.5 0.0
W/A MB processed: 1.7 0.0
Logons: 1.2 0.0
Executes: 801.1 15.3
Rollbacks: 6.1 0.1
Transactions: 52.4
Instance Efficiency Indicators
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 99.98 Optimal W/A Exec %: 100.00
Library Hit %: 99.77 Soft Parse %: 99.82
Execute to Parse %: 64.24 Latch Hit %: 99.98
Parse CPU to Parse Elapsd %: 53.15 % Non-Parse CPU: 98.03
Shared Pool Statistics Begin End
Memory Usage %: 10.50 12.79
% SQL with executions>1: 69.98 78.37
% Memory for SQL w/exec>1: 70.22 81.96
Top 5 Timed Events Avg %Total
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time
CPU time 847 50.2
enq: TX - row lock contention 4,480 434 97 25.8
log file sync 284,169 185 1 11.0
log file parallel write 299,537 164 1 9.7
log file sequential read 698 16 24 1.0
Host CPU (CPUs: 2 Cores: 1 Sockets: 0)
~~~~~~~~ Load Average
Begin End User System Idle WIO WCPU
1.16 1.84 19.28 14.51 66.21 1.20 82.01
Instance CPU
~~~~~~~~~~~~ % Time (seconds)
Host: Total time (s): 7,193.8
Host: Busy CPU time (s): 2,430.7
% of time Host is Busy: 33.8
Instance: Total CPU time (s): 1,203.1
% of Busy CPU used for Instance: 49.5
Instance: Total Database time (s): 2,426.4
%DB time waiting for CPU (Resource Mgr): 0.0
Memory Statistics Begin End
~~~~~~~~~~~~~~~~~ ------------ ------------
Host Mem (MB): 16,384.0 16,384.0
SGA use (MB): 7,136.0 7,136.0
PGA use (MB): 282.5 361.4
% Host Mem used for SGA+PGA: 45.3 45.8
Foreground Wait Events DB/Inst: XXXXXs Snaps: 5635-5636
-> Only events with Total Wait Time (s) >= .001 are shown
-> ordered by Total Wait Time desc, Waits desc (idle events last)
Avg %Total
%Tim Total Wait wait Waits Call
Event Waits out Time (s) (ms) /txn Time
enq: TX - row lock contentio 4,480 0 434 97 0.0 25.8
log file sync 284,167 0 185 1 1.5 11.0
Disk file operations I/O 8,741 0 4 0 0.0 .2
direct path write 13,247 0 3 0 0.1 .2
db file sequential read 6,058 0 1 0 0.0 .1
buffer busy waits 1,800 0 1 1 0.0 .1
SQL*Net more data to client 29,161 0 1 0 0.2 .1
direct path read 7,696 0 1 0 0.0 .0
db file scattered read 316 0 1 2 0.0 .0
latch: shared pool 144 0 0 2 0.0 .0
CSS initialization 30 0 0 3 0.0 .0
cursor: pin S 10 0 0 9 0.0 .0
row cache lock 41 0 0 2 0.0 .0
latch: row cache objects 19 0 0 3 0.0 .0
log file switch (private str 8 0 0 7 0.0 .0
library cache: mutex X 28 0 0 2 0.0 .0
latch: cache buffers chains 54 0 0 1 0.0 .0
latch free 290 0 0 0 0.0 .0
control file sequential read 1,568 0 0 0 0.0 .0
log file switch (checkpoint 4 0 0 6 0.0 .0
direct path sync 8 0 0 3 0.0 .0
latch: redo allocation 60 0 0 0 0.0 .0
SQL*Net break/reset to clien 34 0 0 1 0.0 .0
latch: enqueue hash chains 45 0 0 0 0.0 .0
latch: cache buffers lru cha 7 0 0 2 0.0 .0
latch: session allocation 5 0 0 1 0.0 .0
latch: object queue header o 6 0 0 1 0.0 .0
ASM file metadata operation 30 0 0 0 0.0 .0
latch: In memory undo latch 15 0 0 0 0.0 .0
latch: undo global data 8 0 0 0 0.0 .0
SQL*Net message from client 6,362,536 0 278,225 44 33.7
jobq slave wait 7,270 100 3,635 500 0.0
SQL*Net more data from clien 7,976 0 15 2 0.0
SQL*Net message to client 6,362,544 0 8 0 33.7
Background Wait Events DB/Inst: XXXXXs Snaps: 5635-5636
-> Only events with Total Wait Time (s) >= .001 are shown
-> ordered by Total Wait Time desc, Waits desc (idle events last)
Avg %Total
%Tim Total Wait wait Waits Call
Event Waits out Time (s) (ms) /txn Time
log file parallel write 299,537 0 164 1 1.6 9.7
log file sequential read 698 0 16 24 0.0 1.0
db file parallel write 9,556 0 13 1 0.1 .8
os thread startup 146 0 10 70 0.0 .6
control file parallel write 2,037 0 2 1 0.0 .1
Log archive I/O 35 0 1 30 0.0 .1
LGWR wait for redo copy 2,447 0 0 0 0.0 .0
db file async I/O submit 9,556 0 0 0 0.1 .0
db file sequential read 145 0 0 2 0.0 .0
Disk file operations I/O 349 0 0 0 0.0 .0
db file scattered read 30 0 0 4 0.0 .0
control file sequential read 5,837 0 0 0 0.0 .0
ADR block file read 19 0 0 4 0.0 .0
ADR block file write 5 0 0 15 0.0 .0
direct path write 14 0 0 2 0.0 .0
direct path read 3 0 0 7 0.0 .0
latch: shared pool 3 0 0 6 0.0 .0
log file single write 56 0 0 0 0.0 .0
latch: redo allocation 53 0 0 0 0.0 .0
latch: active service list 1 0 0 3 0.0 .0
latch free 11 0 0 0 0.0 .0
rdbms ipc message 314,523 5 57,189 182 1.7
Space Manager: slave idle wa 4,086 88 18,996 4649 0.0
DIAG idle wait 7,185 100 7,186 1000 0.0
Streams AQ: waiting for time 2 50 4,909 ###### 0.0
Streams AQ: qmn slave idle w 129 0 3,612 28002 0.0
Streams AQ: qmn coordinator 258 50 3,612 14001 0.0
smon timer 43 2 3,605 83839 0.0
pmon timer 1,199 99 3,596 2999 0.0
SQL*Net message from client 17,019 0 31 2 0.1
SQL*Net message to client 12,762 0 0 0 0.1
class slave wait 28 0 0 0 0.0
thank you very much!Hi: just know it now: it is a large amount of 'concurrent transaction' designed in this "Volume Test" - to simulate large incoming transaction volme, so I guess wait in eq:TX - row is expected.
The fact: (1) redo logs at uat server is known to not well-tune for configurations (2) volume test slow 5%, however data amount in its test is kept the same by each time import production data, by the team. So why it slowed 5% this year?
The wait histogram is pasted below, any one interest to take a look? any ideas?
Wait Event Histogram DB/Inst: XXXX/XXXX Snaps: 5635-5636
-> Total Waits - units: K is 1000, M is 1000000, G is 1000000000
-> % of Waits - column heading: <=1s is truly <1024ms, >1s is truly >=1024ms
-> % of Waits - value: .0 indicates value was <.05%, null is truly 0
-> Ordered by Event (idle events last)
Total ----------------- % of Waits ------------------
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
ADR block file read 19 26.3 5.3 10.5 57.9
ADR block file write 5 40.0 60.0
ADR file lock 6 100.0
ARCH wait for archivelog l 14 100.0
ASM file metadata operatio 30 100.0
CSS initialization 30 100.0
Disk file operations I/O 9090 97.2 1.4 .6 .4 .2 .1 .1
LGWR wait for redo copy 2447 98.5 .5 .4 .2 .2 .2 .1
Log archive I/O 35 40.0 8.6 25.7 2.9 22.9
SQL*Net break/reset to cli 34 85.3 8.8 5.9
SQL*Net more data to clien 29K 99.9 .0 .0 .0 .0 .0
buffer busy waits 1800 96.8 .7 .7 .6 .3 .4 .5
control file parallel writ 2037 90.7 5.0 2.1 .8 1.0 .3 .1
control file sequential re 7405 100.0 .0
cursor: pin S 10 10.0 90.0
db file async I/O submit 9556 99.9 .0 .0 .0
db file parallel read 1 100.0
db file parallel write 9556 62.0 32.4 1.7 .8 1.5 1.3 .1
db file scattered read 345 72.8 3.8 2.3 11.6 9.0 .6
db file sequential read 6199 97.2 .2 .3 1.6 .7 .0 .0
direct path read 7699 99.1 .4 .2 .1 .1 .0
direct path sync 8 25.0 37.5 12.5 25.0
direct path write 13K 97.8 .9 .5 .4 .3 .1 .0
enq: TX - row lock content 4480 .4 .7 1.3 3.0 6.8 12.3 75.4 .1
latch free 301 98.3 .3 .7 .7
latch: In memory undo latc 15 93.3 6.7
latch: active service list 1 100.0
latch: cache buffers chain 55 94.5 3.6 1.8
latch: cache buffers lru c 9 88.9 11.1
latch: call allocation 6 100.0
latch: checkpoint queue la 3 100.0
latch: enqueue hash chains 45 97.8 2.2
latch: messages 4 100.0
latch: object queue header 7 85.7 14.3
latch: redo allocation 113 97.3 1.8 .9
latch: row cache objects 19 89.5 5.3 5.3
latch: session allocation 5 80.0 20.0
latch: shared pool 147 90.5 1.4 2.7 1.4 .7 1.4 2.0
latch: undo global data 8 100.0
library cache: mutex X 28 89.3 3.6 3.6 3.6
log file parallel write 299K 95.6 2.6 1.0 .4 .3 .2 .0
log file sequential read 698 29.5 .1 4.6 46.8 18.9
log file single write 56 100.0
log file switch (checkpoin 4 25.0 50.0 25.0
log file switch (private s 8 12.5 37.5 50.0
log file sync 284K 93.3 3.7 1.4 .7 .5 .3 .1
os thread startup 146 100.0
row cache lock 41 85.4 9.8 2.4 2.4
DIAG idle wait 7184 100.0
SQL*Net message from clien 6379K 86.6 5.1 2.9 1.3 .7 .3 2.8 .3
SQL*Net message to client 6375K 100.0 .0 .0 .0 .0 .0 .0
Wait Event Histogram DB/Inst: XXXX/xxxx Snaps: 5635-5636
-> Total Waits - units: K is 1000, M is 1000000, G is 1000000000
-> % of Waits - column heading: <=1s is truly <1024ms, >1s is truly >=1024ms
-> % of Waits - value: .0 indicates value was <.05%, null is truly 0
-> Ordered by Event (idle events last)
Total ----------------- % of Waits ------------------
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
SQL*Net more data from cli 7976 99.7 .1 .1 .0 .1
Space Manager: slave idle 4086 .1 .2 .0 .0 .3 3.2 96.1
Streams AQ: qmn coordinato 258 49.2 .8 50.0
Streams AQ: qmn slave idle 129 100.0
Streams AQ: waiting for ti 2 50.0 50.0
class slave wait 28 92.9 3.6 3.6
jobq slave wait 7270 .0 100.0
pmon timer 1199 100.0
rdbms ipc message 314K 10.3 7.3 39.7 15.4 10.6 5.3 8.2 3.3
smon timer 43 100.0 -
How to Report on transactions performed in SRM_MDM catalog (SRM5 MDM2)
What is the recommended way to do reporting for transactions performed INSIDE SRM_MDM catalog ( SRM5, MDM2.0)
Users inside SRM_MDM catalog can search for and select Product ABC and u201Ccompareu201D between 2 or more suppliers.
Where do I get reporting (Data Manager , syndicator?)
Is it possible to get reporting of the shopping cart (MDM catalog). I choose Supplier X at price $12 vs Supplier Y at price $11 for product ABC. Were trying to find out how many times users choose a higher price for a product instead of a lower price for the same product.
By the time i transfer the Cart to SRM the selection has already been made and i cannot report on it...
Option use BI to run report in MDM catalog..?
cheers
alex
Edited by: Alex Waiyaki on Aug 11, 2010 5:24 PMHi Alex.
This was a really a good initiative of bringing this topic into this forum.Integrating SRM-MDM Catalog to BI for reporting purposes.
But this functionality is not offered as a standard. Also SAP has to come up with such innovations in the future.
I can think of some workaround to achieve your functionality(but not 100%)
You can achieve this by using Shopping List* functionality provided in the SRM-MDM Catalog.
You can create your own shopping list and before you transfer items to SRM, you can push those data to Shopping List, so that
you can have an entry of items which you are transferring to SRM. So now you can integrate MDM and BI to bring up an analytical report based on the item which is transferred using Catalog.
One usecase which is missing here is "How many times a person is shopping the same item" which couldn't be achieved from SRM-MDM Catalog and MDM side. But could achieve it from SRM end. You can write this logic in the BADI when the data is transferred back to SRM.
Hope it give you a some idea.
*Shopping List = Favourites
Thanks
Bala -
How to report database performance to upper management?
Hello all.
I am looking for a way to report database performance to upper management. I'll start by giving you an overview of our team structure. I manage a team of various roles: Level 2 support specialists, configuration managers, and DBAs - we are dubbed the
"Production Support Team". I report directly to the VP of Software Development who oversees the Design, DEV, and QA, team managers. This means that our team, Production Support, can be considered a peer team of Design, DEV, and QA.
The manager of each team compiles metrics from their team members and reviews them on a weekly basis to ensure we are headed in the right direction. We then take our metrics, and distill them down into a few key metrics that we then report to the VP
of Software Development. Those metrics are easy tom compile for the L2 support roles (number of tickets escalated, number closed, etc.). However, I've been struggling with how to report DBA performance for a long time. Every time I start
to compile numbers, I end up with tons of things that are great for a DBA, but don't mean much to upper management. Does anyone have any suggestions. Surely I'm not the only person that has had this issue?
I'd be happy to provide more info if needed. Thanks!
Clintare you using an RTF template ?
in the RTF template you need to use this syntax for the HTML enabled field
<?html2fo:MOSC_COMMENTS?>
instead of <?MOSC_COMMENTS?> -
Configure logshipping for report server database
Hi All,
Could some one please let me know the steps to be followed to configure logshipping for report server databases.
Thanks in Advance,
Regards, KranthiHi Kranthi,
Based on my understanding, you want to know how to change the roles between primary server and secondary server when primary server goes down. Also you want to know when you should install reporting service on secondary to make sure reporting service could
be used by application team.
When primary server goes down, you should manually fail over to the secondary server and make it your new primary server. Before changing roles between primary server and secondary server, you should initial role change. For more information, please refer
to this link: http://msdn.microsoft.com/en-us/library/ms178117.aspx.
Besides, considering lots of time of reporting service installation and downtime during failover, I recommend you to install reporting service on secondary before configuring log shipping. When application team want to use reporting service with reportserver
database after you performing fail over to the secondary server, you can follow bellow steps to reset the database which will be used by reporting service:
Open Reporting Services Configuration Manager\Database.
Click Change database in the Current Report Server Database section.
On Action page, check Choose an existing report server database box. Click Next.
On Database Server page, type the secondary sever name then connect to it. Click Next.
On Database page, select the reportserver database from the drop-down menu of Report Server Database. Click Next.
Set the credentials, then click Finish on Progress and Finish page.
If you have any questions, please feel free to ask.
Best regards,
Qiuyun Yu -
Auto-Generate mail for database performace reporting.
Hello,
i have many server to keep an eye on for maintenance but, now the number for it is growing day by day. Its difficult for me to keep a watch on each in detail. So I have an idea to implement.
I want to make a script which will auto generate a mail from the server & send it to my email id with all the details of database. Basically performance related details.+
Is it possible to do so ???? I know how to send a mail with attachment, the code i will use is given below.+
please suggest me how can i attach my performance tuning queries output & get those things in my mail on a daily basis......
thanks in advance .....
DECLARE
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'test subject';
v_Mail_Host VARCHAR2(30) := 'mail.mycompany.com';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
utl_smtp.Data(v_Mail_Conn,
'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
'From: ' || v_From || crlf ||
'Subject: '|| v_Subject || crlf ||
'To: ' || v_Recipient || crlf ||
'MIME-Version: 1.0'|| crlf || -- Use MIME mail standard
'Content-Type: multipart/mixed;'|| crlf ||
' boundary="-----SECBOUND"'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
'Content-Transfer_Encoding: 7bit'|| crlf ||
crlf ||
'some message text'|| crlf || -- Message body
'more message text'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
' name="excel.csv"'|| crlf ||
'Content-Transfer_Encoding: 8bit'|| crlf ||
'Content-Disposition: attachment;'|| crlf ||
' filename="excel.csv"'|| crlf ||
crlf ||
'CSV,file,attachement'|| crlf || -- Content of attachment
crlf ||
'-------SECBOUND--' -- End MIME mail
utl_smtp.Quit(v_mail_conn);
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;
/I like your script idea.
You can spool output to a file and mail the file to yourself.
What OS are you running?
On linux a simple starter script would look like this:
#!/bin/bash
echo `date`
# Set the Environmental variable for TESTDB instance
. /u01/app/oracle/dba_tool/env/TESTDB.env
$ORACLE_HOME/bin/sqlplus -s system/<PASSWORD> <<EOF
@/u01/app/oracle/dba_tool/TESTDB/quickaudit
EOF
echo `date`
mailx -s "Check database on TESTDB" [email protected] < /tmp/quickaudit.lst
----------------------sample ENV file--------------------------------------
ORACLE_BASE=/u01/app/oracle
ULIMIT=unlimited
ORACLE_SID=TESTDB
export ORACLE_TERM=xterm
ORACLE_HOME=$ORACLE_BASE/product/11.2.0
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
LIBPATH=$LD_LIBRARY_PATH:/usr/lib
TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:
export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
export ORACLE_HOME
export LIBPATH LD_LIBRARY_PATH ORA_NLS33
export TNS_ADMIN
export PATH
--------------------Starter reporting script--------------------------------------------------
SET ECHO OFF
SET TERMOUT OFF
REM Revisions:
REM Date ID Version Description
REM -------- -- ------- ----------------------------------------------------|
REM 10/07/05 1.0 Script to check for database issues
SPOOL /tmp/quickaudit.lst
SELECT SYSDATE FROM DUAL;
SHOW USER
SET TERMOUT ON
SET VERIFY OFF
SET FEEDBACK ON
PROMPT
PROMPT Checking database name and archive mode
PROMPT
column NAME format A9
column LOG_MODE format A12
SELECT NAME,CREATED, LOG_MODE FROM V$DATABASE;
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking database versions
PROMPT
column BANNER format A64
select * from v$version;
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking control file(s)
PROMPT
column STATUS format a7
column NAME format a68
column IS_RECOVERY_DEST_FILE format a3
set linesize 110
SELECT * FROM V$CONTROLFILE;
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking redo logs and group(s)
PROMPT
column member format a70
set linesize 110
set pagesize 30
SELECT group#, member FROM v$logfile;
PROMPT
PROMPT -----------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking freespace by tablespace
PROMPT
column dummy noprint
column pct_used format 999.9 heading "%|Used"
column name format a16 heading "Tablespace Name"
column bytes format 9,999,999,999,999 heading "Total Bytes"
column used format 99,999,999,999 heading "Used"
column free format 999,999,999,999 heading "Free"
break on report
compute sum of bytes on report
compute sum of free on report
compute sum of used on report
set termout off
set pagesize 40
select a.tablespace_name name,
b.tablespace_name dummy,
sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ) bytes,
sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ) -
sum(a.bytes)/count( distinct b.file_id ) used,
sum(a.bytes)/count( distinct b.file_id ) free,
100 * ( (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) -
(sum(a.bytes)/count( distinct b.file_id ) )) /
(sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) pct_used
from sys.dba_free_space a, sys.dba_data_files b
where a.tablespace_name = b.tablespace_name
group by a.tablespace_name, b.tablespace_name;
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking for invalid objects
PROMPT -
Daily report for user sessions in oracle10g database
I would like to genarate the daily report for user sessions in oracle10g database
daily report of how many of sessions present in oracle database for each userThanks for link ( I know you always post the oracle document link here)
But I am expecting scripts( someting like logon trigger and logg off trigger) to genarate the user session report.
Maybe you are looking for
-
Custom Report Layout in APEX 3.0 PDF
How much freedom do we have when developing a custom report layout using BI Publisher when we create the template file using the Word XML add-on? Why I am asking is, I am trying to replicate several Crystal based reports that use multiple lines of fo
-
Unnecessary extra page in adobe
hi sap experts, just want to ask help from you. im doing an adobe form, i have 1 master page and 1 body page. when i preview i have this extra blank page that contents my master page. but the content field is already blank. what should i need to do t
-
MI20 Stock Data differs from MB52
Hi Gurus, Here is the scenario: As always we have performed the Annual Inventry count . We create Inventory with MI31, enter the count with MI04 and post difference with MI20 with the required approval authorization. The issue is that in most of the
-
SoundTrack Pro 2.0.2 Beachballs on File/Open
I've recently upgraded a Mac Pro running Final Cut Studio HD from OS X 10.5 to 10.6. All the software updates are installed and Final Cut Studio has been reinstalled. The only application still giving problems is SoundTrack Pro. It loads fine, but hi
-
In AI CS6 where is the Hide Artwork Outside Artboard command?
Using AI CS6, I am trying to hide artwork that extends beyond the artboard, but I cannot find the command in any menu. Where is it?