把 listener.ora 删掉 在init中加 SERVICE_NAME = TestDB.Oracle.com
先启动 lsnrctl 后启动数据库试试

解决方案 »

  1.   

    lsnrctl --------------指的什么啊
      

  2.   

    改listener.ora
    中的host=你的ip
      

  3.   

    TNS-12154 TNS:could not resolve service nameCause: The service name specified is not defined correctly in the TNSNAMES.ORA file.Action: Make the following checks and correct the error: Verify that a TNSNAMES.ORA file exists and is in the proper place and accessible. See the operating system specific manual for details on the required name and location. Check to see that the service name exists in one of the TNSNAMES.ORA files and add it if necessary. Make sure there are no syntax errors anywhere in the file. Particularly look for unmatched parentheses or stray characters. Any error in a TNSNAMES.ORA file makes it unusable. See the SQL*Net V2 Administrator's Guide. If possible, regenerate the configuration files using the Oracle Network Manager. 
      

  4.   


    试试个 HOST 改为 IP 的方式~本机就输入:127.0.0.1