Received: (qmail 22553 invoked from network); 7 Jul 2011 10:50:50 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-85-25-126-90.inaddr.intergenia.de with SMTP; 7 Jul 2011 10:50:45 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 46150E32E78;
 Thu,  7 Jul 2011 11:49:45 -0400 (EDT)
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id jBYkgZ-fFb4J; Thu,  7 Jul 2011 11:49:45 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 83C6EE32DE4;
 Thu,  7 Jul 2011 11:49:01 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 07 Jul 2011 11:48:20 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A55DCE32E17	for <oracle-l@freelists.org>; Thu,  7 Jul 2011 11:48:19 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])	by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)	with ESMTP id 7+zJts2gx+Nm for <oracle-l@freelists.org>;	Thu,  7 Jul 2011 11:48:19 -0400 (EDT)
Received: from mail-gw0-f51.google.com (mail-gw0-f51.google.com [74.125.83.51])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D367EE32D83	for <oracle-l@freelists.org>; Thu,  7 Jul 2011 11:48:11 -0400 (EDT)
Received: by gwj17 with SMTP id 17so560456gwj.10        for <oracle-l@freelists.org>; Thu, 07 Jul 2011 08:48:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=mime-version:in-reply-to:references:date:message-id:subject:from:to         :cc:content-type;        bh=c6BMaiDhjQPJjCf/kcDWh9kq2qK3kGorT/Hy2GZdYhw=;        b=ufNYWn6MlzS0FQQvb2IafqZtVNUE4ZEj9N8R6xigkoT5bVLon0S32EST8+M+YXp61Q         uWbEfzPz3sZBymfPGH1h9jXfJxkoO2o13ZNDL8tl2kYU08BIcqrkLa4xViuDTyC8BTLk         UV/hNFFY08hDjfI5+ZSBAKryss5zpnUEp3lC8=
MIME-Version: 1.0
Received: by 10.236.186.38 with SMTP id v26mr1121993yhm.415.1310053685305; Thu, 07 Jul 2011 08:48:05 -0700 (PDT)
Received: by 10.236.209.98 with HTTP; Thu, 7 Jul 2011 08:48:05 -0700 (PDT)
Received: by 10.236.209.98 with HTTP; Thu, 7 Jul 2011 08:48:05 -0700 (PDT)
In-Reply-To: <CABe10sZV9Cq1Ef_dvJowfpAt=HuPjwp-esu+ux=UV2KQ0gYE2A@mail.gmail.com>
References: <CABe10sZV9Cq1Ef_dvJowfpAt=HuPjwp-esu+ux=UV2KQ0gYE2A@mail.gmail.com>
Date: Thu, 7 Jul 2011 21:18:05 +0530
Message-ID: <CAJsOtB5p6MDx_ow-oO2RZakm9H0D8tjiMAjxLXfyTnO7dF-6Pw@mail.gmail.com>
Subject: Re: SID and Service Name
From: Subodh Deshpande <deshpande.subodh@gmail.com>
To: niall.litchfield@gmail.com
Cc: ORACLE-L <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary=20cf305e28038ca24104a77ca48a
X-archive-position: 37286
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: deshpande.subodh@gmail.com
Precedence: normal
Reply-To: deshpande.subodh@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
--20cf305e28038ca24104a77ca48a
Content-Type: text/plain; charset=ISO-8859-1

Interesting
Which privs has been assigned to the said user

On 7 Jul 2011 19:53, "Niall Litchfield" <niall.litchfield@gmail.com> wrote:

Someone, somewhere asked me if users connecting to a database using SID in
the tnsnames file actually got connected to the SYS$USERS service. I have
lost my note of where I was asked this, but oracle-l seems likely. The
answer is (at least in 11.2 on Windows) yes. I apologize if this is
meaningless to everyone. In the output below SID is my sql prom tnsalias
with SID specified in connect descriptor - niall is the service_name
variant. I've only edited the output for domain name.

SQL >conn niall/niall@sid

NIALL @ sid >select service_name from v$session where sid = (select sid from
v$mystat where rownum = 1);

SERVICE_NAME
----------------------------------------------------------------
SYS$USERS

NIALL @ sid >conn niall/niall@niall
Connected.
NIALL @ niall >select service_name from v$session where sid = (select sid
from v$mystat where rownum = 1);

SERVICE_NAME
----------------------------------------------------------------
niall.domain.name



-- 
Niall Litchfield
Oracle DBA
http://www.orawin.info

--20cf305e28038ca24104a77ca48a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p>Interesting<br>
Which privs has been assigned to the said user<br>
</p>
<p><blockquote type=3D"cite">On 7 Jul 2011 19:53, &quot;Niall Litchfield&qu=
ot; &lt;<a href=3D"mailto:niall.litchfield@gmail.com">niall.litchfield@gmai=
l.com</a>&gt; wrote:<br><br>Someone, somewhere asked me if users connecting=
 to a database using SID in the tnsnames file actually got connected to the=
 SYS$USERS service. I have lost my note of where I was asked this, but orac=
le-l seems likely. The answer is (at least in 11.2 on Windows) yes. I apolo=
gize if this is meaningless to everyone. In the output below SID is my sql =
prom tnsalias with SID specified in connect descriptor - niall is the servi=
ce_name variant. I&#39;ve only edited the output for domain name.=A0<div>

<br></div><div><font face=3D"&#39;courier new&#39;, monospace">SQL &gt;conn=
 niall/niall@sid</font></div><div><font face=3D"&#39;courier new&#39;, mono=
space"><br></font></div><div>
<font face=3D"&#39;courier new&#39;, monospace">NIALL @ sid &gt;select serv=
ice_name from v$session where sid =3D (select sid from v$mystat where rownu=
m =3D 1);</font></div><div><font face=3D"&#39;courier new&#39;, monospace">=
<br>

</font></div><div><font face=3D"&#39;courier new&#39;, monospace">SERVICE_N=
AME</font></div><div><font face=3D"&#39;courier new&#39;, monospace">------=
----------------------------------------------------------</font></div>
<div><font face=3D"&#39;courier new&#39;, monospace">SYS$USERS</font></div>=
<div><font face=3D"&#39;courier new&#39;, monospace"><br></font></div><div>=
<font face=3D"&#39;courier new&#39;, monospace">NIALL @ sid &gt;conn niall/=
niall@niall</font></div>

<div><font face=3D"&#39;courier new&#39;, monospace">Connected.</font></div=
><div><font face=3D"&#39;courier new&#39;, monospace">NIALL @ niall &gt;sel=
ect service_name from v$session where sid =3D (select sid from v$mystat whe=
re rownum =3D 1);</font></div>

<div><font face=3D"&#39;courier new&#39;, monospace"><br></font></div><div>=
<font face=3D"&#39;courier new&#39;, monospace">SERVICE_NAME</font></div><d=
iv><font face=3D"&#39;courier new&#39;, monospace">------------------------=
----------------------------------------</font></div>

<div><font face=3D"&#39;courier new&#39;, monospace"><a href=3D"http://nial=
l.domain.name" target=3D"_blank">niall.domain.name</a>=A0</font><div><br></=
div><div><br clear=3D"all"><br>-- <br>Niall Litchfield<br>Oracle DBA<br>
<a href=3D"http://www.orawin.info" target=3D"_blank">http://www.orawin.info=
</a><br>
</div></div>
</blockquote></p>

--20cf305e28038ca24104a77ca48a--
--
http://www.freelists.org/webpage/oracle-l


