title: Configure OracleDataSource programmatically in Spring Boot with a default schema
body: <p>How to configure Oracle DataSource programmatically in Spring Boot with a default schema?</p>
  
  <pre><code>@Bean
  public DataSource getDataSource() throws SQLException {
      OracleDataSource d = new OracleDataSource();
      d.setURL(Secrets.get("DB_URL"));
      d.setUser(Secrets.get("DB_USER"));
      d.setPassword(Secrets.get("DB_PASS"));
      // d.setSchema(System.getenv("DB_SCHEMA")); ???
      return d;
  }
  </code></pre>