If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I'm trying a simple create command in two different servers , Server01 and Server02:
create table a (a char (1) null) ..
It works fine in the Server01
$db2 "create table a (a char (1) null)"
DB20000I The SQL command completed successfully.
but ...
It not works on Server02 :
db2 "create table a (a char (1) null)"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token ")" was found following "e A (a char (1) null".
Expected tokens may include: "<references_spec>". SQLSTATE=42601
I think you're crazy too .. commands are the same :
$db2 "create table a (a char (1) null)"
DB20000I The SQL command completed successfully.
but ...
It not works on Server02 :
db2 "create table a (a char (1) null)"
$ character is from OS prompt ....
If you read, and dont understand, I can change the sentences ..
It works fine in the Server01
db2 "create table a (a char (1) null)"
DB20000I The SQL command completed successfully.
but ...
It not works on Server02 :
db2 "create table a (a char (1) null)"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token ")" was found following "e A (a char (1) null".
Expected tokens may include: "<references_spec>". SQLSTATE=42601
On a windows machine I also have a problem with that statement. If I change the table name to anything else, it works. Original statement works OK with a GUI client.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390