oracle9 i jdeveloper for database developers and dbas brian fry principal product manager oracle...
TRANSCRIPT
![Page 1: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/1.jpg)
![Page 2: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/2.jpg)
Oracle9i JDeveloper for Database Developers and DBAs
Brian Fry
Principal Product Manager
Oracle JDeveloper
Oracle Corporation
![Page 3: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/3.jpg)
Agenda
Database and SQL Development Schema Modeling and Offline Editing PL/SQL Development and Debugging Questions and Answers
![Page 4: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/4.jpg)
Best IDE for the Database
Any JDBC database PL/SQL web services SQL*Plus, iSQL*Plus JPublisher interMedia SQLJ XML and XDB
OLAP (BI Beans) Business Components for
Java Connection Manager Database Browser PL/SQL IDE Java Stored Procedures Database Modeling
Award-winning database support – Best Database Tool for Java– Best Java Database Application Tool– Best Database Access Tool
![Page 5: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/5.jpg)
Agenda
Database and SQL Development Schema Modeling and Offline Editing PL/SQL Development and Debugging Questions and Answers
![Page 6: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/6.jpg)
Connection Manager
Create and test connections with a wizard Store often-used connections Import and export connections Reuse connections throughout lifecycle
– Database, PL/SQL Development– Application Development– Deployment
Additional connection types– Application Server, WebDAV Server, SOAP Server,
Oracle9i SCM Server, UDDI Registry
![Page 7: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/7.jpg)
Browsing the Database
View schema objects from the Navigator– Tables (Indexes, Columns, Constraints, Data)– Views– Synonyms– PL/SQL subprograms– Oracle Objects– Materialized Views (Snapshots)– Java Resources
User-defined filters at all levels
![Page 8: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/8.jpg)
Creating Database Objects
Create schema objects– PL/SQL subprograms– Tables– Views– Triggers
![Page 9: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/9.jpg)
SQL Worksheet
Execute any valid SQL statement Browse query results Access previous statements from SQL History Fetch rows incrementally
![Page 10: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/10.jpg)
Tuning SQL Statements
Get the Explain Plan for any SQL statement
![Page 11: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/11.jpg)
D E M O N S T R A T I O N
Database Browser
![Page 12: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/12.jpg)
Agenda
Database and SQL Development Schema Modeling and Offline Editing PL/SQL Development and Debugging Questions and Answers
![Page 13: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/13.jpg)
Schema Modeling
“Design-capture” existing schema objects Visually design tables
and relationships Generate DDL
from diagram– SQL File– Directly to database– Reconcile
with database
![Page 14: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/14.jpg)
Offline Tables
Import objects from an existing database Create and edit table definitions while
disconnected Generate DDL to create or alter tables Reconcile changes with database
![Page 15: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/15.jpg)
D E M O N S T R A T I O N
Schema Modeling
![Page 16: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/16.jpg)
Agenda
Database and SQL Development Schema Modeling and Offline Editing PL/SQL Development and Debugging Questions and Answers
![Page 17: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/17.jpg)
Editing and Compiling PL/SQL
Comprehensive editor features– Bookmarks– Macros– Code Templates– Search and Replace – Syntax Highlighting – Etc
PL/SQL Code Insight Synchronized Structure window Errors reported in Log window
![Page 18: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/18.jpg)
Running PL/SQL
Run Procedures, Functions, and Packages– DBMS_OUTPUT– Function return values– OUT parameters
Run PL/SQL dialog – Specify run target– Shows parameter information– Generates editable PL/SQL block for populating
parameters
![Page 19: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/19.jpg)
Debugging PL/SQL
Supported with Oracle8i and later– Uses JDWP implementation starting with
Oracle9i Release 2
Control program execution– Step Into, Step Over, Run to Cursor, etc
Inspect and modify variables– Tooltips in Code Editor
Configure breakpoint conditions
![Page 20: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/20.jpg)
PL/SQL Debugging Requirements
Compiled with debug information– JDeveloper “Database Connections” preferences panel– ALTER SESSION SET PLSQL_DEBUG = TRUE– ALTER <PROG_UNIT> COMPILE DEBUG
Oracle8i and Oracle9i specifics– CREATE ANY PROCEDURE (debugging other schemas)
Oracle9i Release 2 specifics– DEBUG ANY PROCEDURE
DEBUG CONNECT SESSION– Compiled in Interpreted (not Native) mode
![Page 21: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/21.jpg)
Additional PL/SQL Debugger Features with Oracle 9.2
Debug Java stored procedures Seamless debugging between server-side
Java and PL/SQL Inspect elements of PL/SQL Collections
(Tables, Records, etc) Remotely debug PL/SQL calls from any client
![Page 22: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/22.jpg)
Remotely Debugging PL/SQL
Client Application
1: Listen1: Listen
2: Attach2: Attach
3: Execute3: Execute
Database Session
JDeveloper
![Page 23: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/23.jpg)
Remotely Debugging PL/SQL:Explicit Calls
1. Start the debugger listener in JDeveloper (Listen for JPDA)
2. Modify the client code to attach to the debugger listener from the database session:DBMS_DEBUG_JDWP.CONNECT_TCP (‘host’, port);
3. Initiate procedure call from the same database session, for example:EXEC my_procedure;
4. Modify the client code to terminate the connection with the debug listener:DBMS_DEBUG_JDWP.DISCONNECT_TCP();
![Page 24: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/24.jpg)
Remotely Debugging PL/SQL:Implicit Calls
Two-tier OCI applications– Set environment variable
set ora_debug_jdwp = host12.acme.com;port=4040
– OCI layer transparently calls the server-side PL/SQL to connect with the debugger listener
Web mod_plsql applications– Create a UI form to set a cookie in the browser– Pass the hostname and port to owa_debug package– owa_debug transparently calls the server-side PL/SQL to
connect with the debugger listener for each subsequent page requested by that browser
![Page 25: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/25.jpg)
D E M O N S T R A T I O N
PL/SQL Development
![Page 26: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/26.jpg)
Summary
JDeveloper is a complete development environment for SQL and PL/SQL in addition to Java and XML
![Page 27: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/27.jpg)
AQ&Q U E S T I O N SQ U E S T I O N S
A N S W E R SA N S W E R S
![Page 28: Oracle9 i JDeveloper for Database Developers and DBAs Brian Fry Principal Product Manager Oracle JDeveloper Oracle Corporation](https://reader036.vdocuments.net/reader036/viewer/2022081514/56649e415503460f94b3319b/html5/thumbnails/28.jpg)