Number of databases such as Oracle and SQL Server in the same application ADF

Hello

In my application, I need to use two different databases such as Oracle and SQL Server. There are screens that I need to develop in the ADF where I need to involve fields of the tables in these two different databases. I just want to know - is it possible to do so in application of the ADF?

Or to create a sort of link between these databases in the backend? Then create a view object involving some distributed SQL queries. What can I do with this type of request than anything? I mean, can I use the two insert or update operation using this VO?

Or y at - it another way to do this?

Please help, help here would be really appreciated. I've been stuck with this problem for a while now. I did search our forums for the same problem, but was not able to find a reliable solution.

Thank you
Vijay

It's still not clear to me if you need two db tables in a query, or a transaction.
If this is the case, your best option (to my knowledge) is to use a db link. in this way, you only need to access (for example the oracle db) and can access the objects from the other data from the oracle database.
I don't understand
>
(3) a model project with a meeting of the two datasource. I selected a data source and created OT and VO. When I have selected a different data source and select tables to create VO and EO and finished but these EO and VO is displayed in project. >

(2) If you need to link data from these two dbs you can not use this approach (see the note at the top of the post)

Timo

Tags: Java

Similar Questions

  • Need help to write to Oracle and SQL Server in the Oracle triggering

    We have a third which feeds data for us. Their client application feeds directly to some source tables in our Oracle database 10g. We have triggers on those tables that sort and treat lines as they come.

    We have a new operation and try to write some of these incoming data now to a SQL Server database through heterogeneous services - essentially the same exact data in two databases. I have a related database that works very well for the selection, but I've never tried to write Oracle PL/SQL to write in a DB SQL Server 2008. My first attempt was met with the following error: "ORA-02047: impossible to join the current distributed transaction.

    I found another thread where they say that the only way to do it is by using a stand-alone transaction, but they do not give an example. Here is the section of relaxation that I use:
      select to_char(new_date,'MM-DD-YYYY') into sql_txt from dual;
      insert into mancamp_location@sqlweb
           ("UnitID", "ManCampID", "Lat", "Long", "UpdateDT", "VehSpeed", "VehDirection", "Landmark")
        values (v_truck, f_unit, f_lat, f_long, sql_txt, f_spd, f_dir, f_ldmk);
    Can someone point me to a way to accomplish this simple insertion?

    An example of a standalone trigger is:

    Suppose you have a table in Oracle:

    CREATE TABLE emp_sal
    (
    EMPNO NUMBER 4,
    SAL NUMBER (7.2));

    and a similar table in a SQL server:
    SQL Server:

    CREATE TABLE emp_sal
    (
    EMPNO NUMERIC (4).
    SAL NUMERIC (7.2));

    Then, you can create an insert trigger that replicates the data:
    CREATE OR REPLACE TRIGGER dg4odbc_repl AFTER INSERT ON emp_sal
    FOR EACH LINE
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB '.
    VALUES (: new.empno,: new.sal);
    COMMIT;
    END;
    /

    -Note the validation, otherwise risk of ORA-6519

    When you now insert a record into the Oracle database:
    insert into emp_sal values (1234, '1200,89');
    the trigger is activated and inserts the record in SQL Server:
    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    It works fine when you post data insert, but as soon as restore you the insert only data Oracle will be cancelled - data will remain as long as the independent transaction dedicated to its SQL Server insert:

    insert into emp_sal values (1384, '1200,89');
    Rollback;
    Select * from emp_sal;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89
    1384 1200.89

    So I strongly recommend to use the DG4MSQL gateway which is able to participate in distributed transactions and allows validation/restore transactions.

    DG4ODBC lie on OTN (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html-online check out the "See all" link for your favorite platform), cloud of delivery of software Oracle (https://edelivery.oracle.com/) or "My Oracle Support". My Oracle support welcomes the latest version 11.2.0.3. In My Oracle Support goto patches and updates, then search for 11.2.0.3 data set Patch 10404530patch: 11.2.0.3.0 PATCH SET for ORACLE database SERVER, choose your preferred platform and see the Readme which CD contains the gateway software.

    Published by: kgronau on April 24, 2012 08:44

  • Unlike char in ORACLE and SQL SERVER

    Hello gurus,

    I tried to querying data from Oracle to sql server through linked server, but get me an error! set length corresponds to the error! I know there are CHAR data type in sql server and thus as in oracle.

    But when I use the CAST FUNCTION with CHAR it works fine
    -- error code 
    
      select * from openquery( linkoracle11 
               select  col1, col2, col3 from test_table )
    
    
    -- say col3 char(1)   -- data type
    ---

    -- working code 
    
      select * from openquery ( linkoracle 11 
               select  col1, col2, cast (col3 as char(1)) as col_3 from test_table )
    I was wondering, what is the difference between oracle and sql server for the CHAR data type?

    The gurus of the idea?

    Thank you

    What is the error you get?

    What is the characters in database and NLS_LENGTH_SEMANTICS game on your Oracle system?

    SELECT *
      FROM v$nls_parameters
     WHERE name LIKE '%CHARACTERSET';
    
    SQL> SHOW PARAMETER nls_length_semantics;
    

    What is the character set of data in SQL Server?

    If your local database is a variable length character set (like UTF8) and NLS_LENGTH_SEMANTICS is set to (default) BYTES, a char (1) allocate 1 byte of storage which may not be sufficient for a single character. The receiving application may need to allocate a buffer with 3 times more many bytes as there are characters in order to ensure that it will be able to process the result. I don't know why add an implicit CAST that would change, but since we are several levels removed from the code to figure out how large a buffer to allocate, it is not very surprising.

    Justin

  • Sort of the differences between Oracle and SQL Server

    Hi all

    This question is linked by both Oracle and SQL Server

    I have a requirement where I want to compare 2 tables line by line. A table is in Oracle and other table in SQL Server

    And suppose that both tables do not have a primary key. Now when I sort records by using the order by clause for a column, then-

    Rows with null values in that column of Oracle are placed in the background.
    When that rows with null values in the same column in SQL Server are placed right at the top.

    How can I make one of them to behave like any other.

    My only goal is to have same order of lines in Oracle and SQL Server tables so that I can compare line by line.

    YADQ: Yet another Doc Question

    Can you please avoid them?

    Take your SQL reference manual, search for the ORDER BY clause and notice that it has
    NULL FIRST or LAST values NULL values.

    ------------
    Sybrand Bakker
    Senior Oracle DBA

  • corresponding data types n/b oracle and sql server

    everyone here knows that if there is a list of the data types supported by oracle and sql server (no matter releases and versions?

    an immediate response would be appreciated.

    Thank you.

    Hello

    Next post might be useful for you:

    http://msdn.Microsoft.com/en-us/library/ms151817.aspx

    If that's what you're looking for, then mark the question answered and closed.

    Kind regards
    Naveed.

  • possible to install the client tools OBIEE and OBIEE server in the same machine

    Hello

    possible to install the client tools OBIEE and OBIEE server in the same machine.

    Ex:

    Last week I've updated Patch BP1 in my local system, in the process, we got the update also oracle Client tool

    But in my Administration tool in the built-in tool automatically updated, we need to install the client tool in my system?

    My doubt:
    Please check this screenshot
    http://ScrnSht.com/sskbjb
    Please help me,

    Thank you

    You should not install client tools because they will be automatically installed w install the server. The 11g installation guide says "do not install client tools on the same computers that host your server instances Oracle Business Intelligence, client tools are already installed on these computers (as part of the installation of Oracle Business Intelligence)."

    so useful, mark it as good or useful.

  • Oracle and SQL server database

    Hello

    Is there another way to directly see the data stored in the oracle database or I can see it only through an external tool such as SQL Server?

    Thank you

    J

    997282 wrote:
    Hello

    Is there another way to directly see the data stored in the oracle database or I can see it only through an external tool such as SQL Server?

    Thank you

    J

    What do you mean by "an external tool such as SQL Sever"?
    SQL Server is Microsoft's RDBMS product.

    Oracle data files are in a binary format that is known only to Oracle. (Like SQL Server data files are in a binary format known only to Microsoft). Unless you're talking about a binary dump, they can be "seen" by the published interface that is used by all clients. In the case of Oracle, these customers would include sqlplus and a multitude of third-party products, as well as programming languages that can make calls to the oracle SQL Developer interface. And in all cases, he will eventually return to pass SQL statements.

    What is your goal?

  • Oracle and sql server

    Hello

    Am a beginner in ODI. I'm frm data source SQL Server and my target table is in Oracle.

    I observed the tht some of developed interfaces they apply some functions such as trim, convert etc.

    When and why do we need to do this?

    For example if the data source type is of type char, fucntions as a garnish are applied. How can we know when to apply this kind of functions?

    Any help is appreciated.

    Thank you
    ADI

    Hello Adi,

    As a line from bottom of the ETL/ELT concept, when you do any kind of transformation from different source to your data warehouse, you will need to concern about your table DWH metadata structures and date types. If at the time of the map according to the target table manipulations (trim, substr, cast, convert etc.) and more were made to ensure that the target is not data type having violated and data are successfully met.

    How can we know when to apply this kind of functions?

    Yes, you need to know how, where, what and when these functions should be applied by DRAWN from your data source, the target tables and business concepts.

    Makes sense?

    Thank you
    Guru

  • Use different accounts of DPS for iPad and Android versions of the same application?

    Hello

    When to create a version of a DPS iPad app Android the account used to create the content (the 'title ID' in the DPS application Builder) are the same for both versions, or different? In the content viewer I know that iPad content will appear the same on Android, so I think that the answer is probably no, but I failed to find it mentioned in the Adobe documentation.

    Thank you


    Toby

    It depends, but generally the answer is that you want to use a different account for iOS and Android. Not all features are supported in iOS viewer supported in Android Viewer. For example, if you use panoramas and specific views web iOS in your articles, you'll want to be able to use a different content for viewers of Android. Search for "dps supported features" for a comparative table.

    I use different Application accounts for my applications. I use the feature of sharing/copy to transfer the folios of the account iOS on behalf of Android (or Windows). Then I remove the few items that don't work well in the viewer and replace them with items generated from the different source files. Which works well and does not require much additional effort.

    If you want to reduce the amount of black strips the viewer of Android, you might want to use different accounts and use, for example, 1280 x 800 sheets instead of 1024 x 768.

  • Agent backup and VirtualCenter Server on the same computer?

    It's maybe a stupid question but I in the phases of planning for virtualization of a bunch of servers I know none better yet.

    We will use Tivoli Storage Manager for snapshot backups and files.

    Can I have the same physical machine Act to the virtual host and backup VCB agent or if it was a separate machine?

    We will have 2 LUNS on an iSCSI Equalogic PS500X and 10-12 VMS box.

    Thank you

    Jeff

    It is possible, but not recommended.  This was taken from the VCB release notes:

    VirtualCenter 2.5 and Consolidated Backup can coexist on the same system. However, because the Consolidated Backup proxy has to be locked down as much as possible, VMware does not recommend this configuration.

  • Change my Win 2008 and SQL Server on the server with SATA drives to the server with SAS disks

    I need to change my disks on my HP Server. Disco SATA Raid 1, I have to pass it to a server with SAS disks

    I haver Windows 2008 Server 64-bit installed SQL

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited to the audience on MSDN. Please post your question in the below link:

    http://social.msdn.Microsoft.com/forums/en/category/SQLServer

  • Data migration from Oracle to SQL Server

    Hello

    I have the Oracle database in one or several table, I also blob data, i.e. images are stored, now I want to move that data to the sql server database, which is the best way to do this?

    I would like to test for a migration of the table that contains the image data in the Oracle database and invade the SQL Server table.

    How to test for an Oracle table data to SQL Server migration?

    But the first thing I want to confirm is that if the Image from Oracle DB to SQL Server DB data are possible? is there something must be supported during the migration?

    Thanks in advance.

    Kind regards

    Vishal

    Published by: 968331 on October 31, 2012 02:31

    I think that it is supported. The equivalent data type in sql server is IMAGE/varbinary (max)

    See the bottom of the article for the mapping of data types:

    http://weblogs.sqlteam.com/jamesw/archive/2010/07/28/datatypes-translation-between-Oracle-and-SQL-Server-part-1.aspx

  • Oracle 10 g 2 64 bit odbc to oracle to sql server Win 2008 EE 64 bit

    Hi, I have a problem with a creation of 64-bit 10 g oracle to sql server odbc 2, I have several instructions with no luck at all. My OS is windows 2008 EE 64 bit on the server oracle and sql server.

    That's what I did

    1. in the directory of $oracle_home/hs/admin
    inithsodbc.ora
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = hsodbc
    HS_FDS_TRACE_LEVEL = off

    2. in the $oracle_home/network/admin
    listener.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = hsodbc)
    (ORACLE_HOME=C:\oracle\product\10.2.0\db_1)
    (PROGRAM=C:\oracle\product\10.2.0\db_1\hs\hsodbc)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx) (PORT = 1521))
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    )
    )

    And the tnsname.ora

    tnsnames.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    PRUEBA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = test)
    )
    )

    hsodbc =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST=xx.xx.xx.xx) (PORT = 1521))
    (CONNECT_DATA = (SID = hsodbc))
    (HS = OK)
    )

    I create the connection odbc test, the result is TEST PASSED

    4. the i create a database on my database link
    CREATE THE DATABASE LINK XYZ PUBLIC
    CONNECT to 'sysdba' IDENTIFIED BY 'masterkey '.
    Using "hsodbc."

    5. run a select
    SQL > select * from dual@XYZ;
    Select * from dual@XYZ
    *
    ERROR on line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Cannot retrieve the text of the message NETWORK/NCR 65535
    ORA-02063: preceding 2 lines of XYZ

    6. when I check the log of the listener, I get this error

    March 25, 2011 11:48:40 * (CONNECT_DATA = (CID = (PROGRAM =)(HOST=) (USER = Administrator)) (COMMAND = status)(ARGUMENTS=64) (SERVICE = LISTENER) (VERSION = 169870592)) * status * 0
    March 25, 2011 11:48:47 * (CONNECT_DATA = (SID = hsodbc) (CID = (PROGRAM =) (HOST =)(USER=PRO\Administrator) PRO)) * (ADDRESS = (PROTOCOL = tcp (PORT = 49329))(HOST=xx.xx.xx.xx)) * establish * hsodbc * 12518
    TNS-12518: TNS:listener could not hand off client connection
    AMT-12560: TNS:protocol adapter error
    AMT-00530: Protocol adapter error

    Published by: user626125 on March 26, 2011 11:39

    Published by: user626125 on April 12, 2011 14:49

    I guess the point of the answer above was to close and move this thread to the appropriate forum.

  • For TMS Win2008 Server and SQL Server client access licenses?

    Where, I read that the TMSXE interface requires a CAL on the Exchange Server.  What I can't seem to locate is all information about client access licenses how are required to Win2008 R2 Server Standard Edition and SQL Server 2008 R2 Standard.  Is there a reference document that I'm missing with this information.  It seems that according to Microsofts definitions, you might need a CAL by user device and/or managed web that connects to the web interface.

    Can someone clarify the situation?

    Hello world

    So should put the closure of this thread, I have now clarified what follows when it comes to TMS and MS licenses:

    Users and administrators to connect to TMS authenticate AD, the server that hosts the TMS must be allowed to support authenticated connections. Don't authenticate TMS Managed/configure with AD devices via the web server. As a result, and as managed devices does not authenticate against IIS with AD login, these types of connections don't require licenses. Only users who connect to the Web site would be.

    The issue of Exchange and SQL are similar, that is, authenticated connections how are made?

    Of MSDS, all connections to SQL server use the same authenticated account, by default uses a SQL login.  Web site users are not authenticated to SQL Server. Therefore, and in the case of an external SQL Server, this would be equal to one.

    When communicating with Exchange, all connections are through a unique service account. Created for managed systems the mailboxes are not connected by users or MSDS for normal operation. As a result, and as with an external SQL Server, this would be also equal to one.

    Hope that clarifies completely now

    Rgds,

    Dale

  • vCenter Server and SQL server affinity

    Is there a best practice for the rules of the affinity between a vCenter server and a SQL server VM in the same cluster?

    Thank you

    I think that separation would be mainly for safety.  Maybe to keep the SQL Server in a broadcast domain separate servers so that they do not receive all the Windows usual chatter.

    Most of the environments I've worked have been small enough to either do not have more than a few tens of machines virtual hosts/250, or overworked staff that cannot be dedicated to security, s/n, etc., and the decision was taken to run the DB in SQL Server on the same server as the application of vCenter to reduce the complexity and rely on the host/network/SQL Server security and properly locking to the bottom of vCenter.

    As I said before, there is a good chance you won't notice a difference, performance wise, anyway.

Maybe you are looking for