CL_ABAP_ZIP not creating proper archive - incorrect CRC?

Hello,
I am using CL_ABAP_ZIP to upload zipped archive (it's a XSLX with zipped XML's), modifying one of the contained files, zipping it back and downloading to PC. It is opened by Excel application, but with a message that it's a damaged archive (values inside are OK). If I rebuild/repair the archive by WINRAR, then everything is OK and message is not reported any more. I assume that it's the wrong CRC.
Here is my code:
  lo_zip->get(
    EXPORTING  name                    = lc_shared_strings
    IMPORTING  content                 = l_xstr ). 
*... change content of L_XSTR, get new L_NEW_SHARED_STRINGS_XSTR
  lo_zip->delete( name = lc_shared_strings ).
  lo_zip->add( name    = lc_shared_strings
               content = l_new_shared_strings_xstr ).
* get ZIP content as XSTRING
  l_xstr = lo_zip->save( ).
* save ZIP file to PC
  CLEAR gt_upload.
  CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
      buffer     = l_xstr
    TABLES
      binary_tab = gt_upload.
  cl_gui_frontend_services=>gui_download(
           EXPORTING  filename   = p_file
                      filetype   = 'BIN'
*           IMPORTING  filelength = g_len
           CHANGING   data_tab   = gt_upload
           EXCEPTIONS OTHERS     = 19 ).
I also tried another approach: take what I needed from the original ZIP and re-pack it into another:
  lo_zip->delete( name = lc_shared_strings ).
  l_xstr_old = lo_zip->save( ).
  lt_splice = lo_zip->splice( l_xstr_old ).
  CREATE OBJECT lo_new_zip.
  LOOP AT lt_splice ASSIGNING <ls_splice>.
    lo_zip->get( EXPORTING name    = <ls_splice>-name
                  IMPORTING content = l_xstr_old ).
    lo_new_zip->add( name    = <ls_splice>-name
                     content = l_xstr_old ).
  ENDLOOP.
  lo_new_zip->add( name    = lc_shared_strings
                   content = l_shared_strings_xstr ).
  l_xstr = lo_new_zip->save( ).
