Error ORA-00904 on merger

Hi all

I try to execute the following statement, but I am getting error ORA-00904 fr.
If I replace the clause on a very simple ("A" = "B") as he works.
I tried to use concat() instead of | without success and I think I tried all the other options, but nothing works.

Any idea? I'm not :-(


Concerning
Thomas


Fehler beim Start line 1 in command:
merge into dest SH_SCRIPT_ITEM_INFO
using (select * from SH_SCRIPT_SOURCE CBC where to_date (src.) DWH_EXPORT_DATE) = to_date (SYSDATE-5))
on (src.ORGANIZATION |) CBC. SOURCE_CODE | CBC. SKU = dest.ORGANIZATION | dest. SOURCE_CODE | dest. SKU)
when matched, then update game
dest. ADVANCE_ORDER_QUANTITY = SH_SCRIPT_SOURCE. ADVANCE_ORDER_QUANTITY,
dest. ADVANCE_ORDER_START_QUANTITY = SH_SCRIPT_SOURCE. ADVANCE_ORDER_START_QUANTITY,
dest. ADVANCE_ORDERS = SH_SCRIPT_SOURCE. ADVANCE_ORDERS,
dest. AUTO_DELIVERY_QUANTITY = SH_SCRIPT_SOURCE. AUTO_DELIVERY_QUANTITY,
dest. AUTO_DELIVERY_RATE = SH_SCRIPT_SOURCE. AUTO_DELIVERY_RATE,
dest. CANCELLATION_QUANTITY = SH_SCRIPT_SOURCE. CANCELLATION_QUANTITY,
dest. CHANNEL_CODE = SH_SCRIPT_SOURCE. CHANNEL_CODE,
dest. CREATED = SH_SCRIPT_SOURCE. CREATED,
dest. DURATION = SH_SCRIPT_SOURCE. DURATION,
dest. EXPOSURE = SH_SCRIPT_SOURCE. EXHIBITIONS,
dest. EZ_PAY_QUANTITY = SH_SCRIPT_SOURCE. EZ_PAY_QUANTITY,
dest. EZ_PAY_RATE = SH_SCRIPT_SOURCE. EZ_PAY_RATE,
dest. FIRST_INSTALMENT = SH_SCRIPT_SOURCE. FIRST_INSTALMENT,
dest. ITEM_STATUS = SH_SCRIPT_SOURCE. ITEM_STATUS,
dest. ITEM_TYPE = SH_SCRIPT_SOURCE. ITEM_TYPE,
dest. LAST_MODIFIED = SH_SCRIPT_SOURCE. LAST_MODIFIED,
dest. MULTI_QUANTITY_RATE = SH_SCRIPT_SOURCE. MULTI_QUANTITY_RATE,
dest. NEW_NAME_ORDERS = SH_SCRIPT_SOURCE. NEW_NAME_ORDERS,
dest. NUMBER_OF_INSTALMENTS = SH_SCRIPT_SOURCE. NUMBER_OF_INSTALMENTS,
dest. PRICE_CODE = SH_SCRIPT_SOURCE. PRICE_CODE,
dest. PROMO_CODES = SH_SCRIPT_SOURCE. PROMO_CODES,
dest. QVC_PRICE = SH_SCRIPT_SOURCE. QVC_PRICE,
dest. SALES_PRICE = SH_SCRIPT_SOURCE. SALES_PRICE,
dest. COMMANDS IS SH_SCRIPT_SOURCE. ORDERS,
dest. START_DATE_TIME = SH_SCRIPT_SOURCE. START_DATE_TIME,
dest. START_DATE_TIME_2 = SH_SCRIPT_SOURCE. START_DATE_TIME_2,
dest. START_QUANTITY = SH_SCRIPT_SOURCE. START_QUANTITY,
dest. STOP_DATE_TIME = SH_SCRIPT_SOURCE. STOP_DATE_TIME,
dest. SUBSEQUENT_INSTALMENTS = SH_SCRIPT_SOURCE. SUBSEQUENT_INSTALMENTS,
dest. TOTAL_AMOUNT = SH_SCRIPT_SOURCE. TOTAL_AMOUNT,
dest. TOTAL_AMOUNT_PHYSICAL = SH_SCRIPT_SOURCE. TOTAL_AMOUNT_PHYSICAL,
dest. TOTAL_AMOUNT_WAITLIST = SH_SCRIPT_SOURCE. TOTAL_AMOUNT_WAITLIST,
dest. WAITLIST_ORDERS = SH_SCRIPT_SOURCE. WAITLIST_ORDERS,
dest. WAITLIST_QUANTITY = SH_SCRIPT_SOURCE. WAITLIST_QUANTITY,
dest. WAITLIST_START_QUANTITY = SH_SCRIPT_SOURCE. WAITLIST_START_QUANTITY
Delete where CBC. TRANSACTION_TYPE = "DEL".
When not equal then insert)
ADVANCE_ORDER_QUANTITY,
ADVANCE_ORDER_START_QUANTITY,
ADVANCE_ORDERS,
AUTO_DELIVERY_QUANTITY,
AUTO_DELIVERY_RATE,
CANCELLATION_QUANTITY,
CHANNEL_CODE,
CREATED,
DURATION,
EXHIBITIONS,
EZ_PAY_QUANTITY,
EZ_PAY_RATE,
FIRST_INSTALMENT,
ITEM_STATUS,
ITEM_TYPE,
LAST_MODIFIED,
MULTI_QUANTITY_RATE,
NEW_NAME_ORDERS,
NUMBER_OF_INSTALMENTS,
ORGANIZATION,
PRICE_CODE,
PROMO_CODES,
QVC_PRICE,
SALES_PRICE,
ORDERS,
SKU,
SOURCE_CODE,
START_DATE_TIME,
START_DATE_TIME_2,
START_QUANTITY,
STOP_DATE_TIME,
SUBSEQUENT_INSTALMENTS,
TOTAL_AMOUNT,
TOTAL_AMOUNT_PHYSICAL,
TOTAL_AMOUNT_WAITLIST,
WAITLIST_ORDERS,
WAITLIST_QUANTITY,
WAITLIST_START_QUANTITY)
values)
SH_SCRIPT_SOURCE. ADVANCE_ORDER_QUANTITY,
SH_SCRIPT_SOURCE. ADVANCE_ORDER_START_QUANTITY,
SH_SCRIPT_SOURCE. ADVANCE_ORDERS,
SH_SCRIPT_SOURCE. AUTO_DELIVERY_QUANTITY,
SH_SCRIPT_SOURCE. AUTO_DELIVERY_RATE,
SH_SCRIPT_SOURCE. CANCELLATION_QUANTITY,
SH_SCRIPT_SOURCE. CHANNEL_CODE,
SH_SCRIPT_SOURCE. CREATED,
SH_SCRIPT_SOURCE. DURATION,
SH_SCRIPT_SOURCE. EXHIBITIONS,
SH_SCRIPT_SOURCE. EZ_PAY_QUANTITY,
SH_SCRIPT_SOURCE. EZ_PAY_RATE,
SH_SCRIPT_SOURCE. FIRST_INSTALMENT,
SH_SCRIPT_SOURCE. ITEM_STATUS,
SH_SCRIPT_SOURCE. ITEM_TYPE,
SH_SCRIPT_SOURCE. LAST_MODIFIED,
SH_SCRIPT_SOURCE. MULTI_QUANTITY_RATE,
SH_SCRIPT_SOURCE. NEW_NAME_ORDERS,
SH_SCRIPT_SOURCE. NUMBER_OF_INSTALMENTS,
SH_SCRIPT_SOURCE.ORGANIZATION,
SH_SCRIPT_SOURCE. PRICE_CODE,
SH_SCRIPT_SOURCE. PROMO_CODES,
SH_SCRIPT_SOURCE. QVC_PRICE,
SH_SCRIPT_SOURCE. SALES_PRICE,
SH_SCRIPT_SOURCE. ORDERS,
SH_SCRIPT_SOURCE. SKU,
SH_SCRIPT_SOURCE. SOURCE_CODE,
SH_SCRIPT_SOURCE. START_DATE_TIME,
SH_SCRIPT_SOURCE. START_DATE_TIME_2,
SH_SCRIPT_SOURCE. START_QUANTITY,
SH_SCRIPT_SOURCE. STOP_DATE_TIME,
SH_SCRIPT_SOURCE. SUBSEQUENT_INSTALMENTS,
SH_SCRIPT_SOURCE. TOTAL_AMOUNT,
SH_SCRIPT_SOURCE. TOTAL_AMOUNT_PHYSICAL,
SH_SCRIPT_SOURCE. TOTAL_AMOUNT_WAITLIST,
SH_SCRIPT_SOURCE. WAITLIST_ORDERS,
SH_SCRIPT_SOURCE. WAITLIST_QUANTITY,
SH_SCRIPT_SOURCE. WAITLIST_START_QUANTITY)
where src. TRANSACTION_TYPE = "INS".
Fehler bei Befehlszeile:3 Spalte:43
Fehlerbericht:
SQL-Fehler: ORA-00904: "SRC". "' SKU ': ungultiger Bezeichner
00904, 00000 - '% s: invalid identifier '.
* Cause:
* Action:

