I am suppose to run an sql script which is in a remote box the manual steps are as below after connecting to the box with userid and password
Then sudo su – fa3dev
account Password:*******
sqlplus / as sysdba
connect XX_fusion_custom
password *****
@abc.sql
When I run this manually all works fine
When I run from jenkins as a remote shell script as below
ssh fa3dev@server 'source .bash_profile; sqlplus xx_fusion_custom/password'
In console it gives Sql connected and disconnected
if I run ssh fa3dev@server 'source .bash_profile; sqlplus xx_fusion_custom/password;sqlplus / as sysdba;connect XX_fusion_custom;select user from dual' it gives syntax error near unexpected token `from' in jenkins console , i guess I am not able to connect to the database , any help in this would really be appriciable, I cannot user SQL plugin as I cant install oracle cleint in the jenkins box