Oracle Vs DB2

I've been looking (extensively) for some documentation around Oracle (specifically 9 or higher) vs DB2/UDB (8.1 or higher) when it comes to performance and features around stored procedures. If someone can point me in the right direction (again - specifically around the above - I've found tons of stuff on the actual engine/tuning etc.) I would greatly appreciate it.

It's an application that was developed by an external group - however, they used UDB (which isn't the DB that we currently use/or are well versed in) and, they "attempted" to develop it as portable. However, in doing so - they created huge nested views which are completely disasterous in performance (some of them - when printed out - contain more than 25 pages of SQL).
I know PL/SQL - I know what can be done with it and, I'm fairly well versed in the performance tuning options of Oracle (and our DBA group here for Oracle is second to none)... so - my obvious comfort is to convert the UDB stuff to Oracle (which is of minimal impact as it hasn't been moved into production nor has over 2/3 of it even been tested as a result of the UDB views not functioning). In converting it to Oracle - I can re-develop the functionality the views were attempting in PL/SQL. I can do this quickly and efficiently without having to "guess" how to performance tune.
However - If we are forced (i.e. politics and managment) to continue to use UDB I'm relatively screwed. I don't know much about stored procs in UDB. What I do know is there are things available (i.e. bulk binds/collections/ranged partitioning) in Oracle that aren't available in UDB (all of which would greatly enhance our ability to properly get this stuff going).
Any information is appreciated. Thanks!

