Seguinte, to numa situação aqui, e, gostaria de saber se já passaram por isso...
Cenário:
Tenho uma variável Clob e, necessito de inserir numa tabela, para trabalhar com um XML, onde na tabela, o datatype é um XMLType.
Problema:
Após dar um INSERT dessa variável, na tabela com campo XMLType, ocorre um erro (ou até mesmo sem inserir na base, fazendo que uma variável XMLType receba esse CLOB, já acusa erro).
Código Utilizado: Apenas para exemplo...
DECLARE
vret CLOB;
vretxml xmltype;
BEGIN
-- Pega o CLOB
SELECT x.ds_clob
INTO vret
FROM teste_xml x;
-- Converte pra XMLTYPE
vretxml := xmltype(vret);
--
END;
[1]: (Error): ORA-00600: internal error code, arguments: [qmxiUnpPacked2], [121], [], [], [], [], [], [] ORA-06512: at "SYS.XMLTYPE", line 0 ORA-06512: at line 10.
Seria bug de versão?
Para complementar, vi este tópico num Fórum da ORACLE:
Why am I getting an ORA-00600 with arguments [qmxiUnpPacked2], [121] ?
Posted: Sep 1, 2006 2:56 AM in response to: mdrake
This message will occur when a database created with Oracle Database 9iR2 version 9.2.0.1.0 is accessed after upgrading to version 9.2.0.2.0 or later.
The error message indicates that the catpatch upgrade script, found in $ORACLE_HOME/rdbms/admin was not run after installing the upgrade, or that the script failed to run successfully.
The problem can also occur in later versions of the 9.2.x product when a new database is created using DBCA. The Seed database templates in 9.2.x. were created with 9.2.0.1.0 and consequently when a new database is created it using the templates it is, in effect a 9.2.0.1.0 database and has to be upgraded by running catpatch before it can be used with 9.2.0.2.0 or later
Alguém já passou por tal situação?
Muito obrigado.