Published by: user8339462 on 20.02.2012 03:18

Thanks for posting the descrptions of src and dest...

There is a sku may be misspelled possiibility...
or you have packed columns with double quotation marks ("")

Tags: Database

Similar Questions

  • By clicking on the icon of debugging for a procedure or function survey error ORA-00904

    Hi all

    By clicking on the icon of debugging for a procedure or function throws the error ORA-00904.

    Developer SQL 4.1.0.19.07

    Java 1.8.0_40

    OS: Linux Mint 17.1

    Developer SQL 4.1.0.18.37 on the same machine works very well.

    Clues?

    Thank you!

    degger error.png

    It is indeed regressed as RDBMS to 10g have object_id all_procedures notice. Buggy.

  • Oracle on the SQL Server tables dblinked query error ORA-00904

    Hello

    I created a dblink to a SQL from Oracle database using generic connectivity.
    The following query returns the error ORA-00904 invalid identifier in the (tblEmp.Empno) WHERE clause

    SELECT 'EmpNo', "EmpName", "DeptName".
    OF tblEmp@sqlserver.
    tblDept@sqlserver
    WHERE tblDept.DeptNo = tblEmp.Empno

    I had to include the column names between double quotes because of the case review of the columns, but I can't do the
    same thing for the WHERE clause.

    (1) so how can I fix this error?
    (2) also how can I include the Deptno column with the table alias in the columns list?
    (Deptno is ambiguous in the Emp and Dept tables)

    Kind regards
    Sam

    Looks like you have case-sensitive column names, try this

    SELECT "EmpNo","EmpName", "DeptName"
    FROM tblEmp@sqlserver e,
    tblDept@sqlserver d
    WHERE d."DeptNo" = e."Empno" --<--- are you sure this is the correct join condition
    

    What should we not

    WHERE d."DeptNo" = e."DeptNo"
    

    Published by: Alex Nuijten on September 22, 2009 13:28

  • Why this error ORA-00904: invalid identifier

    Hi all
    Please advice me what is wronge with this
    ORA-00904: "NONE": invalid identifier


    create or replace trigger test_table2
    before inserting
    on Ta
    for each line
    declare
    v2_none_con varchar2 (20);
    v2_none_con2 varchar2 (20);
    I have number (10);
    TYPE v2_EmpCurTyp IS REF CURSOR;
    v2_emp_cursor v2_EmpCurTyp;
    v2_stmt_str VARCHAR2 (200);
    RECORD IS of TYPE v2_employee_type (v_rowid varchar (100));
    v2_emp_content v2_employee_type;
    Start

    v2_none_con2: = 'NONE ';

    v2_stmt_str: = 'select rowid from t1 where name =' v2_none_con2;
    I: = 0;
    V2_emp_cursor OPEN FOR v2_stmt_str;
    LOOP FETCH v2_emp_cursor INTO v2_emp_content;
    EXIT WHEN v2_emp_cursor % NOTFOUND;
    dbms_output.put_line (v2_emp_content.v_rowid);
    i: = i + 1;
    v2_none_con: = 'NO ' | TO_CHAR (i);

    END LOOP;
    end;




    SQL > /.
    Insert in your values (10, 'W')
    *
    ERROR on line 1:
    ORA-00904: "NONE": invalid identifier
    ORA-06512: in the 'END. TEST_TABLE2', line 15
    ORA-04088: error during execution of trigger ' FINAL. TEST_TABLE2'


    SQL >

    First of all:

    v2_stmt_str: = 'select rowid from t1 where name =' v2_none_con2;

    I would give you compilation errors. I guess the real code is:

    v2_stmt_str: = 'select rowid from t1 where name =' | v2_none_con2;

    Now that the text of the statement would be? V2_none_con2 is 'NONE', dynamic SQL would be:

    Select rowid from t1 where name = NONE

    It is obvious, it will trigger ORA-00904 (except a column named NONE t1). What you want is:

    Select rowid from t1 where name ='' NONE

    So change:

    v2_stmt_str: = 'select rowid from t1 where name =' | v2_none_con2;

    TO

    v2_stmt_str: = ' select rowid from t1, whose name =="' | v2_none_con2 | '''';

    SY.

  • Search and apply reception error: ORA-00904: "ON_ACCT_PO_NUM": not valid

    Hello

    We get an error when you try to apply revenues, ORA-00904: "ON_ACCT_PO_NUM": invalid identifier. Found some Metalink:

    Find and apply functionality Arxrwmai filled with ORA-00904: error "ON_ACCT_PO_NUM" [388202.1 ID]
    ARXRWMAI: ORA-00904: "On_acct_po_num": invalid identifier, applying the reception [564612.1 ID]
    ARP_PROCESS_APPLICATION is not valid - PLS-00302: component 'ON_ACCT_CUST_ID' must be declared [577194.1 ID]

    Basically all suggest that the columns (IE ON_ACCT_PO_NUM) are missing in AR_RECEIVABLE_APPLICATIONS. Check these tables and columns are actually there, however, I ran SQL > @$AR_TOP/patch/115/sql/arvrrapp.sql (the version is 115.26.15104.3). And re-tested, always a problem. Audit to verify what patches have been applied recently that could cause this.

    RDBMS: 11.2.0.1.0
    Oracle Applications: 11.5.10.2

    Thank you
    -Steve

    Hi steve;

    Check use select * ad_bugs and check patch that applied using the applied date column

    * PS: patch 5359197 is exist on your server that is mentioned on the research and apply feature Arxrwmai ends with ORA-00904: error "ON_ACCT_PO_NUM" [388202.1 ID] *.

    Respect of
    HELIOS

  • PL/SQL error ORA-00904 not no projection in Oracle SQL Developer

    Hello

    I am new to Oracle and the different development tools available.
    Using Oracle SQL Developer, we encountered a scenario where a PL/SQL package doesn't compile, but it only displays the warnings in the log of the compiler.

    The packeage even when it is compiled using PL/SQL Navigator shows a much more detailed list of errors and highlights the real problem.

    Why Oracle SQL Developer does not show the following error?

    PL/SQL: ORA-00904: "SERIAL_LINE_ID": invalid identifier




    Concerning
    Adrian

    There are various settings that you can give to messages. (for example, information, warning, severe).

    Tools-PL/SQL compiler options.

    Normally, just the first 20 messages are displayed.
    Change the code to get rid of the warning messages or change settings to ignore the information and warning messages.

    P.S. There is a dedicated forum sqldeveloper where your question should really be displayed.

    Published by: Keith Jamieson on March 9, 2009 13:45

  • HELP-immediate execution in PL/SQL has received the error ORA-00904: invalid identifier

    What is the problem with the following codes from PL/SQL (actually it comes to Oracle Metalink Note: 313175.1):
    ===========
    declare
    cursor c1 is select * from $ semantic;
    v_statement VARCHAR2 (255);
    v_nc number (10);
    v_nt number (10);
    Start
    immediate execution
    "select count (*) from $ semantics" in v_nc;
    immediate execution
    ' select count (distinct s_table_name) of semantics$ "in v_nt;
    dbms_output.put_line
    ('Edit' | v_nc |) 'columns ' | v_nt | "tables");
    to r1 c1 loop
    v_statement: = 'ALTER TABLE ' | R1.s_owner | '.' || R1.s_table_name;
    v_statement: = v_statement | «change (' |)» R1.s_column_name | ' ';
    v_statement: = v_statement | R1.s_data_type | ' (' | r1.s_char_length;)
    v_statement: = v_statement | ' CHAR))';
    immediately run v_statement;
    end loop;
    dbms_output.put_line ('Done');
    end;
    /
    =====
    Executed once the codes as sysdba against 10gr 2 database, I got this error:
    From build to select columns to change
    Editing columns 4428 35249
    declare
    *
    ERROR on line 1:
    ORA-00904: invalid identifier
    ORA-06512: at line 22

    I see nothing wrong with the line of "immediate execution". I appreciate your help!

    Thank you.

    Hello
    Try to print the offending instruction using exception, I used small test cases by changing the pl/sql block, you may need to change to respond to all other types of data in this table.

    CREATE TABLE semantics$
    AS
       SELECT USER AS owner,
              table_name,
              data_type AS s_data_type,
              column_name,
              data_length AS s_char_length
       FROM cols
       WHERE table_name = 'MY_OBJECTS';
    
    DECLARE
       CURSOR c1
       IS
          SELECT *
          FROM semantics$;
    
       v_statement   VARCHAR2 (255);
       v_nc          NUMBER (10);
       v_nt          NUMBER (10);
    BEGIN
       EXECUTE IMMEDIATE 'select count(*) from semantics$' INTO v_nc;
    
       EXECUTE IMMEDIATE 'select count(distinct table_name) from semantics$'
          INTO v_nt;
    
       DBMS_OUTPUT.put_line(   'ALTERing '
                            || v_nc
                            || ' columns in '
                            || v_nt
                            || ' tables');
    
       FOR r1 IN c1
       LOOP
          v_statement   := 'ALTER TABLE ' || r1.owner || '.' || r1.table_name;
          v_statement   := v_statement || ' modify (' || r1.column_name || ' ';
          v_statement   :=
             v_statement || r1.s_data_type || '(' || r1.s_char_length;
    
          IF (r1.s_data_type = 'NUMBER')
          THEN
             v_statement   := v_statement || '))';
          ELSE
             v_statement   := v_statement || ' CHAR))';
          END IF;
    
          DBMS_OUTPUT.put_line (v_statement);
    
          -- EXECUTE IMMEDIATE v_statement;
       END LOOP;
    
       DBMS_OUTPUT.put_line ('Done');
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.put_line ('Statement = ' || v_statement);
          DBMS_OUTPUT.put_line (SUBSTR (SQLERRM, 1, 200));
          RAISE;
    END;
    

    _ Output

    ALTERing 13 columns in 1 tables
    ALTER TABLE MY_OBJECTS modify (OWNER VARCHAR2(30 CHAR))
    ALTER TABLE MY_OBJECTS modify (OBJECT_NAME VARCHAR2(30 CHAR))
    ALTER TABLE MY_OBJECTS modify (SUBOBJECT_NAME VARCHAR2(30 CHAR))
    ALTER TABLE MY_OBJECTS modify (OBJECT_ID NUMBER(22))
    ALTER TABLE MY_OBJECTS modify (DATA_OBJECT_ID NUMBER(22))
    ALTER TABLE MY_OBJECTS modify (OBJECT_TYPE VARCHAR2(19 CHAR))
    ALTER TABLE MY_OBJECTS modify (CREATED DATE(7 CHAR))
    ALTER TABLE MY_OBJECTS modify (LAST_DDL_TIME DATE(7 CHAR))
    ALTER TABLE MY_OBJECTS modify (TIMESTAMP VARCHAR2(19 CHAR))
    ALTER TABLE MY_OBJECTS modify (STATUS VARCHAR2(7 CHAR))
    ALTER TABLE MY_OBJECTS modify (TEMPORARY VARCHAR2(1 CHAR))
    ALTER TABLE MY_OBJECTS modify (GENERATED VARCHAR2(1 CHAR))
    ALTER TABLE MY_OBJECTS modify (SECONDARY VARCHAR2(1 CHAR))
    Done
    

    Concerning

    Published by: OrionNet on January 5, 2009 23:53

    Published by: OrionNet on January 5, 2009 23:55

  • SQL Error: Invalid identifier ORA-00904

    Hello

    The Version of SQL Developer: 11g

    Two tables: nav_vendors (source), vendor (destination)

    Both having 16 'Same' columns (data will differ for some records of... for some data records are same to check the process DML works according to the need).

    I'm trying to insert update and delete using merge operation

    I m getting error below whenever I tried to merge them. All column names are the same in the table.

    SQL error: ORA-00904: "S". "" COMPANY_CODE ": invalid identifier

    SQL:

    MERGE INTO s source

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.Name, s.Name) NAME.

    NVL (d.NAME3, s.NAME3) Name3,

    NVL (d.ADDRESS1, s.ADDRESS1) address1.

    NVL (d.DISTRICT, s.DISTRICT) DISTRICT.

    NVL (d.CITY, s.CITY), CITY,

    NVL (d.Country, s.Country) COUNTRIES.

    NVL (d.Postcode, s.Postcode) ZIP Code,

    NVL (d.TELEPHONE, s.TELEPHONE), PHONE,.

    NVL (d.Fax, s.Fax) FAX.

    NVL (d.contact, s.contact) CONTACT.

    NVL (d.URL, s.URL) URL.

    NVL (d.email, s.email) EMAIL.

    NVL (d.DELIVERY_TOLERANCE, s.DELIVERY_TOLERANCE) DELIVERY_TOLERANCE.

    NVL (d.EXCLUDE_REWORK_TEXT, s.EXCLUDE_REWORK_TEXT) EXCLUDE_REWORK_TEXT.

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case

    When ((d.VENDOR = s.VENDOR)

    and (d.NAME = s.NAME)

    and (d.NAME3 = s.NAME3)

    and (d.ADDRESS1 = s.ADDRESS1)

    and (d.DISTRICT = s.DISTRICT)

    and (d.CITY = s.CITY)

    and (d.COUNTRY = s.COUNTRY)

    and (d.POSTCODE = s.POSTCODE)

    and (d.TELEPHONE = s.TELEPHONE)

    and (d.FAX = s.FAX)

    and (d.CONTACT = s.CONTACT)

    and (d.URL = s.URL)

    and (d.EMAIL = s.EMAIL)

    and (d.DELIVERY_TOLERANCE = s.DELIVERY_TOLERANCE)

    and (d.EXCLUDE_REWORK_TEXT = s.EXCLUDE_REWORK_TEXT)

    and (d.COMPANY_CODE = s.COMPANY_CODE))

    then "correspondence".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    on the other

    "no match."

    chck end)

    of s nav_vendorz

    full outer join of the seller d

    On(d.COMPANY_CODE=s.COMPANY_CODE)

    ) d

    (S.COMPANY_CODE = d.COMPANY_CODE AND (in d.chck ("not matched", 'match', 'DELETE')))

    WHEN MATCHED THEN

    ->UPDATE SET s.company_code = d.company_code <-error line

    WHERE in d.chck ("not matched", "DELETE")

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (VENDOR, NAME, ADDRESS1, NAME3, NEIGHBORHOOD, CITY, COUNTRY, CODE POSTAL, PHONE, FAX, CONTACT, URL, EMAIL, DELIVERY_TOLERANCE, EXCLUDE_REWORK_TEXT, COMPANY_CODE)

    VALUES

    (d.VENDOR, d.NAME, d.NAME3, d.ADDRESS1, d.DISTRICT, d.CITY, d.COUNTRY, d.POSTCODE, d.TELEPHONE, d.FAX, d.CONTACT, d.URL, d.EMAIL, d.DELIVERY_TOLERANCE,d.EXCLUDE_REWORK_TEXT,d.COMPANY_CODE);/

    (1) use different alias names

    (2) do not try to update a column that is used to 'ON' clause.

  • RMAN - 06004:ORACLE error in the recovery catalog. ORA-00904: invalid...

    Hello all,.

    One of our backups RMAN fails with the following error message. Any suggestions would be greatly appreciated.

    ==================================================================================================

    From backup 2008-12-30 22:03:47
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup command to 2008-12-30 22:03:47
    RMAN-06004: the recovery catalog database ORACLE error: ORA-00904: invalid identifier

    RMAN >
    RMAN > #BACKUP # ARCHIVELOG delete all '% d_bkp_al_ % t_Set % s_Piece %p' entry FORMAT;
    2 >
    3 > # DELETE ARCHIVELOG until ' SYSDATE-7 ";
    4 >
    5 > # check if the database can be restored
    6 > RESTORE DATABASE # VALIDATE;
    7 >
    8 > # check if controlfile can be restored
    9 > #RESTORE # CONTROLFILE to ' / backups/admin/custpr/custpr_bkp_cntlfile.ctl' VALIDATE;
    10 >
    11 > # check if archivelogs for these past two weeks can be restored
    12 > # RESTORE ARCHIVELOG FROM TIME ' SYSDATE-7' VALIDATE ';
    13 >
    14 > #-check all backups on backup media are intact
    15 > # CROSSCHECK BACKUP OF DATABASE;
    16 >
    17 > #-display based on a list of files that need to be stored on the retention
    18 > policy #. For this case study, the files that do not have at least 1 backups
    19 > # will be reported.
    20 > REPORT NEED backup.
    RMAN retention policy apply to the order
    RMAN retention policy is set to 7 days recovery window
    Report of the files whose recovery needs more 7 days of archived newspapers
    Days of files name
    ---- ----- -----------------------------------------------------
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of command report at 2008-12-30 22:03:48
    RMAN-06004: the recovery catalog database ORACLE error: ORA-00904: invalid identifier

    RMAN >
    RMAN > #-remove unnecessary backups. This command deletes the backups based on the
    2 > retention policy of #.
    3 > # commented DELETE OBSOLETE - TSM not configured to remove on 68
    4 > #DELETE # OBSOLETE;
    5 >
    6 > #-complete list of the existing backups
    7 > LIST BACKUP;
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the list command at 2008-12-30 22:03:49
    RMAN-06004: the recovery catalog database ORACLE error: ORA-00904: invalid identifier

    RMAN >
    RMAN > # end of file.
    2 > * end-of-file *.

    RMAN >

    Published by: ORA_UMAIR on December 31, 2008 07:51

    No help is possible.
    You publish a file of newspaper only, and can not see the command that failed.
    Also you include, contrary to the recommendation in the post on Forums label, the complete version number of 4-digit.
    This is important because they either has an error in your script that does not find RMAN or you hit a bug.

    -----
    Sybrand Bakker
    Senior Oracle DBA

  • ORA-00904: "DATA". "" AM ": invalid identifier

    Hello
    I am facing upwards a situation I can't find why is the error ora-00904 appears.
    I wrote the request as follows:

    (A)

    with data as
      (
      select uc.* 
        from user_computer uc
         where computer_name like '%'||:perioxi||'%'
      )
      select uc.* 
        from user_computer uc
        where exists (select 1
                       from data
                       where data.am = uc.am)
         and exists (select 1
                          from v_misthotoi_orga
                          where uc.am = v_misthotoi_orga.matr) 
    

    Where the utilisateur_ordinateur is a table, and the v_misthotoi_orga is a db view (a view that is based on another view that is based on a table that is accessed through a dblink).
    A query runs without error.

    (B)

    with data as
      (
      select uc.* 
        from user_computer uc
         where computer_name like '%'||:perioxi||'%'
      )
      select uc.* 
        from user_computer uc
        where exists (select 1
                       from data
                       where data.am = uc.am)                       <.... THE DATACOLUMN DATA.AM IS USED, WITHOUT ERROR                
         and exists (select 1
                          from v_misthotoi_orga
                          where data.am = v_misthotoi_orga.matr)    <.....THIS IS WHERE THE ERROR IS LOCATED (DATA.AM)
    

    The above query (application B) stops with error: ORA-00904: "DATA". "" AM ": invalid identifier.

    You can identify the cause of the error, since the datacolumn 'am' in 'data' datasource is used twice in query B.
    In the first instance without any error in the second with the error.

    Note: Oracle db v.2
    Thank you
    SIM

    Hey Sim,

    Change

    select 1
    from v_misthotoi_orga
    where data.am = v_misthotoi_orga.matr
    

    TO

    select 1
    from v_misthotoi_orga,
           data  
    
    where data.am = v_misthotoi_orga.matr
    

    In this query, Oracle knows no data unless you specify in the From clause that he should use.

    HTH,

    Stefan

  • ORA-00904 during execution of the functions and procedures (IDE version 4.1.0.19)

    Recently, I updated my Oracle SQL Developer to the latest version (see below) and now when I try to run the function or procedure of the IDE, I had an alert with the error: "ORA-00904:"OBJECT_ID": invalid identifier." Code provider 904 ". Previous version of IDE works pretty well. What is the problem?

    Oracle SQL Developer 4.1.0.19

    Version 4.1.0.19

    Build a HAND - 19.07

    It seems that OBJECT_ID added to ALL_PROCEDURES for the 10g DB version, but after the version you have (10.2.0.1.0).  I don't have a link to the documentation specific to hand Oracle, but see the last comment by Steven Feuerstein in the next blog...

    PL/SQL challenge: ALL_PROCEDURES changes over version (5980)

    Typically when generation SQL for a particular version of the DB with SQL Developer, only major (10) and (more rarely) secondary numbers (2) gets checked, if your problem is one of those borderline cases that are easy to miss and less likely to get fixed. Whenever a customer has a specific need to use an older version, Oracle expects usually only the last set of patch (for example, 10.2.0.5) would be used.

  • The rights of the applicant, change of context (PL/SQL-&gt; SQL-&gt; PL/SQL) and ORA-00904

    Hello

    I'm doing a validation test of principle with regard to the rights of the applicant. I created 2 diagrams of Test (DEFINER1 and INVOKER1) for the same thing. When I call a procedure in the Invoker1 Definer1 and the procedure has, in turn, a SQL statement inside that a PL/SQL function calls, so he get ORA-00904 "" is not a valid identifier. All procedures/packages in the scheme of Definer1 are created as the rights of the applicant. Simplified script below for the same, kindly let me know if I make a mistake, it's the expected behavior, or miss me something.

    set line 10000

    Set feedback off

    ------------------------------------------------------------------------------------------------------------------------------

    QUICK problem: error ORA-00904: "object name": invalid identifier

    CALLS while the use of the appellant's rights, procedure call PL/SQL that has a SQL that calls a PL/SQL function.

    ------------------------------------------------------------------------------------------------------------------------------

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    Creating patterns DEFINER1 and INVOKER1 QUICK...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    CREATE DEFINER1 USER IDENTIFIED BY DEFINER1

    TEMPORARY TEMP TABLESPACE

    /

    GRANT CREATE SESSION TO DEFINER1

    /

    GRANT CREATE PROCEDURE FOR DEFINER1

    /

    CREATE INVOKER1 USER IDENTIFIED BY INVOKER1

    TEMPORARY TEMP TABLESPACE

    /

    GRANT CREATE SESSION TO INVOKER1

    /

    GRANT CREATE PROCEDURE FOR INVOKER1

    /

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST will now connect to the DEFINER1 schema...

    GUEST

    CONNECT DEFINER1/DEFINER1

    ------------------------------------------------------------------------------------------------------------------------------

    Creating QUICK package (with rights of Summoners) with 2 functions simple (one with PRAGMA RESTRICT_REFERENCES another without him.)...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    CREATE or REPLACE PACKAGE global_pkg

    AUTHID CURRENT_USER

    AS

    FUNCTION add2 (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER;

    FUNCTION add2_rr (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER;

    PRAGMA RESTRICT_REFERENCES (add2_rr, WNDS, WNPS, NSOR, RNP);

    END global_pkg;

    /

    ---------------------------------------------------------------

    CREATE OR REPLACE PACKAGE BODY GLOBAL_PKG

    AS

    ---------------------------------------------------------------

    FUNCTION add2 (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER

    IS

    BEGIN

    RETURN (p1 + p2);

    END add2;

    ---------------------------------------------------------------

    FUNCTION add2_rr (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER

    IS

    BEGIN

    RETURN (p1 + p2);

    END add2_rr;

    ---------------------------------------------------------------

    END global_pkg;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    ENCOURAGE creating stand-alone simple function (with rights of Summoners)...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    FUNCTION to CREATE or REPLACE add2 (NUMBER of p1

    NUMBER of p2

    )

    RETURN NUMBER

    AUTHID CURRENT_USER

    IS

    BEGIN

    RETURN (p1 + p2);

    END ADD2;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    PROMPT creation of procedure (with rights of Summoners) who calls the Package and functions...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    CREATE OR REPLACE PROCEDURE pr_tester

    AUTHID CURRENT_USER

    IS

    l_num NUMBER (2);

    BEGIN

    dbms_output.put_line (1 + 1 = ' | global_pkg.add2_rr (1,1));

    BEGIN

    SELECT global_pkg.add2_rr (1.1)

    IN l_num

    FROM DUAL;

    dbms_output.put_line ('worked..');

    EXCEPTION

    WHILE OTHERS

    THEN

    dbms_output.put_line ('global_pkg.add2_rr wo' |) SQLERRM);

    END;

    dbms_output.put_line (1 + 1 = ' | global_pkg.) ADD2 (1,1));

    BEGIN

    SELECT global_pkg.add2 (1.1)

    IN l_num

    FROM DUAL;

    dbms_output.put_line ('worked..');

    EXCEPTION

    WHILE OTHERS

    THEN

    dbms_output.put_line ('global_pkg.add2 wo' |) SQLERRM);

    END;

    dbms_output.put_line (1 + 1 = ' |) ADD2 (1,1));

    BEGIN

    SELECT add2 (1.1)

    IN l_num

    FROM DUAL;

    dbms_output.put_line ('worked..');

    EXCEPTION

    WHILE OTHERS

    THEN

    dbms_output.put_line ('add2 wo' |) SQLERRM);

    END;

    END;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    Grant QUICK overlooking the procedure to INVOKER1 scheme...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    GRANT EXECUTE ON pr_tester TO invoker1

    /

    ------------------------------------------------------------------------------------------------------------------------------

    Test QUICK 1: Define schema works...

    GUEST

    ------------------------------------------------------------------------------------------------------------------------------

    SET SERVEROUTPUT ON

    BEGIN

    pr_tester;

    END;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST

    GUEST

    GUEST

    GUEST will now connect to the INVOKER1 schema...

    GUEST

    CONNECT INVOKER1/INVOKER1

    ------------------------------------------------------------------------------------------------------------------------------

    Test FAST 2: Fails with ORA - 00904 define schema

    ------------------------------------------------------------------------------------------------------------------------------

    SET SERVEROUTPUT ON

    BEGIN

    definer1.pr_tester;

    END;

    /

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST

    GUEST

    GUEST

    INVITE to drop the two schemas, enter the password for the sys

    ------------------------------------------------------------------------------------------------------------------------------

    CONNECT SYS AS SYSDBA

    DROP USER CASCADE DEFINER1

    /

    DROP USER INVOKER1

    /

    ------------------------------------------------------------------------------------------------------------------------------

    GUEST

    GUEST has dropped to users...

    ------------------------------------------------------------------------------------------------------------------------------

    Thank you

    Marie.

    Basically, you know the answer...

    Why you call procedure Tester pr_tester with the name of schema prefix (definer1.pr_tester) during his call of the schema of the invoker?

    Now... Imagine the following query runs under the scheme of the appellant:

    SELECT global_pkg.add2_rr (1.1)

    IN l_num

    FROM DUAL;

    the schema of the invoker 'knows' global_pkg?

    HTH

  • ORA-28132: the MERGE syntax IN does not support security policy

    Hello

    With the help of Oracle 11 g R2.

    I have the following problem:

    If the user attempts to perform a MERGE INTO statement on a table (T1), it receives the error ORA-28132: The MERGE IN syntax does not support security policy.

    Is there a way I can solve this problem by giving the user more rights on this specific table, T1? Or I need to rewrite the SQL code using UPDATE and INSERT instead MERGER?

    I can't grant POLICE ACCESS TAX-FREE, it would be too powerful privilege...

    Please advise,

    M.R.

    You may need to recreate the political VPD:

    Note:

    In previous versions of Oracle database, when you created a strategy Oracle virtual private database on an application that included the MERGE INTO statement, the MERGE INTO declaration could be avoided with a ORA-28132: Merge into syntax does not support security policies error, due to the presence of the virtual private database policy. From Oracle Database 11 g Release 2 (11.2.0.2), you can create policies on applications that include MERGE INTO operations. To do this, in the DBMS_RLS . ADD_POLICY statement_types parameter, include the INSERT , UPDATE , and DELETE statements, or simply omit statement_types setting altogether. Refer to the Oracle Database Security Guide for more information on the application of the strategies on specific types of SQL statement.

    FUSION

  • ORA-00904: "T1". "" TOT_COSTS_UPLIFTED_FUEL_QTY ": invalid identifier

    Please help solve this error: ORA-00904:


    SQL > select "c31" "c1", "c30" "c2", "c28" 'c4', 'c29""c6","c25"'c8', 'c34.
    2 'c10', 3.4592 'c12', "c35" 'c14', case when "c27" <>0 and "c28" <>0 then
    3 ("c27" * "c35") * "c25" otherwise 0 end "c16", "c26" 'c18', ("c25" * 1.0e0) / "c34.
    4 "c20", "c33" "c22", "c32'"c23.
    5 from (select T1. ' ' 'NAME' C24 ', (sum
    6 (T1. (("" TOT_COSTS_UPLIFTED_FUEL_QTY ") * 1.0e0) / sum (T1." FUEL_UPLIFTED_QTY')
    7 "c25", DECODE (sum (T3. "" ""BUDGET_UPLIFT_VOLUME"), NULL, 0 - summary.
    8 (T1. "" ""FUEL_UPLIFTED_QTY"), sum (T3." "" "BUDGET_UPLIFT_VOLUME")-sum.
    9 (T1. (("" FUEL_UPLIFTED_QTY "))"c26", sum (T1." FUEL_UPLIFTED_QTY') "c27", sum
    10 (T1. ("' TOT_COSTS_UPLIFTED_FUEL_QTY") "c28", sum
    11 (T1. "" ""TOT_COSTS_UPLIFTED_FUEL_QTY")-sum (T1.'" CONS_FUEL_QTY_COSTS') "c29,"
    12 sum (T1." CONS_FUEL_QTY_COSTS') "c30".
    13 of (("FISMGR". "T1 FLIGHT_INFO_VIEW" LEFT OUTER JOIN "
    14 'FISMGR '. "' COGNOS_XCHG_RATE ' T1 T2. ' DELIVERY_YEAR '= T2. "' YEAR ' and
    15 T1. ' DELIVERY_MONTH '= T2. ("' MONTH ') LEFT OUTER JOIN
    16 'FISMGR '. "' COGNOS_FUEL_BUDGET ' on T1 T3. ' ROUTE '= T3. "" ROUTE "and
    17 T1. ' SECTOR '= T3. "' SECTOR ' and T1. ' AC_KLASSE '= T3. "" AC_CLASSE "and
    T1 18. ' FLIGHT_MONTH '= T3. "' MONTHS ' and T1. ' FLIGHT_YEAR '= T3. ("' YEAR ') LEFT OUTER
    19 JOIN 'FISMGR '. "' MV_AREA ' T4 on T1. "START"= T4. STATIONSCODE ".
    where T4 20. "' AREA_CODE ' ('DOM', 'INTL') and T1. "FISCAL_YEAR" = 2012 and "
    21 TO_NUMBER (TO_CHAR (T1." FLIGHT_DATE', 'MM')) = 8
    Group 22 by T1. NAME') D3, (select T1. ' ' ' NAME ' 'c31,"T1". FUEL_UPLIFTED_QTY ".
    23 'c32", T1. "" FLIGHT_DATE ""c33", T2. "" USD_XCHG_RATE ""c34", 3.4592.
    24 T2. "" USD_XCHG_RATE ""c35 ".
    25 years of (("FISMGR". "T1 FLIGHT_INFO_VIEW" LEFT OUTER JOIN "
    26 'FISMGR '. "' COGNOS_XCHG_RATE ' T1 T2. ' DELIVERY_YEAR '= T2. "' YEAR ' and
    T1 27. ' DELIVERY_MONTH '= T2. ("' MONTH ') LEFT OUTER JOIN
    28 ' FISMGR '.»» COGNOS_FUEL_BUDGET' on T1 T3. ' ROUTE '= T3. "" ROUTE "and
    T1 29. ' SECTOR '= T3. "' SECTOR ' and T1. ' AC_KLASSE '= T3. "" AC_CLASSE "and
    T1 30. ' FLIGHT_MONTH '= T3. "' MONTHS ' and T1. ' FLIGHT_YEAR '= T3. ("' YEAR ') LEFT OUTER
    31 JOIN 'FISMGR '. "' MV_AREA ' T4 on T1. "START"= T4. STATIONSCODE ".
    32 where T4. "' AREA_CODE ' ('DOM', 'INTL') and T1. "FISCAL_YEAR" = 2012 and "
    33 TO_NUMBER (TO_CHAR (T1." (FLIGHT_DATE', 'MM')) = 8) D2
    34 where 'c31 "=' c24' or 'c31' is null and 'c24' is null
    35 order by ASC 'c1 '.
    36;
    (T1. "" ""TOT_COSTS_UPLIFTED_FUEL_QTY")-sum (T1.'" CONS_FUEL_QTY_COSTS') "c29,"
    *
    ERROR on line 11:
    ORA-00904: "T1". "" TOT_COSTS_UPLIFTED_FUEL_QTY ": invalid identifier
    from the view definition 
    
    EFFECTIVE_SUPPLIER VARCHAR2(3)
    TO
    T_COSTS_UPLIFTED_FUEL_QTY NUMBER(18,3)
    TOT_BILLABLE_COSTS_FOR_UPLIFT NUMBER
    

    It's how it is in your dictionary? or a blunder of formatting? I think it might be the first... the side effects of putting everything in double - quotes. If this is the case, then you have to fix the name of column in the view or the query difficulty and include return transport in the column name (surrounded by quotation marks)

    REDA

  • Invalid identifier ORA-00904

    Hello.

    This error

    Error starting at line 1 in command:
    select consulta_ingrediente('Sal','Miguel Goyanes') from dual
    Error at Command Line:1 Column:7
    Error report:
    SQL Error: ORA-00904: "CONSULTA_INGREDIENTE": invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    *Cause:    
    *Action:
    The procedure is:
    create or replace
    PROCEDURE consulta_ingrediente(produto IN INGREDIENTE.PRODUTO%TYPE, user_name IN UTILIZADOR.U_NOME%TYPE) IS
         CURSOR consulta IS
            SELECT energia_kcal, total_hc_disponiveis,proteina,gordura_total FROM INGREDIENTE
            WHERE PRODUTO = produto;
         
    privilegios UTILIZADOR.U_PRIVILEGIOS%TYPE;
    
    calorias ingrediente.energia_kcal%TYPE;
    hidratos_carbono ingrediente.total_hc_disponiveis%TYPE;
    proteinas ingrediente.proteina%TYPE;
    gordura ingrediente.gordura_total%TYPE;
    
    BEGIN
         SELECT utilizador.U_PRIVILEGIOS INTO privilegios
         FROM utilizador
         WHERE utilizador.U_NOME = user_name;     
         
      OPEN consulta;
         IF privilegios = 0 THEN
              FETCH consulta INTO calorias, hidratos_carbono, proteinas, gordura;
        CLOSE consulta;
         END IF;
    END;
    Why I get this error?

    Published by: 898791 on 10/Dec/2011 09:05

    You can try to execute consulta_ingrediente ('Sal', 'Miguel Goyanes');

Maybe you are looking for

  • Audit in two stages on the same device? !

    After upgrading to Mac OS Sierra the next thing happened: When I tried to sign in the community Apple with my Macbook Pro, I had a request of two steps and was invited to enter the 6 digit code that 'someone was trying to use my Apple ID to a place n

  • Apple Watch scratches

    I was recently cleaning my Apple Watch and saw a small amount of micro scratches on the stainless steel case.  I was wondering if there is a way to remove scratches on the watch case?

  • Why do not upgrade Add-ons to work on the latest version of Firefox?

    Have all these add-ons does not make much sense if you get a "not compatible with the latest version of Firefox. Of course, I bought an s4 to run the older versions. Firefox seems to have the mentality google alittle on themselves. Without the Add -

  • Wireless password issues (ahhhhhhhhh - please help)

    I have a router Wireless G Linksys (WRT54GS). For some reason any (even if I set the admin passowrd and I have a password on my system it always disappears. I notice that it is open to all and there is no change... I don't know why this is happening.

  • 62xx to 62xx via SFP + 10GBase-LR

    Hello world a battery consists of two 6224P, I use two FC SFP + modules (couldn't dig up D/PN, wink will be soon attached) g23 mastery (but any other SFP +) via FC to third 6224P now I see that the link is there, at least both ends indicate link is t