Oracle数据库

(1) 安装好Oracle后,启动Oracle数据库,测试orcl失败,报错“ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务,需要修改监听文件。
修改前:

# listener.ora Network Configuration File: D:\Soft\oracle10g\listener.ora
# Generated by Oracle configuration tools.
 
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\Oracle11g\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\Oracle11g\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
)
 
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.12.31)(PORT = 1521))
)
)
 
ADR_BASE_LISTENER = D:\Oracle11g
修改后:
# listener.ora Network Configuration File: D:\Soft\oracle10g\listener.ora
# Generated by Oracle configuration tools.
 
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)
)
 
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.12.31)(PORT = 1521))
)
)
 
ADR_BASE_LISTENER = D:\app\Administrator
 
这样修改之后貌似都没问题了。
(2)C#连接不上Oracle 9i数据库(连接Oracle11g没问题。)
    问题描述:用PLSQL Developer可以登录,客户端不能登录,报错“ORA-12154:TNS:无法处理服务名 ,解决方法:

Oracle数据库

Oracle数据库,布布扣,bubuko.com

Oracle数据库

上一篇:怎么抠发丝多无规则的图?PS利用调整边缘抠图


下一篇:Oracle导出CSV文件