SunQuest
           Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old February 10th, 2004, 02:47 PM
benm2750 benm2750 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 19 benm2750 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
output file on client, larger than 1000000

Hello all:
I am executing a query via a shell script that returns several hundred thousand rows of data. I wish to output the results to a tab delimited file on the client. As seen below, I have set the serveroutput size to 1000000 which I believe is the maximum.

#!/bin/sh
if [ $# -lt 4 ]; then
echo "Usage: <schema> <user> <password> <outfile>"
exit 1
fi
rm $4 > /dev/null 1>&2
/u01/oracle/product/8.1.7/bin/sqlplus -s $2/$3@$1 << SQL
set echo off
set term off
set feedback off
set head off
set pagesize 0
set linesize 500
set serveroutput on size 1000000;
spool $4

When i run the script it hangs. At first I thought my query was not joining the tables properly but when I executed the query by itself I worked fine (only took 2 minutes). Is there any way to get a lot of data to an output file on the client? I cannot use UTL_FILE b/c the person who will run this script will not have access to the server.

Thanks in advance for your help.

Ben

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > output file on client, larger than 1000000


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway