Skip to content
Advertisement

How to connect to SQLPLUS and run SQL script within ssh unix?

I have the following bash script:

JavaScript

Now, I want to run te following sql script (which is on the other device I’m accessing):

JavaScript

How is the best practice to run the script from that path?

I’ve seen a suggestion to add “/usr/mikael/myfile.sql” to the end of the command, as :

JavaScript

Is that really good? (I’m working on a prod environment and don’t want to mess with it).

Thanks.

Advertisement

Answer

set does not do what you think it does. Use

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement