Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 02:49 AM
02-11-2004 02:49 AM
CPU Time
I'm using unix shell script , which calls series of Oracle SQL scripts to load many tables.I want to know the exact CPU time for
each SQL query. Can anyone help me in writing the Shell script for this.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 02:55 AM
02-11-2004 02:55 AM
Re: CPU Time
How about the time command, or do you need more specified info.
# man time
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 02:56 AM
02-11-2004 02:56 AM
Re: CPU Time
time <scriptname>
e.g.
# time sleep 1
real 1.0
user 0.0
sys 0.0
man time
Regards,
jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 02:57 AM
02-11-2004 02:57 AM
Re: CPU Time
but i don't think you can time the exact cpu time of the oracle processes this way.
It should be enough to compare though
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 03:13 AM
02-11-2004 03:13 AM
Re: CPU Time
in SQLPLUS
set timing on
gives the command elapsed time.
SET
TIMI[NG] {ON|OFF}
Controls the display of timing statistics. ON displays timing statistics on each SQL command or PL/SQL block run. OFF suppresses timing of each command. For information about the data SET TIMING ON displays, see the Oracle installation and user's manual(s) provided for your operating system. Refer to the TIMING command for information on timing multiple commands
Regards,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 02:53 PM
02-11-2004 02:53 PM
Re: CPU Time
I recently posted a sample client-server report script in: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=433109
That may serve as a starting point.
But I suppose that while you are in SQL, you might as well use SQL to ask Oracle how much CPUtime it recorded for the session!
Hope this helps some,
Hein.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=433109
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 03:17 PM
02-11-2004 03:17 PM
Re: CPU Time
you can find that by
1.Enabling the SQL_TRACE for the instance
Using TKPROF to find out the CPU used seconds for the query.