|
|
|
|
|
|
| Author |
Message |
michelles *nix forums beginner
Joined: 13 Jul 2006
Posts: 1
|
Posted: Thu Jul 13, 2006 6:17 pm Post subject:
Re: ERROR [40003] [IBM][CLI Driver]
|
|
|
I don't know if you ever resolved this, but we just had similar problem.
What version of DB2 are you on? We just upgraded to Db2 V7, with DB2
connect 8.1 and DB2 client 8.1.2. We also were in the middle of upgrading
DB2 Clint to Service pack 12. Well anyway, all went back to upgrade to
DB2 V7 on mainframe. We needed to increate IDACK from 30 to 50, MAXDBAT
from 64 to 200 and CONDAT from 64 to 200 and CTHREADS from 130 to 200.
This seemed to fix the issue. |
|
| Back to top |
|
 |
cwahlmeier@data-tronics.c *nix forums beginner
Joined: 14 Jun 2005
Posts: 11
|
Posted: Thu Jul 13, 2006 7:40 pm Post subject:
Re: ERROR [40003] [IBM][CLI Driver]
|
|
|
michelles wrote:
| Quote: | I don't know if you ever resolved this, but we just had similar problem.
What version of DB2 are you on? We just upgraded to Db2 V7, with DB2
connect 8.1 and DB2 client 8.1.2. We also were in the middle of upgrading
DB2 Clint to Service pack 12. Well anyway, all went back to upgrade to
DB2 V7 on mainframe. We needed to increate IDACK from 30 to 50, MAXDBAT
from 64 to 200 and CONDAT from 64 to 200 and CTHREADS from 130 to 200.
This seemed to fix the issue.
|
We have been getting about 50 -30081's per day every since we switched
from SNA to TCP/IP four years ago. I have worked two different ETR's
with IBM with no success. If you figure yours out, I would like to
hear about it. (We have reviewed every mainframe/gateway/client
setting known to humanity. No changes have fixed this problem for more
than a month!) I am going to have -30081 etched on my grave...
(We run DB2 Client on Windows V8 fp 11, DB2 Connect Enterprise Edition
on Windows V8 fp 11, and DB2 for z/OS V7.)
Craig Wahlmeier |
|
| Back to top |
|
 |
C.E.O. Gargantua *nix forums beginner
Joined: 16 Jul 2006
Posts: 8
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
But that's for using ODBC ( which requires the CAE ) -- which I don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
| Quote: | here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the iSeries 830,
running OS400.
For the connection string, I need to know what the "Database" is. I am
not familiar with how to find the "database" name, as an as400 newbie, I
only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the Database
names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
|
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com |
|
| Back to top |
|
 |
mg *nix forums beginner
Joined: 30 May 2005
Posts: 26
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
Have you tried the name of your AS/400?
at the command line type: STRSQL and press <Enter>
the next screen should tell you the name of your relational database
which in my case is the machine name.
C.E.O. Gargantua wrote:
| Quote: | But that's for using ODBC ( which requires the CAE ) -- which I
don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the
iSeries 830,
running OS400.
For the connection string, I need to know what the "Database" is.
I am
not familiar with how to find the "database" name, as an as400
newbie, I
only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a
Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the
Database
names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com |
|
|
| Back to top |
|
 |
C.E.O. Gargantua *nix forums beginner
Joined: 16 Jul 2006
Posts: 8
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
I used the command that rex suggested and came up with
Entry Remote Location
S10DCD4B *LOCAL
mg wrote:
| Quote: | Have you tried the name of your AS/400?
at the command line type: STRSQL and press <Enter
the next screen should tell you the name of your relational database
which in my case is the machine name.
C.E.O. Gargantua wrote:
But that's for using ODBC ( which requires the CAE ) -- which I
don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the
iSeries 830,
running OS400.
For the connection string, I need to know what the "Database" is.
I am
not familiar with how to find the "database" name, as an as400
newbie, I
only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a
Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the
Database
names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
|
|
|
| Back to top |
|
 |
