简体   繁体   English

通过IP地址与RMAN连接到数据库

[英]Connect with RMAN to database by ip address

After rman target / I am connected to my local database, however I would like to connect to database to which I have credentials - ip, port, username, password (in general to which I can connect via SQLDeveloper).rman target /我连接到我的本地数据库之后,但是我想连接到我拥有凭据的数据库 - ip、端口、用户名、密码(通常我可以通过 SQLDeveloper 连接到这些数据库)。 Is it possible through RMAN?可以通过 RMAN 吗?

To use rman on a 'remote' server, you need to have oracle client installed (not the instant one, the full one).要在“远程”服务器上使用 rman,您需要安装 oracle 客户端(不是即时客户端,而是完整客户端)。 And then you can configure an entry in the tnsnames.ora file to point to which db you want.然后你可以在 tnsnames.ora 文件中配置一个条目来指向你想要的数据库。 You can do, the same if you have a full db install on your system, just add an alias to the remote db.您可以这样做,如果您在系统上安装了完整的数据库,只需为远程数据库添加一个别名即可。

It isn't shown in the documentation , but you can use 'easy connect' syntax:它没有显示在文档中,但您可以使用“轻松连接”语法:

rman target user@hostname:port/servicename

or if you don't want to be prompted for the password (less secure!):或者如果您不想被提示输入密码(不太安全!):

rman target user/password@hostname:port/servicename

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM