on 2019 Dec 26 8:44 AM
Hi All,
I am facing an issue with the HANA OS level commands. I want to execute hdbsql command at cli level, but its giving me the following error:
Then, i have given 777 permission to the hdbsql file but still getting the same error on execution. However, I tried the execution through ./hdbsql and this was successful.
Also, I tried execution of other commands like hdbuserstore they all are giving the same error.
Please suggest some steps to follow to resolve this issue.
Best Regards,
Aditya Chaudhary
Request clarification before answering.
Seems like the folder is not part of your $PATH variable. You can check that with "echo $PATH". Please check in addition if the execution within the .../HDB10/exe folder works (like it is described here) and if yes, if that is part of $PATH.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Florian,
Thanks for your reply.
I have checked the $PATH variable, paths are not set in the variable. I have added the path using the export command and the command is working. But its a temporarily solution.
I also tried to run the hdbenv.sh to set the PATH variable but its is giving the following error:
devadm@<HOSTS>:/usr/sap/DEV/HDB10> ./hdbenv.sh
./hdbenv.sh: line 7: /dev/null: Permission denied
./hdbenv.sh: line 83: /dev/null: Permission denied hdbenv.sh:
Error: Instance not found for host <HOSTS>./hdbenv.sh: line 212: return: can only `return' from a function or sourced script
It seems your user environment is broken. Is your installation a systemcopy? Please check your installation with the resident hdblcm as root:
cd /hana/shared/DEV/hdblcm
./hdblcm --action=check_installation
It also seems to be that the hostname does not match the installation host. You may have to rename the host or the instance with the resident hdblcm. In this current status the environment and the DB is not usable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
18 | |
10 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.