Solved

Browse / Delete files in remote server using SQLPlus or Pl/SQL triggers

Posted on 2012-03-26
2
572 Views
Last Modified: 2012-06-27
How I can Browse / Delete files in remote server using SQLPlus or Pl/SQL triggers

That I can access oracle database from client machine
0
Comment
Question by:egovernment
2 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
>>How I can Browse / Delete files in remote server using SQLPlus or Pl/SQL triggers


You can see files using if UTL_FILE_DIR or database directories are set up.  There are also some products like Internet File System (not sure what it is called today).

Now can you 'browse' them?  I'm not sure of a way to say "give me a list of all files in the folder".  I don;t see anything in utl_file for that:
http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/u_file.htm#ARPLS70906

Not saying it doesn't exist, just not aware of a way.

>>That I can access oracle database from client machine

Many ways.  What tools are available to you?  

For example:

If .Net/Java, then you can stream the contents.

If sqlplus, you can probably spool the output with a little smoke and mirrors.
0
 
LVL 73

Expert Comment

by:sdstuber
Comment Utility
it's not really the intended purpose but you might be able to do some of what you need with the ftp package here...


http://www.experts-exchange.com/Database/Oracle/PL_SQL/A_3043-How-to-FTP-with-Oracle-PL-SQL.html

The FTP functionality includes directory listing and removal capabilities in addition to the the file transfers.  You would, of course, be limited to the filesystems exposed by the ftp server.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Eclipse Neon start with Admin account only 6 44
Oracle regular expression 6 29
Has anyone used domo? 1 38
Currency Conversion? 1 34
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now