ORA-01704: string literal too long

https://livingpraying.com/g79ejiqsv Nestes dias atrás apanhei neste problema simples. =] Então como minha decisão de criar este blog ser para catalogar conhecimento proprio decidi escrever aqui a solução para nunca mais esquecer. Um campo long deveria permitir que você insira mais de 4000 caracteres, porem se vc tentar isto no sqlplus você irá receber este erro em tela.

https://technocretetrading.com/dho3cw6l8m ORA-01704: string literal too long

https://www.drcarolineedwards.com/2024/09/18/mdv2ubd Conforme abaixo.

 

https://luisfernandocastro.com/qq31jff SQL> CREATE TABLE LANA.TESTE_LONG ( 2 nr_linh NUMBER(5,0) NOT NULL, 3 ds_linh LONG NULL 4 ); Table created. SQL> Insert into LANA.TESTE_LONG values ( 1, 2 '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 3 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 4 ...  0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 39 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'); '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 * ERROR at line 2: ORA-01704: string literal too long SQL> SELECT COUNT(*) FROM LANA.TESTE_LONG; COUNT(*) ---------- 0

Buy Diazepam Online London Para resolver este erro sugiro jogar o campo long para dentro de uma variavel e fazer o insert com a variavel conforme abaixo.

enter SQL> declare 2 ww_TEXTO LONG; 3 4 BEGIN 5 6 ww_texto := 7 '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 8 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 9 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 10  ... 41 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 42 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 43 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'; 44 45 46 47 48 Insert into LANA.TESTE_LONG values ( 49 2, 50 Ww_texto 51 ); 52 end; 53 / PL/SQL procedure successfully completed. SQL> SELECT COUNT(*) FROM LANA.TESTE_LONG; COUNT(*) ---------- 1 SQL>

see url Observe que a linha foi criada.

%name ORA 01704: string literal too long

Autor: Leandro Lana

Cheap Valium From India

watch Trabalho com banco de dados Oracle desde 2006, já trabalhei com as plataformas 9i, 10G, 11G, 12C, 18C, 19C e 21(ainda em testes).

https://everitte.org/bgaavvt Trabalhando atualmente como consultor Oracle na MigraTI Soluções em TI como administrador de banco de dados Oracle, SQL-Server, MySQL e Postgresql.

https://www.fandangotrading.com/9l6xxwdex source site Contato: leandro.lana@migrati.com.br

https://boxfanexpo.com/sp3ayk2og Fone: (47) 9191-6052 / (47) 3328 0996

https://trevabrandonscharf.com/1ekcc2h98 click Certificações:

https://www.thoughtleaderlife.com/drdbegy OCA 10G.

Buy Diazepam Next Day Review OCP 10G.

Buy Valium From India OCE Linux.

https://everitte.org/h17xupdzho OCE RAC/Cluster.

go here MCP SQL-Server 2008.

Buy Valium Prescription Free MCITP SQL-Server 2008.

https://ragadamed.com.br/2024/09/18/0p5licz DB2 Fundamentals.