

The default port number is 1521 and can be changed with the -port option. User, host, and SID are required in the connect_str parameter. For a remote instance copy, you must specify the connect string and Oracle ASM prompts for a password in a non-echoing prompt. For copying a non-Oracle ASM file from or to an Oracle ASM disk group, you can copy the file to a different endian platform and then use one of the commonly used utilities to convert the file.Ĭonnect_str is not required for a local instance copy, which is the default case. Oracle ASM automatically converts the format when the files are written. The format of copied files is portable between Little-Endian and Big-Endian systems if the files exist in an Oracle ASM disk group. To copy an OCR backup file type, the source must be from a disk group. To back up, copy, or move an Oracle ASM SPFILE, use the spbackup, spcopy, or spmove commands. These file types include the OCR and SPFILE file types. Some file types cannot be the source or destination of the cp command. The local Oracle ASM instance must be either the source or the target of the operation.Ĭopy files from a disk group to the operating systemĬopy files from a disk group to a disk groupĬopy files from the operating system to a disk group Specifies the connection string for a remote instance.Ī user alias for the created target file name or an alias directory name.Ĭp cannot copy files between two remote instances. Specifies the Oracle ASM instance name if not the default +ASM. Specifies the target type of the instance that ASMCMD must be connected to for the copy operation. Table 10-59 Options for the cp command Option
