Skip to main content
23-Emerald III
August 25, 2021
Solved

Oracle Backup from cloned VM server

  • August 25, 2021
  • 1 reply
  • 2416 views

This is a weird one and I do have an open case with PTC but they want to close it.

I had IT clone the virtual servers for Windchill and Oracle and then ran the Rehost utility with the Rename option on the new machines. Everything looks good and runs as expected. 

Until....

I went to do an Oracle expdp backup of the new VM Oracle database. I entered the commands in SQLPlus to create the directory and point it to a folder on the machine. However, when I run the expdp command, Oracle is writing the files to the source machine disk and not the target machine.

This is on WIndchill 11.0 M030 CPS16 with Oracle 12cR1.

Anyone seen this or know how to tell Oracle to use the cur rent  host machine for the expdp files?

Best answer by BenLoosli

Found the problem and fixed it.

The Rehost utility made a backup copy of the tnsnames file but did not update the file to the new server name.

Changed the lines in the file and now the backup is going to the right folder on the right server.

 

1 reply

18-Opal
August 25, 2021

Ben,

 

I've never seen it but I can imagine what might cause it.

Did you check the value of DATA_PUMP_DIR?

If DATA_PUMP_DIR was created to include the server that would do it.

The solution would be to recreate.

 

If you need help getting the value of DATA_PUMP_DIR let me know.

 

David

 

BenLoosli23-Emerald IIIAuthor
23-Emerald III
August 25, 2021

Can I find Data_Pump_Dir from SQL Developer?

I did a new Create Directory as <location> command on the target machine, but that still wrote the dump and log file to the source machine.

18-Opal
August 25, 2021

Using SQL Developer you can make a connection as sysdba and then run the select statement to retrieve the directory name and path.