Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1747
  • Last Modified:

alternatives to UTL_FILE

We have used UTL_FILE package to extract records i.e. insert statements of a schema on oracle server 8.1.6 on win NT4. Now we want alternatives that can get us inserts on clinet machine/application server. Basically we
want to run the extract jobs on the application server and it should write the file onto the application box and not the database box. Is there a method to use other built in packages OR self created packages OR a complicated PL/SQL procedure which uses SQL, PL/SQL and dynamic SQL. I have a insert genrating query which can be caught in spooling but this is quite manual and error prone. Please help me to solve this practical problem.
---sesh2002
0
sesh2002
Asked:
sesh2002
  • 3
  • 2
1 Solution
 
mouattsCommented:
This seems to be a bit obvious so maybe I'm missing something, but why not just mount the disk you want the file written to on the DB box then you can still use UTL_FILE?

Steve
0
 
jtriftsMI and AutomationCommented:
UTL_FILE as you have pointed out is a server-side package that therefore functions on the server.

For use on the client machine, you can use the Oracle built-in TEXT_IO from within an Oracle form.

Alternatively you may use Oracle Reports from the client, and then either print the output or store the output for later printing.

Finally, you might consider keeping the file generation using UTL_FILE, but set up a share for the client to view the directory where output is written.

If you are mingling NT clients with UNIX servers, then you can achieve the same result by setting up a SAMBA share (aka SAMBA link) which enables an NT user to view UNIX folders from within an Explorer window).

Hope this helps,
JT
0
 
naikrakeshCommented:
I guess JT is correct here. UTL_FILE_DIR can be aaaigned a value " * " and can be made to write to virtually any directory if one wants to also mounted file systems.

Rakesh
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
mouattsCommented:
Funny I though I suggested using a share first. Well I won't be answering anymore of your questions.
0
 
jtriftsMI and AutomationCommented:
mouatts,
if points are what you're concerned about please go to the post on http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=oracle&qid=20279975

and you will find 50 points waiting for you ...

Having been with E-E for so long, I would have thought the points would be "beside the point".  I was not trying to poach -- merely add to the discussion.

I do hope you will not withold your experience and knowledge over a possible misappropriation of 5 points.

Kind regards,
JT
0
 
mouattsCommented:
Jtrifts my problem is not with you, nor is it for the points, I hadn't even noticed how many points where on offer. More simply I am just getting a little tired of answering peoples questions and then someone else getting the credit down the line.

Steve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now