4 Replies Latest reply: Dec 19, 2012 11:44 PM by 852203 RSS

    Can not get BAM icommand to work for the Export of my Dataobject and Report

    852203
      Hi ,

      Using Oracle SOA Suite 11.1.1.5 on Linux

      I am new to BAM.

      I want to migrate my Data Object and Report to a new environment.

      But i can not get the icommand to work it seems to me that the icommand is not available.

      There is no BAMICommandConfig.xml  - I can only find BAMCommonConfig.xml in  /applications/oracle-bam_11.1.1/config/BAMCommonConfig.xml

      Oracle documentation says I can find the BAMICommandConfig.xml from the following path, but I can not find this file:

      The BAMICommandConfig.xml file is located in WLS_HOME/user_projects/domains/base_domain/config/fmwconfig/servers/bam_server1/applications/oracle-bam_11.1.1/config/.

      Am i missing something?
        • 1. Re: Can not get BAM icommand to work for the Export of my Dataobject and Report
          Shankar
          HI,


          I hope you are doing well,here i am also previously faced same problem.I think you are following the below link
          http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bam_icommand.htm#BABEHBHH

          here my add point is:you can configure BAM details in following configuration file also its work same .

          in linux %fmw_home%/Oracle_SOA1/bam/config/BAMICommandConfig.xml

          in windows Middleware\Oracle_SOA1\bam\config\BAMICommandConfig.xml

          here you can set perameters and usernasme and password and you can run the bam icommand from <HOME>\Oracle_SOA1\bam\bin\icommand.bat or icommand.sh
          -----
          <?xml version="1.0" encoding="UTF-8"?><BAMICommand>

          *<ADCServerName>localhost</ADCServerName>*
          *<ADCServerPort>9001</ADCServerPort>*
          <Communication_Protocol>t3</Communication_Protocol>
          <SensorFactory>oracle.bam.common.statistics.noop.SensorFactoryImpl</SensorFactory>
          <GenericSatelliteChannelName>invm:topic/oracle.bam.messaging.systemobjectnotification</GenericSatelliteChannelName>

          <!-- The number of milliseconds to pause between retry attempts when
          retrying a retryable BAM EJB method call which failed due to a retryable
          exception. The default is at 10 second intervals.-->
          <BamEjbRetryInterval>10000</BamEjbRetryInterval>

          <!-- The number of retries to be attempted when retrying a retryable BAM
          EJB method call which failed due to a retryable exception. The default is
          180 times (this will retry for 30 minutes with a 10 second interval).-->
          <BamEjbRetryCount>180</BamEjbRetryCount>

          <!-- Additional User specified retryable exceptions. This is a comma
          separated list of exception class names to be treated as retryable. This
          configuration parameter allows the customer to add any new or unexpected
          exceptions to the list as it is impossible to predict all the possible
          exceptions that may be encountered.-->
          <BamEjbRetryableExceptions/>
          *<ICommand_Default_User_Name>weblogic</ICommand_Default_User_Name>*
          *<ICommand_Default_Password>1G42ZYH4oNtpxSRKoWgT9ePSBgL/PW32RiE5IED9Eyc=</ICommand_Default_Password>*

          </BAMICommand>
          -----
          for password you can give plain text after run its encrypt.
          you need to add/modify bold one parameter according to your configuration.here the beauty is you can access remote BAM server to by providing same details of remote server.
          once you can configure you can user and export and import easily.


          Best Regards
          Siva Sankar
          TechDemocracy
          • 2. Re: Can not get BAM icommand to work for the Export of my Dataobject and Report
            852203
            Thank you for the previous reply!!

            Question 1:
            I am trying to run the following. But are getting errors. Can somebody please help?

            [oracle@ndc2soad02 bin]$ ./icommand.bat
            ./icommand.bat: line 1: @ECHO: command not found
            ./icommand.bat: line 2: REM: command not found
            ./icommand.bat: line 3: syntax error near unexpected token `('
            ./icommand.bat: line 3: `REM Copyright (c) 2006, 2010, Oracle and/or its affiliates. '
            [oracle@ndc2soad02 bin]$

            Edited by: 849200 on 2012/12/19 4:24 AM

            Edited by: 849200 on 2012/12/19 4:27 AM

            ------------
            Question 2:

            When I run the command like this :

            ""
            *[oracle@ndc2soad02 bin]$ ./icommand -cmd export -TYPE DATAOBJECT -ALL 1 -DEPENDENCIES 1 -FILE DataObjects.xml*

            It show me the line below, but NOTHING HAPPENS AFTER THIS??

            +Oracle BAM Command Utility [Build 15008, BAM Repository Version 2025] Copyright © 2002, 2011, Oracle and/or its affiliates. All rights reserved.+

            ""

            Edited by: 849200 on 2012/12/19 5:19 AM
            • 3. Re: Can not get BAM icommand to work for the Export of my Dataobject and Report
              Shankar
              Hi,


              you are using Linux operating system. so u need to run ./icommand.sh.

              in my previews post i clearly mentioned that you need to run <HOME>\Oracle_SOA1\bam\bin\icommand.bat or icommand.sh. based on your env
              please try with ./icommand.sh command, you can able to get .

              for you two question get answered if use .icommand.sh


              Best Regards
              Siva Shankar
              TechDemocracy
              • 4. Re: Can not get BAM icommand to work for the Export of my Dataobject and Report
                852203
                Hi Siva

                Thank you so much for your help, you are correct you must use ./icommand.

                Regards
                Carel