Centralizing from many databases to one database

Hi all
I have one customer where I have one DB by each customer of my main customer, but my main customer want's centralize the data of all his customers and like this my main customer can watch the information of his customers ...
I was thinking on implementation of mirroring but some one told me that when the data being updated perhaps information can be lost (because the data bases of the customers of my customer have the same structure)...
which practice apply to this escenario ??

Generally, you would need to create a schema for each customer within a database and reference it,
SELECT * FROM cust1.Orders
SELECT * FROM cust2.Orders
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • Copy Exchenge rate from many Delivery to one AR invoice

    Hi all!
    I face with the problem. My customer need copy exchange rate from many Delivery that in one delivery we have different exchange rate for different date. After done all delivery, we will copy them to AR invoice, and customer need keep exchange rate the same with delivery.
    How can i do that because SAP B1 prevent this??? i don't know reason why?
    Thanks!

    Hi,
    If the AR invoice date is the same with Delivery date, the Exchenge rate will be the same. However, if you want to Copy Exchenge rate from many Delivery to one AR invoice, you may only have one rate for the invoice date.
    Thanks,
    Gordon

  • How do you retrieve iTunes media from many locations to one file

    I have all Mac devices.
    The particular item I have a question about is my itunes media file. 
    Since I have a very large collection, I was advised by apple support to move my Itunes Media folder to the 1.5T wireless WD hard drive I have.
    All was going well, until either itunes update occurred or my Macbook Pro OSx had updated that is when I started to notice I have many, many itunes media folders and I want and need to know how to stop this default from occuring and the hardest part is to accumulate all my media that is in itunes media files many on my MacBook Pro in subfolders and on my WD wireless Hard drive that essentially has done the same.
    It has produced most cases many, many copies of each of media, and due to the many places that the media got switched to, some items need to be located to play.  Especially Movies.  None of the data is on cell phone, ipad or icloud.  It is mainly conflicts somewhere from files on my Macbook Pro and what is on my WD wireless hard drive. (I only save media on this hard drive)
    I have attempted to organize itunes, but it seems to perpetuate the problem.
    Is there anyone who knows the best way to find and consolidate media for itunes and place it in one folder.  Is there some App out there that deals ONLY with itunes media consolidating?
    Thanks,
    Tina C.

    What do you mean "retrieve"?
    If you mean previously purchased music, then you cannot, unless you are in the U.S. Then you can use the recently released icloud ( beta version).
    Tap itunes, then tap purchasd

  • Problem Removing CMP 2.0 Bean from Many side of One-to-Many

    I'm getting an exception within the weblogic container when I try to
    delete a bean from the many side of a one-to-many CMR.
    The two entity beans are called CaseFile and CaseExpert. There are
    many CaseExperts for each CaseFile. When you call the remove method
    on the CaseExpert, Weblogic throws a null pointer exception when
    accessing the EntityCache as shown at the bottom of this message. I'm
    using the latest version of Weblogic 7 (WebLogic Server 7.0 Thu Jun
    20 11:47:11 PDT 2002 190955). My relationship section of my
    ejb-jar.xml file is also shown below.
    Any ideas?
    Thanks,
    David
    [email protected]
    javax.ejb.EJBException: EJB Exception:: java.lang.NullPointerException
    at weblogic.ejb20.cache.TxKey.<init>(TxKey.java:30)
    at weblogic.ejb20.cache.EntityCache.doGet(EntityCache.java:158)
    at weblogic.ejb20.cache.EntityCache.get(EntityCache.java:118)
    at weblogic.ejb20.manager.DBManager.getReadyBean(DBManager.java:252)
    at weblogic.ejb20.manager.DBManager.lookup(DBManager.java:949)
    at gov.usdoj.usa.ecms.casefile.exposure.ejb.CaseExpertBean_76ewyr__WebLo
    gic_CMP_RDBMS.__WL_setCaseFile(CaseExpertBean_76ewyr__WebLogic_CMP_RDBMS.java:45
    2)
    at gov.usdoj.usa.ecms.casefile.exposure.ejb.CaseExpertBean_76ewyr__WebLo
    gic_CMP_RDBMS.__WL_setCaseFile(CaseExpertBean_76ewyr__WebLogic_CMP_RDBMS.java:43
    1)
    at gov.usdoj.usa.ecms.casefile.exposure.ejb.CaseExpertBean_76ewyr__WebLo
    gic_CMP_RDBMS.ejbRemove(CaseExpertBean_76ewyr__WebLogic_CMP_RDBMS.java:1978)
    at weblogic.ejb20.manager.DBManager.remove(DBManager.java:876)
    at weblogic.ejb20.internal.EntityEJBLocalObject.remove(EntityEJBLocalObj
    ect.java:95)
    <relationships>
    <ejb-relation>
    <ejb-relation-name>caseExpert-caseFile</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>CaseExpert-CaseFile</ejb-relationship-role-name>
    <multiplicity>many</multiplicity>
    <relationship-role-source>
    <ejb-name>CaseExpertEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>caseFile</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>CaseFile-CaseExperts</ejb-relationship-role-name>
    <multiplicity>one</multiplicity>
    <relationship-role-source>
    <ejb-name>CaseFileEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>caseExperts</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    </relationships>

    Wrong newsgroup, needs to go to one of the ejb newsgroups.
    mbg
    "Sai S Prasad" <[email protected]> wrote in message
    news:3ec28167$[email protected]..
    >
    Hi,
    I like to do the following:
    1) Map one bean corresponding to table A to many beans corresponding totable
    B 2) table B has two columns as the primary keys.
    3) One of the primary key column in table B is a foreign key pointing tothe primary
    key of table A.
    4) bean corresponding to table A has the cmr Collection field
    I am not able to map this scenario. I guess the mapping is possible aslong as
    each table has its own unrelated primary keys. If anyone has tried this,please...please...help.
    >
    >
    Thanks.

  • Collect video from many iphone to one ipad to merge in a film with imovie: how to?

    Thank you

    If your Phone allows tethering, and your carrier does as well, you can tether your iPad to your Phone and use the Phone's internet connection with your iPad.  You don't need a cellular iPad for that.
    If you want your iPad to be independent of your phone, and want it to connect to the internet anywhere you are, you would need a cellular version and a data plan contract for it.
    Alternatively if your Phone uses a sim card type accepted by your iPad you can also use that in your iPad when you need to, though your phone would be turned off and no calls could come in or be made if you choose to go this route.

  • Extracting audio from many clips at a time

    I have to extract some audio from many many video clips, so I was attempting to do it in one step, but Logic extract only from one clip at a time 
    So I'm thinking to use Audio Converter (it can extract audio from many clips in one step), but it ask me the AIFF encoding Bitrate (among 64 and 192 kbps). So I'm wondering... but Logic which AIFF bitrate manages???
    Tnks

    yes, it is possible. Infact, it is the normal practice to add those 10 roles to that single user in SU01 direclty.
    and as I said, user comparison should be scheduled normally in SAP system landscape to do the things automatically, however not immediately but after some time.
    http://help.sap.com/saphelp_nw04/helpdata/en/52/6714a9439b11d1896f0000e8322d00/content.htm
    If you want user comparison immediately, then you need to do it manually in the role.

  • I need to copy data from a table in one database (db1) to another table in

    Hi
    I need to copy data from a table in one database (db1) to another table in another database (db2).
    I am not sure if the table exists in db2,,,if it doesnot it needs to be created as well data also needs to be inserted...
    How am I supposed to this using sql statements..?
    I shall be happy if it is explained SQL also...
    Thanking in advance

    How many rows does the table contains? There are manyway you can achieve this.
    1. export and import.
    2. create a dblink between two databases and use create table as select, if structure doesnot exists in other database, if structure exists, use, insert into table select command.
    example:
    create a dblink in db2 database for db1 database.
    create table table1 as select * from table1@db1 -- when there is no structure present
    -- you need to add constraints manually, if any exists.
    insert into table1 select * from table1@db1 -- when there is structure present.
    If the table contains large volume of data, I would suggest you to use export and import.
    Jaffar

  • ONLY ONE FIELD DOES NOT GET PREPOPULATED FROM THE DATABASE

    I would really, really appreciate if someone can comment or suggest something that would help with the resolution to the issue I am currently experiencing.
    Simple sample form that explains the issue can be accessed from the link below.
    How to test the form:
    Open the form.
    Click on the yellow button to add new Task.
    The problem is with Additional Product fields ( in blue). You can add as many of them as you want by clicking on the Red button with the +. Add some data and uploade in database. When you download it from the database, data will come back fine for all of them, except for the first one.
    Any ideas or help would be greatly appreciated.
    https://acrobat.com/#d=2vFWOlm56FmrC4owzpfHew 
    The code is behind the Red button with the +. Very  simple. Perhaps is the indexing issue with the database. I do not know enough about it, to be able to send any suggestion to the DB guy.
    According to the DB guy, data uploades without issue. It is the blank field when the form with data is downoloaded.

    It might be related to http://forum.java.sun.com/thread.jspa?threadID=583466&messageID=2988344

  • How to remove only one row from the database using labview6.1

    using labview 6.1 I create a table with various rows and columns and store bulk of data's in them.,, what procedure should I follow to remove only one paticular row from the database? Help me out with an example please,,
    Thanking you in advance!

    Hi,
    If you have the database toolkit you can delete a row using just a SQL Query to "DB Tools Execute Query.VI"
    Example:
    DELETE FROM Table name Where SerialNum='Value' And Date='Value' And Time='Value'
    See also attached VI
    Best Regards
    Johan
    Attachments:
    Delete_a_row_in_a_database_table.vi ‏48 KB

  • How to get the selection parameters from logical database into one of the t

    Hi Sap ABAP Champians,
    How to get the selection parameters from logical database into one of the tab in the tabstrip selection-screen.
    Please help me for this
    Thanks
    Basu

    Hi
    Thanks, that will work, but then I'll have to insert code into all my reports.
    I can see that "Application Server Control Console" is able to rerun a report.
    This must mean that the Report Server has access to the runtime parameters.
    But how?
    Cheers
    Nils Peter

  • Can I able to install many instances in one database. If yes please let me

    Hi,
    Can I able to install many instances in one database. If yes please let me how to do in Oracle 10g and *9i*.
    Thanks,
    Senthilnathan.

    Can you clarify what you trying to accomplish please? An instance consists of the memory structures, while a database consists of the memory structures and data files. Hence a RAC is a single database, with a instance per node (since each node will have the memory structures but all nodes access the same, single database).
    If you are referring to multiple schemas or applications inside the same database then yes, that is perfectly fine and done generally.

  • Can i use one datafile from different database to my database ?

    hi,
    i copied one datafile from development server to my database ? how can i use this datafile
    can i re-create controlfile , please suggest?
    Edited by: 819136 on Jan 12, 2011 2:45 AM

    I have create the controlfile please find the below details
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1298160 bytes
    Variable Size 255852816 bytes
    Database Buffers 348127232 bytes
    Redo Buffers 7090176 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS ARCHIVELOG
    2 MAXLOGFILES 5
    3 MAXLOGMEMBERS 3
    4 MAXDATAFILES 14
    5 MAXINSTANCES 1
    6 MAXLOGHISTORY 226
    7 LOGFILE
    8 GROUP 1 'E:\ORACLE\ORADATA\ORCL\REDO01.LOG' SIZE 100M,
    9 GROUP 2 'E:\ORACLE\ORADATA\ORCL\REDO02.LOG' SIZE 100M,
    10 GROUP 3 'E:\ORACLE\ORADATA\ORCL\REDO03.LOG' SIZE 100M
    11 DATAFILE
    12 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    13 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    14 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    15 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    16 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF',
    17 *'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST01.DBF'*
    18 CHARACTER SET WE8MSWIN1252;
    CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01159: file is not from same database as previous files - wrong database id
    ORA-01110: data file 43: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST01.DBF'
    SQL>
    SQL> ALTER DATABASE OPEN RESETLOGS;
    ALTER DATABASE OPEN RESETLOGS
    ERROR at line 1:
    ORA-01507: database not mounted

  • Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long.

    Hello Friends,
    The background is I am working as conversion manager and we move the data from oracle to SQL Server using SSMA and then we will apply the conversion logic and then move the data to system test ,UAT and Production.
    Scenario:
    Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long. Both the databases are in the same server.
    Questions are…
    What is best option?
    IF we use the SSIS it’s very slow and taking 17 hours (some time it use to stuck and won’t allow us to do any process).
    I am using my own script (Stored procedure) and it’s taking only 1 hour 40 Min. I would like know is there any better process to speed up and why the SSIS is taking too long.
    When we move the data using SSIS do they commit inside after particular count? (or) is the Microsoft is committing all the records together after writing into Transaction Log
    Thanks
    Karthikeyan Jothi

    http://www.dfarber.com/computer-consulting-blog.aspx?filterby=Copy%20hundreds%20of%20millions%20records%20in%20ms%20sql
    Processing
    hundreds of millions records can be done in less than an hour.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How does one call a class if  one gets the class name from a database?

    Hi,
    I'm writing an application that needs to handle different types of input file.
    Each type of input file will be handled by a different processing class.
    I plan to use a controller class that will read from a database rows that each contain a file name and processor class name such that the class can then be used to process that file:
    So on a table somewhere I might have relationships like:
    file1.csv , ProcessorClassA
    file2.csv , ProcessorClassB
    file3.csv , ProcessorClassB
    My hope is that if I need a new processor class, I will not have to change the controller class. I simply write the new class say, ProcessorClassC and put an entry in my table for:
    file4.csv , ProcessorClassC
    So, finally, the question...
    I can read in the new class name into a string but how can I employ that class or instantiate objects of that new class and use their methods.
    The rationale is that so that the controller class needs no further modifications no matter how many new processor classes are required.
    Any ideas anyone?

    A factory class? I'm all ears... or is that another
    days work...?Look e.g. here (or Google for "Factory Design Pattern"):
    http://www.exciton.cs.rice.edu/JavaResources/DesignPatterns/FactoryPattern.htm

  • Selecting a one row from the database is not working

    Hi all I am having a small problem with getting a row from my database to show up. Here is the code for the search that I want to do
                            String item; String columnName; String result; columnName = (String)searchBox.getSelectedItem(); item = searchField.getText().trim(); String tableName = "employee"; if(item == null || item.equals("")){ System.out.println("No Text entered"); }else{ try { result = sql.retrieve_From_Database(columnName, tableName, item); System.out.println(result); } catch (SQLException e1) { sql.displayErrors(e1); }
    Here is the code for the retrieve_From_Database function.
    protected String retrieve_From_Database(String columnName, String tableName, String item) throws SQLException{ ResultSet rs = null; Statement sm = null; sm = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); rs = sm.executeQuery("select * from " + tableName + " where " + columnName + " = " + item); result = rs.getString(columnName); if(result == null){ System.out.println("Error in retrieve"); return new String("No results in DB"); }else{ System.out.println(result); return result; } }
    When I run the first code I get an error of SQL Exception: Unknown column 'anthony' in 'where clause'. But yet when I run the query of
    Select * from employee where FirstName = 'anthony'
    within the mysql commandline I get the proper result. So my question is why when running this in the command line do I get the proper result but when running the code I do not?

    jo**** wrote:
    Hi. The problem is clear in the original post. The OP is trying to use PreparedStatement
    parameters to fill out general portions of the SQL query, instead of only data values.
    He is hoping to put in a column name. That will never work. Only data values are settable.
    HTH,
    Joe WeinsteinActually, no. There's no PreparedStatement there at all. It appears that his problem is that, while the working query entered directly in the client is
    Select * from employee where FirstName = 'anthony'the query he's constructing in his code is
    Select * from employee where FirstName = anthonySince there are no quotes around anthony, it's treated as a column name.
    If he had properly used PreparedStatment as suggested in reply 1, that would not be an issue. My guess, however, is that when he claims he's using PS, it's as Tolls suggested a couple of posts ago--he's simply replacing the Statement with a PreparedStatement, but not using the parameters as suggested.
    The wrong thing for OP to do at this point is see my above comment about the quotes and explicitly add them in the query string. The right thing to do, of course, is to actually use PS's parameters.
    Edited by: jverd on Oct 11, 2010 10:08 AM

Maybe you are looking for