how to execute shell script in another server that contain sql.

hi all,

how to execute shell script in another server that contain sql script. i tried using "ssh -l" option.. but i am unable to load the environment variable of the remote host.
please suggest how execute the shell script contain sql part inside it.

To an Oracle rdbms?

yeah in host server is having oracle 10 and remote server is having oracle 8.