Ubuntu环境配置Oracle踩坑记录

链接数据库报如下错误:

SQL*Plus: Release 12.1.0.2.0 Production on Fri Jun 29 14:43:18 2018

Copyright (c) 1982, 2014, Oracle.  All rights reserved.
ERROR:
ORA-21561: OID generation failed


回车之后报:

  ERROR:

  ORA-12162: TNS:net service name is incorrectly specified


解决方法:

1. 命令 hostname


 2. cat /etc/hosts 查看hosts文件配置是否包含1中的hostname名称


3. 在hosts文件中加入1中hostname:core-db

127.0.0.1 localhost core-db

问题解决



猜你喜欢

转载自blog.csdn.net/JoeFan_Fan/article/details/80856832