I have a Package that throws multiple errors like this one:
IF EXIST > 0 THEN
STATUS:= -1;
pMSJ_ERROR:= 'ErrorXX: Fecha de transacción no puede ser mayor';
But when DBA run this package in another ambient the package is saved like this:
IF EXIST > 0 THEN
STATUS:= -1;
pMSJ_ERROR:= 'ErrorXX: Fecha de transacci¿n no puede ser mayor';
So I think the problem is because the databases have different "nls_language":
select value from v$system_parameter where name = 'nls_language';
DB1 Dev: LATIN AMERICAN SPANISH
DB2 Test: AMERICAN
How can I deal with the different nls_languages?
If the dba from DB2 use:
alter session set nls_language = 'AMERICAN';
do the trick?
Both DBs are Oracle 11g
The character set in both DBs are the same:
SELECT value FROM NLS_DATABASE_PARAMETERS WHERE parameter = 'NLS_CHARACTERSET';
-- value = WE8MSWIN1252