Daybase (DayCart) Introduction What is ‘Daybase’ ? Oracle Schema Objects. Oracle Datatypes. Simple Example. Demo.

Slides:



Advertisements
Similar presentations
CIT 613: Relational Database Development using SQL Revision of Tables and Data Types.
Advertisements

9 Creating and Managing Tables. Objectives After completing this lesson, you should be able to do the following: Describe the main database objects Create.
Data Definition Language (DDL)
Migrating to DayCart Introduction Thor database concepts. Data (Chemical Structure) hierarchy. Thor data model Daylight/Oracle cartridge data model.
Database Chapters.
Copyright  Oracle Corporation, All rights reserved. 10 Creating and Managing Tables.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
SQL components In Oracle. SQL in Oracle SQL is made up of 4 components: –DDL Data Definition Language CREATE, ALTER, DROP, TRUNCATE. Creates / Alters.
IS 4420 Database Fundamentals Chapter 6: Physical Database Design and Performance Leon Chen.
Database Modifications A modification command does not return a result as a query does, but it changes the database in some way. There are three kinds.
Creating Database Tables © Abdou Illia MIS Spring /21/2015.
DT211 Stage 2 Databases Lab 1. Get to know SQL Server SQL server has 2 parts: –A client, running on your machine, in the lab. You access the database.
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
Introduction to SQL  SQL or sequel  It is a standardised language with thousands of pages in the standard  It can be in database system through GUI,
Oracle Data Definition Language (DDL)
Overview Classes of datatypes available in Oracle 10g – Character – Numeric – Long, Raw – Dates/Times – Large Objects (LOBs) – ROWID – Specialized 1.
Oracle for Software Developers. What is a relational database? Data is represented as a set of two- dimensional tables. (rows and columns) One or more.
SQL data definition using Oracle1 SQL Data Definition using Oracle.
SQL data definition using Oracle1 SQL Data Definition using Oracle.
Oracle Data Definition Language (DDL) Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Oracle Database Administration
10 Copyright © 2009, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
1 Copyright © 2006, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
Sizing Basics  Why Size?  When to size  Sizing issues:  Bits and Bytes  Blocks (aka pages) of Data  Different Data types  Row Size  Table Sizing.
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
1 Creating and Modifying Database Objects. 2 An Oracle database consists of multiple user accounts Each user account owns database objects Tables Views.
10 Creating and Managing Tables Objectives At the end of this lesson, you will be able to: Describe the main database objects Create tables Describe.
10-1 Copyright  Oracle Corporation, All rights reserved. Database Objects ObjectDescription TableBasic unit of storage; composed of rows and columns.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Copyright  Oracle Corporation, All rights reserved. 10 Creating and Managing Tables.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Advanced Database CS-426 Week 1 - Introduction. Database Management System DBMS contains information about a particular enterprise Collection of interrelated.
MySQL More… 1. More on SQL In MySQL, the Information Schema is the “Catalog” in the SQL standard SQL has three components: Data definition Data manipulation.
DAT602 Database Application Development Lecture 2 Review of Relational Database.
Tables and Constraints Oracle PL/SQL. Datatypes The SQL Data Definition Language Commands (or DDL) enable us to create, modify and remove database data.
Database Lab Lecture 1. Database Languages Data definition language ( DDL ) Data definition language –defines data types and the relationships among them.
Visual Programing SQL Overview Section 1.
SQL ORACLE 1. Data Type 2 3 VARCHAR2(size [BYTE | CHAR]) Variable-length character string having maximum length size bytes or characters. Maximum size.
Data types  CHAR (size): This data type is used to store character strings values of fixed length. The size in brackets determines the number of characters.
8 Copyright © 2004, Oracle. All rights reserved. Managing Schema Objects.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
SQL CREATING AND MANAGING TABLES lecture4 1. Database Objects ObjectDescription TableBasic unit of storage; composed of rows and columns ViewLogically.
1 Chapter 2: Creating and Modifying Database Objects.
Sql DDL queries CS 260 Database Systems.
Altering Tables and Constraints Database Systems Objectives Add and modify columns. Add, enable, disable, or remove constraints. Drop a table. Remove.
Gollis University Faculty of Computer Engineering Chapter three: Data Definition Instructor: Mukhtar M Ali “Hakaale” BCS.
Creating and Managing Tables 14. ObjectivesObjectives After completing this lesson, you should be able to do the following: After completing this lesson,
Academic Year 2015 Autumn. MODULE CC2006NI: Data Modelling and Database Systems Academic Year 2015 Autumn.
Lecture 2 21/1/16. Putting the output in order Oracle can sort a column, or multiple columns select emp_no, emp_name from employee order by emp_name;
Lab 2 Writing PL/SQL Blocks CISB514 Advanced Database Systems.
8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
Physical Model Lecture 11. Physical Data Model The last step is the physical design phase, In this phase data is – Store – Organized and – Access.
Creating and Managing Tables. Database Objects ObjectDescription TableBasic unit of storage; composed of rows and columns ViewLogically represents subsets.
7 Copyright © 2004, Oracle. All rights reserved. Managing Schema Objects.
Relational Databases and SQL The relational model and the most common SQL commands.
PLSQL Cont…. Most Common Oracle Data Types VARCHAR2 –Stores variable-length character data. –Takes a required parameter that specifies a maximum length.
Creating Database Objects
Introduction To Oracle
TABLES AND INDEXES Ashima Wadhwa.
Managing Tables, Data Integrity, Constraints by Adrienne Watt
ORACLE SQL Developer & SQLPLUS Statements
DATABASE MANAGEMENT SYSTEM
SQL data definition using Oracle
ORACLE I 2 Salim Phone : YM : talim_bansal.
Oracle Data Definition Language (DDL)
Session - 6 Sequence - 1 SQL: The Structured Query Language:
Creating Database Objects
Database Instructor: Bei Kang.
SQL (Structured Query Language)
Presentation transcript:

