Hi-

I am getting the following error because the connect string i have given is a cursor variable not actual db link name.
select name into db_name from v$database@dbl_name;
*
ERROR at line 15:
ORA-06550: line 15, column 8:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 15, column 8:
PL/SQL: SQL Statement ignored

Can some one help me how to pass the cursor variable in place of db link connect string?

Here is my part of my code ...

...
...
open dbl_cur;
loop
fetch dbl_cur into dbl_name;
dbms_output.put_line('Fetched DB Link: '||dbl_name);
begin
select name into db_name from v$database@dbl_name;
dbms_output.put_line('Connected to '|| db_name);
end;
exit when dbl_cur%NOTFOUND;
end loop;
close dbl_cur;

Thanks in advanse.

Thanks,