Message-Id: <10616.116644@fatcity.com> From: Chuck Hamilton Date: Mon, 11 Sep 2000 09:20:07 -0700 (PDT) Subject: Re: equivalent Unix file for Oracle table --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 < 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@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@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

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@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@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@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!