Hi everyone,
I'm repeatedly hitting the following Snowflake error in Oracle Analytics Cloud (OAC/OAS) when working with an RPD-based Data Model connected to Snowflake:
"No active warehouse selected in the current session. Select an active warehouse with the 'use warehouse' command."
The connection tests successfully and I can browse databases/schemas in the RPD, but any attempt to run a query or open an analysis fails with the above error.
What I’ve already tried the following (none worked):
1.Explicitly added the warehouse in the JDBC connection string:
jdbc:snowflake://xxxxxxx.us-east-1.snowflakecomputing.com/?warehouse=MY_WAREHOUSE
2. Added the following statement in both "Execute on Connect" and "Execute Before Query" sections of the connection pool:text
BEGIN
USE WAREHOUSE MY_WAREHOUSE;
END;
3. Set the default warehouse on the Snowflake service account used by OAC:
ALTER USER OAC_SERVICE_USER SET DEFAULT_WAREHOUSE = 'MY_WAREHOUSE;
Has anyone successfully resolved this specific combination of OAC + RPD Data Model + Snowflake? It feels like the warehouse parameter isn’t being picked up when OAC initializes the session from the connection pool.
Any tips, known workarounds, or patches would be greatly appreciated!