1、insuffcient privileges
用户名输入错误,修改用户名
2、invalid username/password login denied
用户名密码输入错误,登录被拒绝
就是密码错误
3、connection as sys should be sysdba or sysoper
sys用户必须作为管理员登录
没有将角色设置为SYSDBA
4、The network Adapter could not establish the connection
ip地址错误
端口错误
如果是通过其他机器连接产生此错误,还可能是因为端口没有打开。
tnsnames.ora 和 listener.ora配置文件和ip地址不一致,例如配置成了域名或者ip地址发生了变更
5、Listener refused the connection with the following ERROR:
Listener:tnslistener doesnot currently know the sid XXX
sid输入错误
如果发现sid没有写错,有可能是监听本身配置错误,需要重新配置监听。
部分同学重新配置监听后依然无法连接,可以直接修改监听文件。
我们需要在监听中添加如下配置。示例如下:
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = C:oracle\product\12.1.0\dbhome_1)
(SID_NAME = ORCL)
)