+ All Categories
Home > Documents > Administration and Programming for iSeries · PDF file · 2017-03-31IBM DB2 UDB for...

Administration and Programming for iSeries · PDF file · 2017-03-31IBM DB2 UDB for...

Date post: 28-Mar-2018
Category:
Upload: buidang
View: 232 times
Download: 0 times
Share this document with a friend
285
IBM DB2 UDB for iSeries XML Extender Administration and Programming Version 8 SC18-9179-00
Transcript
  • IBM

    DB2

    UDB

    for

    iSeries

    XML

    Extender

    Administration

    and

    Programming

    Version

    8

    SC18-9179-00

  • IBM

    DB2

    UDB

    for

    iSeries

    XML

    Extender

    Administration

    and

    Programming

    Version

    8

    SC18-9179-00

  • Note

    Before

    using

    this

    information

    and

    the

    product

    it

    supports,

    please

    read

    the

    general

    information

    under

    Notices

    on

    page

    265.

    First

    Edition

    (May

    2004)

    This

    edition

    applies

    to

    Version

    5

    Release

    3

    of

    IBM

    DB2

    Database

    Extenders

    for

    iSeries

    Version

    5

    Release

    3,

    5722-DE1,

    and

    to

    all

    subsequent

    releases

    and

    modifications

    until

    otherwise

    indicated

    in

    new

    editions.

    This

    edition

    applies

    only

    to

    reduced

    instruction

    set

    computer

    (RISC)

    systems.

    Copyright

    International

    Business

    Machines

    Corporation

    1999,

    2004.

    All

    rights

    reserved.

    US

    Government

    Users

    Restricted

    Rights

    Use,

    duplication

    or

    disclosure

    restricted

    by

    GSA

    ADP

    Schedule

    Contract

    with

    IBM

    Corp.

  • Contents

    Tables

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . vii

    About

    this

    book

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . ix

    Who

    should

    use

    this

    book

    .

    .

    .

    .

    .

    .

    .

    .

    . ix

    How

    to

    get

    a

    current

    version

    of

    this

    book

    .

    .

    .

    . ix

    How

    to

    use

    this

    book

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . ix

    Highlighting

    conventions

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . x

    How

    to

    read

    syntax

    diagrams

    .

    .

    .

    .

    . xi

    Part

    1.

    Introduction

    .

    .

    .

    .

    .

    .

    .

    .

    . 1

    Chapter

    1.

    Introduction

    .

    .

    .

    .

    .

    .

    .

    . 3

    Introduction

    to

    XML

    Extender

    .

    .

    .

    .

    .

    .

    .

    . 3

    XML

    Documents

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 3

    How

    XML

    data

    is

    handled

    in

    DB2

    .

    .

    .

    .

    .

    .

    . 4

    Features

    of

    XML

    Extender

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 4

    XML

    Extender

    tutorial

    lessons

    .

    .

    .

    .

    .

    .

    .

    . 7

    Prerequisites

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 7

    Scenario

    for

    the

    lessons

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 7

    Lesson:

    Storing

    an

    XML

    document

    in

    an

    XML

    column

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 8

    Lesson:

    Composing

    an

    XML

    document

    .

    .

    .

    .

    . 17

    Part

    2.

    Administration

    .

    .

    .

    .

    .

    .

    . 29

    Chapter

    2.

    Administration

    .

    .

    .

    .

    .

    . 31

    Administration

    tools

    for

    XML

    Extender

    .

    .

    .

    .

    . 31

    Administrationdetails

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 31

    The

    XML

    operating

    environment

    on

    iSeries

    .

    .

    . 31

    Preparing

    to

    administer

    XML

    Extender

    .

    .

    .

    . 32

    Migrating

    XML

    Extender

    from

    Version

    7

    to

    Version

    8

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 33

    Setting

    up

    XML

    Extender

    samples

    and

    the

    development

    environment

    for

    iSeries

    .

    .

    .

    .

    . 35

    Creating

    an

    SQL

    collection

    (schema)

    for

    the

    samples

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 36

    Setting

    up

    administration

    tools

    for

    iSeries

    .

    .

    . 36

    Setting

    up

    the

    tutorial

    environment

    for

    iSeries

    .

    . 38

    XML

    Extender

    administration

    planning

    .

    .

    .

    . 38

    Access

    and

    storage

    methods

    .

    .

    .

    .

    .

    .

    .

    . 39

    When

    to

    use

    the

    XML

    column

    method

    .

    .

    .

    . 40

    When

    to

    use

    the

    XML

    collection

    method

    .

    .

    . 41

    Planning

    for

    XML

    columns

    .

    .

    .

    .

    .

    .

    .

    . 41

    Planning

    for

    XML

    collections

    .

    .

    .

    .

    .

    .

    . 42

    Validating

    XML

    documents

    automatically

    .

    .

    . 51

    Enabling

    a

    database

    for

    XML

    .

    .

    .

    .

    .

    .

    . 52

    Creating

    an

    XML

    table

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 53

    Storing

    a

    DTD

    in

    the

    repository

    table

    .

    .

    .

    .

    . 54

    Enabling

    XML

    columns

    .

    .

    .

    .

    .

    .

    .

    .

    . 54

    Planning

    side

    tables

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 58

    Indexing

    side

    tables

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 59

    Composing

    XML

    documents

    by

    using

    SQL

    mapping

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 59

    Composing

    XML

    collections

    by

    using

    RDB_node

    mapping

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 62

    Decomposing

    an

    XML

    collection

    by

    using

    RDB_node

    mapping

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 65

    Part

    3.

    Programming

    .

    .

    .

    .

    .

    .

    .

    . 69

    Chapter

    3.

    XML

    columns

    .

    .

    .

    .

    .

    .

    . 71

    Managing

    data

    in

    XML

    columns

    .

    .

    .

    .

    .

    .

    . 71

    XML

    columns

    as

    a

    storage

    and

    access

    method

    .

    .

    . 71

    Defining

    and

    enabling

    an

    XML

    column

    .

    .

    .

    .

    . 72

    Using

    indexes

    for

    XML

    column

    data

    .

    .

    .

    .

    .

    . 73

    Storing

    XML

    data

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 74

    Default

    casting

    functions

    for

    storing

    XML

    data

    75

    Storage

    UDFs

    for

    storing

    XML

    data

    .

    .

    .

    .

    . 75

    Method

    for

    retrieving

    an

    XML

    document

    .

    .

    .

    . 76

    Retrieving

    an

    entire

    XML

    document

    .

    .

    .

    .

    . 77

    Retrieving

    element

    contents

    and

    attribute

    values

    from

    XML

    documents

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 78

    Updating

    XML

    data

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 80

    Updating

    an

    entire

    XML

    document

    .

    .

    .

    .

    . 80

    Updating

    specific

    elements

    and

    attributes

    of

    an

    XML

    document

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 81

    Methods

    for

    searching

    XML

    documents

    .

    .

    .

    .

    . 82

    Searching

    the

    XML

    document

    by

    structure

    .

    .

    . 82

    Deleting

    XML

    documents

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 84

    Limitations

    when

    invoking

    functions

    from

    Java

    Database

    (JDBC)

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    .

    . 84

    Chapter

    4.

    Managing

    data

    in

    XML


Recommended