I have a script that runs every night making a DUMP-file, but after several years without any errors, suddenly the script fails. I use EXP, but get the error:

EXP-00056: ORACLE error 19206 encountered
ORA-19206: Invalid value for query or REF CURSOR parameter
ORA-06512: at "SYS.DBMS_XMLGEN", line 83
ORA-06512: at "SYS.DBMS_METADATA", line 345
ORA-06512: at "SYS.DBMS_METADATA", line 410
ORA-06512: at "SYS.DBMS_METADATA", line 449
ORA-06512: at "SYS.DBMS_METADATA", line 1156
ORA-06512: at "SYS.DBMS_METADATA", line 1141
ORA-06512: at line 1
EXP-00000: Export terminated unsuccessfully

I found a thread about the same error telling me to run the script $ORACLE_HOME/rdbms/admin/catmeta.sql connected as SYS. But that doesn't seems to have any impact.

Please help!