Skip to Main Content

Bash script to mount XE WebDAV folder to server file

I did write small bash script to mount XE WebDAV folder to server file system. This is tested on Ubuntu 8.04 server and depend on package davfs2.

Download the script and place it to server folder /etc/init.d/

Give execute permission to file:

sudo chmod +x /etc/init.d/xewebdav
    

Create folder webdav to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/

sudo mkdir /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/webdav
    

Change permissions:

sudo chown oracle:dba /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/webdav
    

Install davfs2 if not installed:

sudo apt-get install davfs2
    

Edit file /etc/davfs2/secrets

sudo nano /etc/davfs2/secrets
    

Add line to file (change your_system_password what is your system password):

http://localhost:8080   system  your_system_password
    

Then you are ready to start using script:

sudo /etc/init.d/xewebdav start
    

Original article in Oracle Database 10g Express Edition forum.

Comments

No comments yet on this post