180 likes | 350 Views
Using PowerBuilder to develop applications for Oracle. Bruce Armstrong TeamSybase bruce.armstrong@teamsybase.com. Connection Options. Oracle Instant Client. Database Access Methods. Native Stored Procedure (Java, .Net ). PL/SQL Stored Procedure. Table. DataWindow Demos. Select with
E N D
Using PowerBuilder to develop applications for Oracle Bruce Armstrong TeamSybase bruce.armstrong@teamsybase.com
Database Access Methods Native Stored Procedure (Java, .Net) PL/SQL Stored Procedure Table
DataWindow Demos • Select with • Stored function • Package function • Inline view • Constrained REF cursor • Unconstrained REF cursor • User defined data type • Update through stored procedures • OLE database blob columns
List Package Subprograms • Make sure the List Package Subprograms options is selected for the database profile
Edit Stored Procedure Options • If you want to modify the source, right click on the column specification
RPCFunc Call Demos • String arguments • Number arguments • Date arguments • String array arguments • Number array arguments • Blob arguments
Embedded SQL Demos • Stored function • Named notation • Multiple Cursors
Other Demos • DBHandle DLL call • Invalid Objects • Synonyms • Sequences • Roles • Failover Support • Password Expiration • Async Calls • DBMS_ALERT • DBMS_PIPE
Password Expiration During Grace Period After Password Expires
Failover Support • Prior to 11.0 DBParm = “SvrFailover='Yes',FoDialog='Yes‘” • 11.0 and later • DBParm = “HANotification='Yes',SvrFailover='Yes‘” • Code dbnotification event on custom transaction object
Performance Tips • Update those statistics (pre 10g) • CURSOR_SHARING = SIMILAR (pre 11g)
PowerBuilder 11.5/Oracle 11g • New “ORA” (11g) driver • Client Access through Proxy • Connect As option is now editable (not limited to Normal, SYSDBA and SYSOPER) • OCI Connection and Session Pooling • Implicit Fetching of ROWID • Client Cache support • AppDriverName parameter • XML Data Type support
Performance Tips • Shared SQL • Statistics • Function based indexes