<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Do you check your script library?</title>
	<atom:link href="http://coskan.wordpress.com/2009/11/30/do-you-check-your-scripts-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://coskan.wordpress.com/2009/11/30/do-you-check-your-scripts-library/</link>
	<description>What I learned about Oracle</description>
	<lastBuildDate>Tue, 18 Jun 2013 17:42:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Neil Johnson</title>
		<link>http://coskan.wordpress.com/2009/11/30/do-you-check-your-scripts-library/#comment-3863</link>
		<dc:creator><![CDATA[Neil Johnson]]></dc:creator>
		<pubDate>Sat, 05 Dec 2009 20:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://coskan.wordpress.com/?p=688#comment-3863</guid>
		<description><![CDATA[If you have grid control you could put your scripts on there. SQL*Plus can execute scripts available via http. See the link below for an example.

http://blog.tanelpoder.com/2007/08/31/sqlplus-is-my-second-home-part2/

Assuming your grid control server is secure then I guess you can sleep easy knowing your scripts are safe :)]]></description>
		<content:encoded><![CDATA[<p>If you have grid control you could put your scripts on there. SQL*Plus can execute scripts available via http. See the link below for an example.</p>
<p><a href="http://blog.tanelpoder.com/2007/08/31/sqlplus-is-my-second-home-part2/" rel="nofollow">http://blog.tanelpoder.com/2007/08/31/sqlplus-is-my-second-home-part2/</a></p>
<p>Assuming your grid control server is secure then I guess you can sleep easy knowing your scripts are safe <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coskan</title>
		<link>http://coskan.wordpress.com/2009/11/30/do-you-check-your-scripts-library/#comment-3861</link>
		<dc:creator><![CDATA[coskan]]></dc:creator>
		<pubDate>Fri, 04 Dec 2009 15:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://coskan.wordpress.com/?p=688#comment-3861</guid>
		<description><![CDATA[I wish there is a wallet like solution for sql scripts as well. When I login I need to open the wallet. When I go and edit files in directory I need to open the wallet first etc. etc.]]></description>
		<content:encoded><![CDATA[<p>I wish there is a wallet like solution for sql scripts as well. When I login I need to open the wallet. When I go and edit files in directory I need to open the wallet first etc. etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coskan</title>
		<link>http://coskan.wordpress.com/2009/11/30/do-you-check-your-scripts-library/#comment-3860</link>
		<dc:creator><![CDATA[coskan]]></dc:creator>
		<pubDate>Fri, 04 Dec 2009 15:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://coskan.wordpress.com/?p=688#comment-3860</guid>
		<description><![CDATA[Thank you for your comments and your time Eugene but my main problem is that my workstation is windows and I am calling scripts inside the sqlplus. 

your solution is very good for the maintenance scripts we run on the server. I will try your way as soon as I can.]]></description>
		<content:encoded><![CDATA[<p>Thank you for your comments and your time Eugene but my main problem is that my workstation is windows and I am calling scripts inside the sqlplus. </p>
<p>your solution is very good for the maintenance scripts we run on the server. I will try your way as soon as I can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene</title>
		<link>http://coskan.wordpress.com/2009/11/30/do-you-check-your-scripts-library/#comment-3854</link>
		<dc:creator><![CDATA[Eugene]]></dc:creator>
		<pubDate>Wed, 02 Dec 2009 18:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://coskan.wordpress.com/?p=688#comment-3854</guid>
		<description><![CDATA[Hello Coskan,
Here is my idea how to solve security problem with sql repository:

1)First we need to encrypt file with openssl:
= = = = = = = = = = = = = = = = = = = = = = = =
cd ~/sql_rep &amp;&amp; openssl enc -aes-128-cbc -in check_db_status.sql -out check_db_status.enc
once prompted, please enter password for yuor file it can be the same for all sqls.

enter aes-128-cbc encryption password:
or you can specify password via additional option

cd ~/sql_rep &amp;&amp;  openssl enc -aes-128-cbc -in check_db_status.sql -out check_db_status.sql.enc -pass pass:tezzt &amp;&amp; rm -f check_db_status.sql

check_db_status.sql
~~~~
spool /tmp/teztingz.lst
select NAME,OPEN_MODE,FORCE_LOGGING,FLASHBACK_ON from gv$database;
spool off
exit
~~~~

NOw you have only encrypted version of your sql in your repository.


2)Decrypt your sql and run:
= = = = = = = = = = = = = = = = = = = = = = = =
Just run this command to decrypt file and run sql, upon completion it will delete an *sql and will leave *enc only:
---
cd ~/sql_rep &amp;&amp; \
cd ~/sql_rep &amp;&amp; openssl enc -d -aes-128-cbc -in check_db_status.sql.enc -out check_db_status.sql &amp;&amp; \
sqlplus &quot;/as sysdba&quot; @check_db_status.sql &amp;&amp; rm -f check_db_status.sql
---
this one will prompt password.

---
cd ~/sql_rep &amp;&amp; \
openssl enc -d -aes-128-cbc -in check_db_status.sql.enc -out check_db_status.sql -pass pass:tezzt &amp;&amp; \
sqlplus &quot;/as sysdba&quot; @check_db_status.sql &amp;&amp; rm -f check_db_status.sql
---
And this one already have password as an option.



3)To simplify execution you can create an alias:
= = = = = = = = = = = = = = = = = = = = = = = =
function dbstf {
cd ~/sql_rep &amp;&amp; \
openssl enc -d -aes-128-cbc -in check_db_status.sql.enc -out check_db_status.sql -pass pass:tezzt &amp;&amp; \
sqlplus &quot;/as sysdba&quot; @check_db_status.sql &amp;&amp; rm -f check_db_status.sql
}
alias dbst=dbstf 


So just run dbst from command prompt and you will run decrypted sql and than it will be deleted:

[oracle@xxxx sql_rep]$ XXX_db_1st &gt;&gt;dbst
~~~~~~~
dbst

SQL*Plus: Release 11.1.0.6.0 - Production on Mon Nov 23 08:35:33 2009

Copyright (c) 1982, 2007, Oracle.  All rights reserved.


XXX11G    READ WRITE NO  NO
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
~~~~~~~




I think use of openssl is very simple and it installed on every unix machine.


I hope this solution will be applicable for you.

Thanks and best regards  Eugene]]></description>
		<content:encoded><![CDATA[<p>Hello Coskan,<br />
Here is my idea how to solve security problem with sql repository:</p>
<p>1)First we need to encrypt file with openssl:<br />
= = = = = = = = = = = = = = = = = = = = = = = =<br />
cd ~/sql_rep &amp;&amp; openssl enc -aes-128-cbc -in check_db_status.sql -out check_db_status.enc<br />
once prompted, please enter password for yuor file it can be the same for all sqls.</p>
<p>enter aes-128-cbc encryption password:<br />
or you can specify password via additional option</p>
<p>cd ~/sql_rep &amp;&amp;  openssl enc -aes-128-cbc -in check_db_status.sql -out check_db_status.sql.enc -pass pass:tezzt &amp;&amp; rm -f check_db_status.sql</p>
<p>check_db_status.sql<br />
~~~~<br />
spool /tmp/teztingz.lst<br />
select NAME,OPEN_MODE,FORCE_LOGGING,FLASHBACK_ON from gv$database;<br />
spool off<br />
exit<br />
~~~~</p>
<p>NOw you have only encrypted version of your sql in your repository.</p>
<p>2)Decrypt your sql and run:<br />
= = = = = = = = = = = = = = = = = = = = = = = =<br />
Just run this command to decrypt file and run sql, upon completion it will delete an *sql and will leave *enc only:<br />
&#8212;<br />
cd ~/sql_rep &amp;&amp; \<br />
cd ~/sql_rep &amp;&amp; openssl enc -d -aes-128-cbc -in check_db_status.sql.enc -out check_db_status.sql &amp;&amp; \<br />
sqlplus &#8220;/as sysdba&#8221; @check_db_status.sql &amp;&amp; rm -f check_db_status.sql<br />
&#8212;<br />
this one will prompt password.</p>
<p>&#8212;<br />
cd ~/sql_rep &amp;&amp; \<br />
openssl enc -d -aes-128-cbc -in check_db_status.sql.enc -out check_db_status.sql -pass pass:tezzt &amp;&amp; \<br />
sqlplus &#8220;/as sysdba&#8221; @check_db_status.sql &amp;&amp; rm -f check_db_status.sql<br />
&#8212;<br />
And this one already have password as an option.</p>
<p>3)To simplify execution you can create an alias:<br />
= = = = = = = = = = = = = = = = = = = = = = = =<br />
function dbstf {<br />
cd ~/sql_rep &amp;&amp; \<br />
openssl enc -d -aes-128-cbc -in check_db_status.sql.enc -out check_db_status.sql -pass pass:tezzt &amp;&amp; \<br />
sqlplus &#8220;/as sysdba&#8221; @check_db_status.sql &amp;&amp; rm -f check_db_status.sql<br />
}<br />
alias dbst=dbstf </p>
<p>So just run dbst from command prompt and you will run decrypted sql and than it will be deleted:</p>
<p>[oracle@xxxx sql_rep]$ XXX_db_1st &gt;&gt;dbst<br />
~~~~~~~<br />
dbst</p>
<p>SQL*Plus: Release 11.1.0.6.0 &#8211; Production on Mon Nov 23 08:35:33 2009</p>
<p>Copyright (c) 1982, 2007, Oracle.  All rights reserved.</p>
<p>XXX11G    READ WRITE NO  NO<br />
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 &#8211; Production<br />
~~~~~~~</p>
<p>I think use of openssl is very simple and it installed on every unix machine.</p>
<p>I hope this solution will be applicable for you.</p>
<p>Thanks and best regards  Eugene</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fidelinho</title>
		<link>http://coskan.wordpress.com/2009/11/30/do-you-check-your-scripts-library/#comment-3853</link>
		<dc:creator><![CDATA[Fidelinho]]></dc:creator>
		<pubDate>Wed, 02 Dec 2009 09:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://coskan.wordpress.com/?p=688#comment-3853</guid>
		<description><![CDATA[What do we have is the scripts in a share folder where only two persons can write.
If someone wants to add a file or a modification he/she has to contact those persons.
What &quot;I&quot; am looking for is a &quot;code&quot; organizer (like The Guide) with password protection.
I still have not found exactly what I&#039;m looking for :(]]></description>
		<content:encoded><![CDATA[<p>What do we have is the scripts in a share folder where only two persons can write.<br />
If someone wants to add a file or a modification he/she has to contact those persons.<br />
What &#8220;I&#8221; am looking for is a &#8220;code&#8221; organizer (like The Guide) with password protection.<br />
I still have not found exactly what I&#8217;m looking for <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coskan</title>
		<link>http://coskan.wordpress.com/2009/11/30/do-you-check-your-scripts-library/#comment-3852</link>
		<dc:creator><![CDATA[coskan]]></dc:creator>
		<pubDate>Tue, 01 Dec 2009 15:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://coskan.wordpress.com/?p=688#comment-3852</guid>
		<description><![CDATA[Thank you for your comments Hemant, 

I was thinking about going fully DBA v2 but it is not that easy to leave command lines simplicity. Scary. I wonder if Oracle Security experts  check this issue when they do auditing at sites and if they are I wonder what is their advice. 

Maybe Pete Finnegan can leave a comment on this issue]]></description>
		<content:encoded><![CDATA[<p>Thank you for your comments Hemant, </p>
<p>I was thinking about going fully DBA v2 but it is not that easy to leave command lines simplicity. Scary. I wonder if Oracle Security experts  check this issue when they do auditing at sites and if they are I wonder what is their advice. </p>
<p>Maybe Pete Finnegan can leave a comment on this issue</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemant K Chitale</title>
		<link>http://coskan.wordpress.com/2009/11/30/do-you-check-your-scripts-library/#comment-3851</link>
		<dc:creator><![CDATA[Hemant K Chitale]]></dc:creator>
		<pubDate>Tue, 01 Dec 2009 15:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://coskan.wordpress.com/?p=688#comment-3851</guid>
		<description><![CDATA[Yes, I do worry about my &quot;scripts&quot; !

It is a scary thought that someone, with malicious intent, could have modified a &quot;standard&quot; script.  This would be much easier to do than to modify application code (in whichever language it is written !).

Occassionally, I check a script before executing it.  Or at least look at timestamps.
But I don&#039;t think that it is validation enough.

Possibly, this is a reason to go to OEM and have OEM manage all alerts and report ?

Hemant]]></description>
		<content:encoded><![CDATA[<p>Yes, I do worry about my &#8220;scripts&#8221; !</p>
<p>It is a scary thought that someone, with malicious intent, could have modified a &#8220;standard&#8221; script.  This would be much easier to do than to modify application code (in whichever language it is written !).</p>
<p>Occassionally, I check a script before executing it.  Or at least look at timestamps.<br />
But I don&#8217;t think that it is validation enough.</p>
<p>Possibly, this is a reason to go to OEM and have OEM manage all alerts and report ?</p>
<p>Hemant</p>
]]></content:encoded>
	</item>
</channel>
</rss>
