My requirement is to store a very big data to "LONG" datatype column in Oracle DB. I know that for CLOB and NCLOB it can be achieved using BFile (by reading it from file). But how do I do it for long?
Eg: Insert into test (LONG_COL) values('value more than 4000 characters');
Here LONG_COL is of type "LONG".
If I execute the query on SQLPlus I get below error.
SQL Error: ORA-01704: string literal too long
01704. 00000 - "string literal too long"
*Cause: The string literal is longer than 4000 characters.
*Action: Use a string literal of at most 4000 characters.
Longer values may only be entered using bind variables.
Please guide.
LONGs
are deprecated. Oracle suggests usingCLOBs
instead. I don't know if that's an option. – eaolson