Home » RDBMS Server » Server Administration » Running a Script on Database from Remote Machine
Running a Script on Database from Remote Machine [message #53966] Tue, 22 October 2002 08:26 Go to next message
sai sreenivas jeedigunta
Messages: 370
Registered: November 2001
Senior Member
I have 2 machines A and B
B Machine has got oracle database installed in it.
In A machine i dont have any Oracle Components installed...
I have a Script file in machine A , which i want to Execute on machine B ...But i have to execute the script only from Machine A..
Please help me with the procedure..

Thanks and regards
SAI
Re: Running a Script on Database from Remote Machine [message #53969 is a reply to message #53966] Tue, 22 October 2002 09:27 Go to previous messageGo to next message
B
Messages: 327
Registered: August 1999
Senior Member
Mount an FS and share it between A andd B...
or
Use FTP to put the script on server B ...
or
USe RCP to put the script on sever B...
or
Install Oracle client side on server A
Re: Running a Script on Database from Remote Machine [message #53977 is a reply to message #53966] Tue, 22 October 2002 17:27 Go to previous message
Trifon Anguelov
Messages: 514
Registered: June 2002
Senior Member
Hope you have UNIX based machines. Then install ssh on both of them (if you still doesn't have it). Create authorized_keys file in both users ~/.ssh directory so you can login through SSH w/o password from machine to machine.

Then simple run from the machine A :

scp script_to_run username@machineB:/tmp

ssh username@machineB:/oracle_home/bin/sqlplus username/password @/tmp/script_to_run

You can do the same with rcp and rsh if security is not a concern.

Hope that helps,

clio_usa
OCP - DBA

Visit our Web site

Previous Topic: Migrating from 8i to 9i
Next Topic: Re: ocp sql & pl/sql - dumps
Goto Forum:
  


Current Time: Fri Dec 27 00:55:52 CST 2024