Skip to Content

orabrcopy error

Dear expert,

I'm doing system copy of the following enviroment.

- SAP NetWeaver 7.3 ABAP

- Oracle Database 11.2.0.2

- Red Hat Enterprise Linux 6.0

I have run orabrcopy script, but it stopped for the below error.

Kindly help me for teh solution.

sapvm05:oranw7 53> ./ora_br_copy.sh -generateFiles -forceLogSwitches -targetSid NW7 -password XXXX -listenerPort 1527
+ /usr/lib/jvm/jre-1.6.0-openjdk.x86_64//bin/java -showversion -cp ./.:./orabrcopy.jar:/oracle/NW7/112_64/jdbc/lib/ojdbc5.jar com.sap.inst.lib.app.SecureStartup '' com.sap.inst.orabrcopy.OraBRCopy -oracleHome /oracle/NW7/112_64 -sourceSid NW7 -generateFiles -forceLogSwitches -targetSid NW7 -password XXXX -listenerPort 1527
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.4) (rhel-1.21.b17.el6-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

java.lang.IllegalStateException: Oracle JDBC driver must be loaded
        at com.sap.inst.lib.db.OracleDriver.getUrlConnection(OracleDriver.java:139)
        at com.sap.inst.orabrcopy.OraSourceTask.generateFiles(OraSourceTask.java:213)
        at com.sap.inst.orabrcopy.OraSourceTask.execute(OraSourceTask.java:191)
        at com.sap.inst.orabrcopy.OraSourceTask.run(OraSourceTask.java:157)
        at com.sap.inst.orabrcopy.OraBRCopy.startAppJob(OraBRCopy.java:316)
        at com.sap.inst.lib.app.CommandLineApp.doMain(CommandLineApp.java:111)
        at com.sap.inst.orabrcopy.OraBRCopy.main(OraBRCopy.java:367)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at com.sap.inst.lib.app.SecureStartup.startAppMain(SecureStartup.java:153)
        at com.sap.inst.lib.app.SecureStartup.startJavaProcess(SecureStartup.java:83)
        at com.sap.inst.lib.app.SecureStartup.main(SecureStartup.java:252)

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 04, 2011 at 07:52 AM

    Hi Tetsuya,

    Try using j2sdk 1.4.2.

    For Linux, it would be IBM JDK.

    I remember there is a sapnote guiding where to download it, but sadly it lost.

    Thanks

    Edited by: Shadowdancer on Aug 4, 2011 9:53 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 17, 2011 at 01:00 PM

    hi,

    classes12.jar file must exist in the <ORACLE_HOME>/jdbc/lib directory

    Loren

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2012 at 02:46 PM

    Hello,

    I had same kind of issue after upgrade our system from NW 7.0 ora10G to NW 7.3 ora11G : I was trying to use last version of orabrcopy, but it doesn't work anymore with a jdbc error.

    I have change the line from "ora_br_copy.sh" SAP scripting like that :

    #"$JAVA_HOME"/bin/java -showversion -cp "$MIG_HOME/.:$MIG_HOME/orabrcopy.jar:$ORACLE_HOME/jdbc/lib/ojdbc5.jar" com.sap.inst.lib.app.SecureStartup "" com.sap.inst.orabrcopy.OraBRCopy -oracleHome "$ORACLE_HOME" -sourceSid "$ORACLE_SID" "$@"

    to :

    #"$JAVA_HOME"/bin/java -showversion -cp "$MIG_HOME/.:$MIG_HOME/orabrcopy.jar:$ORACLE_BASE/client/11x_64/instantclient/ojdbc14.jar" com.sap.inst.lib.app.SecureStartup "" com.sap.inst.orabrcopy.OraBRCopy -oracleHome "$ORACLE_HOME" -sourceSid "$ORACLE_SID" "$@"

    So I use ojdbc14.jar from Instant client 11G instead of Oracle database library ojdbc5.jar, and It's works.

    What I suppose, is that my SAP system is using instantClient 11G library when SAP is started, so It should use the same with orabrcopy.

    Hervé.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 29, 2013 at 08:03 PM

    Herve

    Thanks. Your workaround , updating the ora_br_copy.sh worked for me. Thanks.

    Neval

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 20, 2013 at 09:37 PM

    There is now an OSS note that deals with both the JDBC and CLASS12.JAR issue. Please have a look at OSS note 1786134 here http://service.sap.com/sap/support/notes/1786134

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09, 2014 at 01:39 PM

    Hi, the workaround in updating the ora_db_copy.bat worked with the path DIR_EXECUTABLE, i.e C:\usr\sap\T00\SYS\exe\run\ojdbc14.jar

    Best regards

    Carsten

    Add comment
    10|10000 characters needed characters exceeded