I am trying to perform SET operations in Oracle across remote databases.
I am using the MINUS operator.
My query looks something like this.
SELECT NAME FROM localdb MINUS SELECT NAME from remotedb@dblink
This is throwing up a ORA-12704 error. I understand this warrants some kind of conversion or a NLS Setting.
What should I try next?
The two
namecolumns are stored in different characters sets. This could be because of their type definitions, or it could be because the two databases are using different character sets.You might be able to get around this by explicitly converting the field from the remote database to the character set of the local one. Try this: