When running ora_setup as a part of Shareplex installation, the following error is encountered:
$ ./ora_setup
Failed to statvfs SYS_VARDIR: No such file or directory
Couldn't init parameter database: exiting...
Could be a number of reasons, most prominent ones being paramdb not present or incorrect permissions on it.
Check the following conditions and correct them as appropriate:
1. If the vardir was tarred up from elsewhere, and if the paramdb was removed or is non-existent, then a blank paramdb can be recreated with the help of another running Shareplex instance, its permissions set appropriately and then ora_setup re-run.
2. If the ownership/permission of the paramdb is not correct when compared with other paramdb files from other Shareplex instances, then it can be corrected and ora_setup re-run.
3. If the environment variable SP_SYS_VARDIR is not set in the session running ora_setup, then this error will also show up. The environment can be set appropriately and the ora_setup re-run to get past the error.