DBMS_LOB Package for CLOB Issues

I was wondering if any of you have worked with DBMS_LOB
packages. I wrote a procedure that will be invoked from a 'C'
program. I was first compiling the procedure as follows:
procedure <procedurename> (c_text out char, length in number)
declare c_lob CLOB;
begin
SELECT lob_locator_column into c_lob from <table>
WHERE
<table>.id = '1';
dbms_lob.read(c_lob,length,1,c_text)
end;
When I compile this program I am getting an error "length cannot
be used as a target". Have any of you seen this problem?
Right now I am getting around by declaring another variable and
assigning the input length to the variable and passing it into
DBMS_LOB.
Another issue I have is that the DBMS package is returning the
length of the clob to be an "INTEGER". What happens if the clob
length is greater than 32767?
null

I guess you are using a reserved word..
Bala Vanukuru (guest) wrote:
: I was wondering if any of you have worked with DBMS_LOB
: packages. I wrote a procedure that will be invoked from a 'C'
: program. I was first compiling the procedure as follows:
: procedure <procedurename> (c_text out char, length in number)
: declare c_lob CLOB;
: begin
: SELECT lob_locator_column into c_lob from <table>
: WHERE
: <table>.id = '1';
: dbms_lob.read(c_lob,length,1,c_text)
: end;
: When I compile this program I am getting an error "length
cannot
: be used as a target". Have any of you seen this problem?
: Right now I am getting around by declaring another variable
and
: assigning the input length to the variable and passing it into
: DBMS_LOB.
: Another issue I have is that the DBMS package is returning the
: length of the clob to be an "INTEGER". What happens if the
clob
: length is greater than 32767?
null

Similar Messages

  • Comparison for clob type

    Hi All,
    Can Anyone please tell how to compare clob type in select query with where condition ?
    Ex: field: Desc_ short(Clob )
    field ean_code(number,pk)
    And i want to see those ean_code list matching to particullar clob pattern matching in the record in any where in the record.
    Please help.
    Thanks and regards,
    DK.

    COMPARE function
    This function compares two entire LOBs or parts of two LOBs. You can only compare LOBs of the same datatype (LOBs of BLOB type with other BLOBs, and CLOBs with CLOBs, and BFILEs with BFILEs). For BFILEs, the file must be already opened using a successful FILEOPEN operation for this operation to succeed.
    COMPARE returns zero if the data exactly matches over the range specified by the offset and amount parameters. Otherwise, a non-zero INTEGER is returned.
    For fixed-width n-byte CLOBs, if the input amount for COMPARE is specified to be greater than (4294967295/n), then COMPARE matches characters in a range of size (4294967295/n), or Max(length(clob1), length(clob2)), whichever is lesser.
    Syntax
    DBMS_LOB.COMPARE (
       lob_1            IN BLOB,
       lob_2            IN BLOB,
       amount           IN INTEGER := 4294967295,
       offset_1         IN INTEGER := 1,
       offset_2         IN INTEGER := 1)
      RETURN INTEGER;
    DBMS_LOB.COMPARE (
       lob_1            IN CLOB  CHARACTER SET ANY_CS,
       lob_2            IN CLOB  CHARACTER SET lob_1%CHARSET,
       amount           IN INTEGER := 4294967295,
       offset_1         IN INTEGER := 1,
       offset_2         IN INTEGER := 1)
      RETURN INTEGER;
    DBMS_LOB.COMPARE (
       lob_1            IN BFILE,
       lob_2            IN BFILE,
       amount           IN INTEGER,
       offset_1         IN INTEGER := 1,
       offset_2         IN INTEGER := 1)
      RETURN INTEGER;
    Pragmas
    pragma restrict_references(COMPARE, WNDS, WNPS, RNDS, RNPS);
    Parameters
    Table 17-7 COMPARE Function Parameters
    Parameter  Description 
    lob_1        LOB locator of first target for comparison. 
    lob_2        LOB locator of second target for comparison. 
    amount  Number of bytes (for BLOBs) or characters (for CLOBs) to compare. 
    offset_1  Offset in bytes or characters on the first LOB (origin: 1) for the comparison. 
    offset_2  Offset in bytes or characters on the first LOB (origin: 1) for the comparison. 
    Returns
    INTEGER: Zero if the comparison succeeds, non-zero if not.
    NULL, if
    amount < 1
    amount > LOBMAXSIZE
    offset_1 or offset_2 < 1
    offset_1 or offset_2 > LOBMAXSIZE
    Exceptions
    Table 17-8 COMPARE Function Exceptions for BFILE operations
    Exception  Description 
    UNOPENED_FILE
      File was not opened using the input locator. 
    NOEXIST_DIRECTORY
      Directory does not exist. 
    NOPRIV_DIRECTORY
      You do not have privileges for the directory. 
    INVALID_DIRECTORY
      Directory has been invalidated after the file was opened. 
    INVALID_OPERATION
      File does not exist, or you do not have access privileges on the file.
    http://www.java2s.com/Code/Oracle/System-Packages/Usedbmslobcomparetocompare.htm

  • Creation of Add-on package for 64 bit and 32 bit SAP Business One Client

    Please help me creating package for 64 bit and 32 bit SAP Business One. If Add-on executable is compiled with x86 option then there is no issue of connecting Add-on with 32 bit SAP Business one and if Add-on executable is compiled with Any CPU option then there is no issue of connecting Add-on with 64 bit SAP Business one. Problems are mentioned as below
    1. My Add-on uses MS ACCESS connection and the connection is read using Jet OLEDB 4.0 provider. It works fine for x86 compile mode but not when compile mode is Any CPU. I searched for the issue on Google and found a solution to change MS ACCESS connection provider to ACE.OLEDB.12.0 but again ACE provider is installed according to the Office version i.e. 32 bit or 64 bit office suite. If I install 32 bit ACE provider then Add-on executable compiled with x86 version is working fine but with Any CPU option throws error as provider is not registered on current machine.
    2. Secodly, our license validation activex dll is build using vb 6.0 and therefore when Add-on executable is compiled using Any CPU option, Add-on EXE cannot read from license dll. Any suggestion, how the activeX dll can be compiled whose component can be created from for X86 compiled exe and any cpu compiled exe.
    Please help because we are stuck in this issue and cannot move forward.
    Thanks.

    Hi Alejandro,
    That is one solution but did your add on used ms access connection? if you used Jet oledb to connection string or ace oledb connection string? what if 32 bit office is installed and what if 64 office is installed? how did you found the office version in install script? after determining the office version how did you installed Microsoft redistributable for ace oledb (32 bit or 64 bi )?
    I am sorry that I asked many questions but these are the problems where I am stuck with the addon installer?
    Thanks

  • Acrobat XI Pro Install via CCP Packager for Enterprise unuseable - tips for the unitiated

    Well, after at least six weeks of trying to script and package Acrobat XI via the CCP packager for enterprise (Windows 7 X64) I have learnt many home truths which I thought I would share with the unitiated. This process, from the point of view of an IT admin who has to mass deploy this application to 680 PC's as part of an updated SOE has been the most painful scripting process I have ever found of any package (we successfully deploy Office, and Autodesk apps!). Not only that, but our entire State technical colleges have all purchased the same version. This will be affecting IT staff across a huge area, perhaps worldwide. Below are some some facts relating to this that I will share so others do not have to trawl the minefiled of dead-ends and confusion that is Adobe forums/official documentation. Apologies for not finding direct links to all of the below just yet but I've run out of time as we now have MANUALLY install Acrobat XI on all of these machines. When I get time I will post some of the links:
    Facts:
    Acrobat XI and Lightroom are NOT "CC" packages. Therefore they rely on a spearate serial numbers to install standalone without another major Adobe product (eg Photoshop) to be installed and then run first. Otherwise they will run in trial mode. If your organistaion is wanting to install these products I highly recommend seeing if Adobe can provide you with these.
    Without the use of serial number for Acrobat XI this almost renders the Customisation Wizard effectively useless, none of the silent install switch will work with "Offline Exception"
    Yes, one Adobe employee notes that you must install a major package before Acrobat but as the aoplogies for not fixing this were posted last August, we are still in the quandry of not having any useable fix except for the ridiculous "Exceptions" file and Exceptions installer.
    If you run the Build and/or execeptions msi's it installs Acrobat twice, gold Adobe, gold.
    http://forums.adobe.com/message/6039529#6039529 - look at this for a working script for Photoshop etc, it's great.Thanks to http://forums.adobe.com/people/PetriRiihikallio for posting this. However, alas, it cannot silently install Acrobat correctly (thus far).
    It appears that the msi builder for CCP for enterprise is fatally flawed. I have never had as much problem with installing msi's -  ever. For example, I have had to re-package the msi multiples times and many times simply running the msi will fail.
    The idea that all major installs have to install the 32 bit version AND the 64 bit version is riduclous, enough said.
    http://blogs.adobe.com/acrolaw/2013/02/acrobat-xi-deployment-guide-for-large-firms/ this guide may be useful for people who have been given a separate serial number.
    http://helpx.adobe.com/acrobat/kb/known-issues-acrobat-xi-reader.html another useful link
    I think for the time being I have now wasted enough time trying to tear my hair out with this. I will be waiting for Adobe to announce Acrobat and Lightroom CC. this will enable the correct deployment of a single app without having the bloat my SOE with unnecessary applications that most staff rarely use. Ahhh, I love a good manual install via VNC/RDP, don't you?

    Hi Waltpenner and others, yes it can be very confusing and writing script after script got me even more confused.
    Now, the story continues, after 6+ hours on the phone with Adobe Support...
    When you install Adobe Acrobat XI it asks you to install the C++ Redistributable package and this is where the msi will STOP INSTALLING. even though the MSI says "complete"
    Now you think to yourself, OK, I'll write a script to install this msi package no problems, solved.
    Nope, the msi for Acrobat Pro XI will Still Halt even if you write this into the script along with halt no err or something similar in your code.
    So what do you do?
    When you create your msi in Cloud Packager, even though this feels completely against your better judgement tick the box under conflicting Process entitled "Ignore Conflicts and Continue installations" This will (finally) allow you to run the msi. Please see the wonderful deployment script above, which you may still need to edit to your needs (I did) - which I post once it's working perfectly.
    You could then install the C++ redist from Microsoft at a later date ----> On that note however (thanks Microsoft for this gem) the Visual C++ redist is an msi for download, but it's actually a zip file calling an exe inside it. I suggest using the App Deploy Repackager  to help you change registry entries if you need to install this, but choose your favourite tool (and no I'm not talking about that work colleague you don't like
    Note: You will need to install this for certain features of Acro Pro XI to function, most of which relates to sever functions of Acrobat. I will post the exact reasons when I find them. Under pressure to get this deployed, I have not deployed this pckage as yet. Also, I'm unsure how Visual C++ will affect other major apps across my enterprise just yet.
    Things to still consider
    Acrobat still installs twice in the program directory (1.7GB nd 1.8GB respectively)
    As all of the other CC packages are quite easy to install, Adobe needs to provide better service to it's enterprise customers by creating a proper version of Acrobat and Lightroom which is Acrobat CC and Lightroom CC, not version numbers tacked onto their new Cloud Service.
    As for the above point I would still recommend creating the smallest msi packages you can, as large msi's that install a number of Apps (eg all of the web/image editing apps) take forever and quite often exhibit install errors
    The amount of time I've spent on this is ridiculous, and we've had to package everything from Office to Autocad.
    The amount of bandwidth I've chewed up is excessive, with package re-creation (download) of all the products probably about 100GB - however the ability to edit these packages with updates with the CCP is a good step forward.
    Using the CCP through a proxy is horrendous, and complicated with the amount of exception through the servers you have to prvide (even then it rarely works).
    The MSI packager still needs quite alot of work. As Petri states why he had to write a script like this when Adobe could have done the same thing is beyond him.
    Adobe needs to trawl it's forum posts and take out the many false leads and dead ends provided by it's experts.
    When I Think of anything else, or wite more scipts I'll let you all know.
    Cheers,

  • I am trying to update ITunes from 10.4 to 10.5 I have tried from both the program, and from a download on Apple's website. Regardless, I get the following error messages: (1) Installation package for iTunes cannot be found. Try installing to find the inst

    I am trying to update ITunes from 10.4 to 10.5 I have tried from both the program, and from a download on Apple's website. Regardless, I get the following error messages: (1) Installation package for iTunes cannot be found. Try installing to find the installation package 'iTunes.msi' in a folder from which you can install iTunes.  I can't find this folder. I have tried to completely unistall iTunes through the Control Panel, but it wouldn't let me: I tried going directly to the files themselves, but cannot uninstall. Any help would be greatly appreciated. System OS: Win XP SP 3.

    Set the permissions for Everyone in the folder in which CCPackager created, to "Read/Write" enabled. This is strange since there is only an administrator account on the Mac (and that account already has read/write), but it seems to resolve the issue.

  • SQLloder scripts not getting generated for CLOBs

    I am trying to migrate MYSQL 3.23 database into Oracle 8.1.7 and after creating the Oracle model and after converting the MYSQL text datatype into CLOB of the Oracle model the SQLloader scripts is not getting generated for CLOB datatypes. I mean the scripts are getting created but there is no change in the script for CLOB datatype.
    The script generates the following for the table containing CLOB datatypes:
    mysqldump -h &lt;HOST&gt; -u &lt;USERNAME&gt; -p&lt;PASSWORD&gt; -T &lt;DESTINATION_PATH&gt; fields-terminated-by="&lt;ec&gt;" lines-terminated-by="&lt;er&gt;" test av_wbt_course
    Please let me know how to load data when the datatype is of CLOB ?

    I was able to resolve this issue by using OWM Oracle Migration instead of using offline method by sqlloader scripts.

  • How to create a dynamic SSIS package for multiple flat file destinations

    Hi,
    I have to create a ssis package which has single data flow task and inside that I have 23 source (sql- select * from - statements)- destination (flat files, 23 distinct) connection.
    Now for each product I have to create separate SSIS package (i.e. if prod=abc then these read select * from abc_tables and 23 abc_ txt files)
    I want to do it dynamically, means only single package and inside that variables will take select * values for each source-dest connection (so i believe 23 variables) and same for destination flat files.
    Let me know. :)
    ANK HIT - if reply helps, please mark it as ANSWER or helpful post

    Sorry It seems you're contradicting yourself. you say I know my source and dest structure and the you're
    asking all I want is to have a dynamic structure
    what does that mean?
    and reading your next sentence
    I want to run a package for 5 products, instead of creating 5 ssis packages with 23 source- dest connection, I would
    like to have one with only 23 source- dest connections 
    What I feel is what you're looking for is to  have a looping structure to loop through each of the 5
    products.
    In that case what you could do is this
    1. Create a object variable in SSIS 
    2. Use a Execute SQL Task to populate the variable with all available products (I think you'll have a master table for that). Set ResultSet property to Full ResultSet and then in ResultSet tab map Object variable to 0 th index
    3. use a ForEachLoop container with ADO .NET recordset enumerator and map to object variable. Create a variable of datatype same as that of Product identifier field to get individual values out
    4. Inside loop create your data flow task with 23 source destination connection. In the query part use a parameter for product field and map it to the variable containing product value to get only data for the product.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Limitation for CLOB columns? - ORA-01704: string literal too long

    Hello!
    I'm trying to update a CLOB column with more than 35000 characteres, but I get "ORA-01704: string literal too long".
    The code:
    declare
    l_clob clob;
    begin
    update test set test = empty_clob()
    WHERE ID = 1
    returning test into l_clob;
    dbms_lob.write( l_clob, length('A...here 35000xA...A'), 1,'A...here 35000xA...A');
    end;
    Is there any limitation for CLOB columns?
    Thanks for help.
    Daniel

    user605489 wrote:
    32768 characteres :)Actually it's 1 character less than 32K...
    *32767*
    SQL> declare
      2    v_vc varchar2(32768);
      3  begin
      4    null;
      5  end;
      6  /
      v_vc varchar2(32768);
    ERROR at line 2:
    ORA-06550: line 2, column 17:
    PLS-00215: String length constraints must be in range (1 .. 32767)
    SQL>I guess it comes from a legacy thing where signed words (2 bytes) are/were used to represent a value. As the most significant bit of the word is used to represent the sign of the number the range goes from -32768 to 32767.

  • Package for InCopy and Email

    I am having trouble with "Package for InCopy and Email" in CS6 on a Mac 10.6.8. My default email is Outlook 2011. I get a blank message window when I try use this option. I end up manually creating the assignment and emailing it. But I would prefer for the email window to open with the package automatically attached. It started happening when I upgraded to CS5.5 and also upgraded from Entourage to Outlook email app. Any thoughts to resolve this issue?

    Adobe didn’t say anything, I did. And I didn’t say it was Microsoft, I said it sounded like an issue with the email program.
    Where does that leave you? Looking for the cause.
    Does any other program cause this? Do you have Acrobat installed? Try to attach a PDF to an email and see if it works.
    Bob

  • Samba 3.2.6 patch for security issue

    I know the security issue is hard to trigger, but I created a new PKGBUILD for samba 3.2.6 containing the patch.
    Excerpt from the patch commentary:
    commit 288fa94ac7cfdf7457b5098c33fc840bed3d5410
    Author: Michael Adam <[email protected]>
    AuthorDate: Thu Dec 18 18:01:55 2008 +0100
    Commit: Karolin Seeger <[email protected]>
    CommitDate: Fri Dec 19 08:30:23 2008 +0100
    smbd: prevent access to root filesystem when connecting with empty service name
    This only applies to a setup with "registry shares = yes"
    Michael
    And here's the PKGBUILD:
    # $Id: PKGBUILD 22200 2008-12-22 22:24:26Z tpowa $
    # Maintainer: judd <[email protected]>
    pkgname=samba
    pkgver=3.2.6
    # We use the 'A' to fake out pacman's version comparators. Samba chooses
    # to append 'a','b',etc to their subsequent releases, which pamcan
    # misconstrues as alpha, beta, etc. Bad samba!
    _realver=3.2.6
    pkgrel=2.1
    pkgdesc="Tools to access a server's filespace and printers via SMB"
    arch=(i686 x86_64)
    url="http://www.samba.org"
    license=('GPL3')
    backup=(etc/logrotate.d/samba etc/pam.d/samba etc/samba/smb.conf etc/xinetd.d/swat etc/conf.d/samba)
    depends=('db>=4.7' 'popt' 'libcups' 'acl' 'libldap' 'smbclient=3.2.6' 'libcap' 'heimdal>=1.2-1' 'pam' 'fam' 'gnutls>=2.4.1' 'tdb=3.2.6')
    options=(!makeflags)
    source=(http://us1.samba.org/samba/ftp/stable/${pkgname}-${_realver}.tar.gz \
    no-clients.patch samba samba.logrotate swat.xinetd samba.pam samba.conf.d \
    ftp://us1.samba.org/pub/samba/patches/security/samba-3.2.6-CVE-2009-0022.patch)
    build() {
    cd ${srcdir}/${pkgname}-${_realver}/source
    patch -Np2 -i ${srcdir}/no-clients.patch || return 1
    patch -Np2 -i ${srcdir}/samba-3.2.6-CVE-2009-0022.patch || return 1
    ./configure --prefix=/usr --with-configdir=/etc/samba \
    --with-lockdir=/var/cache/samba \
    --with-piddir=/var/run/samba \
    --with-fhs --with-pam --with-ads --with-acl-support \
    --without-cifsmount --without-libsmbclient \
    --with-syslog --with-pam_smbpass \
    --localstatedir=/var --disable-dnssd --libdir=/usr/lib/samba
    make || return 1
    mkdir -p ${pkgdir}/var/log/samba
    mkdir -p ${pkgdir}/etc/samba/private
    chmod 700 ${pkgdir}/etc/samba/private
    make DESTDIR=$startdir/pkg install
    chmod 644 ${pkgdir}/usr/include/*.h
    rm -rf ${pkgdir}/usr/var
    (cd script; cp installbin.sh i; cat i | sed 's/\/sbin\///' > installbin.sh)
    install -D -m755 ../../samba ${pkgdir}/etc/rc.d/samba
    install -D -m644 ../../samba.conf.d ${pkgdir}/etc/conf.d/samba
    mkdir -p ${pkgdir}/etc/samba
    cat ../examples/smb.conf.default | \
    sed 's|log file = .*$|log file = /var/log/samba/log.%m|g' >${pkgdir}/etc/samba/smb.conf.default
    install -D -m644 ../../samba.logrotate ${pkgdir}/etc/logrotate.d/samba
    install -D -m644 ../../swat.xinetd ${pkgdir}/etc/xinetd.d/swat
    install -D -m644 ../../samba.pam ${pkgdir}/etc/pam.d/samba
    # symlink libs
    for i in ${pkgdir}/usr/lib/samba/libsmbshare*; do
    ln -sf samba/$(basename $i) ${pkgdir}/usr/lib/$(basename $i)
    done
    # spool directory
    install -d -m1777 ${pkgdir}/var/spool/samba
    sed -i 's|/usr/spool/samba|/var/spool/samba|g' ${pkgdir}/etc/samba/smb.conf.default
    # fix logrotate
    sed -i -e 's|log.%m|%m.log|g' ${pkgdir}/etc/samba/smb.conf.default
    # nsswitch libraries
    install -D -m755 nsswitch/libnss_wins.so ${pkgdir}/lib/libnss_wins.so
    ln -s libnss_wins.so ${pkgdir}/lib/libnss_wins.so.2
    install -D -m755 nsswitch/libnss_winbind.so ${pkgdir}/lib/libnss_winbind.so
    install -D -m755 bin/pam_winbind.so ${pkgdir}/lib/security/pam_winbind.so
    # remove conflict files of smbclient and tdb
    for man in libsmbclient smbspool \
    umount.cifs mount.cifs net; do
    rm -f ${pkgdir}/usr/share/man/man8/${man}.8
    done
    for i in libnetapi* libtdb* libtalloc* libwbclient*; do
    rm -f ${pkgdir}/usr/lib/samba/$i
    done
    rm -f ${pkgdir}/usr/bin/tdbbackup
    rm -f ${pkgdir}/usr/include/{tdb.h,talloc.h,netapi.h}
    for man in rpcclient smbcacls smbclient smbcquotas \
    smbtree smbtar nmblookup smbget; do
    rm -f ${pkgdir}/usr/share/man/man1/${man}.1
    done
    rm -f ${pkgdir}/usr/share/man/man7/libsmbclient.7
    rm -f ${pkgdir}/usr/include/libsmbclient.h
    md5sums=('0cd27c7afbb8211616eea4010f32271c'
    'a676f0dde2c434aeb5125376b8797a64'
    'e93533fa2296c07c1f645dfdd373657f'
    '5697da77590ec092cc8a883bae06093c'
    'a4bbfa39fee95bba2e7ad6b535fae7e6'
    '96f82c38f3f540b53f3e5144900acf17'
    'f2f2e348acd1ccb566e95fa8a561b828'
    'e15ab37115101cf3a8d110f0c1f8e29e')
    I think a security task force should be initiated (I know discussions existed, but I don't know what were the consequences), so that important packages (like those providing services) could be updated in a timely manner. This is a minor issue as I stated earlier, but it could be worse. Those interested, let's initiate a discussion with the developers of important packages and try to get some things working. People (mostly trusted users) who can generate early packages are welcome, so that they can provide early versions of unvulnerable packages.

    ckristi wrote:I don't know about other packages, but I believe when I checked the PKGBUILD for PHP, that the security fix was included in 5.2.7.
    Check http://repos.archlinux.org/viewvc.cgi/p … iew=markup for more info.
    And don't get me wrong, I am a little bit concerned about the way vulnerabilities are treated in Arch, 'cause my home server is running this distro.
    And I really would think we should start some serious discussions about this security issues and the way they should be treated. I know the developers are doing their best and I'm not going to put fingers at all. They should be helped in maintaining packages for important services. We'll benefit from it and their tasks would be easier.
    Why don't you start a wiki page tracking the latest vulnerabilities disclosed on various security mailing lists which are not fixed in arch. This will make it much easier for the devs.
    This thing has been already discussed multiple times and already a wiki page exists for Arch Security Team but it seems nobody followed up with that.
    http://wiki.archlinux.org/index.php/Security_Task_Force

  • ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion

    Hi all,
    the following query select to_char(nvl(round(pc.target_cost*xx_primavera.geteurtolvrate,2),amount),'FM999G999G999G999G990D00') detail_amount,
    nvl(ct.cost_type, description) detail_description,
    tm_desc.memo_id,
    primavera_prj_name detail_prj_name,
    hp.party_number detail_party_number,
    xpid.interface_line_attribute1,
    utl_i18n.unescape_reference(replace(regexp_replace(utl_raw.cast_to_varchar2(tm_desc.task_memo), '<[^>]*>'), chr(13)||chr(10))) document_description,
    REPLACE(regexp_replace(utl_raw.cast_to_varchar2(tm_id.task_memo), '<[^>]*>'), chr(13)||chr(10)) prim_memo_client_id
    from XX_PRIMAVERA_INVOICES_DETAIL xpid
    join admuser.xx_ar_hz_parties xahp on xahp.orig_system_bill_customer_id = xpid.orig_system_bill_customer_id
    join hz_parties hp on hp.party_id = xahp.party_id
    left join admuser.projcost pc on pc.proj_id = xpid.primavera_prj_id and pc.cost_type_id != 29 and xpid.service_code = 8 and pc.task_id = xx_primavera.getTaskId(xpid.primavera_prj_id,'A1020', 'Изготвяне на оферта') and delete_session_id is null
    left join admuser.costtype ct on ct.cost_type_id = pc.cost_type_id
    left join admuser.taskmemo tm_id on tm_id.proj_id = xpid.primavera_prj_id and tm_id.memo_type_id = 53 and tm_id.task_id = xx_primavera.getTaskId(xpid.primavera_prj_id,'A1020', 'Изготвяне на оферта')
    left join admuser.taskmemo tm_desc on tm_desc.proj_id = xpid.primavera_prj_id and tm_desc.memo_type_id = 55 and tm_desc.task_id = xx_primavera.getTaskId(xpid.primavera_prj_id,'A1020', 'Изготвяне на оферта')
    where amount != 0
      and xpid.interface_line_attribute1 = :ra_ctp_attribute1
    ORDER BY xpid.primavera_prj_name, xpid.description;returns error:
    ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 2371, maximum: 2000) I found that the error occurs in the row : utl_i18n.unescape_reference(replace(regexp_replace(utl_raw.cast_to_varchar2(tm_desc.task_memo), '<[^>]*>'), chr(13)||chr(10))) document_description,and tried to change it to: utl_i18n.unescape_reference(replace(regexp_replace(utl_raw.cast_to_varchar2(dbms_lob.substr(tm_desc.task_memo,1,2000)), '<[^>]*>'), chr(13)||chr(10))) document_description,....but it returns not value for that field... am i using dbms_lob.substr at the wrong place? The column 'tm_desc.task_memo' is BLOB type.
    Any ideas how to cheat it ?
    Version: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    "CORE     11.1.0.7.0     Production"
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - ProductionThanks in advance,
    Bahchevanov.

    Your second example has the parameters reversed. The amount (length) comes first and then the offset:
    DBMS_LOB.SUBSTR (
       lob_loc     IN    BLOB,
       amount      IN    INTEGER := 32767,
       offset      IN    INTEGER := 1)
      RETURN RAW;
    DBMS_LOB.SUBSTR (
       lob_loc     IN    CLOB   CHARACTER SET ANY_CS,
       amount      IN    INTEGER := 32767,
       offset      IN    INTEGER := 1)
      RETURN VARCHAR2 CHARACTER SET lob_loc%CHARSET;
    DBMS_LOB.SUBSTR (
       file_loc     IN    BFILE,
       amount      IN    INTEGER := 32767,
       offset      IN    INTEGER := 1)
      RETURN RAW;Also, remember that # of bytes is not necessarily the same as the # of characters depending on your character set. So 2000 bytes might become 4000 characters. And you have to make sure the BLOB is actually character data and not arbitrary binary data.
    Post the results of reversing the parameters and using a smaller chunk size.

  • ESS Business Package for SAPNW04s EP 7.0

    Hi,
        What is the Business Package i have to apply for J2EE7.0 version.Please guide me in this issue.
    With Regards
    Pradeep.B

    Hi Pradeep,
    This choice depends <b>more</b> on your back-end version then on your portal version.
    Please look here:  https://www.sdn.sap.com/irj/sdn/contentportfolio
    As you can see there are 3 BP's for ESS
    1. Business Package for Employee Self-Service (mySAP ERP 2004)  [BP v60.2]  
    2. Business Package for Employee Self-Service (mySAP ERP) [BP v1.0]
    3. Business Package for Employee Self-Service 4.6C - 4.7  [BP v50.4]
    option 1 and 2 can 100% run on EP7.0 as it is stated in there discription.
    option 3 is not released to run on EP7.0 but from my experiance at a customer that implemented this, it works fine.
    Good luck,
    Cheers,
    Benjamin Houttuin

  • Intall Business Package for Supplier Collaboration 4.0

    Hi Guys,
       I'm going to install Business Package for Supplier Collaboration 4.0, base of  SAP  note1226557, I need these below SCA files:
    The download file on SAP Services Marketplace contains two SCAs:
    SUPPORTAL00_0.sca: BP Sup Col 4.0 Web Dynpro application for NW 2004s.
    SUPPORTALCONT00_0.sca: BP Sup Col 4.0 portal content for EP 7.0
    I found
    SUPPORTALCONT00_0.sca: BP Sup Col 4.0 portal content for EP 7.0
    Any idea where can I find the other:
    SUPPORTAL00_0.sca: BP Sup Col 4.0 Web Dynpro application for NW 2004s.
    Thanks for the help:)

    Hi Mar,
    Could you kindly tell me how did you resolved the issue?
    Thanks
    Prabhu.M...

  • Business Package for MDM 5.5 SP3

    Hi
    We are struggeling a little bit with the connection to the MDM Server.
    Portal version = NW04 Stack14, MDM version = 5.5 SP3 and the Business Package for MDM has been installed in the EP.
    SAP EP on a single server, MDM on a single server.
    In the documentation for the Busines Package for MDM at page 4 where we are "Creating Portal Systems Objects for Custom Repositories", I have a question regarding the MDM server references.
    Step 1. System adm - System conf - System Landscape - My folder - New - System - MDM Server - Next
    Step 2. System name= MDM, ID=mdm, prefix=com.xx, Language = English, Description = My test - Next
    Step 3. MDM Server = ???? The host of which the MDM server is running or the MDM server itself - and which password should we use, The password for the host, the MDM server or the database????
    Regards
    Kay-Arne

    Hi.
    I managed to solve this issue by myself:)
    I think the error is that I used the system templates from sp2....
    Either way, i created a system from par "com.sap.pct.mdm.tech.systems" and filled in name, id, prefix, language and description. From there I opened the object, selected:
    Usermanagement
        - Usermapping: admin,user
    Connection properties
        - MDM 5.5 Host Server: Myserver
        - Repository Language:  English [US]
        - Repository Port:     2005
        - Schema Language:     English [US]
    System Aliases:
        - My_MDM
    Saved the object
    Maintained the userid and password through Personalize
    Connection Test - and it works
    From there I created a iView (MDM) and followed the wizard
    Regards
    Kay-Arne

  • Business Package for DMS Connector for KM

    Hi,
    We have installed the Business Package for DMS Connector for KM 1.0
    after downloading from the SolMan. After the install we wish to
    configure it to point to the proper repository in our R/3 landscape.
    But when we go to System Administration->System Configuration-
    >Knowledge Management ->Content Management ->Repository Managers we do
    not see a repository called DMSRMRepositoryManager. We are stuck
    without this as the iView: Document Explorer is not working.
    Please let us know what is the problem with this.
    We are on
    1) ECC6.0
    2) EP7.0 SPS10
    3) Business Package for DMS Connector for KM 1.0
    Regards
    Jay Kapadia

    Hi,
    I had the same problems.
    Better you open a message to this issue.
    In the Business package there should be two files.
    epa and ear
    regards,
    Darijo

Maybe you are looking for

  • Performance Issues with Debugging even in Display Mode

    Hi not certain if this would sit in Security, ABAP or Basis, but lets start here as it is security related. S_DEVELOP with any activity on DEBUG on a production system is a concern, but what are the performance related issues when a super user has to

  • Missing version field in response...( Tomcat, JBuilder )

    Hello, (Sorry for a long message, but I saw several times messages with the only response like "write more details...") I'm trying to execute a simple Web Start application using version-based download. I'm constantly receiving the following error: M

  • Jittery USB mouse

    Jittery USB mice, Please help! I have three USB mice to use with my Macbook Pro (10.7.3) The mice are: Logitech Anywhere MX Microsoft Mobile mouse 6500 Microsoft Mobile mouse 4500 Each mouse has new batteries, and is less than a year old. The motion

  • Reading an external property file for adapter configurations (How-To)

    One thing that has bugged me is having to change an Adapter's property settings in the context file and then build and re-deploy the bundle to effect those changes. This really becomes a problem when you want to test a bundle in different server envi

  • Powershell import-spweb fails with "parent does not exist" error.

    So, I have a sp 2010 site at http://myfarm/sites/it/d22 and I want to copy the contents to http://myfarm/sites/bb/d62 . I perform Export-SPWeb -Identity  http://myfarm/sites/it/d22  -Path d:\temp\d22  -IncludeUserSecurity –IncludeVersions All  -NoFil