Solved

How to write to a file in java when the code is deployed in oracle

Posted on 2001-06-11
3
190 Views
Last Modified: 2010-03-31
I have a java program that I have deployed with jDeveloper to Oracle database. Is it possible to write to a file in java (fileoutputstream) when the code is in oracle. I use a pl/sql to call the program. Can I use UTL file when I am not writing to the file in the pl/sql?

Thanks
Bjorn
0
Comment
Question by:bjornhel
3 Comments
 
LVL 3

Expert Comment

by:exorcist
Comment Utility
If the code is running in your Oracle Database, I am pretty sure that it is a misdesign if you need a file to write to now. You have a database. Can't you just store your data there?
0
 
LVL 3

Accepted Solution

by:
graf27 earned 50 total points
Comment Utility
of corse, it is possible. we have tested the java.io package inside the jserv environment. so you can create, delete files outside the oracle database. sometimes i also use the jserv engine to write i.e logs from different instances to one system-file.
To call your java-programm inside the database, you need a pl/sql wrapper function/package.
If you hava one database instance, you can call directly the utl_file package to write files in the system environment. but therefore you must first create an directory link.
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


[points to graf27]


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
network + 7 72
strCopies  challenge 17 73
advertisement module in core php 4 78
Java and GPO 11 45
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

762 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

6 Experts available now in Live!

Get 1:1 Help Now