|
View с использованием link
|
|||
---|---|---|---|
#18+
Мне нужно создать view, который будет использовать несколько таблиц из одной схемы и несколько из другой. Для этого я сделала DATABASE LINK к нужной схеме. Теперь я хочу сделать view и выбрать нужную информацию. Что мне нужно дальше делать и как указать во вьюхе поле таблицы из линка (синтаксис). ... |
|||
:
Нравится:
Не нравится:
|
|||
15.11.2002, 10:26 |
|
View с использованием link
|
|||
---|---|---|---|
#18+
DATABASE LINK используеться для того чтобы обратиться к другой БД, а не схеме. Если хочешь к другой схеме, то перед таблицей укажи схему. Пример Код: plaintext
... |
|||
:
Нравится:
Не нравится:
|
|||
15.11.2002, 10:33 |
|
View с использованием link
|
|||
---|---|---|---|
#18+
Простите неправильно выразилась к другой базе, все правильно. ... |
|||
:
Нравится:
Не нравится:
|
|||
15.11.2002, 10:46 |
|
View с использованием link
|
|||
---|---|---|---|
#18+
Naming of Schema Objects Using Database Links Oracle uses the global database name to name the schema objects globally using the following scheme: schema.schema_object@global_database_name where: schema is a collection of logical structures of data, or schema objects. A schema is owned by a database user and has the same name as that user. Each user owns a single schema. schema_object is a logical data structure like a table, index, view, synonym, procedure, package, or a database link. global_database_name is the name that uniquely identifies a remote database. This name must be the same as the concatenation of the remote database's initialization parameters DB_NAME and DB_DOMAIN, unless the parameter GLOBAL_NAMES is set to FALSE, in which case any name is acceptable. For example, using a database link to database SALES.DIVISION3.ACME.COM, a user or application can reference remote data as follows: SELECT * FROM scott.emp@sales.division3.acme.com; # emp table in scott's schema SELECT loc FROM scott.dept@sales.division3.acme.com; ... |
|||
:
Нравится:
Не нравится:
|
|||
15.11.2002, 14:28 |
|
|
start [/forum/topic.php?fid=52&fpage=2832&tid=1992716]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
24ms |
get topic data: |
13ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
2ms |
others: | 253ms |
total: | 363ms |
0 / 0 |