How to get data in two different bases?

Hello guys!

I want to retrieve data from two different databases. I can't use one because they are in different cities, and now I need to use both. How can I do?

Thank you!

Published by: Tipertuba on 11/11/2009 05:13

Use the links in DB, if everything you do is querying the data... if its replication in time more real then look in or data streams keep... but below you can find things on the database link

http://www.morganslibrary.org/reference/Db_link.html

Tags: Database

Similar Questions

  • How can I select the first date (at least) and the corresponding date of two different tables source?

    I have 2 tables, INVOICE and INVOICE_REFNUM similar to below. I'm writing a query that withdrawing the first date (less) for a single record remaining the two tables. Each table records the receipt of invoices, but according to the source of the received invoice some may reside in INVOICE_REFNUM and others the INVOICE table. I also use DECODE on the topic of INVOICE_SOURCE, when the date less is taken from the INVOICE table that contains that field, so if the date is in the field INVOICE_REFNUM DECODE is not necessary. Example:

    INVOICE (table)

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 I HAVE 11/03/2012-15:49:32

    ABC. CNWY234 G 12/03/2012 14:07:30

    ABC. UPGF678 M 15/03/2012 20:21:54

    INVOICE_REFNUM (table)

    INVOICE_GID INVOICE_REFNUM_QUAL INVOICE_REFNUM_VALUE INSERT_DATE

    ABC. AVRT123 SOURCE ACS 11/03/2012 14:49:32

    ABC. CNWY234 SOURCE CSA 12/03/2012 13:07:30

    ABC. UPGF678 SOURCE ACS 15/03/2012 21:21:54

    My decode statement is: DECODE ("INVOICE_SOURCE, 'I', 'IDE', 'G', ' Auto-Pay", ', 'Manual')

    If I were to write a query on these two tables, the output will resemble the following:

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 ACS 11/03/2012 14:49:32

    ABC. CNWY234 ACS 12/03/2012 13:07:30

    ABC. UPGF678 Manual 15/03/2012 20:21:54

    I worked on it for 2 days, and I was able to pull a date by using the following SQL code, but cannot determine how to extract the corresponding source:

    SELECT THE LEAST (GLOGOWNER. INVOICE_REFNUM. INSERT_DATE, GLOGOWNER. THE INVOICE. INSERT_DATE) AS 'DATE OF THE INVOICE.

    GLOGOWNER. THE INVOICE. INVOICE_GID,

    DECODE (GLOGOWNER. THE INVOICE. INVOICE_SOURCE, 'I', 'IDE', 'G', 'Auto-Pay', ', 'Manual').

    GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE

    OF GLOGOWNER. INVOICE

    LEFT JOIN GLOGOWNER. INVOICE_REFNUM

    ON GLOGOWNER. THE INVOICE. INVOICE_GID = GLOGOWNER. INVOICE_REFNUM. INVOICE_GID

    WHERE GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE = "ACS."

    AND GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_QUAL_GID = 'SOURCE '.

    AND GLOGOWNER. THE INVOICE. INVOICE_TYPE = 'I '.

    ORDER OF GLOGOWNER. THE INVOICE. INVOICE_GID

    Any help is greatly appreciated!

    Best regards

    -Adam

    Hello

    Is that what you want?

    SELECT i.invoice_gid

    CASE

    WHEN ir.insert_date<= i.insert_date ="" then ="">

    WHEN i.invoice_souce = 'I' and THEN 'EDI '.

    WHEN i.invoice_souce = 'G' THEN 'debit '.

    WHEN i.invoice_souce = am' THEN 'manual '.

    END AS invoice_source

    , The LEAST (i.insert_date, ir.insert_date) AS insert_date

    I have the Bill OF

    JOIN invoice_refnum ON i.invoice_gid = ir.invoice_gid ir

    WHERE ir.invoice_refnum_value = 'ACS '.

    AND ir.invoice_refnum_qual_gid = 'SOURCE '.

    AND i.invoice_type = 'I '.

    ORDER BY i.invoice_gid

    ;

    There is no reason to do an outer join if you only want the lines with specific values anyway.

    What happens if the 2 tables have exactly the same invoice_date?  The query above takes the invoice_source of invoice_refnum in this case, but that can easily be changed.

    Or the other of the insert_dates can be NULL?

    I hope that answers your question.

    Otherwise, thank you post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also after the results you want from these data (otherwise what you have already posted).

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • getting data from two servers?

    Experts-

    We have two servers for the storage of the tables. 1 history 1. current server Prod

    We have same tables in the databases server.

    All the info before one month from the date of the day are stored in database tables history server
    and the rest in database tables current prod server.


    I create reports such as when the user enters a date, OBIEE must check if the date is in a month (30 days) the date today or earlier at 30 days, on this basis, it must get data from historical Server database tables / running production database server.

    How can I implement this?

    I need to create two clusters of connction (RPD records) and develop the same model twice? (One for the historical paintings and one for prod tables?)
    or can I use the technique of fragmentation? If so, can you give me an idea hwow to implement the Fragmentation of this requirement?

    Thank you for your help in advance

    You must use the fragmentation of this requirement. It is not difficult once you understand the basic principle. Nico article read here for details:

    http://gerardnico.com/wiki/dat/OBIEE/fragmentation_content

    The only non-standard bit for you will be to define the criteria of fragmentation on your sources of logical table. This is the part that says BI server to hit source.

    After return here if you get stuck.

    Paul

  • How to get data from one or several times of perticuler dates

    (1) how can we get data from one or more dates perticuler.
    for example. date of 01/01/2011 and time is 00:00:00 to 23:59:59

    and

    (2) how can we get data from one or more dates perticuler.
    from date 01/01/2011 to 01/02/2011 date and time e.g. is from 00:00:00 to 23:59:59.

    can we?

    Hello

    Use a WHERE clause to include only certain lines.
    For example:

    SELECT     *
    FROM     table_x
    WHERE     dt     BETWEEN TO_DATE ( '01/01/2011 00:00:00'
                        , 'DD/MM/YYYY HH24:MI:SS'
                        )
              AND     TO_DATE ( '01/01/2011 23:59:59'
                        , 'DD/MM/YYYY HH24:MI:SS'
                        )
    ;
    

    In this example, the first date (before the keyword AND) and second (after the keyword AND) lie on the same calendar day. It's just a coincidence, they can be on different dates.
    The first date must not be later than the date of the second; If this is the case, you will get 0 found lines.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • How to get data from excel

    Hello world

    How can I get data from excel inside my program? I'm using labview 8.2. I have tried to find the solution for this but seems that the solutions are not suitable. Can someone help me? Thank you.

    Hi jieah,

    Inside of the attachment nijams don't you see this?

    read_excel_values. LLB

  • Does anyone know how to get data from a web service of Labview with ajax or JSON?

    Hello

    I try to use ajax and json to service Web restful which I build with the labview. However I get errors

    For example. I create a web service from a labview vi (z = x / y http://localhost: 8080/math/divide/5/20 will give {Z: "4,000,000"})

    I get errors for the attached html files.

    Does anyone know how to get al labview WebService with ajax or json data?

    Thank you... Eran


  • Urgent: How to get data analog sbRio 9632?

    Hi ~
    I have new in Labview.
    I want to ask how to get analog data of the SbRio-9632 with FPGA?
    Example of
    I want to get the voltage/current of a solar panel.
    So I connect the unit to the analog input.
    But how to write a program to read the data?
    Need urgent help ~ thanks ~

    Hi GTHao,

    I think you can consult this manual for sbRIO 9632. There the guide step by step on how to extract data from sbRIO (although it says about RIO that includes cRIO but they are more a less the same thing in regards to getting analog data for your case)

    Please take note the voltage and current that the analog input sbRIO pines can take before you plug.

    It will be useful.

    Thank you

    Warm greetings,

    Lennard C

  • How to get data from an Excel file exist using report generation tools

    I try to use the Excel vi get the data of the report generation tool, but I can't understand how to activate a path can be explored in the right type for the VI.  I tried to use the new Report.vi, but this does not work unless you use a template.  It will not open an existing excel file and make an open report to extract data from.

    Essentially, I have a bunch of excel files that have data in them, and I want a VI allows to analyze the data.  I'm going to pull in all the data directly from the excel file so I don't have to reproscess them all in text so I can use the more standard datasheet live but to convert even the excel file programtically in labview I still need to be able to open the excel file and get the data?

    I found my problem.  It turns out that only not to have had a problem with the tool box new report vi.  I had accidentally wired an input control of path of folder instead of an input control of path of file to it.  Changing the file type took care of her and I was able to access excel files, I tried using the new report VI to extract the file, and Excel Get Data to extract the data.

  • How to get data in the procedure after CREATE TABLE table1 AS SELECT * from table2

    Hello

    can any body tell me how to get the data in the new table created in the procedure. because it gives following error.

    • Error (47,21): PL/SQL: ORA-00942: table or view does not exist

    tableName: = "BCKUP_" | TO_CHAR (sysdate, 'ddmmrrrr');

    tableDDL: = 'CREATE TABLE' | tableName. "AS SELECT * FROM Table1 where to_char(MSG_IN_TIME,''dd-mon-rrrr'') < sysdate - ' | daysNumber;

    EXECUTE IMMEDIATE backUpDDL;

    COMMIT;

    DELETE FROM Table1;

    How to select the data in the newly created table. as...

    Select * from ". tableName;

    Do not choose anything to get the number...

    Just after backupDDL EXECUTE IMMEDIATE, simply refers to SQL % ROWCOUNT - who will be the number of lines.

    Oh and DDL engages automatically, your commitment is redundant.

  • Select Max (Date) in two different tables...

    Dear all,

    I need the date of last update of two different tables, I mean max (date). We will update one table at a time. Updated once I need to take the last update.

    It can be either in table A table B.

    for example.

    Table A

    Date of the ID

    100 16/05/2014

    101 20/05/2014

    102, 22/05/2014

    Table B

    Date of the ID

    100 04/06/2014

    101, 26/05/2014

    102 21/05/2014

    I need the date of table B (101 26/05/2014) last updated date...

    Hello

    Another way, using much more GRAND:

    SELECT LARGER (max1, max2) x

    FROM (SELECT MAX (mydate) max1

    OF mytable_a

    )

    (SELECT MAX (myotherdate) max2

    OF mytable_b

    )

    ;

    Best regards

    Bruno Vroman.

  • How to get data from vROps?

    Hello

    In older versions, we could get out vROps via an adapter of repository data. But with vROps 6.0, I couldn't find that everything about repository adapter and the other as the HTTP Post adapter. I've seen a few posts on CaSa API and SDK, but there is no documentation on this topic. What can I use to get data on how do I configure it? I'll be happy if I can help.

    Kind regards

    Ramazan

    Hi Ramazan

    The API of CaSA is Cluster and Administration of the Group and is located at https://vrops-url/casa

    I have not found any documentation for it.

    What you need is https://vrops-urlsuite - api

    It is a small site with sample code and complete documentation. You can even call the API directly from your browser!

    Start with this, for example: https://vrops-url/suite-api/api/resources? name =something

    Kind regards

    Michael

  • How can I add (gather) two different images into a single image?

    Well, I'm creating a HTML element / CSS Web site. I have two logos that I need to add to the header areas of the Web page. I thought that creating a chart would contribute to this question. I want to be able to add two different images (logos) into a finished product. However, I am having some difficult understand how to combine two different images on the same workspace (tab).  The images would be out there with text in the middle of the space. I would use the 2015 Photoshop, does anyone have and ideas?

    If it was me I open one of the images then go to Image--> the canvas size.  Then expand TI (relative check) of several (12) inches in width and height (choose to anchor the part you want to stay where he is.)

    Open another image and drag it in the first.  Or select all and then copy / paste If you wish, you can you should now have two images in the same file/tab.  Everyone should be on different layers.  Use the move tool to position them how you want.

    Finally go to Image > Trim and leave the default values.  He must cut off all the excess.  Save in any format you want.

    I hope this helps.

  • How to synchronize files from two different subscriptions in two different Office CC files

    Hello

    I have two subscriptions for CC, work and staff. I ran the subscription of work in two computers at work and at home (when I need to work from home.) The problem I find, is that there are not two different folders to CC for each subscription. When I connect from my subscription to work, all my files from this subscription disappear. Then when I connect again, they all synchronize the process starts again. I chose to have two different subscriptions in order not to mix my personal work of my work. Is it possible to have a CC folder on my desktop for each subscription? In this way, when I log out of an account and switch to the other files of the account that I just connected not replaced for the files in the account in that I just signed.  Help with this will be greatly appreciated.

    Hello

    I just want you know what you should see when using 2 accounts.

    An account:

    1. connect with Adobe ID account

    2. synchronization of files to files creative cloud, which is located in your home directory on Mac or Windows.

    3 newspaper account one, creative Cloud now displays the log in the Panel.

    Two account:

    1. connect with Adobe ID account two

    2. synchronization of files creative Cloud account 2 which is located in your home directory on Mac or Windows. (His Creative Cloud Files account folder is called re)

    Things to check are:

    After you connect to account for two, creative cloud to account 1 file should be renamed, can you check this please make sure there.

    The same is true are you connect again to an account, record of the creative cloud has two will be renamed.

    The data should not have fully re - never synchronize when you open a session on the account 1 and account 2 then, however, can you be sure that the data is actually re download. That is to say; you had 5 GB of data in one account and when you log in account 1 whole 5 GB of data is re download?, could check you this?

    The creative files Cloud Panel will display "Synchronization" for a short time while change you account is, it's normal, and means the application reads data on disc and on the server of checking for changes / added files etc. This isn't re - download all your data, it is simply a check.

    You are able to move the creative cloud files folder to any location on your hard drive via the preferences of creative cloud.

    Thank you

    Warner

  • How to get data from a database table and insert into a file

    Hello
    I'm new to soa, I want to create an xml with the data from database tables, I'll have the xsd please suggest me how to get the data in the tables and insert in a file
    concerning

    in your bpel process, you can use the db adapter to communicate with the database.
    with this type of adapter, you can use stored procedures, selects, etc to get the data from your database into your bpel workflow.

    When did it call in your bpel to the db adapter process it will return an output_variable with the contents of your table data, represented in a style of xml form.

    After that, you can use the second card (a file synchronization adapter) to write to the content of this variable in output to the file system

  • How Adobe gets DATE and its format?

    Hello

    I'm current date (today) to below JS in some flds and below using FormCalc for some flds in my_form;

    JS:

    var currentTime = new Date()

    Form Calc:

    $.rawValue = num2date (date (), DateFmt(MM/DD/YYYY))

    But I have not much idea how adobe is at that date? For my business it is the first form, that's why they ask me how adobe gets so, date format and its

    1) count local address IP/Internet provider, format?

    (2) or PREMISES of the portable PC/computer user settings, date format? If Yes, for example, if the user (the laptop settings) Germany has a DD. MM YYYY configured, if this user is delivered to the United States on a business trip and if the user opens the form, and then how the date looks like for this user? Depending on the settings of computer laptop user JJ. MM YYYY or local internship provider date format MM/DD/YYYY?

    Thank you

    Go to PDF... No!

Maybe you are looking for

  • How can I restrict access Firefox to a site only?

    I launched an educational center and want that students will not be able to access a web site on a particular specific computer through Firefox. The computer is running Win XP. Use of this machine is sometimes not supervised and I want they cannot ac

  • HP Pavilion Windows 7 error reintstall

    My laptop HP Pavilion DM3 performance soon so I decided to reinstall a Windows 7 Home Premium. About 44% in the process, when copying the files, I get an error message: Recovery Manager could not repair via the factory image. error code: 0xe0ef0003 .

  • This HD for 2nd HD Pro A200 PSAE7E Satatellite mounting kit

    I have a Sat "Pro A200 PSAE7E and want to add a 2nd HD to your laptop, but it came without a 2nd HD mounting kit. Can anyone advise on what kit, I need to buy? As a matter of interest, I tried to mount the current HD in the second port and he won't,

  • Customers table WRT54GS problem

    After Update v.5 WRT54GS with the construction of the 1.57.7 firmware 013 dated July 27, 2009 (and a router of the reconstruction after the reset procedure) I find that the customers table is empty or incomplete. I would like to know my equipment loc

  • Extension drive C on windows 7

    Hello I just bought a new computer with windows 7 installed and have partitioned the C in C & D drive. I realize that I have left the C drive too small to about 40GB but seem unable to develop in the empty D partition. The D drive shows right on the