Home » SQL & PL/SQL » SQL & PL/SQL » remote database migration (Oracle 11.2.0.3)
remote database migration [message #644018] Mon, 26 October 2015 04:12 Go to next message
deb171100
Messages: 7
Registered: October 2015
Junior Member
Our remote database is now going to be moved to a new location. The remote tables are accessed via dblink. The materalized view exists in our local db and is referencing the tables thru db link.

Can you please advise if any points are missing.

Connectivity needs to be established with new remote db
dblink need to be dropped and re created to use new db link
TNS entry should be modified in local tnsnames.ora.

**should be existing remote db.

[Updated on: Mon, 26 October 2015 04:18]

Report message to a moderator

Re: remote database migration [message #644020 is a reply to message #644018] Mon, 26 October 2015 04:19 Go to previous messageGo to next message
Michel Cadot
Messages: 68776
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

You don't need to recreate the dblink, just modify the tnsnames.ora to point to the new database.

Re: remote database migration [message #644022 is a reply to message #644020] Mon, 26 October 2015 04:34 Go to previous messageGo to next message
deb171100
Messages: 7
Registered: October 2015
Junior Member
Thanks!
So, we just have to modify the below entry in tnsnames.ora
TNS name, IP, PORT right?

Also one point I forgot to mention is - We need to drop and recreate the existing materialized view.

Re: remote database migration [message #644023 is a reply to message #644022] Mon, 26 October 2015 04:59 Go to previous messageGo to next message
Michel Cadot
Messages: 68776
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

1/ all the relevant connection information, maybe service_name, global_name...
2/ No you don't need to

Re: remote database migration [message #644024 is a reply to message #644022] Mon, 26 October 2015 05:00 Go to previous messageGo to next message
deb171100
Messages: 7
Registered: October 2015
Junior Member
Yes, yes we don't have to as there is no change in MV ddl.Thanks!

Re: remote database migration [message #644025 is a reply to message #644023] Mon, 26 October 2015 05:24 Go to previous messageGo to next message
deb171100
Messages: 7
Registered: October 2015
Junior Member
It would really help if you share what are those relevant information other than those mentioned?
Re: remote database migration [message #644026 is a reply to message #644025] Mon, 26 October 2015 05:49 Go to previous messageGo to next message
Michel Cadot
Messages: 68776
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

None.

Re: remote database migration [message #644029 is a reply to message #644020] Mon, 26 October 2015 06:46 Go to previous message
EdStevens
Messages: 1377
Registered: September 2013
Senior Member
Michel Cadot wrote on Mon, 26 October 2015 04:19

You don't need to recreate the dblink, just modify the tnsnames.ora to point to the new database.



That would depend on how the db link is defined in the first place. If it is defined to use a tnsnames reference, then true. But if it is defined with a hard-coded connection string, then it would need to be re-defined. And hopefully that redefinition would be to use tnsnames entry.
Previous Topic: To Split data based on dates
Next Topic: Searching through entire table.
Goto Forum:
  


Current Time: Sat Jul 11 09:53:57 CDT 2026