Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 174151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:28:13+00:00 2026-05-11T13:28:13+00:00

Is it possible to read/write data from/to a file in a PL/SQL block without

  • 0

Is it possible to read/write data from/to a file in a PL/SQL block without using the UTL_FILE package in Oracle 10g?

I currently have a file containing a set of primary keys (approx. 28000) that I need query a table for additional data that needs to be written out to a file. The schema I am using is very restricted and do not have any create privileges. Also, there are no directories set up with the necessary read/write privileges for the procedures in UTL_FILE to work properly. Asking a DBA to provide additional privileges will take too much time.

Is there a way to work around this problem?

Thanks in advance.

[Edit] I am unable to load the data into a table. Don’t have a table to load into or the privileges to create one. I think this is the most difficult part of the problem. How to query the database if the criteria for the query can’t conveniently be part of the query itself (i.e. in a separate file)? If number of primary keys is small, I can generate a number of select statements to extract the data in sqlplus (using spool), but 28000 seem to be way too large.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:28:14+00:00Added an answer on May 11, 2026 at 1:28 pm

    If you cannot get directories set up, I would say you are out of luck. You are asking to read and create files on the database server. This is something your DBA should know about.

    Are you sure you need the files on server? Can you load a file from the client into a table (using the usual client-side tools), and read/write data from there?

    Update:

    I am unable to load the data into a table. Don’t have a table to load into or the privileges to create one. If number of primary keys is small, I can generate a number of select statements to extract the data in sqlplus (using spool), but 28000 seem to be way too large.

    28000 is not that much. Loop on the client-side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 401k
  • Answers 401k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer For the flex/bison part (warning: untested, I usually have .ypp… May 15, 2026 at 4:34 am
  • Editorial Team
    Editorial Team added an answer My suspicion is that others with more time can answer… May 15, 2026 at 4:34 am
  • Editorial Team
    Editorial Team added an answer Just create two different UIBarButtonItems One for the activity indicator… May 15, 2026 at 4:34 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.