SQream Connector JDBC SQream Technologies Version 2.9.3

Similar documents
C:/Users/zzaier/Documents/NetBeansProjects/WebApplication4/src/java/mainpackage/MainClass.java

Java Database Connectivity

1. PhP Project. Create a new PhP Project as shown below and click next

SQream Dashboard Version SQream Technologies

DATABASE DESIGN I - 1DL300

SQream Connector Native Python SQream Technologies Version 2.1.2

Create Individual Membership. This step-by-step guide takes you through the process to create an Individual Membership.

ODBC for Linux documentation. SQream Technologies Version 2.23

Servlet 5.1 JDBC 5.2 JDBC

Accessing databases in Java using JDBC

CSC System Development with Java. Database Connection. Department of Statistics and Computer Science. Budditha Hettige

SQream Connector Native C SQream Technologies Version 1.2.0

Databases 2012 Embedded SQL

Create Faculty Membership Account. This step-by-step guide takes you through the process to create a Faculty Membership Account.

Java Database Connectivity (JDBC) 25.1 What is JDBC?

Accessing a database from Java. Using JDBC

DB I. 1 Dr. Ahmed ElShafee, Java course

BUSINESS INTELLIGENCE LABORATORY. Data Access: Relational Data Bases. Business Informatics Degree

Tiers (or layers) Separation of concerns

VanillaCore Walkthrough Part 1. Introduction to Database Systems DataLab CS, NTHU

Configuring Oracle Business Intelligence Enterprise Edition to Support Teradata Database Query Banding

