0
点赞
收藏
分享

微信扫一扫

Oracle连通性测试小工具

唯米天空 2022-04-21 阅读 127

系统组在配置中间件时需要数据库连接信息,但是只有在程序运行后,才能确认提供的信息是否可用,下面的小工具比较轻便,可以提前测试数据库的连通性
如下是小工具使用方式

# ./oratest --help
Usage of ./oratest:
  -P string
    	端口 (default "1521")
  -h string
    	地址 (default "127.0.0.1")
  -p string
    	密码 (default "tiger")
  -s string
    	服务名 (default "orcl")
  -u string
    	用户名 (default "scott")

连接信息配置错误

# ./oratest -h 192.168.124.3 -u test -p test -s orcl
test test 192.168.124.3 1521 orcl
连接成功!!

连接信息配置正确

# ./oratest -h 192.168.124.2 -u test -p test -s orcl
test test 192.168.124.2 1521 orcl
连接失败!!

链接:https://pan.baidu.com/s/1OlL0QFHsFZwqV8_04CBpGQ
提取码:zd52
–来自百度网盘超级会员V7的分享

举报

相关推荐

0 条评论