使用临时桌子而无需未来的赠款
我想摆脱团队榜单,而不必在我的架构上发布未来的赠款。架构“ DB_DEV.Schema”是“带有托管访问”模式的“”。 但是我没有成功。 这是我的测试的代码。
情况1
create or replace temporary table DB_DEV.Schema.TempTable as select cast(null as date) Col1 ,cast(null as date) as Col2 from Dual ;
select * from DB_DEV.Schema.TempTable ;
--SQL compilation error: Object 'DB_DEV.Schema."TempTable"' does not exist or not authorized.
案例2
grant SELECT,INSERT,UPDATE,DELETE,TRUNCATE ON future TABLES IN SCHEMA DB_DEV.Schema to ROLE My_User_Role ;
create or replace temporary table DB_DEV.Schema.TempTable as select cast(null as date) Col1 ,cast(null as date) as Col2 from Dual ;
select * from DB_DEV.Schema.TempTable ;
--it works
我错过了什么或做错了什么?
I would like to get rid of Teamporary tables without having to issue FUTURE GRANT on my schema. The schema "DB_DEV.Schema" is a "WITH MANAGED ACCESS" schema.
But I do not succeed.
Here is the code of my tests.
Case 1
create or replace temporary table DB_DEV.Schema.TempTable as select cast(null as date) Col1 ,cast(null as date) as Col2 from Dual ;
select * from DB_DEV.Schema.TempTable ;
--SQL compilation error: Object 'DB_DEV.Schema."TempTable"' does not exist or not authorized.
Case 2
grant SELECT,INSERT,UPDATE,DELETE,TRUNCATE ON future TABLES IN SCHEMA DB_DEV.Schema to ROLE My_User_Role ;
create or replace temporary table DB_DEV.Schema.TempTable as select cast(null as date) Col1 ,cast(null as date) as Col2 from Dual ;
select * from DB_DEV.Schema.TempTable ;
--it works
Did I miss something or do something wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论