- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I get how long the informix SPL routine or...
Operating System - HP-UX
1753774
Members
6814
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО07-09-2002 06:27 PM
тАО07-09-2002 06:27 PM
How can I get how long the informix SPL routine or SQL statement runs?
How can I get how long the informix SPL routine or SQL statement runs?
rx
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2002 09:40 PM
тАО07-10-2002 09:40 PM
Re: How can I get how long the informix SPL routine or SQL statement runs?
Two different situations :
Situation 1 : You want to know the execution time for spl:xx, you can :
1.1 create a shell yy like this :
echo "execute procedure xx(arg1,arg2,...)"|dbaccess your_db_name
1.2 timex yy
then you can get the answer.
Situation 2 : You want to know the execution time for some sql statements in spl:xx, you can :
2.1 create a small execution file, with cur.c attached, to show out the current timestamp
2.2 add the following clauses after the definition section in you spl yy :
set explain on;
SET DEBUG FILE TO "/tmp/yy.log" WITH APPEND;
TRACE "****************************";
2.3 Show the timestamp before and after the sql staement you want:
system(" cur.exe 'Start ..' >> Leo_c02s.log " );
....
your sql here
....
system(" cur.exe 'Start ..' >> /tmp/yy.log " );
2.4 Then you can figure out how long does your sql statement take.
Hope it helps !!
Regards,
Leo
Situation 1 : You want to know the execution time for spl:xx, you can :
1.1 create a shell yy like this :
echo "execute procedure xx(arg1,arg2,...)"|dbaccess your_db_name
1.2 timex yy
then you can get the answer.
Situation 2 : You want to know the execution time for some sql statements in spl:xx, you can :
2.1 create a small execution file, with cur.c attached, to show out the current timestamp
2.2 add the following clauses after the definition section in you spl yy :
set explain on;
SET DEBUG FILE TO "/tmp/yy.log" WITH APPEND;
TRACE "****************************";
2.3 Show the timestamp before and after the sql staement you want:
system(" cur.exe 'Start ..' >> Leo_c02s.log " );
....
your sql here
....
system(" cur.exe 'Start ..' >> /tmp/yy.log " );
2.4 Then you can figure out how long does your sql statement take.
Hope it helps !!
Regards,
Leo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2002 04:35 AM
тАО07-11-2002 04:35 AM
Re: How can I get how long the informix SPL routine or SQL statement runs?
$ time dbaccess measureware << EOF
> select count(*) from diskinfo;
> EOF
Database selected.
(count(*))
1325365
1 row(s) retrieved.
Database closed.
real 0m0.29s
user 0m0.04s
sys 0m0.03s
> select count(*) from diskinfo;
> EOF
Database selected.
(count(*))
1325365
1 row(s) retrieved.
Database closed.
real 0m0.29s
user 0m0.04s
sys 0m0.03s
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP