DDE Package refusing to take more than 265 CHAR

Dear all,
i'm using Oracle 9i, i'm using the DDE package to get data from Excell
this is my code
     DECLARE
     CONVID PLS_INTEGER;
     AppId PLS_INTEGER;
     BUFFER VARCHAR2(5000);
     LEN NUMBER;
BEGIN
AppId := Dde.App_Begin('C:\Program Files\Microsoft Office\OFFICE11\Excel.exe C:\abc.xls' , DDE.APP_MODE_MAXIMIZED );
CONVID := DDE.INITIATE('EXCEL','C:\abc.xls');
DDE.REQUEST(CONVID,'R7C6',BUFFER,DDE.CF_TEXT,10000);
:DATA:= BUFFER;
DDE.TERMINATE(CONVID);
DDE.APP_END(APPID);
END;
the R7C6 cell contain a text of 270 character. in the buffere it is returning only 265 character.
if anyone please can tell me what cuase this.
Message was edited by:
nbreik

If changing the data type to CLOB is NOT a option at the moment then you can work around using DBMS_SQL to get the LENGTH of the LONG column.
Something Like what I have below (Not tested) –
In this Function, I am passing the “Id” <Key> of the record to search and check the length of the LONG column. You can chose to pass ROWID instead.
Declare
lRtnLen Number := 0;
FUNCTION fn_len_long_str ( p_RecId In Number )
RETURN number As
mycursor Integer default DBMS_SQL.open_cursor;
l_x number;
l_long_value varchar2(32760);
l_len_of_long number;
l_blen number := 32760;
l_pos number := 0;
BEGIN
DBMS_SQL.parse( mycursor, 'select col2 from Test3 Where Col1 = :pCol2',
dbms_sql.native );
DBMS_SQL.bind_variable( mycursor, ':pCol2', pId );
DBMS_SQL.define_column_long(mycursor, 1);
l_x := DBMS_SQL.execute(mycursor);
if (dbms_sql.fetch_rows(mycursor)>0)
then
loop
DBMS_SQL.column_value_long(mycursor, 1, l_blen,
l_pos ,
l_long_value, l_len_of_long );
l_curpos := l_pos + l_len_of_long;
EXIT when l_len_of_long = 0;
end loop;
end if;
DBMS_SQL.close_cursor(mycursor);
RETURN l_curpos;
exception
when others then
END fn_len_long_str;
Begin
lRtnLen := fn_len_long_str (Pk_Of_The_Table);
Dbms_output.Put_Line ('Len Of LONG = ' || lRtnLen);
End;
/

