Operating system  comand to copy files in Unix through ODI

HI All,
I am using ODI 11 and Oracle 11 g.
I need to copy some files and put in another folder using the OS command as
“cp /dean/sc/ready_file_*.dat /dean/sc/lony”
But when i execute the OS command in ODI it gives error as
ODI-1226: Step OS Command 1 fails after 1 attempt(s).
ODI-1242: Operating system command execution fails.
     at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.getExceptionOnStepTaskFailure(SnpSessTaskSqlS.java:49)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatStepTaskError(SnpSessStep.java:1101)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:575)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
     at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
     at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
     at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
     at java.lang.Thread.run(Thread.java:736)
Plz suggest any inputs.
Thanks,
Lony

Hi lony ,
If you want to copy then you should use oditools that is OdiFileCopy.
If you want to use scriptfile then put script file in directory accessible to ODI. Then use below codes in your oscommand or odioscommand.
/home/lony/scrpt.sh
Sometimes you may need to use environmental variable( as per requirement. ex: If odi can accesss all child directory in /home/lony but not in /home/test.).
Thanks.
Edited by: Bhabani on Aug 21, 2012 4:36 PM

Similar Messages

  • Run operating system command for sender File adpter (NFS)

    Hi All,
    iam doing a file to RFC scenario, using 'Run operating system command' in sender file adapter to change the file name while archiving (after processing completed).
    I mention OS command like this:
    sample_server\scripts\Test\Rename.bat"
    Rename.bat file calls a 'perl script' code.
    when i run interface, could see below statement in adapter log ->
    "Execute OS command "
    sample_server\scripts\Test\Rename.bat"
    but the script was not run and file name was not changed.
    Please advice what could be the problem?
    Does this mean script executed successfully?
    Do i need install perl software on XI server, even perl script (.bat file) is executing on sample_server?
    Thanks in advance..
    Regards,
    Rajesh

    Hi,
    Just check the following URL and give it a try again :-
    Executing Unix shell script using Operating System Command in XI
    Hope this info Helps..
    Regards,
    Aditya

  • Operating system message: No such file or directory in DMS while archivng.

    Dear Team,
    While i am trying to make the archiving i am getting the error "
    Operating system message: No such file or directory" in DMS. I cross checked all the forums and made the settings as suggested still i am not able to resolve this. In fact it is working fine in my development system but not executing in Quality server.
    Please do the needful.
    Regards,
    Banu

    Hi Bhanu,
    Check with technical details like archive directory ,customising settings on sara .   I think so u made transport archive setting TR into quality server ?. On some repository the changes won't happen with imported TR on target system. Please cross check and do manually on quality server. My guess problem with OAC0 , OACT . 
    Regards,
    chandu

  • Is downloading the operating system erase all your files

    Is downloading the operating system erase all your files?

    If you're upgrading through the App Store, no, it will not. However, always best to run a backup before doing any major upgrade.
    Matt

  • Can you use command lines to copy files in UNIX to Oracle Apps

    Hi! We have installed the oracle apps 11.5.0 to a unix operating system. And we use ftps to upload the rtf and xml files to the unix server. Is there any command lines we can use to copy all the rft and xml files in the server to the real location of where the report files stored without going through the XML Publisher font end through the internet explorer? Thanks for your help!

    Hi,
    From what you have mentioned, I believe you are writing custom xml pub report
    1) Storing all your template and sample xml data file on Unix box by FTPing it. This step is not required as XML publisher picks template from XDO tables (where it is stored in CLOB), unless you are explicitly Coding to use templates from a fixed location like <CUST_TOP>/<xml_templates>
    2) As part of XML setup, you need to define the template and datasource using the front end. This causes the Template and XML data (sample) to be stored in XDO tables (as clobs). This step is basically required and unavaoidable.This step can be automated using FNDLOAD tool (not sure).
    Hope it helps somewhat.
    Neeraj

  • How to 'Remove' user access from deleted dual boot system's users in existing operating system's folders and files?

    I have Windows 7 Enterprise Professional, accessed earlier from (now deleted) other dual boot operating system (User folder), which shows it's users as unknowns for folder properties in Windows 7 Enterprise Professional's "C:\Users\Aniruddha",
    which causes system not responding, how to 'Remove' these unknown users from folder properties of "C:\Users\Aniruddha"?
    Also "C:\Users\Aniruddha\Application Data" creates many of own folders within eachselfs end folder ("C:\Users\Aniruddha\Application Data" creates a "C:\Users\Aniruddha\Application Data\Application Data", "C:\Users\Aniruddha\Application
    Data\Application Data" creates a "C:\Users\Aniruddha\Application Data\Application Data\Application Data" and many) because of which system stops responding randomly, starts responding only for "ctrl+alt+del", why such self
    creation begins?
    Whether a standby user with same file structure copied from a user would dynamically link it's shortcut folders with Windows user from whom these folders were copied or whether there would be no link and for above said problem I would restore User's file structre
    back to normal just by copying from standby user?

    It seems your PC is infected with some malware. Use a trusted antivirus software with the latest definition updates installed to scan and remove the malware.
    Balaji Kundalam

  • How can i re-install the operating system without deleting my files on the computer

    I'm Trying to re-install the operating system on my macbook, and i dont know, if i can only re-install the OS without deleting the Data on the computer.

    If the Snow Leopard version on your Snow Leopard DVD is lower than the Snow Leopard version on your computer, you will NOT in any case be able to re-install the OS the way you want it. You will only be able to erase your disk and then reinstall the OS.
    It will only "upgrade" and keep your files if the Mac OS X version of your Snow Leopard DVD is newer than the Snow Leopard version on your computer.

  • System slow while copying files

    Hi,
    I found a problem on my iMac 27" (2011).
    While I'm copying files from a folder to another in the same hdd (this only happens with the iMac hdd) or when unzip a file my system slows down, if I'm watching a video, sometimes freezes the image and then continues.
    is it normal?
    I've tryed to reset PRAM NVRAM, and verify permissions, and nothing seems to solve the problem.

    Copying files from one folder to another on the same harddrive puts double duty on the harddrive to read And write the files.  This also consumes CPU cycles, so when watching video, which is data intense from the harddrive or internet also, your system is under heavy load and what you are experiencing is pretty normal.  That is one reason that heavy data and viedo users often upgrade when ordering their machine to extra harddrives, hyperthreading CPU's, more RAM and oversized graphics cards.
    Hopee this helps

  • Putting a outside file into unix through OAF

    Hi all,
    is it possible to put a file (an excel file ) from windows into unix in one particular path in unix through OAF.
    Actually we have a requirement that we need to upload excel file every month into unix to run a concurrent program. So client wont be doing ftp each and every month so is there any good way to do that through custom OAF Page.
    Thanks,
    Devang.

    Please see
    FIle Upload

  • Does time machine back up operating system as well as files?

    i was told that if i did a time machine back up then i could boot from it and even restore it onto a mac with no os. is this true? if so how do i do it?

    Yes, it's true. But a Time Machine backup in Snow Leopard is not bootable. It must be reinstalled from an installer DVD.
    Only Time Machine backups made using Mountain Lion can be booted from the backup drive itself. In Mountain Lion Time Machine actually puts a copy of the Recovery HD onto the Time Machine backup drive.

  • File adapter operating system command exit code

    Hello,
    If you call an operating system command in the file adapter, how is the exit code of the command handled? The documentation says nothing about this.
    If I call 'true', I expect the file adapter to succeed.
    If I call 'false', I expect the file adapter to fail.
    Hope someone can calrify.
    Best regards
    /Otto Frost

    Hi, Yes, you are rigth, it spawns a subprocess, that runs without control.
    In java you use Runtime.exec().
    It returns a process.
    process.exitValue() returns an int.
    The process is already used to terminate the process after timeout I suppose.
    You would like to be able to have the fileadapter succeed or fail depending on this exitValue.
    Depending on the command you execute, the exit code is different. RTFM on unix.
    You would like to define which codes should be treated as success, and which ones that should be treated as failure.
    true typically returns 0 and false not 0
    However, a comparison command could for example return 0 for equal, -1 if the frist argument is smaller and 1 if the first argument is larger.
    For the diff command, Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.
    Thanks
    /Otto

  • Copy Files Between Two Unix Computers

    Hi,
    I am trying to write a piece of code that will copy bunch of files from one Unix computer on to another Unix computer. On windows it seems to be pretty straight but on Unix I am trying to understand best way of copying the files. I don't have much expertise in Unix.
    Is using FTP the only option for Unix?
    I am not able to create a FILE object by referring to a file on some other Unix box? I tried new File("//unixbox2/temp/123.txt");
    Please let me know the different ways to copy files between Unix computers.
    Thanks
    Gautham

    This's a simple example of how you can send a file form one computer to another
    import java.io.*;
    import java.net.*;
    public class Prf extends Thread {
         public void run() { //Read form file and writer to socket
              try {
                   Thread.sleep(100);//sleep(100) while server is getting ready to accept connection
                   System.out.println("Connecting...");
                   Socket soc = new Socket("localhost",4070);
                   OutputStream outS = soc.getOutputStream();
                   FileInputStream fis = new FileInputStream("input.dat");
                   int i = 0;
                   byte[] b = new byte[1000000]; //1MB buffer
                   for(;;) {
                        i = fis.read(b); //read from file (i - number of read bytes)
                        if (i != -1) {// checking for end of data
                             outS.write(b,0,i); //write portion (0..i) of bytes to socket
                        } else {
                             break;
                   fis.close();
                   outS.close();
                   soc.close();
              } catch (IOException e) {
                   System.out.println(e.getMessage());
              } catch (InterruptedException e) {
                   System.out.println(e.getMessage());
         public static void main(String[] args) {//Read from socket and write to file
              Prf prf = new Prf();
              try {
                   ServerSocket sSoc = new ServerSocket(4070);
                   prf.start(); //start writer
                   Socket soc = sSoc.accept();
                   System.out.println("Connection's accepted");
                   InputStream inS = soc.getInputStream();
                   FileOutputStream fos = new FileOutputStream("output.dat");
                   int i = 0;
                   byte [] b = new byte[1000000]; //buffer
                   while (true) {
                        i = inS.read(b);//read from socket (i - number of read bytes)
                        if (i != -1) { //check for end of date
                             fos.write(b,0,i); //write portion (0..i) of bytes to file
                        } else {
                             break;
                   fos.close();
                   inS.close();
                   soc.close();
                   sSoc.close();
              } catch (IOException e) {
                   System.out.println(e.getMessage());
    }

  • Installation and deployment of operating system, applications and patches in Unix environment

    Is it possible to use Configuration Manager 2012 (or 2012 R2) to perform remote installation of operating system, applications and patching in a Unix environment?
    Balaji Kundalam

    ConfigMgr does not support Operating System Deployment for non-Windows OS flavors.
    You can use the ConfigMgr client on a Unix device to install applications and to instruct the device to install patches. Basically, the client will download files and run a script against them.  If there is a patch manager in your flavor of *nix, you
    can run a script to install the patches.
    See the supported operating systems here:
    http://technet.microsoft.com/en-us/library/gg682077.aspx#BKMK_SupConfigLnUClientReq
    I hope that helps,
    Nash
    Nash Pherson, Senior Systems Consultant
    Now Micro -
    My Blog Posts
    If you've found a bug or want the product worked differently,
    share your feedback.
    <-- If this post was helpful, please click "Vote as Helpful".

  • Is it possible to call operating system command after file receive?

    Hi expert,
    I'm trying to call operating system command after file receive comm.channel receive a txt file.
    operating system command uses txt file name as parameter.
    Is it possible? How?
    Thanks.

    Hi,
    It should be possible, actually we have two options that are
    1.RUN OS command before message processing
    2.RUN OS command after message processing.
    So you can give the commands in the RUN OS command after message processing.
    Check this links for more info
    http://wiki.sdn.sap.com/wiki/display/XI/SAP%20XI%20File%20Adapter%20OS%20Command%20Line%20Feature
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/556cb799c93677e10000000a114a6b/content.htm
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID1690747750DB11724434094963199241End?blog=/pub/wlg/10392
    Regards
    Ramesh

  • 8.1.7 Installation Problem on Pentium IV Sony VAIO PCV-RX651 with XP Operating System

    Have problem installing Oracle 8i Enterprise Edition on a SONY VAIO with XP Personal Edition. The "Explore CD" and "Browse Documents" buttons of the Oracle Universal Installer/Autorun responded but the "Install/DeInstall Products" button did not. Oracle 8i DB from the same CD was installed and ran just fine on a Pentium III Toshiba laptop with Win2000 ?! Please help.
    Thanks.
    CNguyen
    [email protected]

    ================================================================
    Doc ID:
    Note:131299.1
    Subject:
    Oracle Installer 8.1.X Hangs on Machines with Pentium 4
    Processors
    Type:
    ALERT
    Status:
    PUBLISHED
    Content
    Type:
    TEXT/PLAIN
    Creation
    Date:
    02-JAN-2001
    Last
    Revision Date:
    18-APR-2001
    This alert was modified 16-January-2001 by specifying specific
    Oracle Universal
    Installer Versions in the the Versions Affected section.
    Oracle Universal Installer (OUI) for 8.1.x Hangs on Machines
    with Pentium 4
    Processors
    ~~~~~~~~~~~~~~~~~~
    Versions Affected
    ~~~~~~~~~~~~~~~~~
    Oracle 8.1.5
    ============
    Oracle Universal Installer 1.6.0.9.0
    Oracle 8.1.6
    =============
    Oracle Universal Installer 1.7.0.19.0
    Oracle 8.1.7
    ==============
    Oracle Universal Installer 1.7.1.9.0
    Platforms Affected
    ~~~~~~~~~~~~~~~~~~
    Any platform that uses the Intel Pentium 4 processor, with the
    Sun JRE
    and Symmantec JIT will encounter this problem. Windows NT,
    Windows 2000
    and NetWare platforms are confirmed to be affected.
    Description
    ~~~~~~~~~~~
    When installing Oracle Products with the Oracle Universal
    Installer (8.1.x)
    on machines that use the Sun JRE and Symmantec JIT, the
    installer hangs.
    Specifically for the Windows platform, the following version
    of the Symmantec
    JIT or earlier will encounter the failure:
    Symantec Java! JustInTime Compiler Version 3.10.107 for JDK
    1.2.
    Details regarding this issue can be found at:
    http://developer.intel.com/design/processor/future/manuals/knowni ssue.htm
    How to determine if you have Symmantec Java for JDK 1.2:
    1. Select the file "symcjit.dll" and right click on it.
    2. Select Properties, then the Version tab.
    3. Under Microsoft Windows*, the properties of the DLL are:
    "Symantec Java! JustInTime Compiler Version 3.10.107 for
    JDK 1.2 Copyright (C)
    1996-99 Symantec Corporation Dynamic Link Library file".
    DLLs older than this will also not work. "
    Likelihood of Occurrence
    ~~~~~~~~~~~~~~~~~~~~~~~~
    Any platform that uses the Intel Pentium 4 processor, with the
    Sun JRE
    and Symmantec JIT will encounter this problem. Windows NT,
    Windows 2000 and NetWare platforms are confirmed to be
    affected.
    Possible Symptoms
    ~~~~~~~~~~~~~~~~~
    The failure typically is that the affected application simply
    terminates.
    Workaround
    ~~~~~~~~~~
    Not only will OUI be affected by this bug, most of the
    post-install
    configuration tools will also be affected. Running these
    tools with "-nojit"
    specified will avoid the hang, but it is not simple to specify
    "-nojit" for
    some of the products.
    The following workaround works for the Windows operating
    system:
    a. Copy only the install directory from the CD to the hard
    disk ,say, e:\temp.
    b. Open oraparam.ini and make the following modifications
    (Assuming CD
    drive is f:)
    * Change the "SOURCE=" line to use the full path to the CD
    instead of a
    relative path. (i.e., SOURCE=f:\stage\products.jar)
    * Change the "JRE_LOCATION" line to use the full path to the
    CD instead of a
    relative path. (i.e.,
    JRE_LOCATION=f:\stage\Components\oracle\swd\jre\1.1.7\1\DataFiles
    \Expanded)
    * Change the "OUI_LOCATION" line to use the full path to the
    CD instead of a
    relative path. (i.e.,
    OUI_LOCATION=f:\stage\Components\oracle\swd\oui\1.6.0.9.0\1\DataF
    iles\Expanded
    * Change the "JRE_MEMORY_OPTIONS" line to add "-nojit" as the
    first argument.
    (i.e., JRE_MEMORY_OPTIONS=-nojit -ms16m -mx32m)
    ^^^^^^
    * Other entries should remain the same
    c. Launch setup.exe from the temporary location on your hard
    drive (i.e.
    e:\temp\install\win32\setup.exe). This will use the
    modified
    oraparam.ini and pick up the information from the CD since
    the absolute
    locations are specified.
    Choose a Custom install and choose not to create a database
    during the
    install. This way, the Database Configuration Assistant will
    not be launched
    during installation.
    The Net8 Configuration Assistant will still be launched, and
    there is no way
    to suppress it. You will need to kill the Net8 Configuration
    Assistant if it
    hangs due to the bug. The installation still will have been
    successful, and
    you can run the DBCA and NetCA after installation.
    To kill NetCA if it hangs during installation:
    In the "Configuration Tools" window, highlight the "Net8
    Configuration
    Assistant" and click "Stop". If that does not work, look for
    the most recent
    JRE process using the Task Manager, and kill it manually.
    NOTE: the OUI
    itself will also have a jre process. Be sure to kill the one
    with the most
    recent date, which should be the jre process being used for
    Net8CA, not the
    one for OUI itself.
    After killing the configuration tools and continuing through
    the installation
    to the "End of Installation" screen, you should modify the
    configuration tools
    to use "-nojit", then call the appropriate tools from the
    Start Menu.
    Once installation is complete, each of the following files in
    the ORACLE_HOME
    needs to be modified:
    assistants\dbca\dbassist.cl
    assistants\dbma\dbmig.cl
    assistants\ifa\ifa.cl
    bin\elogin.cl
    bin\owm.cl
    ldap\oidamdin\oidadmin.cl
    network\tools\netasst.cl
    network\tools\netca.cl
    owm\install\instelogin.cl
    owm\install\instowm.cl
    Edit the contents of the above files to add "-nojit" as shown
    below:
    Command=("C:\Program Files\Oracle\jre\1.1.7\BIN\JREW" -nojit
    -classpath ....
    this is the only thing you need to add --> ^^^^^^
    Then, launch the necessary tools, like Net8CA and DBCA from
    the Start Menu.
    Patches
    ~~~~~~~
    Currently there is not a patched installer available to deal
    with this
    problem, the workaround listed above must be used.
    References
    ~~~~~~~~~~
    [BUG:1507768] INSTALLER FAILS WHEN RUNNING ON NEW PENTIUM 4
    (IV) PROCESSORS
    [BUG:1507946] INSTALLER FAILS WHEN RUNNING ON NEW INTEL
    PENTIUM 4 (IV) PROCESSORS
    @[BUG:1518935] SYMCJIT.DLL DOESN'T WORK WITH THE NEW P4
    PROCESSORS
    Oracle
    Support Services.
    Copyright (c) 1995,2000 Oracle Corporation. All Rights
    Reserved. Legal Notices and Terms of Use.
    ================================================================
    The solution of making a local copy of the installation CD on
    the hard disk and renameing symcjit.dll to symcjit.old does
    work to allow installation of Oracle Client 8.1.7 on a Pentium 4
    This function is useful and you can find two file to rename
    ===============================================================
    Windows ME
    Solution to the installation of Oraclei8.1.7 PE in Windows Millennium
    Oracle does not support installing version 8.1.7 PE into
    Windows Millennium.
    As an unsupported workaround, you may add the following line
    to the [compatibility95] section of win.ini prior to
    installation:
    Jrew=0x00080000
    After setup is complete, Oracle will recommend a reboot.
    There is one additional step necessary prior to reboot;
    Oracle may add a non-standard path statement to the
    autoexec.bat file. Please modify this SET PATH
    statement to use short-filenames if you find a quoted
    LFN string represented as part of the path. You can
    confirm that the path was merged successfully into the
    registry after reboot by examining the PATH variable
    in the registry at
    HKLM\System\CurrentControlSet\Control\SessionManager\Environment
    Symptoms of a missing Oracle path statement in the registry are that Net8 Easy Config will not launch.
    Please note that Oracle does not support the use of this
    product in Windows ME, but have authorized these workarounds
    for testing purposes only.
    ===============================================================
    Windows XP Home Edition
    Oracle 8i is not certified on windows XP. Even if yes, it must be Windows XP Professional.
    You can install Oracle8i on windows XP Home Edition, try like this:
    1 - Copy your Oracle CD into hard disk in your
    machine. For example Copy from oracle8i CD into C:\Oracle\ ...
    2 - Search the two files named Symcjit.dll on the D drive (where you have copied Oracle8i. You can found them in (example):
    C:\Oracle\stage\Components\oracle.swd.jre\1.1.7.30\1
    \DataFiles\Expanded\jre\win32\bin\symcjit.dll
    3 - Rename this file (Example): symcjit_back.dll (make sure to find two files and rename them)
    4 - Execute the Oracle setup.exe from C:\Oracle\setup.exe
    ===============================================================
    When Oracle 8i dies on the install or the installer hangs, here is the fix for this, make sure that you have Service Pack 2 installed.
    1. \JRE\1.3.1\ From Sun. (You can download java program at http://java.sun.com/products/jdk/1.1/jre/download-jre-windows.html)
    2. Install the java file.
    There is also a problem in the installation disk.
    3. Make a copy of the Oracle 8i disk on the local hard disk.
    4. Do a search for the two files called symcjit.dll and rename them for example: symcjit.old.
    5. Install Oracle from the win32 directory.
    ================================================================
    PLEASE NOTE THAT ORACLE DOESN'T SUPPORT THE USE OF THOSE PRODUCTS IN WINDOWS ME, BUT HAVE AUTHORIZED THESE WORKAROUNDS FOR TESTING PURPOSES ONLY

Maybe you are looking for

  • DAC: Screen is lost when accessing to desktop

    When a DAC-plan is running (for instance "example.dac") and the user access to the windows desktop, the diadem screen is destoyed and will not restored when returning to diadem. The access may be: changing the size of the status line, the "show deskt

  • Has anyone noticed that their iPhone 5 has a yellow tinged display?

    Has anyone noticed that their iPhone 5 has a yellow tinged display and the colours look too intense? Just does not look right.

  • Report contains PR & Po details

    Hi Gurus, Is there any report which shows PR,PR Approval date, PO , PO creation date and PO Approval date. I tried ME5A but PO approval date field is not present in the report Please suggest

  • Acrobat displaying broken graphics

    Acrobat 8 is displaying and printing my logo all of a sudden with a "break" in it. The descending diagonal line \ is not a straight line anymore. Sort of like this: The image is also not crisp and has a slightly lighter display than 100% black (guess

  • Using Automator Workflows in Mail

    Hi there, just created an Automator workflow to filter received emails from a specific sender and subsequently saves the attachement to a folder... I set up a rule in mail that 2 days after receipt of an email form the sender runs the workflow: Unfor