Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Temporary Table - Analysis 116 #13

Closed
jduke99 opened this issue Jun 25, 2014 · 1 comment
Closed

Global Temporary Table - Analysis 116 #13

jduke99 opened this issue Jun 25, 2014 · 1 comment

Comments

@jduke99
Copy link
Contributor

jduke99 commented Jun 25, 2014

I'm getting an error on Analysis 116 as follows:

Error:
execute JDBC update query failed in dbSendUpdate (ORA-01031: insufficient privileges
)

SQL:
CREATE TEMPORARY TABLE temp_dates
ON COMMIT PRESERVE ROWS
AS
SELECT
distinct
EXTRACT(YEAR FROM observation_period_start_date) as obs_year

FROM

OBSERVATION_PERIOD

I think it is trying to create the temp table on the CDM4 schema rather than on my Results schema. I have don't have permissions to create tables on the CDM4 database, but of course can create on the Results database.

Can you change code for 116 (and any others than use temp tables) to make the table on @results_schema.dbo.[table] so that a user does not require CREATE privileges on their CDM to run the analysis?

@schuemie
Copy link
Member

Done. All temp files are now created in the results schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants