Unix Technical Forum

Send file to other filesystem using PLSQL

This is a discussion on Send file to other filesystem using PLSQL within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, is it possible to send a file to other file system using plsql ? The objective will be ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2008, 10:46 PM
Pedro Lopes
 
Posts: n/a
Default Send file to other filesystem using PLSQL

Hi,
is it possible to send a file to other file system using plsql ?

The objective will be to send a xml file (generated with plsql) to other
database (not oracle) on other machine.


system:
Oracle9i on windows.


thanks,
PLopes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-07-2008, 10:46 PM
Bricklen
 
Posts: n/a
Default Re: Send file to other filesystem using PLSQL

Pedro Lopes wrote:
> Hi,
> is it possible to send a file to other file system using plsql ?
>
> The objective will be to send a xml file (generated with plsql) to other
> database (not oracle) on other machine.
>
>
> system:
> Oracle9i on windows.
>
>
> thanks,
> PLopes


Can you use utl_smtp to email it to the other machine?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2008, 10:46 PM
DA Morgan
 
Posts: n/a
Default Re: Send file to other filesystem using PLSQL

Pedro Lopes wrote:

> Hi,
> is it possible to send a file to other file system using plsql ?
>
> The objective will be to send a xml file (generated with plsql) to other
> database (not oracle) on other machine.
>
>
> system:
> Oracle9i on windows.
>
>
> thanks,
> PLopes


Not based on what you posted. Are you being charged by the character to
post here?

What other system?
Running under what operating system?
Receiving the file how?
Have you looked into heterogeneous services?
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-07-2008, 10:47 PM
KurtisK
 
Posts: n/a
Default Re: Send file to other filesystem using PLSQL

Yes, you can transfer a file from PL/SQL. I don't know why these guys in
the Oracle newsgroup get so ornary. I think that Sybrand guy's attitude is
wearing off on them.


Use the UTL_FILE package. You can setup a "Directory" to point towards a
network share.

i.e.

vcLocation := "SomeDirectoryName"
fh := UTL_File.FOPEN(vcLocation, vcFileName, 'W', biMaxLineSize);

etc ..

etc ...

--


----------------------------------------------------
This mailbox protected from junk email by MailFrontier Desktop
from MailFrontier, Inc. http://info.mailfrontier.com

"Pedro Lopes" <pedro.lopes@netvisao.pt> wrote in message
news:newscache$6n5q6i$wh9$1@newsfront4.netvisao.pt ...
> Hi,
> is it possible to send a file to other file system using plsql ?
>
> The objective will be to send a xml file (generated with plsql) to other
> database (not oracle) on other machine.
>
>
> system:
> Oracle9i on windows.
>
>
> thanks,
> PLopes



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-07-2008, 10:47 PM
DA Morgan
 
Posts: n/a
Default Re: Send file to other filesystem using PLSQL

KurtisK wrote:

> Yes, you can transfer a file from PL/SQL. I don't know why these guys in
> the Oracle newsgroup get so ornary. I think that Sybrand guy's attitude is
> wearing off on them.
>
>
> Use the UTL_FILE package. You can setup a "Directory" to point towards a
> network share.
>
> i.e.
>
> vcLocation := "SomeDirectoryName"
> fh := UTL_File.FOPEN(vcLocation, vcFileName, 'W', biMaxLineSize);
>
> etc ..
>
> etc ...


Because Sybrans knows of what he speaks and you are apparently unaware
of the functionality of UTL_FILE.

UTL_FILE will gladly write a text file onto the local operating system.
That has nothing to do with what the OP asked: Absolutely nothing!

--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-07-2008, 10:47 PM
Jack
 
Posts: n/a
Default Re: Send file to other filesystem using PLSQL

See that:
You can setup a "Directory" to point towards a network share.



