WEB开发网
开发学院数据库Oracle 连接数据库报错ORA-12514 阅读

连接数据库报错ORA-12514

 2008-09-19 12:55:42 来源:WEB开发网   
核心提示: 发现日志中的IP地址并没有改变,看来是修改IP的时候遗漏了什么位置,连接数据库报错ORA-12514(3),检查HOSTS文件,发现里面的配置忘了进行修改:[oracle@yangtk2admin]$more/etc/hosts#Donotremovethefollowingline,or

发现日志中的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>

上一页  1 2 3 

Tags:连接 数据库 ORA

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接