Encountered an error "PLS-00103: Encountered the symbol "CREATE" when expec

HI All,
I am creating a procedure and trying to use temp table...
Here is the code":
PROCEDURE P_PARENT_TREE
topic_id_in           IN NUMBER,
topic_hierarchy_details_out     OUT SYS_REFCURSOR
) IS
temp_children_level topic_children.children_level%TYPE;
temp_children_id topic_children.children_id%TYPE;
temp_topic_id topic.topic_id%TYPE;
CURSOR c_child_level IS
SELECT children_level, children_id
FROM topic_children
WHERE children_id = topic_id_in;
BEGIN
OPEN c_child_level;
FETCH c_child_level INTO temp_children_level,temp_topic_id ;
CLOSE c_child_level;
CREATE TEMPORARY TABLE IF NOT EXISTS topic_child
(t_topic_id NUMBER, t_children_id NUMBER, children_seq NUMBER);
WHILE temp_children_level > 0
LOOP
INSERT INTO topic_child(t_topic_id,t_children_id,children_seq)
values (
SELECT topic_id , children_id ,children_level
FROM topic_children
WHERE children_id = temp_topic_id);
temp_children_level := temp_children_level - 1;
END LOOP;
OPEN topic_hierarchy_details_out FOR
select * from topic_child;
END P_PARENT_TREE;
END TOPIC_PKG;
getting the error "PLS-00103: Encountered the symbol "CREATE" when expec"...
any idea why? or may be is there any other way to write this query

something like
select connect_by_root child_topic ||sys_connect_by_path (topic, '>') path
  from test
where connect_by_isleaf = 1
start with child_topic = 'aa4'
connect by child_topic = prior topicas in
SQL> with test as
  2  (
  3  select 0 sq, 'aa ' topic, 'aa1' child_topic from dual union all
  4  select 1 sq, 'aa1' topic, 'aa2' child_topic from dual union all
  5  select 3 sq, 'aa2' topic, 'aa3' child_topic from dual union all
  6  select 4 sq, 'aa3' topic, 'aa4' child_topic from dual
  7  )
  8  select connect_by_root child_topic ||sys_connect_by_path (topic, '>') path
  9    from test
10   where connect_by_isleaf = 1
11   start with child_topic = 'aa4'
12  connect by child_topic = prior topic
13  /
PATH
aa4>aa3>aa2>aa1>aa

