DB 9i Link to 10g

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
rafaellomba
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 21
Joined: Tue, 14 Aug 2007 9:39 am
Location: Rio de Janeiro - RJ
Rafael Lomba

Personal,

In my work I will need a bank 9i communicates with a 10g bank. I can create the 9i link db for 10g without errors, but when I try to use it it shows an error saying that the tns names can not solve, but I can connect to Banco 9i and 10g without problems with the TNS.

Has anyone ever been through this situation and already managed to solve it?

From now on, thank you.
ricardofazu
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Thu, 08 Jan 2009 3:12 pm
Location: Uberaba-MG

How is your TNS on the machine that is installed the 9i?
Post that we can help better I believe.
rafaellomba
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 21
Joined: Tue, 14 Aug 2007 9:39 am
Location: Rio de Janeiro - RJ
Rafael Lomba

My machine is ok, because I can access the banks normally, even so below is the code of my TNS.

Select all

 
prod= 
 (DESCRIPTION= 
  (ADDRESS_LIST= 
   (ADDRESS= 
    (PROTOCOL=TCP) 
    (HOST=192.168.1.15) 
    (PORT=1521) 
  ) 
 ) 
 (CONNECT_DATA= 
  (SID=prod) 
  ) 
 ) 
 
HM10G = 
  (DESCRIPTION = 
    (ADDRESS_LIST = 
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.58)(PORT = 1521)) 
    ) 
    (CONNECT_DATA = 
      (SERVICE_NAME = hm10g) 
    ) 
  )
The prod is what is with 9i and HM10G is that it has 10g.
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

On the 10G server you have to configure the tnsnames. 99] When this connects, then create dblink with the command:

Select all

 
create public database link banco9i 
  connect to USUARIO identified by "SENHA" 
  using 'BANCO9I'; 
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

Is the bank on your machine?

You have to mess with tnnames.ora where Oracle is installed ...
rafaellomba
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 21
Joined: Tue, 14 Aug 2007 9:39 am
Location: Rio de Janeiro - RJ
Rafael Lomba

No, the bank is on the database server.
So to work I have to set up the tns names gives machine that is 9i to be able to see the 10g bank?
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

exactly ..

=]
rafaellomba
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 21
Joined: Tue, 14 Aug 2007 9:39 am
Location: Rio de Janeiro - RJ
Rafael Lomba

I'll make this change and put to say if it worked.

Memo So, thank you.
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest