dbTalk Databases Forums  

Retrieve remote host from a Stored procedure

comp.databases.oracle.server comp.databases.oracle.server


Discuss Retrieve remote host from a Stored procedure in the comp.databases.oracle.server forum.



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

Default Retrieve remote host from a Stored procedure - 05-30-2007 , 08:54 AM






Hi all,
is it possible to retrieve from a Stored Procedure the remote
host name or address who owns the Session ?
Thanks
Laura


Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Retrieve remote host from a Stored procedure - 05-30-2007 , 09:07 AM






On May 30, 9:54 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:
Quote:
Hi all,
is it possible to retrieve from a Stored Procedure the remote
host name or address who owns the Session ?
Thanks
Laura
What do you mean by "address who owns the Session?"

Do you want the SID and other information related to the remote
session in a distributed transaction?

See the following article and repost with a more specific question.

How do I find distributed queries / transactions (either issued from
or connecting to this instance)? http://www.jlcomp.demon.co.uk/faq/find_dist.html

The following thread may also be of interest:
http://groups.google.com/group/comp....cc7d59 a3abac

HTH -- Mark D Powell --




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

Default Re: Retrieve remote host from a Stored procedure - 05-30-2007 , 09:33 AM



On 30 Mag, 16:07, Mark D Powell <Mark.Pow... (AT) eds (DOT) com> wrote:
Quote:
On May 30, 9:54 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:

Hi all,
is it possible to retrieve from a Stored Procedure the remote
host name or address who owns the Session ?
Thanks
Laura

What do you mean by "address who owns the Session?"

Do you want the SID and other information related to the remote
session in a distributed transaction?

See the following article and repost with a more specific question.

How do I find distributed queries / transactions (either issued from
or connecting to this instance)? http://www.jlcomp.demon.co.uk/faq/find_dist.html

The following thread may also be of interest:http://groups.google.com/group/comp....rver/browse_fr...

HTH -- Mark D Powell --
Hello, thanks for your reply.
Well I'm calling the Stored Procedure from a Java Servlet with Jdbc.
So I neet to know the remote address(or host) of the Servlet (that
launched the Stored Procedure).

Is it possible to do it ?
Thanks
Laura



Reply With Quote
  #4  
Old   
Valentin Minzatu
 
Posts: n/a

Default Re: Retrieve remote host from a Stored procedure - 05-30-2007 , 09:37 AM



On May 30, 10:33 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:
Quote:
On 30 Mag, 16:07, Mark D Powell <Mark.Pow... (AT) eds (DOT) com> wrote:





On May 30, 9:54 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:

Hi all,
is it possible to retrieve from a Stored Procedure the remote
host name or address who owns the Session ?
Thanks
Laura

What do you mean by "address who owns the Session?"

Do you want the SID and other information related to the remote
session in a distributed transaction?

See the following article and repost with a more specific question.

How do I find distributed queries / transactions (either issued from
or connecting to this instance)? http://www.jlcomp.demon.co.uk/faq/find_dist.html

The following thread may also be of interest:http://groups.google.com/group/comp....rver/browse_fr...

HTH -- Mark D Powell --

Hello, thanks for your reply.
Well I'm calling the Stored Procedure from a Java Servlet with Jdbc.
So I neet to know the remote address(or host) of the Servlet (that
launched the Stored Procedure).

Is it possible to do it ?
Thanks
Laura- Hide quoted text -

- Show quoted text -
Do you need to retrieve that information in the same database session
or from a different one?



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

Default Re: Retrieve remote host from a Stored procedure - 05-30-2007 , 09:41 AM



On 30 Mag, 16:07, Mark D Powell <Mark.Pow... (AT) eds (DOT) com> wrote:
Quote:
On May 30, 9:54 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:

Hi all,
is it possible to retrieve from a Stored Procedure the remote
host name or address who owns the Session ?
Thanks
Laura

What do you mean by "address who owns the Session?"

Do you want the SID and other information related to the remote
session in a distributed transaction?

See the following article and repost with a more specific question.

How do I find distributed queries / transactions (either issued from
or connecting to this instance)? http://www.jlcomp.demon.co.uk/faq/find_dist.html

The following thread may also be of interest:http://groups.google.com/group/comp....rver/browse_fr...

HTH -- Mark D Powell --
I have checked your link....it seems that the view v$session is
needed, but I don't have
access to that view....(most likely because I'm logged to oracle as
javauser and not as SYS......)



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

Default Re: Retrieve remote host from a Stored procedure - 05-30-2007 , 10:08 AM



On 30 Mag, 16:37, Valentin Minzatu <valentinminz... (AT) yahoo (DOT) com> wrote:
Quote:
On May 30, 10:33 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:





On 30 Mag, 16:07, Mark D Powell <Mark.Pow... (AT) eds (DOT) com> wrote:

On May 30, 9:54 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:

Hi all,
is it possible to retrieve from a Stored Procedure the remote
host name or address who owns the Session ?
Thanks
Laura

