有三种原因会导致 could not establish the connection 的错误信息
1、数据库没有启动 (请用sql*plus尝试连接)
2、数据库连接的listener没有启动(使用lsnrctl)
3、你提供的数据库连接的URL是错误的
    请保证你用的是正确的url,你需要提供instance name 而不是 servername, 去寻找instance name 我一般使用select INSTANCE_NAME from V$INSTANCE