dbTalk Databases Forums  

writing into two files concurrently

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss writing into two files concurrently in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
abdoul85
 
Posts: n/a

Default writing into two files concurrently - 10-18-2007 , 09:20 AM






I have problem:
I want to write data into two files concurrently. spool and
dbms_output.put_line doesn't provide this functionality. Is there any
other way to write into the file.

greetings


Reply With Quote
  #2  
Old   
Brian Peasland
 
Posts: n/a

Default Re: writing into two files concurrently - 10-18-2007 , 09:42 AM






abdoul85 wrote:
Quote:
I have problem:
I want to write data into two files concurrently. spool and
dbms_output.put_line doesn't provide this functionality. Is there any
other way to write into the file.

greetings

You can use DBMS_OUTPUT to do this. Simply open another file via a
second file handle. Then use two PUT_LINE procs each using a different
file handle. You will have to double up the PUT_LINE commands.

HTH,
Brian

--
================================================== =================

Brian Peasland
dba (AT) nospam (DOT) peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown

--
Posted via a free Usenet account from http://www.teranews.com



Reply With Quote
  #3  
Old   
DA Morgan
 
Posts: n/a

Default Re: writing into two files concurrently - 10-18-2007 , 10:10 AM



abdoul85 wrote:
Quote:
I have problem:
I want to write data into two files concurrently. spool and
dbms_output.put_line doesn't provide this functionality. Is there any
other way to write into the file.

greetings
Only if you write Java or C.
--
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
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: writing into two files concurrently - 10-18-2007 , 11:35 AM



On Oct 18, 11:10 am, DA Morgan <damor... (AT) psoug (DOT) org> wrote:
Quote:
abdoul85 wrote:
I have problem:
I want to write data into two files concurrently. spool and
dbms_output.put_line doesn't provide this functionality. Is there any
other way to write into the file.

greetings

Only if you write Java or C.
--
Daniel A. Morgan
University of Washington
damor...@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Groupwww.psoug.org
Abdoul85, what exactly are you trying to do? What interface (tool
set) are you using? What full version of Oracle?

Depending on the details there may be some combination of features
that will give you what you want such as using pl/sql code to write to
a file via utl_file while spooling dbms_output messages. It all
depends on details lacking from your post. Most likely you will need
an external routine (C code) or a pro*C or java program as Daniel
mentioned. Without more specific detail of what you are trying to do
no one can really provide you with useful suggestions.

HTH -- Mark D Powell --



Reply With Quote
  #5  
Old   
DA Morgan
 
Posts: n/a

Default Re: writing into two files concurrently - 10-19-2007 , 02:07 AM



Brian Peasland wrote:
Quote:
abdoul85 wrote:
I have problem:
I want to write data into two files concurrently. spool and
dbms_output.put_line doesn't provide this functionality. Is there any
other way to write into the file.

greetings


You can use DBMS_OUTPUT to do this. Simply open another file via a
second file handle. Then use two PUT_LINE procs each using a different
file handle. You will have to double up the PUT_LINE commands.

HTH,
Brian
But it will be serialized not written in parallel (concurrently).
--
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
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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.