1

I'm an accidental DBA. We have oracle database running on windows server.

I created an oracle directory object named 'Result' and mapped it one of the local drives (C:\appResult) on the database server. The front end application creates a report and writes the file to 'Result' and a file thus gets written to C:\appResult. Now, we want to change the file path 'C:\appResult' to some other server in the network (another server in the network). What is the best way to achieve this?

1
  • 1
    dba.stackexchange.com is the best spot for dba questions. Commented Jun 3, 2014 at 15:16

1 Answer 1

1

Use the CREATE OR REPLACE DIRECTORY... variant of this command:

CREATE OR REPLACE DIRECTORY RESULT AS '\\ServerName\ShareName\SomeOtherDir'

Share and enjoy.

Sign up to request clarification or add additional context in comments.

4 Comments

If the network path has credentials (windows server) how can we pass the username & password?
@Konstantinos: that should be asked as a separate question on dba.stackexchange.com. Thanks.
Is there any way to give ip name with username and password in directory path?
I have no idea. You should post that as a new question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.