2016-05-06 101 views
0

我在Ubuntu 14下載了oraclexe 11g的碼頭容器。 一切正常,我創建表,插入數據等,然後我提交容器,生成一個新的圖像oracle映像,但與我的表和數據)。ORA-12547:TNS:失去聯繫

問題:

我不能連接到我的數據庫,我的新創建的圖像,無論是本地還是遠程。 關於該錯誤的任何提示? 甲骨文圖像: https://hub.docker.com/r/sath89/oracle-xe-11g/

**sqlplus/as sysdba 
SQL*Plus: Release 11.2.0.2.0 Production on Fri May 6 20:13:43 2016 
Copyright (c) 1982, 2011, Oracle. All rights reserved. 
ERROR: 
ORA-12547: TNS:lost contact** 



listener.ora 
SID_LIST_LISTENER = 
    (SID_LIST = 
    (SID_DESC = 
     (SID_NAME = PLSExtProc) 
     (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe) 
     (PROGRAM = extproc) 
    ) 
    (SID_DESC = 
     (SID_NAME = XE) 
     (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe) 
    ) 
) 
LISTENER = 
    (DESCRIPTION_LIST = 
    (DESCRIPTION = 
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE)) 
     (ADDRESS = (PROTOCOL = TCP)(HOST = e68b846e86b8)(PORT = 1521)) 
    ) 
) 

tnsnames.ora 
# tnsnames.ora Network Configuration File: 
XE = 
    (DESCRIPTION = 
    (ADDRESS = (PROTOCOL = TCP)(HOST = e68b846e86b8)(PORT = 1521)) 
    (CONNECT_DATA = 
     (SERVER = DEDICATED) 
     (SERVICE_NAME = XE) 
    ) 
) 
EXTPROC_CONNECTION_DATA = 
    (DESCRIPTION = 
    (ADDRESS_LIST = 
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE)) 
    ) 
    (CONNECT_DATA = 
     (SID = PLSExtProc) 
     (PRESENTATION = RO) 
    ) 
) 

lsnrctl status 
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 06-MAY-2016 20:11:55 
Copyright (c) 1991, 2011, Oracle. All rights reserved. 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE))) 
STATUS of the LISTENER 
------------------------ 
Alias      LISTENER 
Version     TNSLSNR for Linux: Version 11.2.0.2.0 - Production 
Start Date    06-MAY-2016 20:11:22 
Uptime     0 days 0 hr. 0 min. 32 sec 
Trace Level    off 
Security     ON: Local OS Authentication 
SNMP      OFF 
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora 
Listener Log File   /u01/app/oracle/product/11.2.0/xe/log/diag/tnslsnr/e68b846e86b8/listener/alert/log.xml 
Listening Endpoints Summary... 
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE))) 
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e68b846e86b8)(PORT=1521))) 
Services Summary... 
Service "PLSExtProc" has 1 instance(s). 
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... 
Service "XE" has 1 instance(s). 
    Instance "XE", status UNKNOWN, has 1 handler(s) for this service... 
The command completed successfully 

lsnrctl services 
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 06-MAY-2016 20:12:34 
Copyright (c) 1991, 2011, Oracle. All rights reserved. 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE))) 
Services Summary... 
Service "PLSExtProc" has 1 instance(s). 
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... 
    Handler(s): 
     "DEDICATED" established:0 refused:0 
     LOCAL SERVER 
Service "XE" has 1 instance(s). 
    Instance "XE", status UNKNOWN, has 1 handler(s) for this service... 
    Handler(s): 
     "DEDICATED" established:0 refused:0 
     LOCAL SERVER 
The command completed successfully 

回答

0

的問題是與dockerfile安裝Oracle數據文件夾 VOLUME 「/ U01 /應用/神諭」

當我將我的容器,這個文件夾是不是保存到我的新圖像,生成錯誤以啓動數據庫。

相關問題