创建存储过程 老师出现 ORA-01031: 权限不足
这是我创建的新用户“gong”创建存储过程:createorreplaceprocedureU_SER(R_nameinvarchar2;R_cardinvarchar2...
这是我创建的新用户“gong”
创建存储过程:
create or replace procedure U_SER(
R_name in varchar2;
R_card in varchar2;
R_adress in char;
R_phone in varchar2;
R_opentime in date;
R_openadress in varchar2;
R_openmoney in varchar2) is
begin
insert into gong.USER01(U_NAME,U_card,U_ADRESS,U_PHONE,U_OPENTIME,U_OPENADRESS,U_OPENMONEY)
values(R_name,R_name,R_adress,R_phone,R_opentime,R_openadress,R_openmoney);
end U_SER;
ORA-01031: 权限不足
最后我又在系统用户下去“system”去创建:
SQL> create or replace procedure U_SER(
2 R_name in varchar2;
3 R_card in varchar2;
4 R_adress in char;
5 R_phone in varchar2;
6 R_opentime in date;
7 R_openadress in varchar2;
8 R_openmoney in varchar2) is
9 begin
10 insert into gong.USER01(U_NAME,U_card,U_ADRESS,U_PHONE,U_OPENTIME,U_OPENADRESS,U_OPENMONEY)
11 values(R_name,R_name,R_adress,R_phone,R_opentime,R_openadress,R_openmoney);
12 end U_SER;
13 /
Warning: Procedure created with compilation errors
怎么破? 展开
创建存储过程:
create or replace procedure U_SER(
R_name in varchar2;
R_card in varchar2;
R_adress in char;
R_phone in varchar2;
R_opentime in date;
R_openadress in varchar2;
R_openmoney in varchar2) is
begin
insert into gong.USER01(U_NAME,U_card,U_ADRESS,U_PHONE,U_OPENTIME,U_OPENADRESS,U_OPENMONEY)
values(R_name,R_name,R_adress,R_phone,R_opentime,R_openadress,R_openmoney);
end U_SER;
ORA-01031: 权限不足
最后我又在系统用户下去“system”去创建:
SQL> create or replace procedure U_SER(
2 R_name in varchar2;
3 R_card in varchar2;
4 R_adress in char;
5 R_phone in varchar2;
6 R_opentime in date;
7 R_openadress in varchar2;
8 R_openmoney in varchar2) is
9 begin
10 insert into gong.USER01(U_NAME,U_card,U_ADRESS,U_PHONE,U_OPENTIME,U_OPENADRESS,U_OPENMONEY)
11 values(R_name,R_name,R_adress,R_phone,R_opentime,R_openadress,R_openmoney);
12 end U_SER;
13 /
Warning: Procedure created with compilation errors
怎么破? 展开
2个回答
光点科技
2023-08-15 广告
2023-08-15 广告
通常情况下,我们会按照结构模型把系统产生的数据分为三种类型:结构化数据、半结构化数据和非结构化数据。结构化数据,即行数据,是存储在数据库里,可以用二维表结构来逻辑表达实现的数据。最常见的就是数字数据和文本数据,它们可以某种标准格式存在于文件...
点击进入详情页
本回答由光点科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询