如何使用SID创建TNS连接" orcl"在顶级听众

时间:2016-07-03 18:31:38

标签: oracle rest oracle-apex

我差点完成安装实验性的Oracle Apex Listener。但是在最后的安装步骤中我遇到了一个问题:TNS名称带有名称为#34的SID; orcl"不存在,它不在文件" tnsnames.ora"其中TNS名称。

  1. 首先,我试图输入名称" orcl"的SID特征。在" tnsnames.ora"手动覆盖记事本++,但它没有帮助(链接到图片如下):
  2. ORA-12505 后来我试图为SID" orcl"输入数据。并打开访问此命令提示符:

    C:\oraclexe\app\oracle\product\11.2.0\server\apex>sqlplus sys as sysdba
    Enter password:
    
    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
    
    
    SQL> alter system set local_listener = '(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)
    PORT=1521))' scope = both;
    
    System altered.
    
    SQL> alter system register;
    
    
    System altered.
    
    C:\oraclexe\app\oracle\product\11.2.0\server\apex>lsnrctl stat
    
    LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 29-JUN-2016 21:28
    :13
    
    
    Copyright (c) 1991, 2014, Oracle.  All rights reserved.
    
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Start Date                29-JUN-2016 20:37:36
    Uptime                    0 days 0 hr. 50 min. 37 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   C:\oraclexe\app\oracle\product\11.2.0\server\network\a
    dmin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\diag\tnslsnr\MrPloomipuu\listen
    er\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MrPloomipuu)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MrPloomipuu)(PORT=8025))(Presentatio
    n=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
      Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
      Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    

    所有相同的内容都无法使用名称' orcl'来创建SID。并通过该SID在顶层侦听器上安装TNS connecton。我在这做什么?

0 个答案:

没有答案