10-28-04, 11:37 #1Registered User
- Join Date
- Oct 2004
- Dublin, Ireland
Unanswered: Problem changing user halfway through script
I am trying to change user halfway through the executable part of a PL/SQL script. The syntax is:
and I get this error:
"The following error has occurred:
ORA-06550: line 13, column 4:
PLS-00103: Encountered the symbol "CONNECT" when expecting one of the following:
begin declare end exception exit for goto if loop mod null
pragma raise return select update while <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall
<a single-quoted SQL string>
The symbol "if was inserted before "CONNECT" to continue.
ORA-06550: line 13, column 45:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( * @ & = - + < / > at in mod not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like
between is null is not || is dangling
ORA-06550: line 16, column 6:
PLS-00103: Encountered the symbol "DECLARE" when expecting one of the following:
. ( * @ % & - + / at mod rem then <an exponent (**)> and or
10-28-04, 11:50 #2Registered User
Provided Answers: 1
- Join Date
- Aug 2003
- Where the Surf Meets the Turf @Del Mar, CA
AFAIK, CONNECT is a SQL*PLUS command & is not vlid in PL/SQL.
IOW, SQL*PLUS<>PL/SQLYou can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Good judgement comes from experience. Experience comes from bad judgement.