Skip to content
Home » Oracle » How to Resolve ASMCMD-9463: operation failed due to lack of write permissions

How to Resolve ASMCMD-9463: operation failed due to lack of write permissions

ASMCMD-9463

Tried to copy a data file out of ASM, but it failed with ASMCMD-9463.

[grid@primary01 grid]$ asmcmd cp +DATA/ORCLCDB/ORCLPDB/example_01.dbf /backup/example_01.dbf
ASMCMD-9463: operation failed due to lack of write permissions

ASMCMD-9463 means that the destination you specified in command is not permitted to write, please check the permission of the directory.

So, let's see the target folder /backup.

[oracle@primary01 ~]$ cd /backup
[oracle@primary01 backup]$ ls -al
total 4342584
drwxr-xr-x    4 oracle   oinstall       4096 Dec 21 21:11 .
drwxr-xr-x   28 root     system         4096 Feb 15 15:24 ..
...

As we can see, the owner of current folder is oracle, not grid. Furthermore, the write permission is not open to group oinstall.

Solution

Since grid is also in group oinstall in this case, so we can just open the write permission on group in this folder.

[oracle@primary01 backup]$ chmod g+w /backup
[oracle@primary01 backup]$ ls -al
total 4342584
drwxrwxr-x    4 oracle   oinstall       4096 Feb 22 13:02 .
drwxr-xr-x   28 root     system         4096 Feb 15 15:24 ..
...

Maybe using -R (recursively change) in the above command is also appropriate.

[oracle@primary01 backup]$ chmod -R g+w /backup

A full open is also an option, even though it may be improper.

[oracle@primary01 backup]$ chmod -R 777 /backup

Then we copy the file again.

[grid@primary01 grid]$ asmcmd cp +DATA/ORCLCDB/ORCLPDB/example_01.dbf /backup/example_01.dbf
copying +DATA/ORCLCDB/ORCLPDB/example_01.dbf -> /backup/example_01.dbf

We made it.

Another way to solve it is to find another proper place to put the file, for example, /tmp.

Leave a Reply

Your email address will not be published. Required fields are marked *