ORACLE--安装与创建

1、Oracle数据库安装

参考博客:Oracle 11g数据库详细安装步骤图解

 

2、Oracle数据库创建

参考博客: oracle入门很简单:二、创建oracle数据库

参考博客:系列文章--oracle简单入门教程

 

3、“ORA-12505, TNS:listener does not currently know of SID given in connect descriptor ”错误解决

D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN 下的LISTENER.ORA文件、sqlnet.ora文件、tnsnames.ora文件

分别如下:

复制代码
LISTENER.ORA

# listener.ora Network Configuration File: D:\app\Administrator\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 = D:\app\Administrator\product\11.2.0\dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll") ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-S5391DLPF32)(PORT = 1521)) ) ) ADR_BASE_LISTENER = D:\app\Administrator
复制代码
复制代码
sqlnet.ora

# sqlnet.ora Network Configuration File: d:\Oracle\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)
复制代码
复制代码
tnsnames.ora

# tnsnames.ora Network Configuration File: d:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.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) ) )
复制代码

 

posted @ 2018-01-22 10:38  幸福+  阅读(282)  评论(0编辑  收藏  举报