C.E.O. Gargantua *nix forums beginner
Joined: 16 Jul 2006
Posts: 8
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
Thank you Rex!
Does the CAE .net provider include the MSM files for .net ( so I can
create an installable application with the provider, and not have to
install the full CAE on the target ).
Rex Moore wrote:
| Quote: | The latest version of iSeries Acces for Windows (formerly CAE) includes a
.NET provider - that is what my example uses. Please refer to this redbook
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm
Because it uses IBMDA400 in the connetion string does not mean it used ODBC
or OLE/DB. It was released in 2004. That release of CA 5.3 is more recent
than the article you refer to (2003). The name of the AS/400 database can
found by WRKRDBDIRE on the AS/400. I do not know if that value will work
with the DB2 UDB provider. I use the CAE .NET provider becasue I believe it
is optimized for the iSeries. Good luck
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352eflF4hpr54U1@individual.net...
But that's for using ODBC ( which requires the CAE ) -- which I don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the iSeries
830, running OS400.
For the connection string, I need to know what the "Database" is. I am
not familiar with how to find the "database" name, as an as400 newbie, I
only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the Database
names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
|
|
|
| Back to top |
|
 |
C.E.O. Gargantua *nix forums beginner
Joined: 16 Jul 2006
Posts: 8
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
Well, unfortunately they have not installed the sql tools on the as/400
so that command does not exist on my machine!
mg wrote:
| Quote: | Have you tried the name of your AS/400?
at the command line type: STRSQL and press <Enter
the next screen should tell you the name of your relational database
which in my case is the machine name.
C.E.O. Gargantua wrote:
But that's for using ODBC ( which requires the CAE ) -- which I
don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the
iSeries 830,
running OS400.
For the connection string, I need to know what the "Database" is.
I am
not familiar with how to find the "database" name, as an as400
newbie, I
only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a
Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the
Database
names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
|
|
|
| Back to top |
|
 |
Rex Moore *nix forums beginner
Joined: 16 Jul 2006
Posts: 2
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
The latest version of iSeries Acces for Windows (formerly CAE) includes a
..NET provider - that is what my example uses. Please refer to this redbook
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm
Because it uses IBMDA400 in the connetion string does not mean it used ODBC
or OLE/DB. It was released in 2004. That release of CA 5.3 is more recent
than the article you refer to (2003). The name of the AS/400 database can
found by WRKRDBDIRE on the AS/400. I do not know if that value will work
with the DB2 UDB provider. I use the CAE .NET provider becasue I believe it
is optimized for the iSeries. Good luck
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352eflF4hpr54U1@individual.net...
| Quote: |
But that's for using ODBC ( which requires the CAE ) -- which I don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the iSeries
830, running OS400.
For the connection string, I need to know what the "Database" is. I am
not familiar with how to find the "database" name, as an as400 newbie, I
only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the Database
names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com |
|
|
| Back to top |
|
 |
