420 pts.
 DB2 SQL
Hello Sir,
            I am creating a table through SQL in AS/400.
CREATE TABLE ANUP41/EMPL4 (NAME CHARACTER ( 10) NOT NULL, ADDRESS CHARACTER ( 25) NOT NULL, PROFILE CHARACTER ( 10) NOT NULL, UNIQUE (NAME))                                                           
But after enter i get this message, 
Table EMPL4 in ANUP41 created but could not be journaled.
What it means?
It is an error and how to resolved it?


Software/Hardware used:
software
ASKED: June 9, 2012  8:48 PM
UPDATED: June 9, 2012  11:18 PM
  Help
 Approved Answer - Chosen by anupsshelke (Question Asker)

It isn't an error with CREATE TABLE.

It is a design flaw with the schema that you created the table in. It isn't an actual schema; it's a library that is only being used like a schema.

A true schema will be created with a journal. You are using a library that hasn't been prepared for SQL. If you use CREATE SCHEMA to create a schema first, then use that schema to create your tables in, you won't get the message.

Since you don't have a real schema, there are two ways you can make the library work more like a schema for this message.

First, you can create a journal named QSQJRN in the library. If you create your table then, it will start automatic journaling.

Second, you can create a journal with a name different from QSQJRN in your library. Then create a data area named QDFTJRN in your library. Follow the rules in Automatically starting journaling to define it.

Tom

ANSWERED:  Jun 9, 2012  11:18 PM (GMT)  by anupsshelke

 
Other Answers:
Last Wiki Answer Submitted:  June 27, 2012  3:01 am  by    0 pts.
Latest Answer Wiki Contributors: 
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _