SlideShare ist ein Scribd-Unternehmen logo
1 von 38
Sybase to
                                                       Oracle
                                                Critical information for new
                                                           Oracle developers




1-1   Sybase to Oracle Migration - Developers
Presentation Background...




1-2   Sybase to Oracle Migration - Developers
About The Speaker
      Christopher Merry is principle consultant at Clearwater
      Technical Group
      Oracle Certified Professional and Certified Professional in
      Learning and Performance
      10 years of experience working with Oracle
        Including time at Oracle Corporation
      9 years of experience as a trainer for Learning Tree International
      3 years of experience working with several universities to
      migrate SunGard Advance from Sybase to Oracle




1-3       Sybase to Oracle Migration - Developers
About This Presentation
      Developed to identify significant differences between Sybase
      and Oracle database environments
      Part of a series prepared by CTG to assist clients (and others) in
      their for migration challenges ahead
      Other presentations include
        Sybase to Oracle Migration for DBAs
        Sybase to Oracle Data Migration Steps
        Sybase to Oracle - T/SQL and PL/SQL
        Bridging the Gap Between Advance Windows and AWA
        Web Skills for AWA Customization
        And more on the way


1-4       Sybase to Oracle Migration - Developers
About CTG
      CTG is a small technical group specializing in Oracle consulting
      with key experience assisting several universities migrate from
      SunGard’s Advance Windows to Advance Web Access
      CTG is not in anyway affiliated or partnered with SunGard Data
      Systems, Inc.




1-5       Sybase to Oracle Migration - Developers
Objectives
      Evaluate the tools available to access an Oracle database
        Oracle tools
        Third party applications
      Compare data type options in both environments
      Identify significant differences in SQL
        Temporary tables
        Updates
        Grouping
      Discuss transaction and data control
      Evaluate schemas, privileges, and synonyms in Oracle


1-6       Sybase to Oracle Migration - Developers
Database Access Tools...




1-7   Sybase to Oracle Migration - Developers
Oracle Supplied Tools
      Complimentary tools from Oracle are available to access Oracle
      databases
        Limited in functionality
      Oracle Database 10g tools include:
        SQL*Plus
           Command line tool similar to SQL Advantage or isql

        SQL Developer
           Oracle’s newest access tool
           Java application
           Includes data migration features to import Sybase objects into Oracle
           A little buggy and not as feature rich as other options




1-8       Sybase to Oracle Migration - Developers
SQL*Plus




1-9   Sybase to Oracle Migration - Developers
SQL Developer




1-10   Sybase to Oracle Migration - Developers
Third Party Tools
       Many third party options are available
         Product cost varies based on version and features desired
       Popular software includes
         Golden
            Basic, inexpensive product ($35) offering many features used by developers

         Toad
            The dominant Oracle tool for years, Toad was once a free product
            Now owned by Quest Software, it is one of the higher priced options
            Starting at $870 for the basic edition (additional modules are available)




1-11       Sybase to Oracle Migration - Developers
Third Party Tools (cont’d)
       More software options
         SQL Navigator
            The flagship Quest Software Oracle tool
            The highest cost among the products mentioned here
            Base edition starts are $1,300 with additional editions retailing for $3,000

         PL/SQL Developer - HIGHLY RECOMMENDED
            The best feature set for the money
            Offered by Allround Automations
            Single license cost is $180 with discounts for multiple license packages




1-12       Sybase to Oracle Migration - Developers
PL/SQL Developer




1-13   Sybase to Oracle Migration - Developers
Data Types...




1-14   Sybase to Oracle Migration - Developers
Data Types
       While many data types differ between Sybase and Oracle, DATE
       values are the most significantly different
       CHAR
         Exists in both environments
         Sybase maximum length is 255 characters; Oracle maximum length is
         2000 bytes
       VARCHAR
         Exists in both environments
         Sybase maximum length is 255 characters; Oracle maximum length is
         4000 bytes
         Oracle also includes VARCHAR2, which is the recommended data type



1-15       Sybase to Oracle Migration - Developers
Data Types (cont’d)
       TEXT
         The Oracle equivalent is VARCHAR2 (up to 4000 bytes) or CLOB for text
         up to and beyond 4GB
       NUMERIC, DECIMAL, INT
         Available in both environments
         Exist as subtypes in Oracle
            NUMBER is Oracle’s standard numeric data type

       FLOAT
         Available in both environments




