Create the second copy, delete and the first copy serial (Archive Deletion)

Hi Experts,
I am new to DB2 and i want to enable "-cds" Option (Create the second copy, delete and the first copy serial) while performing online backups. Though this option is available in "Oracle" and we can schedule the same in DB13 itself.
If you can please guide to enable this feature in DB2 via DB13 ?
Regards,
JAI

Hello JAI,
which tool you´re using to create the online backups?
The command to prune could be as followed:
db2 prune history  and delete
It will be helpful if you monitor your db2diag.log during this to see whats happened.
Regards
Olaf

Similar Messages

  • HT204053 My new HK iPhone will not download apps purchased in U.S. and says I need an HK Apple ID.  This creates a second Apple ID and I am concerned that I will have to pay twice for the same app.

    My new HK iPhone will not download apps purchased in U.S. and says I need an HK Apple ID.  This creates a second Apple ID and I am concerned that I will have to pay twice for the same app.

    Apps previously purchased will continue to operate wherever you are.    However; you'll not be able to update them other than by using the original purchase details.   What this means is that you can only 'purchase' from a country's store if you have a valid credit card and residence of and in that country.

  • Does iphoto create a second copy during import?

    If I upload photos from my SDHC card into a directory that I designate, and then import them into iPhoto, does iPhoto create a second copy of the image file?
    MJT

    Most Simple Back Up
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex:
    Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically. Examples of such apps: Chronosync or DejaVu . But are many others. Search on MacUpdate
    If you're using a Managed Library then this backs up everything: Photos, metadata, edits, books, slideshows and all.
    If you want to just back up the Photos then File -> Export is the way to go.
    Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.
    There is never a need to go into the Library package.
    Regards
    TD

  • Creating the first planning app in 9.2.1

    I've created PLANAPP1 in planning desktop, and regenerated the properties file.
    This is the first planning application I've created using 9.2.1
    Using the planning web page I can not login. I get an error message.
    Can someone tell me how shared services would know about a new planning application that I've created in desktop?
    I think I'm missing a fundamental concept here..
    Please help.
    Ed

    Duplicate Post

  • Creating XML from XSD, Only create The First Element

    Hi,
    I create a XML File from a xsd schema by this way:
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setNamespaceAware(true);
              factory.setValidating(true);
                   factory.setAttribute(JAXP_SCHEMA_LANGUAGE,W3C_XML_SCHEMA);
                   factory.setAttribute(JAXP_SCHEMA_SOURCE, new File(MY_SCHEMA));   
                    DocumentBuilder documentBuilder =factory.newDocumentBuilder();
              documentBuilder.setErrorHandler(new SimpleDOMHandler());
              Document parse = documentBuilder.parse(new File(MY_XML));The first lines of the schema:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
         targetNamespace="http://gencat.net/scsp/esquemes/peticion"
         elementFormDefault="qualified" attributeFormDefault="unqualified"
         id="Peticio" xmlns:p="http://gencat.net/scsp/esquemes/peticion">
         <xs:element name="Apellido1">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:maxLength value="40" />
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="Apellido2">
            .............................The problem is that the created document only have the first element "Apellido1". I dont know if it is a wrong xsd, or i'm using a bad way to do it.
    Thanks a lot, and apologize for my english

    Hi,
    Is it possible to create and populate XML from an XSD
    without knowing what the XSD elements are beforehand
    (all the examples appear to know what the input XSD
    will be, and therefore know what the set and get
    methods should be called)? I think it is possible--you would have to recompile each time (unless you can dynamically recompile, which would be neat), but using the classes getMethod() function, you can list all the methods. You would then have to do some tricky logic to determine which of the getMethods you want (for example NOT getClass()), and you can basically call them in sequence. You also need to worry about handling lists & recursively call xxxType classes.
    I'm experimenting with this, and it can get a little frustrating because there are a lot of odd cases to handle (for example, while setting the elements of a list, you need to actually get the list & add elements to it), but I think it's possible.
    >
    Can a user browse for an xsd to input, and the java
    will dynamically create the get methods, and be able
    to create instances and populate variables before
    converting to XML?
    What I'm puzzled about is where you'd get the data to populate the variables? Perhaps a database, or a bean? If you just want to make a test xml file, then it doesn't matter, but with real data, I think you'd still have to change how you actually get the variables you want to populate the xml file with, right? In other words, if your schema changed, the parameters you're passing to the set methods would change as well.
    Maybe we'll see some more packages in the future to make this task easier.

  • Failed Creating the First Workspace in the Repository on Linux

    Hello,
    I have two machines with Oracle Linux 5:
    Machine 1 --> Oracle Linux 5 (64 bits) + Oracle DB 11g R2 + OBI 11g R1
    Machine 2 --> Oracle Linux 5 (32 bits) + I would like to have here OWB 11g
    To install OWB in the machine 2 to have access to ODB in the other machine I have followed:
    http://download.oracle.com/docs/cd/E11882_01/owb.112/e17130.pdf --> Chapter 4: Configuring Oracle Warehouse Builder for Linux (I have done these steps over Machine 1):
    @/u01/app/oracle/product/11.2.0/dbhome_1/owb/UnifiedRepos/cat_owb.sql USERS
    @/u01/app/oracle/product/11.2.0/dbhome_1/owb/UnifiedRepos/reset_owbcc_home.sql
    /u01/app/oracle/product/11.2.0/dbhome_1/owb
    alter user owbsys identified by owbsys account unlock;
    alter user owbsys_audit identified by owbsys_audit account unlock;
    @/u01/app/oracle/product/11.2.0/dbhome_1/owb/UnifiedRepos/remote_owb_install.sql /u01/OWB_Remote
    Over Machine 2 I have tried to create the repository (after I've installed Oracle Client and validate that I can communicate with the DB in Machine 1):
    /reposinst.sh
    When is doing the creation over 50%, I have the following error:
    java.sql.SQLEXception: ORA-06576 : it is not a valid function or procedure name
    I am looking for a solution over two days ago, and I am desesperate with this issue.
    Any idea is welcome!!
    Thank you and regards,
    Mónica

    Can you also advise if these are complicated workflows or high traffic lists?
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Custom pipeline component creates the folder name to archive messages

    Hi 
    I have an requirement that a BizTalk application is receiving untyped messages and at the receive location the pipeline have to archive the incoming message with the specifications:
    suppose I have an xml like
          <PurchaseOrder>
            <OrderId>1001</OrderId>
            <OrderSource>XYZ</OrderSource>
            <Code>O01</Code>
          </PartyType>
    In the pipeline component it has to read this xml and have to use OrderSource value 'XYZ' to create a archival folder and the message have to archive with file name '%MessageId%'
    It has to be done by writing custom pipeline component where I am not familiar with c# coding, Can anyone please how to implement mechanism.
    Thanks In Advance
    Regards
    Arun
    ArunReddy

    Hi Arun,
    Use
    BizTalk Server Pipeline Component Wizard to create a decode pipeline component for receive. Install this wizard. This shall help you to create the template project for your pipeline component stage.
    Use the following code in the Execute method of the pipeline component code. This code archives the file based with name of the file name received.
    public Microsoft.BizTalk.Message.Interop.IBaseMessage Execute(Microsoft.BizTalk.Component.Interop.IPipelineContext pc, Microsoft.BizTalk.Message.Interop.IBaseMessage inmsg)
    MemoryStream tmpStream = new MemoryStream();
    try
    string strReceivedFilename = null;
    DateTime d = DateTime.Now;
    try
    //Get the file name
    strReceivedFilename = inmsg.Context.Read("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties").ToString();
    if (strReceivedFilename.Contains("\\"))
    strReceivedFilename = strReceivedFilename.Substring(strReceivedFilename.LastIndexOf("\\") + 1, strReceivedFilename.Length - strReceivedFilename.LastIndexOf("\\") - 1);
    catch
    strReceivedFilename = System.Guid.NewGuid().ToString();
    originalStream = inmsg.BodyPart.GetOriginalDataStream();
    int readCount;
    byte[] buffer = new byte[1024];
    // Copy the entire stream into a tmpStream, so that it can be seakable.
    while ((readCount = originalStream.Read(buffer, 0, 1024)) > 0)
    tmpStream.Write(buffer, 0, readCount);
    tmpStream.Seek(0, SeekOrigin.Begin);
    //ToDo for you..
    //Access the receive message content using standard XPathReader to access values of OrderSource and construct file pathAccess the receive message content using standard XPathReader to acceess values of OrderSource and contruct the file path
    string strFilePath = //Hold the value of the file path with the value of OrderSource
    string strCurrentTime = d.ToString("HH_mm_ss.ffffff");
    strFilePath += "\\" + strReceivedFilename + "_";
    FileStream fileStream = null;
    try
    System.Threading.Thread.Sleep(1);
    fileStream = new FileStream(strFilePath + strCurrentTime + ".dat", FileMode.CreateNew);
    catch (System.IO.IOException e)
    // Handle the exception, it must be 'File already exists error'
    // Wait for 10ms, change the file name and try creating the file again
    // If the second 'file create' also fails, it must be a genuine error, it'll be thrown to BTS engine
    System.Threading.Thread.Sleep(10);
    strCurrentTime = d.ToString("HH_mm_ss.ffffff"); // get current time again
    string dtcurrentTime = DateTime.Now.ToString("yyyy-MM-ddHH_mm_ss.ffffff");
    fileStream = new FileStream(strFilePath + strCurrentTime + ".dat", FileMode.CreateNew);
    while ((readCount = tmpStream.Read(buffer, 0, 1024)) > 0)
    fileStream.Write(buffer, 0, readCount);
    if (fileStream != null)
    fileStream.Close();
    fileStream.Dispose();
    if (originalStream.CanSeek)
    originalStream.Seek(0, SeekOrigin.Begin);
    else
    ReadOnlySeekableStream seekableStream = new ReadOnlySeekableStream(originalStream);
    seekableStream.Position = 0;
    inmsg.BodyPart.Data = seekableStream;
    tmpStream.Dispose();
    catch (Exception ex)
    System.Diagnostics.EventLog.WriteEntry("Archive Pipeline Error", string.Format("MessageArchiver failed: {0}", ex.Message));
    finally
    if (tmpStream != null)
    tmpStream.Flush();
    tmpStream.Close();
    if (originalStream.CanSeek)
    originalStream.Seek(0, SeekOrigin.Begin);
    return inmsg;
    In the above code, you have do a section of code which will access the receive message content using standard XPathReader to access values of OrderSource and construct the file path. I have
    commented the place where you have to do the same. You can read the XPathReader about here..http://blogs.msdn.com/b/momalek/archive/2011/12/21/streamed-xpath-extraction-using-hidden-biztalk-class-xpathreader.aspx
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Can I create a second Apple ID and share content between the two?

    We have an Apple ID that's used by the whole family to buy music etc from iTunes, but we also have 3 separate Apple devices, two iPhones and an iPad. Hence, ideally we would have 3 separate ID's that could all use the content currently on the family one. Is anything like this possible? Many thanks in advance.

    Well yes, but if you want to update those apps, you'd need to sign in under your old Apple ID to update them. It's really best to just stick to one Apple ID, or you'll run into association complications down the road.

  • Acrobat 8 Professional can't find the scanning device when creating the second page of the PDF file

    Hey guys, this is my first post here, so please excuse me if there is anything I need to know.
    I am a Mac User and I have the whole CS3 suit installed.
    Everything works just great except there is this little thing bugs me around.
    When I try to use Acrobat Professional 8.0 to create a PDF file through my scanner, (samsung SCX-4725FN, it's scan/print/fax combined) I wouldn't be able to continue to scan to the second page. To be more specific, I have no problem to scan and create the first page of the PDF file, when it asks me if I want to scan and create another page, when I confirmed it, I wouldn't be able to see the scanner in the "Acrobat Scan" window. The "scan" botton stay faded, therefore I can't continue. If I click "cancel" and try to create another PDF file from the scanner, the smae problem will show up again. The only way that I can continue to scan is to quit the program from the menu bar and restart it, then I can start to create the next '1st page only' PDF file from the scanner. I had to do this rapidly to get all the pages scanned first, and then combine them to get my work done. This is a pain in the butt. I have downloaded the most updated scanner driver, and patched Acrobat to version 8.1.2 , but the problem still exist. I have tested the scanner with PS CS3, the scanner works just fine. So I assume there is a glitch here with the software. Can anyone help me please?

    I am not very clear at which step you are facing issue. Below is the sequence in order to scan more pages from Acrobat:
    1. Launch Acrobat. Click menu File->Create PDF->From Scanner....
    2. "Acrobat Scan" dialog will appear. Select your scanner installed in Scanner dropdown. Check 'Prompt for scanning more pages' checkbox as you want to scan more than one page. Click Scan button in "Acrobat Scan" dialog.
    3. Now scanner UI will appear. Make setting like color mode/resolution and click Scan button(or may be Accept button) in this dialog. (This is scanner specific ui)
    4. After this scanning will happen and "Acrobat Scan" dialog will appear with "Scan is Complete" and "Scan more pages" option.
    5. Select "Scan more pages" option and click OK in this dialog to scan more pages.
    6. Now again scanner UI will appear as in step 3 above. Make your settings and proceed.
    Do you see scanner UI or "Acrobat Scan" dialog in step6? Are you not able to click Scan(or Accept) button in scanner UI?

  • Is it possible to change the first page of a web application that was built using the UI?

    Hello Community
        Using Sharepoint 2010 Server and the UI I built and application and would like
    to continue building the web application using the UI.
        The application's first page was built using a Blank Site template and
    the subsequent subsites were built using the Team Site template.
        In retrospect the first page should also have been built using a Team Site template.
        It may be unnecessary to make to delete the application
    and create the first page as a Team Site and then have to create all of the
    subsites (Team Sites) all over again.
        As a solution to prevent deleting the whole application and creating application
    with all of the subsites all over again whether it is possible to do any of the
    following:
        - Convert the Blank Site page into a Team Site page which would allow
    me to leave all of the subsites as is.
        - rename the Blank site page which would in effect would be renaming the application
    then create a new Team Site page which would be essentially creating a new application and
    then adding all of the subsites contained in the renamed application that has the first page
    as a Blank page.
        And if is possible to add, copy or move the subsites from existing sites to a new Team Site
    page, how do you add, copy or move the subsites from one application to a diffent application?
        Thank you
        Shabeaut

    Hi Shabeaut,
    According to your description, my understanding is that you want to change the template of the root site without creating the susites in another web application.
    I recommend to export all the existing subsites and import them to new web application.
    More references:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/cc7c11ec-e4da-4ddb-babd-db76ccb35664/move-subsite-to-new-site-collection?forum=sharepointadminprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/fd321bac-16a7-47e4-842e-00b7ca0f7f05/move-subsite-to-other-site-collection-as-subsite?forum=sharepointadminprevious
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Video not working on the first run of Android app

    I couldn't find any results regarding this problem. Maybe I'm just using wrong keywords as it is difficult to explain.
    Has anyone else encountered that video is not working on the first run of Android app? By first run I mean directly after installing. I'm using NetConnection, NetStream, Video objects and GPU renderMode. By working I mean it's not showing and can't hear the audio. I haven't yet debugged deeper so I don't know if the problem is actually related to the code loading the video.
    I've encountered the following issues, which may or may not be related, regarding the the first run and Video object:
    - The first run takes about 20 seconds to start. After that, the start is pretty much instant. If you clear app's cache, it again takes the 20 seconds to launch. The video works after clearing app's cache.
    - When creating the first Video object, the app flashes screen to black for a few frames. This is why I create a dummy Video object in the beginning.
    I use AIR 13, going to upgrade to 14, but I'm quite sure this problem and the issues have been for a while.

    I should add that we're using flv, not mp4. And they're progressively downloaded, not local.

  • BAPI_PO_CREATE1 Works on the First Loop

    Dear all,
    I have several data in a internal table, base on the data on the internal table I'm using BAPI_PO_CREATE1 to create purchase order.
    On my first loop in the internal table, the BAPI_PO_CREATE1 was able to create the first PO. However, for the subsequent loops (second, third etc...) BAPI_PO_CREATE1 was not able to create PO. I have debugged and found out that the KOMP-NETPR has no value & I'm getting an error message "Net price must be greater than 0".
    I also tried to pass some value on the net price in the POITEM table of the BAPI_PO_CREATE1 but it doesn't work.
    I can't figure out where & why KOMP-NETPR has no value and I also don't know why the first loop always work.
    Please shed some light on this. Thanks in advance.

    Hello SKJ,
    Thank you for your reply. However, the functional consultant insists that all the pricing are well maintained.
    I came across a post in this forum with the same problem, they said that they refreshed the buffer/memory for every call on the bapi_po_create1.
    I did put this line of code:
    PERFORM mepo_refresh(saplmepo).
    CALL FUNCTION'BAPI_PO_CREATE1'.
    But it didn't work either.
    Edited by: totoy_ on Nov 30, 2011 2:41 AM

  • Import "make a second copy" no longer creates "Imported on..." subfolder?

    In Lightroom 2, the option to create a second copy in another location would put the file copies under a new subfolder called "Imported on <date>", but using the image's original file name.  In LR 3, the file renaming system is used (nice!), but the files are not put in new subfolders based on import date, so the second copies all end up in a single folder unless I manually specify a new second copy folder for each import.  Am I missing something, or is there some way to have subfolders automatically created when making second copies on import?

    I was happy to see the forced use of "Imported on..." folders has ended, I'd posted about that a year or two ago wondering how we were supposed to remember the day of the week we imported them when looking for a set of originals.
    It seemed to me that using a system of year folders with day folders in them might be more practical. At least that's the way I've set up my catalog for the imported files using "Custom Name - Original File Number" naming tokens. (Folder 2010 has files named 2010-01-xxxx for all photos taken in January 2010). Unfortunately, it seems LR won't make the year and day folders automatically for the original files backup.
    "Make a Second Copy To:" does let me choose a folder on my backup disk right with all the "Imported Ons" which someday I hope to retrieve orginals from to put into a similar arrangement. Am thinking of doing one folder per month such as 2010-01 and just have the whole month's shots in order by the original file number after the year/month designation.
    After looking back at previous years' backups I find many originals sets that were renamed and some that weren't -- assume that LR 2 was doing that. It did seem to have a mind of it's own sometimes.
    I found your post as I was going to post suggesting that "Make a Second Copy To" was slightly misleading as my copies for the Catalog are converted to DNGs and I was unsure if these backup files would also be converted. I was relieved to find they are still in the CR2 format but disappointed they do not have my renaming scheme so I could match up with the DNG copy...
    ...maybe it should say "Backup Original File To".

  • Creating the firt brochure

    Where do I get the images to create the first brochure?

    I got it thanks. ☺
    Sandra Lauterbach
    Document Coordinator
    13750 San Pedro, Suite 300
    San Antonio, TX  78232
    Phone: 210-301-4800 / Fax: 210-545-3103
    [email protected]<mailto:[email protected]>
    Visit our website at www.rsandh.com<http://www.rsandh.com>
    Connect with RS&H on Facebook<https://www.facebook.com/WeAreRSandH> Twitter<https://twitter.com/wearersandh> LinkedIn<http://www.linkedin.com/company/rs%26h>
    cid:[email protected]

  • Creating a deep copy

    I wrote a stack implementation using a LinkedList, I have null constructor to create the first stack and it works fine but now i have to create a copy for a second stack using the element of the first constructor
    this my code
    import java.util.LinkedList;
    public class Stack<T>{
      private LinkedList<T> stack;
      public Stack(){
        stack =  new LinkedList<T>();
      public Stack(Stack<T> s) {// the problem is here it compile but when i run
                                                     // the program the second stack raised an exception because is empty
                                                     // i want to create a deep copy with the elements of the first stack
         stack = new LinkedList<T>();
      public boolean isEmpty(){
      return stack.isEmpty();
      public void push(T item){
       /*method to add object information
        *pre the object is not full
        * pos: the object is inserted
          stack.addFirst(item);
      public T top() throws EmptyStackException{
        if (!stack.isEmpty()){ 
          return stack.getFirst();
        else{
          throw new EmptyStackException("StackException on top " + " Stack empty");
      public T pop() throws EmptyStackException{
        /*method to remove an element of the stack
        *pre the object is not empty
        * pos: the object is remove
        * response throws an exception
        if (!stack.isEmpty()){ 
          return stack.removeFirst();
        else{
          throw new EmptyStackException("StackException on top" + "stack empty");
    public int numElements(){
        return stack.size();
    public void clear(){
      stack.clear();
    public class EmptyStackException extends Exception{
            public EmptyStackException( String message){
              super(message);
    }

    wel well... are you doing this on a mobile phone???
    neways to get to ur question u can use the clone() method to generate a clone of your object which is the same as a deep copy for eg:
    public class CloneTest{
        CloneTest test1 = new CloneTest();
        CloneTest test2;
        CloneTest(){
          //Some initialization code;
        CloneTest(CloneTest temp){
             test2 = test1.clone();
    }clone is a method of the object class.

Maybe you are looking for

  • How can I change the content of a text field in a PDF form with a defined variable?

    Hello all! First time poster, and getting pretty frustrated with trying to figure out this one issue. Here is the scenario: I am using Acrobat 10 Pro to design what is essentially a giant order form. I designed the document in InDesign, defined the v

  • Napster To

    I recently subscribed for the free trial of Napster-to-Go, as my Creative Zen Touch was not on the list of incompatible players. However, when I tried to transfer the music files on to my Zen Touch, it said it was not a compatible player. Does anyone

  • Java bytecode operation 'invokevirtual' does not keep consistency

    I have following codes. public class Parent { @Override public int hashCode() { return 0; public class Child extends Parent { public void test() { this.toString(); this.hashCode(); As you see in the above codes, Child inherits toString() from Object

  • Error in starting infopackage

    try to start job for loading data with "Initialize Delta Process" got error: "Delete init. request REQU_8UEKC6QCRT8OYAUOJYX1HPWGO before running init. again with same selection" i deleted all of requests from cube and psa tables... where i have to de

  • Wlst script to change values for Logging.

    Hi, i am trying to write a wlst script to change attributes for the following.( i am new to wlst scripting) For all servers in a domain, Logging --> General --> Check Limit number of retained files --> Files to retain to different number. --> Log fil