Categories
- All Categories
- Oracle Analytics Learning Hub
- 30 Oracle Analytics Sharing Center
- 20 Oracle Analytics Lounge
- 242 Oracle Analytics News
- 45 Oracle Analytics Videos
- 16K Oracle Analytics Forums
- 6.3K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 90 Oracle Analytics Trainings
- 16 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
OAC "No active warehouse selected in the current session" error with Snowflake RPD Data Model
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;
The warehouse exists, is running, and the service account has USAGE privilege on it (confirmed via GRANT and SHOW GRANTS).
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!
Answers
-
Hope we get some response from the Oracle SME, in the meantime you may want to open a ticket with Oracle Support.
0 -
Hi @Dennis Paredes
Welcome to the Oracle Analytics Community!, and thank you for your question.
The error/message is coming from Snowflake, not from OAC/OAS.
It may be a privilege issue for the connecting user.
Try the solution here:
https://stackoverflow.com/questions/60265744/query-to-snowflake-database-isnt-working-because-no-active-warehouse-is-selecte#63218159Any SELECT operation would require a virtual warehouse (compute) to run. That's the part Snowflake will charge you for, so if you don't have the USAGE permission on a virtual warehouse, you can't run any queries.
GRANT USAGE ON WAREHOUSE my_warehouse TO ROLE writer_role;Where the connecting user is a member of the role, or I suppose you may be able to grant directly to the connecting user.
I am sure other Snowflake users could comment.1 -
Thanks SteveF for looking into it, appreciate it!
0

