ORA-00933 sql is not properly completed.

Dear members,

I have the following query in Report Builder 10g,

Select a, b, c
FROM table1
where a = 12

& p_whr_fy & p_whr_supp & p_whr_bt & p_whr_mat_spec & p_whr_lc_num & p_whr_cotton & P_WHR_LOC_ID

Union of all the

Select a, b, c
from table2
where a = 12

& p_whr_fy & p_whr_supp & p_whr_bt & p_whr_mat_spec & p_whr_lc_num & p_whr_cotton & P_WHR_LOC_ID

Here I used the lexical settings, and with spaces in the lines its ok but when trying to change the query / remove spaces in the lines, it gives the error.

ORA-00933 sql not successfully completed

With regard to:

Hello
Check your default values for substitution variables, at least one of them is not empty and causes an error.
kikolus

Tags: Oracle Development

Similar Questions

  • Classic report command SQL ORA-00933 not properly completed when you enable sorting

    Hello

    Oracle 11g r2, APEX 4.1.1.00.23.

    I have a few reports of type SQL Query (PL/SQL, returning the SQL query function body), so the source is as follows:
    begin
      return points_ui.get_points_query(:P0_FILTER_TYPE);
    end;
    Without no sort option, the report is made successfully.

    But I got the following error during a test to enable the sorting option for a column:
    ORA-00933: SQL command not properly ended
    I read about this error on the Oracle forums, and I saw it was a bug in an older version, but I thought it was fixed in 4.0.2...

    Any help would be appreciated.

    Thank you.

    Yann.

    The Order By clause and the column sort is kind of mutually exclusive.
    If your SQL in the report area has an Order By inside and you apply the sort order on the columns in the report attributes tab, then errors occur during execution.

    Concerning

  • Error: ORA-00933: SQL not correctly completed command

    Hello

    When I run the query of delimit (who used to write the result of refsursor) in sql * plus, it works well.
    OPEN result FOR
         SELECT site_direction_id direction_numbers,
               site_lane_id lane_numbers
          FROM site_lanes
             JOIN report_parameters 
               ON site_lane_id = report_parameter_value
            WHERE site_lanes.site_id = my_site_id
              AND report_parameters.report_parameter_id  = in_report_parameter_id
              AND report_parameters.report_parameter_group = 'LANE'
           AND report_parameters.report_parameter_name  = 'LANE'
      ORDER BY site_direction_id ASC,
               site_lane_id ASC
          FROM SYS.DUAL;
    But inside a procedure, when compiling, throwing me the following error message. I'm not sure why it generates this error.
     ----------------------------------------------------
     PL/SQL: SQL Statement ignored
     PL/SQL: ORA-00933: SQL command not properly ended
    Could someone help me?

    Thank you.

    Published by: user10641405 on June 8, 2009 11:39

    Hello

    It really works in SQL * more? He has two FROM clauses.

    You probably want to remove 'OF SYS. DOUBLE"of the last line.

  • drop the triggers in the SQL code causes not properly completed order.

    running the following command in SQL developer, giving the following error message
    ORA-00933: SQL not correctly completed command.
    What I am doing wrong
    Begin  
    For I In (Select Trigger_Name, Owner From Dba_Triggers Where Trigger_Name Like 'ABC%' And Owner = 'my_schema')
      Loop  
        Execute Immediate 'DROP TRIGGER '||I.Owner||'.'||I.Trigger_Name;  
      End Loop;  
    End;
    Published by: Mo2 on April 16, 2010 12:21

    Published by: Mo2 on April 16, 2010 12:24

    MO2 wrote:
    Yes he has.
    is an example of the names BIN$ + i6ls2WnR/Svz0wA5LSG8A == $0

    In fact these triggers created by the database after I have remove the tables. is there a way to avoid their creation?

    drop trigger BIN$+i6ls2WnR/Svz0wA5LSG8A==$0;
    drop trigger BIN$+i6ls2WnR/Svz0wA5LSG8A==$0
                     *
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    

    Yes, oracle complained about it during a fall.
    These objects will be created if you recyclebin on.

    You can either disable your recyclebin or you can purge these items in recyclebin after a fall. Make sure that you require this function or objects in the future.

    Concerning
    Anurag

  • XML request error. ORA-00933: SQL not correctly completed command.

    Hi all

    My Version of the database: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0.

    CREATE table test (name VARCHAR2 (3), identification number);

    Insert test values ('abc', 61);

    Insert test values ('def', 46);

    Select table_name,
    column_name,
    search_string 'abc ',.
    result
    CLO, xmltable (('ora: view("'||))) table_name |' ") / RANK /' | column_name | "[ora:contains (text,' %'|)] "abc". "% ») > 0]')
    result varchar2 columns (10) path '.'
    )
    where table_name in ('TEST');

    and I get: ORA-00933: SQL not correctly completed command it points on ' * xmltable *'
    SQL> SELECT extractValue(value(t), '/CustomerInformation/Customerid') "Customerid"
      2       , extractValue(value(t), '/CustomerInformation/CustomerName') "CustomerName"
      3       , extractValue(value(t), '/CustomerInformation/Country') "Country"
      4  FROM xml_document_table x
      5     , TABLE(
      6         XMLSequence(
      7           extract(x.xml_document, '/Customer/CustomerInformation')
      8         )
      9       ) t
     10  ;
    
    Customerid            CustomerName             Country
    --------------------- ------------------------ -------------
    1                     xxxx                     4
    2                     yyyy                     5
     
    
  • ORA-00933: SQL not correctly completed command.

    Hello

    I get the following error:-ORA-00933: SQL not correctly completed command

    select
                (select max(x.exec_id) from log_exec x) exec_id,
                'c2uv_sys_map' table_name, 'All' upload_file_name,
                count(*) rows_ok, 0 rows_duplicate, 0 rows_rejected, 0 rows_bad, e.upload_file_id
                from c2uv_sys_map e
                where e.row_err_id=0
                group by e.upload_file_id
                UNION
                select max(x.exec_id) from log_exec x) exec_id,
                'c2uv_sys_map' table_name, 'All' upload_file_name,
                count(*) rows_ok, 0 rows_duplicate, 0 rows_rejected, 0 rows_bad, e.upload_file_id
                from c2uv_sys_map e
                group by e.upload_file_id
                UNION
                select (select max(x.exec_id) from log_exec x) exec_id,
                'c2uv_sys_map' table_name, 'All' upload_file_name,
                0 rows_ok, count(*) rows_duplicate, 0 rows_rejected, 0 rows_bad, e.upload_file_id
                from c2uv_sys_map  e
                where e.row_err_id=2
                group by e.upload_file_id
                UNION
                select (select max(x.exec_id) from log_exec x) exec_id,
                'c2uv_sys_map' table_name, 'All' upload_file_name,
                0 rows_ok, 0 rows_duplicate, count(*) rows_rejected, 0 rows_bad, e.upload_file_id
                from c2uv_sys_map  e
                where (e.row_err_id =1) or (e.row_err_id >2)
                group by e.upload_file_id
                UNION
                select (select max(x.exec_id) from log_exec x) exec_id,
                'c2uv_sys_map' table_name, 'All' upload_file_name,
                0 rows_ok, 0 rows_duplicate, 0 rows_rejected, u.no_of_bad_rows rows_bad, t.upload_file_id
                from c2uv_sys_map t right outer join chn_upload u on t.upload_file_id = u.config_id
                inner join chn_upload_config c on u.config_id = c.config_id
                inner join chc_data_filetype f on c.data_filetype_id = f.data_filetype_id
                where f.data_filetype_id = 11
                group by u.no_of_bad_rows, t.upload_file_id
    Edited by: 872435 January 6, 2012 06:09

    It seems that this parenthesis corresponds to nothing:

    select (select max(x.exec_id) from log_exec x) exec_id,
           'c2uv_sys_map' table_name,
           'All' upload_file_name,
           count(*) rows_ok,
           0 rows_duplicate,
           0 rows_rejected,
           0 rows_bad,
           e.upload_file_id
      from c2uv_sys_map e
     where e.row_err_id = 0
     group by e.upload_file_id
    UNION
    select max(x.exec_id)
      from log_exec x)         -- <-- Here
    ...
    
  • ORA-00933: SQL not correctly completed command (similar question titles exist - can not find my question).

    Hi all

    I have a couple of (relatively simple) tables (see DDL and DML below and try to join them,)

    but I get the error ORA-00933 - and I can't for the life of understand me why?

    I also put this on SQLFiddle for those who do not have a very convenient server.

    This is the SELECT query - internal works without problem, but I can't

    all for work.

    Any help appreciated - TIA and rgs,

    Paul...

    [code]

    CREATE TABLE ticket

    (

    ticket_id INT PRIMARY KEY,

    ticket_description VARCHAR (25)

    );

    INSERT INTO ticket VALUES (1, 'ticket 1');

    INSERT INTO ticket VALUES (2, 'ticket 2');

    INSERT INTO ticket VALUES (3, ' ticket 3 ");

    INSERT INTO ticket VALUES (4, 'ticket 4');

    INSERT INTO ticket VALUES (5, 'ticket 5');

    CREATE TABLE my_comment

    (

    comment_id INT PRIMARY KEY,

    ticket_id INT NOT NULL,

    comments_comment VARCHAR (45) NOT NULL,

    comments_timestamp INT NOT NULL

    );

    INSERT INTO my_comment VALUES (1, 1, 'comment 1 ticket to 1', ((TO_DATE ('2013-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (2, 1, 'Comment 2 1 notes', ((TO_DATE ('2014-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (3, 1, ' comment 3 tickets on 1', ((TO_DATE ('2014-06-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (4, 1, ' comment 4 tickets on 1', ((TO_DATE ('2014-07-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (5, 2, 'comment 1 ticket in 2', ((TO_DATE ('2013-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (6, 2, 'Comment 2 on 2 ticket', ((TO_DATE ('2014-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (7, 2, 'comment on ticket 2 3', ((TO_DATE ('2014-07-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (8, 2, 'comment on ticket 2 4', ((TO_DATE ('2014-08-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (9, 3, 'comment 1 ticket of 3', ((TO_DATE ('2001-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (10, 3, 'Comment 2 tickets in 3', ((TO_DATE ('2002-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (11, 3, 'comment on ticket 3 3', ((TO_DATE ('2004-06-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (12, 3, ' comment 4 tickets in 3', ((TO_DATE ('2004-07-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (13, 4, 'comment 1 ticket on 4', ((TO_DATE ('2003-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (14, 4, 'Comment 2 tickets in 4', ((TO_DATE ('2004-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (15, 4, 'comment on ticket 4 3', ((TO_DATE ('2004-07-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (16, 4, ' comment 4 tickets 4', ((TO_DATE ('2006-06-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (17, 5, 'comment 1 ticket to 1', ((TO_DATE ('2013-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (18, 5, 'Comment 2 on 2 ticket', ((TO_DATE ('2014-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (19, 5, 'comment on ticket 3 3', ((TO_DATE ('2014-06-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    INSERT INTO my_comment VALUES (20, 5, ' comment 4 tickets 4', ((TO_DATE ('2014-07-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))

    [\code]

    do not use 'UNDER' keyword in alias for the table

    SELECT t.ticket_id,

    t.ticket_description,

    x.c_max_date,

    z.comments_comment

    FROM (SELECT ticket_id, MAX (c.comments_timestamp) AS c_max_date

    OF my_comment c

    WHERE (c.comments_timestamp

    ((TO_DATE ('2013-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400-60000000)))

    )

    GROUP BY ticket_id) x

    INNER JOIN t ticket

    ON t.ticket_id = x.ticket_id

    INNER JOIN my_comment z

    WE z.comments_timestamp = x.c_max_date;

    ----

    Ramin Hashimzade

  • PL/SQL: ORA-00933: SQL not correctly completed command

    Hello

    CREATE or REPLACE PROCEDURE SAI (STATUS_CODE OUT varchar2)
    AS
    BEGIN
    Select ename emp in STATUS_CODE where empno = '7369';
    END SAI;

    I get the error "* not correctly completed SQL command * ' when executing this procedure. Help, please.

    Hello

    user10503747 wrote:
    Hello

    CREATE or REPLACE PROCEDURE SAI (STATUS_CODE OUT varchar2)
    AS
    BEGIN
    Select ename emp in STATUS_CODE where empno = '7369';
    END SAI;

    I get the error "* not correctly completed SQL command * ' when executing this procedure. Help, please.

    I want to tell u that you made mistake of bases...

    First you write a wrong syntax for your sql statement

    Select ename emp in STATUS_CODE where empno = '7369';

    its should be like

    Select ename from STATUS_CODE from emp where empno = '7369';

    your entire procedure will be as

    CREATE OR REPLACE PROCEDURE SAI (STATUS_CODE out varchar2)
    AS
    BEGIN
    select last_name into STATUS_CODE from employees where employee_id=102;
    END SAI ;
    

    and after that, you must declare a variable of liaison

    Return_name VARIABLE VARCHAR2 (30);

    Then exceute your interior

    exec sai(:return_name);

    print your value of variable binding

    print :return_name;
    
    RETURN_NAME
    --------------------------------
    De Haan
    

    Regards

    UMI

  • Problems crossing timestamp variable block-SQL command not properly ended

    Can you please help me answer or direct me to resources to answer the following.

    I'm trying to pass a timestamp of a block variable but me make mistakes with all the methods I've tried yet.

    The following example tries to generate a list of all the dates of sales for orders after March 21, 2000.

    DECLARE
    BeginDate Orders.PurchaseDate%TYPE: = to_date (March 21, 2000 "," dd-mm-yyyy "");
    Target Orders.PurchaseDate%TYPE;

    BEGIN
    DBMS_OUTPUT. Put_line(to_char (BeginDate));
    SELECT PurchaseDate from separate orders to target WHERE PurchaseDate > BeginDate;
    END;

    When you run it - it returns
    ORA-00933: command not properly ended SQL ORA-06512: line 8
    please notify

    Hello

    I guess you miss a semicolon as a variable binding for the USING keyword.

    BEGIN
     DBMS_OUTPUT.PUT_LINE(to_char(BeginDate,'DD.MM.YYYY'));
     sql1 = 'SELECT MAX(PurchaseDate) INTO Target from Orders WHERE PurchaseDate> :var_date';
     Execute Immediate sql1 Using BeginDate;
     DBMS_OUTPUT.PUT_LINE(to_char(Target,'DD.MM.YYYY'));
    END;
    

    You can also check out the links below:
    http://download.Oracle.com/docs/CD/B10500_01/AppDev.920/a96624/11_dynam.htm#13131
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/executeimmediate_statement.htm

    HTH,
    Thierry

  • SQL command not properly ended.

    Hello
    I have connected the aplication to the oracle database in developer j. I used the Insert buttons and validation included.
    For debugging application it runs correctly. but sometimes it gives error sql command not completed successfully.
    I checked the requests when it runs successfully, it runs the query ' insert into Schema_name.table_name (column names) values (?)'.
    but when it gives an error it runs the query ' insert into Schema_name. Schema_name. Schema_name. Schema_name. Schema_Name.table_name(column names) VALUES (?) e

    Can someone tell me what is the reason of it?

    Thank you.

    Can you try to change your query of

    SELECT CD_ID, Data_Type, Data_Value, Misc1, Misc2 FROM Sample_ADF_FinIQ_Common.Common_data
    

    TO

    SELECT CD_ID, Data_Type, Data_Value, Misc1, Misc2 FROM Common_data
    

    Note that I deleted the schema name of the query. Specific no reason why you use in front of the table schema name (I assume that you have created the connection to the schema on which you perform these operations).

    Arun-

  • Firefox 8 does not properly complete OS x 10.7.2: must use force to quit smoking

    Since the update to Firefox 8 (Firefox 7 on 10.7.2 worked without problems) I can is more closed Firefox properly.

    Firefox must be closed using the option to force out.

    I also noticed read/write access increased from hard drive since the upgrade to Firefox 8 and switch between tabs is significantly slower.

    Whenever I had problems with FF after an update, it's usually an add-on that does not play well.

    My most recent problem was Firefox does not not at launch.

    I created a new profile and it worked immediately.

    Check out the last step here:
    https://support.Mozilla.com/en-us/KB/basic%20Troubleshooting

    And be sure not to delete your old profile! * cough * likeIdid * cough *.

  • ORA-00900: SQL statement not valid (ColdFusion/Java)

    I found a lot of topics on this subject, but none seems to be done exactly what is happening to me.

    I have a ColdFusion/Java routine which displays applications for funding must be approved. When you click the action button, you can approve or disapprove. When the user presses the button, I get the error message by e-mail a copy of the trace. He shows me the invalid statement. I have copy and run in SQL * more on my Production database. He returned the planned line. How can this be? Confused.

    This is the track [link]https://dl.dropboxusercontent.com/u/3594970/1244Err.txt

    Oracle 11g on a Windows Server

    Deleted characters additional (PM User in my sample code) and the error disappeared.

  • Cold Fusion Sql does not properly

    When running the code through this function, it does not give me a syntex error and not actually delete all records either. There could be the option to remove anywhere from 1 plug up to several hundred... form.chk_email is a checkbox from the form of presentation to access this page. I want to click the box to say that automatically sends to remove from the db. Here's the code for the checkbox as well.

    I just found the problem, it is with the checkbox on the form:

    It should have been:

    Instead of

  • Error ORA-00933

    Hi all, when I try to perform under query I get PL/SQL: ORA-00933: not correctly completed SQL command can someone tell where I'm wrong?
    DECLARE
    
    V_HEADER_ID NUMBER;
    
    V_GROUP_ID NUMBER;
    
    
    BEGIN
    
    
    select regal.regal_inv_landed_cost_seq.nextval.NEXTVAL into V_GROUP_ID from dual ;
    
    select regal.regal_inv_landed_cost_seq.nextval.currval into V_HEADER_ID from dual ;
    
    INSERT INTO rcv_transactions_interface 
    (
                 INTERFACE_TRANSACTION_ID,
                 HEADER_INTERFACE_ID,
                 GROUP_ID,
                 TRANSACTION_TYPE,
                 TRANSACTION_DATE,
                 PROCESSING_STATUS_CODE,
                 PROCESSING_MODE_CODE,
                 TRANSACTION_STATUS_CODE,
                 QUANTITY,
                 LAST_UPDATE_DATE,
                 LAST_UPDATED_BY,
                 CREATION_DATE,
                 CREATED_BY,
                 RECEIPT_SOURCE_CODE,
                 DESTINATION_TYPE_CODE,
                 AUTO_TRANSACT_CODE,
                 SOURCE_DOCUMENT_CODE,
                 UNIT_OF_MEASURE,
                 ITEM_ID,
                 UOM_CODE,
                 EMPLOYEE_ID,
                 SHIPMENT_HEADER_ID,
                 SHIPMENT_LINE_ID,
                 TO_ORGANIZATION_ID,
                 SUBINVENTORY_ID,
                 FROM_ORGANIZATION_ID,
                 FROM_SUBINVENTORY
    )
    SELECT 
         regal.regal_inv_landed_cost_seq.nextval,      --Interface_transaction_id
         V_HEADER_ID,                                  --Header Interface ID
         V_GROUP_ID,                                    --Group ID
         'Ship',                                       --Transaction Type
         sysdate,                                      --Transaction Date
         'PENDING',                                    --Processing Status Code
         'BATCH',                                      --Processing Mode Code
         'PENDING',                                    --Transaction Status Code
         lc.quantity_received,                          --Quantity
         lc.last_update_date,                          --last update date
         lc.last_updated_by,                           --last updated by
         sysdate,                                      --creation date
         lc.created_by,                                --created by
         'INVENTORY',                                  --Receipt source Code
         'INVENTORY',                                  --Destination Type Code
         'DELIVER' ,                                    --AUT Transact Code
         'INVENTORY',                                  --Source Document Code
          msi.primary_uom_code ,                       --Unit Of Measure
          msi.inventory_item_id,                        --Item ID
          msi.primary_unit_of_measure,                  --UOM COde
          regal.regal_inv_landed_cost_seq.curval,       --Shipment Header ID
          regal.regal_inv_landed_cost_seq.curval,       --SHipment Line ID
          82,                                           --To Organization ID
          'Brooklyn',                                     --Sub Inventory ID
          81,                                            --From Organization
          'Vessel'                                       --From Subinventory
      
      FROM
         regal.regal_inv_landed_cost_tab lc,
         mtl_system_items msi
    
      WHERE
         lc.organization_id = msi.organization_id
         AND  lc.inventory_item_id = msi.inventory_item_id
    END;
    
    ERROR at line 70:
    ORA-06550: line 69, column 56:
    PL/SQL: ORA-00933: SQL command not properly ended
    ORA-06550: line 7, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 70, column 4:
    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
    Thanks in advance!

    These lines:

    Sandy wrote:

    select regal.regal_inv_landed_cost_seq.nextval.NEXTVAL into V_GROUP_ID from dual ;
    
    select regal.regal_inv_landed_cost_seq.nextval.currval into V_HEADER_ID from dual ;
    

    Probably should be this instead:

    select regal.regal_inv_landed_cost_seq.NEXTVAL into V_GROUP_ID from dual;
    select regal.regal_inv_landed_cost_seq.currval into V_HEADER_ID from dual;
    
  • command not properly ended

    Can someone explain why this error occurs?

    ORA-00933: SQL not correctly completed command.

    SELECT u.id LIKE username, (SUM (CASE WHEN c.teachermark = 0 1 THEN 1 ELSE END) * 100 / 19) LIKE rawgrade, MAX (c.teachertimestamp) AS dategraded FROM m_user AS u LEFT JOIN m_checklist_check AS FROM c m_user LIKE u LEFT JOIN m_checklist_check AS c ON u.id = c.userid WHERE c.item IN (21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,3 AND u.id IN (38392) GROUP BY u.id
    SQL> select * from dual as T;
    select * from dual as T
                       *
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    
    SQL> select * from dual T;
    
    D
    -
    X
    

    So, delete 'UNDER' in FROM CLAUSE:
    Not ' m_user LIKE u", should be"ROM m_user u.

Maybe you are looking for