How to execute IDC services from command line

Hey Guys,
is there some way we can execute IDC Services from command prompt.
your any pointers will be highly appriciated.
regards,
sapan
Edited by: sapan on Mar 9, 2009 7:26 AM

Hey sapan,
You can use IdcCommand to execute services from the command line. The process is as follows:
1. Create a text file with the services calls you want to make, the definitions are in hda format:
@Properties LocalData
IdcService=UPDATE_DOCINFO
dID=1
dDocName=000001
dDocType=MyType
dSecurityGroup=Public
dRevLabel=1
dDocAuthor=sysadmin
dDocTitle=My Title
@end
<<EOD>>
(Note: for multiple entries in the file <<EOD>> is very important)
2. Execute IdcCommand from the <content server install>/bin directory:
IdcCommand -f image_update.hda -u sysadmin -l c:\idccommand.log
Options:
-f = file with service definitions
-u = user to run as
-l (lowercase L) = location for log of execution
More detailed documentation can be found in the Idc Command Reference (idc_command_reference_10en.pdf).
Hope that helps,
Andy Weaver - Software Consultant
Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >

Similar Messages

  • How to execute ODI scenarios from command line in Unix

    Hi Friends,
    I am using ODI 11g.
    I want to execute ODI senarios using the command line argument in Unix.
    Please let me know how to proceed with this.
    Thanks,
    Lony

    Hi,
    unser the /your_ODI_HOME/agent/bin folder.
    Excute this
    sh startscen.sh REFRESH_ID 001 GLOBAL 5 -NAME=agent_ODI
    REFRESH_ID=Your Scenario name
    001:Version
    GLOBAL:Context name
    5=Log Level
    agent_ODI=Your agent name
    Regards

  • How to programatically start j2ee application/service  from command line

    Hi all
    We have developed a j2ee application and deployed  the .ear file on SAP J2EE (Netweaver'04) engine.
    We are able to successfully start/stop the application from Visual administrator -> Deploy -> Service -> Start application (or) Stop application.
    We need to start and stop the same application programatically or via command line instead of doing it from VA.  Any thoughts from anyone on how to do it ?
    Thanks in advance.
    Regards
    Nagesh

    The cammands are there in the respective folders, these are just the batch files / .sh scripts that can be run from command line.
    /usr/sap/<instance>JC<client>/j2ee/admin
    go.sh and go.bat can run either on command line
    j2ee/configtool
    configtool.sh / configtool.bat  
    similarly for other smaller utilities. For the main server, the related commands are in exe directory of sapmnt
    /sapmnt/<instance>/exe
    Regards,
    Nitin
    Edited by: Nitin Mahajan on Jun 16, 2009 11:16 PM

  • Why not all jars picked up by ojdeloy and how to generate build.xml from command line and not JDEV GUI - quick question

    Hi All
    We have 11.1.1.7 ojdeploy to compile our app.
    We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
    eg:
      <path id="classpath">
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
    </path>
    Log Output -
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
    [ora:ojdeploy] -g
      [ora:ojdeploy] -Xlint:all
      [ora:ojdeploy] -Xlint:-cast
    [ora:ojdeploy] -Xlint:-empty
      [ora:ojdeploy] -Xlint:-fallthrough
      [ora:ojdeploy] -Xlint:-path
      [ora:ojdeploy] -Xlint:-serial
      [ora:ojdeploy] -Xlint:-unchecked
      [ora:ojdeploy] -source 1.6
      [ora:ojdeploy] -target 1.6
      [ora:ojdeploy] -verbose
      [ora:ojdeploy] -encoding Cp1252
      [ora:ojdeploy] -classpath
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
      [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
    1- Is it because it depends on how jpr or jws are configured ?
    2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?

    The first  warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
    The second warning is about you not installing acpid.
    The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
    And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
    When I do lspci -v I get:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at d0f0 [size=8]
    Memory at c0000000 (32-bit, prefetchable) [size=256M]
    Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
    Last edited by gog (2009-10-15 23:59:49)

  • How to execute a service from a filter in custom component

    I want to execute a service from my filter.
    Then get a resultset from service.
    How do I do it?

    You have to look at Bex book - you will find exactly what you need. You can also could search the forum, i think this was discussed in some threads.

  • How to run Endeca Graphs from command Line

    Hi,
    I would like to know if there is any way to run Endeca Graphs from command line in Windows.
    Thank you,

    The correct way to execute a graph using the command line in windows is.......
    Execute the following command from the project folder:
    C:\Oracle\Endeca\Discovery\3.1.0\IntegratorETL\configuration\org.eclipse.osgi\bundles\5\1\.cp\lib\bin\clover.bat -plugins "/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/5/1/.cp/lib/plugins;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/6/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/9/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/14/1/.cp/lib/plugins/;C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/21/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/23/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/plugins/com.endeca.latitude_1.0.0/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/358/1/.cp/lib/plugins/" -noJMX graph\graph_name.grf
    Our costumer needed to run some ETL process from ODI and once it finished start a Clover ETL process (automatically). So we created a .bat file witth the above command and then in ODI we created a package with all ETL interfaces and the last step of the package was a OScommand component that excecuted the .bat script from the Endeca's project folder.
    Hope you find this post helpfully.

  • How can pass the data from Command line  to  Applet?

    Hi,
    I am writing a chat application by using sockets. For that purpose I need to pass the parameter data from command line to Applets. Is there any method to receive command line args data in Applets? If so please tell me.

    Passing command line arguments to an applet is not possible, but for the same you can try using param tags, within your applet tag.
    For eg:
    <applet.......>
    <param name="xyz" value="abcdef">
    </applet>
    Within the applet's any method like init call <getParameter("xyz");>
    will return u the value.
    [email protected]

  • How can I Capture screen from command line

    When I start FME from command line it automatically capture
    from first camera
    But I want it start capture form screem automatically
    or I want to start 2 capture progress
    1 form camare
    2 form screen
    Thanks

    I don't print from the command line, so I don't know this off the top of my head. There are instructions for doing this in your CUPS documentation. Read Chapter 2 & 3 here:
    http://localhost:631/sum.html

  • How to deploy an .ear from command line.....

    Definetly newbie question folks....
    I want to deploy from command line.....
    Hop in folks and help this newbie guy ;)
    Thanks
    Desi_Thug

    Please redirect the query to http://forums.bea.com/bea/category.jspa?categoryID=2004 - WebLogic Server/J2EE Newsgroups
    FYI
    http://edocs.bea.com/wls/docs91/deployment.html

  • How to start OracleOraDb10g_home1iSQL*Plus service from command line (PC)

    After installing 10G, I now have a service with this name: OracleOraDb10g_home1iSQL*Plus
    I need to be able to start/stop the service from windows 2000 command line,
    BUT "net start OracleOraDb10g_home1iSQL*Plus" DOES NOT WORK.
    Adding quotes around the service name does not solve the problem either.
    Both attempts give "The service name is invalid" errors.
    Can anyone provide a solution?
    THANKS!

    Sorry, but none of the suggestions works. Thanks for trying though.
    1) Renaming the service only changes the display name, and then when you use "net start", it errors with: "The service name is invalid"
    2) call isqlplus start errors with "isqlplus is not recognized as an internal or external command..."
    3) You cannot execute isqlplussvc.exe directly either.
    Any more suggestions?

  • How to run executable Java app from command line: No Main( ) method

    This is the opposite question from what most users ask. I have the Java source code and a running Java executable version of the program in a windows environment. I don't want to run it in the normal way by double-clicking on it or using the executable. I need to be able to run the same application from the command line. If I can do this, I can then compile and run the code on my Mac, too, which is what I am ultimately trying to accomplish.
    Normally, this would be easy. I would look for a Main method, normally public static void main (String[] args ) or some variation. I cannot find a main() anything, anywhere when searching the files. There must be some windows executable that links to the Java classes. It's very clever, no doubt, but that's not helping me.
    I am trying to run what I can determine as the Main class, with a standard command line call, but that is not working either.
    It is a Java graphics program, so mostly Swing container stuff.
    I am not finding a manifest.txt file, telling me where a main method is, nor anything about the Main Class. There is no readme file for the program.
    Any insight that would point me in the right direction? What should I be looking for?
    Thanks in advance, Bloozman

    It's possible there's a clever Windows executable that runs the class. But if it's a plain old Java class then there's a good chance there's a constructor. Look for that; it's possible you may be able to start by writing another Java class that creates an instance of your mystery class.
    When you have that done, try running it. It's possible that just creating an instance might be sufficient to run it. Swing programs are sometimes written like that. If not, then start looking for methods with names like "run" or "go" or "start" that your little controller program can call.

  • Unable to restart the Microsoft Software Protection Platform service from command line - Win81 MS Office 2013 SP1

    I'm unable to restart the Microsoft Software Protection Platform service on a Windows 8.1 laptop for MS Office 2013 SP1 (32-bit) using the following command:
    cscript ospp.vbs /osppsvcrestart (issued from C:\Program Files (x86)\Microsoft Office\Office15)
    When this is run, a window appears with the title ospp.vbs and the text "Error: The Software Protection Platform service is not installed"
    I verified that the service is installed in services.msc, and was able to manually stop and restart the SPP service in the Services console without issue.
    The command runs correctly when restarting the MS Office 2013 SPP on Windows 7 devices.
    Has anyone else seen this or have a solution for it?
    The reason that I am attempting to restart the service from the command line is because this command is part of a script to change the KMS server IP Address used by OSPP prior to software activation.
    The only other options that I have at this time is to ask the users to reboot, or manually force a reboot.  This is both time consuming and disruptive to the users.
    The Fix It tool to remove MS Office 2013 was run, and the MS Office 2013 software was successfully reinstalled after a reboot.  The software was successfully activated.  When the command was run, it produced the same exact error.

    Hi,
    I am able to reproduce this on my own machine, but in my case, I don't see the specific service running in the Services console. 
    I would like first confirm that whether you've the right service running on your Windows 8.1 system. The display name of this service should be "Office Software Protection Platform", service name is "osppsvc".
    You can also check this by going to below path where you should see the executable file (OSPPSVC.EXE) if the service is installed on your system (in my case, the folder is empty):
    C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • JDev 10.1.3 how to invoke oc4j_remote_deploy.jar from command line?

    Hi, does anyone know how to invoke the JDev 10.1.3 oc4j_remote_deploy.jar from the command line? We have it working for 10.1.2, for automated deployment scripts.
    If I try the same thing for 10.1.3, I get an error.
    See below my command line and the output.
    I think the error is in the Oc4jDcmServlet URL, the format seems to have changed from 10.1.2 to 10.1.3.
    I tried to reverse-engineer by using an HTTP tracer, but that did not help.
    Any help would be much appreciated.
    Regards, Maarten Brugman
    ======================== command line: ==================
    "C:\j2sdk1.4.2_09\bin\java.exe" -Djava.protocol.handler.pkgs=HTTPClient -jar C:\jdev-work\ebrp-new\ear\target\installer\oc4j_remote_deploy.jar http://lnvx0027:29805/Oc4jDcmServletAPI/ oc4jadmin ***** listApplications /oracle/oaedv03/oracle/oas/10.1.3/ontwj2e1013 UNDEFINED UNDEFINED OC4J_OEBRP
    ============ output: ====================================
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command listApplications /oracle/oaedv03/oracle/oas/10.1.3/ontwj2e1013
    UNDEFINED UNDEFINED OC4J_OEBRP
    Command = LISTAPPLICATIONS
    Opening connection to Oc4jDcmServlet
    Setting userName to oc4jadmin
    Sending command to DCM servlet
    **** Could not check HTTP response code
    ** Thread[main,5,main] ** Fri May 11 17:18:13 CEST 2007 ** ** EXCEPTION: java.
    net.SocketException: Unexpected end of file from server
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:822)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:820)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:635)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.isHttpResponseOk(Unknow
    n Source)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.sendCommand(Unknown Sou
    rce)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.execute(Unknown Source
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.listApplications(Unkno
    wn Source)
    at oracle.j2ee.tools.remote_deploy.Oc4jDcmMain.main(Oc4jDcmMain.java:71)
    #### HTTP response is NOT ok
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-1)
    #### HTTP return code was -1
    ============ end output =================================

    In my opinion, you will succeed in handling linefeeds in output texts by using an <tt><af:outputFormatted></tt> tag in conjuction with a JSF converter that replaces the linefeeds with a <tt>&lt;br></tt> tag in the text. You will have to implement a custom converter class (this is quite simple, see below) and to set it to the <tt>converter</tt> attribute of the <tt><af:outputFormatted></tt>. The converter class should look like:
    public class MyLinefeedConverter implements javax.faces.convert.Converter
      public MyLinefeedConverter() {
      public Object getAsObject(FacesContext context, UIComponent component, String value) {
        return value;
      public String getAsString(FacesContext context, UIComponent component, Object value) {
        if (value==null) return "";
        if (value instanceof String) return ((String)value).replace("\n", "<br>");
        return value.toString();
    }In this way the linefeeds in your text values will be replaced by <tt>&lt;br></tt>, which will be rendered by the corresponding <af:outputFormatted> tag as line breaks.

  • How to execute some code in command line, and read its output?

    I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.
    But I want to take it one step further and read its output. is it possible?

    Hi RagnaRock,
    one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.
    I hope this helps. Kind regards,
    Alvaro

  • How to run the JNLP from Command Line

    Hi All,
    how to run the JNLP file from the remote machine from our command line. I have requirement to run this JNLP file in java 1.4.2 version. Can any one tell me the procedure or the steps that are needed to run this file at command prompt.
    Regards,
    Prasanna.
    Edited by: VPrasanna on May 19, 2008 4:43 AM

    >
    I am getting "**java.security.AccessControlException: access denied (java.net.SocketPermission wwwgate0.mot.com:1080 connect,resolve)**" when I start the Web Start Client. >This seems like a largely separate problem to running the JNLP from the command line. It might have been better to end this thread (assign the dukes) and start a new one.
    >
    ..Can you help me in resolving this issue. >However, I suspect I can guess the problem.
    If this app. is normally hosted on wwwgate0.mot.com then it can 'phone home' to the server without further permission, but if you are running it from the command line, that might not be the codebase anymore.
    If you wish to do 'local testing' of such an app., I would recommend setting up a server like Tomcat on the local machine, and serving the test app. directly off that.
    >
    ..Its urgent...>Sun offers a number of options for urgent matters, such as support tickets. Perhaps you should look into one of those.

Maybe you are looking for

  • Customer number of business partner can not be determined

    Hello, I created the BP for role TR0100 Main Loan Partner and I also added the role for FLCU00 for FI Client where I put the Company Code information and link this BP with the customer number in FI. When I am create a general loan (SAP Banking) the s

  • Datalist questions(s)

    Hi there, I have a few questions regarding the Datalist function in FC 5.5. Is there a way to change the order of the items, rows in the Datalist? I would like to use a datalist to show viewers newsitems, so it would be nice if the newest post ("row"

  • Sign on .... again

    Why all of the sudden, am I having to sign on every time I start Itunes? There should be a way to store the password? Using windows xp.

  • FBL1N - Cheque information display required

    Hi Gurus, While displaying Vendor Line item display, i need to know the cheque information for payment made against an invoice. I currently do it by selecting the line item and clicking the icon for displaying chq info (cntrlshiftF7), and get the chq

  • Tv show download error in itunes on my ipad

    i emailed apple they said delete the video and then redownload it. mmmm sounds simple but do you think i can work out how to delete it from itunes?!  i have looked at threads and tried the swipe for delete button that didnt work, I tried signing out