<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Changing the prompt dynamically in SQL*Plus</title>
	<atom:link href="http://technology.amis.nl/2006/11/28/changing-the-prompt-dynamically-in-sqlplus/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2006/11/28/changing-the-prompt-dynamically-in-sqlplus/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=changing-the-prompt-dynamically-in-sqlplus</link>
	<description></description>
	<lastBuildDate>Tue, 11 Jun 2013 22:09:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/11/28/changing-the-prompt-dynamically-in-sqlplus/#comment-4035</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Thu, 30 Nov 2006 01:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1417#comment-4035</guid>
		<description><![CDATA[OK, that went wrong (now hopefully in the write order):

--
--
--
--
--
define uniqueness=&quot;uniqueness&quot;
column uniqueness new_value uniqueness

-- -------------------------------------------------------------------------------
set termout off

-- Table dba_indexes has changed in Oracle 8
-- Next piece of code switches the column name of the &quot;create index&quot; cursor.

select &#039;decode(i.uniqueness,&#039;&#039;BITMAP&#039;&#039;,i.uniqueness,&#039;&#039;NORMAL&#039;&#039;)&#039; uniqueness
from   dual where &amp;&amp;_O_RELEASE like &#039;7%&#039;
union
select &#039;i.index_type&#039;                                            uniqueness
from   dual where &amp;&amp;_O_RELEASE like &#039;8%&#039;
;
-- -------------------------------------------------------------------------------

set termout on
set define ~
set serveroutput on size 1000000
--
--
--
--
-- etc, etc, etc --
--
--
--
--
   -- Rebuild index

   CURSOR c_index(  p_index  IN CHAR
                  , p_schema IN CHAR
                  )
   IS
   SELECT   i.owner                                       idxowner
   ,        i.index_name
   ,        ~uniqueness                                   indextype
   ,        decode(i.uniqueness, &#039;UNIQUE&#039;,&#039; UNIQUE &#039;,&#039; &#039;) uq
   ,        i.table_name
   ,        i.table_owner
   ,        i.tablespace_name
   ,        i.initial_extent
   ,        i.next_extent
   ,        i.min_extents
   ,        i.max_extents
   ,        i.pct_increase
   ,        i.freelists
   ,        i.pct_free
   ,        decode(c.constraint_type,&#039;P&#039;,&#039;PRIMARY KEY&#039;
                                    ,&#039;U&#039;,&#039;UNIQUE&#039;
                                    ,c.constraint_type)   constype
   ,        c.constraint_name
   ,        c.status
   ,        c.owner                                       consowner
   FROM     sys.dba_indexes     i
   ,        sys.dba_constraints c
   WHERE    (c.table_name(+)      = i.table_name
   AND       c.constraint_name(+) = i.index_name
   AND       c.owner(+)           = i.table_owner)
   AND      i.table_type          = &#039;TABLE&#039;
   AND      i.index_name          = p_index
   AND      i.owner               = p_schema
   ORDER BY i.index_name
   ;
--
--
--
--
--
--
-- etc, etc, etc --
--
--
--

BEGIN
--
...etc...etc
--
--
--
IF check3(i).s_segment_type=&#039;INDEX&#039;
                  THEN

                     FOR r_index IN c_index(check3(i).s_segment_name,check3(i).s_owner)
                     LOOP
                        EXIT WHEN c_index%NOTFOUND;
                        create_check3(i).r_statement := &#039;alter index &#039;&#124;&#124;r_index.idxowner&#124;&#124;&#039;.&#039;&#124;&#124;r_index.index_name
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;REBUILD ONLINE&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;PCTFREE &#039;&#124;&#124;r_index.pct_free
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;storage&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;(&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;initial &#039;&#124;&#124;v_seg_initial&#124;&#124;&#039;K&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;next &#039;&#124;&#124;v_seg_nextext&#124;&#124;&#039;K&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;pctincrease &#039;&#124;&#124;r_index.pct_increase
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;minextents &#039;&#124;&#124;r_index.min_extents
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;maxextents &#039;&#124;&#124;v_max_extents
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;freelists &#039;&#124;&#124;r_index.freelists
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;)&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;tablespace &#039;&#124;&#124;r_index.tablespace_name
                                                        &#124;&#124;&#039;;&#039;
                                                        ;

                        dbms_output.put_line(create_check3(i).r_statement);
                        dbms_output.put_line(&#039;--&#039;);
                     END LOOP;]]></description>
		<content:encoded><![CDATA[<p>OK, that went wrong (now hopefully in the write order):</p>
<p>&#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
define uniqueness=&#8221;uniqueness&#8221;<br />
column uniqueness new_value uniqueness</p>
<p>&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
set termout off</p>
<p>&#8211; Table dba_indexes has changed in Oracle 8<br />
&#8211; Next piece of code switches the column name of the &#8220;create index&#8221; cursor.</p>
<p>select &#8216;decode(i.uniqueness,&#8221;BITMAP&#8221;,i.uniqueness,&#8221;NORMAL&#8221;)&#8217; uniqueness<br />
from   dual where &amp;&amp;_O_RELEASE like &#8217;7%&#8217;<br />
union<br />
select &#8216;i.index_type&#8217;                                            uniqueness<br />
from   dual where &amp;&amp;_O_RELEASE like &#8217;8%&#8217;<br />
;<br />
&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>set termout on<br />
set define ~<br />
set serveroutput on size 1000000<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211; etc, etc, etc &#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
   &#8212; Rebuild index</p>
<p>   CURSOR c_index(  p_index  IN CHAR<br />
                  , p_schema IN CHAR<br />
                  )<br />
   IS<br />
   SELECT   i.owner                                       idxowner<br />
   ,        i.index_name<br />
   ,        ~uniqueness                                   indextype<br />
   ,        decode(i.uniqueness, &#8216;UNIQUE&#8217;,&#8217; UNIQUE &#8216;,&#8217; &#8216;) uq<br />
   ,        i.table_name<br />
   ,        i.table_owner<br />
   ,        i.tablespace_name<br />
   ,        i.initial_extent<br />
   ,        i.next_extent<br />
   ,        i.min_extents<br />
   ,        i.max_extents<br />
   ,        i.pct_increase<br />
   ,        i.freelists<br />
   ,        i.pct_free<br />
   ,        decode(c.constraint_type,&#8217;P',&#8217;PRIMARY KEY&#8217;<br />
                                    ,&#8217;U',&#8217;UNIQUE&#8217;<br />
                                    ,c.constraint_type)   constype<br />
   ,        c.constraint_name<br />
   ,        c.status<br />
   ,        c.owner                                       consowner<br />
   FROM     sys.dba_indexes     i<br />
   ,        sys.dba_constraints c<br />
   WHERE    (c.table_name(+)      = i.table_name<br />
   AND       c.constraint_name(+) = i.index_name<br />
   AND       c.owner(+)           = i.table_owner)<br />
   AND      i.table_type          = &#8216;TABLE&#8217;<br />
   AND      i.index_name          = p_index<br />
   AND      i.owner               = p_schema<br />
   ORDER BY i.index_name<br />
   ;<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211; etc, etc, etc &#8211;<br />
&#8211;<br />
&#8211;<br />
&#8211;</p>
<p>BEGIN<br />
&#8211;<br />
&#8230;etc&#8230;etc<br />
&#8211;<br />
&#8211;<br />
&#8211;<br />
IF check3(i).s_segment_type=&#8217;INDEX&#8217;<br />
                  THEN</p>
<p>                     FOR r_index IN c_index(check3(i).s_segment_name,check3(i).s_owner)<br />
                     LOOP<br />
                        EXIT WHEN c_index%NOTFOUND;<br />
                        create_check3(i).r_statement := &#8216;alter index &#8216;||r_index.idxowner||&#8217;.'||r_index.index_name<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;REBUILD ONLINE&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;PCTFREE &#8216;||r_index.pct_free<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;storage&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;(&#8216;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;initial &#8216;||v_seg_initial||&#8217;K&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;next &#8216;||v_seg_nextext||&#8217;K&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;pctincrease &#8216;||r_index.pct_increase<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;minextents &#8216;||r_index.min_extents<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;maxextents &#8216;||v_max_extents<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;freelists &#8216;||r_index.freelists<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;)&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;tablespace &#8216;||r_index.tablespace_name<br />
                                                        ||&#8217;;&#8217;<br />
                                                        ;</p>
<p>                        dbms_output.put_line(create_check3(i).r_statement);<br />
                        dbms_output.put_line(&#8216;&#8211;&#8217;);<br />
                     END LOOP;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/11/28/changing-the-prompt-dynamically-in-sqlplus/#comment-4034</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Thu, 30 Nov 2006 01:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1417#comment-4034</guid>
		<description><![CDATA[The _O_RELEASE variable reminded me on a small trick I once used.

A while ago (understatement), I had to write a script that could be executed on Oracle 7 and on Oracle 8. In Oracle 7 the dba_indexes table had normal and bitmapped indicators in the same column. In Oracle 8, they added a extra column regarding bitmap indexes. My dynamically created &quot;CREATE INDEX&quot; statements via a cursor where based on the info in DBA_INDEXES.

The following gives you an idea how i solved it:




define uniqueness=&quot;uniqueness&quot;
column uniqueness new_value uniqueness

-- -------------------------------------------------------------------------------
set termout off

-- Table dba_indexes has changed in Oracle 8
-- Next piece of code switches the column name of the &quot;create index&quot; cursor.

select &#039;decode(i.uniqueness,&#039;&#039;BITMAP&#039;&#039;,i.uniqueness,&#039;&#039;NORMAL&#039;&#039;)&#039; uniqueness
from   dual where &amp;&amp;_O_RELEASE like &#039;7%&#039;

...etc...etc...etc

IF check3(i).s_segment_type=&#039;INDEX&#039;
                  THEN

                     FOR r_index IN c_index(check3(i).s_segment_name,check3(i).s_owner)
                     LOOP
                        EXIT WHEN c_index%NOTFOUND;
                        create_check3(i).r_statement := &#039;alter index &#039;&#124;&#124;r_index.idxowner&#124;&#124;&#039;.&#039;&#124;&#124;r_index.index_name
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;REBUILD ONLINE&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;PCTFREE &#039;&#124;&#124;r_index.pct_free
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;storage&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;(&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;initial &#039;&#124;&#124;v_seg_initial&#124;&#124;&#039;K&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;next &#039;&#124;&#124;v_seg_nextext&#124;&#124;&#039;K&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;pctincrease &#039;&#124;&#124;r_index.pct_increase
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;minextents &#039;&#124;&#124;r_index.min_extents
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;maxextents &#039;&#124;&#124;v_max_extents
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;freelists &#039;&#124;&#124;r_index.freelists
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;)&#039;
                                                        &#124;&#124;chr(10)
                                                        &#124;&#124;&#039;tablespace &#039;&#124;&#124;r_index.tablespace_name
                                                        &#124;&#124;&#039;;&#039;
                                                        ;

                        dbms_output.put_line(create_check3(i).r_statement);
                        dbms_output.put_line(&#039;--&#039;);
                     END LOOP;
union
select &#039;i.index_type&#039;                                            uniqueness
from   dual where &amp;&amp;_O_RELEASE like &#039;8%&#039;
;
-- -------------------------------------------------------------------------------

set termout on
set define ~

..
..etc,etc
..
-- Rebuild index

   CURSOR c_index(  p_index  IN CHAR
                  , p_schema IN CHAR
                  )
   IS
   SELECT   i.owner                                       idxowner
   ,        i.index_name
   ,        ~uniqueness                                   indextype
   ,        decode(i.uniqueness, &#039;UNIQUE&#039;,&#039; UNIQUE &#039;,&#039; &#039;) uq
   ,        i.table_name
   ,        i.table_owner
   ,        i.tablespace_name
   ,        i.initial_extent
   ,        i.next_extent
   ,        i.min_extents
   ,        i.max_extents
   ,        i.pct_increase
   ,        i.freelists
   ,        i.pct_free
   ,        decode(c.constraint_type,&#039;P&#039;,&#039;PRIMARY KEY&#039;
                                    ,&#039;U&#039;,&#039;UNIQUE&#039;
                                    ,c.constraint_type)   constype
   ,        c.constraint_name
   ,        c.status
   ,        c.owner                                       consowner
   FROM     sys.dba_indexes     i
   ,        sys.dba_constraints c
   WHERE    (c.table_name(+)      = i.table_name
   AND       c.constraint_name(+) = i.index_name
   AND       c.owner(+)           = i.table_owner)
   AND      i.table_type          = &#039;TABLE&#039;
   AND      i.index_name          = p_index
   AND      i.owner               = p_schema
   ORDER BY i.index_name
   ;]]></description>
		<content:encoded><![CDATA[<p>The _O_RELEASE variable reminded me on a small trick I once used.</p>
<p>A while ago (understatement), I had to write a script that could be executed on Oracle 7 and on Oracle 8. In Oracle 7 the dba_indexes table had normal and bitmapped indicators in the same column. In Oracle 8, they added a extra column regarding bitmap indexes. My dynamically created &#8220;CREATE INDEX&#8221; statements via a cursor where based on the info in DBA_INDEXES.</p>
<p>The following gives you an idea how i solved it:</p>
<p>define uniqueness=&#8221;uniqueness&#8221;<br />
column uniqueness new_value uniqueness</p>
<p>&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
set termout off</p>
<p>&#8211; Table dba_indexes has changed in Oracle 8<br />
&#8211; Next piece of code switches the column name of the &#8220;create index&#8221; cursor.</p>
<p>select &#8216;decode(i.uniqueness,&#8221;BITMAP&#8221;,i.uniqueness,&#8221;NORMAL&#8221;)&#8217; uniqueness<br />
from   dual where &amp;&amp;_O_RELEASE like &#8217;7%&#8217;</p>
<p>&#8230;etc&#8230;etc&#8230;etc</p>
<p>IF check3(i).s_segment_type=&#8217;INDEX&#8217;<br />
                  THEN</p>
<p>                     FOR r_index IN c_index(check3(i).s_segment_name,check3(i).s_owner)<br />
                     LOOP<br />
                        EXIT WHEN c_index%NOTFOUND;<br />
                        create_check3(i).r_statement := &#8216;alter index &#8216;||r_index.idxowner||&#8217;.'||r_index.index_name<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;REBUILD ONLINE&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;PCTFREE &#8216;||r_index.pct_free<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;storage&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;(&#8216;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;initial &#8216;||v_seg_initial||&#8217;K&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;next &#8216;||v_seg_nextext||&#8217;K&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;pctincrease &#8216;||r_index.pct_increase<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;minextents &#8216;||r_index.min_extents<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;maxextents &#8216;||v_max_extents<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;freelists &#8216;||r_index.freelists<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;)&#8217;<br />
                                                        ||chr(10)<br />
                                                        ||&#8217;tablespace &#8216;||r_index.tablespace_name<br />
                                                        ||&#8217;;&#8217;<br />
                                                        ;</p>
<p>                        dbms_output.put_line(create_check3(i).r_statement);<br />
                        dbms_output.put_line(&#8216;&#8211;&#8217;);<br />
                     END LOOP;<br />
union<br />
select &#8216;i.index_type&#8217;                                            uniqueness<br />
from   dual where &amp;&amp;_O_RELEASE like &#8217;8%&#8217;<br />
;<br />
&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>set termout on<br />
set define ~</p>
<p>..<br />
..etc,etc<br />
..<br />
&#8211; Rebuild index</p>
<p>   CURSOR c_index(  p_index  IN CHAR<br />
                  , p_schema IN CHAR<br />
                  )<br />
   IS<br />
   SELECT   i.owner                                       idxowner<br />
   ,        i.index_name<br />
   ,        ~uniqueness                                   indextype<br />
   ,        decode(i.uniqueness, &#8216;UNIQUE&#8217;,&#8217; UNIQUE &#8216;,&#8217; &#8216;) uq<br />
   ,        i.table_name<br />
   ,        i.table_owner<br />
   ,        i.tablespace_name<br />
   ,        i.initial_extent<br />
   ,        i.next_extent<br />
   ,        i.min_extents<br />
   ,        i.max_extents<br />
   ,        i.pct_increase<br />
   ,        i.freelists<br />
   ,        i.pct_free<br />
   ,        decode(c.constraint_type,&#8217;P',&#8217;PRIMARY KEY&#8217;<br />
                                    ,&#8217;U',&#8217;UNIQUE&#8217;<br />
                                    ,c.constraint_type)   constype<br />
   ,        c.constraint_name<br />
   ,        c.status<br />
   ,        c.owner                                       consowner<br />
   FROM     sys.dba_indexes     i<br />
   ,        sys.dba_constraints c<br />
   WHERE    (c.table_name(+)      = i.table_name<br />
   AND       c.constraint_name(+) = i.index_name<br />
   AND       c.owner(+)           = i.table_owner)<br />
   AND      i.table_type          = &#8216;TABLE&#8217;<br />
   AND      i.index_name          = p_index<br />
   AND      i.owner               = p_schema<br />
   ORDER BY i.index_name<br />
   ;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/11/28/changing-the-prompt-dynamically-in-sqlplus/#comment-4033</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Thu, 30 Nov 2006 00:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1417#comment-4033</guid>
		<description><![CDATA[@arnoud

the login.sql and glogin.sql can be found normally in $ORACLE_HOME/sqlplus/admin. Useful parameters can be set in these files to, for example, format you explain plan output differently (use among others &quot;show all&quot; and &quot;define&quot; in sqlplus to see some parameters you could use). Be also aware that the files are useful in hacking the system (if someone can write into it, OS/SQL commands in it will be executed during startup of  sqlplus)

See also http://www.adp-gmbh.ch/ora/sqlplus/login.html.]]></description>
		<content:encoded><![CDATA[<p>@arnoud</p>
<p>the login.sql and glogin.sql can be found normally in $ORACLE_HOME/sqlplus/admin. Useful parameters can be set in these files to, for example, format you explain plan output differently (use among others &#8220;show all&#8221; and &#8220;define&#8221; in sqlplus to see some parameters you could use). Be also aware that the files are useful in hacking the system (if someone can write into it, OS/SQL commands in it will be executed during startup of  sqlplus)</p>
<p>See also <a href="http://www.adp-gmbh.ch/ora/sqlplus/login.html" rel="nofollow">http://www.adp-gmbh.ch/ora/sqlplus/login.html</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel Thomas</title>
		<link>http://technology.amis.nl/2006/11/28/changing-the-prompt-dynamically-in-sqlplus/#comment-4032</link>
		<dc:creator>Nigel Thomas</dc:creator>
		<pubDate>Wed, 29 Nov 2006 10:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1417#comment-4032</guid>
		<description><![CDATA[Yes Patrick, the call to login.sql happens on every connect (not just the furst time you start SQL*Plus) since 10g - see this article on Oracle-Base: http://www.oracle-base.com/articles/10g/SQLPlusEnhancements10g.php Regards Nigel]]></description>
		<content:encoded><![CDATA[<p>Yes Patrick, the call to login.sql happens on every connect (not just the furst time you start SQL*Plus) since 10g &#8211; see this article on Oracle-Base: <a href="http://www.oracle-base.com/articles/10g/SQLPlusEnhancements10g.php" rel="nofollow">http://www.oracle-base.com/articles/10g/SQLPlusEnhancements10g.php</a> Regards Nigel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Sinke</title>
		<link>http://technology.amis.nl/2006/11/28/changing-the-prompt-dynamically-in-sqlplus/#comment-4031</link>
		<dc:creator>Patrick Sinke</dc:creator>
		<pubDate>Tue, 28 Nov 2006 16:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1417#comment-4031</guid>
		<description><![CDATA[You can create the login.sql yourself and put it in the startup-directory of your SQL*Plus.
Typically, the contents of login.sql can be something like this:

set sqlprompt &quot;_CONNECT_IDENTIFIER&gt; &quot;
exec dbms_output.enable( 50000 );
set serveroutput on
set feedback on
set timing on

col object_name format a20
exec  ams_common.INIT_AUDIT_INFO;]]></description>
		<content:encoded><![CDATA[<p>You can create the login.sql yourself and put it in the startup-directory of your SQL*Plus.<br />
Typically, the contents of login.sql can be something like this:</p>
<p>set sqlprompt &#8220;_CONNECT_IDENTIFIER&gt; &#8221;<br />
exec dbms_output.enable( 50000 );<br />
set serveroutput on<br />
set feedback on<br />
set timing on</p>
<p>col object_name format a20<br />
exec  ams_common.INIT_AUDIT_INFO;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnoud Roth</title>
		<link>http://technology.amis.nl/2006/11/28/changing-the-prompt-dynamically-in-sqlplus/#comment-4030</link>
		<dc:creator>Arnoud Roth</dc:creator>
		<pubDate>Tue, 28 Nov 2006 16:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1417#comment-4030</guid>
		<description><![CDATA[Great trick, Patrick. Thanks for sharing it.
Maybe you can also tell where to find the login.sql?
Arnoud]]></description>
		<content:encoded><![CDATA[<p>Great trick, Patrick. Thanks for sharing it.<br />
Maybe you can also tell where to find the login.sql?<br />
Arnoud</p>
]]></content:encoded>
	</item>
</channel>
</rss>