Daybase (DayCart)

Introduction What is ‘Daybase’ ? Oracle Schema Objects. Oracle Datatypes. Simple Example. Demo.

Oracle Schema Objects Tables. –Tables are the basic unit of data storage. Data is stored in rows and columns. Views. –View is a tailored presentation of the data contained in one or more tables (or other views). Indexes. –Indexes are optional structures associated with tables. You can create indexes explicitly to speed SQL statement execution on a table.

Oracle Schema Objects Sequences. –Please read the Oracle Server Concept manual. Synonyms. –Please read the Oracle Server Concept manual. Clusters. –Please read the Oracle Server Concept manual. Hash Clusters. –Please read the Oracle Server Concept manual.

Oracle Datatypes CHAR. –The CHAR datatype stores fixed-length character strings. VARCHAR2 (VARCHAR). –The VARCHAR2 datatype stores variable-length character strings. NUMBER. –The NUMBER datatype stores fixed and floating-point numbers. You can optionally specify a precision (total number of digits) and scale (number of digits to the right of decimal point).

Oracle Datatypes DATE. –The DATE datatype stores point-in-time values (dates and time) in a table. LONG –Stores variable-length character data, up to two gigabytes of information. RAW and LONG RAW. –Stores variable-length character and binary data. ROWID. –Please read the Oracle Datatypes Concept manual.

Simple Supplier Schema STRUCTURE Data SMILES Supplier Data SUPPLIER

Oracle Table Definitions Table:STRUCTURE NameNull?Type STR_IDNOT NULLNUMBER(7) SMILESNOT NULLVARCHAR(700) MFVARCHAR(200) MWTNUMBER(12,6) CLOGPNUMBER(12,6) Table:SUPPLIER NameNull?Type STR_ID NOT NULLNUMBER(7) SUP_IDNOT NULLVARCHAR(80) SUP_NAMENOT NULLNUMBER(200) COSTNOT NULLNUMBER(10,5)

The STRUCTURE Table SMILESSTR_IDMFMWTCLOGP CC(=O)N C12H16N OCn1c2ccc… 2345 C10H12N3… O=C1N(C(… 2873 C18H28N2O… Cc1(=O)n… 2693 C16H12N… Rows Columns Column names Column NOT allowing nulls Column allowing nulls

The Structure/Supplier Table SMILESSTR_IDMFMWTCLOGP CC(=O)N C12H16N OCn1c2ccc… 2345 C10H12N3… O=C1N(C(… 2873 C18H28N2O… Cc1(=O)n… 2693 C16H12N… STR_IDSUP_IDSUP_NAMECOST 2482ID-2211 ChemBridge Corp ID ChemBridge Corp Tocris LT Lab-Tech Tocris LT-2376Lab-Tech ID-23467ChemBridge Corp ID-23466ChemBridge Corp Tocris Structure Table Supplier Table

What are the steps Design the data model. –Consider input, access and modification of your data. –Consider how chemical data is going to be searched. –2D coordinates. –Connection table (Molfile, RXNfile, TGFfile … etc). –SMILES column size (what to use?). 700 bytes or less, Oracle will allow you to put unique indexes and blob-based index. This may or may-not be important to you. greater than 700 bytes you can use blob-based index. Design the database schema.

What are the steps Indexes for normal column data. Indexes for chemical structure data –i.e. ddexact, ddgraph, ddblob … etc. Create PL/SQL program to load the data. If the data is formatted you may be able to use ‘sqlldr’ command to load the tables. For data from SD files use mol2smi procedure. Application/tools for the user to search and display of this data.

Thanks Daylight team Bernd Rohde (Novartis) Michael Wainwright (Modgraph)

DEMO