日期:2014-05-16  浏览次数:20874 次

ORA-12505 错误 ,试了网上很多办法没有解决 (版本是11g)
可以使用SQLPLUS正常登录,
sql>show suer
user 为"sys"

通过Database Control - cffadatabase  可以发现以下信息
主机 localhost
端口 1521
SID cffadatabase
Oracle 主目录 D:\oracle\product\11.2.0\dbhome_2
此处说明一下:dbhome_2 是因为装了两边软件  第一边失败使因为万恶的甲骨文 自己不解压第二个压缩包。

系统已经启动的服务:




甲骨文的listener


listener.ora 里面的内容是
# listener.ora Network Configuration File: D:\oracle\product\11.2.0\dbhome_2\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = cffadatabase)
      (ORACLE_HOME = D:\oracle\product\11.2.0\dbhome_2)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:D:\oracle\product\11.2.0\dbhome_2\bin\oraclr11.dll")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = D:\oracle



LISTENER.ORA  里面的内容是
# copyright (c) 1997 by the Oracle Corporation

# NAME
#   listener.ora
# FUNCTION
#   Network Listener startup parameter file example
# NOTES
#   This file contains all the parameters for listener.ora,
#   and could be used to configure the listener by uncommenting
#   and changing values.  Multiple listeners can be configured
#   in one listener.ora, so listener.ora parameters take the form
#   of SID_LIST_<lsnr>, where <lsnr> is the name of the listener
#   this parameter refers to.  All parameters and values are
#   case-insensitive.

# <lsnr>
#   This parameter specifies both the name of the listener, and
#   it listening address(es). Other parameters for this listener
#   us this name in place of <lsnr>.  When not specified,
#   the name for <lsnr> defaults to "LISTENER", with the default
#   address value as shown below.
#
# LISTENER =
#  (ADDRESS_LIST=
# (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
# (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))

# SID_LIST_<lsnr>
#   List of&nbs