SELECT_LIST_FROM_QUERY max query length

Is there a max query length for SELECT_LIST_FROM_QUERY?
I have the basis of a list working OK but when I tried to make the query more complex to meet the business requirement I am getting a
ORA-06550: line 1, column 845: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ;
I have tried to ensure that I have all the quotes strings working and the like.
Thanks
Mark

Mark,
How long is your query? The SELECT_LIST_FROM_QUERY function accepts the query as a varchar2, so it’s "limited" to 32767 characters.
Regards,
Marc

Similar Messages

  • How to retreive the max data length of a column

    Hello All,
    I know how to do a select to get the max data length of a column it is this :
    SELECT MAX(LENGTH(COLUMN_NAME) FROM table.
    However, I need this information combined with my SQL that returns the Data_type and length from the USER_TAB_COLUMNS. So taking the emp example if the ename column was 50 as VARCHAR2 but the max data entered in it was just 20 I want the information like this:
    SELECT COLUMN_NAME, DATA_LENGTH, and the Max length of 20
    FROM USER_TAB_COLUMNS WHERE TABLE_NAME='EMP';
    I don't know how to get the Max Length of the Column in this table. Can anyone suggest me a hint? An Inline view maybe?
    Thanks

    Still not sure about your requirements, but how about this
    SQL> CREATE OR REPLACE FUNCTION get_max_length(p_table in varchar2, p_col in varchar2) return pls_integer
      2  is
      3    v_cnt pls_integer;
      4  begin
      5    execute immediate 'select max(length('||p_col||')) from '||p_table into v_cnt;
      6    return v_cnt;
      7  end get_max_length;
      8  /
    Function created.
    SQL>
    SQL> SELECT COLUMN_NAME,
      2         DATA_LENGTH,
      3         get_max_length(TABLE_NAME, COLUMN_NAME) max_length
      4  FROM USER_TAB_COLUMNS
      5  WHERE TABLE_NAME='EMP'
      6  AND DATA_TYPE like '%CHAR%'
      7  ;
    COLUMN_NAME                    DATA_LENGTH MAX_LENGTH
    ENAME                                   10          6
    JOB                                      9          9
    SQL>

  • Token longer than max allowable length of 258 chars

    Hi all,
    i tried to apply a sql case statement in sql loader control file in " " the load succeed with 258 chars case or decode statement but when i add more cases it return
    sql loader 350 token longer than max
    LOAD DATA
    INFILE 'F:\Vou\vou20110613_102_951454.unl'
    BADFILE 'F:\Vou\vou.pad'
    DISCARDFILE 'F:\Vou\vou.dic'
    replace
    INTO TABLE vou_test_2
    FIELDS TERMINATED BY '|'
    TRAILING NULLCOLS
    (SERIALNO,TIMESTAMP "to_date(:TIMESTAMP,'yy/mm/dd hh24:mi:ss')",BRANDID,SUBCOSID,CHARGINGPARTYNUMBER,PAYTYPE,VOUCHERPINNUMBER,VOUCHERBATCHNUMBER,VOUCHERSEQUENCE,VOUCHERCOSID,VOUCHERSPID,CARDFACEVALUE,CARDVALUEADDED,CARDVALIDITYADDED,TRADETIME "to_date(:TRADETIME,'yy/mm/dd hh24:mi:ss')",OPERATEDBY,THIRDPARTYNUMBER,ACCESSMETHOD,TRADETYPE,RECHARGEAREANUMBER,TRANSITIONID,VOUCHERENCRYPTNUMBER,Location_Number,RESERVED2,RESERVED3,PRODUCTID,SERVICETYPE,OLDUSERSATE,CURRENTUSERSATE,PREVIOUSACTIVESTOP "to_date(:PREVIOUSACTIVESTOP,'yy/mm/dd hh24:mi:ss')",NEWACTIVESTOP "to_date(:NEWACTIVESTOP,'yy/mm/dd hh24:mi:ss')",SUSPENDSTOP "to_date(:SUSPENDSTOP,'yy/mm/dd hh24:mi:ss')",DISABLESTOP "to_date(:DISABLESTOP,'yy/mm/dd hh24:mi:ss')",VALIDITYADDED,REWARDCYCLES,REBATEPRODUCTID,BILLCYCLEID,SUBSCRIBERID,RESERVED4,RESULTCODE,ACCOUNTID,RECHARGETAX,RECHARGEPENALTY,CURRENCYCODE,RESERVED5,PREPAIDBALANCEBEFORE,RECHARGEFORPREPAID,PREPAIDBALANCE,POSTPAIDBALANCEBEFORE,RECHARGEFORPOSTPAID,POSTPAIDBALANCE,ACCOUNTTYPE1,REWARDAMOUNT1,CURRENTACCTAMOUNT1,ACCOUNTTYPE2,REWARDAMOUNT2,CURRENTACCTAMOUNT2,ACCOUNTTYPE3,REWARDAMOUNT3,CURRENTACCTAMOUNT3,ACCOUNTTYPE4,REWARDAMOUNT4,
    CURRENTACCTAMOUNT4,ACCOUNTTYPE5,REWARDAMOUNT5,CURRENTACCTAMOUNT5,ACCOUNTTYPE6,REWARDAMOUNT6,CURRENTACCTAMOUNT6,ACCOUNTTYPE7,REWARDAMOUNT7
    ,CURRENTACCTAMOUNT7,ACCOUNTTYPE8,REWARDAMOUNT8,CURRENTACCTAMOUNT8,ACCOUNTTYPE9,REWARDAMOUNT9,CURRENTACCTAMOUNT9,ACCOUNTTYPE10,REWARDAMOUNT10,
    CURRENTACCTAMOUNT10,BONUSVALIDITY1,BONUSVALIDITY2,BONUSVALIDITY3,BONUSVALIDITY4,BONUSVALIDITY5,BONUSVALIDITY6,BONUSVALIDITY7,BONUSVALIDITY8,
    BONUSVALIDITY9,BONUSVALIDITY10,PREVIOUSSUSPENDSTOP "to_date(:PREVIOUSSUSPENDSTOP,'yy/mm/dd hh24:mi:ss')",
    PREVIOUSDISABLESTOP "to_date(:PREVIOUSDISABLESTOP,'yy/mm/dd hh24:mi:ss')",AGENTNAME,ADDTIONALINFO,FILE_TIME,FILE_NAME,
    ODATE "SYSDATE",ACCOUNT_2001 "CASE WHEN:ACCOUNTTYPE1='2001'THEN :REWARDAMOUNT1 WHEN :ACCOUNTTYPE2='2001' THEN :REWARDAMOUNT2
    WHEN :ACCOUNTTYPE3='2001' THEN :REWARDAMOUNT3
    WHEN :ACCOUNTTYPE4='2001' THEN :REWARDAMOUNT4
    WHEN :ACCOUNTTYPE5='2001' THEN :REWARDAMOUNT5 END")
    the above one succeed when i edit the case statement as follow
    ACCOUNT_2001 "CASE WHEN:ACCOUNTTYPE1='2001'THEN :REWARDAMOUNT1 WHEN :ACCOUNTTYPE2='2001' THEN :REWARDAMOUNT2
    WHEN :ACCOUNTTYPE3='2001' THEN :REWARDAMOUNT3
    WHEN :ACCOUNTTYPE4='2001' THEN :REWARDAMOUNT4
    WHEN :ACCOUNTTYPE5='2001' THEN :REWARDAMOUNT5
    WHEN :ACCOUNTTYPE6='2001' THEN :REWARDAMOUNT6
    WHEN :ACCOUNTTYPE7='2001' THEN :REWARDAMOUNT7
    WHEN :ACCOUNTTYPE8='2001' THEN :REWARDAMOUNT8
    WHEN :ACCOUNTTYPE9='2001' THEN :REWARDAMOUNT9
    WHEN :ACCOUNTTYPE10='2001' THEN :REWARDAMOUNT10 END"
    i got the Error sql loader 350 token longer than max allowable length of 258 chars .
    note : i cant modify the table structure to shorten the column names .
    please help me ....
    thanlks
    Edited by: user7998081 on Jun 23, 2011 3:24 AM

    Ron Gittleman (guest) wrote:
    : In migrating a Sybase 11 database to Oracle 8.0.5, there's a
    : step toward the end of the data-moving endeavor in which a
    script
    : called genctl.scr is executed. This creates control files for
    : 'sqlload'. For one-third or so of the source tables (.dat
    files)
    : sqlload complains about the control file:
    : SQL*Loader-350: Syntax error at line 20.
    : Token longer than max allowable length of 258 chars
    : in_paid_period,15,6)

  • Max Query Count setting

    Hello colleagues,
    Probably you many know there is Max Query Count setting in MII.
    Does any of you experience performance concerns by dealing with large number of query count?  or does any of you have a recommendation for how to set max query count, e.g. not exceeding memory size to avoid memory swapping? 
    my customer want to increase this max count due to fluctuating record count.  but they have concerns on such disadvantage in performance.
    any of your experiences are welcome.  Thank you,
    Shiroh Kinoshita, SAP Japan

    Shiroh,
    Good to hear from you.
    All queries have the RowCount setting, but we typically discourage people from just setting it to a high number.  In some cases the data servers will limit this number to a max (something like 250000) but that doesn't mean that from a memory standpoint, or a customer patience level (especially in the browser) would ever get to that number of records.
    Where is it that you are seeing the record count fluctuate, applets in the browser, query actions in a transaction?
    What is it that makes the customer want to increase this to a high number?
    Regards,
    Jeremy

  • What is the max. cable length that the Differential TTL signals can run in both at high and low frequencies?

    Hello,
                I want to now the max. cable length that the Differential TTL signals can run in both at high and low frequencies.

    That is very dependant on the type of cable, its construction, and inherent impedance and capacitance. This may be of use:
    http://beiied.com/PDFs2/SSI_14-15-bit-encoder_addendum.pdf
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Max track length

    I'm working on Garageband 5.1 on my macbook pro
    After getting through over 5 hours of editing an audio book I find that GB5.1 limits the length of a track to something like 5 hours 33 mins! I still have another couple of hours to add to my file.
    Having read around I can see that reducing the BPM will allow a longer file length, so I have done that - only to find that all my editing is spread out with seconds of dead-air in between the segments of audio.
    1. Is there a way to increase the max track length other than changing the BPM?
    2. If I have to increase the BPM how can I stop it knackering my editing?
    Hope someone can help!

    If it's like a book, say 25 chapters, can you not just make it 25 tracks? then you could save each chapter separately and put them in iTunes as Chapter 1, 2, 3... etc.

  • ACE - MAX PARSE LENGTH

    Hi,
    Recently, we have tried to migrate one of the web services that is fronted by the Cisco ACE 4710 and we observed that some of the HTTP packets were dropped by the ACE 4710 as the maximum parse length (e.g. HTTP header) exceeded the default length of 4096 bytes.
    We’ve resolved the issues by configuring a HTTP parameter to accept HTTP packets with parse length exceeding 4096 bytes.
    Sample of configuration
    parameter-map type http http_parameter_map
      case-insensitive
      persistence-rebalance
      set header-maxparse-length 8192
      set content-maxparse-length 9192
      length-exceed continue
    Does anyone know what is the recommended parse length to be configured on the Cisco ACE 4710 and are there any security or performance implications to configure the load balancer to accept HTTP packets that exceed the maximum parse length?

    Hi Dave,
    By default the max parse length as you know is 4096. If ACE has to look in for a cookie or something else in header beyond that then you need to increase the parse length accordingly. Maximum you can set is 65535. If the traffic still gets dropped and you see increase in dropped counter due to max parse length exceeded, then you can configure length-exceed continue which i see you have already done.
    Regards,
    Kanwal

  • Max field length

    HI Experts,
                        In SAP normally max field length is 255 characters.....but if i want to store 1000 character string into my field how can i do this..
    any ideas..
    Thanks
    PT

    Hi,
    We can store in another way.
    By creating table with the fields as in the structure 'TLINE'.
    Two fields are there, one is for Line format and another one for Line Content.
    In SAPscript, this is the concept used.
    Using function module 'CONVERT_ITF_TO_ASCII', you will get your original text.
    Regards,
    R.Nagarajan.

  • Max line and Max line length restriction in FTP

    Hi all,
    We are using a FTP adapter in our BPEL service to read the input files from a FTP server location.
    Our service fails when the input file has more than 99 lines or if the length of the line exceeds 9 characters.
    i.e:
    Max allowed characters in a line (Max line length) is 9
    Max allowed lines in the file is 99
    If the above limit is exceeded we get the error saying that the FTP authentication failed or permission denied error.
    Do we need to set the Max line length and Max line parameters anywhere in weblogic console or in JCA properties.
    Kindly help us resolve the issue. Thanks in advance.
    Regards,
    Balaji R

    We do not have any schema for the file data since we are reading the file content as attachment.

  • Max column length

    I will like to find out what is the MAX column length for nchar and nvarchar types using AL16UTF16.
    As per the metalink article 'Examples and limits of BYTE and CHAR semantics usage' it is 1000 and 2000 for 2 bytes characters. But in Al16UTF16, characters can also take up to 4 bytes. So does that change the max limits.
    Also what is MAX length for a Clob and NClob type

    in Al16UTF16, characters can also take up to 4 bytes. No. One character (code point) is represented in 2 bytes. However, some characters are mapped to surrogate pair of code points, as pointed out by the Note "In AL16UTF16 this will use 2 UTF16 codepoints and so occupy 4 bytes.".
    So the limits noted still applies. If you have logical characters mapped to more than one code point, more space will of course be required for storage.

  • Max Row Length

    I have a 9.2 instance and I was wondering if there was a max row length in my tables.

    Do you happen to have a small-ish test case the reproduces the problem? I can pretty much guarantee you that the database itself doesn't limit the size of the row, but I'm hard-pressed to imagine a cause for this sort of problem in the application stack.
    For sanity, you might try applying the latest patchsets to your client and server to see whether that magically fixes something.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Max cable lengths for voice links

    Hello everybody,
    I would like to get an info on max. cable lenghts for FXS, ISDN BRI (only p-t-p config) and ISDN PRI connections between PABX and Cisco VoIP gateway, especially that regardig ISDN. I have info from some standard. spec, but want to know the Cisco environment. I didn't find anything useful on CCO..
    Thank you very much for your valuable and prompt help.
    Peter

    Hi,
    thanks for that. I've seen a document on the VWIC-MFT-E1 that states the max cable length is approx 600m.
    http://www.cisco.com/en/US/products/hw/routers/ps274/products_tech_note09186a00800b6e0f.shtml
    Where did you get the 200m from? do you have a reference doc you could point me at?
    Stuart

  • Max Settings Length

    Hi. I found a duplicate question via Google - Plumtree Settings - Max Size Limits - but it never got answered. Can someone please let me know what the max length allowed is for an admin setting? Is there a max, combined length for all settings for a portlet?
    Thanks.
    Edited by: 926435 on Apr 9, 2012 12:32 PM

    I do not understand your question... The topic you are refering to is about plumtree while this is the WebCenter forum.
    Are you having issues with portlets in webCenter or plumtree?
    What exactly is the use case? Are you asking how long a specific value for a portlet preference can be? For WebCenter I don't think this is an issue because the values are posted and not passed on the request URL.

  • Max Character Length for Text Variables

    Hi folks,
    Quick question:
    Does OPA have a max character length for text variables?
    -Isamu

    Obviously common sense prevails here. The system is unlikely to perform very well if you start passing around MBs of data in text variables!

  • Max customized query length

    Hi all,
    anyone knows if it's possible to extend the maximum length (it seems to be 210 chars) of the data-block mask for customized query? I mean that mask Forms displays when, in enter-query mode, you use '&' to insert particular query conditions.
    Thanks,
    Marco

    I'm not sure.
    But one option is to build this mechanism on your own. Just popup a window to get the where clause and then use set_block_property(default_where) to attach it to the block.

Maybe you are looking for

  • Document access via WAN in portal

    Hi, I have the following problem. I have installed portal with KM in place A and some users are in place B. Both places are connected via WAN (1Mbit/s). Users in place B have some documents stored in there LAN so they can access them relatively quick

  • How to fetch Comments field of company instruction of PA30 TCode

    I need to display comments field of PA30 TCode of company instruction in infoset. It is a cluster table RP50M field (TEXT1) . Kindly help me to get this field in infoset which is based on logical database PNPCE.

  • How to change the date format in Sharepoint 2010 to dd MMM yyyy

    Hi, I am looking to change the datetime format with in the modified column from mm/dd/yy to dd MMM yyyy. I dont want to create calculated field with dd MMM yyyy format. I want the actual modified column value to be represented as dd MMM yyyy format.

  • Encore Skipping Chapter Markers

    I am working in Encore 2.0 in the final phase of the project. I've used this program many times before with little to no problems. Whenever I go to test the final DVD, both Encore and my DVD player will skip 3 of the 9 chapters on the menu. I have do

  • Blocked email. Why is email blocked from my client that didn't used to be?

    My client and I used to be able to email but all of a sudden her emails are blocked from coming in. The response she receives is: "email from {edited for privacy} is blocked by Verizon and the email "SENDER" or email service provider needs to request