dbTalk Databases Forums  

Executing pkb withing an IF ..Then statment: PLS-00103 Encounteredthe symbol

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Executing pkb withing an IF ..Then statment: PLS-00103 Encounteredthe symbol in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
NGrybov@gmail.com
 
Posts: n/a

Default Executing pkb withing an IF ..Then statment: PLS-00103 Encounteredthe symbol - 10-22-2008 , 04:46 AM






Please help,
I am trying to create a script for patching the database.

The script works with INSERT or SELECT, but when i try to execute a
package (*pkb). I get an error: "PLS-00103 Encountered the symbol
CREATE when expecting one of the following: begin ...."

The logic is like this :

varable ...
...
declare ...
begin

Select c INTO a FROM test_table

if :a=:b then

@PG_TEST.pkb; (if in place of pkb i have simple script with INSERT or
SELECT there are no problems)

insert into test_table values((select max(id) from test_table) + 1,
'success');

else
....

end if;
commit;

Exception when others then
rollback work;
end;
..
/
exit;

Please help, What i am doing wrong?

Thank you in advance.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.