There was an issue with permissions on the files in the DB so I corrected these.After this login was successful. we added the system back to the domain so both were in the same domain.
It was specifically the lock files in /nas/volume/ that were incorrect. I made the permissions 644 as they are supposed to be.
I am not sure why they were incorrect in the first place but on comparison with a box in our lab they were not the same.