dbTalk Databases Forums  

Monitor SQL Statements

comp.databases.sybase comp.databases.sybase


Discuss Monitor SQL Statements in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Guto
 
Posts: n/a

Default Monitor SQL Statements - 04-02-2009 , 08:42 AM






Hi There!
I'm a Informix DBA and I'm starting with SYBASE and I'm searching for
a tool for SQL statements that are running, based on a session, such
like
the Informix command :
onstat -g ses < PID >

where you get the current, and the last parsed SQL statements for a
specific session.

SYBASE have a tool like that?
Preferably a command line tool?

Thanks in advance!
Guto.

Reply With Quote
  #2  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Monitor SQL Statements - 04-02-2009 , 11:20 AM






On Apr 2, 7:42*am, Guto <gutom... (AT) gmail (DOT) com> wrote:
Quote:
Hi There!
I'm a Informix DBA and I'm starting with SYBASE and I'm searching for
a tool for SQL statements that are running, based on a session, such
like
the Informix command :
onstat -g ses < PID

where you get the current, and the last parsed SQL statements for a
specific session.

SYBASE have a tool like that?
Preferably a command line tool?

Thanks in advance!
Guto.
Sybase has 4 database products (ASE, SQL Anywhere, Sybase IQ,
Advantage),
as well as other products, so please take care to specify the product
you are using.

In current versions of ASE, you would use the monSysSQLText or
monProcessSQLText tables.

-bret
'


Reply With Quote
  #3  
Old   
Guto
 
Posts: n/a

Default Re: Monitor SQL Statements - 04-02-2009 , 02:26 PM



On Apr 2, 1:20*pm, Bret_Halford <b... (AT) sybase (DOT) com> wrote:
Quote:
On Apr 2, 7:42*am, Guto <gutom... (AT) gmail (DOT) com> wrote:

Hi There!
I'm a Informix DBA and I'm starting with SYBASE and I'm searching for
a tool for SQL statements that are running, based on a session, such
like
the Informix command :
onstat -g ses < PID

where you get the current, and the last parsed SQL statements for a
specific session.

SYBASE have a tool like that?
Preferably a command line tool?

Thanks in advance!
Guto.

Sybase has 4 database products (ASE, SQL Anywhere, Sybase IQ,
Advantage),
as well as other products, so please take care to specify the product
you are using.

In current versions of ASE, you would use the *monSysSQLText or
monProcessSQLText tables.

-bret
'
Thanks Bret!
I miss this info:
here it goes,
I'm running ASE 12.5.4 in a solaris box.
as per I understood, the monSysSQLText or monProcessSQLText are
availabe only
under ASE 15, isn't it?


Regards,
Guto.


Reply With Quote
  #4  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Monitor SQL Statements - 04-02-2009 , 03:52 PM



On Apr 2, 1:26*pm, Guto <gutom... (AT) gmail (DOT) com> wrote:
Quote:
On Apr 2, 1:20*pm, Bret_Halford <b... (AT) sybase (DOT) com> wrote:



On Apr 2, 7:42*am, Guto <gutom... (AT) gmail (DOT) com> wrote:

Hi There!
I'm a Informix DBA and I'm starting with SYBASE and I'm searching for
a tool for SQL statements that are running, based on a session, such
like
the Informix command :
onstat -g ses < PID

where you get the current, and the last parsed SQL statements for a
specific session.

SYBASE have a tool like that?
Preferably a command line tool?

Thanks in advance!
Guto.

Sybase has 4 database products (ASE, SQL Anywhere, Sybase IQ,
Advantage),
as well as other products, so please take care to specify the product
you are using.

In current versions of ASE, you would use the *monSysSQLText or
monProcessSQLText tables.

-bret
'

Thanks Bret!
I miss this info:
here it goes,
I'm running ASE 12.5.4 in a solaris box.
as per I understood, the monSysSQLText or monProcessSQLText *are
availabe only
under ASE 15, isn't it?

Regards,
Guto.
No, they are available in 12.5.x. If I remember correctly, they
weren't installed by default
in 12.5.x and are in 15.x. See the P&T Guide volume on monitoring,
and look in the
$SYBASE/ASE-*/scripts directory for the installation script.

cheers,
-bret


Reply With Quote
  #5  
Old   
PDreyer
 
Posts: n/a

Default Re: Monitor SQL Statements - 04-03-2009 , 03:12 PM



On Apr 2, 10:52*pm, Bret_Halford <b... (AT) sybase (DOT) com> wrote:
Quote:
On Apr 2, 1:26*pm, Guto <gutom... (AT) gmail (DOT) com> wrote:





On Apr 2, 1:20*pm, Bret_Halford <b... (AT) sybase (DOT) com> wrote:

On Apr 2, 7:42*am, Guto <gutom... (AT) gmail (DOT) com> wrote:

Hi There!
I'm a Informix DBA and I'm starting with SYBASE and I'm searching for
a tool for SQL statements that are running, based on a session, such
like
the Informix command :
onstat -g ses < PID

where you get the current, and the last parsed SQL statements for a
specific session.

SYBASE have a tool like that?
Preferably a command line tool?

Thanks in advance!
Guto.

Sybase has 4 database products (ASE, SQL Anywhere, Sybase IQ,
Advantage),
as well as other products, so please take care to specify the product
you are using.

In current versions of ASE, you would use the *monSysSQLText or
monProcessSQLText tables.

-bret
'

Thanks Bret!
I miss this info:
here it goes,
I'm running ASE 12.5.4 in a solaris box.
as per I understood, the monSysSQLText or monProcessSQLText *are
availabe only
under ASE 15, isn't it?

Regards,
Guto.

No, they are available in 12.5.x. *If I remember correctly, they
weren't installed by default
in 12.5.x and are in 15.x. *See the P&T Guide volume on monitoring,
and look in the
$SYBASE/ASE-*/scripts directory for the installation script.

cheers,
-bret- Hide quoted text -

- Show quoted text -
You can find MDA Installation steps here
http://www.sypron.nl/mda.html


Reply With Quote
  #6  
Old   
schlichr
 
Posts: n/a

Default Re: Monitor SQL Statements - 04-14-2009 , 06:43 AM



On 3 Apr., 22:12, PDreyer <petrus.dre... (AT) gmail (DOT) com> wrote:
Quote:
On Apr 2, 10:52*pm, Bret_Halford <b... (AT) sybase (DOT) com> wrote:





On Apr 2, 1:26*pm, Guto <gutom... (AT) gmail (DOT) com> wrote:

On Apr 2, 1:20*pm, Bret_Halford <b... (AT) sybase (DOT) com> wrote:

On Apr 2, 7:42*am, Guto <gutom... (AT) gmail (DOT) com> wrote:

Hi There!
I'm a Informix DBA and I'm starting with SYBASE and I'm searchingfor
a tool for SQL statements that are running, based on a session, such
like
the Informix command :
onstat -g ses < PID

where you get the current, and the last parsed SQL statements fora
specific session.

SYBASE have a tool like that?
Preferably a command line tool?

Thanks in advance!
Guto.

Sybase has 4 database products (ASE, SQL Anywhere, Sybase IQ,
Advantage),
as well as other products, so please take care to specify the product
you are using.

In current versions of ASE, you would use the *monSysSQLText or
monProcessSQLText tables.

-bret
'

Thanks Bret!
I miss this info:
here it goes,
I'm running ASE 12.5.4 in a solaris box.
as per I understood, the monSysSQLText or monProcessSQLText *are
availabe only
under ASE 15, isn't it?

Regards,
Guto.

No, they are available in 12.5.x. *If I remember correctly, they
weren't installed by default
in 12.5.x and are in 15.x. *See the P&T Guide volume on monitoring,
and look in the
$SYBASE/ASE-*/scripts directory for the installation script.

cheers,
-bret- Hide quoted text -

- Show quoted text -

You can find MDA Installation steps herehttp://www.sypron.nl/mda.html- Zitierten Text ausblenden -

- Zitierten Text anzeigen -
otherwise you can use

1. dbcc traceon(3604) ( to show all output to terminal session )
2. dbcc sqltext(PID) ( to see the active sql - text )

Regards

Rainer



Reply With Quote
  #7  
Old   
Guto
 
Posts: n/a

Default Re: Monitor SQL Statements - 04-15-2009 , 07:53 AM



On Apr 14, 8:43*am, schlichr <rainer.schlich... (AT) unix-db (DOT) org> wrote:
Quote:
On 3 Apr., 22:12, PDreyer <petrus.dre... (AT) gmail (DOT) com> wrote:



On Apr 2, 10:52*pm, Bret_Halford <b... (AT) sybase (DOT) com> wrote:

On Apr 2, 1:26*pm, Guto <gutom... (AT) gmail (DOT) com> wrote:

On Apr 2, 1:20*pm, Bret_Halford <b... (AT) sybase (DOT) com> wrote:

On Apr 2, 7:42*am, Guto <gutom... (AT) gmail (DOT) com> wrote:

Hi There!
I'm a Informix DBA and I'm starting with SYBASE and I'm searching for
a tool for SQL statements that are running, based on a session,such
like
the Informix command :
onstat -g ses < PID

where you get the current, and the last parsed SQL statements for a
specific session.

SYBASE have a tool like that?
Preferably a command line tool?

Thanks in advance!
Guto.

Sybase has 4 database products (ASE, SQL Anywhere, Sybase IQ,
Advantage),
as well as other products, so please take care to specify the product
you are using.

In current versions of ASE, you would use the *monSysSQLText or
monProcessSQLText tables.

-bret
'

Thanks Bret!
I miss this info:
here it goes,
I'm running ASE 12.5.4 in a solaris box.
as per I understood, the monSysSQLText or monProcessSQLText *are
availabe only
under ASE 15, isn't it?

Regards,
Guto.

No, they are available in 12.5.x. *If I remember correctly, they
weren't installed by default
in 12.5.x and are in 15.x. *See the P&T Guide volume on monitoring,
and look in the
$SYBASE/ASE-*/scripts directory for the installation script.

cheers,
-bret- Hide quoted text -

- Show quoted text -

You can find MDA Installation steps herehttp://www.sypron.nl/mda.html-Zitierten Text ausblenden -

- Zitierten Text anzeigen -

otherwise you can use

1. dbcc traceon(3604) ( to show all output to terminal session )
2. dbcc sqltext(PID) *( to see the active sql - text )

Regards

Rainer
Thanks Rainer, I'll check this out!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.