A. OLCmd Reference
OLCmd dbcopy
The dbcopy command copies all the data in one database instance defined in the naming/directory service to another database instance. It can be used, for example, to convert an outgrown Cloudscape database to an Oracle database.
Format:
OLCmd dbcopy [ from_instance d ] [ to_instance d ] [ start_time end_time]
Where: |
|
from_instance | Specifies the database instance in the naming/directory |
| service to copy data from. |
to_instance | Specifies the database instance in the naming/directory |
| service to copy data to. |
d | Specifies the default database instance. It can be placed |
| in the source or target position. |
start_time | Optionally specifies the start time of statistics to be copied |
| in the form YYYYMMDDhhmmss. |
| Example: 20011101235959 denotes one second before |
| midnight (23:59:59) on November 30, 2001. |
end_time | Optionally specifies the end time of statistics to be copied |
| in the form YYYYMMDDhhmmss. |
| Example: 20020101000000 denotes midnight (00:00:00) |
| on January 1, 2002. |
Example:
To copy the default database instance to an Oracle database (created with the name OracleStatsDB using the dbconfig command), enter the command:
OLCmd dbcopy d OracleStatsDB
January 2002 |