SlideShare a Scribd company logo
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

More Related Content

What's hot

Intro to Amazon S3
Intro to Amazon S3Intro to Amazon S3
Intro to Amazon S3
Yu Lun Teo
 
AWS Cloud Migration Insights Forum
AWS Cloud Migration Insights ForumAWS Cloud Migration Insights Forum
AWS Cloud Migration Insights Forum
Amazon Web Services
 
Informatica Cloud Overview
Informatica Cloud OverviewInformatica Cloud Overview
Informatica Cloud Overview
Darren Cunningham
 
Deep Dive on Amazon Athena - AWS Online Tech Talks
Deep Dive on Amazon Athena - AWS Online Tech TalksDeep Dive on Amazon Athena - AWS Online Tech Talks
Deep Dive on Amazon Athena - AWS Online Tech Talks
Amazon Web Services
 
Introduction to Docker on AWS
Introduction to Docker on AWSIntroduction to Docker on AWS
Introduction to Docker on AWS
Amazon Web Services
 
Big Data & Hadoop Tutorial
Big Data & Hadoop TutorialBig Data & Hadoop Tutorial
Big Data & Hadoop Tutorial
Edureka!
 
SAP S/4 HANA Disaster Recovery Confidence
SAP S/4 HANA Disaster Recovery ConfidenceSAP S/4 HANA Disaster Recovery Confidence
SAP S/4 HANA Disaster Recovery Confidence
Dirk Oppenkowski
 
How to Build a Scylla Database Cluster that Fits Your Needs
How to Build a Scylla Database Cluster that Fits Your NeedsHow to Build a Scylla Database Cluster that Fits Your Needs
How to Build a Scylla Database Cluster that Fits Your Needs
ScyllaDB
 
Schema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-WriteSchema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-Write
Amr Awadallah
 
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
Amazon Web Services
 
An overview of snowflake
An overview of snowflakeAn overview of snowflake
An overview of snowflake
Sivakumar Ramar
 
OCI Overview
OCI OverviewOCI Overview
OCI Overview
Kamil Wieczorek
 
Changing the game with cloud dw
Changing the game with cloud dwChanging the game with cloud dw
Changing the game with cloud dw
elephantscale
 
Google Cloud DNS
Google Cloud DNSGoogle Cloud DNS
Google Cloud DNS
Zdenko Hrček
 
Architecting for the Cloud: Best Practices
Architecting for the Cloud: Best PracticesArchitecting for the Cloud: Best Practices
Architecting for the Cloud: Best Practices
Amazon Web Services
 
E-Business Suite on Oracle Cloud
E-Business Suite on Oracle CloudE-Business Suite on Oracle Cloud
E-Business Suite on Oracle Cloud
Keith Kiattipong
 
Cloud Migration PPT -final.pptx
Cloud Migration PPT -final.pptxCloud Migration PPT -final.pptx
Cloud Migration PPT -final.pptx
Rivarshin
 
Snowflake essentials
Snowflake essentialsSnowflake essentials
Snowflake essentials
qureshihamid
 
GCP for Apache Kafka® Users: Stream Ingestion and Processing
GCP for Apache Kafka® Users: Stream Ingestion and ProcessingGCP for Apache Kafka® Users: Stream Ingestion and Processing
GCP for Apache Kafka® Users: Stream Ingestion and Processing
confluent
 
AWS PrivateLink - Deep Dive
AWS PrivateLink - Deep DiveAWS PrivateLink - Deep Dive
AWS PrivateLink - Deep Dive
Enri Peters
 

What's hot (20)

Intro to Amazon S3
Intro to Amazon S3Intro to Amazon S3
Intro to Amazon S3
 
AWS Cloud Migration Insights Forum
AWS Cloud Migration Insights ForumAWS Cloud Migration Insights Forum
AWS Cloud Migration Insights Forum
 
Informatica Cloud Overview
Informatica Cloud OverviewInformatica Cloud Overview
Informatica Cloud Overview
 
Deep Dive on Amazon Athena - AWS Online Tech Talks
Deep Dive on Amazon Athena - AWS Online Tech TalksDeep Dive on Amazon Athena - AWS Online Tech Talks
Deep Dive on Amazon Athena - AWS Online Tech Talks
 
Introduction to Docker on AWS
Introduction to Docker on AWSIntroduction to Docker on AWS
Introduction to Docker on AWS
 
