ORA-00904: "YYYY": invalid identifier using impdp

Hello

I am trying to import a part of a table to another table on the remote database using impdp:

Impdp directory of centrumadmin/centrumadmin = network_link DUMP_LOG_DIRECTORY LOGFILE = backup_2014_01.log = REF2ISKNE = 'AUD$ _BACKUP' content TABLES = QUERY DATA_ONLY =------"WHERE \" NTIMESTAMP # "> to_date\ (January 2, 2014","DD-MM-YYYY '------") "------"; "

But still get this error:

Start "CENTRUMADMIN". "' SYS_IMPORT_TABLE_01 ': centrumadmin / * directory = network_link DUMP_LOG_DIRECTORY LOGFILE = backup_2014_01.log = REF2ISKNE TABLES = AUD$ happy _BACKUP = DATA_ONLY QUERY =" WHERE NTIMESTAMP # > to_date (02-2014, MM-YYYY) ""

Current estimation using BLOCKS method...

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 4,473 GB

ORA-31693: Data Table object 'CENTRUMADMIN '. "" AUD$ _BACKUP "could not load/unload and being ignored because of the error:

ORA-00904: "YYYY": invalid identifier

Work "CENTRUMADMIN". "" SYS_IMPORT_TABLE_01 "completed with error (s 1) to Wed Feb 11 09:32:15 2015 elapsed 0 00:00:03

Any ideas? If I change the date format YYYY-MM-DD or the other, always error is in the last part: ORA-00904: "DD": invalid identifier.

Thank you.

Honza

Hi Mika,

have you played around with some double 'or triple?

as

to_date\ ("02/01/2014","DD-MM-YYYY"------)-«;»

concerning

Kay

Tags: Database

Similar Questions

  • ORA-00904: "SPN": invalid identifier

    Team

    I'm caught in a situation, and I'm tender hand for support. I am importing scripts on Data Mover and I get this error:

    File: Data error MoverSQL. Stmt #: 0 error Position: 2293 return: 904 - ORA-00904: "SPN": invalid identifier
    Failure of SQL stmt:INSERT IN PS_INSTALLATION (COMPANY, MIN_STD_HRS, MAX_STD_HRS, EMPLID_LENGTH, STD_HRS_DEFAULT, STD_HRS_FREQUENCY, TEMP_SSN_MASK, COMMIT_AFTER, POSITION_MGMT, COUNTRY, COMP_FREQUENCY, EMPLID_LAST_EMPL, NON_EMPLOYEE_LAST, DEMAND_ID_LAST, POSN_NBR_LAST, GRIEVANCE_NBR_LAST, INCIDENT_NBR_LAST, CLAIM_NBR_LAST, FILE_CREATE_LAST, ROE_NBR_LAST, CAN_CMA) CAN_IND_SECTOR, MULTI_STEP_GRADE, FSA_CLAIMS, BENEFIT_ADMINISTRN, START_EVENT_DT, EXCHNG_TO_CURRENCY, EXCHNG_TO_RT_TYPE, HR, AM, AP, AR, GL, DB, PC, PO, INV, BI, OM, PUBLIC_SECTOR, RETROPAY_SEQ_LAST, RETRODED_SEQ_LAST, RETRO_DEDUCTIONS, TL, AUTO_EE_TAX, SAME_ST_LCL_RSDNCE, FMLA_ADMINISTRN, BAL_ID_FOR_CAL_YR, MAX_ROWS_SCROLL, PA, CAR_LAST BEN_BILLING, COBRA_ADMINISTRN, LAST_TL_CONTRCTR, ORGCHART, COBRA_EMPLID_LAST, FSA_CLAIM_NBR_LAST, FSA_CRY_CLAIM_LAST, US, POSSIBLE, GER, FRA, UK, JPN, NICE, NLD, ESP, MEX, AUS, MYS, NZL, SGP, HKG, INSTALLED_PAY_GBL, IND, BRA, CHN, THA, INSTALLED_PAY_NA, INSTALLED_PAY_INT, USE_POINTS_SW, USE_RTCD_GROUP_SW, ROWSECCLASS, ILL_NBR_LAST_GER, EDF, FP_FLAG , GVT_PAY_BASIS, ACCT_CD_LAST, CPS_TRANS_ID_LAST, CHE, ITA, ALLW_CONC_CALCCONF, PIN_NUM_LAST, GP_CST_INSTALL_IND, AP_INVNO_PREFIX, AP_INVNO_LAST, ST, ILL_NBR_LAST_NLD, ADJ_TL_FINAL_CHK, ADJ_TL_ONL_CHK, ADJ_TL_REV_ADJ, REFRSH_TL_JOB_CHG, REFRSH_TL_PRECALC, PSEBENEFITS, PSECOMP, PSEPAY, PSEPROFILE, PSERECRUIT, CCU, PSEA, INSTALLED_GP_AUS INSTALLED_GP_BRA, INSTALLED_GP_CAN, INSTALLED_GP_CHE, INSTALLED_GP_CHN, INSTALLED_GP_DEU, INSTALLED_GP_ESP, INSTALLED_GP_FRA, INSTALLED_GP_HKG, INSTALLED_GP_IND, INSTALLED_GP_ITA, INSTALLED_GP_JPN, INSTALLED_GP_MEX, INSTALLED_GP_MYS, INSTALLED_GP_NLD, INSTALLED_GP_NZL, INSTALLED_GP_SGP, INSTALLED_GP_THA, INSTALLED_GP_UK, INSTALLED_GP_USA, PSECOMP_MGR, PSEPROFILE_MGR , PSERECRUIT_MGR, PG, FO_PBM, AUTO_JOB_END, AUTO_JOB_SUSPEND, TEMP_ASSGN_ID_LAST, EHC, EPG, UPR, APS_AUS, DI, RP, INSTALLED_GP_ARG, INSTALLED_GP_IRL, INSTALLED_GP_TWN, TL_MOBILE, PSEPERF_MANAGEMENT, AA_ENABLED_JPN, INSTALLED_PAY_PPS, AV, SA, SG, HGA, ELM, PS_GL_VERSION, ADP, RSRW, CSS, HMCF_VALID_CACHE, HMCF_CACHE_RETAIN, HMCF_EIP_LIMIT LAST_OSHA_CASE_NBR (, GVT_NFC_INDICATOR, MILITARY, BEN_DED_CLS_ORDER, TBH_SEQ_LAST, ENC_TRIGGER, LAST_SP_ID_ASSIGN, UPD_INCUMB_LMT, INSTALLED_OWS, OWS_SEQ_LAST, SAIP, HP_ENFORCE_RTBC, HP_KK_BUDGET_PROC, ARG, TMOD, SPN) VALUES (: 1,: 2,: 3,: 4,: 5,: 6,: 7: 8: 9,: 10:11,: 12,: 13:14,: 15,: 16,: 17,: 18,: 19,: 20,: 21,: 22,: 23: 24). ,: 25, TO_DATE(:26,'YYYY-MM-DD'),: 27,: 28,: 29,: 30,: 31,: 32,: 33,: 34,: 35,: 36: 37,: 38: 39,: 40,: 41,: 42,: 43,: 44,: 45,: 46,: 47,: 48,: 49,: 50,: 51,: 52: 53,: 54,: 55: 56,: 57,: 58,: 59,: 60,: 61,: 62,: 63,: 64,: 65,: 66,: 67,: 68,: 69,: 70,: 71,: 72,: 73,: 74,: 75,: 76,: 77,: 78,: 79,: 80,: 81,: 82 ,: 83,: 84,: 85,: 86,: 87,: 88,: 89,: 90,: 91,: 92,: 93,: 94,: 95,: 96: 97: 98: 99,: 100,: 101,: 102,: 103,: 104,: 105,: 106,: 107,: 108,: 109,: 110,: 111,: 112,: 113,: 114,: 115,: 116,: 117,: 118,: 119,: 120,: 121,: 122,: 123,: 124,: 125,: 126,: 127,: 128,: 129,: 130,: 131,: 132,: 133,: 134,: 135,: 136,: 137,: 138,: 139: 140: 141,: 142,: 143 (,: 144,: 145,: 146,: 147,: 148,: 149,: 150,: 151,: 152,: 153,: 154,: 155: 156,: 157,: 158,: 159,: 160,: 161,: 162,: 163,: 164,: 165,: 166,: 167,: 168,: 169,: 170,: 171,: 172,: 173,: 174,: 175,: 176: 177: 178,: 179)

    No idea why? In the event that you need to know, I am running PT8.50 on the Oracle and HRMS 9.1 database. Be blessed

    If you use 10g or more version of database, run the script below is.

    coil c:/temp/drop.lst
    set pages 0
    SELECT 'DROP '. OBJECT_TYPE | » '|| OWNER: '. ' || Object_name |' purge; "FROM DBA_OBJECTS WHERE OWNER IN ('SYSADM') AND OBJECT_TYPE IN ('DATABASE LINK");
    spool off

    This will generate a spool in c:/temp/drop.lst file

    Now run below a hold in the database as file below.

    SQL > @c:/temp/drop.lst

    Check Finally you do not find any object in the schema SYSADM by running the script below.

    SELECT COUNT (*), OBJECT_TYPE FROM DBA_OBJECTS WHERE OWNER = 'SYSADM' GROUP OF OBJECT_TYPE.

    Thank you

  • ORA-00904: "ORA_ROWSCN": invalid identifier

    Get this error when trying to open tables in SQL Developer and data display.

    ORA-00904: "ORA_ROWSCN": invalid identifier

    Found a very old thread talking about this error, and now it's happening with me with SQL Developer Version on a Mac/Yosemite 4.1.1.19.

    https://community.Oracle.com/thread/1019844

    It happened for awhile and I didn't say anything because I can run a select statement * and get all the data I need. But it is bit boring so wonder if it's a bug that's resurfaced? Anyone else seeing this? Apparently not, because there seems to be no recent discussions on this subject, but maybe I'm not find them.

    Earl

    References to the built-in ORA_ROWSCN function should not return the message "invalid identifier" when connected to Oracle 10 g R1 or higher.  When you connect to a pre - 10 g R1, uncheck the box use ORA_ROWSCN for DataEditor insert and update statements in Tools > Preferences > Database > Object Viewerr.

    Edit:

    Oracle 10 g or higher, tables with a policy defined on them will know it: ORA-00904: 'ORA_ROWSCN': invalid makes unusable 2.1.0.63 output

    Edit2:

    More information, if you wish: using ora_rowscn on a table FGAC: bug?

  • ORA-00904: "PCT_DB_TIME": invalid identifier

    Hello

    on 11.2.0.4 on Win 2008

    I got when running:

    SQL > SELECT EVENT, n.WAIT_CLASS,.

    TIME_WAITED_MICRO, ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) 2 PCT_DB_TIME

    3. IN V$ SYSTEM_EVENT E, V$ EVENT_NAME N,.

    4 (SELECT the DBTIME OF the V VALUE $ SYS_TIME_MODEL WHERE STAT_NAME = 'DB time') S

    5. WHERE E.EVENT_ID = N.EVENT_ID

    6 AND N.WAIT_CLASS NOT IN ('inactive', ' E/s system') and PCT_DB_TIME <>0

    7 ORDER BY PCT_DB_TIME ASC;

    AND N.WAIT_CLASS NOT IN ('inactive', ' E/s system') and PCT_DB_TIME <>0

    *

    ERROR on line 6:

    ORA-00904: "PCT_DB_TIME": invalid identifier

    Thanks for the help.

    This is an invalid identifier because you cannot use a column assigned in the application to the location alias WHERE clause or ORDER BY in the same query.  You have two options to rewrite this query:

    SELECT EVENT, n.WAIT_CLASS,
    TIME_WAITED_MICRO, ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) PCT_DB_TIME
    V $ SYSTEM_EVENT E, V$ EVENT_NAME N,.
    (SELECT the DBTIME VALUE OF V$ SYS_TIME_MODEL WHERE STAT_NAME = "DB time") S
    WHERE E.EVENT_ID = N.EVENT_ID
    AND N.WAIT_CLASS NOT IN ('Idle', ' E/s system') and ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) <> 0
    ORDER BY ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) ASC;

    and

    SELECT * from
    (SELECT EVENT, n.WAIT_CLASS,
    TIME_WAITED_MICRO, ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) PCT_DB_TIME
    V $ SYSTEM_EVENT E, V$ EVENT_NAME N,.
    (SELECT the DBTIME VALUE OF V$ SYS_TIME_MODEL WHERE STAT_NAME = "DB time") S
    WHERE E.EVENT_ID = N.EVENT_ID
    AND N.WAIT_CLASS NOT IN ('Idle', ' E/s system'))
    where PCT_DB_TIME <> 0
    ORDER BY PCT_DB_TIME ASC;

    Both work.

    David Fitzjarrell

  • FDMEE failed to import - ORA-00904: "CHECK_FLAG": invalid identifier

    We get this error when importing data from BSE. We use 11.1.2.3.00. Any help would be appreciated.

    < errorMessage > <! [CDATA [ODI-1226: p_bal_check_flag step fails after 1 attempt.]]

    ODI-1228: P_bal_check_flag (Variable) of the task fails when you connect target FDMEE_DATA_SERVER.

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "CHECK_FLAG": invalid identifier

    We have re-imported importing files & data scenario worked. Trying to find how the scenario files has been changed.

    Thank you

  • ORA-00904: "OCT": invalid identifier

    Hi all

    I serve immediate execulte to create a table as below

    SQL_STR: = ' create table test_archive in select * from test_one where date_key between ' TO_DATE(20121001,'YYYYMMDD') |' and ' | TO_DATE(20121002,'YYYYMMDD');
    run immediately SQL_STR;

    I am getting error below.

    Eexeduting the varSqlstmt.
    Error CODE: ORA-00904: "OCT": invalid identifier

    and it has generated the request as below,

    create the table test_archive in select * from test_one where
    date_key between 1st October 12 and October 3, 12

    My requirement is instead of 'OCT', there on-screen as "10".

    Note: date_key column date datatype.

    Please someone help me in this.

    Thank you
    Sree

    youre not to quote your string correctly either. Use single quotes 4 to wrap where you need a quote in your chain of... for example...

    SQL_STR: = ' create table test_archive in select * from test_one where date_key between TO_DATE (|) '''' || "' 20121001," | '''' || "(AAAAMMJJ || ''' || ') |"

    Edit: Sorry, you get the gist... 4 apostrophes in a dynamic string you give 1 quote. I have not tested the above, so its so probably wrong but the use of this formula and you will get it

  • 904: 42000: java.sql.SQLException: ORA-00904: "FY11": invalid identifier

    Hello

    I created a refreshing alphanumeric variable that use SYSDATE to generate the year in the format "FY11.

    The variable acts as a filter in an interface.

    When I run a package to run the interface, I get the error:
    904: 42000: java.sql.SQLException: ORA-00904: "FY11": invalid identifier +.

    java.sql.SQLException: ORA-000904: "FY11": invalid identifier

    Only thing I can think is that it is related to quotes.

    No idea how to fix this error?

    See you soon

    Hello

    In this case, he expects a character data.
    Your filter is therefore SALES_HYPERION_SALES. YEAR ='#FCAST. ACTYEAR'

    Pay attention to the unique quoates before # and in the end...

    Thank you
    Fati

  • ORA-00904: "DATETIME": invalid identifier

    Hello

    I implemented a heterogeneous link to a server database mssql (latest version of FreeTDS and UnixODBC on a SunOS Sparc machine) which works very well but with the exception of the datetime columns. When I select all the columns using the * I get only the columns which are not defined as a DATETIME data type in MSSQL. When I specifically choose a datetime column I get error: ORA-00904: "DATETIME": invalid identifier

    Any of you guys ever face the same problems?

    Thanks for any help!
    Davy

    First to know the data types that are not supported by DG4ODBC or HSODBC are simply cut from the selection list.

    Your table 'TEST_DATE1 '.
    contains these 3 columns:

    [ODBC] [9575] [1317899606.754841] [SQLDescribeCol.c] [497]
    Output: [SQL_SUCCESS]
    Column name = [tdatetime]
    Data type = ffbfd948-> 93-online Data type 93 is the ODBC SQL_TYPE_TIMESTAMP data type
    Column size = ffbfd944-> 23
    Decimal digits = ffbfd942-> 3
    Nullable = ffbfd940-> 0

    [ODBC] [9575] [1317899606.754934] [SQLDescribeCol.c] [497]
    Output: [SQL_SUCCESS]
    Column name = [ttext]
    Data type = ffbfd948-> 1-online data of type 1 is the ODBC name data type
    Column size = ffbfd944-> 100
    Decimal digits = ffbfd942-> 0
    Nullable = ffbfd940-> 0
    and
    [ODBC] [9575] [1317899606.755086] [SQLDescribeCol.c] [497]
    Output: [SQL_SUCCESS]
    Column name = [tsmalldatetime]
    Data type = ffbfd948-> 93-online Data type 93 is the ODBC SQL_TYPE_TIMESTAMP data type
    Column size = ffbfd944-> 16
    Decimal digits = ffbfd942-> 0
    Nullable = ffbfd940-> 0

    => When you now see the manual of DG4ODBC or as in your case HSODBC-online Appendix B - mapping of the Data Type for the generic connectivity
    It lists the supported data types, and it lists timestamp (which is equal to 11 years - not SQL_TYPE_TIMESTAMP 93) as a supported data type. As HSODBC does not support this type of data, it will be simply left in the select list to at least allow to select all other types of data as in your case, the column ttext.

    You will find also documented in a note of My Oracle Support: how to determine why certain types of foreign data are not displayed in a select using DG4ODBC or HSODBC (Doc ID 252548.1)

    Published by: kgronau on October 6, 2011 13:37

    the root cause of the problem is the ODBC - the ODBC driver is responsible for mapping and FreeTDS is commonly mapping to SQL_TYPE_TIMESTAMP while DataDirect and other commercial vendors map to timestamp.

    Published by: kgronau on October 6, 2011 13:49
    and here is the link for the manual HSODBC: http://download.oracle.com/docs/cd/B19306_01/server.102/b14232.pdf

  • PL/SQL: ORA-00904: "CONTAINS": invalid identifier

    create or replace
    PF_SEARCH PACKAGE BODY
    IS

    PROCEDURE PF_QUICK_SEARCH
    (
    Help keyword VARCHAR2 DEFAULT NULL,
    locale VARCHAR2 DEFAULT NULL,
    VARCHAR2 DEFAULT NULL, catalogue
    VARCHAR2 NULL by DEFAULT, price list
    minCount INTEGER by DEFAULT 5,
    maxCount INTEGER by DEFAULT 1000,
    searchCount OUT INTEGER,
    categorySet OUT cursorType,
    productSet OUT cursorType
    )

    AS

    BEGIN

    SELECT count (*)
    IN searchCount
    OF dcs_pf_product_trans t1,.
    dcs_prd_prdinfo t2,
    dcs_price t3
    WHERE t1.product_id = t3.product_id
    AND t3.price_list = price list
    AND t2.product_id = t1.product_id
    AND (((CONTAINS(t1.product_id,searchWord,0) > 0
    OR CONTAINS (t1.manufacturer_part_number, searchWord, 1) > 0
    OR CONTAINS(t1.vendor_name,searchWord,2) > 0
    OR CONTAINS(t1.display_name,searchWord,3) > 0
    OR CONTAINS(t1.long_description,searchWord,4) > 0)
    AND t2.catalog_id = catalog)
    AND (t1.locale_id = local));




    IF searchCount < = minCount THEN
    OPEN for ProductSet
    SELECT t1.product_id
    OF dcs_pf_product_trans t1,.
    dcs_prd_prdinfo t2,
    dcs_price t3
    WHERE t1.product_id = t3.product_id
    AND t3.price_list = price list
    AND t2.product_id = t1.product_id
    AND (((CONTAINS(t1.product_id,searchWord,0) > 0
    OR CONTAINS (t1.manufacturer_part_number, searchWord, 1) > 0
    OR CONTAINS(t1.vendor_name,searchWord,2) > 0
    OR CONTAINS(t1.display_name,searchWord,3) > 0
    OR CONTAINS(t1.long_description,searchWord,4) > 0)
    AND t2.catalog_id = catalog)
    AND (t1.locale_id = local));

    ON THE OTHER
    IF searchCount > maxCount THEN
    OPEN for CategorySet
    SELECT DISTINCT t3.cat_lvl1_id, t3.cat_lvl2_id, t3.cat_lvl3_id
    OF dcs_pf_product_trans t1,.
    dcs_prd_prdinfo t2,
    dcs_pf_search_cat t3,
    dcs_price t4
    WHERE t1.product_id = t4.product_id
    AND t4.price_list = price list
    AND t2.product_id = t1.product_id
    AND (((CONTAINS(t1.product_id,searchWord,0) > 0
    OR CONTAINS (t1.manufacturer_part_number, searchWord, 1) > 0
    OR CONTAINS(t1.vendor_name,searchWord,2) > 0
    OR CONTAINS(t1.display_name,searchWord,3) > 0
    OR CONTAINS(t1.long_description,searchWord,4) > 0)
    AND t2.catalog_id = catalog)
    AND (t1.locale_id = local))
    AND t2.product_info_id = t3.product_info_id
    ORDER BY t3.cat_lvl1_id, t3.cat_lvl2_id, t3.cat_lvl3_id;

    ON THE OTHER

    OPEN for CategorySet
    SELECT DISTINCT t3.cat_lvl1_id, t3.cat_lvl2_id, t3.cat_lvl3_id
    OF dcs_pf_product_trans t1,.
    dcs_prd_prdinfo t2,
    dcs_pf_search_cat t3,
    dcs_price t4
    WHERE t1.product_id = t4.product_id
    AND t4.price_list = price list
    AND t2.product_id = t1.product_id
    AND (((CONTAINS(t1.product_id,searchWord,0) > 0
    OR CONTAINS (t1.manufacturer_part_number, searchWord, 1) > 0
    OR CONTAINS(t1.vendor_name,searchWord,2) > 0
    OR CONTAINS(t1.display_name,searchWord,3) > 0
    OR CONTAINS(t1.long_description,searchWord,4) > 0)
    AND t2.catalog_id = catalog)
    AND (t1.locale_id = local))
    AND t2.product_info_id = t3.product_info_id
    ORDER BY t3.cat_lvl1_id, t3.cat_lvl2_id, t3.cat_lvl3_id;


    OPEN for ProductSet
    SELECT t1.product_id
    OF dcs_pf_product_trans t1,.
    dcs_prd_prdinfo t2,
    dcs_price t3
    WHERE t1.product_id = t3.product_id
    AND t3.price_list = price list
    AND t2.product_id = t1.product_id
    AND (((CONTAINS(t1.product_id,searchWord,0) > 0
    OR CONTAINS (t1.manufacturer_part_number, searchWord, 1) > 0
    OR CONTAINS(t1.vendor_name,searchWord,2) > 0
    OR CONTAINS(t1.display_name,searchWord,3) > 0
    OR CONTAINS(t1.long_description,searchWord,4) > 0)
    AND t2.catalog_id = catalog)
    AND (t1.locale_id = local));

    END IF;
    END IF;

    END PF_QUICK_SEARCH;

    PROCEDURE PF_CATEGORY_SEARCH
    (
    Help keyword VARCHAR2 DEFAULT NULL,
    locale VARCHAR2 DEFAULT NULL,
    VARCHAR2 DEFAULT NULL, catalogue
    VARCHAR2 NULL by DEFAULT, price list
    parentCat VARCHAR2 DEFAULT NULL,
    productSet OUT cursorType
    )

    AS

    BEGIN

    OPEN for ProductSet
    SELECT t4.product_id
    OF dcs_pf_product_trans t1,.
    dcs_prd_prdinfo t2,
    dcs_price t3,
    dcs_product t4
    WHERE t1.product_id = t3.product_id
    AND t3.price_list = price list
    AND t2.product_id = t1.product_id
    AND (((CONTAINS(t1.product_id,searchWord,0) > 0
    OR CONTAINS (t1.manufacturer_part_number, searchWord, 1) > 0
    OR CONTAINS(t1.vendor_name,searchWord,2) > 0
    OR CONTAINS(t1.display_name,searchWord,3) > 0
    OR CONTAINS(t1.long_description,searchWord,4) > 0)
    AND t2.catalog_id = catalog)
    AND (t1.locale_id = local))
    AND t1.product_id = t4.product_id
    AND t4.parent_cat_id = parentCat;


    END PF_CATEGORY_SEARCH;

    PROCEDURE PF_GENERIC_FULL_SEARCH
    (
    SQLQuery VARCHAR2 DEFAULT NULL,
    sqlCountQuery VARCHAR2 DEFAULT NULL,
    categoryQuery VARCHAR2 DEFAULT NULL,
    minCount INTEGER by DEFAULT 5,
    maxCount INTEGER by DEFAULT 1000,
    count ON the WHOLE,
    countSet OUT cursorType,
    categorySet OUT cursorType,
    productSet OUT cursorType
    )
    AS

    searchCount INTEGER.

    BEGIN

    CountSet OPEN for sqlCountQuery;
    SEEK countSet INTO searchCount;
    County: = searchCount;

    IF searchCount < = minCount THEN
    ProductSet OPEN for sqlquery;
    ON THE OTHER
    IF searchCount > maxCount THEN
    CategorySet OPEN for categoryQuery;
    ON THE OTHER
    CategorySet OPEN for categoryQuery;
    ProductSet OPEN for sqlquery;
    END IF;
    END IF;

    END PF_GENERIC_FULL_SEARCH;

    PROCEDURE PF_GENERIC_PROD_SEARCH
    (
    SQLQuery VARCHAR2 DEFAULT NULL,
    productSet OUT cursorType
    )

    AS
    BEGIN
    ProductSet OPEN for sqlquery;

    END PF_GENERIC_PROD_SEARCH;

    END PF_SEARCH;
    ----------------------------------------

    Package body PFCA4. PF_SEARCH@US_DEV_WD1_PFCA4
    Error (22.2): PL/SQL: statement ignored
    Error (34.5): PL/SQL: ORA-00904: "CONTAINS": invalid identifier
    Error (43.5): PL/SQL: statement ignored
    Error (54.5): PL/SQL: ORA-00904: "CONTAINS": invalid identifier
    Error (61.7): PL/SQL: statement ignored
    Error (73,14): PL/SQL: ORA-00904: "CONTAINS": invalid identifier
    Error (82.7): PL/SQL: statement ignored
    Error (94,14): PL/SQL: ORA-00904: "CONTAINS": invalid identifier
    Error (102.6): PL/SQL: statement ignored
    Error (113.5): PL/SQL: ORA-00904: "CONTAINS": invalid identifier
    Error (137,5): PL/SQL: statement ignored
    Error (149,5): PL/SQL: ORA-00904: "CONTAINS": invalid identifier
    ---------------

    Think you that trying to do something like that?

    CONTAINS(t1.manufacturer_part_number,searchWord,1) > 0
    

    How would you do the same thing with INSTR or SIMILAR?

    select * from dual where instr('Test','st') > 0;
    select * from dual where 'ABCXD' like '%' || dummy || '%';
    
  • ORA-00904: "YEAR": invalid identifier

    Hello

    I'm getting ORA-00904: 'YEAR': Error invalid identifier when executing the following query.
    This application was written in MySQL and migrated to Oracle.
    The problem is in where clause as I am unable to migrate the YEAR MONTHNAME

    "diet_details.diet_date = July 1, 12.

    SELECT
    diet_details.diet_id AS diet_id,
    diet_details.diet_combination_id AS diet_combination_id,
    (diet_details.diet_details_id) be counted AS County,.
    mas_diet_combination.diet_combination_name AS mas_diet_combination_name,
    diet_details.diet_date AS diet_diet_date,
    diet_details.diet_details_id AS diet_diet_details_id,
    mas_department.department_name AS mas_department_name,
    mas_hospital.hospital_name AS mas_hospital_name
    Of
    mas_diet_combination RIGHT OUTER JOIN diet_details ON mas_diet_combination.diet_combination_id = diet_details.diet_combination_id
    LEFT OUTER JOIN mas_department ON diet_details.department_id = mas_department.department_id
    LEFT OUTER JOIN mas_hospital ON diet_details.hospital_id = mas_hospital.hospital_id

    WHERE
    MonthName (diet_details.diet_date) = JUL
    and year (diet_details.diet_date) = 12
    and diet_details.department_id = 11


    GROUP BY
    diet_details.diet_id,
    diet_details.diet_combination_id,
    diet_details.diet_details_id,
    mas_diet_combination.diet_combination_name,
    diet_details.diet_date,
    diet_details.diet_details_id,
    mas_department.department_name,
    mas_hospital.hospital_name
    order of mas_diet_combination.diet_combination_id

    Instead of the YEAR, MONTHNAME, use the function to_char.

    for example
    where to_char(diet_details.diet_date,'MON-YYYY') = ' JUL-2012'.

  • "ORA-00904 of invalid identifier", what's the problem?

    Hey,.

    I am trying to create very basic (via Script Editor) 4 tables in Application Express 4.1.0.00.32 and get this error and cannot understand why. If anyone can point out where I am going wrong would be perfect!

    Here's the script:

    ----------

    Drop TABLE County CASCADE CONSTRAINTS ;

    Drop TABLE City CASCADE CONSTRAINTS ;

    Drop TABLE Offence CASCADE CONSTRAINTS ;

    Drop TABLE Region CASCADE CONSTRAINTS ;


    CREATE TABLE County (

    PRIMARY County_Name VARCHAR2()55) KEY

        Rental VARCHAR2 (55) ,

        Details VARCHAR2 (222) );


    CREATE TABLE Offence (

        Offence_ID NUMBER (3) PRIMARY KEY ,

    Offence_Desc VARCHAR2()333)

    Offence_Type VARCHAR2()111() NOT NULL

        Date DATE NOT NULL ,

        Time NUMBER (5) ,

    County_Name VARCHAR2()55( ) REFERENCES County()County_Name)

    City_Name VARCHAR2()55( ) REFERENCES City()short-term()

    Region_Name VARCHAR2()55( ) REFERENCES region()rated()()


    CREATE TABLE City (

    County_Name VARCHAR2()55( ) REFERENCES County()County_Name)

    PRIMARY City_Name VARCHAR2()55) KEY

        PostCode VARCHAR (8) NOT NULL ,

        House # NUMBER (3) NOT NULL ,

        Street VARCHAR2 (55) ,

        Town VARCHAR2 (55) ,

        Building_Name VARCHAR2 (55) );

    CREATE TABLE Region (

    PRIMARY Region_Name VARCHAR2()55) KEY

        City VARCHAR2 (55) NOT NULL ,

        Est_Population NUMBER (9) NOT NULL );

    -----------


    The error I get in the summary when I run the script is:

    6 «»0.00CREATE TABLE offence (Offence_ID NUMBER PRIMARY KEY (3),)"ORA-00904: invalid identifier.

    So I guess it's related to the "Offence_ID" line (designed as the primary key / identifier), but I don't see a problem.

    Any help is greatly appreciated!

    The DATE is an Oracle reserved word.

    Oracle reserved words and keywords

    SQL > create table test_tbl

    () 2

    3 date default sysdate

    4  );

    date default sysdate

    *

    ERROR at line 3:

    ORA-00904: invalid identifier

    SQL > create table test_tbl

    () 2

    3 'DATE' date default sysdate

    4  );

    Table created.

    I wouldn't recommend do not name your DATE column, but to use something like Offence_date instead.

  • ORA-00904: "QRYJOINOPTIMIZE": invalid identifier

    Hello
    FCSM90 when you run the import script Data Mover I have the following:
     
    File: E:\pt85205b-retail\peopletools\src\pssys\qdmget.cppSQL error. Stmt #: 3024  Error Position: 377  Return:
     904 - ORA-00904: "QRYJOINOPTIMIZE" : identificateur non valide 
    Failed SQL stmt:SELECT VERSION, QRYTYPE,    SELCOUNT, EXPCOUNT, BNDCOUNT, QRYVALID, DESCR, TO_CHAR(CAST((LASTUPDDTTM) AS TIMESTAMP),'YYYY-MM-DD-HH24.MI.SS.FF'),    LASTUPDOPRID, QRYAPPROVED, CREATEOPRID, TO_CHAR(CAST((CREATEDTTM) AS TIMES-TAMP),'YYYY-MM-DD-HH24.MI.SS.FF'),    APPROVEOPRID, TO_CHAR(CAST((APPROVEDTTM) AS TIMESTAMP),'YYYY-MM-DD-HH24.MI.SS.FF'), EXECLOGGING, QRYDISABLED, QRYFOL-DER,QRYJOINOPTIMIZE,DESCRLONG    FROM PSQRYDEFN    WHERE OPRID = :1    AND QRY-NAME = :2 
    I found something understandable on metalink.
    Do you have any idea?
    Thank you.

    What you trying to do? A creation of the database?
    Or is it something else, like a db and import export in another? In this case, what is the source PTools and PTools version of target version?
    I checked in one of our 8.48, the QRYJOINOPTIMIZE column is not there, but exists in 8.51.
    Please give more details.

    Nicolas.

  • ORA-00904: string: invalid identifier

    Alert by noob, I try to use an identifier in a case statement to avoid have to write the statement twice. I know that there is a better way to do someone can help?

    below is the current code, that I inherited...

    Date1 - DATE_RCVD as DAYS_TO_REFERRAL,
    -case when DATE1 - > 15 DATE_RCVD can "FAIL".
    Another 'PASS '.
    finish as a REFERENCE
    DATE2,
    DATE3,




    Here's what I'm trying, so I can combine steps... but I get the error invalid identifier

    Date1 - DATE_RCVD as DAYS_TO_REFERRAL,
    When case DAYS_TO_REFERRAL > 15 can "FAIL".
    Another 'PASS '.
    finish as a REFERENCE
    DATE2,
    DATE3,


    I changed the names of fields btw. Thanks in advance.
    Rich

    You cannot reference alias on the same leveluse: see online:

    SELECT  DAYS_TO_REFERRAL,
            case
              when DAYS_TO_REFERRAL > 15 then 'FAIL'
              else 'PASS'
            end as REFERRAL
            DATE2,
            DATE3
      FROM  (
             SELECT  DATE1 - DATE_RCVD as DAYS_TO_REFERRAL
                     DATE2,
                     DATE3
               FROM  your_table
           )
    /
    

    SY.

  • Display problem: ORA-00904: "IDPLANIFICARE": invalid identifier

    I have a problem of selection of data in a view that I created.

    CREATE OR REPLACE FORCE VIEW CHELTUIELI. GETPLATIEXECUTATE
    (
    "IdPlanificare,"
    'User ',.
    "Suma"
    "DataPlatii,"
    "Userd."
    "DataPlataDatorie,"
    "IdPlata,"
    "Congelamento."
    "Platit '.
    )
    AS
    SELECT 'IdPlanificare,' id_planificare
    username "User."
    "Suma, Suma
    INITCAP (TO_CHAR (data_platii, ' DAY DD MONTH YYYY, HH24:MI:SS "))"DataPlatii. "
    userd "Userd", INITCAP (TO_CHAR (data_plata_datorie, ' DAY DD MONTH YYYY, HH24:MI:SS ")) 'DataPlataDatorie,'
    ID "IdPlata"
    NVL2 (userd, 1, 0) 'Congelamento. "
    NVL2 (data_plata_datorie, 1, 0) 'Platit '.
    OF cheltuieli. PLATI_EXECUTATE;

    The following SELECTION returns the error in the title.

    SELECT * from CHELTUIELI. GETPLATIEXECUTATE where IdPlanificare = 66;

    I don't understand what is wrong. If you have some tips please help me.

    Thank you.

    Published by: Adrian P on August 2, 2010 07:51

    As has been suggested by despised the best way would be to change your view to:

    CREATE OR REPLACE FORCE VIEW CHELTUIELI.GETPLATIEXECUTATE
    (
    IdPlanificare,
    User,
    Suma,
    DataPlatii,
    UserD,
    DataPlataDatorie,
    IdPlata,
    Datorie,
    Platit
    )
    AS
    SELECT id_planificare ,
    username,
    suma ,
    TO_CHAR (data_platii, 'Day DD Month YYYY, HH24:MI:SS') ,
    userd ,
    TO_CHAR (data_plata_datorie, 'Day DD Month YYYY, HH24:MI:SS') ,
    id ,
    NVL2 (userd, 1, 0) ,
    NVL2 (data_plata_datorie, 1, 0)
    FROM cheltuieli.PLATI_EXECUTATE;
    

    Published by: Sven w. on August 2, 2010 17:12 - I have now deleted the INITCAP also, because this can be done by Initcapping, the format mask (months instead of MONTHS).

  • Oracle xe: ORA-00904: "XMLROOT": invalid identifier

    The database Oracle XE 11g R2 11.2.0.2.0 64-bit

    My PL/SQL procedure has XMLROOT associated code. When I run it on my copy of the database, it throws this error.

    But the same code works on a different database of xe.

    Can anyone help with this problem.

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb13gen.htm#ADXDB5030

Maybe you are looking for