Copy asm file from one server to another server DBACLASS
Copy asm file from one server to another server, using dbms_file_transfer or using asmcmd cp command, we can achive this.
oracle clusteringintermediate
by OracleDba
13 views
Copy asm file from one server to another server, using dbms_file_transfer or using asmcmd cp command, we can achive this.
12
asmcmd cp +B2CWMARC/EXPDUMP/test.dmp sys/[email protected].+ASM1:+NEWTST/TESTDB2/TEMPFILE/test1.dbf
copying +B2CWMARC/EXPDUMP/test.dmp -> 172.21.46.133:+NEWTST/TESTDB2/TEMPFILE/test1.dbf1
asmcmd cp --port 1521 +B2CWMARC/EXPDUMP/test.dmp sys/oracle@source-host.+ASM1:+NEWTST/TESTDB2/TEMPFILE/test1.dbf123456
asmcmd cp +B2CWMARC/EXPDUMP/test.dmp sys/[email protected].+ASM1:+NEWTST/TESTDB2/TEMPFILE/test1.dbf
-> DBI->connect(dbi:Oracle:host=172.21.46.133;port=1521;sid=+ASM1, sys, ****, HASH(0x101eb0a50))
connect using '(DESCRIPTION=(ADDRESS=(HOST=172.21.46.133)(PROTOCOL=tcp)(PORT=1521))(CONNECT_DATA=(SID=+ASM1)))' !! ERROR: 1017 'ORA-01017: invalid username/password; logon denied (DBD ERROR: OCISessionBegin)' (err#0)
DBI->connect(dbi:Oracle:, , ****, HASH(0x101eb0a50))
!! ERROR: 1017 CLEARED by call to default_user method
{'ora_session_mode'}=32768 ignored for invalid driver-specific attribute123456789101112131415
SQL> create directory SOURCE_DUMP as '+B2CWMARC/EXPDUMP';
Directory created.
SQL> grant read,write on directory SOURCE_DUMP to public;
Grant succeeded.
SQL> create directory TARGET_DUMP as '+NEWTST/TESTDB2/TEMPFILE';
Directory created.
SQL> grant read,write on directory TARGET_DUMP to public;
Grant succeeded.123456789
SQL> create public database link SOURCEDB connect to dbatest identified by dbatest using 'SOURCEDATABASE';
Database link created.
SQL> elect sysdate from dual@SOURCEDB;
SYSDATE
---------
08-FEB-171234567891011
set timing on
BEGIN
dbms_file_transfer.get_file('SOURCE_DUMP',
'test.dmp',
'SOURCEDB',
'TARGET_DUMP',
'test.dmp');
END;
/
PL/SQL procedure successfully completed.Please to add comments
No comments yet. Be the first to comment!