1-16       Sybase to Oracle Migration - Developers
Data Types (cont’d)
       REAL, TINYINT, SMALLINT, MONEY, SMALLMONEY
         Not available in Oracle; must use equivalent NUMBER definitions
       Dates
         All DATE values are stored in Oracle as a 7 byte field that always
         includes century, year, month, day, hours, minutes, and seconds
            Date formating is handled using format models
                YYYY represents a four digit year and MON represents the first three characters of a
                month (e.g. DD-MON-YYYY represents 01-JAN-2010)

       TIMESTAMP
         Available in both environments
         Contains fractions of a second in Oracle



1-17       Sybase to Oracle Migration - Developers
User-Defined Data Types
       Oracle supports user-defined data types through the creation of
       Object Types
       The implementation is quite different from Sybase user-defined
       data types
         Requires special SQL constructs
         More complex




1-18       Sybase to Oracle Migration - Developers
NULL Character Strings
       Empty character strings ('') are treated the same as NULL
       values in Oracle
       This is significant as conditions such as the following will never
       be true (even if the STREET2 value is empty)
       IF TRIM(street2) > '' THEN

       Instead, the condition should use the IS NOT NULL operator
       IF TRIM(street2) IS NOT NULL THEN




1-19       Sybase to Oracle Migration - Developers
Structured Query Language...




1-20   Sybase to Oracle Migration - Developers
Structured Query Language
       Oracle and Sybase are ANSI standard complient
         The majority of SQL syntax is identical
            Some functionality is available in both environments with different syntax and
            terminology
            Sybase provides a few additional features not found in Oracle
            Oracle provides a few additional features not found in Sybase

       Key differences include
         Temporary tables
         Subqueryies in update and delete statements
         Group By rules




1-21       Sybase to Oracle Migration - Developers
Temporary Tables
       One of the biggest issues associated with converting existing
       Sybase scripts and stored procedures to Oracle is the lack of
       pure temporary tables in Oracle
       Oracle does make use of Global Temporary Tables; however, the
       behavior of these objects is not strictly “temporary” in nature
         These objects can be used as an alternative; however, the creation of
         global temporary tables will significantly increase the number objects in
         the database
       Other alternatives include
         PL/SQL collections
         Advanced SQL techniques




1-22       Sybase to Oracle Migration - Developers
Updates with Subqueries
       Oracle does not allow the FROM clause in the UPDATE
       statement
       Therefore, the following statement is not valid in Oracle
       UPDATE   address
       SET      street1 = 'New Address'
       FROM     entity e, address a
       WHERE    e.id_number     = a.id_number
         AND    a.addr_pref_ind = 'Y'
         AND    e.report_name   = 'JOHN DOE'




1-23       Sybase to Oracle Migration - Developers
Updates with Subqueries (cont’d)
       The following statement would be valid in both environments
       UPDATE address a
       SET    street1 = 'New Address'
       WHERE EXISTS ( SELECT 1
                        FROM  entity e
                        WHERE e.id_number = a.id_number
                          AND a.addr_pref_ind = 'Y'
                          AND e.report_name = 'JOHN DOE' )




1-24       Sybase to Oracle Migration - Developers
Group By Restrictions
       When mixing scalar values and aggregate functions, Oracle
       requires all scalar values to be included in the GROUP BY
       clause
       For example, the following statement, which is valid in Sybase,
       will not execute in Oracle
          The statement is intended to retrieve each gift given by an entity, along
          with a total amount given in the last column
          SELECT id_number, gift_amount
               , SUM(gift_amount) AS gift_total
          FROM   gift
          GROUP BY id_number
       NOTE: Analytic functions can be used to generate the desired results




1-25        Sybase to Oracle Migration - Developers
Group By Sample Output
        ID_NUMBER            GIFT_AMOUNT                GIFT_TOTAL
       ----------            -----------                ----------
       ....

       0000045621                         1000               5250
       0000045621                         1250               5250
       0000045621                         1500               5250
       0000045621                         1500               5250

       0000834224                          900               3700
       0000834224                         1200               3700
       0000834224                          500               3700
       0000834224                          600               3700
       0000834224                          500               3700

       ....



1-26          Sybase to Oracle Migration - Developers
Functions...




1-27   Sybase to Oracle Migration - Developers
Functions
       Oracle provides many functions available in both SQL and PL/
       SQL
       Many functions are either the same or only slightly different
       There are significant differences in a few types of functions
         Date functions
         Regular Expressions
         Analytic Functions




1-28       Sybase to Oracle Migration - Developers
Analytic Function Example
       Resolve the earlier grouping issue using an analytic function
         Also include a ranking column to indicate the gift value in descending
         order
         SELECT id_number
              , gift_amount
              , RANK()
                OVER( PARTITION BY id_number
                      ORDER BY gift_amount DESC ) AS gift_rank
              , SUM(gift_amount)
                OVER( PARTITION BY id_number ) AS gift_total
         FROM   gift




