是否可以使用某种反向代理通过OCI连接到Oracle数据库(11g)?现在,我必须使用RDP连接到虚拟机,这个VM托管在我的客户端网络中,我必须在它上进行开发。我想从我的计算机连接到我的客户端数据库,这样我就可以使用SQL来更快地开发应用程序,而不是在那个VM上。
发布于 2015-12-21 16:26:07
您可以通过建立ssh隧道来远程访问数据库。
#ssh -N -L [local port]:[database host]:[remote port] [username]@[remote host]
ssh -N -L 9998:x.x.x.x:1521 -i ~/.ssh/id_rsa_aws.pem ec2-user@x.x.x.x
# in a new terminal, login locally. (you are now going into the tunnel)
sqlplus user/pass@localhost:9998/XE如果您在Windows上使用putty。
https://dba.stackexchange.com/questions/124185
复制相似问题