If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Nickname Issue.Help!!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-16-11, 15:51
sysdba1 sysdba1 is offline
Registered User
 
Join Date: Aug 2011
Posts: 27
Nickname Issue.Help!!!

Hello,

We had a working nickname until two days ago which goes and hits an oracle database(target) from our DB2 Federation Server.

Oracle team has moved the single database to a HA pair to have primary and standby databases.The nickname worked fine when it was a single database.But after Primary and Standy have been introduced it stopped working.

So Steps I did:

1)Changed the tnsnames.ora file to have entries for both Primary and Standby
2)Droped the Server and nickname
2)Recreated the server for both Primary and Standby

4)Now, the real problem comes when trying to create the nickname.I am getting some error that neither info center nor google show much.Pls help me with this.Below are the details:

tnsnames,ora file before oracle database was HA pair

aaa.ax.xxx.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = abccom.ax.xxx.com)
(PROTOCOL = TCP)
(Host = abc4.ax.xxx.com)
(Port = 1521)
)
)
(CONNECT_DATA =
(SID = SDS)
(GLOBAL_NAME = aaa.ax.xxx.com )
)
)



After , the oracle db has been moved to HA pair,I modified the tnsnames.ora file to add like below

aaa.ax.xxx.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcpcom.dx.deere.com)
(PROTOCOL = TCP)
(Host = abc4.ax.xxx.com)
(Port = 1521)
)
(ADDRESS =
(COMMUNITY =abccom.ax.xxx.com)
(PROTOCOL = TCP)
(Host = abc3.ax.xxx.com)
(Port = 1521)
)
)
(CONNECT_DATA =
(SID = SDS)
(GLOBAL_NAME = aaa.ax.xxx.com )
)
)


The tnsping works, sqlplus works when I query the oracle table but when I am trying to create a nickname its failing with this error:

"DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL30080N A communication error "NET8: 1033" occurred sending or receiving
data from the remote database. SQLSTATE=08001"

Help needed !!!!
Reply With Quote
  #2 (permalink)  
Old 08-16-11, 16:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Firstly, this has nothing to do with DB2. ORA-1033 means that an Oracle instance is not available. Talk to your Oracle guys - they need to give you a proper tnsnames.ora.

If they have no clue, tell them that, without the FAILOVER specified, only one address at random is chosen from those in ADDRESS_LIST. I guess it just so happens that in your case the standby database listener is selection, and obviously you cannot connect to it while it is in standby mode.
Reply With Quote
  #3 (permalink)  
Old 08-16-11, 16:27
sysdba1 sysdba1 is offline
Registered User
 
Join Date: Aug 2011
Posts: 27
The tnsnames.ora entry that I added was given by the oracle team..But.how does the tnsping and sqlplus work and not the nickname...Correct me if I am wrong, but in either of the cases, meaning when using tnsping,sqlplus does it not look at tnsnames.ora file at all?
Reply With Quote
  #4 (permalink)  
Old 08-16-11, 16:37
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I think you should ask that in an Oracle forum. That would make an entertaining theoretical discussion. If you just need to fix the problem, try adding (FAILOVER=on) as the first item in ADDRESS_LIST
Reply With Quote
  #5 (permalink)  
Old 08-16-11, 16:56
sysdba1 sysdba1 is offline
Registered User
 
Join Date: Aug 2011
Posts: 27
Itried to add FAILOVER=ON ,but result is the same.I get the same error.

aaa.ax.xxx.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(FAILOVER=ON)
(COMMUNITY = tcpcom.dx.deere.com)
(PROTOCOL = TCP)
(Host = abc4.ax.xxx.com)
(Port = 1521)
)
(ADDRESS =
(COMMUNITY =abccom.ax.xxx.com)
(PROTOCOL = TCP)
(Host = abc3.ax.xxx.com)
(Port = 1521)
)
)
(CONNECT_DATA =
(SID = SDS)
(GLOBAL_NAME = aaa.ax.xxx.com )
)
)
Reply With Quote
  #6 (permalink)  
Old 08-16-11, 17:03
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
as the first item in address_list, not in address
Reply With Quote
  #7 (permalink)  
Old 08-16-11, 17:13
sysdba1 sysdba1 is offline
Registered User
 
Join Date: Aug 2011
Posts: 27
I tried that too...same issue

aaa.ax.xxx.com =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER=ON)
(ADDRESS =
(COMMUNITY = tcpcom.dx.deere.com)
(PROTOCOL = TCP)
(Host = abc4.ax.xxx.com)
(Port = 1521)
)
(ADDRESS =
(COMMUNITY =abccom.ax.xxx.com)
(PROTOCOL = TCP)
(Host = abc3.ax.xxx.com)
(Port = 1521)
)
)
(CONNECT_DATA =
(SID = SDS)
(GLOBAL_NAME = aaa.ax.xxx.com )
)
)
Reply With Quote
  #8 (permalink)  
Old 08-16-11, 17:37
sysdba1 sysdba1 is offline
Registered User
 
Join Date: Aug 2011
Posts: 27
any ideas guys??
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On