Expdp on NAS - ORA - 27086 unable to lock file - already in use

Lately came across an error while taking an export using datapump on database version 12.2.0.4 on a NAS drive.

Error Stack

ORA-39001: invalid argument value

ORA-39000: bad dump file specification

ORA-31641: unable to create dump file "<NAS mount location>/export_file.dmp"

ORA - 27086 unable to lock file - already in use

Linux-x86_64 Error: 37: No locks available

Additional information: 10

ORA-27037: unable to obtain file status

Linux-x86_64 Error: 2: No such file or directory


It may initially looks like the file has been already been used by some other process, but looking at the file it was never existed and only created while this export dump and no other process was holding lock on this.

Now one may also think of any problem with NAS export option, but same option has been working fine for long time with no changes. 

At last came to know about about DNFS, this feature is pretty cool and help in pacing up the speed of exports. Check within your database if you see any NAS already being listed

select * from v$dnfs_servers;

If it list zero records then, there is high change your DNFS is disabled and you can enable it by:

make -f ins_rdbms.mk dnfs_on

Note : Please be careful while implementing this production and reach out to experts or oracle support.

After enabling DNFS some time database instance also needs to be restarted to get effect of this and then try export again. This time it will be success.


Often it's observed this feature is not heavily used by organizations. This feature will also speed up your Datapump jobs. These are some caveats as well of using this functionality in case your underlying NAS path is not changed but and using an alias. For such alias if it's pointed to new server you may see error while export and in that case database bounce is needed.

Comments

Popular posts from this blog

How to Solve - "WAIT FOR EMON PROCESS NTFNS"

Query Regression - "OR" Transformation Oracle 19c

ORA - 12537: TNS: connection closed