473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DB2 Replication Error - Oracle 10g to DB2 8.2 (8.1.8)

Hello All,

I'm new to DB2, so apologies in advance for any stupid comments I
might make on this replication problem.
Using Information integrator and DB2 8.2 I managed to create a
nickname that references a table sitting on an Oracle 10g Database on
a different server.
I can reference the nickname and retrieve all the information on that
table from my DB2 instance.
The plan now is to have a replica of that table on my DB2 instance. I
decided to set-up a cached table as per DB2 documentation and this
process also created a Materialized Query Table which gets refreshed
using the nickname I had created earlier.
This process also created a replication schedule, capture control
server and control tables, apply control server and control tables on
the source and target databases.
All seemed to be going well but the replication was not working. After
an inspection into IBMSNAP_APPLYTRACE I found the following error
message:

ASN1001E APPLY "DEPARTMENT_MQT_AQ" : "WorkerThread". The Apply
program encountered an SQL error. The ERRCODE is "BF0103". The
SQLSTATE is "08004". The SQLCODE is "-1101". The SQLERRM is
"GCTST01˙GCTST01". The SQLERRP is "SQLQ003b". The server name is "".
The table name is ""ASN".IBMSNAP_REGISTER".

However I was unable to find a reference that would explain what
ERRCODE BF0103 is and now I haven't got a clue how to fix this
replication problem.

Any help or ideas would be greatly appreciated.
Nov 12 '05 #1
5 5257
Rafael,

you can look for the sqlcode. In your case it is 1101:
db2 '? sql1101'
SQL1101N Remote database "<name>" on node "<node-name>" could
not be accessed with the specified authorization id
and password.

Explanation:

A connection to the remote database "<name>" on node
"<node-name>" was requested, and the remote node does not accept
the authorization ID and password combination specified for this
node (either in the remote authorization tables or at runtime).

The request cannot be processed.

User Response:

Resubmit the request with a valid authorization ID and password
combination for the remote system.

sqlcode : -1101

sqlstate : 08004

best regards,
Joachim Müller

"Rafael Faria" <rp******@hotmail.com> schrieb im Newsbeitrag
news:4b**************************@posting.google.c om... Hello All,

I'm new to DB2, so apologies in advance for any stupid comments I
might make on this replication problem.
Using Information integrator and DB2 8.2 I managed to create a
nickname that references a table sitting on an Oracle 10g Database on
a different server.
I can reference the nickname and retrieve all the information on that
table from my DB2 instance.
The plan now is to have a replica of that table on my DB2 instance. I
decided to set-up a cached table as per DB2 documentation and this
process also created a Materialized Query Table which gets refreshed
using the nickname I had created earlier.
This process also created a replication schedule, capture control
server and control tables, apply control server and control tables on
the source and target databases.
All seemed to be going well but the replication was not working. After
an inspection into IBMSNAP_APPLYTRACE I found the following error
message:

ASN1001E APPLY "DEPARTMENT_MQT_AQ" : "WorkerThread". The Apply
program encountered an SQL error. The ERRCODE is "BF0103". The
SQLSTATE is "08004". The SQLCODE is "-1101". The SQLERRM is
"GCTST01˙GCTST01". The SQLERRP is "SQLQ003b". The server name is "".
The table name is ""ASN".IBMSNAP_REGISTER".

However I was unable to find a reference that would explain what
ERRCODE BF0103 is and now I haven't got a clue how to fix this
replication problem.

Any help or ideas would be greatly appreciated.

Nov 12 '05 #2
Rafael Faria wrote:
Hello All,

I'm new to DB2, so apologies in advance for any stupid comments I
might make on this replication problem.
Using Information integrator and DB2 8.2 I managed to create a
nickname that references a table sitting on an Oracle 10g Database on
a different server.
I can reference the nickname and retrieve all the information on that
table from my DB2 instance.
The plan now is to have a replica of that table on my DB2 instance. I
decided to set-up a cached table as per DB2 documentation and this
process also created a Materialized Query Table which gets refreshed
using the nickname I had created earlier.
This process also created a replication schedule, capture control
server and control tables, apply control server and control tables on
the source and target databases.
All seemed to be going well but the replication was not working. After
an inspection into IBMSNAP_APPLYTRACE I found the following error
message:

