SQLPLUS from a remote server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting SQLPLUS from a remote server
# 1  
Old 08-07-2006
SQLPLUS from a remote server

Hi,
I am trying to connect to Oracle server (installed in HP UNIX) from some other HP UNIX server using sqlplus

Can you somebody advice me method to connect to Database without user ID and password field or atleast password field from Remote Server

Regards,
Giri
# 2  
Old 08-07-2006
It is easy to connect to another UNIX server via ssh and then run and use sqlplus.

Tilen
# 3  
Old 08-07-2006
I did not understand you, please explain it further
# 4  
Old 08-07-2006
Let's say, you have 2 unix servers. The 1st one has installed the Oracle database and you wish to connect to this one to use sqlplus on it but from the 2nd server. On the 1st server you shall install the open-ssh utility and run the sshd service, and install the open-ssh utility on the 2nd server too. Then lets login into the 2nd server. Via ssh connect to the 1st server (ssh <user>@<1st_server_name>), type the password in and voila... you're connected to the 2nd server. Then just run the sqlplus application and start to work.

Does mybe that solve your problem?

Tilen
# 5  
Old 08-08-2006
Thanks for the reply.

My requirement is, I want to use SQLPLUS in a batch job and usage and password is not allowed as per copmany's security polocy

So, I am checknig out for alternatives in connecting to Database with "sqlplus /" sort of option without Security viloation
# 6  
Old 08-08-2006
Oh. Erm ... with the ssh-utility you can also execute a command on the remote machine without need of entering a password. That's verry useful for scripts.

For example: ssh <user>@<address> "<anny command>"

I think, you can run and use sqlplus from a script, on a remote machine. But this utility is for UNIX environment so if you want to test this logic on windows, I recommend you to install the Cygwin environment.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies

2. Shell Programming and Scripting

Sudo connect to a remote server and execute scripts in remote server

Hello Every one!! I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server. Before this I am using a sudo command to change the user. The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies

3. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

4. Shell Programming and Scripting

How to Append the output of a script running in remote server to a file in local server?

Hi guys, So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies

5. Solaris

Script to get files from remote server to local server through sftp without prompting for password

Hi, I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script. Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 Replies

6. Shell Programming and Scripting

Executing remote server sqlplus

Hello Guys I have to compare flat file record to oracle table record count count which are on different servers I am taking the flat file record count from the server now I am connecting to remote server first and then running sqlplus But after connecting to remote server the sqlplus... (3 Replies)
Discussion started by: Pratik4891
3 Replies

7. Programming

SFTP from one remote server to another remote server from desktop

Hi, I have 1. lappy 2. server A 3. server B Now, what i need is to run a command from lappy that will sftp a file from server A to server B. Please guide me to achieve this. -akash (1 Reply)
Discussion started by: akash.mahakode
1 Replies

8. Shell Programming and Scripting

preserving the timestamp of a file when copied from remote server to local server using ftp

Hi, I need to copy few files from remote server to local server. I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed. ... (5 Replies)
Discussion started by: arunkumarmc
5 Replies

9. Shell Programming and Scripting

Can a script runned in local server access remote server?

Hi, Im creating a script that is supposed to run commands on remote server using sftp. My script is as below: #!/bin/ksh sftp remote_server mypassword cd /u08/mydir/allfiles mget * .. But this is what I got when I runned the script: Connecting to remote server...... (3 Replies)
Discussion started by: luna_soleil
3 Replies

10. Shell Programming and Scripting

code to FTP the spool file from Sqlplus to the unix server.

I have a sqlplus report and inside that report I have the following piece of code to mail the report output to the email id. My requirement is, instead of emailing the output I want to FTP that script to a different unix server (say ip as 10.10.1.1). How to modify this code to FTP the spool file... (0 Replies)
Discussion started by: vprevin
0 Replies
Login or Register to Ask a Question