【发布时间】:2015-07-18 02:50:21
【问题描述】:
我有问题。
CREATE TABLE accounts(
id INTEGER,
name VARCHAR2(100)
)
/
CREATE OR REPLACE FUNCTION account_balance(account_id_in IN accounts.id%TYPE)
RETURN NUMBER
IS
BEGIN
RETURN 0;
END;
/
错误:
Error starting at line : 1 in command -
CREATE OR REPLACE FUNCTION account_balance(account_id_in IN accounts.id%TYPE)
RETURN NUMBER
IS
BEGIN
RETURN 0;
END;
Error report -
ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to perform a database operation without
the necessary privileges.
*Action: Ask your database administrator or designated security
administrator to grant you the necessary privileges
请帮我解决以上错误,谢谢!
【问题讨论】:
-
老兄,不存在可接受的答案。
-
问题很清楚。与 DBA 交谈以获得创建函数的权限。
-
@dovy:你是 DBA 吗?
-
我相信语法是
grant create procedure to your_user或类似的东西。您可以将your_user替换为您登录的用户,因为该用户没有所需的权限。确保从具有完全权限的帐户运行此程序。
标签: oracle oracle11g oracle-sqldeveloper