1-29       Sybase to Oracle Migration - Developers
Analytic Function Results
        ID_NUMBER            GIFT_AMOUNT                GIFT_RANK   GIFT_TOTAL
       ----------            -----------                ---------   ----------
       ....

       0000045621                         1500                  1         5250
       0000045621                         1500                  1         5250
       0000045621                         1250                  3         5250
       0000045621                         1000                  4         5250

       0000834224                         1200                  1         3700
       0000834224                          900                  2         3700
       0000834224                          600                  3         3700
       0000834224                          500                  4         3700
       0000834224                          500                  4         3700

       ....



1-30          Sybase to Oracle Migration - Developers
Regular Expression Function Example
       Reformat a character string that represents a date value
         The original data format is YYYYMMDD; the output is MM/DD/YYYY
         SELECT birth_dt
              , REGEXP_REPLACE
                ( birth_dt
                , '([12][890][0-9]{2})([01][0-9])([0-3][0-9])'
                , '2/3/1' ) AS formated_bday
         FROM   entity

         BIRTH_DT       FORMATED_B
         --------       ----------
         19520626       06/26/1952
         00000613
         19540608       06/08/1954
         19450703       07/03/1945



1-31       Sybase to Oracle Migration - Developers
Transactions...




1-32   Sybase to Oracle Migration - Developers
Transactions
       Oracle never commits a single INSERT, UPDATE, or DELETE
       statement
         Assuming the user does not disconnect from the current session
       Similar behavior to the Sybase BEGIN TRANSACTION statement
       Until a user issues a COMMIT statement, changes made in one
       session cannot be seen in another session
         A read consistent view of the data is available in the other session




1-33       Sybase to Oracle Migration - Developers
Schemas and Privileges...




1-34   Sybase to Oracle Migration - Developers
Schemas and Privileges
       Oracle segregates data in schemas
         Users that create objects such as tables and stored procedures have a
         schema
         Users that only access other’s objects do not have a schema
       If a user does not own an object, privilege must be granted to
       the user for the object
       GRANT SELECT ON advance.entity TO chris




1-35       Sybase to Oracle Migration - Developers
Accessing Schema Objects
       Using the previous example, if the user CHRIS executes the
       query below, the ENTITY table in the ADVANCE schema may not
       be accessed
       SELECT * FROM entity
       To ensure the ADVANCE schema is used, execute
       SELECT * FROM advance.entity
       An exception to this behavior would occur if
         The user does not have a table of the same name in his or her own
         schema AND
         A synonym exist for the ADVANCE.ENTITY table
            A synonym “redirects” access to an object in another schema




1-36       Sybase to Oracle Migration - Developers
What’s Next...




1-37   Sybase to Oracle Migration - Developers
Migration Road Map
       Of course this presentation only illustrates a few of the
       differences between Oracle and Sybase
       For more details regarding Oracle, take a look at the
       documentation available on Oracle’s website
       Contact us if you have questions regarding this or any of our
       other presentation
         (888) 347-7477
         info@clearwatertg.com
         http://www.clearwatertg.com




1-38       Sybase to Oracle Migration - Developers

Weitere ähnliche Inhalte

Was ist angesagt?

(DVO315) Log, Monitor and Analyze your IT with Amazon CloudWatch
(DVO315) Log, Monitor and Analyze your IT with Amazon CloudWatch(DVO315) Log, Monitor and Analyze your IT with Amazon CloudWatch
(DVO315) Log, Monitor and Analyze your IT with Amazon CloudWatchAmazon Web Services
 
stms
stmsstms
stmsRaj p
 
Accelerate Adoption of SAP S/4HANA with Intelligent, Continuous Automation
Accelerate Adoption of SAP S/4HANA with Intelligent, Continuous AutomationAccelerate Adoption of SAP S/4HANA with Intelligent, Continuous Automation
Accelerate Adoption of SAP S/4HANA with Intelligent, Continuous AutomationWorksoft
 
Migrating SAP Workloads to AWS: Stories and Tips - AWS Summit Sydney
Migrating SAP Workloads to AWS: Stories and Tips - AWS Summit SydneyMigrating SAP Workloads to AWS: Stories and Tips - AWS Summit Sydney
Migrating SAP Workloads to AWS: Stories and Tips - AWS Summit SydneyAmazon Web Services
 
SAP HANA Migration Deck.pptx
SAP HANA Migration Deck.pptxSAP HANA Migration Deck.pptx
SAP HANA Migration Deck.pptxSingbBablu
 
