zoukankan      html  css  js  c++  java
  • plsql连接oracle 64位数据库ORA-12514错误

    今天帮小师妹还原数据库,删除表空间的时候把数据库搞坏了,plsql连接时报了

    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    错误。反复修改监听文件也是没能得到解决。
    知道看到网上的解决方案:
    1. 首先打开SQL Plus, sys as sysdba;
    show parameter;
     startup open hstestdb;
    发现了这两个错误
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'
    2.
    SQL> create pfile from spfile=‘D:appfyproduct11.2.0dbhome_1databaseSPFILEORCL.ORA';
    执行该语句后在database下会生成INITORCL.ORA文件
    把INITORCL.ORA文件中的*.local_listener的值改成,如:
    *.local_listener='(ADDRESS_LIST=(Address=(Protocol=tcp) (Host=serverIP)(Port=1521)))'
    再执行
    SQL> create spfile from pfile=‘D:appfyproduct11.2.0dbhome_1databaseORCL.ORA';
    SQL>startup
    这样就启动了 (ORCL是SID) 
     
    重新登录PLSQL就成功了。
     
     
  • 相关阅读:
    django 设置局域网内访问项目
    104. Maximum Depth of Binary Tree
    multi dimension array
    Longest Plindrome Subarray
    BlockQueue
    H2O
    HoppingIterator
    midStack
    Reverse Words in a String II
    public boolean canPlaceFlowers(List<Boolean> flowerbed, int numberToPlace)
  • 原文地址:https://www.cnblogs.com/liflying/p/4360799.html
Copyright © 2011-2022 走看看