Export the source database: On the source machine, use the Oracle Data Pump export utility (expdp) to export the source database. This will create a set of files containing the data and structures of the source database. You can use the following command to do this:

expdp username/password directory=data_pump_dir dumpfile=mydb.dmp logfile=mydb.log

Copy the export files to the target machine: Use a tool like scp or rsync to copy the export files from the source machine to the target machine.

Create a new, empty database on the target machine: On the target machine, use the Oracle Database Configuration Assistant (DBCA) to create a new, empty database that has the same characteristics as the source database.

Import the data into the target database: Use the Oracle Data Pump import utility (impdp) to import the data from the export files into the target database. You can use the following command to do this:

impdp username/password directory=data_pump_dir dumpfile=mydb.dmp logfile=mydb.log

Update the listener and tnsnames.ora: Update the listener.ora and tnsnames.ora files on the target machine to reflect the new database.

Start the new database: Start the new database on the target machine and test the connection to it to make sure it is working correctly.

Please keep in mind that the specific steps and commands used to copy the database may vary depending on the version of Oracle you are using. It is always recommended to consult the official documentation of the product for the same. Additionally, it's always good to have a backup of the database before doing this process, in case anything goes wrong.