MySQL x InterBase x Firebird
Ola,
Preciso de um orientação na area de banco de dados do tipo, preciso trabalhar com MySQL, InterBase e Firebird, os MySQL e o Interbase funciona bem em suas IDE mas o Firebird não. Alguem pode me dar uma ajuda ou sugestão de como posso fazer os três funcionarem ao mesmo tempo?
obrigado.
Wilton Júnior
Curtidas 0
Respostas
Joni Nunes
12/09/2011
Você pode criar database link entre esses bancos, e criar views de acesso, com isso, a conexão da sua aplicação será realizada em apenas uma base de dados, as outras duas já estaram concetadas na base principal.
Detalhes:
It would be great if we could link databases together,
even with non-firebird databases.
for example:
create database link hr as
"fb://sysdba:pass2@anotherhost/opt/firebird/hr.fdb"
create database link system as
"ib://sysdba:masterkey@192.168.1.99/C:/Interbase/system.gdb"
create database link vbulletin as
"mysql://vb:vb@localhost/vbulletin"
create database link compiere as
"oci://compiere:comp@192.168.1.159/ORCL"
then you can:
select * from table1@hr h,table2@compiere c,
table3@vbulletin where h.field=c.field and
v.field2=c.field2
Detalhes:
It would be great if we could link databases together,
even with non-firebird databases.
for example:
create database link hr as
"fb://sysdba:pass2@anotherhost/opt/firebird/hr.fdb"
create database link system as
"ib://sysdba:masterkey@192.168.1.99/C:/Interbase/system.gdb"
create database link vbulletin as
"mysql://vb:vb@localhost/vbulletin"
create database link compiere as
"oci://compiere:comp@192.168.1.159/ORCL"
then you can:
select * from table1@hr h,table2@compiere c,
table3@vbulletin where h.field=c.field and
v.field2=c.field2
GOSTEI 0