Go Back  IT Forums > Software > Oracle
User Name
Password
Reply
 
Thread Tools Search this Thread Display Modes

oracle spool to a flat file slow
  #1
Old 10-07-2006, 10:21 AM
yogi
Junior Member


yogi is offline
yogi's Info
Join Date: Aug 2006
Posts: 4
Default oracle spool to a flat file slow

Hi All,

I am working on oracle 9i on unix server .we are running a chain of
various shell scripts which in turn calls pl/sql procedures and takes
dump of oralce tables into flat files on unix server.

database and unix server on which shell scripts are running are on
diffrent unix machines.when i directly take the spool of the table (on
the server on which shell scripts are running), for dumping 80,000 rows
it takes 30-40 secs.But same spool when we running through shell script
takes 7 mins on the same server.

so my problem is i can't even simulate that situation while working on
for tuning this spool.

The code i am using is simple.I am putting the query into a file and
then connecting to database from unix and taking spool.

i was suggested to puse the parameter 'set fflush on ' but i could not
see any diffrence.

Please suggest me what may be the possible reasons or is it some dba
settings which is required to be set.

thanks a lot in advance.

Reply With Quote
oracle spool to a flat file slow
  #2
Old 10-07-2006, 02:35 PM
DA Morgan
Junior Member


DA Morgan is offline
DA Morgan's Info
Join Date: May 2005
Posts: 474
Default oracle spool to a flat file slow

yogi wrote:
Quote:
Hi All, I am working on oracle 9i on unix server .we are running a chain of various shell scripts which in turn calls pl/sql procedures and takes dump of oralce tables into flat files on unix server. database and unix server on which shell scripts are running are on diffrent unix machines.when i directly take the spool of the table (on the server on which shell scripts are running), for dumping 80,000 rows it takes 30-40 secs.But same spool when we running through shell script takes 7 mins on the same server. so my problem is i can't even simulate that situation while working on for tuning this spool. The code i am using is simple.I am putting the query into a file and then connecting to database from unix and taking spool. i was suggested to puse the parameter 'set fflush on ' but i could not see any diffrence. Please suggest me what may be the possible reasons or is it some dba settings which is required to be set. thanks a lot in advance.


And with no version information.
No operating system or platform information.
No code.
You want someone to gaze into their crystal ball and tell you the answer.
Ok.
The answer is 42.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump



Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Style Design by vBStyles.com


Top Contact Us - IT Forums - Archive - MyLounge Top
MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service