我有两个模式,让我们称它们为BOB和FRED.我需要从模式BOB调用模式FRED中的表,以使用该表中的主键作为外键.我为模式FRED设置了适当的授权以允许BOB访问它,但每当我运行脚本时,它都会抱怨我没有正确的权限.还有其他设置我需要在某处更改吗?甚至可以这样做吗?
我的FK创作如下:
ALTER TABLE "BOB"."ITEMGROUP" WITH CHECK ADD CONSTRAINT FK_ITEMS_ITEM FOREIGN KEY (ItemID)
REFERENCES "FRED"."ITEMS"(ItemID)
Run Code Online (Sandbox Code Playgroud)
而我正在做的补助金:
GRANT ALTER ON "FRED"."ITEMS" TO "BOB"
Run Code Online (Sandbox Code Playgroud)
我收到此错误消息:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user …Run Code Online (Sandbox Code Playgroud) 有没有人知道比NCalc更新的表达式评估器?最后一个版本是在2011年,一个(非常)快速的谷歌搜索几乎没有从我能看到的内容返回.
破裂和chapettes
只是一个简单的问题.我需要从存储过程中只返回一行,但无论我在何处放置WHERE子句,都会出错.有人可以看看(由于长度缩短)代码并让我知道它应该去哪里,拜托?
SELECT **values**
INTO **variables**
FROM **table**
_WHERE ROWNUM = 1_
INNER JOIN **other table**
ON **join target**
ORDER BY **sort criteria**;
_WHERE ROWNUM = 1_
Run Code Online (Sandbox Code Playgroud)
谢谢