Using SolMan ChaRM, CSOL and Retrofit to support a dual project and productio...
Using SolMan ChaRM, CSOL and Retrofit to support a dual project and productio...Using SolMan ChaRM, CSOL and Retrofit to support a dual project and productio...
Using SolMan ChaRM, CSOL and Retrofit to support a dual project and productio...Robert Max
 
Migrating Critical Workloads at Scale: Best Practice for SAP Migration - AWS ...
Migrating Critical Workloads at Scale: Best Practice for SAP Migration - AWS ...Migrating Critical Workloads at Scale: Best Practice for SAP Migration - AWS ...
Migrating Critical Workloads at Scale: Best Practice for SAP Migration - AWS ...Amazon Web Services
 
SAP S4HANA Migration Cockpit.pdf
SAP S4HANA Migration Cockpit.pdfSAP S4HANA Migration Cockpit.pdf
SAP S4HANA Migration Cockpit.pdfKrishnaAkula4
 
SAP S/4HANA Migration Cockpit
SAP S/4HANA Migration CockpitSAP S/4HANA Migration Cockpit
SAP S/4HANA Migration CockpitEdwin Weijers
 
Overview SQL Server 2019
Overview SQL Server 2019Overview SQL Server 2019
Overview SQL Server 2019Juan Fabian
 
Oracle Service Cloud overview
Oracle Service Cloud overviewOracle Service Cloud overview
Oracle Service Cloud overviewBang Ta
 
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)Pierluigi Demaria
 
Data Analytics on AWS
Data Analytics on AWSData Analytics on AWS
Data Analytics on AWSDanilo Poccia
 
How to estimate the cost of a Maximo migration project with a high level of c...
How to estimate the cost of a Maximo migration project with a high level of c...How to estimate the cost of a Maximo migration project with a high level of c...
How to estimate the cost of a Maximo migration project with a high level of c...Mariano Zelaya Feijoo
 

Was ist angesagt? (20)

Integrating Apache Spark and NiFi for Data Lakes
Integrating Apache Spark and NiFi for Data LakesIntegrating Apache Spark and NiFi for Data Lakes
Integrating Apache Spark and NiFi for Data Lakes
 
(DVO315) Log, Monitor and Analyze your IT with Amazon CloudWatch
(DVO315) Log, Monitor and Analyze your IT with Amazon CloudWatch(DVO315) Log, Monitor and Analyze your IT with Amazon CloudWatch
(DVO315) Log, Monitor and Analyze your IT with Amazon CloudWatch
 
stms
stmsstms
stms
 
Sap Business Objects solutioning Framework architecture
Sap Business Objects solutioning Framework architectureSap Business Objects solutioning Framework architecture
Sap Business Objects solutioning Framework architecture
 
Accelerate Adoption of SAP S/4HANA with Intelligent, Continuous Automation
Accelerate Adoption of SAP S/4HANA with Intelligent, Continuous AutomationAccelerate Adoption of SAP S/4HANA with Intelligent, Continuous Automation
Accelerate Adoption of SAP S/4HANA with Intelligent, Continuous Automation
 
SAP ECC to S/4HANA Move
SAP ECC to S/4HANA MoveSAP ECC to S/4HANA Move
SAP ECC to S/4HANA Move
 
Migrating SAP Workloads to AWS: Stories and Tips - AWS Summit Sydney
Migrating SAP Workloads to AWS: Stories and Tips - AWS Summit SydneyMigrating SAP Workloads to AWS: Stories and Tips - AWS Summit Sydney
Migrating SAP Workloads to AWS: Stories and Tips - AWS Summit Sydney
 
SAP HANA Migration Deck.pptx
SAP HANA Migration Deck.pptxSAP HANA Migration Deck.pptx
SAP HANA Migration Deck.pptx
 
Using SolMan ChaRM, CSOL and Retrofit to support a dual project and productio...
Using SolMan ChaRM, CSOL and Retrofit to support a dual project and productio...Using SolMan ChaRM, CSOL and Retrofit to support a dual project and productio...
Using SolMan ChaRM, CSOL and Retrofit to support a dual project and productio...
 
Migrating Critical Workloads at Scale: Best Practice for SAP Migration - AWS ...
Migrating Critical Workloads at Scale: Best Practice for SAP Migration - AWS ...Migrating Critical Workloads at Scale: Best Practice for SAP Migration - AWS ...
Migrating Critical Workloads at Scale: Best Practice for SAP Migration - AWS ...
 
SAP S4HANA Migration Cockpit.pdf
SAP S4HANA Migration Cockpit.pdfSAP S4HANA Migration Cockpit.pdf
SAP S4HANA Migration Cockpit.pdf
 
