| |

VerySource

 Forgot password?
 Register
Search
View: 2220|Reply: 4

How does the Infotmix database between two machines access data tables?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-15 08:30:01
| Show all posts |Read mode
Prawns, does Informix have something similar to Oracle's dblink?
I now have the business system database on machine A and the data warehouse on machine B. They are all the same version of Informix. Now I write a stored procedure in database B to extract the table data in database A. How do I write it?

If it is Oracle, it can be written like this
insert into tablename1 (select * from username.tablename1@dblinkname)

Help Informix solution!
Reply

Use magic Report

1

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 Kenya

Post time: 2020-7-12 23:15:01
| Show all posts
It should be select * from datebase@informixserver:tablename, there must be a trust relationship between the two machines.
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-7-22 21:00:01
| Show all posts
If machine A ip=19.168.0.1, database name=CRMDB
Can I create machine A alias=Aserver and database alias=MisDB on machine B?
The sql=select * from MisDB@Aserver:tablename on B, the purpose No matter how the ip and database name on machine A change, the sql on B does not need to be modified

Please enlighten prawns. . . .
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Invalid IP Address

Post time: 2020-7-27 23:00:02
| Show all posts
Informix does not have such things as oracle dblink
In fact, only need to establish a trust relationship between the two machines, it is more convenient to access
The documents for establishing a trust relationship are as follows:
/etc/hosts
/etc/services
/etc/hosts.equiv
$HOME/etc/sqlhosts
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-14 07:30:01
| Show all posts
The one on the first floor should be correct, but as he said, two computers must establish a trust relationship
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list