title: Can't restart oracle database inside docker
body: <p>So I'm trying to configure debezium on a Oracle database inside <a href="https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance" rel="nofollow noreferrer">this</a> docker image, according to the documentation described <a href="https://debezium.io/documentation/reference/1.6/connectors/oracle.html" rel="nofollow noreferrer">here</a>.</p>
  <p>At the &quot;Preparing the Database&quot; the first config I have to do is:</p>
  <pre><code>ORACLE_SID=ORACLCDB dbz_oracle sqlplus /nolog
  
  CONNECT sys/top_secret AS SYSDBA
  alter system set db_recovery_file_dest_size = 10G;
  alter system set db_recovery_file_dest = '/opt/oracle/oradata/recovery_area' scope=spfile;
  shutdown immediate
  startup mount
  alter database archivelog;
  alter database open;
  -- Should now &quot;Database log mode: Archive Mode&quot;
  archive log list
  
  exit;
  </code></pre>
  <p>The problem is that when I run <code>shutdown immediate</code>, the database dies and never returns. When I try to run:</p>
  <pre><code>docker exec -ti oracle sqlplus sys/top_secret@localhost:1521/ORCLCDB as SYSDBA
  </code></pre>
  <p>I get the error:</p>
  <pre><code>SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 10 07:44:23 2021
  Version 19.3.0.0.0
  
  Copyright (c) 1982, 2019, Oracle.  All rights reserved.
  
  ERROR:
  ORA-12514: TNS:listener does not currently know of service requested in connect
  descriptor
  </code></pre>
  <p>I tried running <a href="https://github.com/oracle/docker-images/blob/main/OracleDatabase/SingleInstance/dockerfiles/19.3.0/startDB.sh" rel="nofollow noreferrer">this script</a> inside the container, but still nothing. Anyone knows how could I start the database again?</p>