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 > Database connect error..?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-09-11, 13:18
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
Database connect error..?

Hi, I have noticed this error when I try to connect sometimes.. how do I prevent it from coming up? We have Linux DB2 UDB version 8.1 FP 18


[nrg1@localhost ~]$ db2 connect to dbname
SQL0752N Connecting to a database is not permitted within a logical unit of
work when the CONNECT type 1 setting is in use. SQLSTATE=0A001
Reply With Quote
  #2 (permalink)  
Old 05-09-11, 14:20
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Code:
SQL0752N  Connecting to a database is not permitted within a logical
      unit of work when the CONNECT type 1 setting is in use.

Explanation:

An attempt was made to connect to either another database or the same
database before issuing a COMMIT or ROLLBACK statement. The request
cannot be processed within a CONNECT type 1 environment.

User response:


*  Submit a COMMIT or ROLLBACK statement before requesting a connection
   to another database.
*  If multiple databases need to be updated within a unit of work,
   change the connection settings to SYNCPOINT TWOPHASE and CONNECT 2 by
   re-precompiling or by issuing the SET CLIENT API from within the
   application.

 sqlcode: -752

 sqlstate: 0A001
As the error stipulates, you are trying to connect to either the same database or a different one while you have an active unit of work. You need to issue COMMIT or ROLLBACK before connecting.

Andy
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