Similar Messages

  • Best Practice to Setup an application to work with both oracle and db2 db

    Hi,
    We have an application that currently supports both oracle and db2 databases . It is currently using JPA with eclipselink as backend mechanism and we want to move to ADFBc as our backend . So what is best practice to do this?
    I came across an old post in https://groups.google.com/forum/#!topic/adf-methodology/UlJZSTu14Io that states to create two different model projects to support oracle and db2 .
    Is this still the standard ? Is there a way that we could work around rather than creating multiple projects?
    How do i get the view controller to work with multiple model projects if this is the case?
    Thank you.

    Thanks for the response .
    The problem is i would have the same schema on both the databases (both in oracle and db2) .
    I don't see a scenario where i want both the application model projects at the same time . What i meant is , Application will either be deployed with Oracle DB or DB2 but not with both on a production environment .
    So is there a way where i just change the connection parameters alone rather having two different models ?
    If i have to use two model projects ,  would it be possible say i built the view controller for Oracle , and use it for DB2 if i make sure the BC objects names are similar between model projects and switch just the model jar based on the deployment environment ?
    -Sam

  • Database link from oracle to db2

    Can any help me to create a database link from oracle to db2. It would be greatful if you can provide me detail steps

    <p>You don't give us much information to go on. What version of Oracle? What platform is DB2 running on? You might want to take a look at <b>this</b>. You might also look <b>here</b> and <b>here</b>.</p>
    Tom

  • Re Migrating from Oracle to DB2

    Hi All,
    We are migrating from Oracle to DB2, so just wanted to know what will be the impact when we do this, i mean what all necessary steps should be taken to do so. I am a technical consultant involved in this project so not much idea regarding this.
    Also please let me know will it effect the custom i mean the Z programs that we have created. Please let me know regarding this.
    Thanks and Regards,
    Salish.

    > We are migrating from Oracle to DB2, so just wanted to know what will be the impact when we do this, i mean what all necessary steps should be taken to do so. I am a technical consultant involved in this project so not much idea regarding this.
    A heterogeneous migration (changing database and/or operating system) implies a certified migration consultant doing the migration, otherwise you'll loose support from SAP for problems during the migration and for the target system (http://service.sapcom/osdbmigration --> FAQ).
    > Also please let me know will it effect the custom i mean the Z programs that we have created. Please let me know regarding this.
    Depending on how you access the data you may need to increase/delete indexes or change the programs to get a better speed.
    Markus

  • Oracle  for  DB2 UDB DBA's

    Hi,
    In our  shop  management  decided  to  migrate  few  SAP R/3 applications  to  Oracle 10G (RAC)  from DB2 UDB.  I am  a  DB2 UDB DBA.  i  want  to  learn Oracle. Is  there  any manuals  or  published  books for Oracle DBA  for DB2 UDB DBA's in SAP environment.
    As  i  am  not  new  to  DBA world, i  want  to  compare Oracle with DB2 UDB . So that  i  can  learn Oracle fast.
    Regards,
    Sunil Gutta

    > As  i  am  not  new  to  DBA world, i  want  to
    > compare Oracle with DB2 UDB . So that  i  can  learn
    >  Oracle fast.
    have a look here:
    -> <a href="http://www.redbooks.ibm.com/abstracts/sg247048.html">Oracle to DB2 UDB Conversion Guide</a>
    it's the other way round but should give you enough to work on
    GreetZ, AH

  • How to move sql server DB to oracle and DB2 to oracle

    Hi ,
    I would like to like to know what is the work involved when
    i want to retire sql server database and move to oracle and db2 to oracle.
    Please let me know the tools used for this purpose or wha should be done actually.
    Thanks in advance

    For the SQL Server migration you could use the SQL Developer utility. More details can be found at:
    http://www.oracle.com/technetwork/database/migration/index-084442.html
    This SQL Developer based migration utility also supports DB2 migrations when the Db2 database is a UDB DB2 V7, V8 or V9 and if it is running on LUW. For ALL other DB2 databases no actual migration utility is available. Possible alternatives might be Golden Gate, Oracle Database Gateway or the SQL*Loader utility.

  • Migration from Oracle to DB2 UDB on Unix

    Hi SAP Expert
    We have different SAP landscape  in our company on Oracle DB
    Due to High Oracle Licensing cost we are planning to migrate our Database to DB2 to reduce license cost
    I would like to know how Reliable DB2 is for SAP? What is % of SAP installation on DB2 worldwide
    Also will there be challenge migrating DB from Oracle to DB2
    I would appreciate if you can provide guidance on the question
    Thanks in advace
    Thanks
    Deelip

    > I would like to know how Reliable DB2 is for SAP? What is % of SAP installation on DB2 worldwide
    DB2 was and is used on quite a number of internal SAP systems that create support packages (if you check the import logs of the support packages and search for "source system).
    SAP doesn't give any exact numbers of installations compared to other databases, they did that in the past.
    > Also will there be challenge migrating DB from Oracle to DB2
    As with every database migration you'll have to check your custom programs and secondary indexes, backup strategies and methods and such.
    > I would appreciate if you can provide guidance on the question
    Be aware of the fact that you must have a certified migration consultant doing the migration on-site, otherwise SAP will deny OSS support and bill (see http://service.sap.com/osdbmigration).
    Markus

  • ORACLE AGAINST DB2

    Hello everybody,
    in my company, we are running our SAP mission critical application on HP-UX systems based on Itanium tecnology.
    We are using Oracle database. Oracle recently announced that it won't release anymore the Itanium certification for new versions (starting from version 12).
    So, all people using Itanium with Oracle  platform have to decide the way to follow for the middle-long term.
    A solution should be to migrate the SAP installation from Oracle to DB2.
    Can someone tell me which is the SAP position on that topic (ORACLE or DB2) and  if there are benchmarks to compare SAP systems using Oracle and DB2?
    Thanks in advance
    Augusto

    > A solution should be to migrate the SAP installation from Oracle to DB2.
    Yes, or migrate to MaxDB on HP-UX, Sybase ASE on HP-UX or Windows with SQL Server
    Keep in mind that IBM may to a likewise step as Oracle in the future and stop developing DB2 on HP-UX/IA64 because the marketshare is decreasing even more.
    To stay with Oracle you could also migrate to Linux (on x86_64) and Oracle so you can keep your database.
    > Can someone tell me which is the SAP position on that topic (ORACLE or DB2) and  if there are benchmarks to compare SAP systems using Oracle and DB2?
    http://www.sap.com/benchmarks
    Generally all databases available and released for SAP products can be treated more or less "similar" in sense of performance. If you check the benchmarks there's not a big difference between the databases. It's more a question of features and eventually maintenance fees.
    Markus

  • Dblink from oracle to db2

    Hi all,
    please, can you explain me steps to create a database link from Oracle 10gR2 to DB2?

    Hi,
    You need to install one of the Database Gateways -
    11.1 Database Gateway for DRDA (DG4DRDA)
    11.2 Database Gateway for DB2 (DG4DB2)
    11.1 or 11.2 Database Gateway for ODBC (DG4ODBC)
    After the gateway is installed and configured then you create the database link which uses the gateway to manipulate data on DB2 - select, insert, update and delete, for example -
    select * from db2_table@gateway_db_link ;
    The database link is created using a tnsnames.ora entry which references the gateway setup.
    There is further information on the gateways available on My Oracle Support and OTN.
    If you want more specific detail then let us know -
    - if you have a gateway installed already and which one if so
    - what version of Oracle you are using
    - platform where Oracle is running
    - version of DB2 to access
    - platform where DB2 is running
    Regards,
    Mike

  • Pros and cons Oracle vs DB2

    Hi,
    We are studying the possibiliy to change our oracle database to DB2. We need to know if someone made the change and found advantages and disadvantages between the two databases.
    Our SAP runs on HP-UX and has a lot of  Z developments, we know that may be necessary to modify many of them to optimize the readings on the database.
    any comments would be helpful.
    thanks in advance
    Gonzalo

    > We are studying the possibiliy to change our oracle database to DB2. We need to know if someone made the change and found advantages and disadvantages between the two databases.
    Given the fact that you opened the thread in the DB2 for z/OS forum you mean that you're planning to migrate your systems to z/OS?
    > Our SAP runs on HP-UX and has a lot of  Z developments, we know that may be necessary to modify many of them to optimize the readings on the database.
    Well - you answered the question yourself already; you have to decide whether it makes sense to migrate a database from A to B in your environment.
    The program changes that may become necessary are only a one-time issue that comes with each migration. After that you should be safe. Also keep in mind that this kind of migration must be done by a certified migration consultant on-site (http://service.sap.com/osdbmigration).
    I suggest you call your SAP sales rep and get a test-/evaluation license from SAP for DB2 and a do a test migration to see what you'd need to do with your developments.
    Markus

  • Oracle from DB2 federation - function mapping

    I need to map an Oracle function (instr) from an InfoSphere function (postion) from the DB2 database, so this is more of a DB2 question, but never could get an answer out of DB2ools ;-)
    I have created the wrapper, server, user mapping and nicknames in DB2, but need to create a function mapping in DB2 between their "position(search, source, code) to our instr(search, source). This is a mapping of system functions, so I am not sure if it is possible... and their documentation is kludgy at best. The problem is this: POSITION(search, source, code), where code represents UTF-16, UTF-32 or code page translation. I want to force this syntax to pass to Oracle as INSTR(search, source), dropping their 'code'.
    This is the only function that does not work properly from the DB2 side to us. If anyone has the DB2 create function mapping command to do the above, my appreciation for the answer and condolences that you actually had to go thru the reams of IBM documentation.

    Addendum ...
    OK I found what the DIGIT function does.
    I am not sure if there is a function in Oracle that maps directly to DIGIT function in DB2
    but you can do something like this:
    select lpad(replace(to_char(abs(n)),'.'),
    (select to_number(data_precision) from user_tab_columns where table_name = 'A' and column_name = 'N'),'0')
    from a
    In the SQL above n is the column in table A. Data_precision column gets the size of the column.
    Option 2:
    You could write your own function in Oracle to do what the SQL above does
    create or replace function digit (col_val in number, col_name IN varchar2, tab_name IN varchar2) return varchar2
    as
    v_val varchar2(100);
    v_prec number;
    begin
    select to_number(data_precision) into v_prec from user_tab_columns where table_name = upper(tab_name) and column_name = upper(col_name);
    v_val := lpad(replace(to_char(abs(col_val)),'.'),v_prec,'0');
    return v_val;
    end;
    Then use the function as follows:
    select digit(n,'N','A') from a
    Shakti
    http://www.impact-sol.com
    Developers of Guggi Oracle - Tool for DBAs and Developers
    Message was edited by:
    skgoel

  • Oracle ---- DBLink ---- DB2

    Hi Techies,
    My requirement is to create a DBLink with SQL Server2000 (ofcourse from Oracle). I came to know about Oracle's Heterogeneous feature. Transaparent gateways, Agents are particulary interesting.
    But, in an implementation wise, I need a case wise help, which can help me, as an end user, to set up Oracle, install the Gateway, configure the Agent, and anything to be done at SQL Server2000 side.
    What should I do realize this?
    Your help is genuinely appreciated.
    Thanks and regards,
    Malik

    Hi,
    You need to install one of the Database Gateways -
    11.1 Database Gateway for DRDA (DG4DRDA)
    11.2 Database Gateway for DB2 (DG4DB2)
    11.1 or 11.2 Database Gateway for ODBC (DG4ODBC)
    After the gateway is installed and configured then you create the database link which uses the gateway to manipulate data on DB2 - select, insert, update and delete, for example -
    select * from db2_table@gateway_db_link ;
    The database link is created using a tnsnames.ora entry which references the gateway setup.
    There is further information on the gateways available on My Oracle Support and OTN.
    If you want more specific detail then let us know -
    - if you have a gateway installed already and which one if so
    - what version of Oracle you are using
    - platform where Oracle is running
    - version of DB2 to access
    - platform where DB2 is running
    Regards,
    Mike

  • Alternate for Update Stastics(Oracle) in DB2 for SAP instance

    Hi,
    We have installed SAP on DB2 database. Can any one tell me alternate of Update Stastics (Oracle based SAP system) in DB2.
    Some one suggested me that it is RUNSTAT but I do't know the process and when it should run.
    Thanks
    Lokendra Kumar

    Hi,
    In DB13 you will find job action Update Statistics + Reorgcheck all tables for DB2.
    If Automatic RUNSTATS is activated then its not required to schedule this job in DB13. If Automatic RUNSTATS is not activated in your Database, then you should have to schedule this Job in DB13.
    Refer [SAP Note 434495 - DB6: Maintaining table statistics via transaction DB13|https://service.sap.com/sap/support/notes/434495] to get more detailed information.
    Regards,
    Bhavik G. Shroff

  • SAP Database Migration from Oracle to DB2

    Hi All,
    Our client has decided to move the SAP database from Oracle 10.0.2 to IBM DB2. We will like to know list of activities which are required to be done from application side to support this.
    Also we want to know on how to find the report / interfaces where the code is written in native SQL (PL SQL) and not in open SQL (ABAP).
    Any pointers in this regard will be useful. Thanks.
    Best Regards,
    Vithal

    > Our client has decided to move the SAP database from Oracle 10.0.2 to IBM DB2. We will like to know list of activities which are required to be done from application side to support this.
    http://service.sap.com/osdbmigration
    > Also we want to know on how to find the report / interfaces where the code is written in native SQL (PL SQL) and not in open SQL (ABAP).
    I don't think there's an easy way to find that out.
    Markus

  • Equivalent of DB2  functions in ORACLE 11g

    Hi,
    I am trying to convert the SQL queries written in DB2 to ORACLE. There are some db2 specific functions are used in the queries.I am not able to find the equivalent function in ORACLE. The function names are written below:
    1) DateDD()
    2) SELECT @@IDENTITY
    3) SELECT *
    FROM (
    SELECT ROWNUMBER() OVER() AS rowId_1, INNER_TABLE.*
    FROM (----)as innertable
    ) AS Outertable
    Error is: ROWNUMBER is INVALID identifier.
    4) DAYOFWEEK()
    5) DAYS()
    6) dayofyear()
    Please help me in finding the equivalent function in ORACLE.
    Thanks in advance!!

    You probably don't need a DateAdd function in Oracle. You can add a number to a date in Oracle-- that adds the number of days to the date.
    SELECT sysdate today, sysdate+1 tomorrow
      FROM dualWhy are you using DAYS()? If, as in the example, you're just trying to determine the number of days between two dates, you can subtract dates in Oracle and the difference will be a number of days (including a fractional component if applicable)
    SELECT date '2011-09-27' - date '2011-09-25' difference_in_days
      FROM dualIf you really need the number of days since January 1, 0001, you could subtract the date from Jan 1, 0001, i.e.
    SELECT date '2011-09-27' - date '0001-01-01'
      FROM dualI would assume that Oracle and DB2 would return the same number but there could well be some differences since the current calendar didn't exist in the year 1 and I know there were issues in the transition from the Gregorian to the Julian calendar where some days were decreed not to exist. It wouldn't shock me if Oracle and DB2 counted some of the days in the 1500's differently.
    Justin

Maybe you are looking for

  • 2nd snapshot

    I am using 2008 R2 enterprise when i tried to take the 2nd snapshot of a database, it says the logical filename doesn't exist in the source database. any work around ?

  • IChat video chat not working

    I am using iChat v 4.0.9 . I am using OS X 10.5.8 I have used video chat with no problems until today. I can only audio chat. I get a message saying "this Computer does not support video conferencing." I can use my iSight find in photo booth. I do no

  • Trouble with Photo Sharing in Elements 9?

    PSE 9 only seems to send about 1 in 5 of my attempts to mail a photo attachment or photo mail.  It's very frustrating.  Every time I try to send an email, it appears to work and shows it uploading to 100% but then, like I said, only 1 in 5 actually g

  • International characters not showing up in certain apps?

    I'm using Dreamweaver CS3 and international characters aren't showing up. There are blank spaces where they used to be. The characters are still there, it's just that they appear as blank spaces (I can copy and paste them and see them elsewhere). Thi

  • MD5 - Size Of Digested Byte Array

    Hey There. After MD5 digesting and then Base64Encoding a string, I would end up with a byte array such as this: GH70Q2Ei0cwvQNwrkvDroA== It changes with the input, but is always 24 characters in length. I would have thought it to be 32 characters. An