1、Oracle数据库安装
2、Oracle数据库创建
参考博客: oracle入门很简单:二、创建oracle数据库
参考博客:系列文章--oracle简单入门教程
3、“ORA-12505, TNS:listener does not currently know of SID given in connect descriptor ”错误解决
D:appAdministratorproduct11.2.0dbhome_1NETWORKADMIN 下的LISTENER.ORA文件、sqlnet.ora文件、tnsnames.ora文件
分别如下:
LISTENER.ORA
# listener.ora Network Configuration File: D:appAdministratorproduct11.2.0dbhome_1 etworkadminlistener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = D:appAdministratorproduct11.2.0dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:D:appAdministratorproduct11.2.0dbhome_1inoraclr11.dll") ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-S5391DLPF32)(PORT = 1521)) ) ) ADR_BASE_LISTENER = D:appAdministrator
sqlnet.ora
# sqlnet.ora Network Configuration File: d:Oracleproduct11.2.0dbhome_1 etworkadminsqlnet.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)
tnsnames.ora
# tnsnames.ora Network Configuration File: d:Oracleproduct11.2.0dbhome_1 etworkadmin nsnames.ora # Generated by Oracle configuration tools. ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) (CONNECT_DATA = (SID = CLRExtProc) (PRESENTATION = RO) ) ) ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-S5391DLPF32)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )