My Oracle Support Banner

PasteBinary Operation Fails with the Error "This script is not executed from bin directory of ORACLE_HOME\oracle_common as launch.cmd is not available under bin directory of ORACLE_HOME\oui" (Doc ID 2387936.1)

Last updated on APRIL 24, 2018

Applies to:

Oracle Fusion Middleware - Version and later
Information in this document applies to any platform.


While trying to run pasteBinary.cmd on target host that does not have Oracle Fusion Middleware installed, pasteBinary command fails with the below errors:

C:\Oracle>pasteBinary.cmd -javaHome C:\Oracle\Java\jdk1.8.0_162 -archiveLoc C:\Oracle\WLSbinary.jar -targetOracleHomeLoc C:\Oracle\MiddAishTest
This script is not executed from bin directory of ORACLE_HOME\oracle_common as l
aunch.cmd is not available under bin directory of ORACLE_HOME\oui . Execute from bin directory.

Issue can be reproduced using below steps:

1. Install and configure simple 12.2.1.x domain containing Admin and managed servers

2. Run copyBinary command as below
copyBinary.cmd -javaHome C:\Oracle\Java\jdk1.8.0_162 -archiveLoc C:\Oracle\WLSbinary.jar -sourceOracleHomeLoc C:\Oracle\MiddAishTest

3. Copy generated WLSbinary.jar to target machine

4. copy pasteBinary.cmd from source to target machine to the same location where WLSbinary.jar is present.

5. Run the command
pasteBinary.cmd -javaHome C:\Oracle\Java\jdk1.8.0_162 -archiveLoc C:\Oracle\WLSbinary.jar -targetOracleHomeLoc C:\Oracle\MiddAishTest

6. It will fail with above errors.

Following the documentation:

Administering Oracle Fusion Middleware 12c (
15 Changing Oracle Fusion Middleware Network Configurations
See these sections:
- Moving Oracle Fusion Middleware to a New Host
A Copy and Paste Binary Files Scripts



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.