Similar Messages

  • Splitting an event takes more than 3 min

    Hi,
    I have about 8.000 photos in my library and 2.500 photos in a single event. Now I want to extract a set of pictures from this event and move it in a new event. Is there a faster way doing this than splitting the event before and after the set of pictures? This created 3 events and then I have to move the 3rd event back into the first, the 2nd event is what I want to keep.
    BTW, with over 8.000 pictures in the library, is it normal that splitting an event takes more than 3 minutes?

    Danielle
    Flag the pics you want to move to the new Event and the go Events -> Create Event from Flagged Photos. That will probably be faster.
    BTW, with over 8.000 pictures in the library, is it normal that splitting an event takes more than 3 minutes?
    I wouldn't have thought so, but it might take a while with an Event that has more that 2,500 pics in it. Remember, Events in the iPhoto Window correspond exactly with the Folders in the Originals Folder in the iPhoto Library package file (Right click on it in the Pictures Folder -> Show Package Contents). So splitting an event literally means creating a folder and moving files to it and so on.
    Regards
    TD

  • I used scripting brigde to add a movie that has size bigger than 5GB, exactly after two minutes iTunes return a failed, but the processing of the file is actually added to iTunes Library successfully. The copying take more than 5 minutes to complete. Why?

    I used scripting brigde to add a movie that has size bigger than 5GB, exactly after two minutes iTunes return a failed, but the processing of the file is actually added to iTunes Library successfully. The copying take more than 5 minutes to complete. Why the iTunes Scripting Brigde returned failed when it is actually success? It occurred exactly 2 minutes after submit the request to Scripting Brigde. Is this 2 minutes related to the Apple Event time out? if it does, how do I get around this problem? thx

    I can tell you that this is some of the absolutely worst customer service I have ever dealt with. I found out from a store employee that when they are really busy with calls, they have third party companies taking overflow calls. One of those companies is Xerox. What can a Xerox call center rep possibly be able to authorize on a Verizon account?  I'm Sure there is a ton of misinformation out there due to this. They don't note the accounts properly or so everyone can see them. I have been transferred before and have asked if they work for Verizon or a third party also and was refused an answer so, apparently they aren't required to disclose that information. I spent a long time in the store on my last visit and it's not just customers that get the runaround. It happens to the store employees as well and it's beyond frustrating.

  • 10g Full Database Dump Takes more than 2 Hours Still not finished

    Hi all,
    Full Database Dump Takes more than 2 Hours, Still not finished.
    Version - Oracle 10g 1.0.2.0
    Database Size is Around 160GB.
    Used Below Query to take Full Database Dump.
    expdp user/pwd@10gdb full=y directory=test_dir dumpfile=curent10g.dmp logfile=expdpcurent10g.log;
    It takes more than 1 hour in processing the functions.i.e)
    Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION
    And the Log File:
    Export: Release 10.1.0.2.0 - Production on Friday, 04 May, 2012 10:17
    Copyright (c) 2003, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    FLASHBACK automatically enabled to preserve database integrity.
    Starting "EXPTEST"."SYS_EXPORT_FULL_02": exptest/********@curentdb full=Y directory=test_dir dumpfile=curent10g.dmp logfile=expdpcurent10g.log;
    Estimate in progress using BLOCKS method...
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 4.574 GB
    Processing object type DATABASE_EXPORT/TABLESPACE
    Processing object type DATABASE_EXPORT/DE_SYS_USER/USER
    Processing object type DATABASE_EXPORT/SCHEMA/USER
    Processing object type DATABASE_EXPORT/ROLE
    Processing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/GRANT/SYSTEM_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/ROLE_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE
    Processing object type DATABASE_EXPORT/SCHEMA/TABLESPACE_QUOTA
    Processing object type DATABASE_EXPORT/RESOURCE_COST
    Processing object type DATABASE_EXPORT/SCHEMA/DB_LINK
    Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK
    Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE
    Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/GRANT/DE_S_SEQ_OWNER_OBJGRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/DIRECTORY/DIRECTORY
    Processing object type DATABASE_EXPORT/DIRECTORY/GRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/CONTEXT
    Processing object type DATABASE_EXPORT/SCHEMA/DE_PUBLIC_SYNONYM/SYNONYM
    Processing object type DATABASE_EXPORT/SCHEMA/SYNONYM
    Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC
    Processing object type DATABASE_EXPORT/DE_SYSTEM_PROCOBJACT/DE_PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/DE_SYSTEM_PROCOBJACT/DE_POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/PRE_TABLE_ACTION
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/DE_S_TABLE_OWNER_OBJGRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/DE_S_TABLE_NOTWGO_OBJGRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEX
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/STATISTICS/TABLE_STATISTICS
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/COMMENT
    Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/PACKAGE_SPEC
    Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/GRANT/DE_S_PACKAGE_OWNER_OBJGRANT/OBJECT_GRANT
    Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION
    Help me.

    Export is Still in progress
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Job: SYS_EXPORT_FULL_02
    Owner: EXPTEST
    Operation: EXPORT
    Creator Privs: FALSE
    GUID: 94AB0C8AA824462AA96C8481CF0F676F
    Start Time: Friday, 04 May, 2012 10:18
    Mode: FULL
    Instance: curentdb
    Max Parallelism: 1
    EXPORT Job Parameters:
    Parameter Name Parameter Value:
    CLIENT_COMMAND userexp/********@curentdb full=Y directory=test_dir dumpfile=curent10g.dmp logfile=expdpcurent10g.log;
    DATA_ACCESS_METHOD AUTOMATIC
    ESTIMATE BLOCKS
    INCLUDE_METADATA 1
    LOG_FILE_DIRECTORY TEST_DIR
    LOG_FILE_NAME expdpcurent10g.log;
    TABLE_CONSISTENCY 0
    State: EXECUTING
    Bytes Processed: 0
    Current Parallelism: 1
    Job Error Count: 0
    Dump File: C:\ORACLE DMP\CURENT10G.DMP
    bytes written: 4,096
    Worker 1 Status:
    State: EXECUTING
    Object Schema: PUBLIC
    Object Type: DATABASE_EXPORT/SCHEMA/PACKAGE/GRANT/DE_S_PACKAGE_OWNER_OBJGRANT/OBJECT_GRANT
    Completed Objects: 1
    Total Objects: 1
    What Does it mean, Suggest.

  • When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    mostafa182 wrote:
    ... how I can solve this problem?
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • MacBook pro takes more than 10 minutes to start with ML ?

    My Macbook pro takes more than 10 minutes to start. I press Start and it takes more than 10 minutes before I can enter my password. Need your help !

    Sounds like time for a PRAM reset. Here's how:
    1. Power down the machine.
    2. Locate the following keys on your keyboard in preparation for Step 4:
    ‘command’ – ‘option’ – ‘P’ – ‘R’
    3. Press the ‘power on’ button.
    4. Immediately – and before the grey screen appears – hold down ‘command-option-P-R’ all together.
    5. Keep them held down until you’ve heard the start-up chime twice. After you release them you should hear it again, and hopefully your Mac will boot up as normal.

  • I am having the  problem . it says it shouldnt take more than 3 minutes then i get this message Could not activate iphone. i have taken the sim card out and put it back in even then its of no use. if any one out there can help us it would be very nice

    i am having the  problem in my 3gs iphone. it says it shouldnt take more than 3 minutes then i get this message Could not activate iphone.
    i have taken the sim card out and put it back in even then its of no use.
    if any one out there can help us it would be very nice of them. thank you for your time.

    I can not get to iPhone screen, so no way to get to Settings. That is the problem. When I connect phone to iTunes I get screen asking to insert SIN card. On the phone I'm getting Cinfigure screen asking Launguage , Country or Region, Wi-Fi, ( I can connect to my home wi-fi), and last screen "Activating your iPhone". After two minutes of waiting IM getting message: Your iPhone could not be activated because the activation server in temporary unavailable. try connecting to iTunes or try later or contat apple.com/support.
    Like I mention, I went to Bell as well Rogers store and tried to insert active SIM card with no results.
    Yes, my friend unlock the phone to use with Rogers but I don't know where

  • How to make an indicator takes more than one input

    Hello,
    I want to know how to make an indicator ( like gauge for example) response to more than one case strrcuture result. In other words, how the indicator can take more than one input and move based on different input values ( the arrow of the gauge moves to different angles basesed on the logic structure and not only to one degree).
    Thanks in advance,
     

    YES, you got it right Coastal !
    This is what i want to do,
    I dont know how to establish this output in the software, i am still learning LabVIEW.
    I put a merge block to join the outputs but it didnt work.
    check it in the attached VI file.
    I am sure it is an easy thing but I dont know how to implement it.
    Any help you provide is appreciated,
    Best wishes 

  • I have been using USB 2.1 10/100M ethernet adaptor. But it takes more than 15 mins to detect network interface. What should I do. I am not using apple's company adaptor. It's local company.

    I have been using USB 2.1 10/100M ethernet adaptor. But it takes more than 15 mins to detect network interface. What should I do. I am not using apple's company adaptor. It's local company.

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • Is it normal if it takes more than 5 hrs to download and process ios 5 and backup in itunes (syncing)

    is it normal if it takes more than 5 hrs to download and process ios 5 and backup in itunes (syncing)

    Hi Thaimic,
    Thanks for your reply.
    IP Adddress: 192.168.0.101
    Subnetmask: 255.255.255.0
    Router: 192.168.0.7
    DNS: 180.168.255.118, 192.168.1.1
    These are my WLAN details.under DHCP and BootP. Could you please tell me what to do with the DNS ? I do not have idea about the DNS.

  • When I restart my Mac, the grey screen appears like usual. But it takes more than 40 minutes (more) for it to load to finish restarting the Mac. What should I do?!

    When I restart my Mac, the grey screen appears like usual. But it takes more than 40 minutes (or more) for it to load to finish restarting the Mac. What should I do to fix it?!

    Disconnect all devices from your computer if you have not already done so.  Restart again.  If the problem has been resolved, you had a peripheral conflict.  You will then have to reconnect the devices one at time, restart,  to locate the culprit.
    Login Items is another culprit.  Check your login items.
    System Preferences>Accounts>Login Items
    Delete/disable all you do not need or want.

  • Is it true that iPhone 4s does not allow to take more than 1000 photos?

    Hi!
    Is it true that iPhone 4s does not allow to take more than 1000 photos?
    http://dolboeb.livejournal.com/2299939.html

    Not true.
    Only Photostream is allowed to take a max of 1000 photos, then they will be removed from server/icloud.

  • RMAN archive backup takes more than 1 hour.

    Hello,
    We execute the following command from HP Data Protector 5.50 in order to backup archives from an Oracle 8.1.7 database running in HP-UX 11.00:
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=inf,OB2BARLIST=Oracle_Archivers_Inf)';
    allocate channel 'dev_1' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=inf,OB2BARLIST=Oracle_Archivers_Inf)';
    allocate channel 'dev_2' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=inf,OB2BARLIST=Oracle_Archivers_Inf)';
    sql 'alter system switch logfile'
    sql 'alter system archive log current'
    backup
    filesperset 1
    format 'Oracle_Archivers_Inf<inf_%s:%t:%p>.dbf'
    archivelog until time 'SYSDATE-2'
    delete input;
    backup
    filesperset 1
    format 'Oracle_Archivers_Inf<inf_%s:%t:%p>.dbf'
    archivelog all;
    This process takes more than 2 hours for just 3 GB and we don't think this is network issue.
    Is our RMAN command doing more thinks than just archives backup?
    Almost at the end of backup we get following message:
    Default exp binary /INF/oracle/app/product/8.1.7/bin/exp/ is used for catalog export.
    Does this message mean an export is done at the end of archive backup?
    Note that message belongs it is more than 2 hours later.
    Thanks in advance for your help.
    Regards,
    Carles

    Yes, it appears one of your utilities is doing an export backup, check HP Data Protector settings.
    -- and/or -- you are having tape problems: ... type[b] 'sbt_tape'

  • Ldap search query takes more than 10 seconds

    LDAP query takes more than 10 seconds to execute.
    For validating the policy configured, the Acess Manager(Sun Java System Access Manager) contacts the LDAP (Sun Java System Directory Server 6.2) to get the users in a dynamic group. The time out value configured in Access Manager for LDAP searches is 10 seconds.
    Issue : The ldap query takes more than 10 seconds to execute at some times .
    The query is executing with less than 10 seconds in most of the cases, but it takes more than 10 seconds in some cases. The total number of users available in the ldap is less than 1500.
    7 etime =1
    6 etime =1
    102 etime=4
    51 etime=5
    26 etime=6
    5 etime=7
    4 etime=8
    From the ldap access logs we can see the following entry,some times the query takes more than 10 seconds,
    [28/May/2012:14:21:26 +0200] conn=281 op=41433 msgId=853995 - SRCH base="dc=****,dc=****,dc=com" scope=2 filter="(&(&(***=true)(**=true))(objectClass=vfperson))" attrs=ALL
    [28/May/2012:14:21:36 +0200] conn=281 op=41434 msgId=854001 - ABANDON targetop=41433 msgid=853995 nentries=884 etime=10
    The query was aborted by the access manger after 10 seconds.
    Please post your suggestions to resolve this issue .
    1.How we can find out , why the query is taking more than 10 seconds ?
    2.Next steps to resolve this issue .

    Hi Marco,
    Thanks for your suggestions.
    Sorry for replying late. I was out of office for few weeks.
    1) Have you already tuned the caches? (entry cache, db cache, filesystem cache?)
    We are using db cache and we have not done any turning for cache. The application was working fine and there was no much changes in the number of users .
    2) Unfortunately we don't have direct access to the environment and we have contacted the responsible team to verify the server health during the issue .
    Regarding the IO operations we can see that, load balancer is pinging the ldap sever every 15 seconds to check the status of ldap servers which yields a new connection on every hit. (on average per minute 8 connections - )
    3) We using cn=dsameuser to bind the directory server. Other configuration details for ldap
    LDAP Connection Pool Minimum Size: 1
    LDAP Connection Pool Maximum Size:10
    Maximum Results Returned from Search: 1700
    Search Timeout: 10
    Is the Search Timeout value configured is proper ? ( We have less than 1500 user in the ldap server).
    Also is there any impact if the value Maximum Results Returned from Search = set to 1700. ( The Sun document for AM says that the ideal value for this is 1000 and if its higher than this it will impact performance.
    The application was running without time out issue for last 2 years and there was no much increase in the number of users in the system. ( at the max 200 users added to the system in last 2 years.)
    Thanks,
    Jay

  • QUERY TAKES MORE THAN 30 MINUTES AND IT'S CANCELED

    Hi
    I have one workbook and sometimes it takes more than 30 minutes to be executed, but Discoverer cancels it, Does anybody know how to alter this? I mean if the query takes more than 30 minutes i need it to be finished.
    Any help will be appreciated.
    Best Regards
    Yuri López

    Hi
    You need to alter the timeout settings and these are located in multiple places.
    Discoverer Plus / Viewer using this workflow:
    1. Edit the pref.txt file on the server located here: $ORACLE_HOME\discoverer\util
    2. Locate the preference called Timeout and change it to your desired value in seconds. The default is 1800 which means 30 minutes
    3. Save pref.txt
    4. Execute applypreferences.bat if running on Windows or applypreferences.sh if running on Linux or Unix
    5. Stop and restart the Discoverer server
    Discoverer Administrator using this workflow:
    1. Launch Discoverer Administrator
    2. From the menu bar, select Tools | Privileges
    3. Select the user
    4. Open the Query Governor tab
    5. If "Prevent queries from running longer than" is checked, increase the limit
    6. Click OK
    Note: if "Prevent queries from running longer than" is not checked then the Timout in the pref.txt controls how long before the queries stop. If it is checked and it is lower than Timeout you need to increase it.
    Let me know if this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

Maybe you are looking for

  • Problem with adobe pdf viewer plug-in for safari

    I recently updated from adobe reader 8 to adobe reader 9 and now pdf documents that I view on Safari won't open. I get this message that says 'adobepdfviewer does not recognize a compatible adobe acrobat or adobe reader program' This is really strang

  • How do i know what version of the Firmware Upgrade 1.01

    Op ps. What i was trying to say is how do i know what version of the firmware does my player have installed on it, I have a 28mb MuVo V200 and i was thinking of downloading the Firmware Upgrade .0.03 but i do not know if my player already has iMessag

  • Saving an XML File

    If I try to save a file (well-formed xml) with the extension of .xml through NTFS protocol I get an error. Same xml file but with a .txt extension is saved fine. This file is created with Notepad. Using Win2000 and iFS1.1. Thanks for any help. Error

  • Another question about a VI I obtained from a NI forum.

    The append_column VI attached below has two FOR LOOPs. When this VI is executed The first FOR LOOP executes 10 times as indicated by the CONSTANT 10 wired to the [COUNT] or [N]. My question falls after the first FOR LOOP is complete. How is the secon

  • Create Multilevel Standby database

    HI All, We have a 10.2.0.2 primary database with a physical standby database. We would like to create 2 more physical standby databases for the same primary but, we dont want to have the logs shipping from primary database as it is prod. Is there any