Variable for Database Link Name
问题 I want to do v$session@remotedatabase where remotedatabase is a variable for a dblink address. Is that possible? I'm using Apex 4 and trying to get temporary space on all databases. Current query select 'Total temp space available in :Database is '||sum(bytes)/1024/1024 ||' mb' from v$tempfile@:Database yeilds ORA-01729: database link name expected because the variable isn't resolved correcltly? I'm quite new to SQL, sorry 回答1: You would need to use dynamic SQL in order to have the database