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.

 
Go Back  dBforums > Database Server Software > DB2 > Problem with Create Schema

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-07, 09:05
new_here new_here is offline
Registered User
 
Join Date: Sep 2007
Posts: 3
Problem with Create Schema

Hi..

I am trying to execute the following query through SPUFI and am getting the error -104. Anyone has any idea of what the possible reason could be

DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL "JOE". SOME SYMBOLS THAT
MIGHT BE LEGAL ARE: TABLESPACE

I am new to this create schema thing .. This is my query

CREATE SCHEMA JOE AUTHORIZATION JOE;

Am I missing anything that is supposed to be a prerequisite for creating schema. I tried some mauals but did not get lot of help.

Thanks for all the help.
Reply With Quote
  #2 (permalink)  
Old 09-20-07, 16:48
nidm nidm is offline
Registered User
 
Join Date: May 2003
Posts: 113
you can't explicit create a schema in DB2/zos. There is not such 'create schema' stmt.

But you can implicit create it. For example
CREATE TABLE NIDM.TABLE1;
or
CREATE FUNCTION NIDM.FUNC1.

DB2 will create schema 'NIDM' for you(if not exists yet)


Quote:
Originally Posted by new_here
Hi..

I am trying to execute the following query through SPUFI and am getting the error -104. Anyone has any idea of what the possible reason could be

DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL "JOE". SOME SYMBOLS THAT
MIGHT BE LEGAL ARE: TABLESPACE

I am new to this create schema thing .. This is my query

CREATE SCHEMA JOE AUTHORIZATION JOE;

Am I missing anything that is supposed to be a prerequisite for creating schema. I tried some mauals but did not get lot of help.

Thanks for all the help.
Reply With Quote
  #3 (permalink)  
Old 09-20-07, 16:55
new_here new_here is offline
Registered User
 
Join Date: Sep 2007
Posts: 3
Thanks for the response NIDM.

I did the other approach you have mentioned.

So when you say there is not such thing as CREATE SCHEMA for DB2 on z/OS do you mean that command is not available only on DB2 for z/OS but is present with DB2 UDB etc. because I can very well see that command documented in the manual please find the link below.

http://publib.boulder.ibm.com/infoce...n/t0004972.htm

Please let me know if I am missing something here.
Reply With Quote
  #4 (permalink)  
Old 09-20-07, 17:03
nidm nidm is offline
Registered User
 
Join Date: May 2003
Posts: 113
Quote:
Originally Posted by new_here
Thanks for the response NIDM.

I did the other approach you have mentioned.

So when you say there is not such thing as CREATE SCHEMA for DB2 on z/OS do you mean that command is not available only on DB2 for z/OS but is present with DB2 UDB etc. because I can very well see that command documented in the manual please find the link below.

http://publib.boulder.ibm.com/infoce...n/t0004972.htm

Please let me know if I am missing something here.
the manual you are referring to is DB2 for LUW, not DB2 for z/OS. Although we are trying very hard to make both DB2 compatible, there is still gap.

That is another reason that post with the DB2 spec is encouraged here. :-)
Reply With Quote
  #5 (permalink)  
Old 09-20-07, 17:10
new_here new_here is offline
Registered User
 
Join Date: Sep 2007
Posts: 3
Thanks for clarifying NIDM. I guess I just searched the web with Create SCHEMA and got a LUW manual. I need to better choose my manuals I guess.

Thanks again for letting me know about this.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On