Oracle SQL Developer for SQL Server?

Post on 15-Jul-2015

428 views 6 download

Tags:

transcript

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle SQL DeveloperTips & Tricks

Jeff SmithJeff.d.smith@oracle.com || @thatjeffsmithSenior Principal Product ManagerDatabase Development Tools Group

Oracle Confidential – Internal/Restricted/Highly Restricted

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Improve application developers experience

Oracle at a SQLSaturday, What’s Up with That?

Introduction to our free stuff

SQL Server Support

A few ‘tricks’ and things you may enjoy

Questions As We Go!

Agenda What We’re Going to Talk About Today

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle SQL Developer

FREE Oracle Database IDE/GUI

Windows, OS X, *NIX

More than 4,000,000 users worldwide

Java Application (JDBC)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

SQL Developer Data ModelerIncluded for free, also available as a separate download/program

Strategy and Analysis

Relational

Database Design

Data Type

Star Schema Physical

Multidimensional

ERD DFD

Logical

Reporting

Import Models

Domains

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

A Quick Word on Java…

You’ll need a JDK, not just a JRE (not the Java that runs in your browser)

I recommend Java 8

Or download SQL Developer that includes the JDK – no install required

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

SQL Server connectivity in SQL Developer is provided officially for migration projects

Copy to Oracle Right Click (single objects, quick ‘n’ dirty)

T-SQL -> Oracle SQL & PL/SQL Translator

Wizard driven complete database migrations

Object Editors are read only

SQL Worksheet for Ad Hoc Queries/Scripts

User Defined Reports

SQL Developer & SQL Server In a Nutshell

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Connectivity

We require the jTDS driver for SQL Server & Sybase ASE

OS and User/Pass Authentication

Set default Database

Copy ntlmauth.dll to your JDK/jre/bin directory

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Connectivity – Mac?

Open connections.xml file in your SQLDev Install Folder/.sqldeveloper/system* dir

<StringRefAddr addrType="customUrl"><Contents>jdbc:jtds:sqlserver://Server_FQDN:1433;instance=<instance_name>;

domain=<domain_name>/</Contents>

Thanks +Anthony Ballow for the tip!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Browser – Click, See Objects

Immediately browse objects and see the data

Non-Oracle objects are basic features only, no updates/alters

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Worksheet: Best for Ad Hoc Queries

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Worksheet: Hints

/*sqldev:query*/ if your expecting a result set to be returned

/*sqldev:stmt*/ if you are expecting nothing returned

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

In lieu of clicking through SQL History (F8)

Some Things You May Like: SQL History

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Add Comment

Execute via F5 (Script)

Comment labels match grid export formatter labels

JSON, CSV, Insert, XML…

Some Things You May Like: Formatting Query Results

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Some Things You May Like: Formatting Query Results

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Get Data Out…

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Queries on Demand

Multi-Level

Exporting

Prompt for Values

Reports

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Report Design

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Reports: Prompt for Values (use Binds)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

RE or build from

scratch

Generate DDL

Reporting

Versioning and

Change Control

‘Quick Demo’

Data Modeler

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Preferences: Default RDBMS

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Design from Scratch or Start with an Existing System?

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Identity Columns, Yup!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

SQL Translator

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Some Migration Stuff: Copy to Oracle

Quick and Dirty – Copies Base Object and Data Only

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Some Migration Stuff: Formal Migration Projects

Select Objects

Converted to Oracle

‘model’

Refactors & translates

stored procs, views, etc.

Deployed to ORCL target

Data is loaded

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

All Free

Learn Oracle Database, APEX, SQL, and more

12.1.0.2 Enterprise Edition with all options

Software pre-installed and configured

Demo data & hands on labs

More Free Stuff From Oracle: VirtualBox Images