SAP - SOLUTION MANAGER
SAP - SOLUTION MANAGER SAP - SOLUTION MANAGER
SAP - SOLUTION MANAGER
 
SAP S/4HANA Migration Cockpit
SAP S/4HANA Migration CockpitSAP S/4HANA Migration Cockpit
SAP S/4HANA Migration Cockpit
 
SAP S/4HANA Cloud
SAP S/4HANA CloudSAP S/4HANA Cloud
SAP S/4HANA Cloud
 
Application Migrations
Application MigrationsApplication Migrations
Application Migrations
 
Overview SQL Server 2019
Overview SQL Server 2019Overview SQL Server 2019
Overview SQL Server 2019
 
Oracle Service Cloud overview
Oracle Service Cloud overviewOracle Service Cloud overview
Oracle Service Cloud overview
 
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
 
Data Analytics on AWS
Data Analytics on AWSData Analytics on AWS
Data Analytics on AWS
 
How to estimate the cost of a Maximo migration project with a high level of c...
How to estimate the cost of a Maximo migration project with a high level of c...How to estimate the cost of a Maximo migration project with a high level of c...
How to estimate the cost of a Maximo migration project with a high level of c...
 

Ähnlich wie Sybase to Oracle Migration - Critical Info for Oracle Devs

Oracle vs. MS SQL Server
Oracle vs. MS SQL ServerOracle vs. MS SQL Server
Oracle vs. MS SQL ServerTeresa Rothaar
 
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcJoseph D'Antoni
 
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcJoseph D'Antoni
 
A Practitioner's Guide to Successfully Migrate from Oracle to Sybase ASE Part 1
A Practitioner's Guide to Successfully Migrate from Oracle to Sybase ASE Part 1A Practitioner's Guide to Successfully Migrate from Oracle to Sybase ASE Part 1
A Practitioner's Guide to Successfully Migrate from Oracle to Sybase ASE Part 1Dobler Consulting
 
The Power of Relationships in Your Big Data
The Power of Relationships in Your Big DataThe Power of Relationships in Your Big Data
The Power of Relationships in Your Big DataPaulo Fagundes
 
Oracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewOracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewDave Segleau
 
RABI SHANKAR PAL_New
RABI SHANKAR PAL_NewRABI SHANKAR PAL_New
RABI SHANKAR PAL_Newrabi pal
 
Rajnish singh(presentation on oracle )
Rajnish singh(presentation on  oracle )Rajnish singh(presentation on  oracle )
Rajnish singh(presentation on oracle )Rajput Rajnish
 
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012Andrew Brust
 
MIGRATION OF AN OLTP SYSTEM FROM ORACLE TO MYSQL AND COMPARATIVE PERFORMANCE ...
MIGRATION OF AN OLTP SYSTEM FROM ORACLE TO MYSQL AND COMPARATIVE PERFORMANCE ...MIGRATION OF AN OLTP SYSTEM FROM ORACLE TO MYSQL AND COMPARATIVE PERFORMANCE ...
MIGRATION OF AN OLTP SYSTEM FROM ORACLE TO MYSQL AND COMPARATIVE PERFORMANCE ...cscpconf
 
ahmed.hassanein_resume_1_11_2016
ahmed.hassanein_resume_1_11_2016ahmed.hassanein_resume_1_11_2016
ahmed.hassanein_resume_1_11_2016ahmed hassanein
 
Report From Oracle Open World 2008 AMIS 2 October2008
Report From Oracle Open World 2008 AMIS 2 October2008Report From Oracle Open World 2008 AMIS 2 October2008
Report From Oracle Open World 2008 AMIS 2 October2008Lucas Jellema
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018Jeff Smith
 
SQL PPT.pptx
SQL PPT.pptxSQL PPT.pptx
SQL PPT.pptxKulbir4
 

Ähnlich wie Sybase to Oracle Migration - Critical Info for Oracle Devs (20)

Sybase To Oracle Migration for DBAs
Sybase To Oracle Migration for DBAsSybase To Oracle Migration for DBAs
Sybase To Oracle Migration for DBAs
 
Oracle vs. MS SQL Server
Oracle vs. MS SQL ServerOracle vs. MS SQL Server
Oracle vs. MS SQL Server
 
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dc
 
Deploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dcDeploying data tier applications sql saturday dc
Deploying data tier applications sql saturday dc
 
A Practitioner's Guide to Successfully Migrate from Oracle to Sybase ASE Part 1
A Practitioner's Guide to Successfully Migrate from Oracle to Sybase ASE Part 1A Practitioner's Guide to Successfully Migrate from Oracle to Sybase ASE Part 1
A Practitioner's Guide to Successfully Migrate from Oracle to Sybase ASE Part 1
 
