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 > Is it possible to turn logging off for a command?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-24-04, 09:48
mrallgood mrallgood is offline
Registered User
 
Join Date: Mar 2004
Location: Virginia
Posts: 11
Question Is it possible to turn logging off for a command?

Good morning!

Is it possible to turn logging off for a command? We know how to turn logging on/off for the database, but we are wondering if it is possible to turn logging on/off for just a command (and then it revert back to the state it was in before the command was executed)?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 06-24-04, 11:42
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

You can change logging mode, depending of Informix version.

Please test run ondblog <new mode> [-f <filename>] [<database list>]

new mode:
buf - Change database to buffered mode.
unbuf - Change database to unbuffered mode.
nolog - Change database to no logging.
ansi - Change database to be ANSI-compliant
cancel - Cancel logging request.

Then ondblog nolog, press <Enter>. Next onbar -b -F.

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 06-25-04, 12:37
fprose fprose is offline
Registered User
 
Join Date: Apr 2003
Location: Phoenix, AZ
Posts: 177
The answer to your question is no. You would have to go throught the process with ondblog/onbar or ontape. If just one command is maxing you out figure out a way to break up the command with checkpoints.
__________________
Fred Prose
Reply With Quote
  #4 (permalink)  
Old 06-29-04, 08:14
kelvinpuk kelvinpuk is offline
Registered User
 
Join Date: Jul 2003
Posts: 23
Running SQL that copies data to a raw table is not logged.
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