Upload files to "/"

This commit is contained in:
2026-05-08 13:15:51 +00:00
parent e3d9c06fda
commit 97eba38d29
4 changed files with 272 additions and 0 deletions

25
fnc_26ai_char_count.sql Normal file
View File

@@ -0,0 +1,25 @@
create or replace FUNCTION fnc_26ai_char_count (p_text CLOB)
RETURN NUMBER
IS
/*
Criado por: fernando.leal@oracle.com
Data: Oct/2025
Objetivo: demonstrar casos de uso do Oracle AI Database 26ai
v1 - contador de palavras para estudo de custo de modelo LLAMA - leal
*/
v_len NUMBER;
v_len_sem NUMBER;
BEGIN
-- Tamanho original
v_len := NVL(DBMS_LOB.GETLENGTH(p_text), 0);
IF v_len = 0 THEN
RETURN 0;
END IF;
RETURN v_len;
END;
/