on 2013 Oct 28 10:08 PM
DEAR, all. I have problem with creating proxy table in SA12. There is view on oracle 11g and I want to use this view for creating proxy table SA12. But it is not possible to create.. is it impossible to create proxy table using view?
CREATE EXISTING TABLE "DBA"."V_UNIST_HR_INFORM" AT 'UNIST_ORACLE:UNIST:V_UNIST_HR_INFORM';
I just want to select(read) the view on oracle 11g... is there any other way to do that for it?
Thanks and Best regards, hakwoo KIM
The CREATE EXISTING TABLE statement needs a remote server, which can be created using
CREATE SERVER and an external login CREATE EXTERNLOGIN.
If you've already defined a remote server and login, please show us the statements. You might try calling sp_remote_tables() to list the tables SA "sees" on the remote server.
See this related question Create Proxy Table from Oracle/SAP to SQLA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To clarify: You do not need to use sp_remote_tables() to create a proxy table - this system procedure will only help to show which remote tables can be accessed.
You might use sp_remote_table with the optional 5th argument to retrieve the table type, something like the following should return all available tables/views etc. on the remote server - you may replace some of the "null" defaults with the according database/schema/table name:
call sp_remote_tables('UNIST_ORACLE', null, null, null, 1);
I have not used proxy tables with Oracle, however, it seems your proxy location string is unusual: You are using ":" as a delimiter whereas the usual (or required?) delimiter is a dot, and I would assume an Oracle table definition would require four parts: server name, database name, schema name and table/view name - so it would require 3 dots.
Cf. this sample location string from the docs:
CREATE EXISTING TABLE employees AT 'myora.database.owner.employees';
To clarify the "proxy view" issue: Are you able to create a proxy table to an Oracle table, or does that fail as well?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.