连接数据库报错ORA-12514
2008-09-19 12:55:42 来源:WEB开发网发现日志中的IP地址并没有改变,看来是修改IP的时候遗漏了什么位置。
检查HOSTS文件,发现里面的配置忘了进行修改:
[oracle@yangtk2admin]$more/etc/hosts
#Donotremovethefollowingline,orvariousprograms
#thatrequirenetworkfunctionalitywillfail.
172.25.4.70yangtk2.ytk-thinkpad
127.0.0.1localhost.localdomainlocalhost
将hosts文件中的ip也修改为当前的IP后,问题解决。
[oracle@yangtk2~]$lsnrctlstop
LSNRCTLforLinux:Version11.1.0.6.0-Productionon01-SEP-200818:01:00
Copyright(c)1991,2007,Oracle.Allrightsreserved.
Connectingto(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Thecommandcompletedsuccessfully
[oracle@yangtk2~]$lsnrctlstart
LSNRCTLforLinux:Version11.1.0.6.0-Productionon01-SEP-200818:01:10
Copyright(c)1991,2007,Oracle.Allrightsreserved.
Starting/data/oracle/product/11.1/bin/tnslsnr:pleasewait...
TNSLSNRforLinux:Version11.1.0.6.0-Production
Systemparameterfileis/data/oracle/product/11.1/network/admin/listener.ora
Logmessageswrittento/data/oracle/diag/tnslsnr/yangtk2/listener/alert/log.xml
Listeningon:(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listeningon:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.25.1.104)(PORT=1521)))
Connectingto(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUSoftheLISTENER
------------------------
AliasLISTENER
VersionTNSLSNRforLinux:Version11.1.0.6.0-Production
StartDate01-SEP-200818:01:10
Uptime0days0hr.0min.0sec
TraceLeveloff
SecurityON:LocalOSAuthentication
SNMPOFF
ListenerParameterFile/data/oracle/product/11.1/network/admin/listener.ora
ListenerLogFile/data/oracle/diag/tnslsnr/yangtk2/listener/alert/log.xml
ListeningEndpointsSummary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.25.1.104)(PORT=1521)))
Thelistenersupportsnoservices
Thecommandcompletedsuccessfully
稍等一会,通过sqlplus连接数据库:
[oracle@yangtk2~]$sqlplussys/test@ora11g_sassysdba
SQL*Plus:Release11.1.0.6.0-ProductiononMonSep118:03:162008
Copyright(c)1982,2007,Oracle.Allrightsreserved.
Connectedto:
OracleDatabase11gEnterpriseEditionRelease11.1.0.6.0-Production
WiththePartitioning,OLAP,DataMiningandRealApplicationTestingoptions
SQL>
- ››oracle 中 UPDATE nowait 的使用方法
- ››Oracle ORA-12560解决方法
- ››Oracle 10g RAC 常用维护命令
- ››Oracle如何在ASM中定位文件的分布
- ››Oracle的DBMS_RANDOM.STRING 的用法
- ››oracle 外部表导入时间日期类型数据,多字段导入
- ››Oracle中查找重复记录
- ››oracle修改用户登录密码
- ››Oracle创建删除用户、角色、表空间、导入导出等命...
- ››Oracle中登陆时报ORA-28000: the account is lock...
- ››Oracle数据库在配置文件中更改最大连接数
- ››Oracle中在pl/sql developer修改表的两种方式
更多精彩
赞助商链接