on 2024 Sep 04 12:59 AM
Hi we are accessing many tables and views from a remote system and wondered how to bulk create virtual tables?
Request clarification before answering.
Hi this code will create bulk VT to the remote system.
first manually create virtual table locally to the SYS.table_columns system catalog in the remote. Assuming someone in admin has set up a remote source in your local system and you have access to system objects.
eg in this example we are using table_columns to source table names.
CREATE VIRTUAL TABLE "MY_LOCAL_SCHEMA"."vt_table_columns_remote_db"
AT "MY_Remote_source_name"."MYDb"."SYS"."TABLE_COLUMNS";
This below select will generate the SQL code for all the VT create statements you need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.