Hi,
I have a table on a different database than my main database and via a database link and synonym I can access it from my main database in sqlplus, by e.g.
As soon as I try to access it within a Begin - End block, like:
I receive the error:
ORA-02083: database name has illegal character '-'
On both databases I have the same user, what is wrong, why doesn't it work?
Looking for help
CD12
I have a table on a different database than my main database and via a database link and synonym I can access it from my main database in sqlplus, by e.g.
Code:
SELECT count(*) FROM table_on_secondary_db;
Code:
DECLARE
counter NUMBER;
BEGIN
SELECT count(*) INTO counter
FROM table_on_secondary_db;
END;
ORA-02083: database name has illegal character '-'
On both databases I have the same user, what is wrong, why doesn't it work?
Looking for help
CD12