Solution Description:
=====================
To select nextval from a sequence on a remote database, you can create a
synonym for the remote sequence or you can change the order of the statement.
1. Create a Synonym
----------------
SQL> create synonym remote_seq for seq_remote@db_link;
SQL> select remote_seq.nextval from dual;
NEXTVAL
----------
9
- OR -
2. Change the order of the Statement
-------------------------------
SQL> select seq_remote.nextval from dual@db_link
ORA-02289: sequence does not exist
SQL> select seq_remote.nextval@dblink from dual;
NEXTVAL
----------
11
Solution Explanation:
=====================
By creating a synonym for the sequence or changing the order of the select
statement you will be able to select nextval from the sequence without error.
Partager