Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Getting [Error: ORA-01036: illegal variable name/number] { errorNum: 1036, offset: 0 }

user-21phaFeb 19 2023 — edited Feb 19 2023

Hello,
I am trying to execute proce using Node js getting below Error.

[Error: ORA-01036: illegal variable name/number] { errorNum: 1036, offset: 0}

Below proc works fine in SQL Developer terminal and return 1 after successful execution.
// `SET SERVEROUTPUT ON;

// DECLARE

// i_user_name fw_user.username%TYPE := NULL;

// l_true BOOLEAN := true;

// BEGIN

// FW_GLOBAL_P.SESSION_ID := 'SESSION_ID';

// FW_GLOBAL_P.USER_ID := 1005;

// FW_GLOBAL_P.Language:= 0;

// l_true := mt_eets_cust_p.terminate_ttt_username(:i_user_name, l_true);

// --commit;

// DBMS_OUTPUT.PUT_LINE(sys.diutil.bool_to_int(l_true));

// END; /`

Here is my code


Comments

Post Details

Added on Feb 19 2023
3 comments
76 views