![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
On Jul 5, 6:01*pm, gazzag <justif... (AT) jamms (DOT) org> wrote: On Jul 5, 4:01*pm, Krzysztof Cierpisz <ciape... (AT) gmail (DOT) com> wrote: on database remote1 is a table I want to access => table1 I have a very limited schema/user created on remote2. remote2 has public database link to remote1, so I can access table1@dblink_to_remote1 I have another local database db1 with database link to remote2 = @dblink_to_remote2 I would like to create a table from remote1 on my local db1. I can achieve that with export/import *(giving remote2 credentials).. Is there a better solution for that task? thanks, chris CREATE TABLE <table_name AS SELECT * FROM <table_name>@<remote_database>; HTH -g the table is not on <remote_database> -> I have no direct access to remote_database I have only indirect access over a db_link from "another" database to remote_database>. I have a very limited access on this "another" database so I cannot create any objects there. |
#3
| |||
| |||
|
|
It's been too long since I've done this, but I think what you want to do is desc <yourpublicsynonym>@<remove_database2> (or select * from user_db_links@<remote_database2>, then if you can see that, you have to make some bizarro usage with quotes and @ signs like desc 'table_name@<remote_database>'@<remote_database2 |
#4
| |||
| |||
|
|
On Jul 6, 7:35*pm, joel garry <joel-ga... (AT) home (DOT) com> wrote: It's been too long since I've done this, but I think what you want to do is desc <yourpublicsynonym>@<remove_database2> (or select * from user_db_links@<remote_database2>, then if you can see that, you have to make some bizarro usage with quotes and @ signs like desc 'table_name@<remote_database>'@<remote_database2 I tried but cannot get it working, I googled but cannot find anything. Are you sure it's possible? -- chris |
#5
| |||
| |||
|
|
On Jul 6, 1:01*pm, Krzysztof Cierpisz <ciape... (AT) gmail (DOT) com> wrote: On Jul 6, 7:35*pm, joel garry <joel-ga... (AT) home (DOT) com> wrote: It's been too long since I've done this, but I think what you want to do is desc <yourpublicsynonym>@<remove_database2> (or select * from user_db_links@<remote_database2>, then if you can see that, you have to make some bizarro usage with quotes and @ signs like desc 'table_name@<remote_database>'@<remote_database2 I tried but cannot get it working, I googled but cannot find anything. Are you sure it's possible? -- chris Not sure, I'd have to play with it, don't have time. *But it should be. *What versions did you say? jg -- @home.com is bogus.http://www.wired.com/dangerroom/2011...-to-go-around-... |
![]() |
| Thread Tools | |
| Display Modes | |
| |