passing in table name as plsql parameter

You can use dynamic SQL: create or replace function get_table_count (table_name IN varchar2) return number is table_count number; begin execute immediate ‘select count(*) from ‘ || table_name into table_count; dbms_output.put_line(table_count); return table_count; end; There is also an indirect way to get number of rows (using system views): create or replace function get_table_count (table_name IN varchar2) … Read more

HikariCP: What database level timeouts should be considered to set maxLifetime for Oracle 11g

Short answer: none (by default). For the record (to include details here in case the link changes), we’re talking about property maxLifetime of HikariCP: This property controls the maximum lifetime of a connection in the pool. An in-use connection will never be retired, only when it is closed will it then be removed. We strongly … Read more

How to use a dynamic parameter in a IN clause of a JPA named query?

JPA support the use of a collection as a list literal parameter only in JPQL queries, not in native queries. Some JPA providers support it as a proprietary feature, but it’s not part of the JPA specification (see https://stackoverflow.com/a/3145275/1285097). Named parameters in native queries also aren’t part of the JPA specification. Their behavior depends on … Read more