title: ORA-01017: invalid username/password; logon denied is thrown by the Oracle 12c "Database Configuration Assistant" tool
body: <p>I'm encountering an "invalid username/password" error when trying to create a pluggable database in the container database with Oracle 12c. The error occurs when the "Database Configuration Assistant" tries to load the information of the container database ORCL. Please find below a screenshot of the error:</p>
  
  <p><a href="https://i.stack.imgur.com/Xb5WL.png" rel="nofollow noreferrer">dbcaError</a></p>
  
  <p>As you can notice the fields "Username" and "Password" are grayed out. I can access the OCRL database by using sqlplus (sqlplus / as sysdba). </p>
  
  <p>I can see the following exception in the log file C:\oracle12c\userName\cfgtoollogs\dbca\dbcaui.log</p>
  
  <p>---# Begin Stacktrace #---------------------------
  ID: oracle.install.commons.util.exception.DefaultErrorAdvisor:1824
  oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-01017: invalid username/password; logon denied</p>
  
  <pre><code>at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1739)
  at oracle.sysman.assistants.util.sqlEngine.SQLEngine.connect(SQLEngine.java:987)
  at oracle.sysman.assistants.util.PluggableDatabaseUtils.isCDB(PluggableDatabaseUtils.java:278)
  at oracle.sysman.assistants.dbca.wizard.view.DatabaseListPage.doValidate(DatabaseListPage.java:911)
  at oracle.sysman.assistants.util.wizard.WizardPanel.validate(WizardPanel.java:269)
  at oracle.install.commons.flow.validation.ValidationHelper.validateView(ValidationHelper.java:168)
  at oracle.install.commons.flow.AbstractFlowExecutor.validate(AbstractFlowExecutor.java:391)
  at oracle.install.commons.flow.AbstractFlowExecutor.leaveVertex(AbstractFlowExecutor.java:644)
  at oracle.install.commons.flow.AbstractFlowExecutor.transition(AbstractFlowExecutor.java:336)
  at oracle.install.commons.flow.AbstractFlowExecutor.nextState(AbstractFlowExecutor.java:276)
  at oracle.install.commons.flow.AbstractFlowExecutor.nextViewState(AbstractFlowExecutor.java:235)
  at oracle.install.commons.flow.DefaultFlowNavigator.goForward(DefaultFlowNavigator.java:58)
  at oracle.install.commons.flow.jewt.FlowWizard$1.run(FlowWizard.java:137)
  at oracle.install.commons.flow.jewt.FlowWizard$TransitionManager$1.run(FlowWizard.java:113)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
  at java.lang.Thread.run(Thread.java:682)
  </code></pre>
  
  <p>Any idea on how to solve the problem?</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This is the content of my tnsnames.ora 
  C:\oracle12c\icirillo\product\12.1.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora</p>
  
  <pre><code># tnsnames.ora Network Configuration File: C:\oracle12c\icirillo\product\12.1.0\dbhome_1\network\admin\tnsnames.ora
  # Generated by Oracle configuration tools.
  
  LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
  
  
  ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
      )
      (CONNECT_DATA =
        (SID = CLRExtProc)
        (PRESENTATION = RO)
      )
    )
  
  ORCL =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
      (CONNECT_DATA =
        (SERVER = DEDICATED)
        (SERVICE_NAME = orcl.ivano.mydomain.net)
        #(SERVICE_NAME = ORCL)
      )
    )
  </code></pre>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>I figured out another thing. If in the DBCA I select "Delete database" (instead of "Manage Pluggable Database-->create Pluggable database") when I reach the database list form (the one in the image above) and then I click on next, I do not encounter the same issue, I can navigate to the next form without any issue (no error messages are displayed).</p>
  
  <p><strong>UPDATE 3</strong>
  When looking at the installation log I could notice a problem with disk space. Maybe this could have corrupted something. I will try to reinstall.</p>
  
  <pre><code>RMAN-00571: ===========================================================
  RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  RMAN-00571: ===========================================================
  RMAN-03002: failure of restore command at 05/18/2017 17:38:43
  ORA-19870: error while restoring backup piece C:\ORACLE12C\ICIRILLO\PRODUCT\12.1.0\DBHOME_1\ASSISTANTS\DBCA\TEMPLATES\SAMPLESCHEMA.DFB
  ORA-19504: failed to create file "C:\ORACLE12C\ICIRILLO\ORADATA\ORCL\PDBORCL\EXAMPLE01.DBF"
  ORA-27044: unable to write the header block of file
  OSD-04008: WriteFile() failure, unable to write to file
  O/S-Error: (OS 112) There is not enough space on the disk.
  RMAN&gt; 
  echo set on
  
  [Thread-7] [ 2017-05-18 17:38:45.110 CEST ] [RmanFileRestorer.restoreFiles:222]  reset _catalog_foreign_restore
  [Thread-7] [ 2017-05-18 17:38:45.220 CEST ] [PlugDatabaseStep.executeImpl:240]  ERROR :oracle.sysman.assistants.dbca.backend.storage.FileRestoreException: Error while restoring PDB backup piece
  [Thread-7] [ 2017-05-18 17:38:45.220 CEST ] [BasicStep.configureSettings:353]  messageHandler being set=oracle.sysman.assistants.util.InteractiveMessageHandler@2f26f304
  [Thread-7] [ 2017-05-18 17:38:45.220 CEST ] [CreatePDBAfterCDBCreationStep.executeImpl:376]  Error while restoring PDB backup piece
  [Thread-7] [ 2017-05-18 17:38:45.220 CEST ] [CreatePDBAfterCDBCreationStep.executeImpl:377]  Pluggable Database pdborcl creation failed
  </code></pre>