Maximum length of identifier in insert query

Hi,
I am using Sybase 12.0 with JConnect 5.
I am facing some problem with insert query.
It gives exception like " identitifer is too long maximum length is 30"
If i run then same query on winSql its working fine but with JDBC not working.
Pls help me reagrding this.

Hi,
this is the error message i am getting
com.sybase.jdbc2.jdbc.SybSQLException: The identifier that starts with '"T3211PU,,insert into Illustr' is too long. Maximum length is 28.
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2408)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java(Compiled Code))
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:201)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:182)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.executeLoop(SybStatement.java:1535)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:1527)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:742)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.dcx.catl.macscompiler.util.CommonDataAccessManager.execQueryRetState(CommonDataAccessManager.java:759)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.dcx.catl.macscompiler.bo.RemoveIllustrationJavaBean.execute(RemoveIllustrationJavaBean.java:414)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.dcx.catl.macscompiler.ao.RemoveIllustrationAction.execute(RemoveIllustrationAction.java:219)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
[4/27/05 17:02:50:031 IST] 575ee900 SystemErr R [4/27/05 17:02:50:031 IST] 575ee900 SystemOut O SQLException: The identifier that starts with '"T3211PU,,insert into Illustr' is too long. Maximum length is 28.

Similar Messages

  • How do I identify the maximum length of video in iMovie which can be made into a dvd in iDVD, please?

    How do I identify the maximum length of video in iMovie which can be made into a dvd in iDVD, please?
    I made a sellection of video clips  > pressed on "share" > on iDVD >  after one hour of formating the message was under "project duration"  : "Your project exceeds the maximum content duration. To burn your DVD, change the encoder setting in the Project Info window."
    I have edited out some of the clips and waited anothe hour or so bu the same message appeared !
    I want to know in advance how long can be the video clip sellection for the quality of video chosen ( the best before HD).
    please help if ou can.
    thank you very much indeed.
    Michael
    North London

    It's trying to tell you to change the encoding setting:
    iDVD encoding settings:
    http://docs.info.apple.com/article.html?path=iDVD/7.0/en/11417.html
    Short version:
    Best Performance is for videos of up to 60 minutes
    Best Quality is for videos of up to 120 minutes
    Professional Quality is also for up to 120 minutes but even higher quality (and takes much longer)
    That was for single-layer DVDs. Double these numbers for dual-layer DVDs.
    Professional Quality: The Professional Quality option uses advanced technology to encode your video, resulting in the best quality of video possible on your burned DVD. You can select this option regardless of your project’s duration (up to 2 hours of video for a single-layer disc and 4 hours for a double-layer disc). Because Professional Quality encoding is time-consuming (requiring about twice as much time to encode a project as the High Quality option, for example) choose it only if you are not concerned about the time taken.
    In both cases the maximum length includes titles, transitions and effects etc. Allow about 15 minutes for these.
    You can use the amount of video in your project as a rough determination of which method to choose. If your project has an hour or less of video (for a single-layer disc), choose Best Performance. If it has between 1 and 2 hours of video (for a single-layer disc), choose High Quality. If you want the best possible encoding quality for projects that are up to 2 hours (for a single-layer disc), choose Professional Quality. This option takes about twice as long as the High Quality option, so select it only if time is not an issue for you.
    Use the Capacity meter in the Project Info window (choose Project > Project Info) to determine how many minutes of video your project contains.
    NOTE: With the Best Performance setting, you can turn background encoding off by choosing Advanced > “Encode in Background.” The checkmark is removed to show it’s no longer selected. Turning off background encoding can help performance if your system seems sluggish.
    And whilst checking these settings in iDVD Preferences, make sure that the settings for NTSC/PAL and DV/DV Widescreen are also what you want.
    http://support.apple.com/kb/HT1502?viewlocale=en_US

  • Identifying the maximum length of a record in internal table

    Hi,
    Im using an internal table for a string for some requirement.
    Now, at later point of time i need to use for CHAR variable to copy the data from the above internal table.
    I need to identify the max length of the record stored in this internal table so that i can assign that much length to this CHAR variable.
    Is there any standard fm or any abap stmts.
    Thanks
    rohith

    You have to Loop the entire Itab to find the Maximum length of the record stored.
    Just like this:
    data: begin of itab occurs 0,
            v_str1 type string,
          end of itab.
    data: v_len type i.
    data: v_len1 type i.
    itab-v_str1 = 'mahesh sap abap'.
    append itab. clear itab.
    itab-v_str1 = 'mahesh'.
    append itab. clear itab.
    itab-v_str1 = 'mahesh sap'.
    append itab. clear itab.
    loop at itab.
      v_len = strlen( itab-v_str1 ).
      if v_len > v_len1.
        v_len1 = v_len.
      else.
        continue.
      endif.
      clear: v_len.
    endloop.
    write:/ 'Max Length', v_len1.

  • Maximum Length of Query String

    Hello all,
    I am getting the (in)famous null pointer exception inside my Webaction. I am appending certain parameters to my Action object in Javascript, so that they are avaialble in my webaction. Here there is no way that a certain value can come null [i am setting the value to true while declaring the var]. The possible problem could be the maximum length of the querystring. I am doubting that the maximum allowed length of Querystring is exceeded and thus I am not getting the last appended parameter upon submitting the form, thus giving me null value.
    Can someone please let me know what is the maximum allowed length of querystring inside a JSP

    The maximum URL length allowed by Internet Explorer is ~2,048
    characters. This includes the host name, directory, page, and all
    parameters.
    may be this is limiting ur parameter........

  • SPRunCalcAccount and length of identifier

    Hello,
    I got an issue when i try to use the SPRunCalcAccount stored procedure. I got an error related to the length of an identifier. When i check the stored procedure in the 'Programability' part of SQL Server Manager i see it's suppose to handle 2000 char for the currency...  I only send a string of 580 and yet it refused to execute it.
    Do you have any clue about that ?
    Thank for reading,
    Best regards,
    Damien
    Call no. 1, logic:G:\BPC\Data\WebFolders\Consolis\FINANCE
    ..\AdminApp\FINANCE\CalcAccount.lgx
    signeddata is YTD
    Building sub-query 1
    Query Type:0
    Max members:
    Executing SPRUNCALCACCOUNT [FINANCE],[ACT], [HCNDG_DKK,HCNDG_EUR,HOLD_EUR,HPADG_EUR,LDWBG_EUR,PCPHG_EUR,RAIL_EUR,RAIL_WAQ_EUR,RESA_EUR,RESA_WAQ_EUR,RFRA_EUR,RMAR_EUR,RMAR_MAD,RSATG_EUR],[SPSCOPE_158579],[SPLOG_737962]
    error running stored procedure SPRUNCALCACCOUNT [FINANCE],[ACT], [HCNDG_DKK,HCNDG_EUR,HOLD_EUR,HPADG_EUR,LDWBG_EUR,PCPHG_EUR,RAIL_EUR,RAIL_WAQ_EUR,RESA_EUR,RESA_WAQ_EUR,RFRA_EUR,RMAR_EUR,RMAR_MAD,RSATG_EUR],[SPSCOPE_158579],[SPLOG_737962]:The identifier that starts with 'HCNDG_DKK,HCNDG_EUR,HOLD_EUR,HPADG_EUR,LDWBG_EUR,PCPHG_EUR,RAIL_EUR,RAIL_WAQ_EUR,RESA_EUR,RESA_WAQ_EUR,RFRA_EUR,RMAR_EUR,RMAR_MA'is too long. Maximum length is 128.

    I would try to run the process in smaller buckets, using the Key Identifier, which is the 1st column in teh Translation Account table.  The use of the identifier goes into the SPRUNCALCACCOUNT string after the SCOPE and LOG table statements.
    Try and let us know.

  • On load, getting error:  Field in data file exceeds maximum length

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0    Production
    TNS for Solaris: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    I'm trying to load a table, small in size (110 rows, 6 columns).  One of the columns, called NOTES is erroring when I run the load.  It is saying that the column size exceeds max limit.  As you can see here, the table column is set to 4000 Bytes)
    CREATE TABLE NRIS.NRN_REPORT_NOTES
      NOTES_CN      VARCHAR2(40 BYTE)               DEFAULT sys_guid()            NOT NULL,
      REPORT_GROUP  VARCHAR2(100 BYTE)              NOT NULL,
      AREACODE      VARCHAR2(50 BYTE)               NOT NULL,
      ROUND         NUMBER(3)                       NOT NULL,
      NOTES         VARCHAR2(4000 BYTE),
      LAST_UPDATE   TIMESTAMP(6) WITH TIME ZONE     DEFAULT systimestamp          NOT NULL
    TABLESPACE USERS
    RESULT_CACHE (MODE DEFAULT)
    PCTUSED    0
    PCTFREE    10
    INITRANS   1
    MAXTRANS   255
    STORAGE    (
                INITIAL          80K
                NEXT             1M
                MINEXTENTS       1
                MAXEXTENTS       UNLIMITED
                PCTINCREASE      0
                BUFFER_POOL      DEFAULT
                FLASH_CACHE      DEFAULT
                CELL_FLASH_CACHE DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    I did a little investigating, and it doesn't add up.
    when i run
    select max(lengthb(notes)) from NRIS.NRN_REPORT_NOTES
    I get a return of
    643
    That tells me that the largest size instance of that column is only 643 bytes.  But EVERY insert is failing.
    Here is the loader file header, and first couple of inserts:
    LOAD DATA
    INFILE *
    BADFILE './NRIS.NRN_REPORT_NOTES.BAD'
    DISCARDFILE './NRIS.NRN_REPORT_NOTES.DSC'
    APPEND INTO TABLE NRIS.NRN_REPORT_NOTES
    Fields terminated by ";" Optionally enclosed by '|'
      NOTES_CN,
      REPORT_GROUP,
      AREACODE,
      ROUND NULLIF (ROUND="NULL"),
      NOTES,
      LAST_UPDATE TIMESTAMP WITH TIME ZONE "MM/DD/YYYY HH24:MI:SS.FF9 TZR" NULLIF (LAST_UPDATE="NULL")
    BEGINDATA
    |E2ACF256F01F46A7E0440003BA0F14C2|;|DEMOGRAPHICS|;|A01003|;3;|Demographic results show that 46 percent of visits are made by females.  Among racial and ethnic minorities, the most commonly encountered are Native American (4%) and Hispanic / Latino (2%).  The age distribution shows that the Bitterroot has a relatively small proportion of children under age 16 (14%) in the visiting population.  People over the age of 60 account for about 22% of visits.   Most of the visitation is from the local area.  More than 85% of visits come from people who live within 50 miles.|;07/29/2013 16:09:27.000000000 -06:00
    |E2ACF256F02046A7E0440003BA0F14C2|;|VISIT DESCRIPTION|;|A01003|;3;|Most visits to the Bitterroot are fairly short.  Over half of the visits last less than 3 hours.  The median length of visit to overnight sites is about 43 hours, or about 2 days.  The average Wilderness visit lasts only about 6 hours, although more than half of those visits are shorter than 3 hours long.   Most visits come from people who are fairly frequent visitors.  Over thirty percent are made by people who visit between 40 and 100 times per year.  Another 8 percent of visits are from people who report visiting more than 100 times per year.|;07/29/2013 16:09:27.000000000 -06:00
    |E2ACF256F02146A7E0440003BA0F14C2|;|ACTIVITIES|;|A01003|;3;|The most frequently reported primary activity is hiking/walking (42%), followed by downhill skiing (12%), and hunting (8%).  Over half of the visits report participating in relaxing and viewing scenery.|;07/29/2013 16:09:27.000000000 -06:00
    Here is the full beginning of the loader log, ending after the first row return.  (They ALL say the same error)
    SQL*Loader: Release 10.2.0.4.0 - Production on Thu Aug 22 12:09:07 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Control File:   NRIS.NRN_REPORT_NOTES.ctl
    Data File:      NRIS.NRN_REPORT_NOTES.ctl
      Bad File:     ./NRIS.NRN_REPORT_NOTES.BAD
      Discard File: ./NRIS.NRN_REPORT_NOTES.DSC
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table NRIS.NRN_REPORT_NOTES, loaded from every logical record.
    Insert option in effect for this table: APPEND
       Column Name                  Position   Len  Term Encl Datatype
    NOTES_CN                            FIRST     *   ;  O(|) CHARACTER
    REPORT_GROUP                         NEXT     *   ;  O(|) CHARACTER
    AREACODE                             NEXT     *   ;  O(|) CHARACTER
    ROUND                                NEXT     *   ;  O(|) CHARACTER
        NULL if ROUND = 0X4e554c4c(character 'NULL')
    NOTES                                NEXT     *   ;  O(|) CHARACTER
    LAST_UPDATE                          NEXT     *   ;  O(|) DATETIME MM/DD/YYYY HH24:MI:SS.FF9 TZR
        NULL if LAST_UPDATE = 0X4e554c4c(character 'NULL')
    Record 1: Rejected - Error on table NRIS.NRN_REPORT_NOTES, column NOTES.
    Field in data file exceeds maximum length...
    I am not seeing why this would be failing.

    HI,
    the problem is delimited data defaults to char(255)..... Very helpful I know.....
    what you need to two is tell sqlldr hat the data is longer than this.
    so change notes to notes char(4000) in you control file and it should work.
    cheers,
    harry

  • SQL Loader - Field in data file exceeds maximum length

    Dear All,
    I have a file which has more than 4000 characters in a field and I wish to load the data in a table with field length = 4000. but I receive error as
    Field in data file exceeds maximum lengthThe below given are the scripts and ctl file
    Table creation script:
    CREATE TABLE "TEST_TAB"
        "STR"  VARCHAR2(4000 BYTE),
        "STR2" VARCHAR2(4000 BYTE),
        "STR3" VARCHAR2(4000 BYTE)
      );Control file:
    LOAD DATA
    INFILE 'C:\table_export.txt'
    APPEND INTO TABLE TEST_TAB
    FIELDS TERMINATED BY '|'
    TRAILING NULLCOLS
    ( STR CHAR(4000) "SUBSTR(:STR,1,4000)" ,
    STR2 CHAR(4000) "SUBSTR(:STR2,1,4000)" ,
    STR3 CHAR(4000) "SUBSTR(:STR3,1,4000)"
    )Log:
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon Jul 26 16:06:25 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Control File:   C:\TEST_TAB.CTL
    Data File:      C:\table_export.txt
      Bad File:     C:\TEST_TAB.BAD
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 0
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table TEST_TAB, loaded from every logical record.
    Insert option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect
       Column Name                  Position   Len  Term Encl Datatype
    STR                                 FIRST  4000   |       CHARACTER           
        SQL string for column : "SUBSTR(:STR,1,4000)"
    STR2                                 NEXT  4000   |       CHARACTER           
        SQL string for column : "SUBSTR(:STR2,1,4000)"
    STR3                                 NEXT  4000   |       CHARACTER           
        SQL string for column : "SUBSTR(:STR3,1,4000)"
    value used for ROWS parameter changed from 64 to 21
    Record 1: Rejected - Error on table TEST_TAB, column STR.
    Field in data file exceeds maximum length
    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
    Table TEST_TAB:
      0 Rows successfully loaded.
      1 Row not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                 252126 bytes(21 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             1
    Total logical records rejected:         1
    Total logical records discarded:        0
    Run began on Mon Jul 26 16:06:25 2010
    Run ended on Mon Jul 26 16:06:25 2010
    Elapsed time was:     00:00:00.22
    CPU time was:         00:00:00.15Please suggest a way to get it done.
    Thanks for reading the post!
    *009*

    Hi Toni,
    Thanks for the reply.
    Do you mean this?
    CREATE TABLE "TEST"."TEST_TAB"
        "STR"  VARCHAR2(4001),
        "STR2" VARCHAR2(4001),
        "STR3" VARCHAR2(4001)
      );However this does not work as the error would be:
    Error at Command Line:8 Column:20
    Error report:
    SQL Error: ORA-00910: specified length too long for its datatype
    00910. 00000 -  "specified length too long for its datatype"
    *Cause:    for datatypes CHAR and RAW, the length specified was > 2000;
               otherwise, the length specified was > 4000.
    *Action:   use a shorter length or switch to a datatype permitting a
               longer length such as a VARCHAR2, LONG CHAR, or LONG RAW*009*
    Edited by: 009 on Jul 28, 2010 6:15 AM

  • Ctxload error DRG-11530: token exceeds maximum length

    I downloaded the 11g examples (formerly the companion cd) with the supplied knowledge base (thesauri), unzipped it, installed it, and confirmed that the droldUS.dat file is there. Then I tried to use ctxload to create a default thesaurus, using that file, as per the online documentation. It creates the default thesaurus, but does not load the data, due to the error "DRG-11530: token exceeds maximum length". Apparently one of the terms is too long. But what can I use to edit the file? I tried notepad, but it was too big. I tried wordpad, but it was unreadable. I was able to create a default thesaurus using the much smaller sample thesaurus dr0thsus.txt, so I confirmed that there is nothing wrong with the syntax or privileges. Please see the copy of the run below. Is there a way to edit the droldUS.dat file or a workaround or am I not loading it correctly? Does the .dat file need to be loaded differently than the .txt file?
    CTXSYS@orcl_11g> select banner from v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    CTXSYS@orcl_11g> select count(*) from ctx_thesauri where ths_name = 'DEFAULT'
      2  /
      COUNT(*)
             0
    CTXSYS@orcl_11g> select count(*) from ctx_thes_phrases where thp_thesaurus = 'DE
    FAULT'
      2  /
      COUNT(*)
             0
    CTXSYS@orcl_11g> host ctxload -thes -user ctxsys/ctxsys@orcl -name default -file
    C:\app\Barbara\product\11.1.0\db_1\ctx\data\enlx\droldUS.dat
    Connecting...
    Creating thesaurus default...
    Thesaurus default created...
    Processing...
    DRG-11530: token exceeds maximum length
    Disconnected
    CTXSYS@orcl_11g> connect ctxsys/ctxsys@orcl
    Connected.
    CTXSYS@orcl_11g>
    CTXSYS@orcl_11g> select count(*) from ctx_thesauri where ths_name = 'DEFAULT'
      2  /
      COUNT(*)
             1
    CTXSYS@orcl_11g> select count(*) from ctx_thes_phrases where thp_thesaurus = 'DE
    FAULT'
      2  /
      COUNT(*)
             0
    CTXSYS@orcl_11g> exec ctx_thes.drop_thesaurus ('default')
    PL/SQL procedure successfully completed.
    CTXSYS@orcl_11g> host ctxload -thes -user ctxsys/ctxsys@orcl -name default -file
    C:\app\Barbara\product\11.1.0\db_1\ctx\sample\thes\dr0thsus.txt
    Connecting...
    Creating thesaurus default...
    Thesaurus default created...
    Processing...
    1000 lines processed
    2000 lines processed
    3000 lines processed
    4000 lines processed
    5000 lines processed
    6000 lines processed
    7000 lines processed
    8000 lines processed
    9000 lines processed
    10000 lines processed
    11000 lines processed
    12000 lines processed
    13000 lines processed
    14000 lines processed
    15000 lines processed
    16000 lines processed
    17000 lines processed
    18000 lines processed
    19000 lines processed
    20000 lines processed
    21000 lines processed
    21760 lines processed successfully
    Beginning insert...21760 lines inserted successfully
    Disconnected
    CTXSYS@orcl_11g> select count(*) from ctx_thesauri where ths_name = 'DEFAULT'
      2  /
      COUNT(*)
             1
    CTXSYS@orcl_11g> select count(*) from ctx_thes_phrases where thp_thesaurus = 'DE
    FAULT'
      2  /
      COUNT(*)
          9582
    CTXSYS@orcl_11g>

    Hi Roger,
    Thanks for the response. You are correct. I was confusing the terms thesaurus and knowledge base, which sometimes seem to be used interchangeably or synonymously, but are actually two different things. I read over the various sections of the documentation regarding the supplied knowledge base and supplied thesaurus more carefully and believe I understand now. Apparently, the dr0thsus.txt file that I did ultimately load using ctxload to create a default thesaurus is the supplied thesaurus that is intended to be used to create the default English thesaurus, which supports ctx_thes syn and such. The other droldUS.dat file that I mistakenly tried to load using ctxload is the supplied compiled knowledge base that supports ctx_doc themes and gist and such. In the past I have used ctx_thes.create_thesaurus to create a thesaurus, but using ctxload can also load a thesaurus from a text file with the data in a specified format. Once a thesaurus is loaded using ctxload, it can then be compiled using ctxkbtc to add it to the existing compiled knowledge base. So, the knowledge base is sort of a compilation of thesauri, which is what led to my confusion in terminology. I think I have it all straight in my mind now and hopefully this will help anybody else who searches for the same problem and finds this.
    Thanks,
    Barbara

  • SQL Loader - data exceeds maximum length

    I am having an issue with SQL Loader falsely reporting that a column is too long in a CSV upload file. The offending column, Notes, is defined in the staging table as VARCHAR2(1000). The text in the Notes column in the upload file for the record that is being rejected is only 237 characters long. I examined the raw data file with a hex editor and there are no special cahracters embedded in the column. The CSV upload was recreated but the false error remains.
    Any ideas what to check? Any suggestion appreciated.
    Here are the pertinent files.
    Control File:LOAD DATA
       INFILE 'Mfield_Upl.dat'
       BADFILE 'Mfield_Upl.bad'
       TRUNCATE
       INTO TABLE Mfield_UPL_Staging
       FIELDS TERMINATED BY ',' optionally enclosed by '"'
         ControlNo CHAR,
         PatientID CHAR,
         CollectDate DATE "MM/DD/YYYY",
         TestDate DATE "MM/DD/YYYY",
         AnalyteDesc CHAR,
         Results CHAR,
         HiLoFlag CHAR,
         LoRange CHAR,
         HiRange CHAR,
         UnitOfMeas CHAR,
         Comments CHAR,
         Notes CHAR,
         ClinicalEvent CHAR,
         OwnerLName CHAR,
         OwnerFName CHAR,
         PetName CHAR,
         AssecNo CHAR,
         SpecimenID CHAR
    {code}
    Staging Table:{code}
    CREATE TABLE Mfield_UPL_Staging
        ControlNo      VARCHAR2(20),
        PatientID      VARCHAR2(9),
        CollectDate    DATE,
        TestDate       DATE,
        AnalyteDesc    VARCHAR2(100),
        Results        VARCHAR2(100),
        HiLoFlag       CHAR(10),
        LoRange        VARCHAR2(15),
        HIRange        VARCHAR2(15),
        UnitOfMeas     VARCHAR2(25),
        Comments       VARCHAR2(100),
        Notes          VARCHAR2(1000),
        ClinicalEvent  VARCHAR2(20),
        OwnerLName     VARCHAR(50),
        OwnerFName     VARCHAR(50),
        PetName        VARCHAR(50),
        AssecNo        NUMBER(10),
        SpecimenID     NUMBER(10)
    {Code}
    Error Log File:{code}
    SQL*Loader: Release 9.2.0.1.0 - Production on Wed Aug 11 08:22:58 2010
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Control File:   Mfield_UPL_CSV.ctl
    Data File:      Mfield_UPL.dat
      Bad File:     Mfield_Upl.bad
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table MFIELD_UPL_STAGING, loaded from every logical record.
    Insert option in effect for this table: TRUNCATE
       Column Name                  Position   Len  Term Encl Datatype
    CONTROLNO                           FIRST     *   ,  O(") CHARACTER           
    PATIENTID                            NEXT     *   ,  O(") CHARACTER           
    COLLECTDATE                          NEXT     *   ,  O(") DATE MM/DD/YYYY     
    TESTDATE                             NEXT     *   ,  O(") DATE MM/DD/YYYY     
    ANALYTEDESC                          NEXT     *   ,  O(") CHARACTER           
    RESULTS                              NEXT     *   ,  O(") CHARACTER           
    HILOFLAG                             NEXT     *   ,  O(") CHARACTER           
    LORANGE                              NEXT     *   ,  O(") CHARACTER           
    HIRANGE                              NEXT     *   ,  O(") CHARACTER           
    UNITOFMEAS                           NEXT     *   ,  O(") CHARACTER           
    COMMENTS                             NEXT     *   ,  O(") CHARACTER           
    NOTES                                NEXT     *   ,  O(") CHARACTER           
    CLINICALEVENT                        NEXT     *   ,  O(") CHARACTER           
    OWNERLNAME                           NEXT     *   ,  O(") CHARACTER           
    OWNERFNAME                           NEXT     *   ,  O(") CHARACTER           
    PETNAME                              NEXT     *   ,  O(") CHARACTER           
    ASSECNO                              NEXT     *   ,  O(") CHARACTER           
    SPECIMENID                           NEXT     *   ,  O(") CHARACTER           
    Record 1042: Rejected - Error on table MFIELD_UPL_STAGING, column NOTES.
    Field in data file exceeds maximum length
    Table MFIELD_UPL_STAGING:
      3777 Rows successfully loaded.
      1 Row not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Try:
    -- Etc ...
      Notes CHAR(1000),
    -- Etc ...SQL*Loader limits string buffer to 256 unless specified different.
    :p

  • ORA-30951: ...exceeds maximum length

    Oracle Database 10g Release 10.2.0.1.0 - Production
    I am new to XML and having a problem importing data using the XML Repository. I have annotated the schema and validated it using XML Spy. I am able to register the schema w/o errors. I am now working through the issues as they occur during the insertion of xml documents. Thes section below is giving me an error (bottom) that the data exceeds the maximum length. The "DATA" in the xml doc is a pdf file that has been converted to characters by some method. The size element has a data value of 5008. Seems to be too long for a varchar2. I tried RAW, CLOB, BLOB. I was pretty sure they wouldn't work and they didn't. I get an error that the xml/xdb types are incompatible.
    How can I modify the schema to get this element to load?
    Is it possible to tell oracle to ignore an element so I can eliminate those that are not critical? This would be very helpful.
    Thanks!
    Schema -
    <xs:element name="NpdbReportList" minOccurs="0">
    <xs:complexType>
    <xs:sequence maxOccurs="unbounded">
    <xs:element name="NpdbReport" minOccurs="0">
    <xs:complexType>
    <xs:all minOccurs="0">
    <xs:element name="DCN" minOccurs="0"/>
    <xs:element name="DateReport" type="Date" minOccurs="0"/>
    <xs:element name="ReportType" type="IdRef" minOccurs="0"/>
    <xs:element ref="LOB" minOccurs="0"/>
    </xs:all>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:complexType name="LOB" xdb:SQLType="LOB_T"xdb:maintainDOM="false">
    <xs:all>
         <xs:element name="Type" type="IdRef"/>
         <xs:element name="Size"/>
         <xs:element name="Data" xdb:maintainDOM="false" xdb:SQLName="LOB_DATA" xdb:SQLType="VARCHAR2"/>
    </xs:all>
    </xs:complexType>
    ftp> mput *
    mput Smyth_Steven_1386367.XML? y
    227 Entering Passive Mode (127,0,0,1,83,221)
    150 ASCII Data Connection
    550- Error Response
    ORA-30951: Element or attribute at Xpath /Provider/NpdbReportList/NpdbReport[1]/LOB/Data exceeds maximum length
    550 End Error Response
    28706 bytes sent in 0.014 seconds (1.9e+03 Kbytes/s)
    ftp>

    Thanks for your time Marco.
    Here is the header:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSpy v2010 rel. 2 (http://www.altova.com) by Joe (DSI) -->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" attributeFormDefault="unqualified" xdb:storeVarrayAsTable="true" xdb:mapStringToNCHAR="true" xdb:mapUnboundedStringToLob="true">
    I made the following change -
    <xs:element name="Data" xdb:maintainDOM="false" xdb:SQLName="LOB_DATA" xdb:SQLType="CLOB"/>
    I received this error -
    ORA-31094: incompatible SQL type "CLOB" for attribute or element "Data"
    ORA-06512: at "XML_TEST.XML_TEST_SCHEMA_REGISTER", line 48
    I did a little more testing after the first post. I used the same type as an element that is defining image data.
    <xs:element name="Data" type="xs:base64Binary" xdb:maintainDOM="false" xdb:SQLName="LOB_DATA" xdb:SQLType="BLOB"/>
    While this did register and I was able to load a record, I am guessing that this will render the data for this element usless but at least the record loads. I'll still need to resolve this issue as the .pdf data is important.
    Thanks
    Joe

  • Insert query into workbook

    Hi experts,
    when i try to insert query into a workbook i get the following error message
    <internal error> Receiving from the BW server failed BW server raised exception: SYSTEM_FAILURE Do you want to see more information?
    when i click yes i get
    No roll storage space of length 3600 available for OCCURS area.
    Further the error reads
    Error Gruop
    RFC_ERROR_SYSTEM_FAILURE
    Message
    No roll storage space of length 3600 available for OCCURS area.
    I would appreciate if someone could give me a quick way to reslove this issue..
    Thnaks
    DAVE

    Thanks Abdul,
    May i know why this error occurs??
    thanks
    Dave

  • Maximum length property check works fine in 10g, but after upgrade the check is not performed

    Recently we upgraded our oracle forms from 10g to 11gR2.
    one of the text item has maximum length property defined as 3 (data type is number and format mask is 009). In 10g, in ENTER-QUERY mode, maximum length property check was happening, and user was not allowed to enter more than 3 digits. once the form is upgraded to 11g, in same mode no check is happening. I am aware that in ENTER-QUERY mode, lot of validation won't happen. But client don't want to know all details. He want it to work as it works in 10g. Any help will be appreciated.
    Thanks.

    Recently we upgraded our oracle forms from 10g to 11gR2.
    one of the text item has maximum length property defined as 3 (data type is number and format mask is 009). In 10g, in ENTER-QUERY mode, maximum length property check was happening, and user was not allowed to enter more than 3 digits. once the form is upgraded to 11g, in same mode no check is happening. I am aware that in ENTER-QUERY mode, lot of validation won't happen. But client don't want to know all details. He want it to work as it works in 10g. Any help will be appreciated.
    Thanks.

  • Ora-06502: variable length too long on report query xml schema download

    on shared components/report queries/edit report query/
    and downloading my queries in xml schema format (radio button).
    Get
    ORA-06502: PL/SQL: numeric or value error: raw variable length too long
    when i click the download button.
    EDIT:
    i want to add that i recently changed several columns in the database from 150 to 3000 chars long.
    Edited by: Manny Rodriguez on Oct 11, 2011 7:19 AM

    "4000 bytes is the ultimate maximum. you can say 4000 *characters* , but it'll always be limited to 4000 *bytes* . "
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1224836384599#201073000346459201\
    "The maximum length of the column is determined by the national character set definition. Width specifications of character data type NVARCHAR2 refer to the number of characters. The maximum column size allowed is 4000 bytes."
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements001.htm#SQLRF50976
    By the way, you're treating your numbers as STRINGS, remove the quotes around your zero's.

  • SQL*Loader Error Field in data file exceeds maximum length", version 8.1.6

    Hi All,
    I am trying to load a data file into a database table using SQL loader. I
    received the data in an data file but I saved it as a pipe delimited
    file.
    When I run the SQL Loader command no records are loaded - looking at the log
    file I get the following error:
    Rejected - Error on table FARESDATA, column FANOTESIN.
    Then I tried with substr and doesnt seem to work for values greater than 4000 chars, it only works if the field value is below 4000 chars (say doing a substr for first 3000 chars).
    see the code--------
    LOAD DATA
    INFILE 'p.dat'
    APPEND INTO TABLE PROSPECTUS
    FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    Fanotesin char(4000) "substr(:fanotesin,1,4000)"
    We get the error ORA-01461: can bind a LONG value only for insert into a LONG column when using substr for 4000 chars.
    Please help!
    Thanks,
    Rajesh
    null

    I believe the problem here is that the ORACLE database regards anything > 4000chs as a CLOB (or LONG). 4000 is the maximum length of a varchar2 field in the database, although of course you can declare larger values in PL/SQL. (Since the incoming data is > 4000 chs it is regarded as a LONG and you cannot therefore use SUBSTR on it)
    I think that you must either truncate your data before loading or load into a table with the offending field as a CLOB (or LONG)
    and then use PL/SQL to recreate it in a table with a varchar2(4000) which is otherwise identical. (You can select from a LONG into a varchar2(32000) for example and then truncate before writing out to the new table).

  • Maximum length of URL for RRI

    Hi all,
    I am trying to create a URL as a receiver for a BI Query. It appears to be truncating my URL. Is there a maximum length for a URL in RRI?
    The URL I'm trying to use is http://##.##.##.###/xxxxRegistryDemo/Report.jsp?r=aGFsdG9ufmhhbHRvbn5FbnRpdHkgRGV0YWls&o=
    I added the # and the x's to the URL for display purposes.
    Thanks,
    Morag

    There should not be any restrictions, the RSBBSQUERY table URL field is defined as STRING type.

Maybe you are looking for

  • Problems with codepage after refreshing data from XML

    Hello, I've created a dashboard with XML connection. XML file with new data is created via macro in INPUT.xls Excel file. This INPUT.xls file was created through exporting spreadsheet from Xcelsius and then adding a macro to it, so text data should b

  • It wont sync and it wont restore

    What do I do? I plug the iPod in to sync and it says its updating the files but keeps coming up with: "The specified I/O operation on \Device\Harddisk5\DR10 was not completed before the time out period - cancel - try again - continue" I continue, and

  • Decrypt errors issue

    Hi everybody, I got this trap massage on WLC. The client failed to communicate, it was still associated wiht WLC though. the trap massage log is blow "Decrypt errors occurred for client 00:40:96:ae:38:fe using unknown key on 802.11a interface of AP 0

  • I just purchased an ATC for my wife for Xmas, and she wants to use it for file sharing.  Help??

    From an external location (over the interent).........not at home on............Is this doable?  Please let me know!!! Thanks for any help.

  • Two modifiable invoice output types to be generated

    Hi experts, One of my customer has requested us that he need modifiable output types. the first invoice will be like a normal one which he want to keep it for company internal purpose and posting to FI will be done on that basis. the second invoice i