Tip

Working with the "File was not journaled driven SQL7008" message

If you create COLLECTION (Library) on the iSeries 400, the system will auto create the Journal QSQJRN and Journal Receiver QSQJRN0001 and other system table. When you use SQL CREATE TABLE, INSERT, UPDATE, DELETE statement, the system will auto journal any operation for all table in the COLLECTION.

But if you use the CRTLIB command to create library, the system will not journal all files in the library created with CRTLIB command.

When you use ODBC, JDBC, Net.Data to do CREATE, INSERT, UPDATE, and DELETE operation, you will get the SQL7008 message, but SELECT can run normally.

So you must:

1. CREATE Journal Receiver in the library CRTJRNRCV JRNRCV(your-library/QSQJRNRCV)

2. CREATE Journal in the library CRTJRN JRN (you-library/QSQJRN) JRNRCV (your-library/QSQJRNRCV)

3. Start Journal Physical File STRJRNPF FILE (your-library/your-file) JRN (your-library/QSQJRN) IMAGES(*BOTH) OMTJRNE(*OPNCLO)

4. Rerun your AP, JSP or servlet, you will not get SQL7008 message again.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Ask your Web development questions--or help out your peers by answering them--in our live discussion forums.

The Best Web Links: tips, tutorials and more.

Check out this live Q&A with Dave Slater and Jim Mason, How to best get started with WebSphere Development Tools.


This was first published in March 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.