Select text from all_views returns an empty string

My application allows the user to select between the Data Provider for ODBC and the Data Provider for Oracle. (ODP)
When using the ODBC provider the statement:
Select text from all_views where view_name='MYVIEW'
returns the expected string.
If I connect via ODP however it returns an empty string.
(If I use 'Select *' it tells me the text_length is 154 in this specific case - so there is definately text available.)
I'm thinking it has something to do with the fact that the data type is LONG.
In both cases I retreive the data using rdr.GetChars(), which should work.
If I use the dbms_metadata.get_ddl function instead, it does return the string (Probably because the return type is not LONG)
Unfortunately that function only works for Views in the current schema, while the original Select works for any view.
(And I dont know what version of Oracle this function was added in - I have to support older versions too.)
Similarly, if I use one of the XML functions to retreive the text as XML it works fine.
(Again it is probably returned as a VARCHAR2 instead of a LONG.)
The strange thing is that when I created my own table containing a LONG column I was able to load and retreive data without any problems.
The problem appears to be specific to this column in all_views.
Anyone know a solution to this?
Thanks
Mike

Thanks that was it.
I had not seen those properties since I am working with the 'generic' objects (DbCommand rather than OracleCommand, etc.)
What is strange is that I was able to retreive data from my own LONG column WITHOUT setting this value to -1.
(It defaulted to 0 in both cases.)
The only difference was that when I retreived data from my own column I specified CommandBehaviour.SequentialAccess.
When I retreived the all_views.text column I did not specify a behaviour at all.
However the Oracle docs said that SequentialAccess is not supported ... so I guess that is not correct.
(Maybe it doesn't 'work', but it certainly seems to cause things to work differently)
Thanks
Mike

Similar Messages

  • Using browser javascript to copy selected text from a pdf file opened in Air app.

    I have posted this question on reader forum as well, but I think it is more suited here...
    I am trying to create a note-taking application in air. I want to extract selected text from pdf file as a string object or to the clipboard.
    Obviously, all pdfs in my local storage will not be scripted to recieve postMessages and act accordingly, and that is not practical either. So, my problem is, how can I copy the selected text in the pdf file (opened as an object in htmlloader within my Air app) to clipboard or directly in another control by say clicking a button in air application? I suppose, this is possible using javascript, however, I don't know which reader methods are exposed to the wrapper htmlloader control. In short, I want to execute app.execMenuItem("Copy") command through htmlloader javascript. Any alternate solutions are also welcome.
    This is similar to passing inbuilt commands/methods/functions (of adobe reader) to pdf-reader plugin embedded in a webpage via javascript. This is possible in IE where the pdf is rendered as activex object, and hence JSObject interface of pdf document/reader is accessible to the browser javascript. I have also read that this same JSObject is accessible to VB as interface for IAC, so as the Air is Adobe's own product, I was wondering if equivalent of JSObject is accessible to htmlloader control as well.
    Thanks in advance...
    Mits

    Thank you Thom for your reply...
    from
    http://www.adobe.com/devnet/acrobat/javascript.html
    ...Through JavaScript extensions, the viewer application and its plug-ins expose much of their functionality to document authors, form designers, and plug-in developers...
    As it is explicitly mentioned, that the functionality of adobe reader are exposed for plugin development, I thought someone here might have used external javascript to execute some safe methods in adobe reader. The functionality (i.e. external javascript interface-JSObject) is already available for VB programmers to develop IAC. Further, the Acrobat SDK example called "AcroPDFinHML" shows how one can embed a pdf-reader in a html page and execute some safe methods (like gotonextpage(), zooming etc.) in IE as ActiveX plugin. I have checked it myself for adobe reader 9, and it works perfectly, so there is no security issue as such to implement the same for another browser (like in my case, the htmlloader control in flex/air app).
    I intend to create a note taking application in air, where it is very much required that I should be able to copy selected text from various pdf documents, that are open in my app, and subsequently paste/collect/save the collected notes and process them afterwords (offcourse, from the pdfs that allow me copying text). However, it is not happening for me here. As the pdfs are opened through adobe reader plugin, it does not register the copy command executed by my air app. It registers the system level copy command (by keyboard shortcut Ctrl+C), but my air app has no way to execute the system level copy command programmatically. So I am kind of stuck here...
    Thanks again for your reply. Having known what am I intend to accomplish, any other (may be alternative) solutions will be appreciated nonetheless...
    Mits

  • What happens when a OUT parameter of a web-service returns an empty string

    Hi,
    Any idea on how to deal with the situation when a web-service returns an empty string
    I get the following System Exception:-
    Caused by: java.lang.AssertionError: Attempt to set empty javaType to ticketResponse(out,0) :: fuego.type.FuegoClass$LazyRef@6770f2. It must be null or a valid java type.
    It therefore either expects a null value or a valid java type...
    Since it goes into a system exception, the activity is not completed and nothing is inserted into the web-service..
    How do we resolve this error inside of BPM?

    Thanks Ben for your replies.
    Before I attempt changing a VI that was written by a client and make a total mess of it, there's something I'd like to point out.
    I tried the re-entrant VI approach and that didn't go any further than the VIT approach, and probably for the same reason(s).
    The interesting part is that (with the VIT approach) the same VIT is called by another process and it works fine.  It is just for the process that has it appear within 2 sub-panels.  So the issue is related to having either having two instances spawn at once of the same VIT or it is related to the sub-panels.  I think it is the two instances (or copies of the VIT) that causes LV to caugh...
    So you are trying to tell me that the above description is accurate and it is because of the private methods...??...
    How would I "wrap" those private methods into public ones?  The seems to be a piece of this puzzle that I am not yet grasping..
    Thanks for your patience and help.
    RayR

  • How do I select text from multiple pdf pages using Microsoft Document Imaging

    Hello.  I have scanned 3 pages and saved to pdf, now in Microsoft Document Imaging I can only select text from the first page and cannot select text from the other 2 pages.  Is there a way to select multiple pages?
    Thank you.
    Cat

    Why don't you ask in a MS forum? This forum is for an Adobe product and I have no idea why you are asking about Microsoft Document Imaging here.

  • Drag n Drop selected Text from Safari, chrome not working on indesign CC

    In CS6 If we drag drop any selected text from any app on layout it work but in indesign cc it is working only with some app like TextEdit, notes etc. I knew that very few people have such use case but same is also not working from one of my cocoa app.
    while  debugging if i drop content from TextEdit and Notes app on some sample app I found that TextEdit & Notes App registered for this Extra Pasteboard type "com.adobe.indesign-import-ustl" and "com.adobe.indesign-import-styl" where as chrome and safari are not. similarly my app is registered only for "NSPasteboardTypeString" type. Is this is the limitation or bug of indesign?

    Similar bug(#3710667) was exist in CC before 9.2.2 update as you can see in release notes of 9.2.2(CC last update) here. before fix simple selected text drag & drop did not work from any application except TextEdit .I have also spent hours before this update to find out bug I used ClipBoardViewer sample App to find out current Drop flavour and its content it may help you and before fix I find some workAround first is add flavour in your drop which Indesign understand even if you are not adding any data for that flavour so that you start receiving couldAcceptType() and under this call parse your actual data from PasteBoard and remove all data from pasteBoard so that another next helper will not consume it. as you mention even after adding text flavour your couldAcceptType() not hit so may be this WorkAround not work for you but it worked for me.
    second is just a finding  i.e before doing drag and drop on indesign create one new document (from Indesign UI not programmatically ) save it on disk close it and reopen it after it every drag & drop will start working work .

  • Rename selection text from standard screen

    Hi expert,
    I want to change selection text in standard screen.
    (i.e "Business Area" in AS02 become "Unit Area")
    The only I know if that is a custom program, I can rename the selection text by GoTo--> Text Element --> Selection Text Menu.
    But when I open Selection Text from Standard Program, there is a warning "Untranslated texts from master language DE will also be displayed"
    and when I continue, the list of selection text is BLANK.
    If I change it from Data Element, It will impact the Standard Screen that use that Data Element. I only want to change for AS02.
    How can I rename it?
    Thanks,
    Andreyus

    check this [click here|http://help.sap.com/saphelp_nw70/helpdata/en/e3/960a0beb0711d194d100a0c94260a5/content.htm]
    [click here 2 |MCVE (QM LIMS) - Rename of Selection Criteria options;
    or
    from SO10 --
                         utilities --
                                          copy from client.
    give source and target name of text.
    here in target name you suppose to give some z name there and finally execute.
    [ref|MCVE (QM LIMS) - Rename of Selection Criteria options;
    Edited by: koolspy on Jul 13, 2011 3:55 PM
    Edited by: koolspy on Jul 13, 2011 3:56 PM

  • How to select text from a webpage

    hi. i have firefox for my n900. i would like to know how to select some text from a webpage so i can copy and paste it. thanks for the help. i couldn't it anywhere.

    First tap where you want the selection to start. (It might help to zoom in as far as possible first. You can do this using the volume buttons in the newly-released Firefox 1.1rc1.) Then hold the Shift key while pressing the arrow keys on the N900 keyboard to select text.
    Note: We are aware that this is not a very user-friendly way to select text, and we hope to include a better design in a future version of mobile Firefox.

  • Why cannot I copy selected text from a pdf file opened in Adobe Reader XI?

    Hi all,
    I had a problem when I tried to copy some selected text on a pdf file([Linux.System.Programming(2nd,2013.5)].Robert.Love.文字版.pdf) , which was opened in Adobe Reader XI as below (non-English version):
    The error's text could be primarily translated as "An error occured when copied to clipboard. Internal Error." I'm not sure about the reason of this. I guess it is a problem or bug related to operating system or Adobe Reader XI. I had this problem when I used other versions of Adobe Reader though I cannot remember the exact number of versions now.
    The version of XI I'm using is 11.0.0.  The operating system is XP SP3.
    As I was writing this question, the problem disappeared and I cannot reproduce it again now.
    Could anyone help explain why the error message appearred or why the problem disappearred? If there is referrence provided, that would be finer. Thank you.
    Message was edited by: photonxp

    The document has been protected.
    Even if it doesn't have a password, the original author has applied "plagiarism" prevention to it.
    There is a program from Wondershare, called PDF Password remover, that will remove such restrictions, but I'm not allowed to recommend it, only to point out it's existence.

  • When I try to select text from pdf-documents the pdf reader cannot select a single line.

    When I try to select the text from a pdf file instead of selecting a line, the paragraph gets selected. The document does not have any document restrictions, and the text is not in an object form. Any reason why I am not able to select the text.

    Hi,
    Which 'Documents' folder are you referring to?
    A screenshot of the issue would be more helpful for me to understand the issue.
    Regards,
    Florence

  • Selecting Text from Preview

    well, actually selecting text is not the problem, it's the pasting of the selected text.
    Let me explain.
    I've got a friend who is blind. He is a music-teacher and I help him out, creating playlists in iTunes. Since he is not able to read pdf-files in Braille, I used to preview the playlist, select all text, copy and paste it in a Text-file.
    I did have this little trick of find & replace, that I used to add a Return to the end of a line, so he would get a readable list.
    Since I bought my new Mac, it did came with *Preview 5*, which works just the way Acrobat does. When I select text, it is selected in Columns, when I paste it, I get all information of column 1, followed by all information in column 2, a.s.o.
    Does anybody know a workable solution? Is it possible to install an older version of Preview (*Preview 2.1.0* worked fine) next to the newer one?
    aTdHvAaNnKcSe
    J. Pas

    Thank you for your response.
    Acrobat is the solution indeed. I can save the lists as pdf, open in Acrobat Reader & select the text like I used to in Preview.
    (Which, by the way is strange, it never was possible this way in Acrobat.... That's why I was so happy with the old Preview.
    Thank you again. I hope that in the future I can help somebody with the little things I know.
    Greetings
    J.Pas

  • Cannot print PDF with selectable text from Chrome

    Hi All
    Fairly recently (since the last chrome update?) I cannot select text in my PDFs printed from Chrome (on my windows 7 machine).
    Previously, I had discovered the workaround (print using printer dialog) that is outlined here Google Chrome | Cannot select text in PDF but that solution no longer works, however.  Now, even if I follow that method, zooming in shows that the text has been converted to outline and the text cannot be selected OR searched for within windows.
    Doing the same print from Internet Explorer yields the expected result - selectable, searchable text.
    This may well be a Chrome issue... but considering it makes the above workaround invalid I figured it should be reported. Perhaps Adobe has a big enough voice to get Googles attention.
    It's such a massive pain - all PDFs I've created in the last couple of weeks are useless.
    Help?
    Thanks, Glenn

    Agreed.. it is raised there also (Google Groups)... although  there are multiple posts on the matter being ignored so I'm not overly optimistic.
    I just figured if Adobe cared enough above the issue to write that (now incorrect) help page Google Chrome | Cannot select text in PDF then they (and others) may care to know that particular solution is no longer working.
    The only thing that seems to work is Google's own "Save as PDF"... which seems to support your point, unfortunately.

  • 'select count(*) from x' returns 5460 rows and 'Select * from x' returns 0 rows

    As you can see in the next lines something is wrong in my Oracle (8.0.6 on Win NT 4.0 sp 6a) :
    Oracle8 Enterprise Edition Release 8.0.6.0.0 - Production
    With the Partitioning option
    PL/SQL Release 8.0.6.0.0 - Production
    SQLWKS> SELECT * FROM V_TERRA_TE;
    PERIOD_DATE PERIOD_TIME TERRARCV TERRASND TERCV TESND
    0 rows selected.
    SQLWKS> SELECT COUNT(*) FROM V_TERRA_TE;
    COUNT(*)
    5460
    1 row selected.
    V_TERRA_TE is a complex join of 5 Tables :
    CREATE OR REPLACE VIEW "ACTUATE".V_TERRA_TE AS Select to_date(to_char(p1.period_date,'YYYYMMDD'),'YYYYMMDD') "PERIOD_DATE",
    to_date(to_char(p1.period_time,'HH24:MI'),'HH24:MI') "PERIOD_TIME",
    to_number(p1.caudalrcv + ((p3.caudalrcv + p4.caudalrcv)*(confterrate.conexadslterra/confterrate.conexadsltotal))) "TERRARCV",
    to_number(p1.caudalsnd + ((p3.caudalsnd + p4.caudalsnd)*(confterrate.conexadslterra/confterrate.conexadsltotal))) "TERRASND",
    to_number((p2.caudalrcv * confterrate.pctinfonegocio) + ((p3.caudalrcv + p4.caudalrcv)*(confterrate.conexadslte/confterrate.conexadsltotal)))"TERCV",
    to_number((p2.caudalsnd * confterrate.pctinfonegocio) + ((p3.caudalsnd + p4.caudalsnd)*(confterrate.conexadslte/confterrate.conexadsltotal)))"TESND"
    from p1,p2,p3,p4,confterrate
    where (p1.period_date=p2.period_date)and
    (p1.period_date=p3.period_date)and
    (p1.period_date=p4.period_date)and
    (p1.period_time=p3.period_time)and
    (p1.period_time=p4.period_time)and
    (p1.period_time=p2.period_time)and
    to_char(p1.period_date,'MMYYYY')=to_char(confterrate.period_datetime,'MMYYYY');
    I think that some not reported error happens in the select * with some temporary space or similar but only the message '0 rows selected' is displayed (instead the real error)
    Could somebody help me ?
    Thanks in advance
    Francisco

    Forcing the Join/sort to be made on Disk (not on memory) the problem not happens. This demostrate that ORACLE has a VERY IMPORTANT BUG : It returns 0 rows wich is false.
    To force it to work on disk i use this parameters :
    alter session set sort_area_size=0
    alter session set hash_join_enabled=false
    Note : probably is not the best combination or use of parameters, but using it the query works as espected.

  • Selecting text from insertion point

    I want to select all of the text from the insertion point to the end of the file. The instructions I can find for this say to shift-click. I insert the cursor in the text and hold down the shift key and click, and nothing happens. Any suggestions?

    You must shift+click at the position you want to select to. If your cursor is here | and you shift+click here ->, everything from "and" to "here" is selected. So to select from your current position up to the end of a story, set your cursor to the start, scroll to the last visible character of that story (it only works with one continuous story, in multiple connected text frames) and shift+click there. The end of the current story is marked by a # -- visible with "Show Invisible Characters".
    It's easier to use the keyboard for this particular task. Cmd (or Ctrl) + End moves the cursor to the end of the current story, even if it's not visible on screen! (If that's the case, the last text frame has a bright red + on its lower right.) To select from the current position to the end, hold down Shift as well.
    These are the usual mouse operations and keystrokes for selecting text in any text editing app I could think of, on both Windows and Mac.

  • Oracle Text does not return results when String starts with two consecutive vowels

    Hi,
    I hope someone can shed some light on a strange problem we're facing.
    Oracle Database 11g R2 (11.2.0.4) EE 64-bit running on Windows 2008 Server R2.
    When I create a context index on a varchar2 column (surname) it works fine when the surname starts with either a consonant or one vowel. But when the surname starts with two vowels it fails to return the record?
    Please see worked example below:
    create table t1 (surname varchar2(50));
    insert into t1 values ('OURS');
    insert into t1 values ('JOURS');
    insert into t1 values ('ONES');
    commit;
    -- sync every 10 mins
    CREATE INDEX PERSON_SURNAME_IDX ON t1
    (SURNAME)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('MEMORY 50M sync (every "SYSDATE+10/1440")')
    NOPARALLEL;
    -- no rows
    SELECT surname
    FROM t1
    WHERE CONTAINS(surname, 'OURS') > 0;
    -- 1 row
    SELECT surname
    FROM t1
    WHERE CONTAINS(surname, 'JOURS') > 0;
    -- 1 row
    SELECT surname
    FROM t1
    WHERE CONTAINS(surname, 'ONES') > 0;
    Any help or guidance greatly appreciated.
    Thanks,

    Wtf?
    https://docs.oracle.com/database/121/CCREF/astopsup.htm#i634475
    only     then     where
    all     do     into     onto     there     whether
    almost     does     is     or     therefore     which
    also     either     it     our     these     while
    although     for     its     ours
    select
    from v$version
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production    0
    PL/SQL Release 12.1.0.2.0 - Production
    CORE 12.1.0.2.0 Production
    TNS for Linux: Version 12.1.0.2.0 - Production
    NLSRTL Version 12.1.0.2.0 - Production
    SELECT spw_stoplist, spw_word FROM ctx_stopwords
    WHERE spw_stoplist ='DEFAULT_STOPLIST'
    order by nlssort(spw_word, 'NLS_SORT=LATIN')
    ---- snip ----
    DEFAULT_STOPLIST    not
    DEFAULT_STOPLIST    of
    DEFAULT_STOPLIST    on
    DEFAULT_STOPLIST    one
    DEFAULT_STOPLIST    only
    DEFAULT_STOPLIST    or
    DEFAULT_STOPLIST    other
    DEFAULT_STOPLIST    out
    DEFAULT_STOPLIST    over
    DEFAULT_STOPLIST    s
    ---- snip ----

  • Get selected text from af:inputText

    Hi,
    I am using an <af:inputText> component, within which I would want to know if any text has been selected.
    InputText.getValue() would give me the total value that is there within the inputText component. But if I have selected a part of the text, I would like to get hold of that.
    Is there a way in ADF, to get that selected Text ?
    Thanks,
    Pawan.

    Hi,
    If I am to use javascript, can i directly use the IE/FF (browser-specific) code to get hold of the selected text ?
    The ADF javascript API doesn't seem to have a way to get the selected text.
    Thanks,
    Pawan.

Maybe you are looking for