- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem in UTL_FILE generation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2007 03:14 AM
тАО08-07-2007 03:14 AM
Problem in UTL_FILE generation
We r using HP-UX,while writing PL/SQL script using UTL_FILE Utilities, i got write file permission error at the time of *.LST file generation. This file could be generated by Oracle in the specified directory.
I want what r all the permissions needed by Oracle User to generate lst file.
Error is
ERROR at line 1:
ORA-29285: file write error
ORA-06512: at "SYS.UTL_FILE", line 18
ORA-06512: at "SYS.UTL_FILE", line 993
ORA-06512: at line 180
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2007 04:58 AM
тАО08-07-2007 04:58 AM
Re: Problem in UTL_FILE generation
An example might be:
utl_file_dir=/mydir/data/log/outdir
Then, after putting this in, you need to restart your database ( this is a good thing for security reasons).
Now make sure that the user that owns and runs the database (unless you've changed it's probably "oracle") has rwx access to the directory that you gave.
Your function(s) should start writing at that point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 07:00 AM
тАО08-08-2007 07:00 AM
Re: Problem in UTL_FILE generation
Did that fix your problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2007 12:49 AM
тАО08-09-2007 12:49 AM
Re: Problem in UTL_FILE generation
I checked ora file, it is utl_file_dir=* only so i think it have all permissions. Now i found out problem, Let i explain clearly.
We have two application servers and one database server.Like IP is ...01,...02, & ...03 respectively. When users accessing any one of the appl(01 or 02) server at that time it generates lst file in database server(03). So appl server searches list file in own server it could not get that. In sql script, how i am mentioning the appl servers directory path in UTL_FILE directory path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2007 04:54 AM
тАО08-09-2007 04:54 AM
Re: Problem in UTL_FILE generation
The file will always be generated on the database server because this package runs on the database.
If you want to access it on the application servers, you will need to export it and access it using NFS on the two application servers.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2007 05:30 PM
тАО08-09-2007 05:30 PM
Re: Problem in UTL_FILE generation
I'm sorry, i dont have idea abt NFS, could u give the syntax for that plz.....