Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
3Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
c-jdbc

c-jdbc

Ratings: (0)|Views: 167 |Likes:
Published by api-3837608

More info:

Published by: api-3837608 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

C-JDBC User\u2019s Guide

Emmanuel Cecchet
Julie Marguerite
Mathieu Peltier
Nicolas Modrzyk

Version 1.3.2
Copyright \u00a9 2002, 2003, 2004, 2005 French National Institute For Research In
Computer Science And Control (INRIA)
Java, and all Java-based trademarks are trademarks or registered trademarks of Sun
Microsystems, Inc. in the United States and other countries.
Table of Contents
1. Getting Started................................................................................................................................................... 5

1.1. What is C-JDBC?.................................................................................................................................... 5 1.2. What do I need to use C-JDBC?............................................................................................................. 5 1.3. Why should I use C-JDBC?.................................................................................................................... 5 1.4. How does it work?................................................................................................................................... 5 1.5. What does it cost?................................................................................................................................... 6 1.6. What kind of modi\ufb01cations are needed?................................................................................................. 7

2. Getting the Sofware........................................................................................................................................... 7
3. Installation.......................................................................................................................................................... 7

3.1. C-JDBC Controller.................................................................................................................................. 7
3.1.1. Using the Java graphical installer............................................................................................... 7
3.1.2. Using the binary distribution...................................................................................................... 8
3.2. C-JDBC Driver........................................................................................................................................ 9
3.3. C-JDBC out of the box............................................................................................................................ 9

4. C-JDBC Driver................................................................................................................................................... 9

4.1. Overview............................................................................................................................................... 10
4.2. Loading the Driver................................................................................................................................ 10
4.3. C-JDBC JDBC URL............................................................................................................................. 10
4.3.1. URL options.............................................................................................................................. 10
4.4. Proxying mode...................................................................................................................................... 12
4.5. Getting a connection using a data source.............................................................................................. 12
4.6. Stored procedures.................................................................................................................................. 14
4.7. Blobs: Binary Large Objects................................................................................................................. 14
4.8. Clobs: Character Large Objects............................................................................................................ 15
4.9. ResultSet streaming............................................................................................................................... 16
4.10. Current Limitations............................................................................................................................. 17

5. Con\ufb01guring C-JDBC with 3rd party software.............................................................................................. 17

5.1. Forenotes on con\ufb01guring C-JDBC with your application..................................................................... 17 5.2. Con\ufb01guring C-JDBC with Jakarta Tomcat........................................................................................... 17 5.3. Con\ufb01guring C-JDBC with JOnAS........................................................................................................ 17 5.4. Con\ufb01guring C-JDBC with JBoss.......................................................................................................... 18 5.5. Con\ufb01guring C-JDBC with BEA Weblogic Server 7.x/8.x.................................................................... 18 5.6. Con\ufb01guring C-JDBC with Hibernate.................................................................................................... 19 5.7. Using sequences with Hibernate, C-JDBC and PostgreSQL................................................................ 19

6. C-JDBC controller........................................................................................................................................... 19

6.1. Design Overview................................................................................................................................... 19
6.2. Starting the Controller........................................................................................................................... 21
6.3. Writing the controller con\ufb01guration \ufb01le................................................................................................ 21
6.3.1. Controller Parameters............................................................................................................... 21
6.3.2. Internationalization................................................................................................................... 22
6.3.3. Report....................................................................................................................................... 22
6.3.4. JMX.......................................................................................................................................... 23
6.3.5. Virtual Database........................................................................................................................ 24
6.3.6. Security..................................................................................................................................... 25
6.4. Con\ufb01guring the Log.............................................................................................................................. 26
6.5. Recovery Log........................................................................................................................................ 27
6.5.1. A practical example.................................................................................................................. 28
6.5.2. A fault tolerant Recovery Log.................................................................................................. 28
6.6. Controller replication............................................................................................................................ 28
6.7. Current Limitations............................................................................................................................... 29

7. Administration console.................................................................................................................................... 30

7.1. Jmx Noti\ufb01cations List........................................................................................................................... 30
7.2. Starting the Administration Console..................................................................................................... 31
7.3. Console Quickstart................................................................................................................................ 31
7.4. Console Main Menu.............................................................................................................................. 34
7.5. Administrator Menu.............................................................................................................................. 35
7.5.1. Using checkpoints..................................................................................................................... 35
7.5.2. Creating Dumps with Octopus.................................................................................................. 36
7.5.3. Automated Backup With Jmx................................................................................................... 36
7.5.4. Recoverying from a failed controller in distributed mode........................................................ 37
7.6. Virtual Database Console Menu............................................................................................................ 38
7.7. Monitoring Console Menu.................................................................................................................... 38

8. RAIDb Basics................................................................................................................................................... 39

8.1. RAIDb De\ufb01nition.................................................................................................................................. 39 8.2. RAIDb-0................................................................................................................................................ 39 8.3. RAIDb-1................................................................................................................................................ 39 8.4. RAIDb-2................................................................................................................................................ 40 8.5. Nested RAIDb Levels............................................................................................................................ 40

9. Virtual database con\ufb01guration....................................................................................................................... 40

9.1. Writing a Virtual Database Con\ufb01guration File..................................................................................... 42
9.2. Virtual Database.................................................................................................................................... 42
9.2.1. Distribution............................................................................................................................... 43
9.2.2. Monitoring................................................................................................................................ 45
9.3. Backup Manager................................................................................................................................... 46
9.4. Authentication Manager........................................................................................................................ 46
9.5. Database Backend................................................................................................................................. 47

9.5.1. Rewriting requests on backends............................................................................................... 48
9.5.2. Database Schema De\ufb01nition..................................................................................................... 49
9.5.3. Connection Manager................................................................................................................. 51
9.6. Request Manager................................................................................................................................... 52
9.6.1. Macros Handler........................................................................................................................ 53
9.6.2. Request Scheduler.................................................................................................................... 53
9.6.3. Request Cache.......................................................................................................................... 54
9.6.4. Load Balancer........................................................................................................................... 58
9.6.5. Recovery Log............................................................................................................................ 62
9.7. SSL Con\ufb01guration................................................................................................................................. 65
9.7.1. Controller.................................................................................................................................. 65
9.7.2. Console / Jmx Clients............................................................................................................... 66
9.7.3. Driver........................................................................................................................................ 66
9.7.4. Certi\ufb01cates (public and private keys)........................................................................................ 67
9.8. Con\ufb01guration Examples........................................................................................................................ 67

10. Request Player................................................................................................................................................ 68

10.1. Recording a request trace.................................................................................................................... 68 10.2. Replaying a trace \ufb01le........................................................................................................................... 69 10.3. requestplayer.properties....................................................................................................................... 69

11. Glossary.......................................................................................................................................................... 69
12. About C-JDBC............................................................................................................................................... 69

12.1. License................................................................................................................................................ 70 12.2. Web Site.............................................................................................................................................. 70 12.3. Wiki..................................................................................................................................................... 70 12.4. Mailing Lists....................................................................................................................................... 70 12.5. Reporting a Bug.................................................................................................................................. 71 12.6. Getting Involved.................................................................................................................................. 71 12.7. About INRIA....................................................................................................................................... 71 12.8. About ObjectWeb................................................................................................................................ 71

Activity (3)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
usunom liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->