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 > Informix > Enabling Transaction

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-04-09, 03:34
mohanreddy83 mohanreddy83 is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
Enabling Transaction

Hi All,
I am developing a project in Java plat form with Informix DB. When I am trying to connect the Informix DB through application I am getting Exception as

Exception in thread "AWT-EventQueue-0" org.springframework.transaction.CannotCreateTransa ctionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Transactions not supported.


I got the solution for this exception is Enabling Transaction in Informix DB.

So,Please any one tell me how to enable transactions in informix DB?

Thanks in Advance,
Mohan Reddy. M
Reply With Quote
  #2 (permalink)  
Old 03-04-09, 03:46
rootdbs rootdbs is offline
Registered User
 
Join Date: Feb 2009
Posts: 51
Maybe your database is not in logging mode.
Your DBA can turn on logging mode for your database.
Reply With Quote
  #3 (permalink)  
Old 03-04-09, 04:37
mohanreddy83 mohanreddy83 is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
Turning on looging

Thank you for your qucik reply,

I tried the looging mode with ontape command, But it is not working.

That command is::: ontape -s -B <DBNAME>..

Could you tell me the command for turning on looging in Informix DB?..

Thanks
Mohan Reddy. M
Reply With Quote
  #4 (permalink)  
Old 03-04-09, 05:30
rootdbs rootdbs is offline
Registered User
 
Join Date: Feb 2009
Posts: 51
If your server runs on UNIX you can see database status:
onmonitor -> status -> database see colomn "Log Status"
Reply With Quote
  #5 (permalink)  
Old 03-04-09, 06:50
theeiledon theeiledon is offline
Registered User
 
Join Date: Nov 2004
Posts: 60
You can also use:
ondblog unbuf dbname log
or
ondblog buf dbname log
then perform a level 0 archive for example
ontape -s -L 0
Reply With Quote
  #6 (permalink)  
Old 03-04-09, 08:38
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 136
if you're using AIX / UNIX you can use ontape -s -U <db_name> to set unbuffered logging, this command should be run by userID "informix"
or by the owner of the DB.

Last edited by mjldba; 03-04-09 at 09:16.
Reply With Quote
Reply

Thread Tools
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