Similar Messages

  • PL/SQL Error  PLS-00103

    Hi All,
    I am currently working a "package header" and "package body".
    I have created a user defined data type ( record type ) in pl/sql pacakge header.
    And I am trying to use it from pl/sql body, especially
    I am using this type as parameter type for a procedure.
    Because of this I am getting below error at the time
    of compilation.
    LINE/COL ERROR
    2/3 PLS-00103: Encountered the symbol "CREATE" when expecting one of
    the following:
    begin end function package pragma procedure subtype type use
    <an identifier> <a double-quoted delimited-identifier> form
    current cursor
    The symbol "CREATE" was ignored.
    Can any one guide me on this...
    Thanks in advance.
    Regards,
    Srini
    , from body
    I was trying

    I was able to get rid of the problem by creating header
    and body of the package with two different names.
    Example: ph and pb
    But for my curiosity , just like to know,
    Both "Package Header" and "Package Body" must be defined
    with two different names ?
    Is there any other way to get rid of this exception ?
    Thanks in advance.
    Cheers,
    Srini

  • PLS-00103: Encountered the symbol "SELECT" when expecting one of the follow

    Can any one tell me why I an getting compile error in Trigger with the following code (see below for the error message). Error is indicated in the IF statement Select clause.
    Code:
    -- AUdit Code Begin
    -- Note: Ony for those tables having 'AUDIT' UDP
    -- Value set to 'T'
    IF (Select Count(*) From DBConfiguration
    Where ConfigurationCode = 'AUDIT' AND
    ConfigurationValue = 'T') > 0 THEN
    WHEN (:new.WORKREQUESTSTATUS <> :old.WORKREQUESTSTATUS)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSTATUS',
    :old.WORKREQUESTSTATUS,:new.WORKREQUESTSTATUS,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTSOURCE <> :old.WORKREQUESTSOURCE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSOURCE',
    :old.WORKREQUESTSOURCE,:new.WORKREQUESTSOURCE,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTSOURCEID <> :old.WORKREQUESTSOURCEID)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSOURCEID',
    :old.WORKREQUESTSOURCEID,:new.WORKREQUESTSOURCEID,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTDESC <> :old.WORKREQUESTDESC)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTDESC',
    :old.WORKREQUESTDESC,:new.WORKREQUESTDESC,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTDATE <> :old.WORKREQUESTDATE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTDATE',
    CAST(:old.WORKREQUESTDATE AS varchar2(256)),CAST(:new.WORKREQUESTDATE AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.WORKREQUESTOWNER <> :old.WORKREQUESTOWNER)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTOWNER',
    :old.WORKREQUESTOWNER,:new.WORKREQUESTOWNER,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTAPPCODE <> :old.WORKREQUESTAPPCODE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPCODE',
    :old.WORKREQUESTAPPCODE,:new.WORKREQUESTAPPCODE,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTAPPROVER <> :old.WORKREQUESTAPPROVER)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPROVER',
    :old.WORKREQUESTAPPROVER,:new.WORKREQUESTAPPROVER,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTAPPDATE <> :old.WORKREQUESTAPPDATE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPDATE',
    CAST(:old.WORKREQUESTAPPDATE AS varchar2(256)),CAST(:new.WORKREQUESTAPPDATE AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.WORKREQUESTCOMMENT <> :old.WORKREQUESTCOMMENT)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTCOMMENT',
    :old.WORKREQUESTCOMMENT,:new.WORKREQUESTCOMMENT,:new.UserId)
    End;
    WHEN (:new.CLOSEDATE <> :old.CLOSEDATE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'CLOSEDATE',
    CAST(:old.CLOSEDATE AS varchar2(256)),CAST(:new.CLOSEDATE AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.ANALYTEKEY <> :old.ANALYTEKEY)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'ANALYTEKEY',
    CAST(:old.ANALYTEKEY AS varchar2(256)),CAST(:new.ANALYTEKEY AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.SUBPURPOSEKEY <> :old.SUBPURPOSEKEY)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'SUBPURPOSEKEY',
    CAST(:old.SUBPURPOSEKEY AS varchar2(256)),CAST(:new.SUBPURPOSEKEY AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.PURPOSEKEY <> :old.PURPOSEKEY)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'PURPOSEKEY',
    CAST(:old.PURPOSEKEY AS varchar2(256)),CAST(:new.PURPOSEKEY AS varchar2(256)),:new.UserId)
    End;
    End if;
    -- Audit End
    Error:
    95/5 PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    ( - + case mod new not null others <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternativ
    97/39 PLS-00103: Encountered the symbol ")" when expecting one of the following:
    * & - + ; / at for mod remainder rem <an exponent (**)> and
    or group having intersect minus order start union where
    connect || multiset

    Here is the code:
    -- AUdit Code Begin
    -- Note: Ony for those tables having 'AUDIT' UDP
    -- Value set to 'T'
    IF (Select Count(DBConfigurationValue) From DBConfiguration
    Where DBConfigurationCode = 'AUDIT' AND
    DBConfigurationValue = 'T') > 0 THEN
    WHEN (:new.WORKREQUESTSTATUS <> :old.WORKREQUESTSTATUS)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSTATUS',
    :old.WORKREQUESTSTATUS,:new.WORKREQUESTSTATUS,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTSOURCE <> :old.WORKREQUESTSOURCE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSOURCE',
    :old.WORKREQUESTSOURCE,:new.WORKREQUESTSOURCE,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTSOURCEID <> :old.WORKREQUESTSOURCEID)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSOURCEID',
    :old.WORKREQUESTSOURCEID,:new.WORKREQUESTSOURCEID,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTDESC <> :old.WORKREQUESTDESC)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTDESC',
    :old.WORKREQUESTDESC,:new.WORKREQUESTDESC,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTDATE <> :old.WORKREQUESTDATE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTDATE',
    CAST(:old.WORKREQUESTDATE AS varchar2(256)),CAST(:new.WORKREQUESTDATE AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.WORKREQUESTOWNER <> :old.WORKREQUESTOWNER)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTOWNER',
    :old.WORKREQUESTOWNER,:new.WORKREQUESTOWNER,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTAPPCODE <> :old.WORKREQUESTAPPCODE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPCODE',
    :old.WORKREQUESTAPPCODE,:new.WORKREQUESTAPPCODE,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTAPPROVER <> :old.WORKREQUESTAPPROVER)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPROVER',
    :old.WORKREQUESTAPPROVER,:new.WORKREQUESTAPPROVER,:new.UserId)
    End;
    WHEN (:new.WORKREQUESTAPPDATE <> :old.WORKREQUESTAPPDATE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPDATE',
    CAST(:old.WORKREQUESTAPPDATE AS varchar2(256)),CAST(:new.WORKREQUESTAPPDATE AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.WORKREQUESTCOMMENT <> :old.WORKREQUESTCOMMENT)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTCOMMENT',
    :old.WORKREQUESTCOMMENT,:new.WORKREQUESTCOMMENT,:new.UserId)
    End;
    WHEN (:new.CLOSEDATE <> :old.CLOSEDATE)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'CLOSEDATE',
    CAST(:old.CLOSEDATE AS varchar2(256)),CAST(:new.CLOSEDATE AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.ANALYTEKEY <> :old.ANALYTEKEY)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'ANALYTEKEY',
    CAST(:old.ANALYTEKEY AS varchar2(256)),CAST(:new.ANALYTEKEY AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.SUBPURPOSEKEY <> :old.SUBPURPOSEKEY)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'SUBPURPOSEKEY',
    CAST(:old.SUBPURPOSEKEY AS varchar2(256)),CAST(:new.SUBPURPOSEKEY AS varchar2(256)),:new.UserId)
    End;
    WHEN (:new.PURPOSEKEY <> :old.PURPOSEKEY)
    Begin
    Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
    VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'PURPOSEKEY',
    CAST(:old.PURPOSEKEY AS varchar2(256)),CAST(:new.PURPOSEKEY AS varchar2(256)),:new.UserId)
    End;
    End if;

  • PLS-00103: Encountered the symbol "" when expecting one of the following:

    Hi I am creating trigger using CFQUERY tag of cold fusion on oracle..
    <CFQUERY DATASOURCE="CRM">
    create or replace trigger AWC_ACCESSROLESID_TRI
    before insert on AWC_ACCESSROLES
    for each row
    begin
    select AWC_ACCESSROLESID_SEQ.nextval into :new.AR_ID from dual;
    end;
    </CFQUERY>
    But the created trigger is not compiled, it is giving the following error
    "Line # = 1 Column # = 6 Error Text = PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge <a single-quoted SQL string> pipe The symbol "" was ignored."
    If I edit that trigger in enterprose manager console by pressing space and compile that, it is working fine with out any error. If i run the above statement in sql *plus, It is working fine with out any error.
    Can you please tell me why this is happening if i run it using cfquery tag and also the possible solutions.
    Thanks in advance,
    Vinod

    So it works in Enterprise manager. It works in SQL*Plus. It doesn't work in CFQUERY. Sounds to me like a ColdFusion problem rather than an Oracle problem to be honest. Aren't there any ColdFusion support resources?
    Cheers, APC

  • ORA-06550: line 5, column 57: PLS-00103: Encountered the symbol "F01_" when

    Hello,
    I wanted to use the APEX_ITEM.DISPLAY_AND_SAVE
    Here is my query:
    DECLARE
    QUERY VARCHAR2 (2000);
    BEGIN
    QUERY := 'SELECT '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(1,REGISTRATION_ID,'f01_'||ROWNUM, NULL) REGISTRATION_ID, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(2,STATUS,'f02_'||ROWNUM, NULL) STATUS, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(3,CALL_CODE,'f03_'||ROWNUM, NULL) CALL_CODE, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(4,PARTNER_USER_ID,'f04_'||ROWNUM, NULL) PARTNER_USER_ID,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(5,COORDINATOR_USER_ID,'f05_'||ROWNUM, NULL) COORDINATOR_USER_ID, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(6,COORDINATOR_EMAIL,'f06_'||ROWNUM, NULL) COORDINATOR_EMAIL, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(7,COORDINATOR_FINAUTH_EMAIL,'f07_'||ROWNUM, NULL) COORDINATOR_FINAUTH_EMAIL,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(8,COORDINATOR_FULL_ADDRESS,'f08_'||ROWNUM, NULL) COORDINATOR_FULL_ADDRESS, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(9,COORDINATOR_NAME,'f09_'||ROWNUM, NULL) COORDINATOR_NAME, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(10,COORDINATOR_FAX,'f10_'||ROWNUM, NULL) COORDINATOR_FAX,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(11,COORDINATOR_TEL,'f11_'||ROWNUM, NULL) COORDINATOR_TEL, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(12,COORDINATOR_COUNTRY,'f12_'||ROWNUM, NULL) COORDINATOR_COUNTRY, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(13,COORDINATOR_COMPANY_NAME,'f13_'||ROWNUM, NULL) COORDINATOR_COMPANY_NAME,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(14,DATE_LETTER_SENT,'f14_'||ROWNUM, NULL) DATE_LETTER_SENT, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(15,DATE_LAST_SUBMISSION,'f15_'||ROWNUM, NULL) DATE_LAST_SUBMISSION, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(16,PROPOSAL_ACRONYM,'f16_'||ROWNUM, NULL) PROPOSAL_ACRONYM,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(17,INSTRUMENT_CODE,'f17_'||ROWNUM, NULL) INSTRUMENT_CODE, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(18,TITLE,'f18_'||ROWNUM, NULL) TITLE, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(19,SUBMITTED,'f19_'||ROWNUM, NULL) SUBMITTED, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(20,PREPARATION,'f20_'||ROWNUM, NULL) PREPARATION, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(21,PASS_BY_MAIL,'f21_'||ROWNUM, NULL) PASS_BY_MAIL,'
    ||'APEX_ITEM.DISPLAY_AND_SAVE(22,PROPOSAL_ID,'f22_'||ROWNUM, NULL) PROPOSAL_ID, '
    ||'APEX_ITEM.DISPLAY_AND_SAVE(23,PROPOSAL_NUMBER,'f23_'||ROWNUM, NULL) PROPOSAL_NUMBER '
    ||' FROM SUZANREGISTRATIONVIEW '
    ||' where 1 = 1 ';
    IF LENGTH (V ('P4_REGISTRATION_ID')) > 0
    THEN
    QUERY :=
    QUERY || ' and REGISTRATION_ID like ' || V ('P4_REGISTRATION_ID');
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_CALL_CODE')) > 0
    THEN
    QUERY := QUERY || ' and CALL_CODE like ''' || V ('P4_CALL_CODE') || '''';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_COORDINATOR_USER_ID')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(COORDINATOR_USER_ID)) like (upper('''
    || V ('P4_COORDINATOR_USER_ID')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_COORDINATOR_FINAUTH_EMAIL')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(R.COORDINATOR_EMAIL)) like (upper('''
    || V ('P4_COORDINATOR_FINAUTH_EMAIL')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_COORDINATOR_NAME')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and upper(COORDINATOR_NAME) like (upper('''
    || V ('P4_COORDINATOR_NAME')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_COORDINATOR_COMPANY_NAME')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(COORDINATOR_COMPANY_NAME)) like (upper('''
    || V ('P4_COORDINATOR_COMPANY_NAME')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_PARTNER_USER_ID')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(PARTNER_USER_ID)) like (upper('''
    || V ('P4_PARTNER_USER_ID')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    IF LENGTH (V ('P4_PROPOSAL_ACRONYM')) > 0
    THEN
    QUERY :=
    QUERY
    || ' and (upper(proposal_acronym)) like (upper('''
    || V ('P4_PROPOSAL_ACRONYM')
    || '''))';
    ELSE
    QUERY := QUERY || '';
    END IF;
    RETURN QUERY;
    END;
    And here is the error encountered:
    1 error has occurred
    * Function returning SQL query: Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the generic columns checkbox below the region source to proceed without parsing.
    (ORA-06550: line 5, column 57: PLS-00103: Encountered the symbol "F01_" when expecting one of the following: * & = - + ; < / > at in is mod remainder not rem <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ between || member SUBMULTISET_)
    I don't understand why the engine returns an error at that point.
    Despite the fact that I follow the user guide and the Denes Kubicek's sample examples, I still have that error.
    If I remove the part 'f01_' || and only keep the rownum, the problem is solved.
    Do you have any idea ?
    Thanks in advance for your answers.
    Regards,
    Stessy Delcroix

    HI MickyWay,
    So simple. :-)
    Problem solved.
    Thanks a lot (merci beaucoup)

  • PLS-00103: Encountered the symbol "end-of-file" when expecting one of the f

    I'm trying to follow an example pl/sql program to select from one table and insert into a second table in a LOOP.
    I get a syntax error which I can't figure out
    Line # = 67 Column # = 0 Error Text = PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    <an identifier> <a double-quoted delimited-identifier>
    <a bind variable> << close current delete fetch lock insert
    open rollback savepoint set sql execute commit forall merge
    pipe
    What is the cause?
    IS
    BEGIN
    declare
    v_pk1 bb_bb60_stats.pk1%TYPE;
    v_event_type bb_bb60_stats.event_type%TYPE;
    v_user_pk1 bb_bb60_stats.user_pk1%TYPE;
    v_course_pk1 bb_bb60_stats.course_pk1%TYPE;
    v_group_pk1 bb_bb60_stats.group_pk1%TYPE;
    v_forum_pk1 bb_bb60_stats.forum_pk1%TYPE;
    v_internal_handle bb_bb60_stats.internal_handle%TYPE;
    v_content_pk1 bb_bb60_stats.content_pk1%TYPE;
    v_data bb_bb60_stats.data%TYPE;
    v_timestamp bb_bb60_stats.timestamp%TYPE;
    v_status bb_bb60_stats.status%TYPE;
    v_session_id bb_bb60_stats.session_id%TYPE;
    v_messages bb_bb60_stats.messages%TYPE;
    INSERT_COUNT NUMBER := 1;
    CURSOR curs_aa
    IS
    SELECT * from bb_bb60_stats.activity_accumulator ;
    BEGIN
    OPEN curs_aa;
    LOOP
    FETCH curs_aa into
    v_pk1,
    v_event_type,
    v_user_pk1 ,
    v_course_pk1,
    v_group_pk1,
    v_forum_pk1,
    v_internal_handle,
    v_content_pk1 ,
    v_data,
    v_timestamp ,
    v_status ,
    v_session_id ,
    v_messages;
    INSERT INTO csuh_custom.aa_partitioned
    VALUES
    v_pk1,
    v_event_type,
    v_user_pk1 ,
    v_course_pk1,
    v_group_pk1,
    v_forum_pk1,
    v_internal_handle,
    v_content_pk1,
    v_data,
    v_timestamp,
    v_status,
    v_session_id,
    v_messages
    -- commit after every 100 inserts to avoid large rollback segments
    IF INSERT_COUNT = 25000 THEN
    COMMIT;
    INSERT_COUNT := 1;
    ELSE
    INSERT_COUNT := INSERT_COUNT + 1;
    END IF;
    END LOOP;
    CLOSE curs_aa;

    When I add the END;
    I get
    Line # = 66 Column # = 0 Error Text = PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    <an identifier> <a double-quoted delimited-identifier>
    <a bind variable> << close current delete fetch lock insert
    open rollback savepoint set sql execute commit forall merge
    pipe

  • 11g R1 problem... PLS-00103: Encountered the symbol "¿" when expecting...

    Yesterday AM. my customer went live with an upgrade. Things started out ok, but as the load on the system started to build, we started seeing errors.
    The reported error is:
    S1000 Oracle ODBC Ora ORA-06550: line 1, column 42:
    PLS-00103: Encountered the symbol "¿" when expecting one of the following:
    . ( ) , * @ % & = - + < / > at in is mod remainder not rem =>
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    This is in response to calling a stored procedure with this signature.
    MY_THING (
    p1 IN NUMBER,
    p2 OUT NUMBER,
    p2 IN NUMBER
    I believe this is a failure with the ODBC driver to parse
    {call MY_STUFF.MY_THING(791200, ?, 1067744)}
    Now to head off the obvious responses, I'm going to say these things in boldface
    the procedure itself is fine, and works flawlessly under test
    *nowhere in any of the code is an upside-down '?' as reported in the error message*
    Has anyone else encountered this--or better yet solved it?

    thanks for the replies.
    I'd have to rule out triggers at the point the stored procedure is run. Other than logging, it doesn't do any writes to the database. It does a couple of look-ups, and returns the results in a cursor. As for the web servers, they're pretty much copies of each other. 'Out of the box + updates' Windows Server 2008 machines with our application installed on each.
    The software issuing the ODBC call is old, well worn, tried and true C++. In this case the only string parameters passed are 'PA' or 'PJ' the rest is all integers.
    But again I want to stress that it doesn't appear that we reach the database when it fails. It appears to fail when the ODBC driver is parsing the '{call xxxxxx} statement.
    On a hunch, I've just reconfigured our application to treat the offensive call as if it were an 'external' reference. Meaning that a new ODBC connection will be created/destroyed for each run. Not very efficient, but I'll take slow over broken any day. It's too early to tell if this will eliminate the error.

  • PLS-00103: Encountered the symbol ""

    Hi
    I'm trying to create a PL/SQL function using JDBC and the procedure gets created but with status invalid. After checking the user_errors view I get:
    PLS-00103: Encountered the symbol "" when expecting one of the following: begin function package pragma procedure subtype type use form current cursor external language
    I'm using the following statement:
    statement = connection.prepareStatement ("CREATE OR REPLACE FUNCTION SCOTT.WHATEVER return varchar2 as begin return ('Whatever 2'); end;");
    statement.execute ();
    If I run the same statement from SQL*Plus I get no problems.
    Yes!, the application requires that I create store procedures using JDBC, no other way.
    Any ideas?
    Regards,
    Néstor Boscán

    Nestor,
    Works for me on Oracle 9.2.0.7 database (running on SUN [sparc] Solaris 9) with JDK 1.4.2_07 and "ojdbc14.jar" JDBC [thin] driver.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    public class CrSqlFun {
      public static void main(String[] args) {
        Connection c = null;
        PreparedStatement ps = null;
        String url = "jdbc:oracle:thin:scott/tiger@host:1521:orcl";
        String sql = "create or replace function WHATEVER return varchar2 as " +
                                                 "begin return 'Whatever 2'; end;";
        try {
          Class.forName("oracle.jdbc.driver.OracleDriver");
          c = DriverManager.getConnection(url);
          ps = c.prepareStatement(sql);
          ps.executeUpdate();
        catch (Exception x) {
          x.printStackTrace(System.err);
        finally {
          if (ps != null) {
            try {
              ps.close();
            catch (SQLException sx) {
              System.out.println("Failed to close statement.");
          if (c != null) {
            try {
              c.close();
            catch (SQLException sx) {
              System.out.println("Failed to close connection.");
    }Good Luck,
    Avi.

  • Encountered the symbol create

    Hi guys I am trying to :
    CREATE or replace TYPE Complex AS OBJECT (
    rpart REAL,
    ipart REAL,
    MEMBER FUNCTION plus (x Complex) RETURN Complex
    CREATE TYPE BODY Complex AS
    MEMBER FUNCTION plus (x Complex) RETURN Complex IS
    BEGIN
    RETURN Complex(rpart + x.rpart, ipart + x.ipart);
    END plus;
    end;
    with Oracle Sql Developer 2.1 and 11g, but I get Error(6,1): PLS-00103: encountered the symbol "CREATE".
    Note that the code above is cut and paste from the Oracle Docs!!! Is this a bug of SQL Developer?!?!?!

    Justin,
    Yep, I'm talking about SQL Developer (version 2.1.0.63), and when I refer to a PL/SQL window I mean a Code Worksheet as opposed to a SQL worksheet. (In the Code worksheet I've got the "gears" icon where I can compile or compile for debug.) It is the default editor that opens when I open a .pks file that has both my pl/sql spec and body in it.
    So when I try to compile one of these PKS files that has the spec and body separated by the slash I get "Encountered the symbol "/". When I remove the slash and try to compile I get the error "Encountered the symbol CREATE".
    I understand these errors, and understand that If I pasted this script into a SQL worksheet and used F5 the code will compile with the "/" in it.
    Here is my question:
    Can I work with a file in the Code worksheet that has both the spec and body in it? If so, how do I get around the two errors mentioned above? We've used TOAD to date here and I'd rather move to SQL Developer. Do I have to break apart my pl/sql code files into separate spec and body files to make this move?
    Thanks,
    Bruce

  • EVDRE encountered an error retrieving data from the Web Server

    Hi,
    I'm working on a presales AppSet "Demo5b".
    When I create a brand-new EVDRE report on FINANCE app, there is no problem.
    However, after changing to ICMATCHING app, when I type =EVDRE() on a blank sheet and press Refresh, the following message pops up.
    EVDRE encountered an error retrieving data from the Web Server
    Retrying in (??) seconds
    Any idea why this happens and how it can be solved?
    Thanks!
    Sunny

    Hi Joost,
    I have the same problem. When I try to retrieve data on an input schedule is launched that error.
    I am working on an VM on MS BPC.
    I am not working with cubes so the solution is not the same.
    If i process all my dimensions this error does not appear any more?
    Best regards,
    Vitor

  • DPM encountered an error while reading from the recovery point used for recovery.

    Hi Guys I'm getting this error:
    DPM encountered an error while reading from the recovery point used for recovery. Either the recovery point no longer exists or, if you
    selected a share for recovery, the path to its contents is missing from the recovery point.  (265)
    The DPM Server is on Windows 2012 DPM is 2012R2 4.2.1273.0
    The Server being backed up is 2012 R2 with DPM Agent 4.2.1273.0
    The Server has 3 Data Volumes (C: Drive) and D and E its the D and E drive that i get this error if i try and recover data from DPM.  the C Drive is fine.  the D and E Drive are different
    in that 1 De-dupe is enabled and 2 the Shadow Copies for these Volumes are stored on separate Disks F and G respectively.
    I've removed the Protection from drives D and E and reinstated it but every recovery point created
    brings up the same error message. I'm not sure where to go next do I need to Protect the Disks that have the Shadow copies on also? Many thanks in advance Gordon.

    Hi,
    It seems you are in a configuration where the Windows 2012 based DPM server does not understand how to read Windows 2012 R2 Dedup data structure which is what the DPM replica volume is.
    See the DPM supported and unsupported scenarios
    here under the deduplication issues section. 
    We have a fix in DPM2012 R2 UR5 that will protect the Windows 2012 R2 dedup volume in a non-dedup state on the DPM Server, but unfortunately that will not allow previous recovery points to be read.
    KB3021791-Description of Update Rollup 5 for System Center 2012 R2 Data Protection Manager
    Backup job for dedupe-enabled volume on Windows 2012 R2 fails. For example, Data Protection Manager backup might fail for following setup:
    Data Protection Manager2012 R2 is installed on Windows Server 2012.
    Data Protection Manager is protecting a dedupe-enabled volume on Windows Server 2012 R2.
    This also applied to restores as the above was for D2D2T backup that may fail as it needs to read the recovery point to back it up to tape.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.

  • Hard coded SQL string doesn't run with error PLS-00103

    I have created a package with 34 stored procedures [pre]to create some materialized view with hard coded SQL [pre]string (client required for this hard coding). The [pre]first part with 21 simple create statements has
    [pre]worked fine. 2nd part with 11 complicated create [pre]statements, only first one has worked. all others [pre]have  not worked.
    [pre]
    I used dbms_output.put_line (sql_string) to check the [pre]individual create statement, it has looked fine. I [pre]have run individual SP within package. I have got [pre]error message as ORA-06550: line 1, column 45:
    [pre]PLS-00103: Encountered the symbol "end-of-file" when [pre]expecting one of the following: ; [pre]
    <an identifier> <a double-quoted delimited-identifier> [pre]The symbol ";" was substituted for "end-of-file" to [pre]continue.
    [pre]I have checked SQL string between 1st part and 2nd [pre]part. They are the same and all with ';' to end SQL [pre]string and END SP name in the end. Please help me to [pre]identify where the problems are. Thanks. Followings [pre]are some sample SQL string:
    [pre]PROCEDURE sp_1st_string
    [pre]IS
    [pre]BEGIN
    [pre]    EXECUTE IMMEDIATE 'CREATE MATERIALIZED VIEW
    [pre]mv_name1 TABLESPACE space_name PARALLEL ( DEGREE [pre]DEFAULT INSTANCES DEFAULT ) BUILD IMMEDIATE REFRESH [pre]COMPLETE ON DEMAND WITH PRIMARY KEY AS SELECT col1, [pre]col2,col3, col4, col5 FROM tableone A, table_two B [pre]WHERE A.id = B.id';
    [pre]COMMIT;
    [pre]END sp_1st_string;
    [pre]PROCEDURE sp_2nd_string
    [pre]IS
    [pre]BEGIN
    [pre]   EXECUTE IMMEDIATE ' CREATE MATERIALIZED VIEW
    [pre]mv_name2 TABLESPACE PDE_DATA PARALLEL ( DEGREE [pre]DEFAULT INSTANCES DEFAULT ) BUILD IMMEDIATE REFRESH [pre]COMPLETE ON DEMAND WITH PRIMARY KEY AS select col1 .. [pre]col10 from tableone a, tabletwo b, tablethree c, [pre]tablefour d, tablefive e, tablesix f where clause;
    [pre]COMMIT;
    [pre]END sp_2nd_string;
    Message was edited by:
            citicbj
    Message was edited by:
            citicbj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    stevencallan:
    Thanks for your advice. I have been thinking the above problem may be [pre]caused by this. If I run 'Create MV statement' in SQL PLUS or Toad, single quote [pre]will work. But when I put hard coded SQL string in package and stored [pre]procedure, it will cause compiling error. After I took off single quote, SP will be [pre][pre]compiled successfully. When I run package.sp, it will cause the problem. [pre]Here is the sample code:[pre]
    [pre]CREATE MATERIALIZED VIEW my_mv TABLESPACE space_name [pre][pre]PARALLEL (DEGREE DEFAULT INSTANCES DEFAULT) BUILD IMMEDIATE [pre]REFRESH COMPLETE ON DEMAND WITH PRIMARY KEY AS select A.ID , [pre]A.CNTL_NUM, C.XX_CODE, D.FIRST_NAME, D.MDL_NAME, [pre]D.LAST_NAME, H.XX_DESC, TO_DATE(TO_CHAR(C.CREAT_TS, [pre]'MM/DD/YYYY'),'MM/DD/YY'), F.STATE, CASE WHEN A.XX_CODE IS NOT NULL [pre]THEN X END, E.X_DESC  from TABLE1 A, TABLE2 B, TABLE3 C, TABLE4 [pre]D, TABLE5 E, TABLE6 F, TABLE7 G, TABLE8 H
    [pre]where D.X_SW = 'X' and B.X_SW = X' and G.X_SW = 'X' and B.CNTL_ID = [pre]A.CNTL_ID and B.CNTL_ID = D.CNTL_ID and B.X_ID = C.X_ID and B.X_ID = [pre]G.X_ID and B.X_ID = F.X_ID and G.X_CD = H.X_CD and B.X_CD = E.X_CD [pre]and E.X_CD = '25' and C.ENRLMT_ID NOT LIKE 'O%'; [pre]
    [pre]When I hard coded this statement in package and sp, I have to take off single [pre]quote ' ' form 'MM/DD/YYYY', 'MM/DD/YY', X_SW ='X', X_CD = '25' AND NOT [pre]LIKE 'O%', Then I can compile whole package successfully. This is why I [pre]mentioned that 1st part 21 simple create statement work because they don't have [pre]these single quote in the statement. In 2nd part with 13 complicated create [pre]statements, some of them have no single quote in the statement. They will [pre]run. Some of them with single quote in statement. They will have the problem [pre]to run if I take off single for compiling. [pre]
    [pre]Please give me some idea what is the reason. Thanks a lot.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error PLS-00103 in cursor in operation insert in a particioned table

    Hi experts,
    I 've just insert in a particioned table values with next cursor and give an error:
    ERROR:
    SQL> @/home/u0182638/mfp_sql/2_cursores.sql
    insert into sales values
    (reg.SAT_ID,reg.SAC_ID,reg.SCR_ID,reg.UCR_ID,reg.SAT_PARENTMOVID,reg.SAT_USE
    RCATEGORYID,reg.SAT_DTPOSTED,reg.SAT_DTAVAIL,reg.SAT_NAME,reg.SAT_TRNAMT,reg
    .SAT_CURRENCY,reg.SAT_ORIGIN,reg.SAT_COMMENT,reg.SAT_DTIMPORT,reg.IMF_ID,reg
    .CLOB_ID,reg.SUBCLOB_ID,reg.HIDDEN );
    ERROR at line 8:
    ORA-06550: line 8, column 5:
    PLS-00103: Encountered the symbol "INSERT" when expecting one of the
    following:
    . ( * @ % & - + / at loop mod remainder range rem ..
    <an exponent (**)> || multiset
    The symbol "loop" was substituted for "INSERT" to continue.
    ORA-06550: line 15, column 9:
    PLS-00103: Encountered the symbol "IF" when expecting one of the following:
    ; <an identifier> <a double-quoted delimited-identifier>
    end if;
    ERROR at line 15:
    ORA-06550: line 15, column 9:
    PLS-00103: Encountered the symbol "IF" when expecting one of the following:
    ; <an identifier> <a double-quoted delimited-identifier>
    **CURSOR:**
    set serveroutput on;
    declare
    limite number:= 200000;
    contador number:= 0;
    cursor c_SAVING_ACCOUNT_TRANS_P is
    select
    SAT_ID,SAC_ID,SCR_ID,UCR_ID,SAT_PARENTMOVID,SAT_USERCATEGORYID,SAT_DTPOSTED,
    SAT_DTAVAIL,SAT_NAME,SAT_TRNAMT,SAT_CURRENCY,SAT_ORIGIN,SAT_COMMENT,SAT_DTIM
    PORT,IMF_ID,CLOB_ID,SUBCLOB_ID,HIDDEN from
    IBD_MFP.SAVING_ACCOUNT_TRANSACTIONS_P;
    begin
    for reg in c_SAVING_ACCOUNT_TRANS_P
    insert into sales values
    (reg.SAT_ID,reg.SAC_ID,reg.SCR_ID,reg.UCR_ID,reg.SAT_PARENTMOVID,reg.SAT_USE
    RCATEGORYID,reg.SAT_DTPOSTED,reg.SAT_DTAVAIL,reg.SAT_NAME,reg.SAT_TRNAMT,reg
    .SAT_CURRENCY,reg.SAT_ORIGIN,reg.SAT_COMMENT,reg.SAT_DTIMPORT,reg.IMF_ID,reg
    .CLOB_ID,reg.SUBCLOB_ID,reg.HIDDEN );
    contador:= contador +1;
    if contador > limite then
    begin
    commit;
    contador:= 0;
    dbms_output.put_line('otros '|| limite ||' registros...');
    end if;
    end loop;
    end;
    TABLE:
    CREATE TABLE IBD_MFP.SAVING_ACCOUNT_TRANSACTIONS_PART
    SAT_ID NUMBER NOT NULL,
    SAC_ID NUMBER NOT NULL,
    SCR_ID NUMBER,
    UCR_ID NUMBER,
    SAT_PARENTMOVID NUMBER,
    SAT_USERCATEGORYID NUMBER,
    SAT_DTPOSTED DATE NOT NULL,
    SAT_DTAVAIL DATE NOT NULL,
    SAT_NAME VARCHAR2(512 BYTE) NOT NULL,
    SAT_TRNAMT VARCHAR2(32 BYTE) NOT NULL,
    SAT_CURRENCY VARCHAR2(3 BYTE) NOT NULL,
    SAT_ORIGIN NUMBER(1) DEFAULT 0 NOT NULL,
    SAT_COMMENT VARCHAR2(1000 BYTE),
    SAT_DTIMPORT DATE,
    IMF_ID NUMBER,
    CLOB_ID NUMBER,
    SUBCLOB_ID NUMBER,
    HIDDEN NUMBER(1) DEFAULT 0
    PCTUSED 0
    PCTFREE 30
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 256MB
         NEXT     256MB     
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    PARTITION BY RANGE (SAT_DTPOSTED)
    ( PARTITION SAT_DTPOSTED_ENE00 VALUES LESS THAN (TO_DATE('01/02/2000', 'DD/MM/YYYY')) TABLESPACE TABLESPACE_NUEVO,
    PARTITION SAT_DTPOSTED_FEB00 VALUES LESS THAN (TO_DATE('01/03/2000', 'DD/MM/YYYY')) TABLESPACE TABLESPACE_NUEVO,
    NOLOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;

    you are missing an END;
    in this part
        if contador > limite then
        begin
          commit;
          contador:= 0;
         dbms_output.put_line('otros '|| limite ||' registros...');
        end if;

  • Why do I get error PLS - 00103 in trigger creation?

    EDIT:
    Sorry, found the solution.
    Editors can remove this thread.
    Edited by: 998093 on May 21, 2013 1:57 PM

    >
    Sorry, found the solution.
    Editors can remove this thread.
    >
    That isn't what the forums are for. The forums are to help everyone, not just you.
    If you want to use the forums you have a responsibility to use them in a way that helps others as well as yourself. Asking for help and then saying you 'found the solution' is just selfish and won't help anyone else that might have the same issue.
    Please edit your thread and restore your question and then post the 'solution' that you found (which is the same as what the responders have told you).
    create or replace trigger trig_job_modify
    after update of job_id
    on employees
    for each row
    declare
      start date; -- got error here: Encountered the symbol "START" when expecting : begun function package pragma......
      end   date;
    begin
      select end_dateThe code will work if you do not use reserved words for the variables as others have said:
      v_start date; -- the original 'start' is a reserved word.
      v_end   date; -- the original 'end' is a reserved word.

  • Since trying to update yesterday, my computer won't download any updates and itunes 11.1 says "Internal Error" and gives me the following info when I click on a song or podcast: Exception Name: NSInvalidArgumentException Description: -[_NSConcreteUserNoti

    Since trying to update yesterday, my computer won't download any updates and itunes 11.1 says "Internal Error" and gives me the following info when I click on a song or podcast:
    Exception Name: NSInvalidArgumentException
    Description: -[_NSConcreteUserNotification activationType]: unrecognized selector sent to instance 0x25a06b0
    User Info: (null)
    0   CoreFoundation                      0x922216fb __raiseError + 219
    1   libobjc.A.dylib                     0x920108db objc_exception_throw + 230
    2   CoreFoundation                      0x9222563d -[NSObject(NSObject) doesNotRecognizeSelector:] + 253
    3   CoreFoundation                      0x9216af77 ___forwarding___ + 487
    4   CoreFoundation                      0x9216ad22 _CF_forwarding_prep_0 + 50
    5   iTunes                              0x00df38e2 iTunes + 14624994
    6   iTunes                              0x00df36ae iTunes + 14624430
    7   libobjc.A.dylib                     0x9201c6c5 -[NSObject performSelector:withObject:withObject:] + 77
    8   Foundation                          0x93c12d85 -[_NSConcreteUserNotificationCenter _sendDelegateMessage:sendToAppDelegate:withNotificationFromMessage:] + 335
    9   Foundation                          0x93c12eaf -[_NSConcreteUserNotificationCenter _notificationPresentedMessage:] + 58
    10  Foundation                          0x93c137c2 __block_global_1 + 156
    11  libdispatch.dylib                   0x9371b2cf _dispatch_call_block_and_release + 15
    12  libdispatch.dylib                   0x9371ea80 _dispatch_client_callout + 46
    13  libdispatch.dylib                   0x9371c8e8 _dispatch_main_queue_callback_4CF + 223
    14  CoreFoundation                      0x9211b255 __CFRunLoopRun + 1829
    15  CoreFoundation                      0x9211a7c4 CFRunLoopRunSpecific + 308
    16  CoreFoundation                      0x9211a67b CFRunLoopRunInMode + 123
    17  HIToolbox                           0x90b6fc76 RunCurrentEventLoopInMode + 242
    18  HIToolbox                           0x90b76eb9 ReceiveNextEventCommon + 374
    19  HIToolbox                           0x90b76d34 BlockUntilNextEventMatchingListInMode + 88
    20  AppKit                              0x97621923 _DPSNextEvent + 709
    21  AppKit                              0x97621167 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
    22  AppKit                              0x9761d78c -[NSApplication run] + 855
    23  iTunes                              0x0017a898 iTunes + 1546392
    24  iTunes                              0x0017a709 iTunes + 1545993
    25  ???                                 0x00000002 0x0 + 2

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, or by corruption of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain models.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

Maybe you are looking for

  • How to display the documents in DMS_DOC_FILES

    Hi: In table DMS_DOC_FILES, I see some activities have attached documents. But at SE16, the field with the attached documents does not show because it is a data type RAW. How to show the content of the attached documents? Thanks a lot!

  • Graphs

    I have recently sarted programming in java, and I would like to write a program that takes in corridinates x and y and draws a line graph on a logarithmic scale with a line of best fit, but i do not know how to handle graphics in java, how is it best

  • Personalizing Sales Order form OEXOEORD

    Hello there I am trying to Personalize to Restrict Values in Customer Number LOV in Sales Order Form. Condition Trigger Event = WHEN-NEW-ITEM-INSTANCE Trigger Object = ORDER.CUSTOMER_NUMBER Action Seq 10, Type = Builtin Builtin Type = Create Record G

  • Cinema Display plus Mac Book Air Gen2 lagging in windows 7 with boot camp !

    Dear All, I have the Apple Cinema display 27 inch. Along with it I get the Mac Book Air 13 inch gen 2,with 2 go of memory and the integrated NVIDIA 320M (driver version:  8.17.12.5746) running on boot camp 3.2. The issue happened when I connect it to

  • Help please with my email and BB

    I have had to change my password with my gmail account, and now im not recieving any emails through my handset. When Im going on orange blackberry interent service its saying the password is invalid.