Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

db2 help for an oracle user : create database hangs without any output

$
0
0
I am new to db2 but have worked on oracle before. Trying to create a database and it isn't succeeding. Quite possibly I am missing something obvious.

I have installed db2 10.5 on a 64 bit ubuntu machine.

First, I logged in as db2inst1 which is the instance owner, and invoked db2 on the command line, to get to the shell.

alok@mylaptop:~$ su - db2inst1
शब्दकूट:
$ uname -a
Linux cxps044 3.2.0-52-generic #78-Ubuntu SMP Fri Jul 26 16:21:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ db2
(c) Copyright IBM Corporation 1993,2007
Command Line Processor for DB2 Client 10.5.0

You can issue database manager commands and SQL statements from the command
prompt. For example:
db2 => connect to sample
db2 => bind sample.bnd

For general help, type: ?.
For command help, type: ? command, where command can be
the first few keywords of a database manager command. For example:
? CATALOG DATABASE for help on the CATALOG DATABASE command
? CATALOG for help on all of the CATALOG commands.

To exit db2 interactive mode, type QUIT at the command prompt. Outside
interactive mode, all commands must be prefixed with 'db2'.
To list the current command option settings, type LIST COMMAND OPTIONS.

For more detailed help, refer to the Online Reference Manual.
Next I attached an instance to db2inst1, which I believe was successful considering the output. I followed instructions from db2 cli install for this.

db2 => attach to db2inst1

Instance Attachment Information

Instance server = DB2/LINUXX8664 10.5.0
Authorization ID = DB2INST1
Local instance alias = DB2INST1
Next I attempted to create the database using this command:

db2 => create database mytestdb
And this hangs, without providing any output.

How do I even get started with trying to diagnose what's wrong? I am new to db2, but familiar with oracle and linux/posix.

Viewing all articles
Browse latest Browse all 13329

Trending Articles