ASN1001E APPLY "DEPARTMENT_MQT_AQ" : "WorkerThread". The Apply
program encountered an SQL error. The ERRCODE is "BF0103". The
SQLSTATE is "08004". The SQLCODE is "-1101". The SQLERRM is
"GCTST01˙GCTST01". The SQLERRP is "SQLQ003b". The server name is "".
The table name is ""ASN".IBMSNAP_REGISTER".

However I was unable to find a reference that would explain what
ERRCODE BF0103 is and now I haven't got a clue how to fix this
replication problem.

Any help or ideas would be greatly appreciated.

BF must be th3 error code from replication...
SQLCODE 1101 complains about an autthorisation problem trying to access
GCTST01 on node GCTST01.
I leaning far out of the window here, but this is what I would investigate:
You knwo that teh regular II stuff is sane since you can use it.
So it boils down to the fact that this "daemon" uses another id for
which you don't have a user mapping.
Just a guess....

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #3
Hello Rafael,

Rafael Faria wrote:
ASN1001E APPLY "DEPARTMENT_MQT_AQ" : "WorkerThread". The Apply
program encountered an SQL error. The ERRCODE is "BF0103". The
SQLSTATE is "08004". The SQLCODE is "-1101". The SQLERRM is
"GCTST01˙GCTST01". The SQLERRP is "SQLQ003b". The server name is "".
The table name is ""ASN".IBMSNAP_REGISTER".


As others have mentioned before, this seems to be a connection error.
Check the following things:

password-file: defaults to "asnpwd.aut" (this should be somewhere in the
instance-directory).

Database Catalog: Is the capturing database cataloged and reacheable
from the apply-control-servers side?

You can create the password-file with "asnpwd" and check your
configuration with "asnanalyze".

Example:

"asnanalyze -pw $PATH_TO_PASSWORD_FILE/asnpwd.aut -db db1 db2 dbn -la
DETAILED"

would create a file called "asnanalyze.htm" containing a lot of
information about the current status of your replication environment in
the current directory including possible connection probs.

Hope this helps a litle bit.

Regards,