The Power of Relationships in Your Big Data
The Power of Relationships in Your Big DataThe Power of Relationships in Your Big Data
The Power of Relationships in Your Big Data
 
Oracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewOracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overview
 
Shrikanth
ShrikanthShrikanth
Shrikanth
 
User Group3009
User Group3009User Group3009
User Group3009
 
RABI SHANKAR PAL_New
RABI SHANKAR PAL_NewRABI SHANKAR PAL_New
RABI SHANKAR PAL_New
 
Rajnish singh(presentation on oracle )
Rajnish singh(presentation on  oracle )Rajnish singh(presentation on  oracle )
Rajnish singh(presentation on oracle )
 
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
 
Richard Clapp Mar 2015 short resume
Richard Clapp Mar 2015 short resumeRichard Clapp Mar 2015 short resume
Richard Clapp Mar 2015 short resume
 
MIGRATION OF AN OLTP SYSTEM FROM ORACLE TO MYSQL AND COMPARATIVE PERFORMANCE ...
MIGRATION OF AN OLTP SYSTEM FROM ORACLE TO MYSQL AND COMPARATIVE PERFORMANCE ...MIGRATION OF AN OLTP SYSTEM FROM ORACLE TO MYSQL AND COMPARATIVE PERFORMANCE ...
MIGRATION OF AN OLTP SYSTEM FROM ORACLE TO MYSQL AND COMPARATIVE PERFORMANCE ...
 
It ready dw_day3_rev00
It ready dw_day3_rev00It ready dw_day3_rev00
It ready dw_day3_rev00
 
ahmed.hassanein_resume_1_11_2016
ahmed.hassanein_resume_1_11_2016ahmed.hassanein_resume_1_11_2016
ahmed.hassanein_resume_1_11_2016
 
Resume
ResumeResume
Resume
 
Report From Oracle Open World 2008 AMIS 2 October2008
Report From Oracle Open World 2008 AMIS 2 October2008Report From Oracle Open World 2008 AMIS 2 October2008
Report From Oracle Open World 2008 AMIS 2 October2008
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018
 
SQL PPT.pptx
SQL PPT.pptxSQL PPT.pptx
SQL PPT.pptx
 

Kürzlich hochgeladen

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 

