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 > Equivalent of /dev/null in windows

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-19-06, 13:32
koganti koganti is offline
Registered User
 
Join Date: Jul 2002
Location: ATL
Posts: 170
Equivalent of /dev/null in windows

Hi Guys

What is the equivalent thing in wondows for /dev/null.
This operator have been very handy in unix when ever exporting or backing up unwanted data.

Thx
Prasad
Reply With Quote
  #2 (permalink)  
Old 10-19-06, 13:51
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I beleive what you want in "NUL".

Andy
Reply With Quote
  #3 (permalink)  
Old 10-19-06, 14:34
koganti koganti is offline
Registered User
 
Join Date: Jul 2002
Location: ATL
Posts: 170
On Unix on i can run the following command

backup db dbname to /dev/null

I want to issue a backup to get the DB out of Backup pending state but i dont want it to take any disk space.

What is equivalent for this in windows
Reply With Quote
  #4 (permalink)  
Old 10-19-06, 14:38
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I believe it should be:

backup DB dbname to NUL

Andy
Reply With Quote
  #5 (permalink)  
Old 10-20-06, 09:21
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Quote:
Originally Posted by ARWinner
I believe it should be:

backup DB dbname to NUL

Andy
On Windows /dev/null equal is nul:
So commad should be:
Code:
 backup DB dbname to nul:
By the way. I also use "import from nul: of del replace into schema.table_name" to empty table without db2 loging. Very useful.

Hope this helps,
Grofaty
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