C.E.O. Gargantua *nix forums beginner
Joined: 16 Jul 2006
Posts: 8
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: IBM DB2 Connector throws exception with .Connect() in .net
|
|
|
Frans Bouma [C# MVP] wrote:
| Quote: | However, what you did is not correct. Btw, The DB2 UDB .net provider
works with AS/400 if DB Connect is installed on the AS/400. Is that the
case?
|
How can I confirm whether it's installed or not? What command?
I have been able to use OleDb to connect...does this imply that DB
Connect is installed ?
| Quote: |
Frans.
string myConnString =
"Database=as400;Server=192.168.1.43;UID=JBAILO;PWD=TOOTHPICK1;";
That generated a new error which seems to indicate a
problem with the protocol specification...
IBM.Data.DB2.DB2Exception: ERROR [08001] [IBM] SQL30081N A
communication error has been detected. Communication protocol being
used: "TCP/IP". Communication API being used: "SOCKETS". Location
where the error was detected: "192.168.1.43". Communication function
detecting the error: "connect". Protocol specific error code(s):
"10061", "*", "*". SQLSTATE=08001
I wonder if I need to specify tcp/ip. I tried using the Net
Library=TCPIP but it threw an Invalid argument.
Frans Bouma [C# MVP] wrote:
The God's Awful Truth wrote:
I now see a new class of error. Are there additonal parameters I
should use in my Connection String? I am still not sure what a
Database is...MARDRPALL is a File in the $HAWLIB. Should I use the
Library name?
I'm not sure, but what I do know is that with an AS/400 you get
DB2 client software, with which you can administrate the DB2 instance
on the AS/400. With that one you could browse teh DB2 instance and
see which catalogs there are..
Using the connection string:
try {
string myConnString =
"Database=MARDRPALL;Server=192.168.1.43;UID=JBAILO;PWD=TOOTHPICK1;";
Your AS/400 is on TCP/IP or does it use IBM net? Also, did you
try the local dns name for 192.168.1.43?
Frans.
|
--
Texeme
http://texeme.com
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com |
|
| Back to top |
|
 |
Rex Moore *nix forums beginner
Joined: 16 Jul 2006
Posts: 2
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
You are getting a lot of advice. I normally install iSeries data components
by doing a selective setup from the cd. There are other ways. Look at this
redbook
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/info/rzaij/rzaij.pdf
you may find the section "create a tailored installation image of iSeries
access for windows" interesting. It is on page 36 of the pdf.
The doumentation (redbooks) with examples is a little lacking at this time.
Online help (with coding example in both vb and c# ) is available in iSeries
access help.
The db2 connect product would have to be installed on each client. You would
know it if you had it. I see others have suggested it. I found the db2 -
udb - connect way cumbersome - too many layers - I never got it to work as
well as I wanted. The runtime requirements are greater than the iSeriies
..Net provider. I tried the UDB way and gave up when IBM came out with the
iSeries .net provider. It was a big hooray from me.
More info -
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm?info/rzaik/rzaikdotnetprovider.htm
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352tpaF4h1forU2@individual.net...
| Quote: |
Ok, I acquired the iSeries Setup and Operations, Version 5, Release 3, CD
with iSeries Access for Windows. I will use the DB2 provider from there.
Rex Moore wrote:
The latest version of iSeries Acces for Windows (formerly CAE) includes a
.NET provider - that is what my example uses. Please refer to this
redbook
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm
Because it uses IBMDA400 in the connetion string does not mean it used
ODBC or OLE/DB. It was released in 2004. That release of CA 5.3 is more
recent than the article you refer to (2003). The name of the AS/400
database can found by WRKRDBDIRE on the AS/400. I do not know if that
value will work with the DB2 UDB provider. I use the CAE .NET provider
becasue I believe it is optimized for the iSeries. Good luck
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352eflF4hpr54U1@individual.net...
But that's for using ODBC ( which requires the CAE ) -- which I don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the iSeries
830, running OS400.
For the connection string, I need to know what the "Database" is. I
am not familiar with how to find the "database" name, as an as400
newbie, I only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the
Database names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
Texeme
http://texeme.com
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com |
|
|
| Back to top |
|
 |
C.E.O. Gargantua *nix forums beginner
Joined: 16 Jul 2006
Posts: 8
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
Here's the scoop. After installing the iSeries .NET Data Provider,
there is a .net DB2 iseries provider v10 in the references list.
And, my .net setup program recognizes the IBM.Data.DB2.iSeries.dll
dependency ( and hopefully will bundle it when I deploy ! ).
This code then works:
try
{
="Data Source=192.168.1.43;User Id=JBAILO;Password=XXXXXX;Default
Collection=DataLibrary;";
iDB2DataReader iRead ;
iDB2Connection iconn = new iDB2Connection(myConnString);
iconn.Open();
iDB2Command icmd = new iDB2Command("SELECT * FROM $MYLIB.MYFILE",iconn);
iRead = icmd.ExecuteReader();
} catch (Exception e) {Debug.WriteLine(e.ToString());}
Last thing on my wish list?
A way to specify a Member of a multi member file in a SQL statement (
MYLIB.MYFILE.MYMEMBER ) without throwing an error.
Rex Moore wrote:
| Quote: | The latest version of iSeries Acces for Windows (formerly CAE) includes a
.NET provider - that is what my example uses. Please refer to this redbook
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm
Because it uses IBMDA400 in the connetion string does not mean it used ODBC
or OLE/DB. It was released in 2004. That release of CA 5.3 is more recent
than the article you refer to (2003). The name of the AS/400 database can
found by WRKRDBDIRE on the AS/400. I do not know if that value will work
with the DB2 UDB provider. I use the CAE .NET provider becasue I believe it
is optimized for the iSeries. Good luck
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352eflF4hpr54U1@individual.net...
But that's for using ODBC ( which requires the CAE ) -- which I don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the iSeries
830, running OS400.
For the connection string, I need to know what the "Database" is. I am
not familiar with how to find the "database" name, as an as400 newbie, I
only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the Database
names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
|
--
Texeme
http://texeme.com
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com |
|
| Back to top |
|
 |
Robert Comer *nix forums beginner
Joined: 16 Jul 2006
Posts: 1
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
| Quote: | A way to specify a Member of a multi member file in a SQL statement (
MYLIB.MYFILE.MYMEMBER ) without throwing an error.
|
You have to create an alias on the 400.
CREATE ALIAS $MYLIB.MYFILEA FOR $MYLIB.MYFILE (MYMEMBER)
- Bob Comer
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:3558bqF4gqrpdU1@individual.net...
| Quote: |
Here's the scoop. After installing the iSeries .NET Data Provider, there
is a .net DB2 iseries provider v10 in the references list.
And, my .net setup program recognizes the IBM.Data.DB2.iSeries.dll
dependency ( and hopefully will bundle it when I deploy ! ).
This code then works:
try
{
="Data Source=192.168.1.43;User Id=JBAILO;Password=XXXXXX;Default
Collection=DataLibrary;";
iDB2DataReader iRead ;
iDB2Connection iconn = new iDB2Connection(myConnString);
iconn.Open();
iDB2Command icmd = new iDB2Command("SELECT * FROM $MYLIB.MYFILE",iconn);
iRead = icmd.ExecuteReader();
} catch (Exception e) {Debug.WriteLine(e.ToString());}
Last thing on my wish list?
A way to specify a Member of a multi member file in a SQL statement (
MYLIB.MYFILE.MYMEMBER ) without throwing an error.
Rex Moore wrote:
The latest version of iSeries Acces for Windows (formerly CAE) includes a
.NET provider - that is what my example uses. Please refer to this
redbook
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm
Because it uses IBMDA400 in the connetion string does not mean it used
ODBC or OLE/DB. It was released in 2004. That release of CA 5.3 is more
recent than the article you refer to (2003). The name of the AS/400
database can found by WRKRDBDIRE on the AS/400. I do not know if that
value will work with the DB2 UDB provider. I use the CAE .NET provider
becasue I believe it is optimized for the iSeries. Good luck
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352eflF4hpr54U1@individual.net...
But that's for using ODBC ( which requires the CAE ) -- which I don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the iSeries
830, running OS400.
For the connection string, I need to know what the "Database" is. I
am not familiar with how to find the "database" name, as an as400
newbie, I only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the
Database names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
Texeme
http://texeme.com
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com |
|
|
| Back to top |
|
 |
user *nix forums beginner
Joined: 21 Mar 2005
Posts: 35
|
Posted: Sun Jul 16, 2006 4:42 am Post subject:
Re: What is an as/400 'Database'
|
|
|
The problem is that the iSeries member concept is not an sql standard. It
is an iSeries thing. The ALIAS thing works. Another solution is to create
a cl program on the iSeries that receives the member as a parameter. CL
overrides to that file/member and runs an rpg program with embedded sql that
returns data. Then create a stored procedure for the cl that takes an
input parm (for the member) . Then call the stored procedure passing the
member name from your .net application. This will work - I have done it.
But, it invloves programming on the iSeries. It sounds more complicated
than it is. There may be simpler ways. I find the iSeries .net provider
works much better with the iSeries than the earlier ole/db provider -
especially when dealing with stored procedures.
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:3558bqF4gqrpdU1@individual.net...
| Quote: |
Here's the scoop. After installing the iSeries .NET Data Provider,
there is a .net DB2 iseries provider v10 in the references list.
And, my .net setup program recognizes the IBM.Data.DB2.iSeries.dll
dependency ( and hopefully will bundle it when I deploy ! ).
This code then works:
try
{
="Data Source=192.168.1.43;User Id=JBAILO;Password=XXXXXX;Default
Collection=DataLibrary;";
iDB2DataReader iRead ;
iDB2Connection iconn = new iDB2Connection(myConnString);
iconn.Open();
iDB2Command icmd = new iDB2Command("SELECT * FROM $MYLIB.MYFILE",iconn);
iRead = icmd.ExecuteReader();
} catch (Exception e) {Debug.WriteLine(e.ToString());}
Last thing on my wish list?
A way to specify a Member of a multi member file in a SQL statement (
MYLIB.MYFILE.MYMEMBER ) without throwing an error.
Rex Moore wrote:
The latest version of iSeries Acces for Windows (formerly CAE) includes
a
.NET provider - that is what my example uses. Please refer to this
redbook
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm
Because it uses IBMDA400 in the connetion string does not mean it used
ODBC
or OLE/DB. It was released in 2004. That release of CA 5.3 is more
recent
than the article you refer to (2003). The name of the AS/400 database
can
found by WRKRDBDIRE on the AS/400. I do not know if that value will
work
with the DB2 UDB provider. I use the CAE .NET provider becasue I
believe it
is optimized for the iSeries. Good luck
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352eflF4hpr54U1@individual.net...
But that's for using ODBC ( which requires the CAE ) -- which I don't
want to use.
I'm using the DB2 Provider for .net
Here is a description of the DB2 Provider ( and the ODBC and Ole
technologies as well) :
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0402chong
2/#scenario3
The problem is I don't know how to identify a "database" name on the
as/400 as400
Rex Moore wrote:
here is a vb.net connection string
Const connString As String =
"Provider=IBMDA400.DataSource.1;Password=PASSWORD;Persist Security
Info=True;User ID=USER;Data Source=XXX.XXX.XXX.XXX;Catalog Library
List=MYAS400LIBR"
xxx.xxx.xxx.xxx = ip address
"C.E.O. Gargantua" <usb@cord.blah> wrote in message
news:352d19F4gqjo4U1@individual.net...
I am attempting to use the DBConnection method of the DB2 .NET Data
Provider to establish a connect between .Net and files in the iSeries
830, running OS400.
For the connection string, I need to know what the "Database" is. I
am
not familiar with how to find the "database" name, as an as400 newbie,
I
only know the library, file and member I am trying to access.
I tried using the Operations Navigator, but it doesn't have a Database
Navigator showing. Is that a separate install?
Is there some default name for Database in the as/400?
Is there a command I can run in the terminal emulator to see the
Database
names? I can see the libaries and files using PDM.
Here is the code I'm trying to run:
string myConnString =
"Database=?????;Server=192.168.1.43;UID=XXXX;PWD=XXXX;";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com
--
Texeme
http://texeme.com
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com |
|
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Mon Dec 01, 2008 11:47 pm | All times are GMT
|
|
Bad Credit Mortgages | Big Brother 9 | Gas Suppliers | Mortgage Loans | Problem Mortgage
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|