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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to invoke Windows SQL command from a batch file?

Re: How to invoke Windows SQL command from a batch file?

From: <phil_herring_at_yahoo.com.au>
Date: 27 Apr 2005 21:00:10 -0700
Message-ID: <1114660810.802582.119780@z14g2000cwz.googlegroups.com>


srini wrote:

> sqlplus srini/srini_at_srini
> select bytes/power(1024,3) from dba_segments where
> segment_name='ATTACHMENTS_BLOB';

  1. Put the SQL query into a file (called, for example, foo.sql).
  2. Edit your batch file to look like this:

     sqlplus srini/srini_at_srini @foo.sql

3. Read the SQL*Plus manual.

Received on Wed Apr 27 2005 - 23:00:10 CDT

Original text of this message

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