有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

导出和导入java虚拟机。ORA12505,TNS:侦听器当前不知道连接描述符中给定的SID

嗨,我已经导出了我的虚拟机,并将其导入到其他机器(笔记本电脑),当我尝试构建代码时,一切似乎都正常工作。这就是我遇到的错误。看了几眼后,我发现本地主机造成了问题(我可能错了)。我不是一个数据库的家伙,但可以做周围的事情。请帮帮我。从两周前开始尝试解决这个问题

听众。奥拉

**# 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]# 

共 (1) 个答案

  1. # 1 楼答案

    您的数据库实例未运行。点火

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

    现在,您将在侦听器控件中获得一些输出