Do we have a Long to LOB API

Hi
DO we have a LongtoLOB API in Oracle 9i or above?
Poonam

Hi
Use TO_LOB function and DBMS_LOB package.
Ott Karesz
http://www.trendo-kft.hu

Similar Messages

  • Migration LONG to LOB in manual space management tablespaces

    Hi everyone,
    We have Netweaver 7.0 and Oracle 11g and we are considering to migrate our manual tablespaces to ASSM. The first problem we've found is we can't do that online due to the LONG data type. So we decided to migrate LONG to LOB first. Note 835552 says that for Oracle version 11g the conversion is from LONG to SECUREFILE. But we follow seeking notes and in 1426979 (Oracle 11g: SecureFiles - The new way to store LOB data) one of the prerequisites for the conversion is to use ASSM tablespaces.
    At this point, we can't migrate (online) to ASSM due to LONG data and neither can migrate to SECUREFILE due to the ASSM.
    My question is: is it possible to make the migration from LONG to SECUREFILE specifying in the brspace a new tablespace with ASSM?
    Thanks in advanced.

    Hello
    It is in fact possible to reorganize segment to a specific target tablespace using brspace option -n|-newts
    brspace -u / -f tbreorg -a long2lob -o sapsr3 -s <source_tablesapce> -t allsel -n <target_tablespace_in_ASSM>
    It is odd that in 11g you are not in ASSM, so you upgrade to that version and never performed tablespace reorg ?
    620803 - Oracle 9i: Automatic Segment Space Management
    The new ASSM function is available as of Oracle Release 9i. As of Oracle 10g, ASSM is already contained in the standard system, and new tablespaces are by default created as ASSM tablespaces.
    Regards

  • Oracle: Expanded non LONG bind data supplied after actual LONG or LOB colum

    I am getting this error message when I try to insert clob into oracle table.
    ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column. This error message is kind of misleading. For this error message, I should reorder the list of columns which means that the column with LONG RAW should come at end. So I reordered the list to make the LONG RAW column come at end. But I was still getting this error message. So I found out that data that needs to be inserted into the clob is causing this error.
    Here is my code for inserting clob.
                        byte[] bytes1 = .....
                        statement.setAsciiStream(index, new ByteArrayInputStream(bytes1), bytes1.length);I don't know what is wrong with this code. I have been using this for a while and now it is throwing an exception.
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:952)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1160)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3390)
    I am using JDK5 and Oracle 10g driver.
    Please help me.

    I have these columns,
    ROW_DESC - Char
    Table_id - Char
    Blob_desc - Char
    Blob1 - Blob
    LOB_DATE - Date
    CLOB1_DESC - Char
    CLOB1 - Clob
    CHAR_25_Col - Char
    VBIN_400_Col - Long Raw.
    But what I noticed is that the one causing the problem is not actually Long Raw column. "CLOB1" is the one causing a problem. The database is configured as unicode (AL32UTF8). When I tested it against another database with non-unicode, it works fine with same table description. So somehow it is unable to bind unicode large clob data.
    I ran into this problem while I was inserting data from the source table to the target table.
    Here is how I read from the resultset.
                        InputStream inputStream = resultSet.getAsciiStream(index + 1);
                        if (inputStream == null) {
                            return null;
                        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                        byte[] buffer = new byte[1024];
                        int length;
                        do {
                            length = inputStream.read(buffer);
                            if (length > 0) {
                                outputStream.write(buffer, 0, length);
                        } while (length > 0);
                        byte[] resultBytes = outputStream.toByteArray();Here is how I bind parameters.
                        statement.setAsciiStream(index, new ByteArrayInputStream(resultBytes), resultBytes.length);If i use "((OraclePreparedStatement) statement).setStringForClob", then it works, but it will impact the performance, because I need to convert the clob to string.
    is there any way to do it without converting to string object?
    Thanks.

  • ORA-12815 while reorg/compression of tables without LONG and LOB with 11g

    Hello fellows,
    I am in the luxury situation that I got a copy of our production R/3 environment that was left over from a project and is no more required by any of our developers.
    As we are still on oracle 9.2.0.7 I upgraded this copy to 11.2 in a two step process (from 9i to 10g to 11g).
    I got myself the SAP dbatools 7.20(3) and the Note 1431296 - LOB conversion and table compression with BRSPACE 7.20.
    I started with some small tablespaces but after a while I thought I'd like to try to reorg/compress the worst of all tablespaces...PSAPPOOLD with ~15.000 tables.
    I first converted tables with LONG fields online that can be compressed, than the onse that can not be compressed, than I reorged the tables that contain old LOB fields online. With these different executions of the brspace commands that are also mentioned in the above note I managed to move ~ 3.000 tables without any issues.
    But now I started with the biggest bunch of tables, the compression of tables without LONG and LOB fields online.
    This is the command I used:
    brspace -u / -p reorgEXCL.tab -f tbreorg -a reorg -o sapr3 -s PSAPPOOLD -t allsel -n psapreorg -i psapreorgi -c ctab -SCT
    ...after a few checks that are performed by brspace, I end up in the screen
    Options for reorganization of tables (which is still nothing I wouldn't have expected)
    1 * Reorganization action (action) ............ [reorg]
    2 - Reorganization mode (mode) ................ [online]
    3 - Create DDL statements (ddl) ............... [yes]
    4 ~ New destination tablespace (newts) ........ [PSAPREORG]
    5 ~ Separate index tablespace (indts) ......... [PSAPREORGI]
    6 - Parallel threads (parallel) ............... [1]
    7 ~ Table/index parallel degree (degree) ...... []
    8 ~ Category of initial extent size (initial) . []
    9 ~ Sort by fields of index (sortind) ......... []
    10 # Index for IOT conversion (iotind) ......... [FIRST]
    11 - Compression action (compress) ............. [none]
    12 # LOB compression degree (lobcompr) ......... [medium]
    13 # Index compression method (indcompr) ....... [ora_proc]
    But independent of what I enter in point 6 and 7, I always end up with below erros during the reorg/compression of the outstanding tables:
    Just one sample, but the issue is always the same.
    BR0301E SQL error -12815 in thread 2 at location tab_onl_reorg-26, SQL statement:
    'CREATE UNIQUE INDEX "SAPR3"."RTXTF_____0#$" ON "SAPR3"."RTXTF#$" ("MANDT", "APPLCLASS", "TEXT_NAME", "TEXT_TYPE", "FROM_LINE",
    "FROM_POS")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 1662976 NEXT 655360 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "PSAPREORGI" PARALLEL ( INSTANCES 0) '
    ORA-12815: value for INSTANCES must be greater than 0
    Just in case, here it the OBJECT DDL:
    CREATE UNIQUE INDEX "SAPR3"."RTXTF_____0"
        ON "SAPR3"."RTXTF"  ("MANDT", "APPLCLASS", "TEXT_NAME",
        "TEXT_TYPE", "FROM_LINE", "FROM_POS")
        TABLESPACE "PSAPPOOLI" PCTFREE 10 INITRANS 2 MAXTRANS 255
        STORAGE ( INITIAL 1624K NEXT 640K MINEXTENTS 1 MAXEXTENTS
        2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
        LOGGING
    Perhaps someone already gained some experience on the compression with brspace and can give me a hint.
    Many thanks
    Florian

    Hello Florian,
    > Perhaps someone already gained some experience on the compression with brspace and can give me a hint.
    I have not performed any compression operations on Oracle 11g R2 with brspace until yet .. but this error seems to be very obvious.
    It seems like SAP is still not using the procedure DBMS_REDEFINITION.COPY_TABLE_DEPENDENT to create the indexes (and NOT NULL constraints) on Oracle 11g R2. No idea why, i can only think of one case (create a DDL file before reorganisation to change the DDL parameters through the reorganisation in some kind of ways).
    So in your case it seems like SAP is creating a wrong SQL for creating the index on the interim table.
    You can try to create the DDL file first and correct the parameters and after that you can try to run the reorganisation again.
    Please check sapnote #646681 (Remark 5) for more information about the procedure for "creating the DDL first .. and then do the reorg with edited parameters).
    Regards
    Stefan

  • Playing music on itunes 6.0.1 many songs have a long Skip in them... makes

    When I play songs on my computer in itunes many songs have a long skip about 1/3 of the way into the songs. Sometimes the skip is just that, a little skip, but sometimes it seems to replay a tiny section of the song over and over very fast, like a reverb, and get louder as it does so. Kind of ruins the moment and the song. Thanks for any help or anyone else have the same problem ???
    G5 dual 2 gig, PB 1.67gig 120 HD 17", PB 1gig 60 gig HD 15"   Mac OS X (10.4.3)  

    Tygerlylly,
    Read my post here:
    http://discussions.apple.com/thread.jspa?messageID=1307909&#1307909
    iTunes has corrupted your song files- you should open one or two and you'll see gaps have been added, some segments are recreated between gaps, etc. They're an absolute mess! Can't wait for someone to explain that.
    core4

  • I have a long list of gibberish files, in Preferences, in my Library. What are they? How did they get there? Can I delete them?

    I have a long list of gibberish files, in Preferences, in my Library. What are they? How did they get there? Can I delete them without causing a problem?

    Here is one thing I found googling for WebEx:
    http://www.webex.com/why-webex/overview.html
    (The x64 would most likely mean 64 bit). It may be a Windows based application/plugin, but since I had never heard of either, I'm only guessing there. If you do a search systemwide for it and don't find it plus don't know why it's there, I'd say throw it in the trash (don't empty it yet - make a note of the file path just in case you do have something installed that needs it so you can move it back).
    Glad to hear it's not a torrent; some people use those not realizing that quite often there is a price to pay for downloading stuff for free that costs money elsewhere - the software packages quite often include little "add-ons" = malware which you really don't want.

  • I have a long-existing iPhone 4s with one apple id and started a job where I received a macbook with another apple id. how do i get my phone to sync with the Mac Pro and secondly how do i get my music on there?

    i have a long-existing iPhone 4s with one apple id and started a job where I received a macbook with another apple id. how do i get my phone to sync with the Mac Pro and secondly how do i get my music on there?

    No not bothered about sycing apps etc it is all about calendars and maybe notes. IN terms of how its done I just want it the easiest way and preferably so that if an entry is made on one calendar then it populates the other.
    Thgius is beacuse I have my work diary on outlok, which I then link with my ical. I want to make sure that information is then shared with her.
    Chris

  • I have some long spreadsheets and want to open them at the bottom instead of scrolling down through all the data. How do I do this?

    I have some long spreadsheets and want to go to the bottom to add new data without scrolling down through all the old entries. When I open a table now it goes to the top row and I have almost 300 rows to scroll through. I would like to set the table up to automatically go to the bottom row.

    Zach,
    You have a couple of options. If you use 100% View Zoom, and if you leave a cell selected in the bottom row of the table when you Save and Close the document, it will reopen with that cell in view.
    You could also sort your table in the opposite order and add new rows at the top. Then you wouldn't have to worry about what zoom you use. To insert a row at the top, select a cell in the current top row and press Option-UpArrow. That will add a new blank Top Body Row.
    Jerry

  • We have a long list of disabled/deleted users in AD Somehow, they are still appeared as active user in Sharepoint Online. How do we get rid of those list? Hope you can advice. Thanks.

    we have a long list of disabled/deleted users in AD
    Somehow, they are still appeared as active user in Sharepoint Online.
    How do we get rid of those list?
    Hope you can advice. Thanks.

    SharePoint does not remove users from SharePoint permissions just because they were deleted/disabled in AD. This is to maintain referential integrity. In fact, when you delete a user from SharePoint, that user remains in the SharePoint content database,
    just marked as deleted.
    They do not have access to SharePoint given their account is deleted/disabled. But as far as automatically managing this, I'm not aware of a tool. On-prem there is Metalogix ControlPoint which does a great job of this, I haven't explored the O365 options.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • I just bough an iPad and all the apps that i have deleted long time ago still keep showing in purchased section of app store - most of them were free apps anyway .Its annoying that u cant delete them .Is there a way to delete them o

    I just bought the Ipad and even the apps that I have deleted long time ago keep showing in purchased list even though most of them are free.Its realy annoying to not be able to delete them .Is there a way to delete them or is Apple workign on fixing this problem?

    If you want to delete an app forever. 
    1st delete the app on your iPad and on any other iOS devices.
    2nd delete the app from iTunes on your PC.

  • HT5622 My apps are not updating as I have no longer access to my eariler apple Id and now I am using a new apple Id which is allowing to download  apps but while updating those apps my iPod wants eariler apple Id password to update what should I do ?

    My apps are not updating as I have no longer access to my eariler apple Id and now I am using a new apple Id which is allowing to download  apps but while updating those apps my iPod wants eariler apple Id password to update what should I do ?

    Hi Kanishk,
    Those apps are forever tied to the Apple ID they were purchased under. You can either delete them and re-purchase them, or you can go to Manage your Apple ID and reset the password on the old Apple ID so you can use it to update your apps: Apple - My Apple ID
    If you decide to continue to use them under the old ID password, I would suggest that when you reset that password, you change it to be the same password as the one you are currently using. That way when apps need to be updated you will only need to know one password and you won't have to be concerned with which Apple ID is displaying.
    Cheers,
    GB

  • I have no longer got the contacts symbol.  when for instance I want to send a mail....thanks for your help been

    Hello,
    I had to re-initialized my iTouch (ios5.0.1) and since then I have no longer got the contacts symbol. However my contacts are still there when I want to send a email for instance, but I can't add any like before when this app was in.
    Thanks for your help
    Bruno

    Sorry, but I don't know of any other way.  Perhaps you can leave feedback to Apple on this.
    http://www.apple.com/feedback/ipodtouch.html
    B-rock

  • Pon downloading the 4.0 version of your firefox, I have no longer been able to access downloads as they do not appear in the downloads folder (ie- pdf's etc).

    Upon downloading the 4.0 version of your firefox, I have no longer been able to access downloads as they do not appear in the downloads folder (ie- pdf's etc).

    Upon downloading the 4.0 version of your firefox, I have no longer been able to access downloads as they do not appear in the downloads folder (ie- pdf's etc).

  • I have a long numbers document, that I'd like to make more print friendly. It is a list of my DVD's that I just listed one after the other (1-200) when I tried to print it, it would be 18 pages, can I change it to be more like columns side by side to save

    I have a long numbers document, that I'd like to make more print friendly.
    It is a list of my DVD's that I just listed one after the other (1-200) when I tried to print it, it would be 18 pages,
    can I change it to be more like columns side by side to save paper?

    S,
    I assume that you also have Pages on your computer (or some other capable WP program). I also assume that you have eliminated any unnecessary columns, so you have a 1-column table in Numbers.
    When it comes time to print, Copy the entire Table: Click on the table name in the Sheets Pane and Command-C.
    Switch to Pages, open a blank WP template and set the number of columns to 3 or so. With the Text Insertion Cursor flashing on the first line of the first column of the blank template, Command-V. Your table should paste into the Pages document as an Inline Object and will Wrap on the page as you desire. Then Print in Pages.
    Jerry

  • At the moment I have a long Griffin charging cable. Unfortunately now that I have the Smart Case this won't fit through the available hole. Is there any other make that will fit that has the none  lightening fitting that I want.

    At the moment I have a long Griffin charging cable. Unfortunately now that I have the Smart Case this won't fit through the available hole. Is there any other make that will fit that has the none  lightening fitting that I want.

    I wonder if this comment on the Amazon site is the answer to my problems?
    PLEASE NOTE: In order to provide the same power output as an original 3 ft Apple USB cable, the housing of our 6.5 ft cables need to be a bit larger. Due to the larger head size, it will not be compatible with some cases that have a smaller charger opening
    If that is the case then I am stuck with the Griffin one or just use the original.
    Thanks for your observations guys

Maybe you are looking for

  • Error while running test configuration

    Hi, I created a test script using SAPGUI and test configuration.In test configuration,i created 2 variants other than default one.Downloaded the variants and executed it. It was giving error "Error inn ecatt command SAPGUI","Cannot Find Screen Elemen

  • Setting up Connection Pool in sun app server 8.1 with SQL server 2000

    Hello, I am trying to set up a connection pool & data source for SQL server 2000 (MSDE 2000). Here is what I attempted to do: I have a pool data source in a jar file called poll.jar and I copied it to C:\sun\Appserver\lib (Install dir\lib) com.micros

  • When printing form using Adobe Acrobat X, I get squares over my italic text

    Hi, I have created an Adobe Form using Adobe Acrobat XI Pro and just printed it to check whether this works and the following occured: - When printing my 14 page document using adobe reader everything looked great - When printing my 14 page document

  • Connect Cisco Process Orchestrator in IAC 4.0

    During the execution of the 'Connect Cisco Process Orchestrator' task in the Day 0 Wizard, many miss out on the underlying note to 'Start all other agents'   Please start all other agents 2 minutes after executing connect Cisco Process Orchestrator t

  • What wrong with this program

    It worked fine until i tried to make capitalized vowels recognized and now it doesn't work import cs1.Keyboard; public class Vowels     public static void main (String[] args)             int vowelcount = 0;             char ltr;             while (v