Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Direct Vs. SQL*net
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).Received on Wed Apr 18 2001 - 14:53:09 CDT
![]() |
![]() |