while (rs.next()) { String[] temp_array = {"","",""}; int prodid = rs.getint(1); temp_array[0] = ""+prodid;

Oracle Social Network

More Database Programming. CS157A Chris Pollett Nov. 2, 2005.

Introduction to Databases

Unit 3 - Java Data Base Connectivity

Oracle Learn Cloud. Taleo Release 16B.1. Release Content Document

Application Container Cloud

Oracle Database 10g Release 2 Database Vault - Restricting the DBA From Accessing Business Data

See What's Coming in Oracle Taleo Business Edition Cloud Service

Installation Instructions: Oracle XML DB XFILES Demonstration. An Oracle White Paper: November 2011

Using the Oracle Business Intelligence Publisher Memory Guard Features. August 2013

EJB - ACCESS DATABASE

CreateServlet.java

WEB SERVICES EXAMPLE 2

Working with Time Zones in Oracle Business Intelligence Publisher ORACLE WHITE PAPER JULY 2014

Oracle Financial Consolidation and Close Cloud. What s New in the December Update (16.12)

Oracle Enterprise Performance Reporting Cloud. What s New in September 2016 Release (16.09)

An Oracle White Paper November Primavera Unifier Integration Overview: A Web Services Integration Approach

Oracle Financial Consolidation and Close Cloud. What s New in the November Update (16.11)

Database Programming Overview. COSC 304 Introduction to Database Systems. Database Programming. JDBC Interfaces. JDBC Overview

Java Database Connectivity

An Oracle White Paper October The New Oracle Enterprise Manager Database Control 11g Release 2 Now Managing Oracle Clusterware

Oracle Exam 1z0-809 Java SE 8 Programmer II Version: 6.0 [ Total Questions: 128 ]

This lecture. Databases - JDBC I. Application Programs. Database Access End Users

Your New Autonomous Data Warehouse

Topic 12: Database Programming using JDBC. Database & DBMS SQL JDBC

Oracle Utilities CC&B V2.3.1 and MDM V2.0.1 Integrations. Utility Reference Model Synchronize Master Data

Administration Dashboard Installation Guide SQream Technologies

You write standard JDBC API application and plug in the appropriate JDBC driver for the database the you want to use. Java applet, app or servlets

Frequently Asked Questions Oracle Content Management Integration. An Oracle White Paper June 2007

Chair of Software Engineering. Java and C# in Depth. Prof. Dr. Bertrand Meyer. Exercise Session 9. Nadia Polikarpova

An Oracle White Paper December, 3 rd Oracle Metadata Management v New Features Overview

Oracle Data Provider for.net Microsoft.NET Core and Entity Framework Core O R A C L E S T A T E M E N T O F D I R E C T I O N F E B R U A R Y

Create Institutional Membership

Database Application Development

Oracle Learn Cloud. What s New in Release 15B.1

Correction Documents for Poland

WebCenter Portal Task Flow Customization in 12c O R A C L E W H I T E P A P E R J U N E

Prof. Edwar Saliba Júnior

Oracle Enterprise Data Quality New Features Overview

Autonomous Data Warehouse in the Cloud

Kyle Brown Knowledge Systems Corporation by Kyle Brown and Knowledge Systems Corporation

Oracle Application Server 10g Oracle XML Developer s Kit Frequently Asked Questions September, 2005

Visit for more.

JDBC Architecture. JDBC API: This provides the application-to- JDBC Manager connection.

Types of Databases. Types of Databases. Types of Databases. Databases and Web. Databases and Web. Relational databases may also have indexes

TABLE OF CONTENTS DOCUMENT HISTORY 3

Data Capture Recommended Operating Environments

ORAAH Change List Summary. ORAAH Change List Summary

Oracle Service Cloud Agent Browser UI. November What s New

Load Project Organizations Using HCM Data Loader O R A C L E P P M C L O U D S E R V I C E S S O L U T I O N O V E R V I E W A U G U S T 2018

Generate Invoice and Revenue for Labor Transactions Based on Rates Defined for Project and Task

Oracle CIoud Infrastructure Load Balancing Connectivity with Ravello O R A C L E W H I T E P A P E R M A R C H

SQL: Programming. Announcements (September 25) Motivation. CPS 116 Introduction to Database Systems. Pros and cons of SQL.

Multichannel Connect for Salesforce CRM Integration Guide

Advanced Global Intercompany Systems : Transaction Account Definition (TAD) In Release 12

Virtual Office. Group Call Pickup. Version 1.0. Revision 1.0

Prof. Edwar Saliba Júnior

Pricing Cloud: Upgrading to R13 - Manual Price Adjustments from the R11/R12 Price Override Solution O R A C L E W H I T E P A P E R A P R I L

Oracle Express CPQ for Salesforce.com

Creating Custom Project Administrator Role to Review Project Performance and Analyze KPI Categories

Oracle FLEXCUBE Direct Banking Release Dashboard Widgets Transfer Payments User Manual. Part No. E

UPK and UPK Professional Technical Specifications

IBM Netezza JDBC 연동가이드

Enterprise Systems. Lecture 02: JDBC. Behzad BORDBAR

Adding Mobile Capability to an Enterprise Application With Oracle Database Lite. An Oracle White Paper June 2007

UNIT-3 Java Database Client/Server

DBSync Integration Salesforce and QuickBooks Online (Bi-directional)

ERwin and JDBC. Mar. 6, 2007 Myoung Ho Kim

Workbook 5. Introduction. Using a database in Java. Important

Oracle Financial Consolidation and Close Cloud. What s New in the February Update (17.02)

NOSQL DATABASE CLOUD SERVICE. Flexible Data Models. Zero Administration. Automatic Scaling.

Oracle Enterprise Performance Reporting Cloud. What s New in the November Update (16.11)

Database Application Development

WHAT S NEW IN ORACLE USER PRODUCTIVITY KIT PROFESSIONAL

DB2, JavaBean. Retrieve DB2 Data - Xpages Form (Part 3) Xpages

Oracle Enterprise Performance Management Cloud

Assignment -3 Source Code. Student.java

One Gateway That Can Do It All

Transcription:

SQream Connector JDBC 2.9.3 SQream Technologies 2019-03-27 Version 2.9.3

Table of Contents The SQream JDBC Connector - Overview...................................................... 1 1. API Reference............................................................................ 1 2. Installation Instructions................................................................... 1 3. Code Samples............................................................................. 1 3.1. Connecting to sqream, creating a table with some data and retrieveing the data............ 1 Copyright................................................................................ 3

The SQream JDBC Connector - Overview This guide describes the implementation of the SQream JDBC connector and is designed for SQream DB administrators and developers. The code sample shows how to initialize a connection, insert data to a table and run SQL queries (statements). SQream connector protocol version: 6 1. API Reference See the JAVA 8 JDBC reference https://docs.oracle.com/javase/8/docs/api/java/sql/package-summary.html 2. Installation Instructions Place the JAR file in the CLASSPATH. You will need the following JAR file: SqreamJDBC.jar 3. Code Samples 3.1. Connecting to sqream, creating a table with some data and retrieveing the data Example import java.sql.connection; import java.sql.databasemetadata; import java.sql.drivermanager; import java.sql.statement; import java.sql.resultset; import java.io.ioexception; import java.security.keymanagementexception; import java.security.nosuchalgorithmexception; import java.sql.sqlexception; public class SampleTest { // Replace with your respective URL 1

static final String url = "jdbc:sqream://127.0.0.1:5000/master;user=sqream;password=sqream;cluster=false;ssl=fal se"; Connection conn = null; Statement stmt = null; ResultSet rs = null; DatabaseMetaData dbmeta = null; int res = 0; public void testjdbc() throws SQLException, IOException { conn = DriverManager.getConnection(url,"sqream","sqream"); // Create a table String sql = "create or replace table test (x int)"; stmt.execute(sql); // Insert some valuess sql = "insert into test values (5),(6)"; stmt.execute(sql); // Retrieve sql = "select * from test"; rs = stmt.executequery(sql); while(rs.next()) { res = rs.getint(1); System.out.println(res); rs.close(); // Get table metadata dbmeta = conn.getmetadata(); rs = dbmeta.gettables("master", "public", "test",new String[] {"TABLE" ); while (rs.next()) { ResultSet rs2 = dbmeta.getcolumns(null, null, "test", null); while (rs2.next()) { System.out.println(rs2.getString(1)); rs2.close(); rs.close(); conn.close(); 2

public static void main(string[] args) throws SQLException, KeyManagementException, NoSuchAlgorithmException, IOException, ClassNotFoundException{ // Load JDBC driver - not needed with newer version Class.forName("com.sqream.jdbc.SQDriver"); SampleTest test = new SampleTest(); test.testjdbc(); Copyright Copyright 2010-2019. All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchant- ability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced in any form, for any purpose, without our prior written permission. 3