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 > Rename Chunk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-08-07, 01:41
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
Rename Chunk

How to Rename a Chunk in IDS 9.4

Regards

Saikat
Reply With Quote
  #2 (permalink)  
Old 02-08-07, 06:44
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
ontape -r -rename -f

Hi,

I have found that ontape -r -rename -f command do the move of chunk file. Accordingly I am giving the command

ontape -r -rename -f dat1dbs -p /usr -o -n /ifmxdata/db1 -o

where dat1dbs is the name of the chunk file, /usr is the path of the dat1dbs and /ifmxdata/db1 is the new path where the dat1dbs to be stored. I have been logged on as both su as well dbsa.

But the command is giving following error

Error at line 1 in input file dat1dbs

Please provide me any solutions

Saikat
Reply With Quote
  #3 (permalink)  
Old 02-08-07, 07:15
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
There is no supported way to simply rename a chunk.
You can only rename dbspace, blobspace.... by onspaces.
The only spported way of doing this would be to empty the chunk and then drop it and
create a new chunk. That of course means unloading and
reloading the data stored there.
Unofficially you can do this by binary editing data on the disk, but its dangerous and can lead to some corrupted chunk information.

ps: ontape can rename chunks only during cold restore.
Reply With Quote
  #4 (permalink)  
Old 02-08-07, 20:48
saikatermail saikatermail is offline
Registered User
 
Join Date: Jan 2007
Posts: 30
Can you please provide me the codes how to do it.


Saikat
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