"DA Morgan" <damorgan@x.washington.edu> wrote in message
news:1099969572.93305@yasure...
> KurtisK wrote:
>
>> Yes, you can transfer a file from PL/SQL. I don't know why these guys in
>> the Oracle newsgroup get so ornary. I think that Sybrand guy's attitude
>> is
>> wearing off on them.
>>
>>
>> Use the UTL_FILE package. You can setup a "Directory" to point towards a
>> network share.
>>
>> i.e.
>>
>> vcLocation := "SomeDirectoryName"
>> fh := UTL_File.FOPEN(vcLocation, vcFileName, 'W', biMaxLineSize);
>>
>> etc ..
>>
>> etc ...

>
> Because Sybrans knows of what he speaks and you are apparently unaware
> of the functionality of UTL_FILE.
>
> UTL_FILE will gladly write a text file onto the local operating system.
> That has nothing to do with what the OP asked: Absolutely nothing!
>
> --
> Daniel A. Morgan
> University of Washington
> damorgan@x.washington.edu
> (replace 'x' with 'u' to respond)



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-07-2008, 10:47 PM
Rauf Sarwar
 
Posts: n/a
Default Re: Send file to other filesystem using PLSQL

Pedro Lopes <pedro.lopes@netvisao.pt> wrote in message news:<newscache$6n5q6i$wh9$1@newsfront4.netvisao.p t>...
> Hi,
> is it possible to send a file to other file system using plsql ?
>
> The objective will be to send a xml file (generated with plsql) to other
> database (not oracle) on other machine.
>
>
> system:
> Oracle9i on windows.
>
>
> thanks,
> PLopes


If you cannot do it in SQL then do it in PL/SQL.
If you cannot do it in PL/SQL then do it in Java.

If you have JServer installed then utl_file like file operation from
within Oracle is pretty trivial using java.io api. You can
read/write/copy/move/delete/rename files.

Regards
/Rauf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-07-2008, 10:47 PM
KurtisK
 
Posts: n/a
Default Re: Send file to other filesystem using PLSQL

Indeed, you point the Directory to a Network Share as Jack mentioned. I am
well aware of how UTL_FILE works. Like I said, you guys are ornary and take
this too seriously. People participate to learn in these forums, not get
chastised with sarcasm.

Kurt

--


----------------------------------------------------
This mailbox protected from junk email by MailFrontier Desktop
from MailFrontier, Inc. http://info.mailfrontier.com

"DA Morgan" <damorgan@x.washington.edu> wrote in message
news:1099969572.93305@yasure...
> KurtisK wrote:
>
> > Yes, you can transfer a file from PL/SQL. I don't know why these guys

in
> > the Oracle newsgroup get so ornary. I think that Sybrand guy's attitude

is
> > wearing off on them.
> >
> >
> > Use the UTL_FILE package. You can setup a "Directory" to point towards

a
> > network share.
> >
> > i.e.
> >
> > vcLocation := "SomeDirectoryName"
> > fh := UTL_File.FOPEN(vcLocation, vcFileName, 'W', biMaxLineSize);
> >
> > etc ..
> >
> > etc ...

>
> Because Sybrans knows of what he speaks and you are apparently unaware
> of the functionality of UTL_FILE.
>
> UTL_FILE will gladly write a text file onto the local operating system.
> That has nothing to do with what the OP asked: Absolutely nothing!
>
> --
> Daniel A. Morgan
> University of Washington
> damorgan@x.washington.edu
> (replace 'x' with 'u' to respond)



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-07-2008, 10:49 PM
DA Morgan
 
Posts: n/a
Default Re: Send file to other filesystem using PLSQL

Jack wrote:

> See that:
> You can setup a "Directory" to point towards a network share.


Network share ... that's a Windows term isn't it?
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-07-2008, 10:50 PM
Frank Piron
 
Posts: n/a
Default Re: Send file to other filesystem using PLSQL

Am Thu, 11 Nov 2004 20:22:37 -0800 schrieb DA Morgan
<damorgan@x.washington.edu>:

> Jack wrote:
>
>> See that:
>> You can setup a "Directory" to point towards a network share.

>
> Network share ... that's a Windows term isn't it?


But may denote an NFS Mount Point on UNIX systems too.
We already used this approach in LAN or MAN environments.

--
Frank Piron,
etfrankatkonaddotn
(leftrotate two)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com