473,408 Members | 1,875 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,408 software developers and data experts.

NewBee Express-C Questions

Hello fellow DB2ers!

I have a new DB2 Express-C (version 9.5) installation running on Vista
Business.

I'm able to create new databases using the "create db dbname" command.
I'm setting out to configure my DB2 installation so I can establish
connections from a web application.

So I have a few questions:

1. How do I create a database and associate a port number for
connections?

2. Once my database is created, how do I see what port number it runs
on?

3. Where is the Express-C driver file (db2jcc_license_cu.jar) that
I'd use with Java to connect?

4. Do the type-4 Java drivers (db2jcc.jar) that connect to DB2 for
Enterprise versions of DB2 also work for Express-C?

5. I need to create a new user for connecting to an application. The
username is PORTAL.

Right now my computer is named lenovo and the workgroup is the out of
the box WORKGROUP.

ha ha.

Should I modify these values or go with what I have?

That is, do I need to install Kerberose and configure that so the user
PORTAL can connect?

Or do I need to set up a Windows DOMAIN and use something aside from
WORKGROUP?

6. Can I swap out 127.0.0.1 in my connection strings for the host
name?

Thanks.
Nov 1 '08 #1
1 2331
<gi*******************@yahoo.comwrote in message
news:a6**********************************@q30g2000 prq.googlegroups.com...
Hello fellow DB2ers!

I have a new DB2 Express-C (version 9.5) installation running on Vista
Business.

I'm able to create new databases using the "create db dbname" command.
I'm setting out to configure my DB2 installation so I can establish
connections from a web application.

So I have a few questions:

1. How do I create a database and associate a port number for
connections?

2. Once my database is created, how do I see what port number it runs
on?

3. Where is the Express-C driver file (db2jcc_license_cu.jar) that
I'd use with Java to connect?

4. Do the type-4 Java drivers (db2jcc.jar) that connect to DB2 for
Enterprise versions of DB2 also work for Express-C?

5. I need to create a new user for connecting to an application. The
username is PORTAL.

Right now my computer is named lenovo and the workgroup is the out of
the box WORKGROUP.

ha ha.

Should I modify these values or go with what I have?

That is, do I need to install Kerberose and configure that so the user
PORTAL can connect?

Or do I need to set up a Windows DOMAIN and use something aside from
WORKGROUP?

6. Can I swap out 127.0.0.1 in my connection strings for the host
name?

Thanks.
1. The port number is associated with the instance, not the database. With
DB2 Windows install, a default instance is created (you can create
additional instances) with a port number of 50000.

2. db2 get dbm cfg. The port number is the SVCENAME, which is tied to port
50000 in a services file in Windows. You can change the port number by
hardcoding the port number such as "db2 update db cfg using svcename 50100".

3. Not sure. But you can download them from the IBM website for free without
the data server.

4. Yes

5. DB2 uses the Operating System user and password, so create it in windows,
then use grant statement to give access in DB2 to specific objects. You do
not need a domain.

6. Not sure.
Nov 1 '08 #2

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

Similar topics

3
by: Newbee | last post by:
Hi ! Let's say that this is the folder on the server: /web/firstDir/secondDir/images/image.gif where i have stored my pictures. I have tryed with apsolute and relative paths but i can't display...
2
by: Newbee Adam | last post by:
some said that .NET app can run on any program where rutime exists. What is "runtime" in this sense? will I have to install runtime or .net framework or .NET support on an xp machine for a...
2
by: Martin Hvidberg | last post by:
Dear list I have found a declaration like this: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #include "ectemp.h"
9
by: EMW | last post by:
I have created a page in aspx and after a click on a button, a new page should open. How is this possible? I tried it doing it like in vb.NET with opening a new form, but it doesn't work. rg,...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
4
by: Andrew Robinson | last post by:
My main dev machine has WinXp and VS2005 (pro). 1. I need to install VWD Express Edition so that I can do some instruction on this. Any issues with both on the same machine. Installation order?...
13
by: Miro | last post by:
Ok I have been slowely - and ever so slowely teaching myself VB.net Currently I have created an MDB file by code, and added fields to the MDB file by code. I like this solution because, ( im...
8
by: ikarias | last post by:
Maybe not the right place to aske this, but a newbee (me) needs help. i trying to input a number into a textbox, so i can make a series of calculations. in the old days of basic i just jused...
2
by: Mel | last post by:
I have a selection box with 3 values. what i need is to pass 3 urls to a function that has a switch statement and based on the selection index goes on one of the tree urls. Question is how do i...
2
by: Rene | last post by:
Hello to all! I am a newbee to C++, I did a beginners' course, and now I am stuck with a strange problem. I have written the function that is pasted downwards. The peculiar thing is that when...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.