SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Architecture of Big Data Solutions
Architecture of Big Data SolutionsArchitecture of Big Data Solutions
Architecture of Big Data SolutionsGuido Schmutz
 
DAS Slides: Data Architect vs. Data Engineer vs. Data Modeler
DAS Slides: Data Architect vs. Data Engineer vs. Data ModelerDAS Slides: Data Architect vs. Data Engineer vs. Data Modeler
DAS Slides: Data Architect vs. Data Engineer vs. Data ModelerDATAVERSITY
 
Enterprise Data Architecture Deliverables
Enterprise Data Architecture DeliverablesEnterprise Data Architecture Deliverables
Enterprise Data Architecture DeliverablesLars E Martinsson
 
Mainframe Modernization with Precisely and Microsoft Azure
Mainframe Modernization with Precisely and Microsoft AzureMainframe Modernization with Precisely and Microsoft Azure
Mainframe Modernization with Precisely and Microsoft AzurePrecisely
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseMarkus Michalewicz
 
Migration to Databricks - On-prem HDFS.pptx
Migration to Databricks - On-prem HDFS.pptxMigration to Databricks - On-prem HDFS.pptx
Migration to Databricks - On-prem HDFS.pptxKshitija(KJ) Gupte
 
Preparing a data migration plan: A practical guide
Preparing a data migration plan: A practical guidePreparing a data migration plan: A practical guide
Preparing a data migration plan: A practical guideETLSolutions
 
Introduction to Azure Databricks
Introduction to Azure DatabricksIntroduction to Azure Databricks
Introduction to Azure DatabricksJames Serra
 
EA - Enterprise Integration Introduction
EA - Enterprise Integration IntroductionEA - Enterprise Integration Introduction
EA - Enterprise Integration IntroductionPraveen Pandey
 
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSINGOER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSINGGirija Muscut
 
Data Quality Patterns in the Cloud with Azure Data Factory
Data Quality Patterns in the Cloud with Azure Data FactoryData Quality Patterns in the Cloud with Azure Data Factory
Data Quality Patterns in the Cloud with Azure Data FactoryMark Kromer
 
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...Cathrine Wilhelmsen
 
Enterprise Data Architect Job Description
Enterprise Data Architect Job DescriptionEnterprise Data Architect Job Description
Enterprise Data Architect Job DescriptionLars E Martinsson
 
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
 
OOW15 - managing oracle e-business suite auditing and security
OOW15 - managing oracle e-business suite auditing and securityOOW15 - managing oracle e-business suite auditing and security
OOW15 - managing oracle e-business suite auditing and securityvasuballa
 
Oracle Data Integrator 12c - Getting Started
Oracle Data Integrator 12c - Getting StartedOracle Data Integrator 12c - Getting Started
Oracle Data Integrator 12c - Getting StartedMichael Rainey
 
5 Critical Steps to Clean Your Data Swamp When Migrating Off of Hadoop
5 Critical Steps to Clean Your Data Swamp When Migrating Off of Hadoop5 Critical Steps to Clean Your Data Swamp When Migrating Off of Hadoop
5 Critical Steps to Clean Your Data Swamp When Migrating Off of HadoopDatabricks
 

Tendances (20)

Introduction to Dremio
Introduction to DremioIntroduction to Dremio
Introduction to Dremio
 
Architecture of Big Data Solutions
Architecture of Big Data SolutionsArchitecture of Big Data Solutions
Architecture of Big Data Solutions
 
DAS Slides: Data Architect vs. Data Engineer vs. Data Modeler
DAS Slides: Data Architect vs. Data Engineer vs. Data ModelerDAS Slides: Data Architect vs. Data Engineer vs. Data Modeler
DAS Slides: Data Architect vs. Data Engineer vs. Data Modeler
 
Enterprise Data Architecture Deliverables
Enterprise Data Architecture DeliverablesEnterprise Data Architecture Deliverables
Enterprise Data Architecture Deliverables
 
Mainframe Modernization with Precisely and Microsoft Azure
Mainframe Modernization with Precisely and Microsoft AzureMainframe Modernization with Precisely and Microsoft Azure
Mainframe Modernization with Precisely and Microsoft Azure
 
Lakehouse in Azure
Lakehouse in AzureLakehouse in Azure
Lakehouse in Azure
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous Database
 
Migration to Databricks - On-prem HDFS.pptx
Migration to Databricks - On-prem HDFS.pptxMigration to Databricks - On-prem HDFS.pptx
Migration to Databricks - On-prem HDFS.pptx
 
Preparing a data migration plan: A practical guide
Preparing a data migration plan: A practical guidePreparing a data migration plan: A practical guide
Preparing a data migration plan: A practical guide
 
Introduction to Azure Databricks
Introduction to Azure DatabricksIntroduction to Azure Databricks
Introduction to Azure Databricks
 
EA - Enterprise Integration Introduction
EA - Enterprise Integration IntroductionEA - Enterprise Integration Introduction
EA - Enterprise Integration Introduction
 
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSINGOER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
OER UNIT 1- SCHEMA DESIGN - DATA WAREHOUSING
 
Why Use an Oracle Database?
Why Use an Oracle Database?Why Use an Oracle Database?
Why Use an Oracle Database?
 
Data Quality Patterns in the Cloud with Azure Data Factory
Data Quality Patterns in the Cloud with Azure Data FactoryData Quality Patterns in the Cloud with Azure Data Factory
Data Quality Patterns in the Cloud with Azure Data Factory
 
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
Pipelines and Data Flows: Introduction to Data Integration in Azure Synapse A...
 
Enterprise Data Architect Job Description
Enterprise Data Architect Job DescriptionEnterprise Data Architect Job Description
Enterprise Data Architect Job Description
 
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
 
OOW15 - managing oracle e-business suite auditing and security
OOW15 - managing oracle e-business suite auditing and securityOOW15 - managing oracle e-business suite auditing and security
OOW15 - managing oracle e-business suite auditing and security
 
Oracle Data Integrator 12c - Getting Started
Oracle Data Integrator 12c - Getting StartedOracle Data Integrator 12c - Getting Started
Oracle Data Integrator 12c - Getting Started
 
5 Critical Steps to Clean Your Data Swamp When Migrating Off of Hadoop
5 Critical Steps to Clean Your Data Swamp When Migrating Off of Hadoop5 Critical Steps to Clean Your Data Swamp When Migrating Off of Hadoop
5 Critical Steps to Clean Your Data Swamp When Migrating Off of Hadoop
 

Similaire à 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
 
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
 
Munir_Database_Developer
Munir_Database_DeveloperMunir_Database_Developer
Munir_Database_DeveloperMunir Muhammad
 

Similaire à 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
 
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
 
Munir_Database_Developer
Munir_Database_DeveloperMunir_Database_Developer
Munir_Database_Developer
 

Dernier

Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
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
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
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
 
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
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Dernier (20)

Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
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
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
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
 
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
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 

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