Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: saravanHi,
When I have tried to execute a lavastorm node (Sqlrunner node) which contains the below PL/SQL block, It is working fine in BRE tool, but it is giving error when executing the same corresponding �brx� file in Unix environment.
I'm getting the "PLS-00103: Encountered the symbol "" when expecting one of the following:" errors.
Included the error log details below in RED.
"DECLARE
i number;
retVal varchar2(1024);
attachment_id number;
BEGIN
SELECT COUNT(*) INTO i FROM tempblob;
WHILE i > 0
LOOP
SELECT attachment_id INTO attachment_id FROM tempblob WHERE id =i;
retVal := FN_WRITE_BLOB_TO_FILE(attachment_id);
i := i -1;
END LOOP;
DELETE FROM ATTACHMENT WHERE attachment_id IN (SELECT attachment_id FROM tempblob);
END;"
ERROR Log details:
=================
2012-01-03 17:33:41; Level: 2; Type: 0; Desc: "OCI Error 6550: ORA-06550: line 1, column 1:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare exit for function goto if loop mod null
package pragma procedure raise return select separate type
update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
form table call close current define delete fetch lock insert
open rollback savepoint set sql execute commit forall merge
library OPERATOR_ <a single-quoted SQL string> pipe
"; File: "./../../jigsaw/Code/Source/Oci/OciUtils.cpp"; Line: 83; Context: ""
2012-01-03 17:33:41; Level: 2; Type: 0; Desc: "Error executing statement:
DECLARE
i number;
retVal varchar2(1024);
attachment_id number;
BEGIN
SELECT COUNT(*) INTO i FROM tempblob;
WHILE i > 0
LOOP
SELECT attachment_id INTO attachment_id FROM tempblob WHERE id =i;
retVal := FN_WRITE_BLOB_TO_FILE(attachment_id);
i := i -1;
END LOOP;
DELETE FROM ATTACHMENT WHERE attachment_id IN (SELECT attachment_id FROM tempblob);
END;
. On connection:
lvs_schema@LAVAS1BD. ORA-06550: line 1, column 1:
PLS-00103: Encountered the symbol "" when expecting one of the following:
Do you have any idea on the cause of this issue ?
Please find the sample node attached.
Thanks in advance,
Saravan