Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: equivalent Unix file for Oracle table

Re: equivalent Unix file for Oracle table

From: Chuck Hamilton <chuck_hamilton_at_yahoo.com>
Date: Mon, 11 Sep 2000 09:20:07 -0700 (PDT)
Message-Id: <10616.116644@fatcity.com>


--0-846930886-968689207=:25550
Content-Type: text/plain; charset=us-ascii

 You can't. Database rows are not stored as complete lines of text in an oracle datafile. There stored in an internal format. You'll need to use sqlplus or some other sql tool to extract the data.

example:

sqlplus -s <<!
user/password
set linesize 200 pagesize 0 feedback off tab off trimspool on select * from mytable where col1 = 'SANJEEV'; !

  Sanjeev Jha <sjha_at_livevault.com> wrote:

Hi all,

May be it's very easy question but as a system admin asked me - " With an example - create a table, make some entry, commit it and now exit to Unix shell. Now where can you "grep" (or something else) the values I enter in the table without using SQL prompt ?" Say, I entered 'Sanjeev' in the table, #grep Sanjeev *.dbf (might be this file) didn't work out.

Thanks,
Sk

-- 
Author: Sanjeev Jha
INET: sjha_at_livevault.com

Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).


---------------------------------
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
--0-846930886-968689207=:25550
Content-Type: text/html; charset=us-ascii


<P> You can't. Database rows are not stored as complete lines of text in an oracle datafile. There stored in an internal format. You'll need to use sqlplus or some other sql tool to extract the data.</P>
<P>example:</P>
<P>sqlplus -s &lt;&lt;!<BR>user/password<BR>set linesize 200 pagesize 0 feedback off tab off trimspool on<BR>select * from mytable where col1 = 'SANJEEV';<BR>!</P>
<P><BR>&nbsp; <B><I>Sanjeev Jha &lt;sjha_at_livevault.com&gt;</I></B> wrote: <BR></P>
<BLOCKQUOTE style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">Hi all,<BR><BR>May be it's very easy question but as a system admin asked me -<BR>" With an example - create a table, make some entry, commit it and now exit<BR>to Unix shell. Now where can you "grep" (or something else) the values I<BR>enter in the table without using SQL prompt ?" Say, I entered 'Sanjeev' in<BR>the table, #grep Sanjeev *.dbf (might be this file) didn't work out.<BR><BR>Thanks,<BR>Sk<BR>-- <BR>Author: Sanjeev Jha<BR>INET: sjha_at_livevault.com<BR><BR>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051<BR>San Diego, California -- Public Internet access / Mailing Lists<BR>--------------------------------------------------------------------<BR>To REMOVE yourself from this mailing list, send an E-Mail message<BR>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in<BR>the message BODY, include a line containing: UNSUB ORACLE-L<BR>(or the name of mailing !
list you want to be removed from). You may<BR>also send the HELP command for other information (like subscribing).</BLOCKQUOTE><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://mail.yahoo.com/">Yahoo! Mail</a> - Free email you can access from anywhere!
Received on Mon Sep 11 2000 - 11:20:07 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US