Solved

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

Posted on 2012-03-26
2
591 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
ID: 37768984
>>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
ID: 37769017
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Read about achieving the basic levels of HRIS security in the workplace.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

910 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

17 Experts available now in Live!

Get 1:1 Help Now