Replication of LONG fields?
We are trying to use Oracle8i Lite 4.0.0.1.0 together with replicated tables. Our master tables are containing LONG fields, which have to be replicated to the Clients and vice versa. We are using Delphi5 to read/write from/to the Clients. We do not have the know how on using Java stored procedures. The only thing we want is to store RTF (RichText) formatted data together with some other fields from a Delphi5 application to an OLite database and replicate it.
Since the Release notes say, that there is no way to replicate LONG fields with OLite, we have tried to use LOBs instead. But this is much too complex (especially when using Delphi)! Is there an easier way to achieve this? (The RTF data to be stored is about 2 to 8 kBytes for each record.)
Thanks
Michael Peters
Oracle does not support replication of long raw columns. Migrate long raw to blob and yuoa can replicate it. You you can not migrate long raw then you must write your's private replication mechanism.
Similar Messages
-
Display Long field Description in 2 lines in Header when using REUSE_ALV_HI
Hi,
I am using REUSE_ALV_HIERSEQ_LIST_DISPLAY .
I need to have 2 lines in the header to display long field descriptions like
Ex Shipment Notification Idoc or Billing Document Cancel should appear as
Shipment Notification Billing Document
Idoc Cancel
Is there a way of doing this when calling the above ALV function?
Thanks
PrashantHi Prashanta ,
We can give headers in ALV using short/medium/long text.
And this comes in one line. You can use short/medium text, if possible.
Hence , having 2 lines in the header to display long field descriptions is not possible.
Hope this helps you. -
Hi,
I have a table with many LONG fields (28). So far, everythings works fine.
However, if I add another LONG field I cannot insert a dataset anymore
(29 LONG fields).
Does there exist a MaxDB parameter or anything else I can change to make inserts possible again?
Thanks in advance
Michael
appendix:
- Create and Insert command and error message
- MaxDB version and its parameters
Create and Insert command and error message
CREATE TABLE "DBA"."AZ_Z_TEST02"
"ZTB_ID" Integer NOT NULL,
"ZTB_NAMEOFREPORT" Char (400) ASCII DEFAULT '',
"ZTB_LONG_COMMENT" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_00" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_01" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_02" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_03" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_04" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_05" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_06" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_07" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_08" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_09" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_10" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_11" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_12" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_13" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_14" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_15" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_16" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_17" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_18" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_19" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_20" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_21" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_22" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_23" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_24" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_25" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_26" LONG ASCII DEFAULT '',
PRIMARY KEY ("ZTB_ID")
The insert command
INSERT INTO AZ_Z_TEST02 SET ztb_id = 87
works fine. If I add the LONG field
"ZTB_LONG_TEXTBLOCK_27" LONG ASCII DEFAULT '',
the following error occurs:
Auto Commit: On, SQL Mode: Internal, Isolation Level: Committed
General error;-7032 POS(1) SQL statement not allowed for column of data type LONG
INSERT INTO AZ_Z_TEST02 SET ztb_id = 88
MaxDB version and its parameters
All db params given by
dbmcli -d myDB -u dbm,dbm param_directgetall > maxdb_params.txt
are
KERNELVERSION KERNEL 7.5.0 BUILD 026-123-094-430
INSTANCE_TYPE OLTP
MCOD NO
RESTART_SHUTDOWN MANUAL
SERVERDBFOR_SAP YES
_UNICODE NO
DEFAULT_CODE ASCII
DATE_TIME_FORMAT INTERNAL
CONTROLUSERID DBM
CONTROLPASSWORD
MAXLOGVOLUMES 10
MAXDATAVOLUMES 11
LOG_VOLUME_NAME_001 LOG_001
LOG_VOLUME_TYPE_001 F
LOG_VOLUME_SIZE_001 64000
DATA_VOLUME_NAME_0001 DAT_0001
DATA_VOLUME_TYPE_0001 F
DATA_VOLUME_SIZE_0001 64000
DATA_VOLUME_MODE_0001 NORMAL
DATA_VOLUME_GROUPS 1
LOG_BACKUP_TO_PIPE NO
MAXBACKUPDEVS 2
BACKUP_BLOCK_CNT 8
LOG_MIRRORED NO
MAXVOLUMES 22
MULTIO_BLOCK_CNT 4
DELAYLOGWRITER 0
LOG_IO_QUEUE 50
RESTARTTIME 600
MAXCPU 1
MAXUSERTASKS 50
TRANSRGNS 8
TABRGNS 8
OMSREGIONS 0
OMSRGNS 25
OMS_HEAP_LIMIT 0
OMS_HEAP_COUNT 1
OMS_HEAP_BLOCKSIZE 10000
OMS_HEAP_THRESHOLD 100
OMS_VERS_THRESHOLD 2097152
HEAP_CHECK_LEVEL 0
ROWRGNS 8
MINSERVER_DESC 16
MAXSERVERTASKS 20
_MAXTRANS 288
MAXLOCKS 2880
LOCKSUPPLY_BLOCK 100
DEADLOCK_DETECTION 4
SESSION_TIMEOUT 900
OMS_STREAM_TIMEOUT 30
REQUEST_TIMEOUT 5000
USEASYNC_IO YES
IOPROCSPER_DEV 1
IOPROCSFOR_PRIO 1
USEIOPROCS_ONLY NO
IOPROCSSWITCH 2
LRU_FOR_SCAN NO
PAGESIZE 8192
PACKETSIZE 36864
MINREPLYSIZE 4096
MBLOCKDATA_SIZE 32768
MBLOCKQUAL_SIZE 16384
MBLOCKSTACK_SIZE 16384
MBLOCKSTRAT_SIZE 8192
WORKSTACKSIZE 16384
WORKDATASIZE 8192
CATCACHE_MINSIZE 262144
CAT_CACHE_SUPPLY 1632
INIT_ALLOCATORSIZE 229376
ALLOW_MULTIPLE_SERVERTASK_UKTS NO
TASKCLUSTER01 tw;al;ut;2000sv,100bup;10ev,10gc;
TASKCLUSTER02 ti,100dw;30000us;
TASKCLUSTER03 compress
MPRGN_QUEUE YES
MPRGN_DIRTY_READ NO
MPRGN_BUSY_WAIT NO
MPDISP_LOOPS 1
MPDISP_PRIO NO
XP_MP_RGN_LOOP 0
MP_RGN_LOOP 0
MPRGN_PRIO NO
MAXRGN_REQUEST 300
PRIOBASE_U2U 100
PRIOBASE_IOC 80
PRIOBASE_RAV 80
PRIOBASE_REX 40
PRIOBASE_COM 10
PRIOFACTOR 80
DELAYCOMMIT NO
SVP1_CONV_FLUSH NO
MAXGARBAGECOLL 0
MAXTASKSTACK 1024
MAX_SERVERTASK_STACK 100
MAX_SPECIALTASK_STACK 100
DWIO_AREA_SIZE 50
DWIO_AREA_FLUSH 50
FBM_VOLUME_COMPRESSION 50
FBM_VOLUME_BALANCE 10
FBMLOW_IO_RATE 10
CACHE_SIZE 10000
DWLRU_TAIL_FLUSH 25
XP_DATA_CACHE_RGNS 0
DATACACHE_RGNS 8
XP_CONVERTER_REGIONS 0
CONVERTER_REGIONS 8
XP_MAXPAGER 0
MAXPAGER 11
SEQUENCE_CACHE 1
IDXFILELIST_SIZE 2048
SERVERDESC_CACHE 73
SERVERCMD_CACHE 21
VOLUMENO_BIT_COUNT 8
OPTIM_MAX_MERGE 500
OPTIM_INV_ONLY YES
OPTIM_CACHE NO
OPTIM_JOIN_FETCH 0
JOIN_SEARCH_LEVEL 0
JOIN_MAXTAB_LEVEL4 16
JOIN_MAXTAB_LEVEL9 5
READAHEADBLOBS 25
RUNDIRECTORY E:\_mp\u_v_dbs\EVERW_C5
_KERNELDIAGFILE knldiag
KERNELDIAGSIZE 800
_EVENTFILE knldiag.evt
_EVENTSIZE 0
_MAXEVENTTASKS 1
_MAXEVENTS 100
_KERNELTRACEFILE knltrace
TRACE_PAGES_TI 2
TRACE_PAGES_GC 0
TRACE_PAGES_LW 5
TRACE_PAGES_PG 3
TRACE_PAGES_US 10
TRACE_PAGES_UT 5
TRACE_PAGES_SV 5
TRACE_PAGES_EV 2
TRACE_PAGES_BUP 0
KERNELTRACESIZE 648
EXTERNAL_DUMP_REQUEST NO
AKDUMP_ALLOWED YES
_KERNELDUMPFILE knldump
_RTEDUMPFILE rtedump
UTILITYPROTFILE dbm.utl
UTILITY_PROTSIZE 100
BACKUPHISTFILE dbm.knl
BACKUPMED_DEF dbm.mdf
MAXMESSAGE_FILES 0
EVENTALIVE_CYCLE 0
_SHAREDDYNDATA 10280
_SHAREDDYNPOOL 3607
USE_MEM_ENHANCE NO
MEM_ENHANCE_LIMIT 0
__PARAM_CHANGED___ 0
__PARAM_VERIFIED__ 2008-05-13 13:47:17
DIAG_HISTORY_NUM 2
DIAG_HISTORY_PATH E:\_mp\u_v_dbs\EVERW_C5\DIAGHISTORY
DIAGSEM 1
SHOW_MAX_STACK_USE NO
LOG_SEGMENT_SIZE 21333
SUPPRESS_CORE YES
FORMATTING_MODE PARALLEL
FORMAT_DATAVOLUME YES
HIRES_TIMER_TYPE CPU
LOAD_BALANCING_CHK 0
LOAD_BALANCING_DIF 10
LOAD_BALANCING_EQ 5
HS_STORAGE_DLL libhsscopy
HS_SYNC_INTERVAL 50
USE_OPEN_DIRECT NO
SYMBOL_DEMANGLING NO
EXPAND_COM_TRACE NO
OPTIMIZE_OPERATOR_JOIN_COSTFUNC YES
OPTIMIZE_JOIN_PARALLEL_SERVERS 0
OPTIMIZE_JOIN_OPERATOR_SORT YES
OPTIMIZE_JOIN_OUTER YES
JOIN_OPERATOR_IMPLEMENTATION IMPROVED
JOIN_TABLEBUFFER 128
OPTIMIZE_FETCH_REVERSE YES
SET_VOLUME_LOCK YES
SHAREDSQL NO
SHAREDSQL_EXPECTEDSTATEMENTCOUNT 1500
SHAREDSQL_COMMANDCACHESIZE 32768
MEMORY_ALLOCATION_LIMIT 0
USE_SYSTEM_PAGE_CACHE YES
USE_COROUTINES YES
MIN_RETENTION_TIME 60
MAX_RETENTION_TIME 480
MAX_SINGLE_HASHTABLE_SIZE 512
MAX_HASHTABLE_MEMORY 5120
HASHED_RESULTSET NO
HASHED_RESULTSET_CACHESIZE 262144
AUTO_RECREATE_BAD_INDEXES NO
LOCAL_REDO_LOG_BUFFER_SIZE 0
FORBID_LOAD_BALANCING NO>
Lars Breddemann wrote:
> Hi Michael,
>
> this really looks like one of those "Find-the-5-errors-in-the-picture" riddles to me.
> Really.
>
> Ok, first to your question: this seems to be a bug - I could reproduce it with my 7.5. Build 48.
> Anyhow, when I use
>
> insert into "AZ_Z_TEST02" values (87,'','','','','','','','','','','','','','','',''
> ,'','','','','','','','','','','','','','','','')
>
> it works fine.
It solves my problem. Thanks a lot. -- I hardly can believe that this is all needed to solve the bug. This may be the reason why I have not given it a try.
>
Since explicitely specifying all values for an insert is a good idea anyhow (you can see directly, what value the new tupel will have), you may want to change your code to this.
>
> Now to the other errors:
> - 28 Long values per row?
> What the heck is wrong with the data design here?
> Honestly, you can save data up to 2 GB in a BLOB/CLOB.
> Currently, your data design allows 56 GB per row.
> Moreover 26 of those columns seems to belong together originally - why do you split them up at all?
>
> - The "ZTB_NAMEOFREPORT" looks like something the users see -
> still there is no unique constraint preventing that you get 10000 of reports with the same name...
You are right. This table looks a bit strange. The story behind it is: Each crystal report in the application has a few textblocks which are the same for all the e.g. persons the e.g. letter is created for. Principally, the textblocks could be directy added to the crystal report. However, as it is often the case, these textblocks may change once in a while. Thus, I put the texts of the textblock into this "strange" db table (one row for each report, one field for each textblock, the name of the report is given by "ztb_nameofreport"). And the application offers a menue by which these textblocks can be changed. Of course, the fields in the table could be of type CHAR, but LONG has the advantage that I do not have to think about the length of the field, since sometime the texts are short and sometimes they are really long.
(These texts would blow up the sql select command of the crystal report very much if they were integrated into the this select command. Thus it is realized in another way: the texts are read before the crystal report is loaded, then the texts are "given" to the crystal report (by its parameters), and finally the crystal report is loaded.)
>
- MaxDB 7.5 Build 26 ?? Where have you been the last years?
> Really - download the 7.6.03 Version [here|https://www.sdn.sap.com/irj/sdn/maxdb-downloads] from SDN and upgrade.
> With 7.6. I was not able to reproduce your issue at all.
The customer still has Win98 clients. MaxDB odbc driver 7.5.00.26 does not work for them. I got the hint to use odbc driver 7.3 (see [lists.mysql.com/maxdb/25667|lists.mysql.com/maxdb/25667]). Do MaxDB 7.6 and odbc driver 7.3 work together?
All Win98 clients may be replaced by WinXP clients in the near future. Then, an upgrade may be reasonable.
>
- Are you really putting your data into the DBA schema? Don't do that, ever.
> DBM/SUPERDBA (the sysdba-schemas) are reserved for the MaxDB system tables.
> Create a user/schema for your application data and put your tables into that.
>
> KR Lars
In the first MaxDB version I used, schemas were not available. I haven't changed it afterwards. Is there an easy way to "move an existing table into a new schema"?
Michael -
Oracle Provider for oledb 8i & 9i truncates LONG fields
Anyone,
I have a situation where my Oracle oledb driver truncates LONG fields.
My application that runs queries using the oracle oledb driver.
The query is a join between two tables and includes a LONG as one of the fields retrieved.
When the Cursor Location is set to server the data returned is truncated.
Setting the Cursor Location to Client I can retrieve the complete data under specific cursor and lock types. The Microsoft driver for oracle does not truncate.
Note that a simple query without the join does not cause the problem.
Has anyone else noticed this? I know its quite specific.
Thanks
StuartHi,
I've got the same problem, i.e. SELECT a LONG RAW column from
joined/unioned tables truncates the column (via OraOleDB).
Unfortunately, setting ChunkSize to 65535 does not help me,
because data in a column are longer, then 64K (and are truncated
to 64K). Please, have you found any solution?
Thanks for any reply ..
Milan -
How to insert a record in to oracle table from Java which has a oracle LONG Field?
The problem is only 80 char's inserted in to the LONG FIELD which happend to me when i run the same insert statement from SQL plus.
Here is the code....
java.io.File inputFile = new java.io.File("input.txt");
int inputFileLen = (int) inputFile.length();
java.io.InputStream ipStream = new java.io.FileInputStream(inputFile);
System.out.println(inputFileLen);
PreparedStatement myStmt = conn.prepareStatement("insert into LONG_EXAMPLE (notes,name)values(?,?)");
myStmt.setAsciiStream(1, ipStream, inputFileLen);
myStmt.setString(2,"Steve");
int res = myStmt.executeUpdate();
myStmt.close();
Note : Here the size of the input.txt 250 bytes , 1KB.
Thanks in advance......:-)
Cheers,
Vetri !Hien
I had a similar requirement to you and put the code on a push button. In my case the reports are being run interactively to the screen and then printed, and I have no way to know whether the report had actually been printed, so we rely on the user pressing the button. Of course there is a danger that the user forgets to press the button, but in our situation that would not be disasterous. Whatever method is used, I don't think there is any way to be sure that it has actually come out of the printer. -
Oracle OLEDB drive 8i and 9i truncates LONG fields
Anyone,
I have a situation where my Oracle oledb driver truncates LONG fields.
My application that runs queries using the oracle oledb driver.
The query is a join between two tables and includes a LONG as one of the fields retrieved.
When the Cursor Location is set to server the data returned is truncated.
Setting the Cursor Location to Client I can retrieve the complete data under specific cursor and lock types. The Microsoft driver for oracle does not truncate.
Note that a simple query without the join does not cause the problem.
Has anyone else noticed this? I know its quite specific.
Otherwise where do you submit bugs to oracle?
Thanks
StuartHi,
I've got the same problem, i.e. SELECT a LONG RAW column from
joined/unioned tables truncates the column (via OraOleDB).
Unfortunately, setting ChunkSize to 65535 does not help me,
because data in a column are longer, then 64K (and are truncated
to 64K). Please, have you found any solution?
Thanks for any reply ..
Milan -
Want to update BLOB field to LONG field.
We have 2 table one were BLOB field is there, another were LONG i want to transfer BLOB to LONG fields. Please advice how i can?
I tried DBMS_LOB and UTL_RAW.CASTE_TO_VARCHAR2 its working but its saving some initials unwanted character.
Thanks
BakuleshAs I understand, 1 BLOB does have BINARY data. And, you have to copy that to LONG RAW and not just LONG. The unwanted cahracters are those BINARY data. ( They might be really of some use ! )
We have 2 table one were BLOB field is there, another were LONG i want to transfer BLOB to LONG fields. Please advice how i can?
I tried DBMS_LOB and UTL_RAW.CASTE_TO_VARCHAR2 its working but its saving some initials unwanted character.
Thanks
Bakulesh -
I have a table MANMESS having a LONG field (MESSAGE)
I want to search for a word e.g. "supplier" in this LONG field
When I enter the statement
select * from MANMESS where MESSAGE like '%supplier%';
it gives an error message.
I guess it is because MESSAGE is a LONG field and needs to be given special treatment
Is there an alternative to so the same task?
Thanks in Advance
PareshSQL> create table search_long(id number,text long);
Table created.
SQL> insert into search_long values(1,'oracle is good');
1 row created.
SQL> insert into search_long values(1,'the latest version of oracle is 10g');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from search_long where text like '%oracle%';
select * from search_long where text like '%oracle%'
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
SQL> ed
Wrote file afiedt.buf
1 create or replace function search_text(x rowid) return varchar2 is
2 temp_text varchar2(4000);
3 begin
4 select text into temp_text from search_long where rowid=x;
5 return temp_text;
6* end;
SQL> /
Function created.
SQL> select text from search_long where search_text(rowid) like '%oracle';
TEXT
oracle is good
the latest version of oracle is 10g
You have to use some alternative way while searching for LONG column
-aijaz -
How to reference LONG field in trigger
I am trying to create a trigger (update and delete) for auditing purposes. The source table has a long field and I need to insert all columns (which includes the long field) into an audit table if any column in the source record changes or if the source record is deleted. I cannot reference :old.longfield or do a select into.
If anyone has a suggestion or has done it in the past, please email me at [email protected] or post an answer.
Thank You so much for your help !!!!!As you have noticed, you cannot reference the value of a LONG column using :old/:new in a trigger. The work around is to instead process your audit information (including the LONG value) in an after statement trigger. Here is an example to get you started:
http://asktom.oracle.com/pls/ask/f?p=4950:8:605685::NO::F4950_P8_DISPLAYID -
8i+WebDB HELP:How to make longer fields for "News items"
8i+WebDB
How do I create longer fields for my "News items"?
If I try to publish long sized News I receive an Error:
"Ora-02005: Implisit(-1) Length not valid for this bind or define
data type". I HAVE chosen "long field" settings in the DB
(8.1.5.0.0)
Are there any parameter settings in WebDB to allow longer
fields??
PLEASE HELP!!
nullHi, Lu:
If I understand your question correctly, you want to modify the FSG of recociliation account of Vendor/Customer to make sure Cost Center/WBS field display in transaction F-22/F-43 for example, right?
I am not sure whether it is possible, I also tried in ECC6.0 but failed to show these two fields. And I think that doesn't make sense to assign CO object to AP/AR reconciliation account, but assign it to Revenue/Expense account in following line items.
And You can use New General Ledger functionality Document Splitting to derive corresponding CO object information to Reconciliation Account line item, but it is enabled only in General Ledger level, not in subledger level.
If you find any other meaningful solution, please also share with us.
Thanks & BR, Lawrence -
Hello,
In HTML DB, I would like to insert a line in a table with a database link (in a PL/SQL Block).
Description of my table :
Nom NULL ? Type
LCOMMENTID NOT NULL NUMBER(10)
DTLASTMODIF DATE
MEMCOMMENT LONG
TABLENAME VARCHAR2(18)
My command :
insert into amcomment@B_ASSET.WORLD values (1,'01/01/2005','toto','AMTICKET');
Each time I try to insert a value in the long field, I have this error :
"ORA-06550: Ligne 8, colonne 13 : PL/SQL: ORA-00600: code erreur interne, arguments : [qctstc2o1], [1], [0], [31], [8], [0], [0], [] ORA-06550: Ligne 8, colonne 1 : PL/SQL: SQL Statement ignored"
I try also with null value. Same problem ...
Have you a solution for this problem ?
Thanks.
FWFrom the SQL Reference guide:
"LONG and LONG RAW columns cannot be used in distributed SQL statements"
It should also be noted that the LONG datatype has been deprecated and may not be supported in the future. It is suggested that LONG columns be replaced with CLOB columns. These are much easier to work with than LONGs and have fewer restrictions. You can easily use the TO_LOB function to convert a LONG to a CLOB (see http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions139a.htm#79466) -
Hi,
after i read some records in my table, the value of the long
fields of them are changed by the value of other long fields of
other records and viceversa..
can somebody help me?
thanks
nullhi,
so what do you suggest if I would like to have it in multicube.
Is it OK if I switch off this attribute?
Regards,
Andrzej -
hi,
I am trying to make an multicube on top of two DSOs.
One is ZCCA_O09 (copy of 0CCA_O09).
When I am in field selection screen in multicube maintenance there is no 0CO_ITEM_TX field in possible entries screen.
Is it forbidden to include such a long fields in multicubes???
Can somebody help with this?
Regards,
Andrzejhi,
so what do you suggest if I would like to have it in multicube.
Is it OK if I switch off this attribute?
Regards,
Andrzej -
Oracle OLE DB provider truncates LONG field's data
I am using Visual Basic 6, Oracle 8.1, and use ADO to connect to the Oracle database.
I have a problem with OLE DB provider OraOLEDB.Oracle reading a LONG field (MEMO field in Access).
When I tried to get the value of the LONG field, it truncates it to 100 characters.
I do not have the problem using Microsoft Oracle OLE DB Provider MSDAORA.
This is the Oracle table:
CREATE TABLE tblA (
tblA_KEY NUMBER(10) NOT NULL,
tblA_MEMO LONG NULL
This is the VB 6 code:
Set rs = New ADODB.Recordset
rs.Open ssql, adoConn, adOpenForwardOnly, adLockReadOnly
sMemo = "" & rs.Fields("tblA_Memo") -->> sMemo contains only the first 100
characters of tblA_Memo
How can I fix this?
Thank you.Thanks. I assume you are talking about 9.2 version of Oracle, right?
While we are in the subject of LONG field. In Oracle 8.1, I can not do the following sql stt:
select * from tblA where tblA_Memo like '%york%'
It gives me the error "ORA-00932: inconsistent datatypes"
Can I do this in Oracle 9.2 ?
Thank you. -
Hello:
I'm trying to update an oracle long field with a prepared statement. Here's the
code:
objCallableStmt = objConnection.prepareCall(
"{call spUpdatetblContract(?,?)}");
objCallableStmt.setInt(1, intContractId);
objCallableStmt.setAsciiStream(2, new java.io.ByteArrayInputStream(strContractBody.getBytes()),
strContractBody.length());
I get the following error:
java.sql.SQLException: Data size bigger than max size for this type
I'm using BEA WebLogic Server 8.1 and Oracle9i Enterprise Edition Release 9.2.0.1.0Armando Calzada wrote:
Thanks Joe
I'm using Oracle's Driver (Thin XA) Versions 8.1.7, 9.0.1, 9.2.0Sure. And what happens if you get the connection directly from the oracle driver
as opposed to a weblogic pool. The same? Most likely it will be. Can you repeat
this code in a tiny standalone java program that gets it's connection from the
latest oracle driver, and tell me what it does? This may simply be a limitation
of the oracle thin driver.
Joe
>
Joe Weinstein <[email protected]> wrote:
Armando Calzada wrote:
Hello:
I'm trying to update an oracle long field with a prepared statement.Here's the
code:
objCallableStmt = objConnection.prepareCall(
"{call spUpdatetblContract(?,?)}");
objCallableStmt.setInt(1, intContractId);
objCallableStmt.setAsciiStream(2, new java.io.ByteArrayInputStream(strContractBody.getBytes()),
strContractBody.length());
I get the following error:
java.sql.SQLException: Data size bigger than max size for this type
I'm using BEA WebLogic Server 8.1 and Oracle9i Enterprise Edition Release9.2.0.1.0
Whose Oracle driver are you using?
thanks
Joe
Maybe you are looking for
-
Messages status always shows "offline"
I have only updated my mid 2009 macbook pro to Yosemite. I have synced to my iPhone ok. My Messages status always shows "offline" on the MBP even though I can chat on it. Many thanks for any help.
-
I ran bootcamp and tried to install Windows 7. I end up with a DOS screen and an unresponsive keyboard. I have been on line with Apple and microsoft and they can't help. I have lated versions of Lion and bootcamp. HELP! My Lion is up to date. I us
-
Hi guys , just joined!!! I am a PHP developer and have 'forced' into some work with java. Now I am a complete noob here and I have what I hope is a fairly straight forward request. I have a jar file that I have extracted so I can view all teh classes
-
Downloaded video from itunes wont transfer to pod
downloaded video from itunes but it wont transfer to pod. I have a video ipod. It shows up in my library under Music Video. But I cant find it anywhere on my ipod. After other new music has tranfered fine.
-
Ask one function module name???
Hi, It's urgent to me. I want to know whether SAP has one function module which I can use to display the PDF document on the server. Thanks. Awards will be provided. Very urgent to me... Best regards, Chris Gu