<?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: Oracle Bundle for TextMate, Preview</title>
	<atom:link href="http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/feed" rel="self" type="application/rss+xml" />
	<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html</link>
	<description>Ruby on Rails Consulting and Application Development</description>
	<lastBuildDate>Tue, 11 Jan 2011 01:31:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jesper</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-69427</link>
		<dc:creator>Jesper</dc:creator>
		<pubDate>Thu, 19 Feb 2009 21:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-69427</guid>
		<description>Glenn,

I don&#039;t have an Oracle database to test on right now, but as I remember it, you just need to add a &quot;/&quot; after the last line, as you would in a script:

...
end loop;
end;
/</description>
		<content:encoded><![CDATA[<p>Glenn,</p>
<p>I don&#8217;t have an Oracle database to test on right now, but as I remember it, you just need to add a &#8221;/&#8221; after the last line, as you would in a script:</p>
<p>...<br />
end loop;<br />
end;<br />
/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-69176</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Wed, 18 Feb 2009 18:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-69176</guid>
		<description>Thanks.

I can submit queries but when I try to create a procedure it does  not work.

create or replace procedure test1
as
      v_table varchar2(100);
      v_space_name varchar2(100);      
begin
    for rec in (select table_name, tablespace_name from user_tables)
    loop
       v_table := rec.table_name;
       v_space_name := rec.tablespace_name;
       dbms_output.put_line(&#039;Table &#039;&#124;&#124;v_table&#124;&#124;&#039; is in &#039;&#124;&#124;v_space_name&#124;&#124;&#039; tablespace.&#039;);
    end loop;
end;

I select the whole command and run it using shift-command-R.I get  connected as ... and SQL*Plus existed.

I check and the procedure is not created.  I copy and paste it in sqlplus in terminal and it compiles fine.

Anyone else with this issue?  Any way to get the error message back in Textmate?</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
<p>I can submit queries but when I try to create a procedure it does  not work.</p>
<p>create or replace procedure test1<br />
as</p>
<p>      v_table varchar2(100);<br />
      v_space_name varchar2(100);      <br />
begin<br />
    for rec in (select table_name, tablespace_name from user_tables)<br />
    loop<br />
       v_table := rec.table_name;<br />
       v_space_name := rec.tablespace_name;<br />
       dbms_output.put_line(&#8216;Table &#8217;||v_table||&#8217; is in &#8217;||v_space_name||&#8217; tablespace.&#8217;);<br />
    end loop;<br />
end;</p>
<p>I select the whole command and run it using shift-command-R.I get  connected as &#8230; and SQL*Plus existed.</p>
<p>I check and the procedure is not created.  I copy and paste it in sqlplus in terminal and it compiles fine.</p>
<p>Anyone else with this issue?  Any way to get the error message back in Textmate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oracle dinosaur</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-68590</link>
		<dc:creator>Oracle dinosaur</dc:creator>
		<pubDate>Sun, 15 Feb 2009 23:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-68590</guid>
		<description>Great help for all Oracle boys. Looked for hours on the web for something like that.
Great work Mark and Jesper.
Cheers!</description>
		<content:encoded><![CDATA[<p>Great help for all Oracle boys. Looked for hours on the web for something like that.<br />
Great work Mark and Jesper.<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xbdequet</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-54333</link>
		<dc:creator>Xbdequet</dc:creator>
		<pubDate>Sat, 13 Dec 2008 16:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-54333</guid>
		<description>Thanks!,</description>
		<content:encoded><![CDATA[<p>Thanks!,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Billy</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-22212</link>
		<dc:creator>Billy</dc:creator>
		<pubDate>Wed, 11 Jun 2008 14:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-22212</guid>
		<description>Jesper &amp; Mark, Thank you for this great bundle, I&#039;m trying to focus on TM for my everyday work and you guys are helping me tons!!!</description>
		<content:encoded><![CDATA[<p>Jesper &#038; Mark, Thank you for this great bundle, I&#8217;m trying to focus on TM for my everyday work and you guys are helping me tons!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon Mead</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-22065</link>
		<dc:creator>jon Mead</dc:creator>
		<pubDate>Wed, 21 May 2008 15:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-22065</guid>
		<description>I just download the bundle from Google Code, looks really useful.  I have read the Pragmatic Programmer too, so see where you are coming from. Do you have any plans to extend it? Do you think it would be possible/feasible to add SQL formating to it? I may try and have a look in the future some time.

Jon</description>
		<content:encoded><![CDATA[<p>I just download the bundle from Google Code, looks really useful.  I have read the Pragmatic Programmer too, so see where you are coming from. Do you have any plans to extend it? Do you think it would be possible/feasible to add SQL formating to it? I may try and have a look in the future some time.</p>
<p>Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesper</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-9475</link>
		<dc:creator>Jesper</dc:creator>
		<pubDate>Thu, 13 Sep 2007 08:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-9475</guid>
		<description>Mark, that is great! I haven&#039;t had much time to work on the bundle, but proper syntax was definitely one of the features I had initially planned for. Using the SQL-bundle syntax was just a lazy hack to have something to work with.

I think it would be best to have just one version of the bundle, and since you already have everything setup at Google Code, I suggest that&#039;s the current version going forward.

I have made a few minor changes to the bundle since posting the preview on my blog. I&#039;ll shoot you an email about how we get the changes merged -- that is, if you think it&#039;s a good idea making your version the current from now on.</description>
		<content:encoded><![CDATA[<p>Mark, that is great! I haven&#8217;t had much time to work on the bundle, but proper syntax was definitely one of the features I had initially planned for. Using the SQL-bundle syntax was just a lazy hack to have something to work with.</p>
<p>I think it would be best to have just one version of the bundle, and since you already have everything setup at Google Code, I suggest that&#8217;s the current version going forward.</p>
<p>I have made a few minor changes to the bundle since posting the preview on my blog. I&#8217;ll shoot you an email about how we get the changes merged&#8212;that is, if you think it&#8217;s a good idea making your version the current from now on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Bush</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-9373</link>
		<dc:creator>Mark Bush</dc:creator>
		<pubDate>Tue, 11 Sep 2007 22:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-9373</guid>
		<description>I have created a more complete Oracle PL/SQL bundle for TextMate initially based on yours at:

http://code.google.com/p/oracle-textmate-bundle/

I have kept the commands, but I have incorporated a syntax (rather than use the builtin TextMate &quot;SQL&quot; bundle which is not really suited to PL/SQL), better folding and indenting support and a number of code snippets which people should find useful.

If you wish to include any (or all!) of my changes into your copy, then please, feel free. :)

I will try to keep my version up-to-date with features I feel are useful.</description>
		<content:encoded><![CDATA[<p>I have created a more complete Oracle PL/SQL bundle for TextMate initially based on yours at:</p>
<p><a href="http://code.google.com/p/oracle-textmate-bundle/" rel="nofollow">http://code.google.com/p/oracle-textmate-bundle/</a></p>
<p>I have kept the commands, but I have incorporated a syntax (rather than use the builtin TextMate &#8220;SQL&#8221; bundle which is not really suited to PL/SQL), better folding and indenting support and a number of code snippets which people should find useful.</p>
<p>If you wish to include any (or all!) of my changes into your copy, then please, feel free. :)</p>
<p>I will try to keep my version up-to-date with features I feel are useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesper</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-62</link>
		<dc:creator>Jesper</dc:creator>
		<pubDate>Fri, 06 Oct 2006 06:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-62</guid>
		<description>Thanks for your feedback and I&#039;m happy to hear that you like the bundle.

To answer your questions:

The URL you use for search is great! I will definitely change the URL in the bundle to use this.

I don&#039;t know why you need to remove the quotes from the connect string, it&#039;s working fine for me with Instant Client on a MBP. I will look into it when I have more time.

I usually set my username/password/connectstring in the project and not in the general TextMate preferences. See chapter 9.4 (Project Dependent Variables) in the TextMate Help. Of course you could also use a combination of this, e.g. set the connectstring in TextMate preferences and username/password on a per project basis.

You could also modify the &quot;Open in SQL*Plus&quot; command to fit your needs. Remove the password from the commandline and add the script you want to run. This way SQL*Plus should launch in Terminal and prompt you for a password.</description>
		<content:encoded><![CDATA[<p>Thanks for your feedback and I&#8217;m happy to hear that you like the bundle.</p>
<p>To answer your questions:</p>
<p>The URL you use for search is great! I will definitely change the URL in the bundle to use this.</p>
<p>I don&#8217;t know why you need to remove the quotes from the connect string, it&#8217;s working fine for me with Instant Client on a MBP. I will look into it when I have more time.</p>
<p>I usually set my username/password/connectstring in the project and not in the general TextMate preferences. See chapter 9.4 (Project Dependent Variables) in the TextMate Help. Of course you could also use a combination of this, e.g. set the connectstring in TextMate preferences and username/password on a per project basis.</p>
<p>You could also modify the &#8220;Open in SQL*Plus&#8221; command to fit your needs. Remove the password from the commandline and add the script you want to run. This way SQL*Plus should launch in Terminal and prompt you for a password.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adi Alurkar</title>
		<link>http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html/comment-page-1#comment-56</link>
		<dc:creator>Adi Alurkar</dc:creator>
		<pubDate>Thu, 05 Oct 2006 20:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://productive.dk/2006/09/25/oracle-bundle-for-textmate-preview.html#comment-56</guid>
		<description>I have been using TextMate for most of my work lately. Most of the work I am
doing is a mix of XML and SQL (both MySQL and Oracle). I used to spend a
quite a bit of time switching between TM and Aqua Data Studio (which is what
I used to test stuff in oracle) till I found your TM Oracle bundle last
night. I have been playing with it and liked it so far.
Before I forget, *Thank you* for creating it!.


I had to make the following changes to get it to work on my Macbook Pro,
especially since I don&#039;t have a full Oracle install on my Macbook and only
have instant client setup.

Here are the few changes I made for your reference:

For search I used this url:
http://www.oracle.com/pls/db102/search?remark=quick_search&amp;word=$query

I had to also change the following

&quot;$ORA_USER&quot;/&quot;$ORA_PWD&quot;@&quot;$ORA_CONNECT&quot;
TO
$ORA_USER/$ORA_PWD@$ORA_CONNECT

Since I am a programming noob, just wanted to see if the following would be
possible in the oracle bundle.

Since I regularly have to connect to multiple servers it would be nice if I
could override the default connection parameters $ORA_USER, $ORA_PWD,
$ORA_CONNECT (set in env) in each file/script in lets say the first line. (
or even better enter it interactively)

I know I can easily hack this in a very simple/basic/dumb way
as follows

Create a new command in the bundle as :
==
----------cut----------
query=${TM_SELECTED_TEXT:-$TM_CURRENT_LINE}

. &quot;$TM_SUPPORT_PATH/lib/webpreview.sh&quot;
html_header &quot;Run Selection or Line&quot;

NLS_LANG=AMERICAN_AMERICA.UTF8
export NLS_LANG

sqlplus -S -L /NOLOG &lt;&lt;EOF
set define off
set pagesize 0
whenever sqlerror exit failure rollback
prompt &lt;/pre&gt;
set markup html on
$query
set markup html off
prompt &lt;pre&gt;
show errors
prompt &lt;/pre&gt;
EOF

echo &quot;SQL*Plus exited.&quot;
html_footer
----------cut----------
==

But this requires that I expose the username and password.

Do you know if its possible to either obfuscate at least the password or
enter it on demand ?</description>
		<content:encoded><![CDATA[<p>I have been using TextMate for most of my work lately. Most of the work I am<br />
doing is a mix of XML and SQL (both MySQL and Oracle). I used to spend a<br />
quite a bit of time switching between TM and Aqua Data Studio (which is what<br />
I used to test stuff in oracle) till I found your TM Oracle bundle last<br />
night. I have been playing with it and liked it so far.<br />
Before I forget, <strong>Thank you</strong> for creating it!.</p>
<p>I had to make the following changes to get it to work on my Macbook Pro,<br />
especially since I don&#8217;t have a full Oracle install on my Macbook and only<br />
have instant client setup.</p>
<p>Here are the few changes I made for your reference:</p>
<p>For search I used this url:<br />
<a href="http://www.oracle.com/pls/db102/search?remark=quick_search&#38;word=$query" rel="nofollow">http://www.oracle.com/pls/db102/search?remark=quick_search&#38;word=$query</a></p>
<p>I had to also change the following</p>
<p>&#8221;$ORA_USER&#8221;/&#8221;$ORA_PWD&#8221;@&#8221;$ORA_CONNECT&#8221;<br />
TO<br />
$ORA_USER/$ORA_PWD@$ORA_CONNECT</p>
<p>Since I am a programming noob, just wanted to see if the following would be<br />
possible in the oracle bundle.</p>
<p>Since I regularly have to connect to multiple servers it would be nice if I<br />
could override the default connection parameters $ORA_USER, $ORA_PWD,<br />
$ORA_CONNECT (set in env) in each file/script in lets say the first line. (<br />
or even better enter it interactively)</p>
<p>I know I can easily hack this in a very simple/basic/dumb way<br />
as follows</p>
<p>Create a new command in the bundle as :</p>
<p>&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;cut&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;<br />
query&#61;${TM&#95;SELECTED&#95;TEXT:&#45;$TM&#95;CURRENT&#95;LINE}</p>
<p>. &#34;$TM&#95;SUPPORT&#95;PATH/lib/webpreview.sh&#34;<br />
html&#95;header &#34;Run Selection or Line&#34;</p>
<p>NLS&#95;LANG&#61;AMERICAN&#95;AMERICA.UTF8<br />
export NLS&#95;LANG</p>
<p>sqlplus &#45;S &#45;L /NOLOG &#60;&#60;EOF<br />
set define off<br />
set pagesize 0<br />
whenever sqlerror exit failure rollback<br />
prompt &#60;/pre&#62;<br />
set markup html on<br />
$query<br />
set markup html off<br />
prompt &#60;pre&#62;<br />
show errors<br />
prompt &#60;/pre&#62;<br />
EOF</p>
<p>echo &#34;SQL&#42;Plus exited.&#34;<br />
html&#95;footer<br />
&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;cut&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;
</p>
<p>But this requires that I expose the username and password.</p>
<p>Do you know if its possible to either obfuscate at least the password or<br />
enter it on demand ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