Kürzlich hochgeladen (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 

Sybase to Oracle Migration - Critical Info for Oracle Devs

  • 1. Sybase to Oracle Critical information for new Oracle developers 1-1 Sybase to Oracle Migration - Developers
  • 2. Presentation Background... 1-2 Sybase to Oracle Migration - Developers
  • 3. About The Speaker Christopher Merry is principle consultant at Clearwater Technical Group Oracle Certified Professional and Certified Professional in Learning and Performance 10 years of experience working with Oracle Including time at Oracle Corporation 9 years of experience as a trainer for Learning Tree International 3 years of experience working with several universities to migrate SunGard Advance from Sybase to Oracle 1-3 Sybase to Oracle Migration - Developers
  • 4. About This Presentation Developed to identify significant differences between Sybase and Oracle database environments Part of a series prepared by CTG to assist clients (and others) in their for migration challenges ahead Other presentations include Sybase to Oracle Migration for DBAs Sybase to Oracle Data Migration Steps Sybase to Oracle - T/SQL and PL/SQL Bridging the Gap Between Advance Windows and AWA Web Skills for AWA Customization And more on the way 1-4 Sybase to Oracle Migration - Developers
  • 5. About CTG CTG is a small technical group specializing in Oracle consulting with key experience assisting several universities migrate from SunGard’s Advance Windows to Advance Web Access CTG is not in anyway affiliated or partnered with SunGard Data Systems, Inc. 1-5 Sybase to Oracle Migration - Developers
  • 6. Objectives Evaluate the tools available to access an Oracle database Oracle tools Third party applications Compare data type options in both environments Identify significant differences in SQL Temporary tables Updates Grouping Discuss transaction and data control Evaluate schemas, privileges, and synonyms in Oracle 1-6 Sybase to Oracle Migration - Developers
  • 7. Database Access Tools... 1-7 Sybase to Oracle Migration - Developers
  • 8. Oracle Supplied Tools Complimentary tools from Oracle are available to access Oracle databases Limited in functionality Oracle Database 10g tools include: SQL*Plus Command line tool similar to SQL Advantage or isql SQL Developer Oracle’s newest access tool Java application Includes data migration features to import Sybase objects into Oracle A little buggy and not as feature rich as other options 1-8 Sybase to Oracle Migration - Developers
  • 9. SQL*Plus 1-9 Sybase to Oracle Migration - Developers
  • 10. SQL Developer 1-10 Sybase to Oracle Migration - Developers
  • 11. Third Party Tools Many third party options are available Product cost varies based on version and features desired Popular software includes Golden Basic, inexpensive product ($35) offering many features used by developers Toad The dominant Oracle tool for years, Toad was once a free product Now owned by Quest Software, it is one of the higher priced options Starting at $870 for the basic edition (additional modules are available) 1-11 Sybase to Oracle Migration - Developers
  • 12. Third Party Tools (cont’d) More software options SQL Navigator The flagship Quest Software Oracle tool The highest cost among the products mentioned here Base edition starts are $1,300 with additional editions retailing for $3,000 PL/SQL Developer - HIGHLY RECOMMENDED The best feature set for the money Offered by Allround Automations Single license cost is $180 with discounts for multiple license packages 1-12 Sybase to Oracle Migration - Developers
  • 13. PL/SQL Developer 1-13 Sybase to Oracle Migration - Developers
  • 14. Data Types... 1-14 Sybase to Oracle Migration - Developers
  • 15. Data Types While many data types differ between Sybase and Oracle, DATE values are the most significantly different CHAR Exists in both environments Sybase maximum length is 255 characters; Oracle maximum length is 2000 bytes VARCHAR Exists in both environments Sybase maximum length is 255 characters; Oracle maximum length is 4000 bytes Oracle also includes VARCHAR2, which is the recommended data type 1-15 Sybase to Oracle Migration - Developers
  • 16. Data Types (cont’d) TEXT The Oracle equivalent is VARCHAR2 (up to 4000 bytes) or CLOB for text up to and beyond 4GB NUMERIC, DECIMAL, INT Available in both environments Exist as subtypes in Oracle NUMBER is Oracle’s standard numeric data type FLOAT Available in both environments 1-16 Sybase to Oracle Migration - Developers
  • 17. Data Types (cont’d) REAL, TINYINT, SMALLINT, MONEY, SMALLMONEY Not available in Oracle; must use equivalent NUMBER definitions Dates All DATE values are stored in Oracle as a 7 byte field that always includes century, year, month, day, hours, minutes, and seconds Date formating is handled using format models YYYY represents a four digit year and MON represents the first three characters of a month (e.g. DD-MON-YYYY represents 01-JAN-2010) TIMESTAMP Available in both environments Contains fractions of a second in Oracle 1-17 Sybase to Oracle Migration - Developers
  • 18. User-Defined Data Types Oracle supports user-defined data types through the creation of Object Types The implementation is quite different from Sybase user-defined data types Requires special SQL constructs More complex 1-18 Sybase to Oracle Migration - Developers
  • 19. NULL Character Strings Empty character strings ('') are treated the same as NULL values in Oracle This is significant as conditions such as the following will never be true (even if the STREET2 value is empty) IF TRIM(street2) > '' THEN Instead, the condition should use the IS NOT NULL operator IF TRIM(street2) IS NOT NULL THEN 1-19 Sybase to Oracle Migration - Developers
  • 20. Structured Query Language... 1-20 Sybase to Oracle Migration - Developers
  • 21. Structured Query Language Oracle and Sybase are ANSI standard complient The majority of SQL syntax is identical Some functionality is available in both environments with different syntax and terminology Sybase provides a few additional features not found in Oracle Oracle provides a few additional features not found in Sybase Key differences include Temporary tables Subqueryies in update and delete statements Group By rules 1-21 Sybase to Oracle Migration - Developers
  • 22. Temporary Tables One of the biggest issues associated with converting existing Sybase scripts and stored procedures to Oracle is the lack of pure temporary tables in Oracle Oracle does make use of Global Temporary Tables; however, the behavior of these objects is not strictly “temporary” in nature These objects can be used as an alternative; however, the creation of global temporary tables will significantly increase the number objects in the database Other alternatives include PL/SQL collections Advanced SQL techniques 1-22 Sybase to Oracle Migration - Developers
  • 23. Updates with Subqueries Oracle does not allow the FROM clause in the UPDATE statement Therefore, the following statement is not valid in Oracle UPDATE address SET street1 = 'New Address' FROM entity e, address a WHERE e.id_number = a.id_number AND a.addr_pref_ind = 'Y' AND e.report_name = 'JOHN DOE' 1-23 Sybase to Oracle Migration - Developers
  • 24. Updates with Subqueries (cont’d) The following statement would be valid in both environments UPDATE address a SET street1 = 'New Address' WHERE EXISTS ( SELECT 1 FROM entity e WHERE e.id_number = a.id_number AND a.addr_pref_ind = 'Y' AND e.report_name = 'JOHN DOE' ) 1-24 Sybase to Oracle Migration - Developers
  • 25. Group By Restrictions When mixing scalar values and aggregate functions, Oracle requires all scalar values to be included in the GROUP BY clause For example, the following statement, which is valid in Sybase, will not execute in Oracle The statement is intended to retrieve each gift given by an entity, along with a total amount given in the last column SELECT id_number, gift_amount , SUM(gift_amount) AS gift_total FROM gift GROUP BY id_number NOTE: Analytic functions can be used to generate the desired results 1-25 Sybase to Oracle Migration - Developers
  • 26. Group By Sample Output ID_NUMBER GIFT_AMOUNT GIFT_TOTAL ---------- ----------- ---------- .... 0000045621 1000 5250 0000045621 1250 5250 0000045621 1500 5250 0000045621 1500 5250 0000834224 900 3700 0000834224 1200 3700 0000834224 500 3700 0000834224 600 3700 0000834224 500 3700 .... 1-26 Sybase to Oracle Migration - Developers
  • 27. Functions... 1-27 Sybase to Oracle Migration - Developers
  • 28. Functions Oracle provides many functions available in both SQL and PL/ SQL Many functions are either the same or only slightly different There are significant differences in a few types of functions Date functions Regular Expressions Analytic Functions 1-28 Sybase to Oracle Migration - Developers
  • 29. Analytic Function Example Resolve the earlier grouping issue using an analytic function Also include a ranking column to indicate the gift value in descending order SELECT id_number , gift_amount , RANK() OVER( PARTITION BY id_number ORDER BY gift_amount DESC ) AS gift_rank , SUM(gift_amount) OVER( PARTITION BY id_number ) AS gift_total FROM gift 1-29 Sybase to Oracle Migration - Developers
  • 30. Analytic Function Results ID_NUMBER GIFT_AMOUNT GIFT_RANK GIFT_TOTAL ---------- ----------- --------- ---------- .... 0000045621 1500 1 5250 0000045621 1500 1 5250 0000045621 1250 3 5250 0000045621 1000 4 5250 0000834224 1200 1 3700 0000834224 900 2 3700 0000834224 600 3 3700 0000834224 500 4 3700 0000834224 500 4 3700 .... 1-30 Sybase to Oracle Migration - Developers
  • 31. Regular Expression Function Example Reformat a character string that represents a date value The original data format is YYYYMMDD; the output is MM/DD/YYYY SELECT birth_dt , REGEXP_REPLACE ( birth_dt , '([12][890][0-9]{2})([01][0-9])([0-3][0-9])' , '2/3/1' ) AS formated_bday FROM entity BIRTH_DT FORMATED_B -------- ---------- 19520626 06/26/1952 00000613 19540608 06/08/1954 19450703 07/03/1945 1-31 Sybase to Oracle Migration - Developers
  • 32. Transactions... 1-32 Sybase to Oracle Migration - Developers
  • 33. Transactions Oracle never commits a single INSERT, UPDATE, or DELETE statement Assuming the user does not disconnect from the current session Similar behavior to the Sybase BEGIN TRANSACTION statement Until a user issues a COMMIT statement, changes made in one session cannot be seen in another session A read consistent view of the data is available in the other session 1-33 Sybase to Oracle Migration - Developers
  • 34. Schemas and Privileges... 1-34 Sybase to Oracle Migration - Developers
  • 35. Schemas and Privileges Oracle segregates data in schemas Users that create objects such as tables and stored procedures have a schema Users that only access other’s objects do not have a schema If a user does not own an object, privilege must be granted to the user for the object GRANT SELECT ON advance.entity TO chris 1-35 Sybase to Oracle Migration - Developers
  • 36. Accessing Schema Objects Using the previous example, if the user CHRIS executes the query below, the ENTITY table in the ADVANCE schema may not be accessed SELECT * FROM entity To ensure the ADVANCE schema is used, execute SELECT * FROM advance.entity An exception to this behavior would occur if The user does not have a table of the same name in his or her own schema AND A synonym exist for the ADVANCE.ENTITY table A synonym “redirects” access to an object in another schema 1-36 Sybase to Oracle Migration - Developers
  • 37. What’s Next... 1-37 Sybase to Oracle Migration - Developers
  • 38. Migration Road Map Of course this presentation only illustrates a few of the differences between Oracle and Sybase For more details regarding Oracle, take a look at the documentation available on Oracle’s website Contact us if you have questions regarding this or any of our other presentation (888) 347-7477 info@clearwatertg.com http://www.clearwatertg.com 1-38 Sybase to Oracle Migration - Developers