C:\Users\Tequila>tnsping ORCL;TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 27-JAN-2013 16:54:13Copyright (c) 1997, 2010, Oracle.  All rights reserved.Used parameter files:
F:\app\Tequila\product\11.2.0\dbhome_1\network\admin\sqlnet.oraTNS-03505: Failed to resolve nameC:\Users\Tequila>sqlnet.ora code:
# sqlnet.ora Network Configuration File: F:\app\Tequila\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.# This file is actually generated by netca. But if customers choose to 
# install "Software Only", this file wont exist and without the native 
# authentication, they will not be able to connect to the database on NT.SQLNET.AUTHENTICATION_SERVICES= (NTS)NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
listener.ora code:
# listener.ora Network Configuration File: F:\app\Tequila\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = F:\app\Tequila\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:F:\app\Tequila\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
  )LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
  )ADR_BASE_LISTENER = F:\app\Tequilatnsnames.ora code:
# tnsnames.ora Network Configuration File: F:\app\Tequila\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.LISTENER_ALEX =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
    )
  )ALEX =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = Alex)
    )
  )C:\Windows\System32\drivers\etc\hosts code
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host# localhost name resolution is handled within DNS itself.
127.0.0.1       localhost
# ::1             localhost

解决方案 »

  1.   

    没有多次安装,安装过程中是有报一些错,但是每个错误的窗口,点击继续按钮都能往下进行。安装完成了,就想登陆https://localhost:1158/em/console,但是网页无法显示。请问如果重装,怎么清理注册表 
      

  2.   

    emctl start dbconsole另外清除注册表:
    运行regedit,选择HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE,按del键删除这个入口
    运行regedit,选择HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services,滚动这个列表,删除所有Oracle入口。
      

  3.   

    C:\Users\Tequila>tnsping ORCL;TNS-03505: Failed to resolve nametnsnames.ora code:
    ALEX =
    =======================================
    你的 tnsnames.ora 文件中根本没有 ORCL 的定义啊。
      

  4.   

    sorry,搞错了,我的DB叫ALEX,但我后来run tnsping ALEX; 报错是一样的
      

  5.   


    我记着 tnsping orcl;
    后面不需要加那个分号,如果加上分号的话,ORACLE会认为你TNSPING的是ORCL; 而不是ORCL