Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 15566 invoked from network); 10 Sep 2007 14:46:57 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 10 Sep 2007 14:46:54 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 038CF73D862;
 Mon, 10 Sep 2007 15:08:11 -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 27792-04-2; Mon, 10 Sep 2007 15:08:10 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 23FAB73D614;
 Mon, 10 Sep 2007 15:08:10 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 10 Sep 2007 14:23:38 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C4EC773C76C
 for <oracle-l@freelists.org>; Mon, 10 Sep 2007 14:23:38 -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 18629-03 for <oracle-l@freelists.org>;
 Mon, 10 Sep 2007 14:23:38 -0400 (EDT)
Received: from Jaxsmtp01.crowley.com (outbound.crowley.com [12.24.152.45])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7DE4C73BAEF
 for <oracle-l@freelists.org>; Mon, 10 Sep 2007 14:23:12 -0400 (EDT)
Received: from JAX-MBH-01.crowley.com ([10.104.0.85]) by Jaxsmtp01.crowley.com with Microsoft SMTPSVC(5.0.2195.6713);
	 Mon, 10 Sep 2007 14:27:33 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7F3D8.412ED458"
Subject: RE: SQL*Plus Client on Windows
Date: Mon, 10 Sep 2007 14:27:32 -0400
Message-ID: <02C2FA1C9961934BB6D16DE35707B27B03575AE9@jax-mbh-01.jax.crowley.com>
In-Reply-To: <bf46380709101025y3a8e70c8q4b666185b3facc89@mail.gmail.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: SQL*Plus Client on Windows
From: <Joel.Patterson@crowley.com>
To: <jkstill@gmail.com>,
 <tanel.poder.003@mail.ee>
Cc: <Michael.Coll-Barth@verizonwireless.com>,
 <oracle-l@freelists.org>
X-OriginalArrivalTime: 10 Sep 2007 18:27:33.0936 (UTC) FILETIME=[416AEB00:01C7F3D8]
X-archive-position: 1410
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: Joel.Patterson@crowley.com
Precedence: normal
Reply-to: Joel.Patterson@crowley.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
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
------_=_NextPart_001_01C7F3D8.412ED458
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

True.   You could however, (for < 10g), incorporate the appropriate
parts into scripts named prompt.sql and connect.sql   (or use 10g
client).

=20

When connecting from sql prompt SQL > @PROMPT or @CONNECT .
connect.sql could call prompt.sql automagically.

=20

@connect  prompts you from username password etc.

=20

@prompt is if you are already connected... sets the prompt.

=20

Really 10g obsoletes all this so you could install 10g client and all
can be set from glogin.sql.    Then you can connect from one database to
another and your prompt will change automagically even if you are
connecting to Oracle 9 databases.

=20

Joel Patterson=20
Database Administrator=20
joel.patterson@crowley.com=20
x72546=20
904  727-2546=20

________________________________

From: oracle-l-bounce@freelists.org
[mailto:oracle-l-bounce@freelists.org] On Behalf Of Jared Still
Sent: Monday, September 10, 2007 1:26 PM
To: tanel.poder.003@mail.ee
Cc: Michael.Coll-Barth@verizonwireless.com; oracle-l
Subject: Re: SQL*Plus Client on Windows

=20

On 9/8/07, Tanel Poder <tanel.poder.003@mail.ee> wrote:

	Here's my i.sql which I use both for identifying where I'm
logged on before
	doing any changes to database, plus it is called through
login.sql. The
	window title change happens on the last line:


There is one small problem with that approach:

If you use 'connect' within sqlplus, and sqlplus is < 10g your title
will=20
not change, and you may become confused as to which system you are
really on.=20

One way around that is to use a wrapper for connect.

Another way is to never use 'connect' from the command line,
just exit and restart sqlplus with the new connection.

--=20
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist


------_=_NextPart_001_01C7F3D8.412ED458
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" =
name=3D"PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>True.&nbsp;&nbsp; You could =
however, (for &lt; 10g),
incorporate the appropriate parts into scripts named prompt.sql and =
connect.sql&nbsp;&nbsp;
(or use 10g client).<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>When connecting from sql prompt SQL =
&gt;
@PROMPT or @CONNECT .&nbsp;&nbsp;&nbsp; connect.sql could call =
prompt.sql automagically.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>@connect&nbsp; prompts you from =
username
password etc.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>@prompt is if you are already =
connected&#8230;
sets the prompt.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Really 10g obsoletes all this so =
you could
install 10g client and all can be set from glogin.sql.&nbsp;&nbsp;&nbsp; =
Then you can connect
from one database to another and your prompt will change automagically =
even if
you are connecting to Oracle 9 databases.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>Joel Patterson</span></font><font color=3Dnavy><span
style=3D'color:navy'> <br>
</span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:navy'>Database Administrator</span></font><font
color=3Dnavy><span style=3D'color:navy'> <br>
</span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:navy'>joel.patterson@crowley.com</span></font><fo=
nt
color=3Dnavy><span style=3D'color:navy'> <br>
</span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:navy'>x72546</span></font><font =
color=3Dnavy><span
style=3D'color:navy'> <br>
</span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:navy'>904&nbsp; 727-2546</span></font><font =
color=3Dnavy><span
style=3D'color:navy'> </span></font><o:p></o:p></p>

</div>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] =
<b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Jared Still<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, September =
10, 2007
1:26 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> <st1:PersonName =
w:st=3D"on">tanel.poder.003@mail.ee</st1:PersonName><br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> =
Michael.Coll-Barth@verizonwireless.com;
oracle-l<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: SQL*Plus =
Client on
Windows</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>On 9/8/07, <b><span style=3D'font-weight:bold'>Tanel =
Poder</span></b>
&lt;<a =
href=3D"mailto:tanel.poder.003@mail.ee">tanel.poder.003@mail.ee</a>&gt;
wrote:<o:p></o:p></span></font></p>

<div>

<blockquote style=3D'border:none;border-left:solid #CCCCCC =
1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Here's my =
i.sql which I
use both for identifying where I'm logged on before<br>
doing any changes to database, plus it is called through login.sql. =
The<br>
window title change happens on the last =
line:<o:p></o:p></span></font></p>

</blockquote>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><br>
There is one small problem with that approach:<br>
<br>
If you use 'connect' within sqlplus, and sqlplus is &lt; 10g your title =
will <br>
not change, and you may become confused as to which system you are =
really on. <br>
<br>
One way around that is to use a wrapper for connect.<br>
<br>
Another way is to never use 'connect' from the command line,<br>
just exit and restart sqlplus with the new connection.<br>
<br>
-- <br>
Jared Still<br>
Certifiable Oracle DBA and Part Time Perl =
Evangelist<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C7F3D8.412ED458--
--
http://www.freelists.org/webpage/oracle-l


