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)
Goals 2025
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...
-
Hi all Today i want speak about education and eLearning websites. Personally I am using COURSERA , in this site you can find many course...
-
Hi all Today i want to speak about oracle nested table. Basically you can define in oracle a field that is a table inserted in other tabl...
-
Today a simple shell script to simulate rolls of two dices : #!/bin/ksh fc=1 while [ fc -eq 1 ]; do clear echo ' How many rolls : \c...
Nessun commento:
Posta un commento