SSRS - IFF statement error in Oracle dataset query

I am getting the error:
Query Definitions Differ
The following errors were encountered while parsing the contents of the SQL pane:
Error in list of function arguments: '=' not recognized.
Unable to parse query text.
The statement it is erring on is:
 IFF("T$RERR"=1,'No','Yes') AS RuntimeError
Is it because I have "" around the field name?
Fred Schmid

I don't think SSRS likes the IFF statement.  I switched to using the DECODE statement and it works fine.
DECODE("T$RERR", 1, "Yes", 2, "No") AS RuntimeError
(I had the Yes and No backwards in the above the IFF statement).
I first tried the CASE statement and that didn't work so I tried the IFF.
Fred Schmid

Similar Messages

  • SSRS IIF Statement #Error

    All,
    I have the below IIF statement in SSRS report based on a sharepoint list. However I get #Error only on certain lines
    For example when Item_Name = P001-P384D630Z01
    I am sort of stunned at this point. All the other lines work except the one with above item name. If I remove the MF5 Mod Center part of the iif then everything works.
    =
    Iif((mid(Fields!Item_Name.Value,8,1)= 3 OR mid(Fields!Item_Name.Value),8,1)=4) AND LEFT(TRIM(Fields!Project_No.Value),1) =8, "MF5 Mod Center",
    Iif(Left(Fields!Project_No.Value,1)="3","HOU MOD",
    Iif(Left(Fields!Item_Name.Value,3) = "RDC","RDC",
    Iif(Left(Fields!Item_Name.Value,4) = "P001","Overseas",
    Iif(IsNothing(Fields!Engineering_Status.Value), "Pre-engineering",
    Iif(Fields!Engineering_Status.Value="P.C. Finished", "Production",
    Fields!Engineering_Status.Value

    It's working after removing the "-" in the item_name if anyone is wondering.
    =
    Iif(Left(Fields!Project_No.Value,1)="3","HOU MOD",
    Iif(Left(Fields!Item_Name.Value,3) = "RDC","RDC",
    Iif(Left(Fields!Item_Name.Value,4) = "P001","Overseas",
    Iif(IsNothing(Fields!Engineering_Status.Value), "Pre-engineering",
    Iif(Fields!Engineering_Status.Value="P.C. Finished", "Production",
    Iif((mid(replace(Fields!Item_Name.Value,"-",""),8,1)= 3 OR mid(replace(Fields!Item_Name.Value,"-",""),8,1)=4) AND LEFT(TRIM(Fields!Project_No.Value),1) =8, "MF5 Mod Center"
    ,Fields!Engineering_Status.Value

  • Frm-40505:ORACLE error: unable to perform query in oracle forms 10g

    Hi,
    I get error frm-40505:ORACLE error: unable to perform query on oracle form in 10g environment, but the same form works properly in 6i.
    Please let me know what do i need to do to correct this problem.
    Regards,
    Priya

    Hi everyone,
    I have block created on view V_LE_USID_1L (which gives the error frm-40505) . We don't need any updation on this block, so the property 'updateallowed' is set to 'NO'.
    To fix this error I modified 'Keymode' property, set it to 'updatable' from 'automatic'. This change solved the problem with frm-40505 but it leads one more problem.
    The datablock v_le_usid_1l allows user to enter the text (i.e. updated the field), when the data is saved, no message is shown. When the data is refreshed on the screen, the change done previously on the block will not be seen (this is because the block updateallowed is set to NO), how do we stop the fields of the block being editable?
    We don't want to go ahead with this solution as, we might find several similar screens nad its diff to modify each one of them individually. When they work properly in 6i, what it doesn't in 10g? does it require any registry setting?
    Regards,
    Priya

  • Import error imp-00017: following statement failed with oracle error 1659:

    Hi all,
    I am trying to import a file (dmp) which is of 1.63GB size,
    when I type
    imp
    dbname/pwd@db
    c:\filepath
    30720
    no
    no
    yes
    yes
    yes
    I am getting the error imp-00017: following statement failed with oracle error 1659:
    -- end it says Ora-01659 unable to allocate minextents beyond 1 in tablespace USERS
    --unable to create INITIAL extent for segment in tablespace USERS
    --import terminated successfully with warnings
    when I looked into
    select maxbytes,file_name from dba_data_files where tablespace_name='USERS';3.4360+10 c:\oracle\product\10.2.0\oradata\orcl\users01.dbf
    kindly help me in solving this is.
    Regards,
    aak
    Edited by: AAK 460425 on Apr 12, 2009 6:33 PM

    Thanks,
    select bytes from user_free_space where tablespace_name='USERS'
    BYTES
    458752
    720896
    458752
    655360
    43384832
    is the size less?
    My apology I have updated this in the below thread, which is same as this one.
    Re: Import error

  • IMP-00017: following statement failed with ORACLE error 901:

    Why I get these error messages while I do full import? Could anyone help me on this issue?
    IMP-00017: following statement failed with ORACLE error 901:
    "CREATE FORMAT92TRIG "
    IMP-00003: ORACLE error 901 encountered
    ORA-00901: invalid CREATE command
    IMP-00008: unrecognized statement in the export file:
    ýÿ$
    Note:- I have used the same command to import the same export file to a different SID and it went fine but when I try to do import for SID (DEMO), I get the above mentioned errors.
    Thanks
    Rajesh Kumar

    Thanks for the clue
    Got it right, when i changed the primary Oracle Home from 10gDS to 9iDB. 10gDS has a lower version of import as compared to 9iDB.
    Rajesh

  • IMP-00017: following statement failed with ORACLE error 2304

    Hi,
    in 9i DB when importing I have :
    IMP-00017: following statement failed with ORACLE error 2304:
    "CREATE TYPE "T_NUMBER" TIMESTAMP '2007-04-02:10:02:26' OID '6B4C21C0310143B"
    "A97211E5E8301C09E' "
    " as table of number"
    IMP-00003: ORACLE error 2304 encountered
    ORA-02304: invalid object identifier literal
    Can any one please explaine me the problem and if possible a solution ?
    Many thanks.

    The problem is explained in the metalink Note:113335.1

  • IMP-00017: following statement failed with ORACLE error 1849

    Hi
    We have a instance 11.1.0.7
    while doing import i got the issue as:
    IMP-00017: following statement failed with ORACLE error 1849:
    "BEGIN "
    "dbms_scheduler.create_job('"MAXIMOTSSYNC"',"
    "job_type=>'STORED_PROCEDURE', job_action=>"
    "'maximo_ts_job'"
    ", number_of_arguments=>0,"
    "start_date=>'30-AUG-12 15.12.04.000000 +04:00', repeat_interval=> "
    "'SYSDATE + 5/1440'"
    ", end_date=>NULL,"
    "job_class=>'"DEFAULT_JOB_CLASS"', enabled=>FALSE, auto_drop=>TRUE,comments="
    ">"
    "NULL"
    "dbms_scheduler.enable('"MAXIMOTSSYNC"');"
    "COMMIT; END;"
    IMP-00003: ORACLE error 1849 encountered
    ORA-01849: hour must be between 1 and 12
    ORA-06512: at line 2
    IMP-00091: Above error occurred on the following function and object: CREATE MAXIMOTSSYNC. Remaining PL/SQL blocks for this object will be skipped.
    Import terminated successfully with warnings.
    My imp command is:
    imp system/manager file=schema.DMP log=schema.log fromuser=max touser=max
    Please suggest on this
    Thanks
    Shaik

    ORA-01849: hour must be between 1 and 12Error: ORA 1849
    Text: hour must be between 1 and 12
    Cause: An invalid hour was specified for a date using the 12-hour time format.
    If a 12-hour format code (HH or HH12) is used, the specified hour must
    be between 1 and 12.
    Action: Enter an hour value between 1 and 12.

  • IMP-00017: following statement failed with ORACLE error 1031

    Hello,
    I export a schema from prod (database A) and I try to imported to onther test database (databse B).
    database A: single database - Non ASM - 10gR1
    database B: RAC database - ASM -10gR2
    To import database I use this:
    imp osiris/b@osiris file=prod_osiris070601.dmp full=y ignore=y log=osiris.log
    All the tables are imported withot problem but when he start to imprt views I get this error:
    IMP-00017: following statement failed with ORACLE error 1031:
    Can you please help?
    Thanck you in advance.

    I thing that the problem is that the user can not create views!!!
    I create the user normaly and I give him this rols: "CREATE SESSION", "CONNECT" and "RESOURCE"
    it's ok?
    . . importing table "ZIP_CODE" 70768 rows imported
    IMP-00017: following statement failed with ORACLE error 1031:
    "CREATE FORCE VIEW "OSIRIS"."DETAILED_FRANKING_SYSTEM_VIEW" "
    " ("CONFIGURATION_SYSTEM_ID","SYSTEM_ID","DEVICE_SERIAL_NO","OPCO_DE"
    "VICE_SERIAL_NO","STATUS","BO_CUST_ID","CUSTOMER_NAME","CUSTOMER_ADDRESS_NAM"
    "E","CUSTOMER_STREET1","CUSTOMER_STREET2","CUSTOMER_STREET3","CUSTOMER_STREE"
    "T4","CUSTOMER_CITY","CUSTOMER_STATE","CUSTOMER_ZIP4","CUSTOMER_ZIP","CUSTOM"
    "ER_COUNTRY","CUSTOMER_NAME_CAP","CUSTOMER_ADDRESS_NAME_CAP","CUSTOMER_STREE"
    "T1_CAP","CUSTOMER_STREET2_CAP","CUSTOMER_STREET3_CAP","CUSTOMER_STREET4_CAP"
    "","CUSTOMER_ADDRESS_STREET_CAP","CUSTOMER_CITY_CAP","CUSTOMER_STATE_CAP","C"
    "USTOMER_COUNTRY_CAP","INSTALL_ADDRESS_NAME","INSTALL_STREET1","INSTALL_STRE"
    "ET2","INSTALL_STREET3","INSTALL_STREET4","INSTALL_CITY","INSTALL_STATE","IN"
    "STALL_ZIP4","INSTALL_ZIP","INSTALL_COUNTRY","INSTALL_ADDRESS_NAME_CAP","INS"
    "TALL_STREET1_CAP","INSTALL_STREET2_CAP","INSTALL_STREET3_CAP","INSTALL_STRE"
    "ET4_CAP","INSTALL_ADDRESS_STREET_CAP","INSTALL_CITY_CAP","INSTALL_STATE_CAP"
    "","INSTALL_COUNTRY_CAP","DESCRIPTION","CONFIG_MODEL_ID","TYPE","PART_NUMBER"
    "AND DEVICE_SYSTEM.DEVICE_TYPE='METER'"
    "AND US_SERIAL_NO_CONVERTER.DEVICE_SERIAL_NO(+) = DEVICE_SYSTEM.DEVICE_SERIA"
    "L_NO"
    IMP-00003: ORACLE error 1031 encountered
    ORA-01031: insufficient privileges
    IMP-00017: following statement failed with ORACLE error 942:
    "GRANT DELETE ON "DETAILED_FRANKING_SYSTEM_VIEW" TO "APP""
    IMP-00003: ORACLE error 942 encountered
    Message was edited by:
    ASkika

  • IMP-00017: following statement failed with ORACLE error 1276

    i have exported the full database without rows from live database and tried to import it into training database.
    both use ASM file system.i have precreated tablespace in training database.
    but im getting the error IMP-00017: following statement failed with ORACLE error 1276.
    it tries to create tablesapce and datafile on live ASM location rather than creating it on training database ASM location.
    live database asm location is WEBD and training database is at TRAIND.
    it tries to import on WEBD RATHER THAN TRAIND and throws the error.
    any help is appreciated.i have googled it and cant find anything helpful.
    Im bit new to DBA stuff.
    is there anyway to import and export data in ASM file system?
    Thanks

    When datapump exports the tablespace information, all it knows about is the currently location of your datafiles. Let's take a simple example. Let's say you have tablespace foo with a file called foo.dbf and it lives in a windows directory c: if you are now trying to import that into a linux box, Data Pump does not know that. All it knows is that it needs to create the tablespace data file in c:. If you are changing the locations of the datafiles, you need to use remap_datafile=old_datafile:new_datafile ... in your impdp command. Or, precreate them and use exclude=tablespace. The old_datafile and new_datafile need to be the complete path.
    Hope this helps.
    Dean

  • IMP-00017: following statement failed with ORACLE error 922

    Hi all,
    I'm trying to import a partitioned table. I'm using the imp utility with ignore=y,
    but I got the error:
    IMP-00017: following statement failed with ORACLE error 922:
    "CREATE TABLE "TAB_EX" ("ID_EX" CHAR(12), "C2" NUM"
    "BER(3, 0), "C3" DATE, "C5" DATE, "C4" NUMBER("
    "8, 2), "C6" NUMBER(5, 0), "C7" NUMBER(6, "
    "0), "C8" NUMBER(6, 0))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 25"
    "5 TABLESPACE "ETMTSD01" NOLOGGING PARALLEL ( DEGREE 4 INSTANCES 1) PARTITIO"
    "N BY RANGE ("DT_ABERTURA" )  SUBPARTITION BY HASH ("ID_ATM" )  SUBPARTITION"
    "S 4 SUBPARTITION TEMPLATE( SUBPARTITION "AB_SUBPART_1" VALUES ()  TABLESPAC"
    "E "ETMTSD03", SUBPARTITION "AB_SUBPART_2" VALUES ()  TABLESPACE "ETMTSD03","
    " SUBPARTITION "AB_SUBPART_3" VALUES ()  TABLESPACE "ETMTSD03", SUBPARTITION"
    " "AB_SUBPART_4" VALUES ()  TABLESPACE "ETMTSD03" ) (PARTITION "AB_PART_BEFO"
    "RE" VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:"
    "SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 2"
    "55 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_1"
    ""  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_2"  TABLE"
    "SPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_3"  TABLESPACE "E"
    "TMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_4"  TABLESPACE "ETMTSD03""
    " ), PARTITION "AB_PART_2008_01" VALUES LESS THAN (TO_DATE(' 2008-02-01 00:0"
    "0:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTU"
    "SED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "
    ""AB_PART_2008_01_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PAR"
    "T_2008_01_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_"
    "01_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_01_AB_S"
    "UBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_02" VALUES LESS"
    " THAN (TO_DATE(' 2008-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALEN"
    "DAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE ""
    "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_02_AB_SUBPART_1"  TABLESPACE "So, the rows cannot be imported because this error.
    Why am I getting this error with ignore=y?
    thanks!

    imp userdba fromuser=etmown touser=etmown file=etmown.dmp log=etmown_imp10g.log statistics=none grants=no ignore=Ythe log:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V09.02.00 via conventional path
    Warning: the objects were exported by ETMOWN, not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    . importing ETMOWN's objects into ETMOWN
    IMP-00017: following statement failed with ORACLE error 922:
    "CREATE TABLE "TAB_EX" ("c1" CHAR(12), "c2" NU"
    "MBER(3, 0), "C3" DATE, "C4" DATE, "C5" NUMBER"
    "(8, 2), "C6" NUMBER(5, 0), "C7" NUMBER(6,"
    " 0), "C8" NUMBER(6, 0))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 2"
    "55 TABLESPACE "ETMTSD01" NOLOGGING PARALLEL ( DEGREE 4 INSTANCES 1) PARTITI"
    "ON BY RANGE ("C3" )  SUBPARTITION BY HASH ("C1" )  SUBPARTITIO"
    "NS 4 SUBPARTITION TEMPLATE( SUBPARTITION "AB_SUBPART_1" VALUES ()  TABLESPA"
    "CE "ETMTSD03", SUBPARTITION "AB_SUBPART_2" VALUES ()  TABLESPACE "ETMTSD03""
    ", SUBPARTITION "AB_SUBPART_3" VALUES ()  TABLESPACE "ETMTSD03", SUBPARTITIO"
    "N "AB_SUBPART_4" VALUES ()  TABLESPACE "ETMTSD03" ) (PARTITION "AB_PART_BEF"
    "ORE" VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI"
    ":SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS "
    "255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_"
    "1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_2"  TABL"
    "ESPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_3"  TABLESPACE ""
    "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_4"  TABLESPACE "ETMTSD03"
    "" ), PARTITION "AB_PART_2008_01" VALUES LESS THAN (TO_DATE(' 2008-02-01 00:"
    "00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCT"
    "USED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION"
    " "AB_PART_2008_01_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PA"
    "RT_2008_01_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008"
    "_01_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_01_AB_"
    "SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_02" VALUES LES"
    "S THAN (TO_DATE(' 2008-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALE"
    "NDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "
    ""ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_02_AB_SUBPART_1"  TABLESPACE"
    " "ETMTSD03", SUBPARTITION "AB_PART_2008_02_AB_SUBPART_2"  TABLESPACE "ETMTS"
    "D03", SUBPARTITION "AB_PART_2008_02_AB_SUBPART_3"  TABLESPACE "ETMTSD03", S"
    "UBPARTITION "AB_PART_2008_02_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTIT"
    "ION "AB_PART_2008_03" VALUES LESS THAN (TO_DATE(' 2008-04-01 00:00:00', 'SY"
    "YYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INI"
    "TRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2"
    "008_03_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_03_"
    "AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_03_AB_SUBP"
    "ART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_03_AB_SUBPART_4" "
    " TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_04" VALUES LESS THAN (TO_"
    "DATE(' 2008-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGOR"
    "IAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" "
    "LOGGING (SUBPARTITION "AB_PART_2008_04_AB_SUBPART_1"  TABLESPACE "ETMTSD03""
    ", SUBPARTITION "AB_PART_2008_04_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPA"
    "RTITION "AB_PART_2008_04_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION"
    " "AB_PART_2008_04_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PAR"
    "T_2008_05" VALUES LESS THAN (TO_DATE(' 2008-06-01 00:00:00', 'SYYYY-MM-DD H"
    "H24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAX"
    "TRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_05_AB_S"
    "UBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_05_AB_SUBPART_"
    "2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_05_AB_SUBPART_3"  TAB"
    "LESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_05_AB_SUBPART_4"  TABLESPACE"
    " "ETMTSD03" ), PARTITION "AB_PART_2008_06" VALUES LESS THAN (TO_DATE(' 2008"
    "-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCT"
    "FREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SU"
    "BPARTITION "AB_PART_2008_06_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTIT"
    "ION "AB_PART_2008_06_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB"
    "_PART_2008_06_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2"
    "008_06_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_07" "
    "VALUES LESS THAN (TO_DATE(' 2008-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS',"
    " 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 T"
    "ABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_07_AB_SUBPART_1"  "
    "TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_07_AB_SUBPART_2"  TABLESP"
    "ACE "ETMTSD03", SUBPARTITION "AB_PART_2008_07_AB_SUBPART_3"  TABLESPACE "ET"
    "MTSD03", SUBPARTITION "AB_PART_2008_07_AB_SUBPART_4"  TABLESPACE "ETMTSD03""
    " ), PARTITION "AB_PART_2008_08" VALUES LESS THAN (TO_DATE(' 2008-09-01 00:0"
    "0:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTU"
    "SED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "
    ""AB_PART_2008_08_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PAR"
    "T_2008_08_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_"
    "08_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_08_AB_S"
    "UBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_09" VALUES LESS"
    " THAN (TO_DATE(' 2008-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALEN"
    "DAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE ""
    "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_09_AB_SUBPART_1"  TABLESPACE "
    ""ETMTSD03", SUBPARTITION "AB_PART_2008_09_AB_SUBPART_2"  TABLESPACE "ETMTSD"
    "03", SUBPARTITION "AB_PART_2008_09_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SU"
    "BPARTITION "AB_PART_2008_09_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITI"
    "ON "AB_PART_2008_10" VALUES LESS THAN (TO_DATE(' 2008-11-01 00:00:00', 'SYY"
    "YY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INIT"
    "RANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_20"
    "08_10_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_10_A"
    "B_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_10_AB_SUBPA"
    "RT_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_10_AB_SUBPART_4"  "
    "TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_11" VALUES LESS THAN (TO_D"
    "ATE(' 2008-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORI"
    "AN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" L"
    "OGGING (SUBPARTITION "AB_PART_2008_11_AB_SUBPART_1"  TABLESPACE "ETMTSD03","
    " SUBPARTITION "AB_PART_2008_11_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPAR"
    "TITION "AB_PART_2008_11_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "
    ""AB_PART_2008_11_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART"
    "_2008_12" VALUES LESS THAN (TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH"
    "24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXT"
    "RANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_12_AB_SU"
    "BPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_12_AB_SUBPART_2"
    ""  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_12_AB_SUBPART_3"  TABL"
    "ESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_12_AB_SUBPART_4"  TABLESPACE "
    ""ETMTSD03" ) )"
    IMP-00003: ORACLE error 922 encountered
    ORA-00922: missing or invalid option
    Import terminated successfully with warnings.thank u very much! :-)
    Edited by: [email protected] on Sep 12, 2008 3:11 PM

  • ORA-06540,following statement failed with ORACLE error 6540:

    I was working during the last days on doing a full export/import for the database 9i I used the following script for the export .
    exp system/**** full=y file=/export/export.dmp log=/export/export.log consistent=y statistics=estimate buffer=200000
    And everything went fine, after that I dropped all the objects owners belonging to the tablepaces as i am doing that to solve fragmentation problems
    The issue is during the import and after 50% of the tables were exported successfully I started to receive the following error
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-123: program too large
    IMP-00017:
    "DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := 'C2020E'; SREC.MAXVA"
    "L := 'C26338'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STA"
    "TS.NUMARRAY(113,9855); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC :="
    " 2; DBMS_STATS.SET_COLUMN_STATS(NULL,'"RPT_LEDGER"','"GL_ACCOUNT_ID"', NULL"
    " ,NULL,NULL,1432,.000698324022346369,0,srec,4,2); END;"
    IMP-00003: ORACLE error 6540 encountered
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-123: program too large
    IMP-00017: following statement failed with ORACLE error 6540:
    "DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := 'C2020B'; SREC.MAXVA"
    "L := 'C2031F'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STA"
    "TS.NUMARRAY(110,230); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := "
    "2; DBMS_STATS.SET_COLUMN_STATS(NULL,'"RPT_LEDGER"','"COMMON_COA_ID"', NULL "
    ",NULL,NULL,14,.0714285714285714,0,srec,4,2); END;"
    IMP-00003: ORACLE error 6540 encountered
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-123: program too large
    IMP-00017: following statement failed with ORACLE error 6540:
    "DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := 'C202'; SREC.MAXVAL "
    ":= 'C20233'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS"
    ".NUMARRAY(100,150); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2;"
    " DBMS_STATS.SET_COLUMN_STATS(NULL,'"RPT_LEDGER"','"CONSOLIDATION_CD"', NULL"
    " ,NULL,NULL,2,.5,0,srec,4,2); END;"
    IMP-00003: ORACLE error 6540 encountered
    the used script for import is
    imp system/****** full=y rows=y file=/export/export.dmp log=/export/ofsaimport2.log buffer=20000000
    Please note that all the tables and indexes are imported successfully even after the error started to show.
    Is it something serious, should I do the import again with statistics=none or I am just fine now and it something that is just related for the statistics.

    Is really "fragmentation" an issue to justify this table movement? Why do you want to "defragment" your schema? Is it because of performance issues? If this is the case you are wasting your time, if you tried to rebuild the indexes by this procedure, it is also a waste of time. If you are concerned about fragmentation because of "holes" and "islands" of unused space within segments and unused space below the HWM, that is something different, in my personal jargon, I'd rather use the term space reorganization.
    If the data import was successful, then take a look at the dba_objects and verify if the program unit is still there and check its status.
    You may also want to take a look at this note from AskTom that explains what this error means --> http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:571023051648
    ~ Madrid
    http://hrivera99.blogspot.com

  • IMP-00017: following statement failed with ORACLE error 25153

    Sirs,
    Any one can guide me on below errors getting while importing the data
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export file created by EXPORT:V09.02.00 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    . importing SWTHIST's objects into SWTHIST
    . . importing partition "AUTHHIST_2006":"AUTH_09_06" 2857788 rows imported
    IMP-00017: following statement failed with ORACLE error 25153:
    "CREATE INDEX "AUTH2006_1" ON "AUTHHIST_2006" ("BR_ID" , "CARD_NO" , "SYSTEM"
    "_REQ_DTTIME" ) PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FR"
    "EELISTS 1 FREELIST GROUPS 1) TABLESPACE "SWTIDX" LOGGING"
    IMP-00003: ORACLE error 25153 encountered
    ORA-25153: Temporary Tablespace is Empty
    IMP-00057: Warning: Dump file may not contain data of all partitions of this table
    Import terminated successfully with warnings.

    Hi,
    I have seen this error when you have a temporary tablespace without any datafile associated with it. I don't know how that happens, but that is what I have seen.
    ORA-25153: Temporary Tablespace is Empty
    Try altering the temp tablespace and add a tempfile.
    Dean

  • Urgent:IMP-00017: following statement failed with ORACLE error 3113

    OS:HP_UX 11i
    Oracle 9.2.0.3.0
    when import tablespace metadata,
    comand is "imp \'sys/sysadmin AS sysdba\' TRANSPORT_TABLESPACE=y DATAFILES='/oradata/data2/
    B.dbf' TABLESPACES=A FILE=A.dmp IGNORE=Y LOG=./log/import.log"
    the error occurs as followed:
    Export file created by EXPORT:V09.02.00 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 3113:
    "BEGIN sys.dbms_plugts.beginImport ('9.2.0.3.0',31,'2000',NULL,'NULL',3626"
    "7,35051,1); END;"
    IMP-00003: ORACLE error 3113 encountered
    ORA-03113: end-of-file on communication channel
    IMP-00000: Import terminated unsuccessfully
    export is in same enviorment, the successful informantion below:
    exp \'sys/sysadmin AS sysdba\' TRANSPORT_TABLESPACE=y TABLESPACES=A FILE=A.dmp
    LOG=./log/export.log
    log file:
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    About to export transportable tablespace metadata...
    For tablespace A ...
    . exporting cluster definitions
    . exporting table definitions
    . . exporting table A
    . exporting referential integrity constraints
    . exporting triggers
    . end transportable tablespace metadata export
    Export terminated successfully without warnings.

    I do it,but the same error message.
    export message:
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    Note: table data (rows) will not be exported
    About to export transportable tablespace metadata...
    For tablespace A ...
    . exporting cluster definitions
    . exporting table definitions
    . . exporting table A
    . exporting referential integrity constraints
    . exporting triggers
    . end transportable tablespace metadata export
    Export terminated successfully without warnings.
    Import Message:
    Export file created by EXPORT:V09.02.00 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 3113:
    "BEGIN sys.dbms_plugts.beginImport ('9.2.0.3.0',31,'2000',NULL,'NULL',3627"
    "7,36451,1); END;"
    IMP-00003: ORACLE error 3113 encountered
    ORA-03113: end-of-file on communication channel
    IMP-00000: Import terminated unsuccessfully

  • IMP-00017: following statement failed with ORACLE error 1658

    Hi All,
    Please help me to find the reason of this error while importing the export file using parameters full=Y,ignore=n.
    IMP-00003: ORACLE error 1658 encountered
    ORA-01658: unable to create INITIAL extent for segment in tablespace USERS
    IMP-00017: following statement failed with ORACLE error 1658:
    "CREATE TABLE "TABLE_NAME" ("SEGMENTID" VARCHAR2(10) NOT NULL EN"
    "ABLE, "DRIVERID" VARCHAR2(10) NOT NULL ENABLE, "VEHICLEID" VARCHAR2(10) NOT"
    " NULL ENABLE, "START_TIME" VARCHAR2(6) NOT NULL ENABLE, "END_TIME" VARCHAR2"
    "(6) NOT NULL ENABLE, "REPORT_TIME" VARCHAR2(6) NOT NULL ENABLE, "DISPOSITIO"
    "N" VARCHAR2(1), "S_LOCATION1" VARCHAR2(12), "S_LOCATION2" VARCHAR2(60) NOT "
    "NULL ENABLE, "S_LOCATION3" VARCHAR2(12), "S_LOCATION_ENT" VARCHAR2(30), "S_"
    "CITYTOWN" VARCHAR2(30) NOT NULL ENABLE, "S_ZIP" VARCHAR2(10) NOT NULL ENABL"
    "E, "S_STATEPRO" VARCHAR2(4) NOT NULL ENABLE, "S_COUNTRY" VARCHAR2(2), "S_CO"
    "MNTS" VARCHAR2(1), "S_GRID_LAT" NUMBER(10, 6), "S_GRID_LONG" NUMBER(10, 6),"
    " "E_LOCATION1" VARCHAR2(12), "E_LOCATION2" VARCHAR2(60) NOT NULL ENABLE, "E"
    "_LOCATION3" VARCHAR2(12), "E_LOCATION_ENT" VARCHAR2(30), "E_CITYTOWN" VARCH"
    "AR2(30) NOT NULL ENABLE, "E_ZIP" VARCHAR2(10) NOT NULL ENABLE, "E_STATEPRO""
    " VARCHAR2(4) NOT NULL ENABLE, "E_COUNTRY" VARCHAR2(2), "E_COMNTS" VARCHAR2("
    "1), "E_GRID_LAT" NUMBER(10, 6), "E_GRID_LONG" NUMBER(10, 6), "COMMENTS" VAR"
    "CHAR2(200), "STATE" NUMBER(*,0), "OPER_ID" VARCHAR2(20), "UNQ_ID" VARCHAR2("
    "40), "DESCR" VARCHAR2(200), "S_COUNTY" VARCHAR2(30), "E_COUNTY" VARCHAR2(30"
    ")) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FRE"
    "ELISTS 1 FREELIST GROUPS 1) TABLESPACE "USERS" LOGGING"
    Again the next one is
    IMP-00003: ORACLE error 376 encountered
    ORA-00376: file 7 cannot be read at this time
    ORA-01110: data file 7: 'D:\ORACLE\ORADATA\ITMS\USERS01.DBF'
    IMP-00017: following statement failed with ORACLE error 376:
    "CREATE INDEX "TDR_INDX" ON "ITMS_SCHED_TRIPS" ("SEGMENTID" , TRUNC("TRAVELDAT"
    "E") ) PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1"
    " FREELIST GROUPS 1) TABLESPACE "INDX" NOLOGGING"
    Thanks in advance.
    Abhijeet

    Hi,
    Please check whether you have permission to write on this 'D:\ORACLE\ORADATA\ITMS\USERS01.DBF' .
    Also please check if that file is actually present there or not...?
    Error ORACLE error 1658 means that either your datafile has filled completely and its not set to auto extend OR hard disk where that file is residing is full and oracle cannot allocate the minimum memory to the segment that is Extent
    Regards

  • JSP Deployment:Tomcat:Oracle Prepared Statement error

    I'm deploying my BC4J JSP application to Linux/Tomcat 4.0.1.
    The html and basic jsp (Query form display) work but whenever I try to hit the database (i.e. display a browse or execute a query), I get the following in the Browser window:
    Application Error
    Return
    Error Message: oracle.jdbc.driver.OraclePreparedStatement
    There are no other messages. Everything works in the JDeveloper IDE.
    I'm sure I've done something wrong in the configuration.
    Can anyone point me in the right direction?
    TIA
    Thanks, George

    Thanks for the info Sung.
    We solved the problem late yesterday. The Tomcat documentation indicates that .jar files shared by the application and the server must reside in <Tomcat_home>/common/lib/. However, we went by the JDeveloper document which stated that most of the library files belong in <Tomcat_home>/lib/.
    When we moved classes12.jar to /common/lib/ the problem was resolved.
    In order to resolve other problems that arose, we had to move all of the indicated .jar files for JDeveloper into /common/lib/.
    One of the JDeveloper documentation folks should probably evaluate this for a change to the documentation.
    Thanks for your help!
    Thanks, George

Maybe you are looking for