Sunday, June 30, 2019

oraenv unary operator expected

If you are getting the error unary operator expected while setting the environment of an Oracle instance using the oraenv command, then one reason could be that the path of the ORACLE HOME inside the /etc/oratab file must have been a symbolic link. oraenv works with only real paths, not symbolic links. You can still have symbolic links to ORACLE HOME, but the /etc/oratab must only have the real path.