<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Eddie Awad’s Blog - Latest Comments in Oracle SQLPlus</title><link>http://awads.disqus.com/</link><description>News, views, tips and tricks on Oracle and other fun stuff</description><atom:link href="https://awads.disqus.com/oracle_sqlplus/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 03 Aug 2008 23:53:24 -0000</lastBuildDate><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657793</link><description>&lt;p&gt;Wonderful, colors worked! Good great tipe!  Thanks.&lt;br&gt;But also I needed the host name to be in my prompt. Any help is greatly appreciated.&lt;br&gt;thanks&lt;br&gt;Partha&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Partha</dc:creator><pubDate>Sun, 03 Aug 2008 23:53:24 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657791</link><description>&lt;p&gt;FARIZA, You can. However, I suggest you use &lt;a href="http://forums.oracle.com" rel="nofollow noopener" target="_blank" title="http://forums.oracle.com"&gt;http://forums.oracle.com&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Thu, 24 Apr 2008 00:10:49 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657792</link><description>&lt;p&gt;May i ask about Views in Oracle in this forum?&lt;/p&gt;&lt;p&gt;thank you&lt;br&gt;-fariza-&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">FARIZA</dc:creator><pubDate>Wed, 23 Apr 2008 04:02:23 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657790</link><description>&lt;p&gt;How to turn on colors?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">acomplia</dc:creator><pubDate>Sat, 16 Feb 2008 14:40:56 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657789</link><description>&lt;p&gt;Pradeep, yes I got colors in sqlplus. It's done via vi's Ctrl-v to write the escape sequences to the login.sql, and also, the escape sequence is supported by xterm, which is what I use putty to connect to a Linux box(I guess on Windows it would be a different way to do it or just can't be done). My sqlprompt variable looks like this:&lt;br&gt;^[[32;47m&amp;amp;_user@&amp;amp;_connect_identifier^[[30m&amp;gt;^[[0;49m&lt;br&gt;Copy &amp;amp; paste won't work, you should use vi or other editor which is capable of inputing escape sequences instead to get the '^['s to the file.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kinzlaw</dc:creator><pubDate>Wed, 29 Aug 2007 07:41:40 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657788</link><description>&lt;p&gt;Pradeep, this is the first time I've ever heard that you can even have a colorful SQLPlus prompt! I do question the &lt;em&gt;need&lt;/em&gt; for color though. That won't work well with color blind people.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Sun, 01 Apr 2007 20:14:56 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657787</link><description>&lt;p&gt;Is it possible to add color to the prompt?&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;I want different color's for different environments that I use sqlplus on to distinguish them a bit and also add a bit of color to the whole black and white shell.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;I tried using control characters that work on the OS I'm using but they get simply printed as is.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Anyone know a wrapper that I can use?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pradeep</dc:creator><pubDate>Fri, 30 Mar 2007 00:12:12 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657786</link><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;I am tring to insert bulk sql statements from syslog-ng into oracle and I find there are more thn 50% lose.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;syslog daemon writes "insert statements" to a FIFO pipe, from this pipe another daemon attempts to push insert statements to sqlplus CLI.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;syslog-ng daemon config&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;writes to FIFO pipe /var/run/ora.pipe&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;destination d_oracle {&lt;br&gt;        pipe("/var/run/ora.pipe"&lt;br&gt;        template("ALTER SESSION SET SQL_TRACE = true;\nINSERT INTO syslogentry (hostname, facility, SEVERITY, MSG_SENT_TIME,p&lt;br&gt;rogram, message,MSG_RCV_TIME) VALUES ( '$HOST','$FACILITY', '$PRIORITY', to_date('$MONTH $DAY$ $YEAR $HOUR:$MIN:$SEC', 'mm dd&lt;br&gt; yyyy hh24:mi:ss'), '$PROGRAM', '$MSGONLY',SYSTIMESTAMP);\ncommit;\n") template-escape(yes));&lt;br&gt;};&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;we have tried to compare number of event (insert statements) coming on this pipe by writing another script that writes to file.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;pipe to db script&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;!/bin/sh&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;nohup sqlplus user/pass &amp;lt; /var/run/ora.pipe &amp;gt;&amp;gt; /home/oracle/log.err&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;pipe to file script&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;!/bin/sh&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;nohup cat /var/run/ora.pipe &amp;gt; /logs/debug.log&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;number of events in files are almost 10 times more than going in db within a given time slot.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;can any one help me ?&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Regards&lt;br&gt;Sumit&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sumi</dc:creator><pubDate>Wed, 10 May 2006 06:50:19 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657785</link><description>&lt;p&gt;Thanks for the tip Alex. Another reason to upgrade to 10g :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Fri, 05 Aug 2005 10:20:58 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657784</link><description>&lt;p&gt;In 10g, it gets even easier:&lt;/p&gt;&lt;p&gt;set sqlprompt `'_user@_connect_identifier &amp;gt; '`&lt;/p&gt;&lt;p&gt;&lt;a href="http://download-west.oracle.com/docs/cd/B14117_01/server.101/b12170/ch13.htm#sthref2183" rel="nofollow noopener" target="_blank" title="http://download-west.oracle.com/docs/cd/B14117_01/server.101/b12170/ch13.htm#sthref2183"&gt; SQL*Plus Command Reference&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Nuijten</dc:creator><pubDate>Fri, 05 Aug 2005 04:05:04 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657783</link><description>&lt;p&gt;Great links as usual. Thanks Robert.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eddie Awad</dc:creator><pubDate>Thu, 04 Aug 2005 15:20:09 -0000</pubDate></item><item><title>Re: Oracle SQLPlus</title><link>http://awads.net/wp/2005/08/04/oracle-sqlplus/#comment-3657782</link><description>&lt;p&gt;Great article!  It works!&lt;/p&gt;&lt;p&gt;I put mine in glogin.sql.&lt;/p&gt;&lt;p&gt;Related links:&lt;/p&gt;&lt;p&gt;Jonathan Lewis' and his FAQ:&lt;br&gt;&lt;a href="http://www.jlcomp.demon.co.uk/faq/sqlplus_prompt.html" rel="nofollow noopener" target="_blank" title="http://www.jlcomp.demon.co.uk/faq/sqlplus_prompt.html"&gt;http://www.jlcomp.demon.co....&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Oracle SQL*Plus FAQ:&lt;br&gt;&lt;a href="http://www.orafaq.com/faqplus.htm" rel="nofollow noopener" target="_blank" title="http://www.orafaq.com/faqplus.htm"&gt;http://www.orafaq.com/faqpl...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Also, "Setting Up" (Chapter 0) from Tom Kyte's "Expert One-on-One Oracle" and, naturally, the SQL*Plus User's Guide and Reference, available from here:&lt;br&gt;&lt;a href="http://www.oracle.com/technology/documentation/index.html" rel="nofollow noopener" target="_blank" title="http://www.oracle.com/technology/documentation/index.html"&gt;http://www.oracle.com/techn...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Vollman</dc:creator><pubDate>Thu, 04 Aug 2005 14:59:27 -0000</pubDate></item></channel></rss>