This issue was solved. I was working in two different environments, development and test.
In development Oracle 19c was installed and it was working fine there, I thought in test environment the DB version was the same, but it was not, so it was updated and it is working now.