Please excuse me if the question is misleading. I'm trying to understand the way the environment settings work for the user "mysql".
I'm following this guide to connect an Oracle DB from a MariaDB installation.
I had managed to install the required libraries and succeed to connect from the root command line.
But when trying to connect from MariaDB I get this message:
[unixODBC][Driver Manager]Can't open lib '/home/oraclec/instantclient_12_1/libsqora.so.12.1' : file not found
The same happened the first time I tried to connect from the root command line and I solved it adding these lines to the /root/.bash_profile
file:
CLIENT_HOME=/home/oraclec/instantclient_12_1 ; export CLIENT_HOME
LD_LIBRARY_PATH=/home/oraclec/instantclient_12_1 ; export LD_LIBRARY_PATH
So, I'm trying to do the same thing for the user "mysql" but there is no a .bash_profile
for this user.
In conclusion, where should I put these paths in order to get the user "mysql" access them?
Note: The server is running CentOS 6.5.