How to copy a test database to a productive with DB2?

The subject tells the question:
i have a database server running db2, one database for SBO and two tablespaces for Testing and Productive environment.
Both were created with SBO of course.
1.) How to make a copy from test to productive now?
2.) How to start with SBO for Linux/DB2
Regards
Frank

Frank,
To your questions ...
1.  You could use the DB2 Tools to copy data from one database to another.  You could also download the SAP Copy Express tool from the service.sap.com/smb site.  This tool is Db "agnostic" and will allow you to copy data from one company in Business One to another Business One company.
2.  There is currently not a product from SAP for Business One to run with DB2 Express on Linux.  That is not a tested or supported environment for Business One.
HTH,
Eddy

Similar Messages

  • How to copy from one Version to Another version with single click

    Hi Everone,
    Users wants to copy from one version to another version with single click only. I.e Actuals to Planning etc.,
    They don't want use standard COPY Data manager package to do this activity as this involves many steps.
    Please let me know Is there any way to COPY with single click. Thanks in advance!!
    Regards,
    Viswanath

    Hi Viswanath,
    Use /CPMB/DEFAULT_FORMULAS
    Then edit automatically created advanced script:
    PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,DEFAULT.LGF)
    Remove bold lines and change the script name in line with your script name:
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,YOURLOGICNAME.LGF)
    Vadim

  • How to copy table from database in one forest to a database in a different forest?

    Hello Community
        Using Wndows 2008 Server Enterprise there exists 2 Forests,
    each containing their own SQL Server 2008 installations, a scenario exists as follows:
         a)"Domain1" resides in "Forest1" which has SQL Server 2008 containing
             a database named "Database1" which contains a table named "Table1".
         b)"Domain2" resides in "Forest2" which also has SQL Server 2008
             but containing a database named "Database2"which contains a table
             named "Table2".
        I tried to use <domain_name>.<server_name>.<owner_name>.object
    but that syntax didn't work.
        How can I copy "Table2" from "Database2" into "Database1"
    (keeping in mind the databases are in different forests and domains)?
        Thank you
        Shabeaut

    Configuring a linked server might help you
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/329709ca-349d-490d-9b42-7443caa97364/how-to-created-linked-server-between-two-different-domains?forum=sqlsecurity
    OR
    Generate the schema with data of Table1 using scripting wizard under advance setup and execute the sql file in domain2.
    -Prashanth

  • How to copy UCCX Informix database to MSSQL?

    Hi,
    I am trying to copy the UCCX 8.5 Informix database to Microsoft SQL, so we can use MSSQL as the source database for our reports. This way we will not stress our UCCX database too much, except for when we run the batch copy every night.
    To copy all tables to SQL I am trying to use SQL Server 2008's SQL Server Integration Services (SSIS), the Import and Export Wizard (DTSWizard.exe). I open the Informix database as a local ODBC, using the .Net Framework Data Provider for Odbc to read all data. I then use the SQL Native Client to write the data into MSSQL.
    When I try to do this, I run into a couple of issues:
    1) Some field types in Informix are unknown to SQL. I have to manually reassign them. Most of them are datetime fields, so I guess I should just mark them as datetime type in SQL?
    2) When I finished assigning the datetime type to the unknown fields and try to run the migration, I receive the following error. I don't have a clue how to get around this:
    Does anyone have any experience with what I'm trying to do? I know Cisco recommends using a separate SQL server for reporting, but I haven't found any documents describing how to do this. Can anyone help?
    Regards,
    Ruud van Strijp

    I know Cisco recommends using a separate SQL server for reporting, but I haven't found any documents describing how to do this.
    And you wont, as it was a feature that went away in UCCX version 8.0.
    One Cisco Employee's comment on the matter:
    https://supportforums.cisco.com/thread/2090288
    One Cisco Partner's comments on the matter:
    https://supportforums.cisco.com/thread/2059612
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • How to copy/move Portal database from one machine to another?

    I am receiving a ORA-22973 error (size of object identifier exceeds maxmum size allowed) on the wwsec_enabler_config_info$ table when attempting to import my entire "portal30" schema from one database to another on different Windows NT Servers.
    Background: I had Portal 3.0.9.8 installed, configured, and running with the following setup:
    Machine 1: Windows NT 4.0 SP 6, Oracle 9iAS 1.0.2.2, Oracle Portal 3.0.9.8
    Machine 2: Windows NT 4.0 SP 6, Oracle 8i Database 8.1.7.0.0
    We no longer have use of Machine 2 and needed to move the database over to Machine 1.
    I performed the following steps:
    1. Installed Oracle 8i database 8.1.7.0.0 on Machine 1.
    2. Set up the tablespaces in the database on Machine 1 to match the same names and sizes of the tablespaces in the database on Machine 2.
    3. Used the Oracle "exp" command to export the entire database that resided on Machine 2.
    4. Copied the ".dmp" file to Machine 1.
    5. Used the Oracle "imp" command to import the entire database on Machine 1.
    6. The import completed successfully with warnings. But I had received the ORA-22973 error during the import process.
    7. After it completed I compared the list of tables and packages in the "portal30" schema between the two databases. The wwsec_enabler_config_info$ table is missing.
    8. I tried to export and import only the wwsec_enabler_config_info$ table between the two databases, but continue to receive the ORA-22973 error.
    Without the table being created, access to the portal cannot be achieved.
    Here are my questions:
    1. Is there anyway to create the wwsec_enabler_config_info$ table without receiving the noted error?
    2. Is there any other workable way to get the portal database from Machine 2 to Machine 1?
    I am aware of the portal import/export utilities but that would require me to run through the 2 hour install of Portal 3.0.9.8 on the database on Machine 1 and then individually export and import all the portal components (security, pages, applications, content library, etc). I merely wanted to transfer the entire database from one machine to another, so I felt the Oracle exp/imp utilities would be quicker and less work.

    Hi,
    I've been hitting problems with Portal 3.0.9.8.1 against 8.1.7.2.1 on NT - i.e., Intermedia not working at all, and have been advised by support to move back to 8.1.7.1.1.
    I don't want to lose any of my content in the Portal since the db upgrade and am wondering on what is the best way to do this.
    The version of the Portal will be the same so I am hoping I can just use the Portal export and import utilities, as afterall, it is just data and the schema structures are the same between db versions. I'm also hoping that the Portal export doesn't use the standard Oracle EXP tool as it doesn't work anymore on 8.1.7.2.1 on NT!!
    Regards,
    John

  • How would I unit test database logic?

    I am still having a issue getting over a small issue when it comes to TDD.
    I need a method that will get a certain record set of filtered data from the data layer (linq2SQL). Please note that i am using the linq generated classes from that are generated from the DBML. Now the problem is that i want to write a test for this.
    do i:
    a) first insert the records in the test and then execute the method and test the results
    b) use data that might be in the database. Not to keen on this logic cause it could cause things to break.
    c) what ever you suggest?

    Variation on (a).
    Have a test db or subsection of the db that can be used for testing. When you are setting up your tests, have a routine that initializes the DB as you need it to begin testing (this can be done before each test, as appropriate). This may include deleting data,
    inserting data, etc. Then run your tests. In the Teardown phase, clean up after yourself. Can be repeated as much as is needed, without risk of disrupting live system (not a good idea to test using data in the database that is needed for anything else).
    Really, all one has to do is use System.Transactions and Rollback the transactions at the end of each tests. That's what I have seen done in integration testing, which UT does not apply in testing DB transactions.

  • How to create the same tablespaces in test database as in production

    I've used the following commands:
    (from 10gR2)
    expdp DIRECTORY=DATA_PUMP_DIR SCHEMAS=MDLOG EXCLUDE=STATISTICS DUMPFILE=mdlogMETADATA.dmp include=tablespace content=metadata_only
    Then:
    (into 11gR2)
    impdp DIRECTORY=DATA_PUMP_DIR DUMPFILE=mdlogMETADATA.dmp include=TABLESPACE sqlfile=c.sql
    According to the following posts it should work
    how to find username and tablespace name indatapump import
    [http://www.rampant-books.com/art_nanda_datapump.htm|http://www.rampant-books.com/art_nanda_datapump.htm]
    instead I obtain
    ORA-39002: invalid operation
    ORA-39168: Object path TABLESPACE was not found.
    Now I'm searching for incompatible options between expdp (10gr2) and impdp (11gr2).. and if include=TABLESPACE should be replaced with other option...
    meanwhile... is there something that can tell me if I'm making any mistakes?
    Tanks

    Ok.. it works.. but I need to edit all DISK GROUP NAME associated to datafiles.. because they are different...
    Is there any option to REMAP "DISK GROUP NAME" ?
    I'm unsuccessfully trying...
    impdp PARFILE=parameter_file.par
    where parameter_file.par is:
    DIRECTORY=DATA_PUMP_DIR
    DUMPFILE=all_schemas.dmp
    REMAP_DATAFILE="'+DATA_PROD':'+DATA_DEV'"
    INCLUDE=TABLESPACE
    SQLFILE=remap_datafile.sql
    no error is reported.
    The following is one of my tablespace:
    CREATE TABLESPACE "TBL_BILLING" DATAFILE
    '+DATA_PROD/rac1/datafile/tbl_billing.273.661541263' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_PROD/rac1/datafile/tbl_billing.274.661541267' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_PROD/rac1/datafile/tbl_billing.275.661541273' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_PROD/rac1/datafile/tbl_billing.276.661541279' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_PROD/rac1/datafile/tbl_billing.277.661541287' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M
    LOGGING ONLINE PERMANENT BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT NOCOMPRESS SEGMENT SPACE MANAGEMENT AUTO;
    I'd like to have something like...
    CREATE TABLESPACE "TBL_BILLING" DATAFILE
    '+DATA_DEV/rac1/datafile/tbl_billing.273.661541263' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_DEV/rac1/datafile/tbl_billing.274.661541267' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_DEV/rac1/datafile/tbl_billing.275.661541273' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_DEV/rac1/datafile/tbl_billing.276.661541279' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_DEV/rac1/datafile/tbl_billing.277.661541287' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M
    LOGGING ONLINE PERMANENT BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT NOCOMPRESS SEGMENT SPACE MANAGEMENT AUTO;

  • How to copy  existing  row  value into new row  with a trigger. Same table

    Oracle guru,
    I am looking for a before or after trigger statement that will copy existing values inserted in the previous row into columns A & B. Then insert those values in a new row into column A & B if null? Same table. Hopefully my question is clear enough.
    -Oracle 10g express
    -I have an existing " before insert trigger" that insert id and timestamps when a new row is created.
    -Table is composed of column like id,timestamps,A,B and more.
    Thanks in advance
    Pierre

    957911 wrote:
    Oracle guru,
    I am looking for a before or after trigger statement that will copy existing values inserted in the previous row into columns A & B. Then insert those values in a new row into column A & B if null? Same table. Hopefully my question is clear enough.
    -Oracle 10g express
    -I have an existing " before insert trigger" that insert id and timestamps when a new row is created.
    -Table is composed of column like id,timestamps,A,B and more.
    Thanks in advance
    PierreI will call it a very Wrong design.
    It is a wrong Table Design. You are duplicating the data in table and not complying with the Database Normalization rules.
    How about Verifying if Column A & B are NULL before inserting and inserting another row and avoiding it in Triggers?
    If you are bent to achieve this, below code might be helpful. However, I would never go with this approach. If you would care about explaining the reason for going ahead with such a data model, people could suggest better alternative that might conform with Normalization rules.
    create or replace trigger trg_test_table
    after insert on test_table
    for each row
    declare
      pragma autonomous_transaction;
    begin
      if :new.col_a is null and :new.col_b is null then
        insert into test_table
        select 2, systimestamp, col_a, col_b
          from test_table
         where pk_col = (select max(pk_col) from test_table b where b.pk_col < :new.pk_col);
      end if;
      commit;
    end trg_test_table;Read SQL and PL/SQL FAQ and post the mentioned details.
    Do not forget to mention output from
    select * from v$version;

  • How to copy contents of folder into new folder with Automator?

    What is the simplest, fastest Automator workflow to copy the contents of a folder into a new folder? And without using 3rd party actions.
    I have a template folder structure called .ProjectFolder (to keep it invisible) so I need to copy the contents of this folder into a new folder, preferably with the ability to name the new folder on the fly. I don't want to use 3rd party actions because this is something I then need to maintain. Thanks.

    957911 wrote:
    Oracle guru,
    I am looking for a before or after trigger statement that will copy existing values inserted in the previous row into columns A & B. Then insert those values in a new row into column A & B if null? Same table. Hopefully my question is clear enough.
    -Oracle 10g express
    -I have an existing " before insert trigger" that insert id and timestamps when a new row is created.
    -Table is composed of column like id,timestamps,A,B and more.
    Thanks in advance
    PierreI will call it a very Wrong design.
    It is a wrong Table Design. You are duplicating the data in table and not complying with the Database Normalization rules.
    How about Verifying if Column A & B are NULL before inserting and inserting another row and avoiding it in Triggers?
    If you are bent to achieve this, below code might be helpful. However, I would never go with this approach. If you would care about explaining the reason for going ahead with such a data model, people could suggest better alternative that might conform with Normalization rules.
    create or replace trigger trg_test_table
    after insert on test_table
    for each row
    declare
      pragma autonomous_transaction;
    begin
      if :new.col_a is null and :new.col_b is null then
        insert into test_table
        select 2, systimestamp, col_a, col_b
          from test_table
         where pk_col = (select max(pk_col) from test_table b where b.pk_col < :new.pk_col);
      end if;
      commit;
    end trg_test_table;Read SQL and PL/SQL FAQ and post the mentioned details.
    Do not forget to mention output from
    select * from v$version;

  • How to copy a .bak-File through the Net with a Job?

    Hi all,
    I have create with
    ALTER DATABASE BACKUP CONTROLFILE TO 'c:\Temp\test_control.bak';
    my the binary copy of my controlfile.
    But I don't understand:
    In the database there are 3 control files: Control01.ctl,
    Control02.ctl and Control03.ctl. After I implemented ALTER DATABASE BACKUP CONTROLFILE TO 'C:\Temp\test_control.bak';, I have
    only one copy. Is that the copy of all 3 controlfiles? Still another question:
    How can I copy this file now with a job on another computer through the net?
    Regards
    Leonid Pavlov

    i use streams to read the binary file. The problem is I don't know when the transfered stream finished. With text file I can recognize the end of the transfer by a special string, but how to deal with the end of a stream? should the server send an "EOF" or something else to the client to notify the end?

  • How to copy fields values between same class objects with filtering ?

    Hi I'm facing a problem.
    It started when thinking to the clone method for cloning objects.
    And developed into a problem when trying to making something more complicate that just cloning.
    Suppose you have two JPanels and one is a copy of the other suppose that u feed the copy to some methods for processing.
    These methods modify simple data (ints,Strings, CustomClasses) and swing components too.
    Now when I get the object back I want to copy all of the fields values to the original JPanel except for those who represent swing components or the like.
    I want to do this automatically by writing some few rows of code.
    How can I do this using reflection ?
    How can I filter the Fields objects that I get from jpanelInstance.getClass().getDeclaredFields(); ? Which metod should I use then to check if is a subclass of java.awt.Component ?
    I've read about many things on using reflection to invoke methods, constructors and so on.
    But how do I get the fields values as I get the fields objects ?
    Thanks for the attention, hope what is written is clear enough,
    Estades.

    Are you targeting a "worst design award"? What kind of "processing" would take place on a UI component?
    I am sure from what you write that you missed to seperate your model from your view. Read about MVC and retry designing your application.
    Edited by: stefan.schulz on Sep 15, 2007 7:30 PM

  • How to insert records in database from a dataset with multiple tables

    Hi,
    I'm struggling with the following problem:
    I have saved a dataset to an XML file by executing the following statement:
       ds.WriteXml( "Export\\ModuleChain_Mdata.xml" );The dataset, ds, includes records from several tables.
    Is there an easy way to retrieve those records to the database, I.E inserting them again?
    regards Peter

    you can try Associative Arrays:
    http://www.oracle.com/technology/oramag/oracle/07-jan/o17odp.html
    you need to convert yore DataTables to array first and than pass them in to the associative array procedure.

  • How to copy ALL photos off of IPhone 4S with IOS 6

    Hey Guys,
    Here's the issue:
    On the IPhone 4S with IOS 6 certain photos end up outside of the "sandbox" (the MAIN album) and the only way to transfer those is to either "jailbreak" your IPhone which I do NOT recommend or MANUALLY transfer them picture by picture on IOS 6 for an Iphonne 4S.
    SEVERAL of my customers and on my IPhone 4's had that limitation.
    Is there ANY other app or COMPLETELY verified procedure to get ALL (please note I said ALL) photos off of an IPhone 4S with IOS 6? Without having to spend hours manually moving them into the main album.
    Thanks in advance (smile)

    Please explain to me what kind of photos end up outside the sandbox. Photos taken or saved with the phone are in the Camera Roll. Other photos on the iPhone would be synced via iTunes from the computer. Those pictures are already on the computer and can be removed from the phone via another sync. Importing the photos with import utility on the computer, like a digital camera is how to get the pictures. I'm not sure what these other photos are that you are referring to, or where they are coming from.

  • How to copy files from TC to another TC with ethernet

    Hello. I bought a new 3 TB Time Capsule and I need to transfer almost 2 TB in files from my old Time Capsule. Using wireless says it will take more than a week... is there any other option? maybe ethernet? or do you know a faster way to do that? I've searched over the web and found some people talking about ethernet but they didn't explain.
    thanks

    The copy is always via the computer.. so you want to plug the old TC into the new one by ethernet.. wireless off on the old TC..
    Plug the computer into the new TC, wireless off on the computer.
    Now copy the files.. this will not be fast due to the double handling of the files, but it will better than wireless by 3-5days.

  • How long do you have to return a product with a physical defect?

    Hey guy i bought my Macbook pro on September 29th and noticed it had a slight defect on the back side of the screen. On the bottom right side on the laptop there is a very little pressure/Stress mark that you can see if you look at it the right way and also the screen when closed does no fit flush with the back of the laptop one side is flush were as the other side pertrudes a little bit. And one last thing is the when closing the laptop the right side of the screen hits on first before the left side. I am wondering when i should bring this back to my apple store for them to check it out. Whould it be to long if i waited after the 20th to see if the keynote contains new macs? Im hoping if i bring it in after that i may be able to get a free upgrade.

    It's probably too late now. As a store manager I would find it difficult to believe that a computer that is 2+ weeks old is just now being looked at. If there were visual defects they would have been apparent immediately which is when you should have returned the machine.
    Good luck.
    Roger

Maybe you are looking for

  • Problem with Comparator

    I am trying to sort a class Merchant which has a MerchantKey .I need to sort merchant based on terminalId attribute in the MerchantKey class. My code looks like thispublic static Comparator BaseTerminalIDComparator = new Comparator() {               

  • Issue in File to File scenario.

    Hi Experts, In file to file scenario the messages are coming with tag encoding=UTF-16 instead of UTF-8 .in SXMB_MONI as shown below: Error detail: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and

  • Error while creating I/B delivery: No item category exists (Table T184L EL)

    Hello all, When I save output type "SPED" in outbound delivery, Inbound delivery automatically gets created. But in this case error occured: "No item category exists (Table T184L EL NLAG V )" 1. Specified material is HALB. 2. Item Cat in MMR is NORM

  • Help Date function

    Hi, I am having a table with start_date column with varchar and the data is like '01/06/2000'. I want to convert it to date date type and update the date to '01-JUN-2000'. If it is possible with the same column then it is ok or i can even create a se

  • Windows DesktopProperty can reset a Java UI

    In my simple Java Application, I noticed its UI gets reset if some particular Windows Desktop Properties get fired. This normally is not something anyone would see, but some remote-sharing applications (such as LiveMeeting) set certain Window Desktop