Big Data & Hadoop Tutorial
Big Data & Hadoop TutorialBig Data & Hadoop Tutorial
Big Data & Hadoop Tutorial
 
SAP S/4 HANA Disaster Recovery Confidence
SAP S/4 HANA Disaster Recovery ConfidenceSAP S/4 HANA Disaster Recovery Confidence
SAP S/4 HANA Disaster Recovery Confidence
 
How to Build a Scylla Database Cluster that Fits Your Needs
How to Build a Scylla Database Cluster that Fits Your NeedsHow to Build a Scylla Database Cluster that Fits Your Needs
How to Build a Scylla Database Cluster that Fits Your Needs
 
Schema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-WriteSchema-on-Read vs Schema-on-Write
Schema-on-Read vs Schema-on-Write
 
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
 
An overview of snowflake
An overview of snowflakeAn overview of snowflake
An overview of snowflake
 
OCI Overview
OCI OverviewOCI Overview
OCI Overview
 
Changing the game with cloud dw
Changing the game with cloud dwChanging the game with cloud dw
Changing the game with cloud dw
 
Google Cloud DNS
Google Cloud DNSGoogle Cloud DNS
Google Cloud DNS
 
Architecting for the Cloud: Best Practices
Architecting for the Cloud: Best PracticesArchitecting for the Cloud: Best Practices
Architecting for the Cloud: Best Practices
 
E-Business Suite on Oracle Cloud
E-Business Suite on Oracle CloudE-Business Suite on Oracle Cloud
E-Business Suite on Oracle Cloud
 
Cloud Migration PPT -final.pptx
Cloud Migration PPT -final.pptxCloud Migration PPT -final.pptx
Cloud Migration PPT -final.pptx
 
Snowflake essentials
Snowflake essentialsSnowflake essentials
Snowflake essentials
 
GCP for Apache Kafka® Users: Stream Ingestion and Processing
GCP for Apache Kafka® Users: Stream Ingestion and ProcessingGCP for Apache Kafka® Users: Stream Ingestion and Processing
GCP for Apache Kafka® Users: Stream Ingestion and Processing
 
AWS PrivateLink - Deep Dive
AWS PrivateLink - Deep DiveAWS PrivateLink - Deep Dive
AWS PrivateLink - Deep Dive
 

Similar to Sybase To Oracle Migration for Developers

Sybase To Oracle Migration for DBAs
Sybase To Oracle Migration for DBAsSybase To Oracle Migration for DBAs
Sybase To Oracle Migration for DBAs
Clearwater Technical Group Inc
 
Oracle vs. MS SQL Server
Oracle vs. MS SQL ServerOracle vs. MS SQL Server
Oracle vs. MS SQL Server
Teresa 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 dc
Joseph 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 dc
Joseph 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 1
Dobler Consulting
 
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
Dave Segleau
 
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
Paulo Fagundes
 
Shrikanth
ShrikanthShrikanth
Shrikanth
Shrikanth DM
 
User Group3009
User Group3009User Group3009
User Group3009
sqlserver.co.il
 
RABI SHANKAR PAL_New
RABI SHANKAR PAL_NewRABI SHANKAR PAL_New
RABI SHANKAR PAL_New
rabi 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 2012
Andrew Brust
 
Richard Clapp Mar 2015 short resume
Richard Clapp Mar 2015 short resumeRichard Clapp Mar 2015 short resume
Richard Clapp Mar 2015 short resume
Richard Clapp Jr ,CSM
 
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
 
It ready dw_day3_rev00
It ready dw_day3_rev00It ready dw_day3_rev00
It ready dw_day3_rev00
Siwawong Wuttipongprasert
 
ahmed.hassanein_resume_1_11_2016
ahmed.hassanein_resume_1_11_2016ahmed.hassanein_resume_1_11_2016
ahmed.hassanein_resume_1_11_2016
ahmed hassanein
 
Resume
ResumeResume
Resume
Ravi Kumar
 
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
Lucas 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 2018
Jeff Smith
 
SQL PPT.pptx
SQL PPT.pptxSQL PPT.pptx
SQL PPT.pptx
Kulbir4
 

Similar to Sybase To Oracle Migration for Developers (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
 
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
 
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
 
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
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
jpupo2018
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 

Sybase To Oracle Migration for Developers

  • 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