*... save file to PC
The result was the same.
There is also a method CL_ABAP_ZIP=>CRC32 which returns integer CRC for given XSTRING, but I don't know how what to do with it (if anything).
I also found the following fourm posts claiming that the CRC is taken care of by CL_ABAP_ZIP:
1. [abap gzip zip|abap gzip zip;
2. [zip binary data and save zip file to disk at bsp|zip binary data and save zip file to disk at bsp;
3. [How to Zip the data in an internal table|How to Zip the data in an internal table;
They all suggest that it's as simple as my example above, but still, there's something wrong with my solution.
What could be wrong with my ZIP?
Thanks!
KR,
Igor

Solved: This unspecified "*... save file to PC" part of the code was wrong - I was saving a BIN file without filesize parameter supplied. The parameter was optional, but obviously important. Now it works perfect!

Similar Messages

  • Archiving File Not created

    Hai Gurus,
    here i doing an archiving task,i havecreated the variant and assigned four weks to archive,after 40 min later i found the job is finished and when i started deleting ,the archived file file NOT created.So i cross checked in spool request and it shown as the "WAITING",the Statistics screen as NO data found.
    I have my job log as the arching is been created with "1" archiving object, but actually it has to show me the file name:"archive_bw_000025236.....".So what can be the reason and where can be the file be gone or saved?what is the procedure to find the Archived file,i mean in which table i can see
    please let me know
    Points will allocated fully .........
    Suri.

    Hi Suri,
    When you archive any data( in your case- 4 weeks data), the system will confirm if this data is business complete. If YES, then it will archive your stipulated data and only then you may be able to see the Log of the archived data.
    if there is no data ( business complete)to be archived, then NO archive file will be created.
    You can see the Archive file name in the Job Log of that particular archiving run.
    By the way, which data/object are u archiving ? may be i can help you.

  • Could not open firefox and tried to update newer version but could not with error msg "can not create temp folder archive"

    Tried to run firefox as usual but the the page could not connect the server. Thus, uninstalled the browser and tried to install a newer version. Could not run the program and error msg "can not create temp folder archive" popped up.

    See http://answers.yahoo.com/question/index?qid=20080702200623AAOYP13

  • When I try to download mozilla it says "can not create temp folder archive"

    I click 'run' and after it is done loading a window pops up saying 'can not create temp folder archive' So basically it won't let me download mozilla. What do I do to fix this?

    Interesting. I tried one more time - instead of saving it to my hard drive, I ran it directly off the Mozilla site and it installed....
    Something is definitely wrong with the Mozilla "save as" and THEN run process....

  • Ao clicar em "Executar" aparece "Can not create temp folder archive". O que faço?

    Não consigo instalar o Firefox mesmo com o auxílio do “Instalando o Firefox no Windows”. Ao clicar em "executar" aparece uma mensagem do 7 - Zip "Can not create temp folder archive” .
    O que devo fazer para conseguir instalar o navegador?

    Você tentou executar como administrador o instalador do Firefox? Tente iniciar o computador em modo de segurança e tente novamente instalar.
    *[http://windows.microsoft.com/pt-br/windows/start-computer-safe-mode]

  • Could not create WMI locator class (80040154) - Win7 x64 OSD

    Hello All,
    I'm attempting to deploy a Win7 x64 OS to a Dell Optiplex 3010 through SCCM 2012 via PXE, a process I've done many times in the last few months. All of a sudden, on this one machine, I can't get it to work.
    The first strange thing that happened is, after the initial check for a PXE server I am told to "Press F12 for network service boot". I've never seen that before on any other system. Secondly, after supplying the password to begin the OSD process
    I'm met with error message 80040154. An excerpt from my log file is below:
    spLocator.createInstance( ((bUseAdminLocator == true) ? CLSID_WbemAdministrativeLocator : CLSID_WbemLocator ) ), HRESULT=80040154 (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,264)    TSPxe    1/8/2015 10:00:45
    AM    268 (0x010C)
    Could not create WMI locator class (80040154)    TSPxe    1/8/2015 10:00:45 AM    268 (0x010C)
    spNamespace.Open(c_szCIMv2Namespace), HRESULT=80040154 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,604)    TSPxe    1/8/2015 10:00:45 AM    268 (0x010C)
    Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x80040154)    TSPxe    1/8/2015 10:00:45 AM    268 (0x010C)
    TS::Policy::GetClientIdentity (&m_oHttpTransport, m_sSiteCode, sMediaGuid.c_str(), m_sClientGUID, m_sNetbiosName, bUnknown, sServerNames, sImportedClientIdentity), HRESULT=80040154 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,867)    TSPxe  
     1/8/2015 10:00:45 AM    268 (0x010C)
    I see this error happening for people attempting a Win 8.1 OSD without the proper WMI file. But that's not what I'm trying to do. This exact process has worked on many other Optiplex 3010's and 3020's since May when I started using it. Any suggestions?

    Ok, here's what was happening. Boy do I feel stupid.
    When I went to enter this latest batch of computers into SCCM, I went into the BIOS, copied the MAC, and used it as I should to import the system into SCCM. I assigned it to my OSD collection, then deployed my OSD TS to that collection. This is when I started
    having major issues. Reason being: I transposed two of the digits in the MAC I entered. As a result, the computer booted as part of the “Unknown Systems” collection and was assigned a generic OSD TS that didn’t contain the necessary drivers to complete. I
    never assigned a TS to that collection, and I'm the only one that's been using SCCM for OSD. I can only assume someone else was playing around with it trying to learn and did this themselves.
    When I removed the outdated boot image the Unknown Computers TS was supposed to use, I began being unable to even PXE boot (of course). After trying many and varied solutions (including double-checking the MAC I had written down
    incorrectly), thinking it was a PXE or boot image issue I began looking at the PXE boot logs on my DP. I noticed it kept saying that there were no advertisements to this system, which made no sense. I had deployed an OSD TS to it 5 minutes ago! I finally
    noticed the MAC address was incorrect and fixed it. Guess what? It’s imaging as I type.
    Thanks for all the help guys - lesson learned.

  • Could not create diskarb or authorization session

    My powerbook g4 has been running fine on Tiger through all the updates including 10.4.4. When I ran software update to go to 10.4.5 (without interruption). After restarting it booted into Darwin asking for a login. I entered the correct login info, and an error pops up quickly and then goes to blue screen and does nothing..
    I decided it was time for a wipe, and erased the drive using disk utility, writing all zeros.. I reinstalled 10.4 and it starts up fine. 10.4.4 I installed via firewire from another mac, which installed and ran fine, except that Disk Copy was somehow broken and wouldn't expand .dmg files..
    I then archived and installed again, back to 10.4. Works fine.
    I downloaded and installed the combo updater and then get booted back into Darwin.
    I get an error message, which says that 'login is incorrect' and something about mdimportserver[123], and "could not create diskarb or authorization session."
    Starting up with option key down, it will show me the local drive or the OS X install disk as options. It won't start up in Safe Mode.. It just sits at the initial grey apple. I can start the powerbook in target mode, but when trying to option-start my iMac, with the powerbook connected via firewire, my iMac does not ever see the powerbook as a startup drive. I can mount the powerbook as a firewire drive on my iMac though.
    Disk Utility says everything is fine with the disc and permissions.. I have repaired permissions before and after each installation, where possible.
    Can anyone help?

    I think so, as Disk Warrior is saying there are problems with the Volume Structure. I've attempted repairing it once already, which after all night appeared to be frozen near the end.
    I set it to repair again, before leaving for work and will check again when I get home..
    I only wiped with all zeros though, after having the trouble simply upgrading from 10.4.4 to 10.4.5. I 'thought' (stupid me?) that wiping all zeros would make it nice and clean again.
    Disk Utility says it's fine though. I'm amazed.

  • "Unable to setup Inventory, you may not have proper Permissions."

    Has anyone had this problem when the GROUP NAME screen appears. After I type the groupname "oinstall", a window opens and states the following:
    "Unable to setup Inventory, you may not have proper Permissions."
    What is puzzling is that it (Oracle Universal Installer) is able create the directory structure /d01/app/oracle/oraInventory/Install.Platform. Which implies that it has the proper permissions. I'm not sure what to do at this point. Well, there isn't much I can do.
    Does anyone have an answer to this problem or have seen this before?
    Thanks

    Check the list of prerequisites in the installation manual and be sure you have all of them. Also the manual or couple page addendum that comes with it should refer to an online site where you can find updates. Be sure to check it.
    I ran the 9.2.0 install and applied 9.2.0.4 on AIX 5.2L without a hitch so I do not think I could be of much help. But one thing you might want to consider is if Oracle says that a piece of the OS is missing then even if you are running the machine standalone you might need the "group" piece to be installed as part of the OS.
    I am not an administrator so the name did not strike any bells but I once tried to install Oracle on a Silicon Graphics box only to discover that it was missing the C compiler. Oracle needs the archive feature to access libraries during the install (link) and failed to install because it was missing. Once I got it installed the reinstallation went perfect.
    HTH -- Mark D Powell --

  • How do I create an archive system for a blog created with a custom app?

    I had to create a blog using a custom app, because I needed an image to show up in the list view (a feature I can't believe does not exist in the blog module). Anyways, I am wondering how can I create an archive system? Do I need to create categories for each month/year and then classify the post each time we create one. Then manually create links each month to pages that filters listing by that category? This is the system I tried, but I was wondering if there was a better way.
    Also, I would like to have a sidebar that shows all the authors/contributors of the blogs and have a count under their photo that shows how many blogs they have contributed to, and have this update dynamically each time they create a new post. I was wondering if a data source tag is the way to do this but I don't have enough information on how the data source tag even works, to really know how to do this.
    I have searched google for hours, and even signed up for BC gurus tutorials with no real luck. I thought BC gurus was going to have the answer but it wasn't quite detailed enough. Any help would be much appreciated. Thanks!

    You can use classifications but there is no auto feature to archive like that on web apps.
    In terms of the blog, Like I have said to everyone that has posted about blog preview images:
    http://www.prettypollution.com.au/business-catalyst-blog
    Just one example of an image at the start of the blog post rendering out, not hard at all.

  • Cisco LMS 4.1 Installation on Windows Server 2008 R2, Databases not created

    Hi There,
    As always, I am trying to install LMS 4.1 on windows server 2008 R2 and after the installation and login to the LMS I find the following:
    DCRServer is down or may not be completely up. Check if the DCRServer process is running.
    And after some troubleshooting I found that the LMS is not creating the CMF database and the other databases. Attached is the installation log file, if someone could help me with it would be appreciated. Please note the following:
    1. I have downloaded the installation file from Cisco website twice, so I do not think it is the file that is corrupted, also it is only evaluation license.
    2. I have met all the prerequisites and requirement as in the documentation guides, but maybe there is something still wrong.
    Thanks,

    Also Here is more info output:
    C:\Program Files (x86)\CSCOpx>pdshow -brief
      Process               State                                     Pid
      Tomcat                Program started - No mgt msgs received    1572
      TomcatMonitor         Running normally                          2236
      Apache                Program started - No mgt msgs received    2436
      DataPurge             Administrator has shut down this server   0
      DCRServer             Failed to run                             0
      CMFOGSServer          Administrator has shut down this server   0
      EssentialsDM          Administrator has shut down this server   0
      ConfigMgmtServer      Never started                             0
      ConfigUtilityService  Never started                             0
      CTMJrmServer          Administrator has shut down this server   0
      ChangeAudit           Never started                             0
      SyslogAnalyzer        Program started - No mgt msgs received    2976
      ICServer              Running normally                          5096
      EnergyWise            Never started                             0
      PMCOGSServer          Administrator has shut down this server   0
      IPMOGSServer          Administrator has shut down this server   0
      IPMProcess            Never started                             0
      TISServer             Program started - No mgt msgs received    2544
      DFMOGSServer          Program started - No mgt msgs received    876
      InventoryCollector    Running normally                          3052
      Interactor            Program started - No mgt msgs received    5136
      InventoryCollector1   Program started - No mgt msgs received    5144
      Interactor1           Program started - No mgt msgs received    5308
      PTMServer             Program started - No mgt msgs received    5320
      UPMProcess            Never started                             0
      TISDiscoveryJobCreate Administrator has shut down this server   0
      SyslogCollector       Running normally                          5340
      Proxy                 Program started - No mgt msgs received    5348
      PMServer              Running normally                          5360
      NameServer            Program started - No mgt msgs received    5680
      NameServiceMonitor    Running normally                          5876
      LicenseServer         Program started - No mgt msgs received    5884
      FHPurgeTask           Never started                             0
      EventFramework        Program started - No mgt msgs received    5892
      EPMServer             Program started - No mgt msgs received    5904
      FHServer              Administrator has shut down this server   0
      NOSServer             Program started - No mgt msgs received    5580
      diskWatcher           Running normally                          5640
      DFMMultiProcLogger    Program started - No mgt msgs received    5864
      DFMLogServer          Program started - No mgt msgs received    4896
      DFMCTMStartup         Administrator has shut down this server   0
      DfmBroker             Running normally                          6104
      DfmServer             Running normally                          6416
      DfmServer1            Running normally                          6424
      DCRDevicePoll         Never started                             0
      CSRegistryServer      Running normally                          6432
      CSDiscovery           Never started                             0
      AdapterServer1        Program started - No mgt msgs received    6440
      AdapterServer         Program started - No mgt msgs received    6448
    C:\Program Files (x86)\CSCOpx>pdshow DCRServer
            Process= DCRServer
            State  = Failed to run
            Pid    = 0
            RC     = -3
            Signo  = 1073741821
            Start  = N/A
            Stop   = 07/02/2012 17:39:06
            Core   = Not applicable
            Info   = Application failed or was registered incorrectly.
    C:\Program Files (x86)\CSCOpx>net stop crmdmgtd
    The Cisco Prime Daemon Manager service is stopping..........................................
    The Cisco Prime Daemon Manager service was stopped successfully.
    C:\Program Files (x86)\CSCOpx>bin\perl.exe objects\db\conf\configureDb.pl action=validate dsn=cmf
    INFO: C:\PROGRA~2\CSCOpx/objects/db/conf/ConfigureDB.LOCK locked for the operation...
    ERROR: [StandardDbUpgrade] : Database cmf is not installed.
    INFO: C:\PROGRA~2\CSCOpx/objects/db/conf/ConfigureDB.LOCK released for the future operations...
    C:\Program Files (x86)\CSCOpx>bin\perl.exe bin\dbpasswd.pl all
    ERROR: There is no database available to change password.
    C:\Program Files (x86)\CSCOpx>bin\perl.exe bin\dbRestoreOrig.pl dsn=cmf dmprefix=Cmf npwd=pwd
    'cmf' is not a valid data source for the product.

  • Text Entry Captions not created

    Using Adobe Captivate 5.0 - Training mode is not creating the Text Captions for Text Entry Boxes, even though selected in the Training/Recording settings. Creates Text Entry box, but no Text Caption. Really want this to work when recording SAP simulations, but doesn't even seem to work when recording internet browser or MS Oulook either. Any ideas?  Thanks.

    Hello again
    Perhaps it will help if I simply describe how Captivate usually works. There are several ways to record. There is "Full Motion" (FMR) where everything is recorded just like a movie. Not the best way of working bit is possible. In FMR no captions or anything of the sort is added during the recording process, but you may add them later if you like.
    Then there is the "slide by slide" capture mode. Each click of the mouse generally results in a screen capture. But this mode of capturing has four variations.
    * Demonstration
    * Training Simulation
    * Assessment Simulation
    * Custom
    Demonstration mode provides text captions for activity. Click this or that. Also, highlight boxes are added along with tracking mouse movement.
    Both of the simulation modes will ignore text captions, mouse tracking and highlight boxes. Instead, these modes simply add Click Boxes and Text Entry Boxes to allow "simulation" or interacting with the Captivate. These objects offer "Feedback" captions to indicate Correct or Incorrect actions.
    From what you have described, you want to enable "Custom" recording mode where you choose the mix of elements you get.
    However, NONE of these modes will analyze what is happening and describe it to the user. Instead, they may or may not recognize what you are clicking on in order to create captions. You might see funky names like "Click the TechnicalNameForControl" control.
    Does this help any?
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How do I create an Archive Mailbox for a pop3 account on an iPhone4?

    How do  create an Archive Mailbox for a pop3 email account on an iPhone4 running iOs6?

    You can use classifications but there is no auto feature to archive like that on web apps.
    In terms of the blog, Like I have said to everyone that has posted about blog preview images:
    http://www.prettypollution.com.au/business-catalyst-blog
    Just one example of an image at the start of the blog post rendering out, not hard at all.

  • Database is not created in SQL server for Persistant Chat

    Hi All,
    We were deploying the Persistant Chat Lync 2013 Role. We have created the topology and published it. Then the Lync 2013 deployment is done on the Persistant Chat servers, while upgrading the cumulative servers soon after the deployment we are getting the
    error as :
    Test-CsDatabase : Cannot open database "mgc" requested by the login. The login
    failed.
    Login failed for user 'domain\username'.
    At line:1 char:1
    + Test-CsDatabase -ConfiguredDatabases -SqlServerFqdn
    SQL Server ...
    Get-MirrorState also was not giving the proper result. Then when I checked in the SQL server, we found that both mgc and mgccomp databases itself not created.
    Could someone assist how we can install the database now?? I googled but confused a bit. Servers are already LYNC deployed, so which command and procedure we need to follow to install the DB on SQL servers and also in mirror server.
    Never giveup till you get what to want.

    Please share Test-CsDatabase -verbose 
    And Get-MirrorState
    in details
    PLEASE REMEMBER, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answered"

  • Inspection lot not created on GR for production order

    I want to create an inspection lot upon receipt from production. Task list is set up. Inspection type 04 is assigned in material master. But when I do the goods receipt for a production order, inspection lot is not created. In the quantity tab of material document, I see that the staus GR doc is 7(Inspection lot is created at inbound delivery). I don't know where it is coming from.
    Please help.

    I'm not sure what you mean by creating lot after receiving.
    When you do a GR from production the proper inspection type is the 04 inspection type.  Not 05.  This is pretty standard SAP functionality.
    Check the material movements for 101 (I assume you're using a 101 GR material movement), and make sure in config no one has deactivated QM for the material movement.
    Then, make sure you start with a freash production order. Don't copy from a previous one.
    FF

  • ORA-01180: can not create datafile 1 during RMAN restore.

    Hello,
    I am trying to refresh one of our QA environments and I am getting this error message:
    RMAN> run
    2> {
    3> allocate channel c1 device type disk;
    4> allocate channel c2 device type disk;
    5> restore database;
    6> recover database;
    7> }
    allocated channel: c1
    channel c1: SID=5 device type=DISK
    allocated channel: c2
    channel c2: SID=131 device type=DISK
    Starting restore at 08-NOV-12
    using channel ORA_DISK_1
    creating datafile file number=1 name=+DATA1/alephpr/datafile/system.269.722874729
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/08/2012 16:27:40
    ORA-01180: can not create datafile 1
    ORA-01110: data file 1: '+DATA1/alephpr/datafile/system.269.722874729' I created a new database from scratch with the same name as is in Production, later on I will proceed to rename it to the right one. I started the steps for refreshing the PRD copy:
    RMAN> shutdown immediate
    using target database control file instead of recovery catalog
    database dismounted
    Oracle instance shut down
    RMAN> startup nomount
    connected to target database (not started)
    Oracle instance started
    Total System Global Area 534462464 bytes
    Fixed Size 2228200 bytes
    Variable Size 176160792 bytes
    Database Buffers 348127232 bytes
    Redo Buffers 7946240 bytes
    RMAN> set dbid=3573460394
    executing command: SET DBID
    RMAN> restore controlfile from '/restorealeph/c-3573460394-20121106-01';
    Starting restore at 08-NOV-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=130 device type=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
    +output file name=+DATA1/alephpr/controlfile/current.260.798747585+
    +output file name=+FLASH/alephpr/controlfile/current.276.798747585+
    Finished restore at 08-NOV-12
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1Once the control file is restored, I need to crosscheck, delete expired and catalog the backups at the new server:
    RMAN> crosscheck backup;
    Crosschecked 48 objects
    RMAN> delete noprompt expired backup;
    Deleted 48 EXPIRED objects
    RMAN> list backup summary;
    specification does not match any backup in the repositoryI need now to catalog the backups we transferred from Prod into the QA server's directory /restorealeph:
    RMAN> catalog start with '/restorealeph/';
    searching for all files that match the pattern /restorealeph/
    List of Files Unknown to the Database
    =====================================
    File Name: /restorealeph/9cnpm51u_1_1
    File Name: /restorealeph/9enpm6lj_1_1
    File Name: /restorealeph/c-3573460394-20121107-00
    File Name: /restorealeph/c-3573460394-20121107-01
    File Name: /restorealeph/c-3573460394-20121106-01
    Do you really want to catalog the above files (enter YES or NO)? YES
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /restorealeph/9cnpm51u_1_1
    File Name: /restorealeph/9enpm6lj_1_1
    File Name: /restorealeph/c-3573460394-20121107-00
    File Name: /restorealeph/c-3573460394-20121107-01
    File Name: /restorealeph/c-3573460394-20121106-01
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    4097    B  F  A DISK        07-NOV-12       1       1       NO         BACKUP_ALEPHPR.TUR_110712030000
    4098    B  A  A DISK        07-NOV-12       1       1       NO         BACKUP_ALEPHPR.TUR_110712030000
    RMAN> list backup tag="BACKUP_ALEPHPR.TUR_110712030000";
    List of Backup Sets
    ===================
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    4097    Full    178.04G    DISK        00:00:00     07-NOV-12
            BP Key: 4097   Status: AVAILABLE  Compressed: NO  Tag: BACKUP_ALEPHPR.TUR_110712030000
            Piece Name: /restorealeph/9cnpm51u_1_1
      List of Datafiles in backup set 4097
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/system.269.722874729
      2       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/sysaux.266.722874731
      3       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs1.289.722874727
      4       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs2.257.722874727
      5       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/users.298.722874731
      6       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/audit.299.723372305
      7       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/case_datos.260.723372307
      8       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/case_indices.261.723372307
      9       Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_hist.262.723372309
      10      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_l.264.723372319
      11      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_long.265.723372349
      12      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_md.270.723372355
      13      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_sm.271.723372369
      14      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_xl.272.723372375
      15      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_l.273.723372401
      16      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_md.274.723372427
      17      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_sm.275.723372455
      18      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/index_xl.276.723372473
      19      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/tools.278.723372501
      26      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/data_sm.300.736088959
      27      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/dev_disco_ptm5_meta.301.746385117
      28      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/dev_disco_pstore.302.746385119
      29      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/dev_disco_ptm5_cache.304.746385121
      30      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs1.305.796391931
      31      Full 6919879655786 07-NOV-12 +DATA1/alephpr/datafile/undotbs2.306.796392185
    BS Key  Size       Device Type Elapsed Time Completion Time
    4098    16.89G     DISK        00:00:00     07-NOV-12
            BP Key: 4098   Status: AVAILABLE  Compressed: NO  Tag: BACKUP_ALEPHPR.TUR_110712030000
            Piece Name: /restorealeph/9enpm6lj_1_1
      List of Archived Logs in backup set 4098
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      1    35722   6919870864350 06-NOV-12 6919871887697 06-NOV-12
      1    35723   6919871887697 06-NOV-12 6919872372211 06-NOV-12
      1    35724   6919872372211 06-NOV-12 6919872410158 06-NOV-12
      1    35725   6919872410158 06-NOV-12 6919872447301 06-NOV-12
      1    35726   6919872447301 06-NOV-12 6919872503332 06-NOV-12
      1    35727   6919872503332 06-NOV-12 6919872551564 06-NOV-12
      1    35728   6919872551564 06-NOV-12 6919872603881 06-NOV-12
      1    35729   6919872603881 06-NOV-12 6919872655942 06-NOV-12
      1    35730   6919872655942 06-NOV-12 6919872698722 06-NOV-12
      1    35731   6919872698722 06-NOV-12 6919872741655 06-NOV-12
      1    35732   6919872741655 06-NOV-12 6919872782284 06-NOV-12
      1    35733   6919872782284 06-NOV-12 6919872872302 06-NOV-12
      1    35734   6919872872302 06-NOV-12 6919872910206 06-NOV-12
      1    35735   6919872910206 06-NOV-12 6919872945577 06-NOV-12
      1    35736   6919872945577 06-NOV-12 6919872980056 06-NOV-12
      1    35737   6919872980056 06-NOV-12 6919873013411 06-NOV-12
      1    35738   6919873013411 06-NOV-12 6919873050761 06-NOV-12
      1    35739   6919873050761 06-NOV-12 6919873084996 06-NOV-12
      1    35740   6919873084996 06-NOV-12 6919873122049 06-NOV-12
      1    35741   6919873122049 06-NOV-12 6919873521767 06-NOV-12
      1    35742   6919873521767 06-NOV-12 6919873952773 06-NOV-12
      1    35743   6919873952773 06-NOV-12 6919874258549 06-NOV-12
      1    35744   6919874258549 06-NOV-12 6919874472213 06-NOV-12
      1    35745   6919874472213 06-NOV-12 6919874744856 06-NOV-12
      1    35746   6919874744856 06-NOV-12 6919875113086 06-NOV-12
      1    35747   6919875113086 06-NOV-12 6919875733337 06-NOV-12
      1    35748   6919875733337 06-NOV-12 6919876139061 06-NOV-12
      1    35749   6919876139061 06-NOV-12 6919876707162 06-NOV-12
      1    35750   6919876707162 06-NOV-12 6919877706313 06-NOV-12
      1    35751   6919877706313 06-NOV-12 6919877919039 06-NOV-12
      1    35752   6919877919039 06-NOV-12 6919878024429 06-NOV-12
      1    35753   6919878024429 06-NOV-12 6919878107673 06-NOV-12
      1    35754   6919878107673 06-NOV-12 6919878258511 06-NOV-12
      1    35755   6919878258511 06-NOV-12 6919878308336 06-NOV-12
      1    35756   6919878308336 06-NOV-12 6919878424419 06-NOV-12
      1    35757   6919878424419 06-NOV-12 6919878488485 06-NOV-12
      1    35758   6919878488485 06-NOV-12 6919878827092 06-NOV-12
      1    35759   6919878827092 06-NOV-12 6919879350098 07-NOV-12
      1    35760   6919879350098 07-NOV-12 6919879675556 07-NOV-12
      2    35949   6919870864360 06-NOV-12 6919871494640 06-NOV-12
      2    35950   6919871494640 06-NOV-12 6919871887487 06-NOV-12
      2    35951   6919871887487 06-NOV-12 6919872410655 06-NOV-12
      2    35952   6919872410655 06-NOV-12 6919872552468 06-NOV-12
      2    35953   6919872552468 06-NOV-12 6919872698940 06-NOV-12
      2    35954   6919872698940 06-NOV-12 6919872872690 06-NOV-12
      2    35955   6919872872690 06-NOV-12 6919872980371 06-NOV-12
      2    35956   6919872980371 06-NOV-12 6919873085902 06-NOV-12
      2    35957   6919873085902 06-NOV-12 6919873569082 06-NOV-12
      2    35958   6919873569082 06-NOV-12 6919873949096 06-NOV-12
      2    35959   6919873949096 06-NOV-12 6919874404640 06-NOV-12
      2    35960   6919874404640 06-NOV-12 6919875011814 06-NOV-12
      2    35961   6919875011814 06-NOV-12 6919875631429 06-NOV-12
      2    35962   6919875631429 06-NOV-12 6919876324885 06-NOV-12
      2    35963   6919876324885 06-NOV-12 6919876363526 06-NOV-12
      2    35964   6919876363526 06-NOV-12 6919876748508 06-NOV-12
      2    35965   6919876748508 06-NOV-12 6919877741784 06-NOV-12
      2    35966   6919877741784 06-NOV-12 6919878108943 06-NOV-12
      2    35967   6919878108943 06-NOV-12 6919878424477 06-NOV-12
      2    35968   6919878424477 06-NOV-12 6919879012111 06-NOV-12
      2    35969   6919879012111 06-NOV-12 6919879260589 07-NOV-12
      2    35970   6919879260589 07-NOV-12 6919879350086 07-NOV-12
      2    35971   6919879350086 07-NOV-12 6919879464935 07-NOV-12
      2    35972   6919879464935 07-NOV-12 6919879548399 07-NOV-12
      2    35973   6919879548399 07-NOV-12 6919879675564 07-NOV-12
    RMAN> list incarnation;
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    1       1       ALEPHPR  3573460394       PARENT  1          13-MAY-10
    2       2       ALEPHPR  3573460394       PARENT  2229467    28-JUN-10
    3       3       ALEPHPR  3573460394       CURRENT 6918261828355 26-SEP-12The ASM structure is created...
    ASMCMD> lsdg
    State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
    MOUNTED EXTERN N 512 4096 1048576 509282 507421 0 507421 0 N DATA1/
    MOUNTED EXTERN N 512 4096 1048576 50641 42850 0 42850 0 N FLASH/
    ASMCMD> cd DATA1/ALEPHPR/DATAFILE
    ASMCMD> pwd
    +DATA1/ALEPHPR/DATAFILEBoth source and target databases are 11.2.0.2 PSU 6 running on Linux x64. I cannot use RMAN Duplicate since there is no visibility among different environments (PROD - QA in this case).
    Any idea?
    Thanks
    Martin
    Edited by: martin.morono on Nov 8, 2012 11:19 AM
    Edited by: martin.morono on Nov 8, 2012 11:49 AM

    Thanks Levi,
    I slightly modified your script to recatalog the backup pieces since they are note stored at the same location in PR and QA.
    No luck. The error message is different but the result is the same... it keeps failing.
    RMAN> run {
    2> allocate channel c1 device type disk;
    3> allocate channel c2 device type disk;
    4> restore controlfile from '/restorealeph/c-3573460394-20121107-01';
    5> startup mount;
    6> catalog start with '/restorealeph/';
    7> restore database from tag 'BACKUP_ALEPHPR.TUR_110712030000';
    8> }
    allocated channel: c1
    channel c1: SID=191 device type=DISK
    allocated channel: c2
    channel c2: SID=131 device type=DISK
    Starting restore at 09 NOV 2012 13:11:09
    channel c2: skipped, AUTOBACKUP already found
    channel c1: restoring control file
    channel c1: restore complete, elapsed time: 00:00:15
    output file name=+DATA1/alephpr/controlfile/current.260.798747585
    output file name=+FLASH/alephpr/controlfile/current.276.798747585
    Finished restore at 09 NOV 2012 13:11:24
    database is already started
    database mounted
    Starting implicit crosscheck backup at 09 NOV 2012 13:11:31
    Crosschecked 52 objects
    Finished implicit crosscheck backup at 09 NOV 2012 13:11:39
    Starting implicit crosscheck copy at 09 NOV 2012 13:11:39
    Crosschecked 2 objects
    Finished implicit crosscheck copy at 09 NOV 2012 13:11:40
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_2_seq_1.279.795017193
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_2_seq_34950.273.795014469
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_1.281.795017413
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_2.283.795017519
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_3.290.795018411
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_4.291.795018559
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_5.292.795018707
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_6.293.795018811
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_7.294.795018899
    File Name: +flash/ALEPHPR/ARCHIVELOG/2012_09_26/thread_1_seq_8.295.795020509
    File Name: +flash/ALEPHPR/CONTROLFILE/Current.268.798725123
    searching for all files that match the pattern /restorealeph/
    List of Files Unknown to the Database
    =====================================
    File Name: /restorealeph/9cnpm51u_1_1
    File Name: /restorealeph/9enpm6lj_1_1
    File Name: /restorealeph/c-3573460394-20121107-00
    File Name: /restorealeph/c-3573460394-20121107-01
    File Name: /restorealeph/c-3573460394-20121106-01
    Do you really want to catalog the above files (enter YES or NO)? YEs
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /restorealeph/9cnpm51u_1_1
    File Name: /restorealeph/9enpm6lj_1_1
    File Name: /restorealeph/c-3573460394-20121107-00
    File Name: /restorealeph/c-3573460394-20121107-01
    File Name: /restorealeph/c-3573460394-20121106-01
    Starting restore at 09 NOV 2012 13:11:48
    released channel: c1
    released channel: c2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/09/2012 13:11:48
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 31 found to restore
    RMAN-06023: no backup or copy of datafile 30 found to restore
    RMAN-06023: no backup or copy of datafile 29 found to restore
    RMAN-06023: no backup or copy of datafile 28 found to restore
    RMAN-06023: no backup or copy of datafile 27 found to restore
    RMAN-06023: no backup or copy of datafile 26 found to restore
    RMAN-06023: no backup or copy of datafile 19 found to restore
    RMAN-06023: no backup or copy of datafile 18 found to restore
    RMAN-06023: no backup or copy of datafile 17 found to restore
    RMAN-06023: no backup or copy of datafile 16 found to restore
    RMAN-06023: no backup or copy of datafile 15 found to restore
    RMAN-06023: no backup or copy of datafile 14 found to restore
    RMAN-06023: no backup or copy of datafile 13 found to restore
    RMAN-06023: no backup or copy of datafile 12 found to restore
    RMAN-06023: no backup or copy of datafile 11 found to restore
    RMAN-06023: no backup or copy of datafile 10 found to restore
    RMAN-06023: no backup or copy of datafile 9 found to restore
    RMAN-06023: no backup or copy of datafile 8 found to restore
    RMAN-06023: no backup or copy of datafile 7 found to restore
    RMAN-06023: no backup or copy of datafile 6 found to restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    RMAN>Just in case, I re-run this script including the crosscheck backup and the delete noprompt expired backups before restoring an the error messages were the same.
    THanks again for your help.
    Regards.
    Martin
    Edited by: martin.morono on Nov 9, 2012 7:21 AM

Maybe you are looking for