Home > Documents > Oracle Forms Developer and Oracle Reports Developer · PDF fileCONNECTION AND CURSOR HANDLES...

Oracle Forms Developer and Oracle Reports Developer · PDF fileCONNECTION AND CURSOR HANDLES...

Date post: 07-Feb-2018
Category:
Author: buithu
View: 265 times
Download: 10 times
Share this document with a friend
Embed Size (px)
of 168 /168
Oracle ® Forms Developer and Oracle Reports Developer Common Built-in Packages Release 6i January, 2000 Part No. A73152-01
Transcript
  • Oracle Forms Developer andOracle Reports Developer

    Common Built-in Packages

    Release 6i

    January, 2000Part No. A73152-01

  • Oracle Forms Developer and Oracle Reports Developer: Common Built-inPackages, Release 6i

    The part number for this volume is A73152-01

    Copyright 1999, 2000, Oracle Corporation. All rights reserved.

    Portions copyright Blue Sky Software Corporation. All rights reserved.

    Contributors: Fred Bethke, Joan Carter, Kenneth Chu, Kate Dumont, TomHaunert, Colleen McCann, Leanne Soylemez, Poh Lee Tan, Tony Wolfram

    The programs are not intended for use in any nuclear, aviation, masstransit, medical, or other inherently dangerous applications. It shall belicensee's responsibility to take all appropriate fail-safe, back up,redundancy and other measures to ensure the safe use of suchapplications if the Programs are used for such purposes, and Oracledisclaims liability for any damages caused by such use of the Programs.

    This Program contains proprietary information of Oracle Corporation; it isprovided under a license agreement containing restrictions on use anddisclosure and is also protected by copyright, patent and other intellectualproperty law. Reverse engineering of the software is prohibited.

    The information contained in this document is subject to change withoutnotice. If you find any problems in the documentation, please report themto us in writing. Oracle Corporation does not warrant that this document iserror free. No part of this document may be reproduced or transmitted inany form or by any means, electronic or mechanical, for any purpose,without the express written permission of Oracle Corporation

    If this Program is delivered to a U.S. Government Agency of theDepartment of Defense, then it is delivered with Restricted Rights and thefollowing legend is applicable:

    Restricted Rights Legend Programs delivered subject to the DOD FARSupplement are "commercial computer software" and use, duplication anddisclosure of the Programs shall be subject to the licensing restrictions setforth in the applicable Oracle license agreement. Otherwise, Programsdelivered subject to the Federal Acquisition Regulations are "restrictedcomputer software" and use, duplication and disclosure of the Programsshall be subject to the restrictions in FAR 52.227-14, Rights in Data --General, including Alternate III (June 1987). Oracle Corporation, 500Oracle Parkway, Redwood City, CA 94065.

    Oracle is a registered trademark, and Express, Oracle Browser, OracleForms, Oracle Graphics, Oracle Installer, Oracle Reports, Oracle7, Oracle8,Oracle Web Application Server, Personal Oracle, Personal Oracle Lite, andPL/SQL are trademarks or registered trademarks of Oracle Corporation.All other company or product names mentioned are used for identificationpurposes only and may be trademarks of their respective owners.

  • i

    Table of ContentsBUILT-IN PACKAGES ................................ ................................ . 1

    ABOUT BUILT-IN PACKAGES .......................................................1ABOUT THE DDE PACKAGE.......................................................3MICROSOFT WINDOWS PREDEFINED DATA FORMATS .................4DDE PREDEFINED EXCEPTIONS ..................................................6ABOUT THE DEBUG PACKAGE ....................................................8ABOUT THE LIST PACKAGE.........................................................8ABOUT THE OLE2 PACKAGE .....................................................8ABOUT THE ORA_FFI PACKAGE .................................................8ABOUT THE ORA_NLS PACKAGE ..............................................9ORA_NLS CHARACTER CONSTANTS.......................................... 9ORA_NLS NUMERIC CONSTANTS ............................................ 11ABOUT THE ORA_PROF PACKAGE............................................ 12ABOUT THE TEXT_IO PACKAGE ...............................................12ABOUT THE TOOL_ENV PACKAGE ........................................... 13ABOUT THE TOOL_ERR PACKAGE ............................................ 13ABOUT THE TOOL_RES PACKAGE............................................. 14BUILDING RESOURCE FILES .......................................................14ABOUT THE EXEC_SQL PACKAGE.......................................... 16CONNECTION AND CURSOR HANDLES...................................... 17RETRIEVING RESULT SETS FROM QUERIES OR NON-ORACLESTORED PROCEDURES ...............................................................17EXEC_SQL PREDEFINED EXCEPTIONS ..................................... 17USING THE EXEC_SQL PACKAGE ........................................... 19EXECUTING ARBITRARY SQL AGAINST ANY CONNECTION ....... 19COPYING DATA BETWEEN TWO DATABASES..............................21EXECUTING A NON-ORACLE DATABASE STOREDPROCEDURE AND FETCHING ITS RESULT SET ..............................24ALPHABETIC LIST OF PACKAGED SUBPROGRAMS.......................25

    DDE PACKAGE................................ ................................ ........... 29DDE PACKAGE........................................................................ 29DDE.APP_BEGIN .................................................................... 29DDE.APP_END....................................................................... 30DDE.APP_FOCUS ................................................................... 31DDE.EXECUTE ........................................................................ 32DDE.GETFORMATNUM ...........................................................32DDE.GETFORMATSTR..............................................................33DDE.INITIATE ......................................................................... 34DDE.ISSUPPORTED ................................................................. 35

  • ii

    DDE.DMLERR_NOT_SUPPORTED ................................ ........ 35DDE.POKE ................................ ................................ .............. 35DDE.REQUEST ................................ ................................ ........ 36DDE.TERMINATE ................................ ................................ .... 37

    DEBUG PACKAGE ................................ ................................ ..... 39DEBUG PACKAGE ................................ ................................ ..... 39DEBUG.BREAK ................................ ................................ ......... 39DEBUG.GETX ................................ ................................ ........... 39DEBUG.INTERPRET................................ ................................ ... 41DEBUG.SETX ................................ ................................ ............ 42DEBUG.SUSPEND ................................ ................................ ..... 42

    EXEC_SQL PACKAGE................................ ................................ 45EXEC_SQL PACKAGE................................ ............................. 45EXEC_SQL.OPEN_CONNECTION ................................ ........... 46EXEC_SQL.CURR_CONNECTION ................................ ........... 46EXEC_SQL.DEFAULT_CONNECTION ................................ ..... 47EXEC_SQL.OPEN_CURSOR................................ .................... 48EXEC_SQL.PARSE................................ ................................ .. 49EXEC_SQL.DESCRIBE_COLUMN ................................ ............ 51EXEC_SQL.BIND_VARIABLE................................ .................. 54EXEC_SQL.DEFINE_COLUMN ................................ ............... 56EXEC_SQL.EXECUTE ................................ ............................. 57EXEC_SQL.EXECUTE_AND_FETCH ................................ ....... 59EXEC_SQL.FETCH_ROWS ................................ ...................... 60EXEC_SQL.MORE_RESULT_SETS ................................ ........... 62EXEC_SQL.COLUMN_VALUE ................................ ................ 63EXEC_SQL.VARIABLE_VALUE................................ ............... 65EXEC_SQL.IS_OPEN................................ .............................. 66EXEC_SQL.CLOSE_CURSOR ................................ .................. 68EXEC_SQL.IS_CONNECTED ................................ ................... 69EXEC_SQL.IS_OCA_CONNECTION................................ ....... 69EXEC_SQL.CLOSE_CONNECTION................................ .......... 70EXEC_SQL.LAST_ERROR_POSITION ................................ ...... 71EXEC_SQL.LAST_ROW_COUNT ................................ ............ 72EXEC_SQL.LAST_SQL_FUNCTION_CODE ............................ 74EXEC_SQL.LAST_ERROR_CODE................................ ............ 75EXEC_SQL.LAST_ERROR_MESG................................ ............ 76TIP................................ ................................ ........................... 77CHANGING THE PRIMARY DATABASE CONNECTION ................. 77

    LIST PACKAGE................................ ................................ ........... 78LIST PACKAGE ................................ ................................ ......... 78LIST.APPENDITEM ................................ ................................ ... 78

  • iii

    LIST.DESTROY................................ ................................ .......... 79LIST.DELETEITEM................................ ................................ ..... 79LIST.FAIL ................................ ................................ ................. 80LIST.GETITEM ................................ ................................ .......... 80LIST.INSERTITEM................................ ................................ ...... 80LIST.LISTOFCHAR ................................ ................................ .... 81LIST.MAKE ................................ ................................ .............. 81LIST.NITEMS ................................


Recommended