【问题标题】:VM exported and imported . ORA-12505, TNS:listener does not currently know of SID given in connect descriptorVM 导出和导入。 ORA-12505, TNS: 监听器当前不知道连接描述符中给出的 SID
【发布时间】:2015-04-07 15:10:55
【问题描述】:

您好,我已经导出了我的 vm 并将其导入到其他机器(笔记本电脑),当我尝试构建我的代码时,一切似乎都运行良好,这是我遇到的错误。在做了一些观察后,我发现本地主机引起了问题(我可能错了)。我不是数据库专家,但可以做一些事情。请帮帮我。自 2 周以来一直在尝试解决此问题。

listener.ora

**# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
**# Generated by Oracle configuration tools.****

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = /u01/app/oracle

lsnrctl 启动

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 07-APR-2015 09:45:39

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/11.2.0/dbhome_1//bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Log messages written to /u01/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                07-APR-2015 09:45:39
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /u01/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
The listener supports no services
The command completed successfully

lsnrctl 状态

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 07-APR-2015 10:08:50

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                07-APR-2015 09:45:39
Uptime                    0 days 0 hr. 23 min. 10 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /u01/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
The listener supports no services
The command completed successfully










SQL> startup 
ORA-00845: MEMORY_TARGET not supported on this system
SQL> exit                        
Disconnected
[root@tfdevvm oracle]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_tfdevvm-lv_root
                       60G   24G   34G  41% /
tmpfs                 3.0G  584K  3.0G   1% /dev/shm
/dev/sda1             485M   71M  389M  16% /boot
/dev/sda3              15G   11G  3.2G  78% /media/tf_extn
[root@tfdevvm oracle]# 

【问题讨论】:

  • 这个问题与 ATG 无关。它不应标记为“atg”。

标签: java database oracle oracle11g atg


【解决方案1】:

您的数据库实例没有运行。开火!

$. oraenv -- note the dot! input your SID.
$sqlplus / as sysdba
SQL>startup -- the database will register to the listener automatically.

现在您的侦听器控件中将有一些输出。

【讨论】:

  • 。 oraenv ORACLE_SID = [orcl] ? ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 的 Oracle 基础是 /u01/app/oracle
  • sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 7 12:06:13 2015 版权所有 (c) 1982, 2009 ,甲骨文。版权所有。错误:ORA-12547:TNS:失去联系输入用户名:
  • 我收到了上述错误。 ORA-12547。 @Bjarte Brandt
  • ORACLE_SID 是否正确?请输出 $cat /etc/oratab
  • @Bjarate Brandt $ cat /etc/oratab 这个# Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third filed indicates # to the dbstart utility that the database should , "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # orcl:/u01/app/oracle/product/11.2.0/dbhome_1:Y [oracle@tfdevvm ~]$
猜你喜欢
  • 2013-08-14
  • 2017-05-10
  • 2015-08-31
  • 2020-03-02
  • 1970-01-01
  • 2017-08-22
相关资源
最近更新 更多