nclob

Error : ORA-01704: string literal too long

倖福魔咒の 提交于 2019-12-28 02:05:15
问题 While I try to set the value of over 4000 characters on a field that has data type CLOB , it gives me this error : ORA-01704: string literal too long. Any suggestion, which data type would be applicable for me if I have to set value of unlimited characters although for my case, it happens to be of about 15000 chars. Note : The long string that I am trying to store is encoded in ANSI. 回答1: What are you using when operate with CLOB? In all events you can do it with PL/SQL DECLARE str varchar2

How to Copy Only First 4000 Characters from Oracle NCLOB to NVARCHAR2(4000) Value?

房东的猫 提交于 2019-12-11 18:55:09
问题 I am a programmer, and I am writing some SQL code to pull data from a remote Oracle database and insert it into some tables on our local MS SQL Server. I need to bring an Oracle NCLOB column to an NVARCHAR column in our MS SQL Server database. We have no DBA staff to do this for me. For my purposes, it is not critical to have the entire NCLOB value, so 4000 chars is simply an arbitrarily large number I chose. My goal is to have as much of the data in my NVARCHAR2 field on the Oracle side as I

Oracle Parsing XML returns blank

余生颓废 提交于 2019-12-11 07:12:26
问题 I have an NCLOB column on my database which has a structure like this: <Storage xmlns="http://tempuri.org/Storage.xsd"> <TableInfo> <Name>Genotypes</Name> <------------------ I DON'T want to get this ... </TableInfo> <ColumnInfo> <ID>1</ID> <Name>cre</Name> <------------------------ I want to get this ... </ColumnInfo> <ColumnInfo> <ID>2</ID> <Name>Tph2</Name> <----------------------- I want to get this ... </ColumnInfo> <ColumnInfo> <ID>3</ID> <Name>New_Field</Name> <------------------ I

Special characters in Oracle NCLOB

北慕城南 提交于 2019-12-02 11:29:56
问题 I'm dealing with an Oracle 10g database and the following stored procedure is provided: procedure get_synopsis ( p_id in my_schema.products.p_id%type, p_synopses out sys_refcursor); -- cursor of - synopsis_type, synopsis_text In my Java code I prepare the statement in this way: String idForDb = fromIdUrlToIdDb(prodIdUrl); statement.registerOutParameter(1, OracleTypes.VARCHAR); statement.setString(1, idForDb ); statement.registerOutParameter(2, OracleTypes.CURSOR); And I get the data I need in

Error : ORA-01704: string literal too long

喜欢而已 提交于 2019-11-27 08:50:18
While I try to set the value of over 4000 characters on a field that has data type CLOB , it gives me this error : ORA-01704: string literal too long. Any suggestion, which data type would be applicable for me if I have to set value of unlimited characters although for my case, it happens to be of about 15000 chars. Note : The long string that I am trying to store is encoded in ANSI. What are you using when operate with CLOB? In all events you can do it with PL/SQL DECLARE str varchar2(32767); BEGIN str := 'Very-very-...-very-very-very-very-very-very long string value'; update t1 set col1 =