Reuse command

I'm wondering if there is a simple way to re-use commands when using the terminal. Consider the following:
$ mkdir /mnt/photo/2008
$ mv *.jpg /mnt/photo/2008
Doing this I used /mnt/photo/2008 twice, is there some simple way I can re-use what I issued to mkdir, in this case /mnt/photo/2008. The shell is zsh, I know I can assign a variable but this does not save time when just doing that ...

finferflu wrote:
tdy wrote:$ mkdir /mnt/photo/2008
$ mv *.jpg !$
That's the right answer, but it got ignored, why?
Sorry, must have been posted while I wrote the earlier msg. Thank you very much tdy and the rest of you

Similar Messages

  • Reusing command logic between itemEditor and parent DataGrid

    I have a component that allows users to edit one of the
    properties of individual items in a DataGrid with an itemEditor
    that extends my custom PopMenuButton component. The component also
    allows users to edit multiple items using that same component.
    Right now, I have duplicate logic - both in the itemEditor
    class and the DataGrid's parent component - to handle the user's
    selection and update the data object. The logic in the itemEditor
    updates the one item that the editor is accessing, and the logic in
    the DataGrid's parent component loops through the selectedItems
    Array of the DataGrid and updates the items one at a time.
    I'd like to eliminate the need for duplicate code here. Is
    there easy way to have the itemEditor bubble an event to the parent
    an have it access the functions in that component to perform it's
    updates?
    Thanks.

    Nevermind... I'm off today. Forgot how easy it is to simply
    use the itemEndEvent....

  • Need advice about builds and reuse

    I'm almost done with my first authoring on DVDSP 3.0.2 - this is a DVD that will be sent to replication. I willl likely make some minor changes to my project. Is it 100% safe to use the 'reuse' command when doing my final build after these changes? Or is it better to do a fresh build from scratch?
    Thanx in advance
    Bob

    Thanks for the quick reply!
    One more noobie Q - My replicator said he can take an image file from me. So I will use DVDSP to create it. I've never created an image file. Is it straightforward? Are there any options to be aware of?
    As far as QC'ing the project - can I check the image file itself? or do I just check a DVD formatted from the build (before I create the image file).

  • Online redo log files being removed physically

    Grid Infra version: 11.2.0.4
    RDBMS Version: 11.2.0.4
    Although this is a RAC DB, this is not a RAC-specific question. Hence posting it here.
    Few months back, I remember issuing a command similair to below (DROP LOGFILE GROUP ...) and the redo log files were still physically present in the diskgroup.
    If I remember correctly, the file is not deleted physical so that we can use the REUSE functionality (ALTER DATABASE ADD LOGFILE MEMBER '+REDO/orcl/onlinelog/redo1b.log' reuse to group 11; ) ie. you can use the REUSE command to add the logfile of the same name which is physically present in OS Filesystem/Diksgroup to redo log group.
    But today, after I issued the below command, I checked the diskgroup location from ASMCMD
    SQL> alter database drop logfile group 31;
    Database altered.
    From ASMCMD, I can that the file has disappeared physically. Is this a new feature with 11.2.0.4 or am I missing something here ?
    ASMCMD> ls +DATA/msblprd/onlinelog/group_31.548.833154995
    ASMCMD-8002: entry 'group_31.548.833154995' does not exist in directory '+DATA/msblprd/onlinelog/'

    Just to add to what Aman has said.
    It is a bad practice not to let OMF decide the placement of Online redo logs because of this issue especially when you use ASM.
    Executing rm command in Linux/Unix is easy but Dropping ASM aliases in the disk group can be a hassle.
    This is documented.
    "When a redo log member is dropped from the database, the operating system file is not deleted from disk. Rather, the control files of the associated database are updated to drop the member from the database structure. After dropping a redo log file, ensure that the drop completed successfully, and then use the appropriate operating system command to delete the dropped redo log file."
    http://docs.oracle.com/cd/E11882_01/server.112/e25494/onlineredo.htm#ADMIN11324
    BTW . You don't even need to set  db_create_online_log_dest_n to enable OMF for ORLs.
    SQL> show parameter log_dest
    NAME                                 TYPE        VALUE
    db_create_online_log_dest_1          string
    db_create_online_log_dest_2          string
    db_create_online_log_dest_3          string
    db_create_online_log_dest_4          string
    db_create_online_log_dest_5          string
    SQL> show parameter db_create_file_dest
    NAME                                 TYPE        VALUE
    db_create_file_dest                  string      +MBL_DATA
    alter database add logfile thread 4
    group 31 ('+MBL_DATA','+MBL_FRA') size 4096M,
    group 32 ('+MBL_DATA','+MBL_FRA') size 4096M,
    group 33 ('+MBL_DATA','+MBL_FRA') size 4096M,
    group 34 ('+MBL_DATA','+MBL_FRA') size 4096M ;
    Database altered.
    And redo logs will be neatly placed as shown below
       INST     GROUP# MEMBER                                             STATUS           ARC
             4         31 +MBL_DATA/bsblprd/onlinelog/group_31.276.832605441 UNUSED           YES
                          +MBL_FRA/bsblprd/onlinelog/group_31.297.832605445  UNUSED           YES
                       32 +MBL_DATA/bsblprd/onlinelog/group_32.547.832605451 UNUSED           YES
                          +MBL_FRA/bsblprd/onlinelog/group_32.372.832605457  UNUSED           YES
                       33 +MBL_DATA/bsblprd/onlinelog/group_33.548.832605463 UNUSED           YES
                          +MBL_FRA/bsblprd/onlinelog/group_33.284.832605469  UNUSED           YES
                       34 +MBL_DATA/bsblprd/onlinelog/group_34.549.832605475 UNUSED           YES
                          +MBL_FRA/bsblprd/onlinelog/group_34.359.832605481  UNUSED           YES

  • Adding datafile - ORA-27038

    Hello,
    Trying to add data file and getting following error:
    alter tablespace SALES_BIG1 add datafile '/u02/oracle/admin/SALES/dbf/sales_big1_02.dbf' SIZE 4G REUSE;
    ERROR at line 1:
    ORA-01119: error in creating database file
    '/u02/oracle/admin/SALES/dbf/sales_big1_02.dbf'
    ORA-27038: created file already exists
    HPUX-ia64 Error: 17: File exists
    Additional information: 2
    There is soft link exists but there is no physical file.
    How can I add a datafile if that symbolic link exists?
    Database is 10.2.0.4
    Thanks
    Bell

    I want to tell u clear.
    same thing happen with me also. I added 1 temp file 20 days before because i was getting temp space error. later i see the same error . i tried to check how many tempfile in the tmep tablespace by dba_temp_files view but i saw only 1 tempfile there (i dont know why this was happen).
    error was: ORA-1652: unable to extend temp segment by 128 in tablespace TEMP
    So i was trying to add again tempfile with 1gb size and 32gb max size when i tried i got error that tempfile with the same name exist. i tried again to check the files exist or not but i could not means i can see only 1 tempfile another temp file was not there but actuall thing i have created it earlier.
    Because it was temp file.
    So i added again 2nd tempfile with reuse command and i worked fine. i wanted to share thats it.
    alter tablespace temp add tempfile '/data/orabi/temp02.dbf' size 1g reuse;
    then
    alter database tempfile '/data/orabi/temp02.dbf' autoextend on maxsize 32g;
    Thanks
    Ravi Kumar Shrivastava
    ORACLE DBA

  • REUSE checkbox values not saved after user-command

    Hi,
    I have an ALV grid using REUSE_ALV_GRID_DISPLAY within i have checkbox editable field. Initially all lines in the grid are checked. (user can deselect some of the lines)
    After display of ALV grid user deselect some of the lines in the grid and he press ENTER Here i am updating only checked data the alv grid data to a custom table.But my problem is user deselect some of lines in the gird and press ENTER, but the output table from the grid still showing all lines are checked. ie grid results not showing in the output table.
    Here is code
      data: pt_grpfcat      type slis_t_fieldcat_alv,
            ps_grpfcat      like line of pt_grpfcat,
            pt_grpself      type slis_selfield,
            pt_grplayout2   type slis_layout_alv,
            pv_grptitle(20) type c,
            p_grpexcltab2   type slis_t_extab with header line,
            p_header        type  slis_formname.
      ps_grpfcat-fieldname = 'BOX'.
      ps_grpfcat-checkbox  = c_x.
      ps_grpfcat-edit      = c_x.
      ps_grpfcat-seltext_m = text-272.
      ps_grpfcat-outputlen = 3.
      append ps_grpfcat to pt_grpfcat[].
      clear ps_grpfcat.
      ps_grpfcat-fieldname = 'WERKS'.
      ps_grpfcat-outputlen = 4.
      ps_grpfcat-seltext_m = 'Plants'.
      append ps_grpfcat to pt_grpfcat[].
      clear ps_grpfcat.
      ps_grpfcat-fieldname = 'NAME1'.
      ps_grpfcat-outputlen = 40.
      ps_grpfcat-seltext_m = 'Description'.
      append ps_grpfcat to pt_grpfcat[].
      clear ps_grpfcat.
      select * from t001w into table i_t001w_1.
      if p_plgrp ne c_gl.
        select * from yfe024 into table i_yfe024
                 where plgrp eq p_plgrp.
      else.
        select * from yfe024 into table i_yfe024
                 where plgrp ne space.
      endif.
      refresh : i_grpoutput. clear : i_grpoutput.
      pt_grplayout2-zebra = c_x.
      refresh i_events. clear i_events.
      if not i_yfe024[] is initial.
        loop at i_yfe024 into wa_yfe024.
          read table i_t001w_1 into wa_t001w_1
                      with key werks = wa_yfe024-werks.
          if sy-subrc eq 0.
            move : c_x            to i_grpoutput-box,
                   wa_t001w_1-werks to i_grpoutput-werks,
                   wa_t001w_1-name1 to i_grpoutput-name1.
            append i_grpoutput.
          endif.
        endloop.
      endif.
      pv_grptitle = text-t01.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          it_fieldcat                 = pt_grpfcat[]
          it_excluding                = p_grpexcltab2[]
          is_layout                   = pt_grplayout2
          i_callback_program          = sy-repid
          i_callback_html_top_of_page = p_header
          i_callback_pf_status_set    = v_status_set1
          i_callback_user_command     = v_user_command1
          i_screen_start_column       = 5
          i_screen_start_line         = 5
          i_screen_end_column         = 70
          i_screen_end_line           = 15
          it_events                   = i_events[]
        tables
          t_outtab                    = i_grpoutput.
    endform.                                 " F_f4_help_fieldname
    * Form  f_user_command1                                                *
    * This form will handle the user command from fm REUSE                 *
    form f_user_command1 using p_ucomm type sy-ucomm
                         rs_selfield type  slis_selfield.
      case p_ucomm.
        when 'YCNC'.
          leave to screen 0.
        when 'YNTR'.
          perform f_upload_readions.
          leave to screen 0.
      endcase.
    endform.                                 " F_user_command1
    * Form f_pf_status_set1                                                *
    * For setting PF status to REUSE                                       *
    form f_pf_status_set1 using rt_extab type slis_t_extab..
      set pf-status '9001'.
      set titlebar '9001' with v_plgrp.
    endform.                                 " F_pf_status_set1
    * Form f_upload_readions                                               *
    * For upload plants under regions to load into YSCCPLNT                *
    form f_upload_readions.
      if not i_grpoutput[] is initial.
        loop at i_grpoutput where box eq c_x.
          read table i_ysccplnttemp with key werks = i_grpoutput-werks
                                             updkz = space.
          if sy-subrc ne 0.
            move i_grpoutput-werks to i_ysccplnttemp-werks.
            move v_affind          to i_ysccplnttemp-affind.
            append i_ysccplnttemp. clear i_ysccplnttemp.
          endif.
        endloop.
      endif.
    endform.                                 " F_upload_readions
    Any suggestions?
    Thanks
    aRs

    form f_user_command1 using p_ucomm type sy-ucomm
                         rs_selfield type  slis_selfield.
    <b>Data ref1 type ref to cl_gui_alv_grid.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    E_GRID = ref1.
    call method ref1->check_changed_data</b>
      case p_ucomm.
        when 'YCNC'.
          leave to screen 0.
        when 'YNTR'.
          perform f_upload_readions.
          leave to screen 0.
      endcase.
    endform.

  • Command line render "-reuse" flag with multiple copies of afterFx.exe

    The question is, can i use "-reuse" flag to start rendering with more than one copy of afterFx.exe ?
    //OS Windows 7
    If i start
    aerender.exe -project c:\projects\project_1.aep
    I have to wait about 15 seconds until the After is started and only then start rendering.
    But I can start the After in advance.
    Start
    aerender.exe -project c:\projects\project_1.aep -reuse
    And then render will begin immediately.
    Unfortunately one copy of After effects does not use the power of my computer at 100%. // I need about 5 copies.
    So I tried:
    Execute in command promt:
    AfterFx.exe -m -noui
    AfterFx.exe -m -noui
    AfterFx.exe -m -noui
    Then execute:
    aerender.exe -project c:\projects\project_1.aep -reuse
    aerender.exe -project c:\projects\project_1.aep -reuse
    aerender.exe -project c:\projects\project_1.aep -reuse
    But only the first copy of AfterFx was used. The following two commands of aerender  have launched a new copies of AfterFx.
    Any ideas?
    P.S. I know about the "-mp" flag, it is not a solution.

    I know on the mac side you can send a system command to have "aerender" launch a render in Terminal. Same as Lloyd's BGRenderer script, without all the nice features of course. If you are rendering an image sequence, you can launch a render multiple times and it will begin to use more of the available resources, skipping frames already in process by the other processes. It will take a toll on your computer if you launch too many at once, but I've had at least three or four of these going for one render before.
    The system command is (OS X based):
    /Applications/Adobe\ After\ Effects\ CS6/aerender -project /Volumes/Projects/Lazarus/Project\ Files/AE_Projects/Shots/023_010A1/AE_Projects/023_010A1.aep -sound "on"
    BREAKDOWN
    Path to aerender (spaces are escaped with a backslash):
         /Applications/Adobe\ After\ Effects\ CS6/aerender
    Project flag and then path to aep file:
         -project /Desktop/myShotToRender.aep
    Sound flag to have it "ding" on completion:
         -sound "on"

  • Open and Close a command line exec via OpenG.lib in seperate VIs

    Hi,
    I'm aiming to perform tests on my UUT - over a command line based executable which established a USB connection, so - sendings commands and checking the return string. 
    So far i'm reusing the pipeNight.vi which is shared in the following post.
    http://forums.ni.com/t5/LabVIEW/How-to-pass-input-to-a-DOS-executable-that-is-running-in/m-p/1763182...
    However i wish expand from LabVIEW and utilise NI-TestStand sequence files to ramp up the test coverage and perform the tests automatically.
    The issue i've encountered - every time i call the pipeNight.vi from a TestStand sequence Step, the USB connection is build up and torn down.
    Although i'm not encountering any performance issues to date, i would ultimately like to open a session (i.e.establish the usb connection) - at the beginning of a sequence file, send a bunch or commands and check return strings, before closing the session at the end of the sequence file. This is surely a more effecient and elegant solution.
    Is it somehow possible to split the pipeNight.vi into several VIs to realise this objective?
    - Open 
    - Write/Read
    - Close
    i'd appreciate and help or alternatice solutions on this!
    B.Regards
    Kech
    Solved!
    Go to Solution.

    I had tried to explain in my initial post, that if i call the pipeNight.vi from a TestStand sequence file step, then establishes a USB connection and tears it done - for every command that i send/ respectively every sequence step that i run in TestStand. As i envisage multiple (several hundred) test steps, i woul like to improve effeciency by establishing the ESB connection once instead of multiple times.

  • Error on Create Database command for Oracle 9i on Red Hat 9

    Error on Create Database command
    CREATE DATABASE ora9i
    LOGFILE
    GROUP 1 ('$HOME/ORADATA/log_01_01_ora9i.rdo') SIZE 10M,
    GROUP 2 ('$HOME/ORADATA/log_02_01_ora9i.rdo') SIZE 10M
    DATAFILE '$HOME/ORADATA/system_01_ora9i.dbf' SIZE 100M
    AUTOEXTEND ON NEXT 50M MAXSIZE 150M
    DEFAULT TEMPORARY TABLESPACE temp
    TEMPFILE '$HOME/ORADATA/temp_01_ora9i.dbf' SIZE 15M
    AUTOEXTEND ON NEXT 5M MAXSIZE 30M
    CHARACTER SET WE81SO8859P1
    NATIONAL CHARACTER SET AL16UTF16
    CREATE DATABASE ora9i
    ERROR at line 1:
    ORA-01092:ORACLE instance terminated. Disconnection forced.
    initora9i.ora file contents :
    background_dump_dest=$HOME/ADMIN/BDUMP
    core_dump_dest=$HOME/ADMIN/CDUMP
    db_name=ora9i
    db_files= 80
    db_file_multiblock_read_count=8
    db_block_buffers=100
    shared_pool_size = 3500000
    log_checkpoint_interval = 10000
    processes=50
    parallel_max_servers=5
    log_buffer = 32768
    max_dump_file_size = 10240
    global_name = TRUE
    control_files=$HOME/ORADATA/ctrl01.ctl
    undo_management=AUTO
    user_dump_dest=$HOME/ADMIN/UDUMP
    -------------------------------------------------

    Pleae include REUSE keyword at the end of each file location as shown below...
    CREATE DATABASE ora9i
    LOGFILE
    GROUP 1 ('$HOME/ORADATA/log_01_01_ora9i.rdo') SIZE 10M REUSE,
    GROUP 2 ('$HOME/ORADATA/log_02_01_ora9i.rdo') SIZE 10M REUSE
    DATAFILE '$HOME/ORADATA/system_01_ora9i.dbf' SIZE 100M REUSE
    AUTOEXTEND ON NEXT 50M MAXSIZE 150M
    DEFAULT TEMPORARY TABLESPACE temp
    TEMPFILE '$HOME/ORADATA/temp_01_ora9i.dbf' SIZE 15M REUSE
    AUTOEXTEND ON NEXT 5M MAXSIZE 30M
    CHARACTER SET WE81SO8859P1
    NATIONAL CHARACTER SET AL16UTF16

  • Server 2012 R2 RDS Personal Collection -reuse VM names after a partial job failure

    I am currently testing RDS on server 2012 R2, and as part of the test I have built and rebuilt multiple collections of VMs. I have noticed that when creating a new JOB to build a personal collection, sometimes I get VM build failures on one host. The build
    failures are usually due to a networking issue, which I then resolve, but when I go to add/create the VMs that failed, the name of the VMs increment from the last VM, and they don't re-use the failed names. I want to be able to reuse/build the VMs that
    failed.
    eg.
    VM-01, VM-02, VM-03 - On HOST-01 all work
    VM-04, VM-05, VM-06 - On HOST-02 fail
    VM-07, VM-08, VM-09 - On HOST-03 all work
    So on this example, when I re-run the job to build the missing/failed VMs, it would build  VM-10, VM-11, VM-12 on HOST-02.
    Is there a way to reset, or reuse the failed VM names, in the example above that would be VM-04, VM-05, and VM-06?
    Thanks

    Hi,
    Thank you for posting in Windows Server Forum.
    For a try you can use powershell command for RD VDI infrastructure.
    New-RDVirtualDesktopCollection -CollectionName "ITCamp" -PooledManaged -StorageType CentralSmbShareStorage -VirtualDesktopAllocation 5 -VirtualDesktopTemplateHostServer $VHost -VirtualDesktopTemplateName $VDITemplateVM -ConnectionBroker $RDBroker -Domain “contoso.com”
    -Force -MaxUserProfileDiskSizeGB 40 -CentralStoragePath”\\fileserver1\NormalVMs” -VirtualDesktopNamePrefix "ITC" -OU “VDICampUsers” -UserProfileDiskPath \\fileserver1\NormalProfiles
    More information.
    Lab Ops 7 – Setting up a pooled VDI collection in Windows Server 2012 R2
    http://blogs.technet.com/b/andrew/archive/2013/10/28/lab-ops-4-windows-8-1-windows-2012r2-vdi.aspx
    Also check that when setting up RDS, there needs to be a Physical NIC with IP for the creation of a RDS vSwitch. If this vswitch does not exist, the creation of the MV's will fail.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Is it possible to reuse the Scanner instance in this case?

    I have a data file that gets updated by another process, and in my program I periodically read the file, and if there'S new data added I will update my data structure (contained in ArrayLists).
    The issue is for every read I have to re-create a Scanner instance and skips all the lines that have been read. Since the file could get really long, and to skip lines in the file we need still to call scanner.readLine() which might be expensive since it interacts with the hard disk, I'm trying to reuse the Scanner instance and count on the scanner.hasNextLine() to return true if new lines are inserted to the file by the other process:
    while (in.hasNextLine()) {
    String line = in.nextLine();
    // intepret th eline here
    This code is put in a Runnable that is executed periodically, and I was hoping that the next time it is called in.hasNextLine() would return true and we can happily start where we were left off.
    But the bloody method does NOT return true even though new lines have been added to the file. Does anyone know to make it recognize that the file has been updated? Or really there's no other way but to re-open the file and skip old lines as I'm doing now?
    Any suggestion would be highly appreciated!
    P.S: How could I add code tags to highlight my code portion? Thanks!

    808239 wrote:
    I have a data file that gets updated by another process, and in my program I periodically read the file, and if there'S new data added I will update my data structure (contained in ArrayLists).Is there any reason you can't use a Stream instead of a file? Unix has a nice little utility called 'tee' that allows you to write out to a file AND stdout, allowing you to connect other commands via a pipe. I'm sure you could write something similar for Java; however, if this is intended as a daemon process, you'd probably have to make it non-blocking, which might be an issue.
    Alternatively, have you considered using a database instead of a file?
    Winston

  • Hiding a web item through the command line URL

    We use the Web API and command line processing heavily to pass in different filter values, variable values, data providers, etc. to our web reports.  I had a requirement within a given area to launch our web reports with the Navigation block visible on the web template.  In our commonly used 'default' web template, we currently allow the users to switch this item on/off once they are in the report, but we always have it come up Hidden initially.
    My question is this: is there some trick to getting a web item property changed dynamically at execution time from Hidden=X to Hidden= ?  I have tried numerous attempts to format a URL to change this behavior, but have been unsuccessful.  A sample would be: &ITEM=GR6&MULTI=X&HIDDEN=  --> this is intended to make all items with 'GR6' in the name unhidden.  But in my case, it ends up making more web items visible than I want.  Even specifying the Item name directly does not help.
    I have also tried applying it in conjunction with a command sequence from the Web API docs. Is there a particular command that this has to go with (i.e. LDOC? RESET_WEB_ITEM? etc.)?  We have a button on the web template that issues the command <SAP_BW_URL ITEM='GR6' MULTI='X' HIDDEN=''> when clicked -- this works fine.  How do I apply the same type of logic to the initial URL within the command processing?
    Any help would be appreciated.  I know that I can resolve this by just creating a copy template with this web item set to Visible instead of Hidden at the launch.  I was just thinking I could reuse the main web template and control it through the URL.
    Thanks...
    Jody Chassereau

    Heike,
    maybe you can help me out on this one:
    I'm trying to implement Tobias Kaufmann's How To Paper <i>Web Printing with Excel</i>.
    Before calling the respective Abap classes from my web template, I want to hide the web item <i>Hierarchical Filter Selection</i> as this one comes out ugly when downloaded to Excel. So what I'm doing is, I first hide the Filter Selection and then call the Abap classes.
    Here is the coding that I am using:
    <!-- Web Print with Excel-->
    <td class="SAPBEXNavLine"><A href="<SAP_BW_URL
    CMD_1='Item=HIERCONTEXTMENU_1&HIDDEN=X'
    CMD_2='CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=HELP_SERVICE_PRINT&ITEM=Table_1&SUBCMD=PRINT_EXCEL'>">
    <IMG  alt="Web Print with Excel" src="/sap/bw/Mime/bex/icons/print.gif" border=0></A></td>
    This coding is working fine.
    The problem is however, that the <i>Hierarchical Filter Selection</i> is now hidden in my web template. To unhide it, I thought I'd use the coding as above, but add a third command (CMD_3) to make that item visible again.
    Here is the coding:
    <!-- Web Print with Excel-->
    <td class="SAPBEXNavLine"><A href="<SAP_BW_URL CMD_1='Item=HIERCONTEXTMENU_1&HIDDEN=X'
    CMD_2='CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=HELP_SERVICE_PRINT&ITEM=Table_1&SUBCMD=PRINT_EXCEL'
    CMD_3='Item=HIERCONTEXTMENU_1&HIDDEN='>">
    <IMG  alt="Web Print with Excel" src="/sap/bw/Mime/bex/icons/print.gif" border=0></A></td>
    Unfortunately, only the commands CMD_1 and CMD_3 are being executed (which is kind of useless), the main command CMD_2 however is not.
    Do you have any idea why this is happening and how to avoid this?
    Really appreciating your help,
    Regards,
    Yogen

  • To run a report from command line, when using jdbc-odbc bridge

    Hi,
    How to run a report from command line, when using jdbc-odbc bridge?
    Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
    with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
    Please specify, what is command line arguments for jdbc-odbc bridge driver?
    Environment : Oracle 9i Report Builder on WinNT
    Database : Sybase
    Regards,
    Ramanan

    Hello Ramanan,
    Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
    JDBC PDS allows user to connect one or more same or different kind of databases.
    While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
    Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
    rwrun eg :
    rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
    Server eg :
    http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
    http :
    Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
    With Regards
    Reports Team

  • SQL Command returns multiple records, but I see only one record in report

    I work with Crystal Reports XI R2 SP3 and Oracle 10g R2 database.
    I have an SQL Command that returns multiple records. Command name is "CommDivisionNames" and it returns column "CommDivisionNames.DIVISION_NAME". When I place this field into report details section of the report, I can see all 10 records returned and this is how it should be. I actually need this field to be placed in the report header section, and when I place the field there, then I see only the first record. I set that field as "can grow = true". When I do "browse field data" for this field, I see that all 10 records are there, but only the first one is displayed in report header section.
    I thought that I can place SQL Command field anywhere on the report (page header, footer, details) and that it will always show all records that it returns from the database. Can that be done?
    My "main part" of the report returns different set of records, and that's what I have in "report details" section. I need this list of divisions to be in the report header section, so user can see that the report was executed for DivA, DivC, DivE.
    Thank you,
    Milan

    sharonamt:
    Users select divisions from parameter, but the parameter multi values are division_numbers (1,5,10), not division_names. Division_names are visible in parameter_prompt_window as description, but parameter remembers only numbers and I don't know how I can reuse division_names later in formula.
    I do join for division_numbers and make them into one string variable and pass to sub-report, but I think that I can only get these division_names by calling an SQL command or calling stored procedure.
    If I try to do join({MySQLcommand.DIVISION_NAME}) I get error message "A string array is required here".
    Carl:
    I'm playing with cross-tab and I can use it to see all division_names in the report-header section. Since I need them in only one column or only one row, I have to edit cross-tab object and turn all unneeded border lines to white to make them look invisible. So, cross-tab could be a solution for my problem here.
    Another option could be to re-write my SQL command. Since I've read here that SQL command could be written in the same way as I would write a stored procedure, then I could use a bit more complex code to get all multiple division names from the database table into a local cursor, and then use do-while loop to concatenate them into one string, and then to return that string as one record (like 'DivA, DivB, DivC'), and then it should not be a problem to display only that one record/string in report header. It is my understanding that Crystal Reports can call stored procedure that works with many cursors/recordsets and CR will use only the last recordset from the stored procedure. Do you think it could be done this way?
    Thank you,
    Milan

  • Getting error while running duplicate command

    RMAN> duplicate target database to JEFFDUP;
    Starting Duplicate Db at 18-JAN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=156 devtype=DISK
    contents of Memory Script:
    set until scn 1188531;
    set newname for datafile 1 to
    "C:\ORACLE\SYSTEM01.DBF";
    set newname for datafile 2 to
    "C:\ORACLE\UNDOTBS01.DBF";
    set newname for datafile 3 to
    "C:\ORACLE\SYSAUX01.DBF";
    set newname for datafile 4 to
    "C:\ORACLE\USERS01.DBF";
    set newname for datafile 5 to
    "C:\ORACLE\EXAMPLE01.DBF";
    restore
    check readonly
    clone database
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 18-JAN-11
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to C:\ORACLE\SYSTEM01.DBF
    restoring datafile 00002 to C:\ORACLE\UNDOTBS01.DBF
    restoring datafile 00003 to C:\ORACLE\SYSAUX01.DBF
    restoring datafile 00004 to C:\ORACLE\USERS01.DBF
    restoring datafile 00005 to C:\ORACLE\EXAMPLE01.DBF
    channel ORA_AUX_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\DB_2\FLASH_RECOVERY_AREA\ORCL4\BACKUPSET\2011_01_10\O1_MF_NNNDF_TAG20110110T001815_6L
    QJM5_.BKP
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=C:\ORACLE\PRODUCT\10.2.0\DB_2\FLASH_RECOVERY_AREA\ORCL4\BACKUPSET\2011_01_10\O1_MF_NNNDF_TAG20110110T001815_6LN0QJM5_.BKP tag=TAG20110110T001815
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:01:06
    Finished restore at 18-JAN-11
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "JEFFDUP" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ( 'C:\ORACLE\REDO01.LOG' ) SIZE 50 M REUSE,
    GROUP 2 ( 'C:\ORACLE\REDO02.LOG' ) SIZE 50 M REUSE,
    GROUP 3 ( 'C:\ORACLE\REDO03.LOG' ) SIZE 50 M REUSE
    DATAFILE
    'C:\ORACLE\SYSTEM01.DBF'
    CHARACTER SET WE8MSWIN1252
    **RMAN-00571: ===========================================================**
    **RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============**
    **RMAN-00571: ===========================================================**
    **RMAN-03002: failure of Duplicate Db command at 01/18/2011 19:10:32**
    **RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed**
    **ORA-01130: database file version 10.2.0.3.0 incompatible with ORACLE version 10.2.0.0.0**
    **ORA-01110: data file 1: 'C:\ORACLE\SYSTEM01.DBF'**
    Please help me in this..
    Thanks...

    >
    01504, 00000, "database name '%s' does not match parameter db_name '%s'"
    // *Cause:  The name in a database create or mount does not match the name
    // given in the INIT.ORA parameter db_name.
    // *Action: correct or omit one of the two names.
    >
    I think you have to edit the pfile from the auxiliary db..
    see:
    http://www.google.de/url?sa=t&source=web&cd=1&ved=0CBsQFjAA&url=http%3A%2F%2Fblogs.oracle.com%2FAlejandroVargas%2Fgems%2FRMANDUPDBPRACTICE.pdf&ei=PLQ1TYigMIqUOtyI_bYC&usg=AFQjCNHwggp30FDq-l3Wq5Pu4gk48X3Xhw
    Regards,
    - wiZ

Maybe you are looking for

  • Is there a way to change the snooze interval for reminders?

    I've dug around in the preference and looked online, but I can't see a way to change how often it reminds you about an alert if you hit snooze.  I liked having the option to delay things by an hour or a day like I could for alerts in Lion.  Thanks!

  • Asset disposal from sap

    Hi my company wants to dispose from some assets to its customers,how can we achivev this using sap and what are the implications of this

  • Quiz Feedback Options in Captivate

    Hi all, I have a problem in showing the feedbacks for a quiz(Multiple choice with multiple answers(Eg: Answer - A and C). I wanted to show feedbacks for each wrong attempt made by the user, until the user select the correct answer. I mean I have to s

  • Site name on Google

    When my site comes up in a Google search, it's name is "Home" rather than the site name. Same is true on the Safari "Window" list once the site is up. How do I correct?

  • CS4 - Toolbox doesn't appear

    Have seen the thread about keyboard, shortcuts etc not coming up, but have just upgraded to CS4 & can't even get the main toolbox (Windows XP) apart from the subsequent crashes. Also my documents from CS3 only half appear. Tried re-installing, checki