M
M
melnik19882014-03-16 12:13:53
Oracle
melnik1988, 2014-03-16 12:13:53

How to implement DB_LOGIN from Putty?

Greetings!
On a Windows XP machine, Putty starts up, connects to the HP-UX server by key.
When automatically starting the script using Putty, which makes a select from the database (Oracle), it is not possible to connect to the database.
Remote_command is specified in Putty, authentication by key passes, the script starts, but does not connect to the database. If you just open a terminal and run the script, it works, select is executed and the necessary information is displayed.
echo $DB_LOGIN prints out the correct user.
Perhaps there is some feature of Putty that does not allow you to connect to the database via remote_command, or is the problem something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
Qwadrat, 2014-03-19
@Qwadrat

Make the script output to a text file to see why it won't connect. Maybe there is not enough environment variable or something.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question