problem_in_orcle_net [message #496130] |
Thu, 24 February 2011 12:34  |
m_shehpar
Messages: 73 Registered: October 2010 Location: Pakistan
|
Member |
|
|
hi all,
i have a query in configuring oracle net for replication...
i have 2 databases at 2 different computers.
master database name with net service name is orcl and ip = 192.168.1.10
client (materialized view site) has database name and net service name = hbfm and ip = 192.168.1.11
now for successful replication, at the client's tnsnames.ora file should i do the following changes:
1. host = 192.168.1.10
2. SERVICE_NAME = orcl
am i right ???
i use oracle 10.2.0.1.0
regards
|
|
|
|
|
Re: problem_in_orcle_net [message #496160 is a reply to message #496146] |
Fri, 25 February 2011 00:02   |
m_shehpar
Messages: 73 Registered: October 2010 Location: Pakistan
|
Member |
|
|
hi little foot,
i had done the same except in the client database (service_name orcl). i was facing problems so i re created the client database with the name orcl. i.e. by now both of my master and client database names are the same (orcl).
my client database tnsnames configuration is like:
HBFM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521)) --master database ip
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
and my master database tnsnames.ora file is like:
HBFP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
by now i have a problem with registering propagator. i.e (ORA-23394: duplicate propagator)
at the master site i had registered a propagator, but while attempting to register a propagator for the client database i faced this problem. i suspected my tnsnames file, thats why i mentioned this in my post here
[EDITED by LF, by mistake. No changes made]
[Updated on: Fri, 25 February 2011 00:09] by Moderator Report message to a moderator
|
|
|
|
Re: problem_in_orcle_net [message #496167 is a reply to message #496164] |
Fri, 25 February 2011 00:40   |
m_shehpar
Messages: 73 Registered: October 2010 Location: Pakistan
|
Member |
|
|
ok i will wait but please confirm my tnsnames.ora file for client. i have put the host address of master database....
plus i was told to put the service_name = master_database_name. i got confused so i recreated the client database and kept same names for both master and client and just renamed both net service names for master and client via net configuration assistant
regards
|
|
|
|
|
Re: problem_in_orcle_net [message #496183 is a reply to message #496179] |
Fri, 25 February 2011 01:59   |
m_shehpar
Messages: 73 Registered: October 2010 Location: Pakistan
|
Member |
|
|
actually i am following the oracle recommended book: Replication Management API Reference 10g (10.2).
i am novice to replication and i trying it the way its written in that book... i.e., i created a full fledged OLTP and supposed it as a master site. gave the repliction admin all the rights, registered propagator and reciever, created proxy master site user...
then on the other machine i installed anoter database and created a materialized view admin, gave rights, created a propagator but when i tried to register the propagator i confronted this problem...
the copy of my spool where i got the error is as follows:
SQL> BEGIN
2 DBMS_DEFER_SYS.REGISTER_PROPAGATOR (
3 username => 'propagator');
4 END;
5 /
BEGIN
*
ERROR at line 1:
ORA-23394: duplicate propagator
ORA-06512: at "SYS.DBMS_DEFER_INTERNAL_SYS", line 1572
ORA-06512: at "SYS.DBMS_DEFER_SYS", line 2460
ORA-06512: at line 2
since in that book, configuration of the oracle net was not explained thus i am having serious problems...
regards...
|
|
|
Re: problem_in_orcle_net [message #496292 is a reply to message #496183] |
Fri, 25 February 2011 23:23   |
m_shehpar
Messages: 73 Registered: October 2010 Location: Pakistan
|
Member |
|
|
hi
i got my problem 90% fixed. my suspicion was right... the way i was configuring my tnsnames.ora files was
incorrect. i was accessing master from client but i was not accessing client's own database. the correct version
of both tnsnames.ora file that had to be the same at master and client site is as follows
HBFM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.11)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
HBFP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
HBFM is materialized view site for HBFP. each tnsnames.ora file had to have a net service name and hence an
access to the other participating database .
now the other mind teaser that i am confronting is that OracleDBConsoleORCL service at the client site hbfm (in services.msc of windows xp)
is unable to turn on, due to which master site HBFP can not connect to the client database HBFM.
even while configuring the tnsnames.ora file at the client site via the net configuration assitant, the service test
failed to connect to hbfm. ora-12170 is the error prompted...
can u help me at this now???
another question i want to ask,, should i index only the foreign keys and replicate these indexes only or should i replicate all the indexes that i have in my master schema ???
the book that i am following has explicitly mentioned to index the foreign keys and replicate them, but it didnt replicated the other indexes while mentioning the examples of replication...
waiting for help
regards...
|
|
|
|
Re: problem_in_orcle_net [message #496336 is a reply to message #496317] |
Sat, 26 February 2011 23:57  |
m_shehpar
Messages: 73 Registered: October 2010 Location: Pakistan
|
Member |
|
|
thanks for your help, may be i didnt understand you earlier. and for the second question i caught my stupidity very late. actually my firewall was turned on which was preventing the connection
thanks again for help
|
|
|