Hi all,
About this error we have lost many time. I hope this post can help someone.
My script sql is :
set verify off
set heading off
set linesize 400
spool RIL_388_OP_INS_AnagD4
COLUMN indGruppoiInG NEW_VALUE indGruppoiInG
SELECT max(substr(nome_elemento_associazione,4,4))+1 indGruppoiInG FROM SCTELEM_ASSOC WHERE TIPO_ASSOCIAZIONE = 'GRUPPI_IN' AND NOME_ELEMENTO_ASSOCIAZIONE LIK
E 'GIG%';
SELECT '@INFO AGGIUNTO GRUPPO IN ' || 'GIG' || lpad(to_char(&indGruppoiInG),4,'0') || ' IN CATEGORIA LA UNDELIVERED SERV >' || 'CATG0010' || '<' from dual; COLUMN indGruppoiInG NEW_VALUE indGruppoiInG SELECT max(substr(nome_elemento_associazione,4,4))+1 indGruppoiInG FROM SCTELEM_ASSOC WHERE TIPO_ASSOCIAZIONE = 'GRUPPI_IN' AND NOME_ELEMENTO_ASSOCIAZIONE LIK E 'GIG%'; SELECT '@INFO AGGIUNTO GRUPPO IN ' || 'GIG' || lpad(to_char(&indGruppoiInG),4,'0') || ' IN CATEGORIA LA UNDELIVERED SERV >' || 'CATG0010' || '<' from dual;
spool off
When we have executed this script alone it was OK. But when it was executed after another script, was showed this error :
SP-552 oracle bind variable "indGruppoiInG" not declared
After many controls we have discovered that a previously script seated "set define #", this command (see this link causes previously error.
Solution for this error was put at beginning my script sql, this command :
set define on
To avoid previously different define setting.
Stay tuned.
This blog was created to improve my English and share news, thoughts and opinions about the world around me. I use it also to fix some technical solutions for future use.
Iscriviti a:
Commenti sul post (Atom)
Check Mid Year Objectives
Hi all Today middle year check of my 2026's goals. 1. ENGLISH Improve listening comprehension (So and So) See at least one or two film...
-
Hi all Today I want speak about one of the best DB Client tool in the market : DBeaver . Why it's so good : 1) It's an open source...
-
Hi all Today, first day of 2025 my goals for this year : 1. ENGLISH Improve listening comprehension See at least one or two films in Engli...
-
For my actual project i am studying CUBE and ROLLUP option in GROUP BY. These options are present from Oracle 8i and are very interesting : ...
Nessun commento:
Posta un commento