powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / Procedure Error
2 сообщений из 2, страница 1 из 1
Procedure Error
    #33082429
ofm
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
ofm
Гость
Hi everybody
If you can
Colud you explain to me
what does this error mean in SQL*Plus

First I created procedure in PL/SQL Developer

create or replace procedure change_salary(v_emp_id in number,
v_new_salary in number) is
begin
update s_emp set salary = v_new_salary where id = v_emp_id;
commit;
end change_salary;
It gave the message: Compiled successfully


Then in SQL*Plus, I tried the next:

SQL> exec change_salary;

begin change_salary; end;

ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'CHANGE_SALARY'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL>
...
Рейтинг: 0 / 0
Procedure Error
    #33082480
Фотография Хрен
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
hmmm. why English?

1) I'd suggest you to post this question to Oracle forum
2) your procedure supposed to be used with 2 arguments: v_emp_id and v_new_salary, but you invoke it without any arguments.
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Unix-системы [игнор отключен] [закрыт для гостей] / Procedure Error
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]