Copy all data in unencrypted form to another database. The procedure for copying the data is:
-
In the Terminal, go to the %SYS namespace:
REGULARNAMESPACE>set $namespace="%SYS"
-
From that namespace, run the ^GBLOCKCOPY command:
%SYS>d ^GBLOCKCOPY
This routine will do a fast global copy from a database to another database or
to a namespace. If a namespace is the destination, the global will follow any
mappings set up for the namespace.
1) Interactive copy
2) Batch copy
3) Exit
Option?1
-
At the ^GBLOCKCOPY prompt, specify 1, for an interactive copy:
Option? 1
1) Copy from Database to Database
2) Copy from Database to Namespace
3) Exit
Option?
-
When ^GBLOCKCOPY prompts for a copy type, select 1, for copying from database to database
Option? 1
Source Directory for Copy (? for List)?
Here, either specify the name of the encrypted database or enter ? to see a numbered list of databases, which includes the encrypted database. If you enter ?, ^GBLOCKCOPY displays a list such as this one:
Source Directory for Copy (? for List)? ?
1) C:\InterSystems\MyIRIS\mgr\
2) C:\InterSystems\MyIRIS\mgr\irislocaldata\
3) C:\InterSystems\MyIRIS\mgr\irisaudit\
4) C:\InterSystems\MyIRIS\mgr\irislib\
5) C:\InterSystems\MyIRIS\mgr\iristemp\
6) C:\InterSystems\MyIRIS\mgr\encrypted1\
7) C:\InterSystems\MyIRIS\mgr\encrypted2\
8) C:\InterSystems\MyIRIS\mgr\unencrypted\
Source Directory for Copy (? for List)?
Enter the number of the encrypted database, such as 7 here.
-
When ^GBLOCKCOPY prompts for a destination directory for copying the data, enter the name of an unencrypted database or ? for a list similar to the one for the source directory.
-
When ^GBLOCKCOPY asks if you wish to copy all globals, enter Yes (can be Yes, Y, y, and so on):
All Globals? No => y
-
If there is an empty global in the database, ^GBLOCKCOPY will now ask if you wish to copy it. This will appear something like the following:
All Globals? No => y
^oddBIND contains no data
Include it anyway? No =>
Enter No (can be No, N, n, and so on), which is the default.
-
^GBLOCKCOPY then asks if you wish to skip all the other empty globals. Enter Yes (can be Yes, Y, y, and so on), which is the default:
Exclude any other similar globals without asking again? Yes =>
There then appears a list of all the empty globals that are not being copied:
Exclude any other similar globals without asking again? Yes => Yes
^oddCOM contains no data -- not included
^oddDEP contains no data -- not included
^oddEXT contains no data -- not included
^oddEXTR contains no data -- not included
^oddMAP contains no data -- not included
^oddPKG contains no data -- not included
^oddPROC contains no data -- not included
^oddPROJECT contains no data -- not included
^oddSQL contains no data -- not included
^oddStudioDocument contains no data -- not included
^oddStudioMenu contains no data -- not included
^oddTSQL contains no data -- not included
^oddXML contains no data -- not included
^rBACKUP contains no data -- not included
^rINC contains no data -- not included
^rINCSAVE contains no data -- not included
^rINDEXEXT contains no data -- not included
^rINDEXSQL contains no data -- not included
^rMACSAVE contains no data -- not included
9 items selected from
29 available globals
-
^GBLOCKCOPY then asks if you wish to disable journaling for this operation:
Turn journaling off for this copy? Yes =>
Enter Yes (can be Yes, Y, y, and so on), which is the default.
-
^GBLOCKCOPY then asks if to confirm that you wish to copy the data:
Confirm copy? Yes =>
Enter Yes (can be Yes, Y, y, and so on), which is the default. Depending on the size of the database and the speed of the processor, you may see the status of the copy as it progresses. When it completes, ^GBLOCKCOPY displays a message such as:
Copy of data has completed
-
^GBLOCKCOPY then asks if you wish to save statistics associated with the copy. Enter No (can be No, N, n, and so on), which is the default:
Do you want to save statistics for later review? No =>
Control then returns to the main prompt.