What do you mean by "address who owns the Session?"

Do you want the SID and other information related to the remote
session in a distributed transaction?

See the following article and repost with a more specific question.

How do I find distributed queries / transactions (either issued from
or connecting to this instance)? http://www.jlcomp.demon.co.uk/faq/find_dist.html

The following thread may also be of interest:http://groups.google.com/group/comp....rver/browse_fr...

HTH -- Mark D Powell --

Hello, thanks for your reply.
Well I'm calling the Stored Procedure from a Java Servlet with Jdbc.
So I neet to know the remote address(or host) of the Servlet (that
launched the Stored Procedure).

Is it possible to do it ?
Thanks
Laura- Hide quoted text -

- Show quoted text -

Do you need to retrieve that information in the same database session
or from a different one?- Nascondi testo tra virgolette -

- Mostra testo tra virgolette -
in the same database session (if I understand well: without quitting
the stored procedure)



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

Default Re: Retrieve remote host from a Stored procedure - 05-30-2007 , 10:14 AM



On May 30, 4:41 pm, Laura <f.marchi... (AT) pride (DOT) it> wrote:
Quote:
On 30 Mag, 16:07, Mark D Powell <Mark.Pow... (AT) eds (DOT) com> wrote:





On May 30, 9:54 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:

Hi all,
is it possible to retrieve from a Stored Procedure the remote
host name or address who owns the Session ?
Thanks
Laura

What do you mean by "address who owns the Session?"

Do you want the SID and other information related to the remote
session in a distributed transaction?

See the following article and repost with a more specific question.

How do I find distributed queries / transactions (either issued from
or connecting to this instance)? http://www.jlcomp.demon.co.uk/faq/find_dist.html

The following thread may also be of interest:http://groups.google.com/group/comp....rver/browse_fr...

HTH -- Mark D Powell --

I have checked your link....it seems that the view v$session is
needed, but I don't have
access to that view....(most likely because I'm logged to oracle as
javauser and not as SYS......)- Hide quoted text -

- Show quoted text -
Please look up the SYS_CONTEXT function in your SQL reference manual,
and you won't need access to v$session.

--
Sybrand Bakker
Senior Oracle DBA



Reply With Quote
  #8  
Old   
DA Morgan
 
Posts: n/a

Default Re: Retrieve remote host from a Stored procedure - 05-30-2007 , 10:29 AM



Laura wrote:
Quote:
On 30 Mag, 16:07, Mark D Powell <Mark.Pow... (AT) eds (DOT) com> wrote:
On May 30, 9:54 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:

Hi all,
is it possible to retrieve from a Stored Procedure the remote
host name or address who owns the Session ?
Thanks
Laura
What do you mean by "address who owns the Session?"

Do you want the SID and other information related to the remote
session in a distributed transaction?

See the following article and repost with a more specific question.

How do I find distributed queries / transactions (either issued from
or connecting to this instance)? http://www.jlcomp.demon.co.uk/faq/find_dist.html

The following thread may also be of interest:http://groups.google.com/group/comp....rver/browse_fr...

HTH -- Mark D Powell --

I have checked your link....it seems that the view v$session is
needed, but I don't have
access to that view....(most likely because I'm logged to oracle as
javauser and not as SYS......)
Go to Morgan's Library at www.psoug.org
Scroll down to SYS_CONTEXT.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #9  
Old   
Laura
 
Posts: n/a

Default Re: Retrieve remote host from a Stored procedure - 05-30-2007 , 10:40 AM



On 30 Mag, 17:14, sybrandb <sybra... (AT) gmail (DOT) com> wrote:
Quote:
On May 30, 4:41 pm, Laura <f.marchi... (AT) pride (DOT) it> wrote:





On 30 Mag, 16:07, Mark D Powell <Mark.Pow... (AT) eds (DOT) com> wrote:

On May 30, 9:54 am, Laura <f.marchi... (AT) pride (DOT) it> wrote:

Hi all,
is it possible to retrieve from a Stored Procedure the remote
host name or address who owns the Session ?
Thanks
Laura

What do you mean by "address who owns the Session?"

Do you want the SID and other information related to the remote
session in a distributed transaction?

See the following article and repost with a more specific question.

How do I find distributed queries / transactions (either issued from
or connecting to this instance)? http://www.jlcomp.demon.co.uk/faq/find_dist.html

The following thread may also be of interest:http://groups.google.com/group/comp....rver/browse_fr...

HTH -- Mark D Powell --

I have checked your link....it seems that the view v$session is
needed, but I don't have
access to that view....(most likely because I'm logged to oracle as
javauser and not as SYS......)- Hide quoted text -

- Show quoted text -

Please look up the SYS_CONTEXT function in your SQL reference manual,
and you won't need access to v$session.

--
Sybrand Bakker
Senior Oracle DBA- Nascondi testo tra virgolette -

- Mostra testo tra virgolette -
Thanks for the clue.....I have found it !



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.