<?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: Procedural SQL*Plus and Password Encryption</title>
	<atom:link href="/2011/11/18/procedural-sqlplus-and-password-encryption/feed/" rel="self" type="application/rss+xml" />
	<link>http://dboptimizer.com/2011/11/18/procedural-sqlplus-and-password-encryption/</link>
	<description>database performance, SQL tuning and data visualizatoin</description>
	<lastBuildDate>Tue, 20 Aug 2019 11:13:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6</generator>
	<item>
		<title>By: Vivek</title>
		<link>http://dboptimizer.com/2011/11/18/procedural-sqlplus-and-password-encryption/#comment-16848</link>
		<dc:creator>Vivek</dc:creator>
		<pubDate>Fri, 08 Mar 2013 14:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://dboptimizer.com/?p=1804#comment-16848</guid>
		<description><![CDATA[Give me Guidance about SQL *PLUS with Oracle.how to use and configure these stuff,  i m student if u don&#039;t mind waiting for reply]]></description>
		<content:encoded><![CDATA[<p>Give me Guidance about SQL *PLUS with Oracle.how to use and configure these stuff,  i m student if u don&#8217;t mind waiting for reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Hailey</title>
		<link>http://dboptimizer.com/2011/11/18/procedural-sqlplus-and-password-encryption/#comment-1041</link>
		<dc:creator>Kyle Hailey</dc:creator>
		<pubDate>Mon, 02 Jan 2012 19:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://dboptimizer.com/?p=1804#comment-1041</guid>
		<description><![CDATA[@wski Thanks for stopping by and sharing your script. As far as I can tell your script is mainly a SQL script store with the pivotal part being:

&lt;pre&gt;

SQL&gt; set buf y
SQL&gt; i
  1  select &#039;y&#039; from dual
  2  .
SQL&gt; l
  1* select &#039;y&#039; from dual
SQL&gt; set buffer x
SQL&gt; i
  1  select &#039;x&#039; from dual;
  2  .
SQL&gt; l
  1* select &#039;x&#039; from dual;
SQL&gt; set buffer y
SQL&gt; l
  1* select &#039;y&#039; from dual

SQL&gt; set buffer x
SQL&gt; set buffer y
SQL&gt; save n replace
Wrote file n.sql
SQL&gt; r
  1* select * from dual
D
-
X

SQL&gt; set buffer x
SQL&gt; save n replace
Wrote file n.sql
SQL&gt; r
  1* select * from dual
D
-
X
&lt;/pre&gt;
which is a cool trick and allows one to store all their sql script in one file but doesn&#039;t really make the script procedural, ie if/then/else, while/do/done, etc

One can do this in PLSQL but then then there is no output until the the command is finished.]]></description>
		<content:encoded><![CDATA[<p>@wski Thanks for stopping by and sharing your script. As far as I can tell your script is mainly a SQL script store with the pivotal part being:</p>
<pre>

SQL> set buf y
SQL> i
  1  select 'y' from dual
  2  .
SQL> l
  1* select 'y' from dual
SQL> set buffer x
SQL> i
  1  select 'x' from dual;
  2  .
SQL> l
  1* select 'x' from dual;
SQL> set buffer y
SQL> l
  1* select 'y' from dual

SQL> set buffer x
SQL> set buffer y
SQL> save n replace
Wrote file n.sql
SQL> r
  1* select * from dual
D
-
X

SQL> set buffer x
SQL> save n replace
Wrote file n.sql
SQL> r
  1* select * from dual
D
-
X
</pre>
<p>which is a cool trick and allows one to store all their sql script in one file but doesn&#8217;t really make the script procedural, ie if/then/else, while/do/done, etc</p>
<p>One can do this in PLSQL but then then there is no output until the the command is finished.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wski</title>
		<link>http://dboptimizer.com/2011/11/18/procedural-sqlplus-and-password-encryption/#comment-1037</link>
		<dc:creator>wski</dc:creator>
		<pubDate>Sat, 31 Dec 2011 18:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://dboptimizer.com/?p=1804#comment-1037</guid>
		<description><![CDATA[There&#039;s a trick to cheat SQL*Plus into being procedural. See github.com/wski/blackbox]]></description>
		<content:encoded><![CDATA[<p>There&#8217;s a trick to cheat SQL*Plus into being procedural. See github.com/wski/blackbox</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AndyP</title>
		<link>http://dboptimizer.com/2011/11/18/procedural-sqlplus-and-password-encryption/#comment-917</link>
		<dc:creator>AndyP</dc:creator>
		<pubDate>Tue, 29 Nov 2011 20:24:50 +0000</pubDate>
		<guid isPermaLink="false">http://dboptimizer.com/?p=1804#comment-917</guid>
		<description><![CDATA[As the script is using ksh then a co-process may be a better option than a named pipe - also has the advantage of not spamming the user/pass in the process list or OS audit records.  Although processing of failures with co-processes isn&#039;t trivial.  After saying that it wouldn&#039;t address the core issue around encrypted password.

The percieved advantage of wallets is an interesting question - if I have a file with a plain text password in it how much worse is that than having a file where the password is not stored in plain text but I don&#039;t need to be able to decrypt the wallet content to perform a connection (and as we know there must be some level of trust between the Oracle software and the wallet, for an auto-login wallet, there must be a way using a signed(?) Java class to get at the password?

Wallets also pose the question of where the password for the wallet is retained - and how password rotation of the password stored within the wallet is accomplished.

Perhaps pktool is as good an option as an Oracle wallet on a Solaris like OS?  The implementation for encrypted zfs filesystems within smf could also be a decent model.  An option if the concern is around password stored on backup media would be to use an encrypted zfs filesystem to persist the password in plain-text.....

The opr code is quite clear about what is being gained by the encryption/obfuscation of the password it employs......]]></description>
		<content:encoded><![CDATA[<p>As the script is using ksh then a co-process may be a better option than a named pipe &#8211; also has the advantage of not spamming the user/pass in the process list or OS audit records.  Although processing of failures with co-processes isn&#8217;t trivial.  After saying that it wouldn&#8217;t address the core issue around encrypted password.</p>
<p>The percieved advantage of wallets is an interesting question &#8211; if I have a file with a plain text password in it how much worse is that than having a file where the password is not stored in plain text but I don&#8217;t need to be able to decrypt the wallet content to perform a connection (and as we know there must be some level of trust between the Oracle software and the wallet, for an auto-login wallet, there must be a way using a signed(?) Java class to get at the password?</p>
<p>Wallets also pose the question of where the password for the wallet is retained &#8211; and how password rotation of the password stored within the wallet is accomplished.</p>
<p>Perhaps pktool is as good an option as an Oracle wallet on a Solaris like OS?  The implementation for encrypted zfs filesystems within smf could also be a decent model.  An option if the concern is around password stored on backup media would be to use an encrypted zfs filesystem to persist the password in plain-text&#8230;..</p>
<p>The opr code is quite clear about what is being gained by the encryption/obfuscation of the password it employs&#8230;&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
