Impact on performance when you use the LONG data type

Hi all


Only I have a doubt about the use of LONG data type

I use the data type LONG for some columns in a table and I created indexes on the columns separately, but these column values can be easily fit into the varchar data type.

(Just to see the performance on this issue)

Suppose that a common select query with WHERE condition on any of the column which has LONG data type will affect the performance of the query?

Please explain.

Thank you

(1) the LONG (and LONG RAW) data types have been depricated for quite a while. Oracle has been strongly recommends that you move to 8.1.5 CLOB and BLOB data types. Why you use the LONG data type? You're still on Oracle 7?

(2) have you tried to write a query that has a WHERE condition that refers to a LONG column? In general, you can not because it does not support the type of data LONG. For example

SQL> ed
Wrote file afiedt.buf

  1  create table a (
  2    col1 varchar2(30),
  3    col2 long
  4* )
SQL> /

Table created.

SQL> select * from a where col2='abc';
select * from a where col2='abc'
                      *
ERROR at line 1:
ORA-00997: illegal use of LONG datatype

LONG data types are a royal pain to work with. They also have implications on the performance of wicked on the client.

Justin

Tags: Database

Similar Questions

  • What value for p_print_server when you use the Rest Data Services as a print server?

    Hello

    I have my report server on the internal workspace defined as BI Publisher URL as default... It works for my BI Publisher reports.

    I have 2 reports who need to use the rest Data Services FOP engine and use GET_PRINT_DOCUMENT function Signature 4

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39149/apex_util.htm#AEAPI146

    For these 2 reports, I need to pass a parameter to p_print_server. The documentation describes this as the URL for the print server

    My question is, how to find the URL for p_print_server when I want to use the rest Data Services FOP on ADR?

    I can not put as NULL as at the time, it will use the default BI Publisher URL and then these 2 reports will not work

    Moreover, when I put the server reports on internal workspace as 'Rest Data Services', my two reports work fine, but not when I put is as URL BI Publisher - which is necessary

    Help, please

    Concerning

    Matt

    Hi Matt Mulvaney,

    Matt Mulvaney says:

    I already have the correct configuration to be able to produce reports FOP including two steps you mentioned. This set works very well when I put the "Print server" preference in the settings of APEX Data Services Instance remains - and reports can be produced. But as I said, this must be set to a URL of BI Publisher.

    If you use "Print server" as "Oracle BI Publisher" then the p_print_server parameter would have been:

    http://myserver.mydomain.com:8888/xmlpserver/convert

    Where:

    • Printing of the address of the host server: myserver.mydomain.com (you can also use the IP address)
    • Print Server Port: 8888 (depending on what your BI Publisher Server uses port)
    • Print server script: / xmlpserver/convert

    Similarly, if you choose "Print server" as 'Oracle REST Data Services', the instance settings don't ask questions on the print settings, but internally it uses the following parameters and the p_print_server parameter is:

    http://myserver.mydomain.com:8080 / ADR / _ / fop2pdf

    Where:

    • Printing of the address of the host server: myserver.mydomain.com (host computer on which ADR is hosted)
    • Print Server Port: 8080 (the port used by what ADR/APEX Forum)
    • Script of the print server: / ords / _ / fop2pdf (this is not disclosed by APEX/ADR documentation, but as mentioned by Marc Sewtz in the following thread)

    Reference: Re: Apache FOP disappeared by Oracle APEX installable APEX 5.0 and 5.0.1 APEX

    Kind regards

    Kiran

  • Slow performance when you use the function

    Hi all

    I have a function that returns the name of the product based on a number of identifiers. I create a new table

    Insert into the product
    (
    Name
    )
    Select
    PRODUCT (PRODUCT_ID)
    OF x_table


    It works very well but there are approximately million rows in the table and preformance is incrediably slow. No idea how I could improce performace or if I have to do this another way?

    Thanks in advance


    CREATE OR REPLACE FUNCTION PRODUCT (P_PRODUCT_ID IN VARCHAR2)
    RETURN VARCHAR2
    AS
    L_Name VARCHAR2 (4000);
    BEGIN
    SELECT NAME
    IN l_name
    PRODUCTS
    WHERE PRODUCTID = P_PRODUCT_ID
    OR PRODUCTID = P_PRODUCT_ID1
    PRODUCTID = P_PRODUCT_ID2
    PRODUCTID = P_PRODUCT_ID3
    PRODUCTID = P_PRODUCT_ID4;

    RETURN l_name;
    END;
    /

    It would probably be best...

    Insert into Product
    (
    Name
    )
    Select PRODUCTS.NAME
    FROM x_table
         JOIN PRODUCTS ON (x_table.product_ID IN (P_PRODUCT_ID, P_PRODUCT_ID1, P_PRODUCT_ID2, P_PRODUCT_ID3, P_PRODUCT_ID4))
    
  • When you use the "Fill & sign PDF" feature, is there a way to stretch to resize the text box, to an area of the page... rather than through a long straight line...?

    When you use the "Fill & sign PDF" feature, is there a way to stretch to resize the text box on a specific area of the page... instead of the text box is in a long straight line...? I do not see there is an option or the ability to do so, just want to confirm.

    Improving the management of multiple line text fields is in our plans, but for now, you need to add manual carriage return (Enter).

    Thank you

    Josh

  • MainStage "lag" when you use the SPACEBAR as 'play '.

    Hi all, I'm relatively new to Mainstage (V3), and I'm hoping to use it for the first time this weekend to play the extra backing with a band tracks

    The issue I'm having, is that with the SPACEBAR of laptops on 'PLAY '. It is often "lag". or simply does not start the song. I have to wait a second, then hit again, it will work.  It is almost as if in Performance mode, when you use the down arrow key to select the next song, the 'focus' is on the list of patch, and if I click in the background where are playback buttons and stop, THEN that will work. I have not, however, been able to reproduce this particular behavior on a consistent basis.

    Everyone knows the same thing? Or why it is so 'all or nothing '?

    And a question important much donor... I gave all my reading titles to the waveform appropriate the other night (so I could visually see the waveforms above the attenuator as offers of backing track model), however, once I was moving songs in a different order, which stopped working. No idea why?

    Thnaks in advance

    About the offset by hitting the space bar, a thought occurred to me.

    How Mainstage allocates 44.1/16 bit wave files used in the reading plug-in? Which means, when a song is selected, which uses, for example, to separate the 5 cases of reading, one can assume that these audio files used in that song would need to "load" first.

    Anyone know if this is how Mainstage works?

  • Satellite A500-1GL: it is advisable to remove the battery when you use the network

    I know this is a silly question but its actually something I know not so thought I would ask.

    I almost always plug my laptop into the supply line (satellite a500 1gl)
    I was wondering have you actually keep the battery installed even when using the electrical network.
    Or is it really advisable to remove the battery when you use the network?
    I didn't know if the battery should always be in place.
    Thanks for your help
    Torti

    Hello

    A few years ago it was recommended to remove the battery of the laptop if the AC adapter is plugged. What keeps the constant charge battery
    New age of batteries are better you can leave the battery in the Bay it s ok and it should not affect the performance

    However, sooner or later each battery would die it s only a matter of time, you know

  • Loop Finder crash after upgrading to El Capitan.  'Finder close unexpectedly when you use the plug-in finder' - the message really is in Norwegian, so it may be different for the English operating system.

    'Finder close unexpectedly when you use the plug-in finder' - the message really is in Norwegian, so it may be different for the English.  The e is a compatibility issue with dropbox or Google drive in El Capitan?  Those are the plug-ins only that I could find.  Thank you very much.

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    Step 1

    For this step, the title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    In the upper right corner of the Console window, there is a search box to filter. Enter the name of the application crashed or process. For example, if Safari has crashed, you would enter "Safari" (without the quotes).

    Each message in the journal begins with the date and time when it was entered. Select the messages since the time of the last fall, as appropriate. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name, may appear in the log. Anonymize before posting.

    Step 2

    In the Console window, clear the search box, and then select

    DIAGNOSIS AND diagnostic USE information reports ▹ user

    (not diagnose them and use Messages) in the list of logs on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points downwards. You will see a list of reports of incidents. The name of each report begins with the name of the process and ends with ".crash". Select the most recent report on the process in question. The content of the report is displayed at right. Allows you to copy and paste to validate all of the content, text, not a screenshot.

    I know that the report is long, perhaps several hundred lines. Please report all this anyway. If the report is only a few lines, make sure that you have disabled the search box.

    If you don't see any report, but you know, he had an accident, you have chosen diagnostic and using the list of Log Messages. INFORMATION on the USE of DIAGNOSTIC AND choose instead.

    In the interest of privacy, I suggest that, before posting, you change the UUID ' anonymous, ' a long string of letters, numbers and dashes in the header of the report, if it is present (it cannot be). "

    Please do not post other types of diagnostic report - they are very long and rarely useful.

    When you post the journal excerpt or the accident report, you might see an error message on the web page: "you have included content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • When you use the media player, it is possible to take a song that's already torn in our library and announced another song or part of the same song at the end? kinda like a mix.

    When you use the media player, it is possible to take a song that's already torn in our library and announced another song or part of the same song at the end? kinda like a mix.

    Windows Media Player is not a Publisher.

    You can use Windows Movie Maker to split
    and combine audio files, but it works better
    If they are in the. WMA format.

    Also the free Audacity software may be worth a try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Audacity

    http://Audacity.sourceforge.NET/

    How to split a long recording into multiple files or CD tracks?
    http://Audacity.sourceforge.NET/Help/FAQ?s=files&i=split

    How to combine two files into one longer file?
    http://Audacity.sourceforge.NET/Help/FAQ?s=editing&i=join

    How to mix songs with Audacity
    http://www.ehow.com/how_5061510_mix-songs-audacity.html

  • Adobe acrobat reader for windows 8.1 x 64 crash when you use the search function

    Software Adobe acrobat reader crashes on windows 8.1 x 64 when you use the search function. Please help it is extremely annoying

    Hi rikusg98319732,

    I will suggest you to perform a clean reinstall of the reader.

    Delete using the cleaning tool: Download Adobe Reader and Acrobat tool - Adobe Labs

    Install from here: http://get.adobe.com/reader/enterprise/

    Thank you

    Abhishek

  • When you use the brush in the development module and I have a lot less brushes to create an image, the program hangs up to what I sometimes have to use windows to complete the task.  I have ICC Intel i7 3.4 and 16 GB of RAM to operate Windows 7.  Why hang

    When you use the brush in the development module and I have a lot less brushes to create an image, the program hangs up to what I sometimes have to use windows to complete the task.  I have ICC Intel i7 3.4 and 16 GB of RAM to operate Windows 7.  Why hang up LR

    Doing a lot of brushing up on an image using Lightroom is known to have this problem. The first thing to try is to turn off the graphics acceleration (go to Preferences/Performance tab and then uncheck the box here). IF this does not help, then you can consider doing your brush in Photoshop Elements or Photoshop, instead of brushing in Lightroom.

  • ORA-01789 - when you use the operator of TABLE and SEM_MATCH

    Client version: 11.1.0.7 on Windows 7 (32 bit)
    Server version: 11.2.0.3 on Windows 7 (64-bit)

    I am model prototyping a simple RDF, and I'm getting a ' ORA-01789: block has an incorrect number of columns in query results "when you use the SEM_MATCH with the SCOREBOARD operator.

    I can run this:
    select id, a.triple.GET_TRIPLE() from drik.rdf_data a
    and the first line is:
    (<http://www.ihc.com/drik/term#2>, <http://www.w3.org/2000/01/rdf-schema#subClassOf>, <http://www.ihc.com/drik/term#1>)
    Now, I want to use the TABLE like this:
    select
      c
    from 
      table(sem_match('{ <http://www.ihc.com/drik/term#2> <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?c . }', 
            sem_models('Prototype'),
            sem_rulebases('RDFS'),
            sem_aliases(sem_alias('rdfs','http://www.w3.org/2000/01/rdf-schema/')),
            null
            ))
    But this performance gives the ORA-07189. Even try SELECT * gives the same error.

    I expect to get a refund:
    <http://www.ihc.com/drik/term#1>
    How should I approach troubleshooting this?

    Thank you, Steve

    Thanks for posting the script. I was able to reproduce the error locally.

    The problem is the use of the sem_apis.create_rules_index () procedure, which has been deprecated:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25609/sdo_rdf_newfeat.htm#autoId26

    Please use sem_apis.create_entailment () instead, and the error should disappear.
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25609/sem_apis_ref.htm#CHEHDGBD

    Thank you
    Matt

  • Error returned (sometimes) when you use the tag &lt; cfxml &gt;

    I have a problem when you use the < cfxml > tag, its seems error when I try and view the XML over a certain length, because it works for some of my folders and others do not.  Is there a known displaying stuff in the cfxml tag size limit?

    Here is my code, I don't know how to move forward on this issue. Well, any help would be apprciated.

    Right.

    It is therefore being truncated when it is read in the DB.  Nothing to do with CFXML.

    Looks like it is hitting the size of the Long text buffer (which by default is 64 KB).  Increase this value (in your DSN settings, advanced).

    --

    Adam

  • Firefox does not open after the update. Cannot open the profile technical, even when you use the directory in cmd line path

    I'm using Firefox on a Windows 7 computer. Firefox does not open after the last update. I read the help articles and it seems that I need to create a new profile because my settings were probably corrupted. I'm unable to open the profile technical, even when you use the directory in cmd line path. I tried the following commands in the command line:

    Firefox Pei
    "C:\Program Files (x 86) \Mozilla" PEI

    Nothing happens with every order.

    I am also running Norton Internet Security. I read a help of virtual navigation features Re article that can cause a problem. The article says to check the setting of virtualization in the internet security software and to clear the virtual cache. I went through all the menus of settings in Norton Internet Security version 21.6.0.32 and I don't see anything that looked like in "virtualization" settings, so I guess that does not apply to me. "

    If you have any ideas, I had appreaciate that your expertise!

    Hello arcandl, at the launch of the firefox is not after you double-click the shortcut, it is sometimes also a sign of active malware on a system.
    you might want to try running a scan with some various other security like the free version of malwarebytes and adwcleaner tools that are specialized to remove the adware and browser hijackers.

    Fix Firefox problems caused by malicious software

  • How to enter the character ü when you use the pinyin keyboard?

    How can I enter the character u when you use the pinyin-simplified keyboard, for example, for the opening of the syllable nu with your 3.

    The keyboard pinyin-simplified is for entering the characters han, not latin.  If you want to type the latin pinyin, you must use the extended ABC keyboard configuration.  A list of the shortcuts is to

    http://symbolcodes.TLT.PSU.edu/accents/codemacext.html

  • Is cell required when you use the map applications of conduct?

    Is cell required when you use the map applications of conduct?

    Yes. GPS does not work with a Wi - Fi connection.

Maybe you are looking for

  • Photos of Google App

    I am trying to download the Photos of Google App on the App Store, but it was almost an hour and it has not yet finished downloading. The icon grayed out still bed "waiting." I'm at home with a Wi - Fi connection. In the App Store, the blue circle no

  • Satalite Pro A200 - Internet keeps freezing

    Hi, hope someone can help, and it can be so easy, but I am a novice. My Satellite Pro A200 guard lock when I use internet, I used a connection Wireless netgear broadband, however I thought it was a problem wireless because I did a hard link cable but

  • I got what seems to be a suspicious application from Apple Store to confirm my account...

    I had a request in search of fish to account about my Apple Store account information. Something fishy, it's saying that it was a final statement. Another is that the graphics looked hinky. Someone at - it to experience or know anything abouyt? Photo

  • Measurement of angular position with encoder in quadrature and NI USB 6281

    Hello.I have an application developed with labVIEW 7.1 and 6014 OR for the measurement of angular position using encoder quadrature, where are used 3 sons - one of them connected to the source, second to the OID (0 or 1) and a third to digital ground

  • How can I create new combination of same size chart table 2

    My question is: Table A and B is of same dimension 2D. Now, I want to take the line 1, ra1 rb1 table A and line 1 of table B, in the new table, table C. continue the next row and so on. So it will be Table 2D consist of