Question : encountered symbol ""

I get the error PLS-00103 when running the following. could you see what i am doing not right?
thanks
--------------
DECLARE
   Seq1 PLS_INTEGER := 0;
BEGIN
   SELECT   COUNT (1) INTO   Seq1
     FROM   ALL_OBJECTS
    WHERE   OBJECT_NAMEe = UPPER ('tblTrackerSeq')
            AND OBJECT_TYPE = 'SEQUENCE';

    IF  Seq1 = 0 THEN

    DECLARE TracNewSeq varchar2(100 char);
BEGIN
SELECT 'CREATE SEQUENCE tblTrackerSeq MINVALUE 0 START WITH '||(MAX(tblTrackerSeq_ID)+1)||' INCREMENT BY 1 CACHE 100'   INTO TracNewSeq FROM tblTracker;
EXECUTE IMMEDIATE TracNewSeq;
END;
    END IF;      
END;

Answer : encountered symbol ""

Little correction PL/SQL can have multiple DECLARE statments but it should be grouped logically.

Here is example

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
---------MAIN BLOCK STARTS--------------------------------------
DECLARE
   v_num   NUMBER := 1;
BEGIN
   DBMS_OUTPUT.PUT_LINE (V_NUM);

   -- SUB BLOCK STARTS------------------------------
   DECLARE
      v_num2   NUMBER := 2;
   BEGIN
      DBMS_OUTPUT.PUT_LINE (V_NUM2);
   END;      
   -- SUB BLOCK ENDS-----------------------------------
END;                                                     
-----MAIN BLOCK ENDS-------------------------------
Random Solutions  
 
programming4us programming4us