orchadmin copy command
Moderators: chulett, rschirm, roy
orchadmin copy command
The requirement is: Using orchadmin command, copy the data from one dataset to a new dataset and the data files for the new dataset should be created.
I executed orchadmin copy command:
orchadmin copy | cp sourcedataset targetdataset
I see that the descriptor file for target dataset is created. However it
points to the segment file of source dataset. No data files are created for the target dataset.
But in one of the posts I read that the data file will be created for the target dataset beginning with target descriptor file name in the resource disk.
Apart from job creation, is there any other option that will suffice the requirement?
I executed orchadmin copy command:
orchadmin copy | cp sourcedataset targetdataset
I see that the descriptor file for target dataset is created. However it
points to the segment file of source dataset. No data files are created for the target dataset.
But in one of the posts I read that the data file will be created for the target dataset beginning with target descriptor file name in the resource disk.
Apart from job creation, is there any other option that will suffice the requirement?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Your command string did exactly what you commanded it to do:
1) execute "orchadmin copy"
2) execute "cp sourcedataset targetdataset"
and therefore, you ended up with a copy of just the dataset descriptor file.
On the linux command line, the pipe character "|" is essentially a command separator which also routes the stdout from the left-hand command to the stdin file of the right-hand command.
By convention, in the help output of a command, the "|" is used to show optional values for a command's parameters. For orchadmin, "cp" and "copy" are the two orchadmin commands for copying a dataset. It looks like you just copied and pasted the orchadmin help output verbatim.
Regards,
1) execute "orchadmin copy"
2) execute "cp sourcedataset targetdataset"
and therefore, you ended up with a copy of just the dataset descriptor file.
On the linux command line, the pipe character "|" is essentially a command separator which also routes the stdout from the left-hand command to the stdin file of the right-hand command.
By convention, in the help output of a command, the "|" is used to show optional values for a command's parameters. For orchadmin, "cp" and "copy" are the two orchadmin commands for copying a dataset. It looks like you just copied and pasted the orchadmin help output verbatim.
Regards,
- james wiles
All generalizations are false, including this one - Mark Twain.
All generalizations are false, including this one - Mark Twain.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: