473,786 Members | 2,350 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need Help with setting up a new db2 database v9 wse!!

1 New Member
Hello Guru's

I am new to db2 and need some help with setting up a new database.
So far I have created the database. "DB2 create database" And was sent the .sql file would this be the DDL? At this point how do I get the 4 .sql files ran or put into that database. The files seem to have all the table info etc when I "more" them. Do I need to create a table in the database before running each of these files and how would I run them. What command would I use. Help!
Any help right now would be appreciated.. This is a unix server and db2 workgroup server edition v 9.5. Please outline any steps in setting up the database I would truly appreciate it. Also have been trying to get the Control Center running on this box. Even though the Administrative server is running I cant seem to get it started. Tried db2cc. Do I need x server or something in order to do this?

Help!!


Lisa P.
Texas
Feb 21 '08 #1
1 1387
sakumar9
127 Recognized Expert New Member
If you have created the database, then you can directly run this .sql script which is having the ddls. It will create all the tables for you.

You can use following command to run the .sql script.

Expand|Select|Wrap|Line Numbers
  1. CONNECT TO <dbname>;
  2. db2 -tvf <scriptname.sql> ---> Check what delimiting character are you using. By default, its a semi-colon(;).
  3.  
Didi I interpreted your problem correctly.. :((

Regards
-- Sanjay
Feb 27 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1927
by: pk_pk | last post by:
hi, i've searched quite a bit, but cant find any post relating to sql command for setting database passwords. anyone know how? thanks pk
5
1503
by: garyusenet | last post by:
At least I think it's using an API (i don't totally understand the concept.) I'm using Act 6. I need to interface with the act database and add 'contacts' to the database. The reason I need to do this is because i'm writing a little program to add a new prospect to the database when a telephone lead rings through, the receptionist will use this program, enter a few pieces of information and then transfer the call to the salesman - at...
5
1504
by: Shani | last post by:
I need help setting up a database which includes a list of about 1200 urls. Anyone who accesses the database should be able to input wheather the url is good or bad. I want to share the databse over a network. If possbile I would like a web page view with Url displayed at the top of the page, the actual URL content displayed in the middle, and the option to input weather or not the URL is good or Bad. I would appreciate it if someone can...
3
3418
by: Big Charles | last post by:
Hi, We have developed an ASP.NET web application and are planning to host it in an external Server, which provides us a good bandwidht. We need to put he web application outside because the bandwidtht that we have in our local office won't be enough for the number of users that access to our web app. But for backup issues, the database server will be in our local office.
1
1597
by: srikar | last post by:
Hi all, For the class strstream let the object be line. On an 16 bit machine previously of ANSI standard ststream line line.setf(ios::in); What is need for setting the flag to input. Is that at that time for the class strstream , we want to use stratream object to input do we need to set using this type of flags or there is any other use for it.
0
1466
by: Ian Toltz | last post by:
I'm working on a program for creating user accounts. I'm having issues with setting the permissions. Here's an example: String homeDir = @"\\SERVER\directory\"+username; //Create the directory Directory.CreateDirectory(homeDir);
1
1609
by: behnaz.behzadi | last post by:
Hi there, I need help with setting up a reminder in my sql. It needs to check the inventory on hand for a product and if it is below 3 unit, it needs to send an e-mail reminder to the user. how do I set this up? Thanks,
1
2788
by: rockchicx23 | last post by:
i have to write a program that is a guessing the number game. the user has to choose the number of games they want to play. i need help setting up the loop that will run the number of times the user wants it to here is my code so far //Assignment 2 Play //In this guessing game the user will be asked to guess a number from between 1-100 //The user has ten tries if they donot guess the right number its game over //The user also gets to...
0
1303
by: srgrector | last post by:
Help? with Coding database modification script using a webform & frames... I will have an Amazon book database that is updated regularly, say weekly. I need a program/script that I can run in IExplorer (as a page, or on a page) that will allow me to review any records that the category "Include?" lists as "Undecided"; assign the record a "Yes" or "No" in place of the "Undecided" and then update the database. I only want to review undecided...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10108
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.