Variable used in OS Command (windows) not Resolving?

In my package:
1st Step: Declare Variable FILENAME
2nd Step: Set Varaible FILENAME=testcopy.txt
3rd Step: OS Command (windows), Text of your command=cmd C:\copy #CPE.FILENAME c:\temp
(CPE is the project name)
However the variable does not get resolved?
ODI 11g, hangs on the 3rd Step (Green lightning) and the code in operator is shown as: cmd C:\copy #CPE.FILENAME c:\temp
Anything additional to resolve variables in an Windows OS Command?

Try with OdiOSCommand.

Similar Messages

  • Why configuring clock using clock set command is not accepted in nexus 7k?

    Hello,
    I have a message like this:
    Admin-CORE1_VDC# clock set 15:26:00 7 december 2014
    Setting clock from CLI is not allowed in this VDC.
    Use the following config command to use the "clock set" command.
    clock protocol none vdc <vdc_id>
    If I issue that command the message shows like this:
    Admin-CORE1_VDC# clock protocol none vdc 2
                       ^
    % Invalid command at '^' marker.
    Admin-CORE1_VDC# conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    Admin-CORE1_VDC(config)# clock protocol none vdc 2
                               ^
    % Invalid command at '^' marker.
    Admin-CORE1_VDC(config)# 
    Pleas advice:
    Thanks,
    Dani

    Hello,
    I have a message like this:
    Admin-CORE1_VDC# clock set 15:26:00 7 december 2014
    Setting clock from CLI is not allowed in this VDC.
    Use the following config command to use the "clock set" command.
    clock protocol none vdc <vdc_id>
    If I issue that command the message shows like this:
    Admin-CORE1_VDC# clock protocol none vdc 2
                       ^
    % Invalid command at '^' marker.
    Admin-CORE1_VDC# conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    Admin-CORE1_VDC(config)# clock protocol none vdc 2
                               ^
    % Invalid command at '^' marker.
    Admin-CORE1_VDC(config)# 
    Pleas advice:
    Thanks,
    Dani

  • Accesing variables using Common JS API - window.cpAPIInterface

    I have Captivate 8 and am exporting and previewing that file in the browser. So I'd like to take advantage of the new Common JS API, but when I attempt to get the current slide using window.cpAPIInterface.getCurrentSlideIndex() I just get an undefined for the flash file, but this works fine for the HTML5 version. Does this work differently when the Captivate output is Flash?
    Any help would be appreciated.
    Thanks.
    Stan Keathly
    Front-End Developer
    www.customguide.com

    Feel stupid answering my own question, but hopefully this will be helpful to someone else.
    You'd think they would post this front and center on the Common JS page (Common JS interface), but if you test your published file locally in Chrome this does not work - you'll need to upload the files to the server to get things back.
    Hope this helps someone else.
    Stan Keathly
    Front-End Developer
    www.customguide.com

  • DOS Commands Used in Java Pgm, but command window should NOT be visible!

    Need a solution for the following.
    Problem: In a Java program, DOS Commands are used.
    Hence while executing it, the command window is visible for few seconds and later it is hided i.e once the processing of that DOS Command is finished.
    Solution Required: The Command Window should not be visible. The DOS Commands should be performed in the background with out making the command window visible.

    Problem:
    I am trying to run a executable file through java . But a command window always pops up. I want the command window not to pop up while the code is executed. Alternatively the rt.exec method should run in the background till the process is complete.
    I am using the following code in Java Swing application , where in when a user clicks a button the following method is invoked , which is turns invokes a windows a rasdial.exe file .Ex: rasdial MyConnection;
    Can someone help me on this. The below is a snippet of my code .
    public void callSerialOrInfraExe(String exeName) {
    executableFile = exeName;
    Runtime rt = null;
    Process process = null;
    boolean checkCon = false;
    try {
    rt = Runtime.getRuntime();
         process = rt.exec("rasdial " + executableFile);
    process.waitFor();
    checkCon = checkConEstablish();
    if (checkCon) {
    lblMsg.setVisible(true);
    cmdSubmit.setText("Done");
    cmdSubmit.setMnemonic('D');
    rdbSerialPort.setVisible(false);
    rdbInfraredPort.setVisible(false);
    jLabel1.setText(msgStr.toString());

  • CR2008 - How to run a Stored Procedure using Command Window

    Hi everybody,
    To generate my reports, I always adopted the foll. strategy:
      (a) Create a SQL Stored Procedure (with Input parameters) in Management Studio
      (b) Design a report in Crystal Report using the SP as datasource
    I want to experiment something different.
    Instead of using the SP as datasource, I wish to use the SQL Command window in CR2008.
    I have never succeeded to make it work.
    So, I am giving a simple example below , listing all my steps, so you can spot where my problem is:
    (A) Create a simple Stored Procedure in SSMS called [dbo].[usp_2014]
    USE [SIMUL02]
    GO
    /****** Object:  StoredProcedure [dbo].[usp_2014]    Script Date: 07/21/2014 12:40:22 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[usp_2014] @Project nvarchar(15)
    AS
    SELECT DocEntry, DocDate, U_ShipDept, DocTotalSy FROM ORDR
    WHERE U_ShipCode = @Project
    (B) Create a Crystal Report called TEST.rpt
          I typed the following in the Command Window (see Capture.jpg)
              {CALL "SIMUL02"."dbo"."usp_2014";1({?Project1})}
    (C) I verify the database. I get this error message:
          Failed to retrieve data from the database
            Invalid character value for cast specification
    I am blocked from here.
    Please let me know what has gone and what I must do to continue my tests.
    Thanks
    Leon Lai

    Hi Abhilash
    I copied and pasted your formula:
    Exec "SIMUL02"."dbo"."usp_2014" '{?Project}'
    Now it works!
    So, probably I typed something wrong, and did not notice
    Thanks a lot for your patience and great reply
    Closing
    Leon Lai

  • Command window and Runtime.getRuntime()

    Hi,
    I am trying to execute Runtime.getRuntime().exec() command on click of a button. It works fine, but the problem is that i get a command window when the command is executed. Is there any way to make the command window not to appear?

    It depends on the operating system you hava. Look at the os's help information on the command (or cmd) and start commands. Using "start /b" in the exec string may work.

  • Does CTAS evaluate "order by" in APEX SQL Command window?

    I need to recreate my table in order to change the column order. When I use the SQL Commands window and run the SQL, it runs successfully, creates the new table, but doesn't reorder the columns.
    Is this expected behavior?

    user648567 wrote:
    Please update your forum profile with a real handle instead of "user648567".
    I need to recreate my table in order to change the column order. When I use the SQL Commands window and run the SQL, it runs successfully, creates the new table, but doesn't reorder the columns.
    What do you mean by "order by"?
    Using an "ORDER BY" clause in a CTAS (in APEX or anywhare else) will have no effect on column order, which is determined by the order in which columns appear in the projection. It will affect the order in which rows are returned by that query, and it will not determine the order in which rows will be returned by querying the new table in the future.
    To change the column order the columns in the SELECT clause of the CTAS would have to be in a different order from those in the original table,

  • Runtime + Command window

    Hi,
    I am trying to execute Runtime.getRuntime().exec() command on click of a button. It works fine, but the problem is that i get a command window when the command is executed. Is there any way to make the command window not to appear?

    Duplicat thread, answer here
    http://forum.java.sun.com/thread.jspa?messageID=4034633

  • Darwin.cli : Most of the cli commands are not available

    Most of the command lines in 6.1 does not work in vcloud application director 6.1 for example
    list-cloud-tunnels' was found but is not currently available (type 'help' then ENTER to learn about this command)
    spring> create-cloud-tunnel
    Command 'create-cloud-tunnel' was found but is not currently available (type 'help' then ENTER to learn about this command)
    spring> cliversion
    vCloud Automation Center Application Services CLI BUILD 6.1.0-2064245
    Copyright (c) 2011-2014 VMwareInc. All rights reserved. This product is protected by U.S.
    and international copyright and intellectual property laws.
    VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents
    spring> display-user
    Command 'display-user' was found but is not currently available (type 'help' then ENTER to learn about this command)
    spring> list-cloud-tunnels
    Command 'list-cloud-tunnels' was found but is not currently available (type 'help' then ENTER to learn about this command)
    spring>

    Thanks for your reply, i used the below command but not enough luck
    login --serverUrl  https://************:8443/darwin --username admin --password ********** --tenantId gis
    According to the documentation here vCloud Application Director 6.0 Documentation Center admin has ROLE_SYSTEM_ADMIN,ROLE_CLOUD_ADMIN,ROLE_CATALOG_ADMIN,ROLE_APP_ARCHITECT,ROLE_DEPLOYER,ROLE_SYSTEM_INTEGRATOR permissions hence i was logging in as admin.
    Thanks
    Nataraj

  • Prestaged OSD using SCCM 2012 SP1 windows Partition variable is not being set

    Hello All  I need some assistance with a workaround.
    I am using a presaged task sequence created from a working network / PXE deployment TS for windows 7.
    This TS sets a variable for the OS partition called "Windows" and the value is set in the Partition Disk task.
    Problem is this value is not being read from a prestaged due to the OEMMedia condition skipping this partition and format task.
    Question is how do I get it to read and or set the value for that partition?
    From what I have found on Google this was an issue in beta of MDT but was fixed in RTM.  I am not using MDT TS but I do have it installed. Any idea if this is a known issue with SCCM 2012 sp1 TS? 
    Edit: also noticed that the variable's case is different and will not let me change it.
    Variable under format is "windows"  variable under Apply OS is "Windows"  when I change them to be the same then close and reopen they revert back to the above.  Are these variables case sensitive?
    Edit: for now I have changed it from variable to next available partition.  I tested it twice so far it seems to be using the correct partition and it remains to be called the C drive.  For now this will be my solution.

    When you say "presaged task sequence created from a working network / PXE deployment TS" are you saying this is still a network boot process? Or have you done "Create Task Sequence Media"?
    Dustin Estes - MCP
    yes when i say prestaged that is using the create task sequence media then selecting prestaged.

  • MS Access .mdb connection using ODBC could not resolve the connect identifier ORA-12154

    Dear All,
    I'm trying to use MS Access .mdb file as source to my OWB application. I need to connect to the ms access .mdb file first using odbc. Here are the step I do:
    1. Define ODBC connectifity
         control panel -> admin tools -> data sources -> System DSN -> Add
         Choose Microsoft Access Driver (*.mdb) -> Finish
         Data source name: msaccess -> Database: Select -> .mdb file location (C:\MSAccess\att2000..mdb)
    2. Configure Listener
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
        (SID_DESC =
          (SID_NAME = msaccess
          (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
          (PROGRAM = hsodbc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (SID_DESC =
          (SID_NAME = msaccess
          (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
          (PROGRAM = hsodbc)
    ADR_BASE_LISTENER = C:\app\Administrator
    3. Configure Oracle HS
         File name initmsaccess.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO = msaccess
    HS_FDS_TRACE_LEVEL = 1
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    4. Edit tnsnames.ora
    msaccess=
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SID=msaccess)
          (SERVICE_NAME=msaccess)
      (HS=OK)
    5. create database link
    create database link msaccess using 'msaccess';
    6. Run a query to test connection
    SQL> select * from departments@msaccess;
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specified
    I check the tns using tnsping msaccess, it return
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1521)) (CONNECT_DATA = (SID=msaccess) (SERVICE_NAME=msaccess)) (HS=OK))
    OK (120 msec)
    Any body know how to solve this?
    Best Regards
    Akhmad H Gumas

    Klaus,
    just fix the point you mention.
    here are the execution result:
    C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2014 17:10
    :23
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date                05-AUG-2014 17:09:18
    Uptime                    0 days 0 hr. 1 min. 5 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\app\Administrator\product\11.2.0\dbhome_1\network\a
    dmin\listener.ora
    Listener Log File         c:\app\administrator\diag\tnslsnr\eric-fd165f15bb\list
    ener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "msaccess" has 1 instance(s).
      Instance "msaccess", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\dg4odbc
    Oracle Corporation --- TUESDAY   AUG 05 2014 17:12:18.509
    Heterogeneous Agent Release 11.2.0.1.0 - Production  Built with
       Oracle Database Gateway for ODBC
    C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\tnsping msaccess
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2
    014 17:12:48
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1521)) (CONNECT_DATA = (SID=msaccess)) (HS=OK))
    OK (20 msec)
    Looks like the problem is the missing closing bracket. Finally the query work after i fix it. Thanks a lot Klaus
    Best Regards
    Akhmad H Gumas

  • Workflow 2.6.4.0.0 configuration problem - Command window does not close

    I am trying to install Oracle Workflow 2.6.4.0.0. as part of Warehouse builder using the details mentioned in this link
    http://www.oracle.com/technology/obe/10gr2_owb/owb10gr2_gs/owb/lesson4/etl-mappings.htm
    From the Start menu click Programs > Oracle <Database HOME> > Configuration and Migration Tools >
    Workflow Configuration Assistant. The Assistant is started.
    Accept the default for Install Option
    Workflow Account: (Accept the default ) owf_mgr
    Workflow Password: owf_mgr
    SYS Password : <Enter the SYS account password>
    TNS Connect Descriptor: localhost:1521:orcl
    Click Submit.
    However following this document, the command window did not close, and I did not get any message stating that Workflow Configuration has successfully completed.
    The command window displays this message as the final step and does not close-
    WorkflowCA: Executing :C:\oracle\product\10.2.0\db_1\jdk\bin\java -jar C:\oracle
    \product\10.2.0\db_1\oc4j\j2ee\home\admin.jar ormi://localhost:6041 admin welcome -application WFALSNRSVCApp -testDataSource -location jdbc/WorkflowDS -username OWF_MGR
    Is this installation complete? How to resolve this?
    Please can any one help?
    Thanks very much
    Allan

    I ran into this problem. And it took me while to get it fixed, but It does work.
    First the TNS Desc is misleading. One would think that it would be host:port:sid. What it is really looking for is host:port:servicename. But if you want to use the "Change Tablespace" drop down list you need to, enter the sys password, change it to host:port:sid - Then use the drop list. And change it back before you press submit.
    The second thing that I found is that it wants to use the SYSTEM tablespace as temporary tablespace. THis is becuase it is looking for a temp tablespace called TEMP. If you look a the line default_temp = SYSTEM. And if you dont supply a tablespace it wanted to change it in the wfsysgnt.sql script in the $OH\wf\sql directory. You would think that what ever the default database tbs and temp tbs is - that owf would use that. No, it wanted to change it. Oracle needs to fix this.
    So here is how i fixed it. I had to create a temporary tablespace called TEMP, does not need to be big as I dropped it after it was done. Then i had to modify the wfinstall.csh script and use the install options. Not the /tablespace this option is obayed but it will try to use the SYSTEM as the temp tbs. Here is my example that I appended:
    /wfacct "owf_mgr" /wfpasswd "my_owf_mgr_pwd" /debug "true" /tnsConnDesc "my_host_ip:my_port:my_servicename" /syspasswd "change_on_install" /tablespace "OWF_TBS"

  • Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing.

    Received this error message when starting iTunes and reinstalling does not resolve it:  The registry settings used by iTunes drivers for importing and burning CDs and DVDs is missing...
    Can I uninstall existing iTunes without losing my media library?  and then install fresh to fix this problem?

    Hi there kweitkamp,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows: "Registry settings" warning when opening iTunes
    http://support.apple.com/kb/TS3299
    -Griff W. 

  • Output plsql variable to command window

    I am executing a PLSQL stored procedure from my java class. I want to know how to output a variable within the PLSQL to the command window?
    thanks

    I don't understand the question. Are you telling us you don't understand how to use System.out.println(...);? How do you debug programs without using this method?
    Usually the first program someone learns to write is something like:
    public static void main(String[] args)
        System.out.println("Hello World");
    after they press "current status" or if they "delete" their current itemsYou want to do some activity when the above actions occur. You must already have code in your program to do something in the above cases. So simply add the System.out.println(..) statements in the same part of code.

  • Setting Oracle environment variable using batch (.bat) file in windows

    Hi,
    Oracle 9i db
    Windows OS
    I am in process to create the database (Considered that Oracle9i software is already installed) by running one batch file which consist of all the scripts for the database creation.
    But i also want to set the environment variables at MyComputer(right click)>properties>advance>environment, permenently by running the batch (.bat) file
    ORACLE_HOME
    ORACLE_BASE
    ORACLE_SID
    So, how can it be done ?
    With Regards

    Hi,
    *@echo off*
    set ORACLE_SID=iprsdb
    set ORACLE_BASE=C:\oracle
    set ORACLE_HOME=C:\oracle\ora92     
    call C:\install_bkp\test_env_var.bat
    echo Test Successfull.
    Above mentioned is the code written in the batch (.bat) file
    In that i have also called another .bat file which test the env. variable values which is as below:
    c:\>test_env.bat
    ===================
    Testing oracle sid
    ===================
    iprsdb
    =====================
    Testing oracle base
    ===================
    C:\oracle
    =====================
    Testing oracle home
    =====================
    C:\oracle\ora92
    Test Successfull.
    But when i checked at MyComputer(right click)>properties>advance>environment variables
    there, I saw none of the entries from the above, why so ?
    how to set env. variables permanently using the DOS commands. ?
    With Regards

Maybe you are looking for