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 379707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:55:04+00:00 2026-05-12T14:55:04+00:00

Sometime this weekend one of our databases (11.1.0.7) began having problems accessing certain folders

  • 0

Sometime this weekend one of our databases (11.1.0.7) began having problems accessing certain folders on a portion of the network through Java. I have reproduced the problem using a small portion of java that does nothing but create a file object and attempt to delete the file. From the
database this works for deleting local files and deleting network files on our \zion\dp\ share, but not from our \zion\it\ share.

We have another database that runs under the same domain users account that has no problems deleting files from this location. Also logged in as the same domain user on the server having problems I can run the java outside of Oracle and have no problems deleting
files. The domain user has full control over the folder and logged in as the user I can create, modify, and delete files.

If I haven’t granted my oracle database user the appropriate dbms_java permissions I get the appropriate java.security.AccessControlException error. After I grant the permission the java runs to completion, the delete command returns false (nothing deleted) and the file is not deleted.

I opened a case with Oracle, but it looks like they aren’t going to help any more because it involves file commands being run from the java layer even though it is only reproducible from the Oracle environment.

Test Code:

import java.io.*;               
import java.sql.*;                 
import java.util.*;             

public class Ajclass
{
   public static void ajprocedure(String pdfFileName) throws Exception
   {
      boolean result;
      try {
         System.out.println("Start!");

         File file = new File(pdfFileName);
         //result = file.delete();
         result = file.exists();
         if (result == true) 
           System.out.println("xxFile deleted.");
         else
           System.out.println("xxFile NOT deleted!");
         System.out.println("End!");
      } catch ( Exception e ) {
         throw(e);
      }         
   }
}

Other code I recently found to be failing only against this share and only when run from inside this database:

import java.io.*;
import java.sql.*;

public class DirectoryListing
{
public static void getList(String directory) throws SQLException
   {
      File path = new File( directory );
      String[] list = path.list();
      String element;
      int CurrentFile;

      for(CurrentFile = 0; CurrentFile < list.length; CurrentFile++)
      {
        element = list[CurrentFile];
        #sql { INSERT INTO DIRECTORYLISTING (FILENAME) VALUES (:element) };
      }
   }
}
  • 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. Editorial Team
    Editorial Team
    2026-05-12T14:55:04+00:00Added an answer on May 12, 2026 at 2:55 pm

    Oracle support suggested restarting the server after looking at the results of Process Monitor being run on the oracle executable while the delete/exist operation was taking place. They found that the action gets a result of STATUS_USER_SESSION_DELETED (0xC0000203) from the remote server, which means the communication between the local and remote server are not working correctly on a windows level. We plan to restart this weekend to see if that fixes the problem.

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

Sidebar

Related Questions

I've been trying to solve this problem for quite sometime but I am having
I've been banging my head against a wall for sometime on this one. I'm
This one seems a bit tricky to me. Sometime ago I already managed to
I had this doubt for sometime now, some people say that there's no such
Sorry for this not being a real question, but Sometime back i remember seeing
I have been putting off developing this part of my app for sometime purely
I have this following javascript to activate sometime document.addEventListener('touchmove', function (e) { e.preventDefault(); },
I have been searching this for quite sometime but could not find an appropriate
This is a question that has been bothering me for sometime. My application uses
I'm just starting with Qt. Despite spending sometime on it this evening, I'm struggling

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.