title: Universal Connection Pool already exists error (Oracle UCP)
body: <p>I am trying to create a UniversalConnectonPool using the code below:</p>
  <pre><code>// Read and process properties
  PoolDataSource poolDataSource = createUniversalConnectionPool();
      
  universalConnectionPoolManager = UniversalConnectionPoolManagerImpl.getUniversalConnectionPoolManager();
      
  universalConnectionPoolManager.createConnectionPool((UniversalConnectionPoolAdapter) poolDataSource);
      
  universalConnectionPoolManager.startConnectionPool(getSchema());
  
  .
  .
  .
  .
  
  UniversalConnectionPool universalConnectionPool = universalConnectionPoolManager.getConnectionPool(getSchema());
  UniversalPooledConnection universalPooledConnection = universalConnectionPool.borrowConnection(universalConnectionPool.getConnectionRetrievalInfo());
  
  connection = (Connection) universalPooledConnection.getPhysicalConnection();
  </code></pre>
  <p>But the third line <code>universalConnectionPoolManager.createConnectionPool((UniversalConnectionPoolAdapter) poolDataSource);</code> throws the exception:</p>
  <pre><code>Caused by: oracle.ucp.UniversalConnectionPoolException: Universal Connection Pool already exists in the Universal Connection Pool Manager. Universal Connection Pool cannot be added to the Universal Connection Pool Manager
          at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(UCPErrorHandler.java:421)
          at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(UCPErrorHandler.java:389)
          at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(UCPErrorHandler.java:403)
          at oracle.ucp.admin.UniversalConnectionPoolManagerBase.setConnectionPool(UniversalConnectionPoolManagerBase.java:599)
          at oracle.ucp.admin.UniversalConnectionPoolManagerBase.createConnectionPool(UniversalConnectionPoolManagerBase.java:559)
          ... 30 more
  </code></pre>
  <p>Can you please tell me what I am doing wrong here? I am new to using Connection Pools, so still learning the ins-and-outs of it.</p>