Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Direct Vs. SQL*net

RE: Direct Vs. SQL*net

From: Warren Kassel <warren.kassel_at_nextjet.com>
Date: Wed, 18 Apr 2001 17:51:48 -0700
Message-ID: <F001.002EC576.20010418172556@fatcity.com>

Just off the top of my head...

If you're on a Unix platform, you can get the process id of the session from v$process (joined to v$session), then grep for that pid from the output of the Unix 'ps' command, then grep again for 'LOCAL=NO'.

-wk

-----Original Message-----
Sent: Wednesday, April 18, 2001 3:31 PM
To: Multiple recipients of list ORACLE-L

I already thought of your suggestion but know that it won't be foolproof; at least for my evironment.

I have a DBLINK that allows my developers to use the SQL*PLUS "COPY" to reference tables "on the local machine". In other words, I'd like a way to discern the difference between

SQL> connect username/password
SQL> connect username/password_at_PROD

when in the first case I'm logged onto the host where "PROD" resides and ORACLE_SID=PROD


dgoulet_at_vicr.com wrote:
>
> Charlie,
>
> Now that's a good question. The best answer I can come up with is to check
> the machine column in V$SESSION. if it matches the server machine name then
> they should be using the beq protocol, I'd think. Otherwise they must be using
> SQL*Net. Wonder if anyone else has a suggestion, Hey Jared, your the guru here
> aren't you?? :-)
>
> Dick Goulet
>
> ____________________Reply Separator____________________
> Subject: Direct Vs. SQL*net
> Author: "Charlie Mengler" <charliem_at_mwh.com>
> Date: 4/18/2001 9:50 AM
>
> How can one determine via code (PL/SQL)
> whether or not the current session is connected
> "directly" (via the Bequeath protocol) or via
> SQL*Net?
>
> The solution needs to work for both V7 & V8.
>
> --
> Charlie Mengler Maintenance Warehouse
> charliem_at_mwh.com 10641 Scripps Summit Ct
> 858-831-2229 San Diego, CA 92131
> The future is here. It is just not evenly distributed.
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Charlie Mengler
> INET: charliem_at_mwh.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Charlie Mengler               Maintenance Warehouse  
charliem_at_mwh.com              10641 Scripps Summit Ct   
858-831-2229                  San Diego, CA 92131    
The future is here. It is just not evenly distributed.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Charlie Mengler
  INET: charliem_at_mwh.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Warren Kassel
  INET: warren.kassel_at_nextjet.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Apr 18 2001 - 19:51:48 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US