Run a script from root and it calls another script that was in the sudo oracle. how to do that without asking the password of the oracle

I’m logging into a linux machine with root and after login i have used su – oracle to connect my database. Now I’ve 2 shell scripts one at root home and one at home/oracle. In the home/oracle I’ve wrote a script for taking the backup of the database. The script available in the root is nohup ssh oracle@onprem-svcdb /home/oracle/ while running the script its asking the password of the oracle, I don’t need it to be like this while running the scripts It doesn’t need to ask the password and it needs to run the script in oracle. What I need to do for that??? Can anyone help for this

Source: shell

Leave a Reply