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?
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 |
---|---|
71 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.