通过ppas文档可以查到通过阿里云虚机通过命令行访问ppas:
4.3.3 命令行连接实例
在RDS管理控制台的基本信息页面,可以找到实例的连接地址和端口。
假设我们有如下实例:
testppas.ppas.rds.aliyuncs.comm:3433
创建数据库:
createdb -U testppas -h testppas.ppas.rds.aliyuncs.com -p 3433 oracle
连接数据库:
psql -U testppas -h testppas.ppas.rds.aliyuncs.com -p 3433 oracle
Password for user testppas: psql (8.4.20, server 9.3.5.14)
WARNING: psql version 8.4, server version 9.3.
Some psql features might not work.
Type "help" for help.
oracle=>
但是我现在用的是外网,连接的时候提示超时,请问是不是只有阿里云内网才能命令行访问ppas,外网访问该怎么办?
RDS申请外网地址试试看:https://help.aliyun.com/document_detail/26128.html?source=5176.11533457&userCode=ffsbbyn0&type=copy
您好,
看这里的例子,RDS for PPAS 可能有公网的地址,形如:rdsv07z563m7o25cj550public.ppas.rds.aliyuncs.com
请参考: