前提・実現したいこと
Mac OS X 13.0の環境下で
Docker3.0.0を用いてOracle 19cの環境を作成しようとしているところです。
https://qiita.com/alashino/items/41b5957cd864bbcc6ef8
上記のサイトを参考に環境の構築を行い、
docker runを行い、データベースの作成を行いました。
必要なOracle公式のDockerFileをダウンロードし、Oracle公式のデータベースのzipファイルを入試後、以下の実行を行いました。
./buildDockerImage.sh -v 19.3.0 -e -i
docker run --name YU_oracle \ > -p 1521:1521 -p 5500:5500 \ > -e ORACLE_SID=YUSID \ > -e ORACLE_PDB=YUPDB \ > -e ORACLE_PWD=butanko7 \ > -e ORACLE_CHARACTERSET=AL32UTF8 \
その結果、以下の結果が表示され、
データベースを使えるようになったのかと思い、
その後のログファイル出力の状態になっているターミナルを強制終了したのですが、
その際にリスナーの設定についてのエラーが出てしまいました。
^CStopping container. SIGINT received, shutting down database! SQL*Plus: Release 19.0.0.0.0 - Production on Mon Jun 21 09:40:03 2021 Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle. All rights reserved. Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0 SQL> 2021-06-21T09:40:03.308903+00:00 Shutting down ORACLE instance (immediate) (OS id: 3848) 2021-06-21T09:40:06.141006+00:00 Stopping background process SMCO 2021-06-21T09:40:08.211742+00:00 Shutting down instance: further logons disabled 2021-06-21T09:40:09.820449+00:00 Stopping background process CJQ0 2021-06-21T09:40:09.858352+00:00 Killed process oracle@17048282c71a (Q002) with pid is 44, OS pid 3303 Stopping background process MMNL 2021-06-21T09:40:09.858753+00:00 Process termination requested for pid 3303 [source = rdbms], [info = 2] [request issued by pid: 3848, uid: 54321] 2021-06-21T09:40:10.884294+00:00 Stopping background process MMON 2021-06-21T09:40:12.989768+00:00 alter pluggable database all close immediate 2021-06-21T09:40:13.123484+00:00 YUPDB(3):JIT: pid 3848 requesting stop 2021-06-21T09:40:14.032867+00:00 YUPDB(3):Buffer Cache flush deferred for PDB 3 2021-06-21T09:40:14.639638+00:00 Pluggable database YUPDB closed Completed: alter pluggable database all close immediate PDB$SEED(2):JIT: pid 3848 requesting stop PDB$SEED(2):Buffer Cache flush deferred for PDB 2 License high water mark = 20 2021-06-21T09:40:15.398564+00:00 Dispatchers and shared servers shutdown Data Pump shutdown on PDB: 1 in progress ALTER DATABASE CLOSE NORMAL Stopping Emon pool alter pluggable database all close immediate Completed: alter pluggable database all close immediate IM on ADG: Start of Empty Journal IM on ADG: End of Empty Journal Stopping Emon pool stopping change tracking 2021-06-21T09:40:15.753124+00:00 Shutting down archive processes 2021-06-21T09:40:15.754151+00:00 TT00 (PID:3291): Gap Manager exiting Database closed. Database dismounted. 2021-06-21T09:40:16.754464+00:00 Archiving is disabled 2021-06-21T09:40:16.756001+00:00 Thread 1 closed at log sequence 7 Successful close of redo thread 1 2021-06-21T09:40:16.761263+00:00 Buffer Cache invalidation for all PDBs started Buffer Cache invalidation for all PDBs complete Completed: ALTER DATABASE CLOSE NORMAL ALTER DATABASE DISMOUNT Shutting down archive processes Archiving is disabled Completed: ALTER DATABASE DISMOUNT .... (PID:3848): Archival disabled due to shutdown: 1089 Shutting down archive processes Archiving is disabled 2021-06-21T09:40:19.055379+00:00 JIT: pid 3848 requesting stop .... (PID:3848): Archival disabled due to shutdown: 1089 Shutting down archive processes Archiving is disabled JIT: pid 3848 requesting stop 2021-06-21T09:40:21.709968+00:00 Stopping background process VKTM ORACLE instance shut down. 2021-06-21T09:40:37.617854+00:00 Instance shutdown complete (OS id: 3848) SQL> Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0 LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 21-JUN-2021 09:40:41 Copyright (c) 1991, 2019, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) The command completed successfully Stopping container. SIGINT received, shutting down database! SQL*Plus: Release 19.0.0.0.0 - Production on Mon Jun 21 09:40:41 2021 Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle. All rights reserved. Connected to an idle instance. SQL> ERROR: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux-x86_64 Error: 2: No such file or directory Additional information: 4376 Additional information: 921733559 Process ID: 0 Session ID: 0 Serial number: 0 SQL> Disconnected LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 21-JUN-2021 09:40:43 Copyright (c) 1991, 2019, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 2: No such file or directory Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused
特に以下の内容がどうして出てしまったのかわからない状況です。。
SQL> Disconnected LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 21-JUN-2021 09:40:43 Copyright (c) 1991, 2019, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 2: No such file or directory Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused
また、listener.oraやtnsnames.oraのファイルをMac内で探してみても見つからず、
どこでリスナーの設定を行えば良いのか、
そもそもOracleの環境がちゃんと作られているのかがdockerを使っているぶんよくわからない状況です。。
この内容に対して、何か思い当たることなどある方がおられたらご助言いただけないでしょうか。
お手数をおかけして大変申し訳ございませんが、よろしくお願いいたします。
あなたの回答
tips
プレビュー