Norbert
Nov 12 '05 #4
Thanks guys for your help. Where do you look for ERRCODES and SQL
error codes for DB2? We bought the product but we haven't received the
official CD's and doco. Is there a on-line reference? I coulldn't find
it.
I'll investigate further into the authentication problem and let you
know if it worked.
I wasn't aware that you had to specify a password file for the
replication process to use. I thought it would use the same AuthId and
password I specified when I created the user mapping (when defining
the source server definition in my "Federated Database Objects"
folder. If the replication process is not using that mapping to
connect to the source server it will not connect.

Thanks very much for your time and help.

Rafael

Norbert Munkel <nm@acoreus.de> wrote in message news:<aQ**************@se2-cb104-9.zrh1.ch.colt.net>...
Hello Rafael,

Rafael Faria wrote:
ASN1001E APPLY "DEPARTMENT_MQT_AQ" : "WorkerThread". The Apply
program encountered an SQL error. The ERRCODE is "BF0103". The
SQLSTATE is "08004". The SQLCODE is "-1101". The SQLERRM is
"GCTST01˙GCTST01". The SQLERRP is "SQLQ003b". The server name is "".
The table name is ""ASN".IBMSNAP_REGISTER".


As others have mentioned before, this seems to be a connection error.
Check the following things:

password-file: defaults to "asnpwd.aut" (this should be somewhere in the
instance-directory).

Database Catalog: Is the capturing database cataloged and reacheable
from the apply-control-servers side?

You can create the password-file with "asnpwd" and check your
configuration with "asnanalyze".

Example:

"asnanalyze -pw $PATH_TO_PASSWORD_FILE/asnpwd.aut -db db1 db2 dbn -la
DETAILED"

would create a file called "asnanalyze.htm" containing a lot of
information about the current status of your replication environment in
the current directory including possible connection probs.

Hope this helps a litle bit.

Regards,

Norbert

Nov 12 '05 #5
Rafael,

welcome to the DB2 Information Center:
http://publib.boulder.ibm.com/infoce...help/index.jsp

that's for Tivoli:
http://publib.boulder.ibm.com/infoce...help/index.jsp

and for pSeries/AIX:
http://publib.boulder.ibm.com/infoce...ries/index.jsp

best regards,
Joachim Müller

"Rafael Faria" <rp******@hotmail.com> schrieb im Newsbeitrag
news:4b**************************@posting.google.c om...
Thanks guys for your help. Where do you look for ERRCODES and SQL
error codes for DB2? We bought the product but we haven't received the
official CD's and doco. Is there a on-line reference? I coulldn't find
it.
I'll investigate further into the authentication problem and let you
know if it worked.
I wasn't aware that you had to specify a password file for the
replication process to use. I thought it would use the same AuthId and
password I specified when I created the user mapping (when defining
the source server definition in my "Federated Database Objects"
folder. If the replication process is not using that mapping to
connect to the source server it will not connect.

Thanks very much for your time and help.

Rafael

Norbert Munkel <nm@acoreus.de> wrote in message
news:<aQ**************@se2-cb104-9.zrh1.ch.colt.net>...
Hello Rafael,

Rafael Faria wrote:
> ASN1001E APPLY "DEPARTMENT_MQT_AQ" : "WorkerThread". The Apply
> program encountered an SQL error. The ERRCODE is "BF0103". The
> SQLSTATE is "08004". The SQLCODE is "-1101". The SQLERRM is
> "GCTST01˙GCTST01". The SQLERRP is "SQLQ003b". The server name is "".
> The table name is ""ASN".IBMSNAP_REGISTER".
>


As others have mentioned before, this seems to be a connection error.
Check the following things:

password-file: defaults to "asnpwd.aut" (this should be somewhere in the
instance-directory).

Database Catalog: Is the capturing database cataloged and reacheable
from the apply-control-servers side?

You can create the password-file with "asnpwd" and check your
configuration with "asnanalyze".

Example:

"asnanalyze -pw $PATH_TO_PASSWORD_FILE/asnpwd.aut -db db1 db2 dbn -la
DETAILED"

would create a file called "asnanalyze.htm" containing a lot of
information about the current status of your replication environment in
the current directory including possible connection probs.

Hope this helps a litle bit.

Regards,

Norbert

Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Amy | last post by:
Hello All, We are currently looking into archiving our production system. I have looked into several different options to accomplish this, and Oracle Replication is one of them. Can anyone...
2
by: Cherrish Vaidiyan | last post by:
Hello, I have certain doubts regarding replication of Oracle 9i in Red Hat Linux 9. 1) I want to implement asynchronous/synchronous multimaster replication.I have heard about Replication...
0
by: Cherrish Vaidiyan | last post by:
Frank <fbortel@nescape.net> wrote in message news:<bqgb99$a04$1@news1.tilbu1.nb.home.nl>... > Cherrish Vaidiyan wrote: > > Hello, > > > > I have certain doubts regarding replication of Oracle 9i ...
1
by: Cherrish Vaidiyan | last post by:
hello, Thanx for replying to my earlier Google group query about Replication of Oracle 9i on RH9.IF the query followed is being repeated by me I am sorry for it.. I want to implement...
0
by: Cherrish Vaidiyan | last post by:
Sir, I have implemented asynchronous replication on 2 database located in 2 different system. I did it with Replication Management GUI Tool. Before explaining the error i will explain my...
2
by: Andras Kovacs | last post by:
We have a performance problem to replicate our environnement. Our java code is able to insert 100 000 rows in a table within 3 seconds using Batch Statement. For two oracle sites it takes 6...
1
by: RYAN | last post by:
Hi All, I am new to Oracle and I have some question that I hope that someone out there can help me. I have heard the Oracle Rman can do replication of Archives logs. In this way, one can...
3
by: steve | last post by:
Hi, several years ago , I implemented the oracle replication system. At that time our database was ported from an old Fox pro application. ( K , no laughing at the back). As the foxpro...
5
by: mjan | last post by:
Hello, could you please advice on how to measure replication performance in Oracle, DB2 & MS SQL Server RDBMS installed in Windows servers ? I've got two servers with databases installed and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.