mac连接数据库报错,ORA-21561OID generation failed

mac连接数据库报错,ORA-21561: OID generation failed

解决过程:

  1. 打开终端,查看hostname

    hostname

    发现hostname是local而不是localhost

  2. 查看hosts文件

    cd /etc
    open hosts

    内容为:
    ```bash
    ##

    Host Database

    #

    localhost is used to configure the loopback interface

    when the system is booting. Do not change this entry.

    ##

  3. 0.0.1 localhost

  4. 255.255.255 broadcasthost
    ::1 localhost

    Added by Docker Desktop

    To allow the same kube context to work on the host and the container:

  5. 0.0.1 kubernetes.docker.internal

    End of section

    ```
    hostname和hosts文件中不一致

  6. 修改hostname和hosts保持一致

    sudo scutil --set HostName localhost

   转载规则


《mac连接数据库报错,ORA-21561OID generation failed》 海东青 采用 知识共享署名 4.0 国际许可协议 进行许可。
 上一篇
Mac下安装Navicat12 Mac下安装Navicat12
Mac下安装Navicat12 下载安装Navicat_Premium_mac 最新版 12.0.24(原版是英文的) NAS链接:https://s.dmsys.com/Share/s/823ed231b13158850a5e47a90
2019-07-14
下一篇 
windows个人常用软件安装说明 windows个人常用软件安装说明
windows个人常用软件安装说明整理了个人经常使用的一些软件安装包和安装说明 1. 解压软件 winrar-x64-571sc​ 下载地址:链接:https://s.dmsys.com/Share/s/1460aaea2dd9918
2019-07-14
  目录