Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using map drive with rwclient with Oracle Reports 12.2.1.4.0

user6532048Oct 17 2022

I am using 12.2.1.4.0 Oracle Reports.
When using network path to run the rwclient, it is fine.
e.g.
rwclient.bat server=rep1 report=\\server01\temp\test.rep desformat=pdf DESTYPE=file DESNAME=\\server01\temp\test.pdf

However, If I map that into a drive.
e.g.
rwclient.bat server=rep1 report=O:\temp\test.rep desformat=pdf DESTYPE=file DESNAME=O:\temp\test.pdf

It returns REP-0110: Unable to Open File, but I had put those paths in the read/write list.
Is there a way that I can use rwclient with a map drive?

Comments

Hello,
UNC paths usually are restricted due to the security nature of Oracle Report.
Added <folderAccess> element in rwserver.conf file

<folderAccess>
<read>O:\temp\*</read>
<write>O:\temp\*</write>
</folderAccess>

Add this line to setDomainEnv.cmd script in $DOMAIN_HOME/bin directory
NET USE O: \\server01\my_directory /user:<userid> <password>
where:
O: – is the mapped drive letter
\\server01\my_directory – is the root of remote file system
<userid> – name of user authorized to connect to remote file system.
<password> – password for <userid>
then you can use O:\file to access files within my_directory
Thanks, Suresh

user6532048

I did add the drive from file explorer, I can access the new drive in the file explorer.
Is that I also need to add "NET USE" in setDomainEnv.cmd?

1 - 2

Post Details

Added on Oct 17 2022
2 comments
34 views