Database Design for use with XSQL-connected Clients

Hi all,
this might seem a little off-topic at first, but I suppose we are not the only ones reading this group designing an architechture using XSQL servlet as the only connection to the database, with clients connecting over the internet.
So far our approach works well, but of course any database round trip is much more expensive in this environment than with clients that hold an open connection to the database.
That led us to the idea of generating primary keys on the client instead of the database (e.g. with CoCreateGuid on Win32). Do those GUIDs have to be stored in the Oracle database in a RAW column or does a NUMBER field do the job?
I found a hint in the Oracle 8i Replication manual to use SYS_GUID values in a RAW(32) column as a primary key to avoid conflicts between sequences on multiple machines. But I didn't find any statement concerning the performance issues of this.
Our database will not store huge amounts of data (most tables < 100.000 rows, just a handful more than a million in huge environments, which will be able to afford huge machines...), so this should not be
a problem, I guess.
Does anyone of you have experience with this?
And another question: Can I safely assume that keys generated with SYS_GUID on the Oracle server will not likely be the same as those that are generated using CoCreateGuid on the Win32 client?
Thanks for your input.
Olaf Lewitz
ohltec SOFTWERFT, Hamburg

Don't GUID's have hyphens in them? If so, you'd have to use a VARCHAR2(xx) of appropriate length. If not, then you can likely use HEX_TO_RAW() and RAW_TO_HEX() to store then in a RAW as you've noted.
Note that the XSQL Servlet's default connection manager does to connection pooling, so the roundtrip to the database may not be as expensive as you're thinking. :-)

Similar Messages

  • Cannot configure wrt54gs v6 router for use with filezilla FTP client

    I am new to working with FTP and very rusty on networking in general.  I just downloaded filezilla to create a FTP client on my desktop.  When I run their wizard, it says the connection is tainted by my router.  All the forums for filezilla say I need to configure my router to allow traffic on either port 21 (ftp) or a range of ports ( they suggest 50000 to 50100).
    Please let me know what I need to do to make this work
    thanks in advance
    ldygunner

    To answer your other questions, the tutorials have it all wrong. What they really need to explain, but fail to do so, is that the only situation where a FTP client would need to use active mode (the PORT command) is where the FTP server can't accept inbound connections on arbitrary port numbers. But that's a pathological case anyway: the FTP server can always accept connections on some well defined set of port numbers, to keep its own local firewall or NAT router happy. Consequently, there is really no need at all for a FTP client system to open up any ports to support active mode, rather than always operate in passive mode (as browsers do.)
    The fact of the matter is that if passive mode works in a browser for you, it will work for Filezilla also.
    And the configuration tests it runs are brain damaged. Even though the wizard recommends passive mode, it never tests for it. And it doesn't really test active mode either. What it really tests is whether anything between the client and the server is "transparently" translating IP addresses and port numbers. Such a test is broken, because the mere fact of port numbers being rewritten in TCP packets is irrelevant to whether PORT (active mode) will succeed or fail.
    For completeness, in case someone decides to get pedantic, there is a case where a FTP client system would need the active mode PORT command to work, but that case is now of historical interest only. It's a scenario that FTP servers no longer support, for security reasons. (What is it? When the FTP client is operating as a controller to remotely transfer files between two servers: it tells one server to use passive mode, and sends the address/port it gets to the other server in active mode, which in theory would make the second server open a connection to the first. This, in fact, is why two modes, active and passive, were originally defined in the FTP standard!)  And it still wouldn't need open ports on the client system.
    Message Edited by arayq2 on 10-19-2008 09:12 PM

  • Database design for objects with multiple states

    Context
    I'm designing a database which, simplified, should be able to handle users sending job requests to each other, and after that a job can be started, finished, and reviewed. The design should be scalable (think millions of users).
    Approaches I've considered:
    Gargantuan table
    One approach, probably not the best one, would be to simply store ALL jobs in one, huge table
    jobs. This table would need a state column to represent which state the job is currently in (e.g.
    ACCEPTED, STARTED, FINISHED, REVIEWED e.t.c.). The biggest problem with this approach that I can see is that jobs in different states have different types of data that are relevant to them. For example, a
    job request has a preliminary agreed upon price, but that could change before the job is started, and change again before the job is finished. This could of course be solved by just adding more columns to the table and naming them properly, but it will probably
    become a huge bottleneck performance-wise very early to have one table containing all the different types of possible data for all the different possible states of a job.
    Different tables for different states
    This approach would be to have multiple tables, for example job_requests,
    jobs_started, jobs_finished, tables who in turn can have substates, e.g.
    job_requests could have the sub-states PENDING, ACCEPTED, while the
    jobs_finished table would have the substates COMPLETED,
    CANCELLED, REVIEWED.
    With this approach each table only contains data which is relevant to the current job state, but on the other hand some data might be duplicated (for example the user ids of the job requester, and job receiver -- on the other hand this information could
    be stored in yet another table?). The problem with this approach is that I can't think of a good solution on how to archive all the information when transitioning between states. For example, once a job request has been accepted, and then started, it should
    be deleted from the job_requests table and moved into the jobs_started table, but it's just a matter of time before a stakeholder wants to know for example how long the average time is between a job request being created, until it's
    been started, at which point I'd need the data from the job_requests table to be able to calculate it.
    It feels like this type of problem should be easy to solve, but I really can't think of any good solution which "feels right", any solution I come up with feels ugly and I can immediately think of a number of things which makes the solution bad.
    Very grateful for any feedback or tips on approaches I could take. Thanks in advance!

    This will be moved to the design fourm, which I don't monitor, by a moderator within a day or so.
    A table in a relational database is supposed to model a unique entity. Job is such an entity. But "Jobs in Washingon state" and "Jobs in Oregon" are two such unique entities.
    I don't see why jobs in different states would have different attributes, but it is not my business domain. And the problem certainly appears in other areas. My area is financial instruments, and they come in many flavours. And still have many attributes
    in common.
    So what we do is that we have a table instruments which holds common data. And then there are tables like funds, futures, bonds, optionandwarrants etc that holds attributes that unique to these classes of instruments. These specific tables are child tables
    to the instruments tables.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Why sql sever database design is used for essbas?

    Hi
    I am new to the Hyperion technology . i would like to know why do we use any RDBM like sql sever database design for essbase which is itself is the database.What is the main difference between these two databases?
    My understanding is that Essbase act as same as SSAS for cube and dimension building.And they use database design for storing the tables and other information.
    Thanks

    A relational database can be used for a number of reasons with Essbase (and is required in some instances). These include
    1. a repository for system tables for Shared services, EAS, Studio,EPMA, Workspace, Financial Management etc
    2. A data source for loading Essbase
    3. A work area for transformations

  • Configuration of XSQL for use with non-Oracle dbs

    If anyone has positive experiences with configuring XSQL for use with non Oracle databases I'd like to hear how they did it, see tutorials, configuration files, etc.
    Specifically setting up to use MySQL or Postgresql on Linux/FreeBSD would be very interesting.
    Also, does anyone use this without setting mime types? How would you go about this so you could point to the relevant servlets in the page?
    Josh

    I don't understand how setting up for Non-Oracle DB's is related to not setting up the servlet as an extension-mapped servlet.
    It might work, but would you run JSP's
    that way? XSQL behaves very similiarly
    inside to how a JSP runner works, which
    wants to be servlet-mapped.
    However, OAS 4.0.8.1 does not support
    extension mapping and XSQL works there
    so i'm assuming it would work on other
    servers set up that way. It's not
    a configuration we test/certify.
    null

  • What products are available to connect a electric guitar to a IPAD 4 for use with garage band???

    what products are availabe to connect an ipad 4 with electric guitar for use with garage band???

    I know this will sound a bit snarky but the best source for information is an Internet search. Typing in "connect guitar to iPad" produced pages of products. This one looked interesting to me...
    http://www.apogeedigital.com/products/jam.php?gclid=CPSpza6q2bQCFU6mPAodpmcAqg
    I don't recall if the iPad 4 has the new lightning connector or not. If it does you'll probably need a  30pin-to-lightening adapter.

  • I need to connect a Micro SD Card to my MacBook (10.6.8) 2011 so I can switch my Magellan RoadMate GPS for use with the new Mac Content Manager from Magellan. Can I do this? from

    I need to connect a Micro SD Card to my MacBook (10.6.8) 2011 so I can switch my Magellan RoadMate GPS for use with the new Mac Content Manager from Magellan. Can I do this? from

    Hi Robert and welcome to Apple Discussions,
    There are adapters available that convert micro cards into fullsize ones.
    You will also need a USB card reader if you do not have one.
    Good luck,
    Alan

  • I am traveling to Italy from U.S. and bought American Tourister Worldwide Adaptor Plug for my iPhone 5 andiPad 2. The instructions saying is not for use with grounded plugs and can only be connected with non-grounding circuits. Will this adaptor work?

    I am traveling to Italy and bought an American Tourister Worldwide Adaptor a plug for my iPhone 5 and iPad 2. The instructions say it is not for grounding use and not for use with grounded plugs. Will this work?

    That adaptor should work.

  • I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    Yes. You can directly connect an 802.11n AirPort Express Base Station (AXn) using an Ethernet cable. The AXn would then just need to be configured as a bridge to allow the D-Link to continue to provide both NAT & DHCP services for all network clients connected to either router.
    In this configuration, the AXn would broadcast a wireless network for your wireless network clients to connect to.

  • Database design for share market

    Hi One and All,
    I have a query regarding, design of New database....
    Right now I joined as a Database administrator as a fresher, my superior has given me one assignment i.e. I have to create a sample database on Share market. As per his requirement the tables should be Issuer table, Security table, Broker table, INvestor table, Account table, Order table, Tradeing table. He said that I have to prepare the fiellds for this tables and relation ships and whole database structure.... I can prepare relations ships and database structure but the problem is, I don't know how the stock market is really works. If any body help me in this issue I am very thank full to him.
    I need just the table feilds, if I get this rest of job i wil do by studying the subject of share market.
    Thank You

    Hi,
    As per Hemant this forum is not appropriate for this question. However you have to analyze the system by meetings with stock broker at stock Exchange or to the client for which you are designing the system. Ask your superior to arrange meeting with client and then ask question to him so that you can made database design for them.
    Regards,
    Abbasi

  • [Oracle JDBC Driver]This driver is locked for use with embedded application

    Hi
    I installed Sun Java Studio Enterprise 8, and am trying to connect to my Oracle database using the attached tutorial code.
    The code compiles fine, but I get the following error whenever I run the file: [Oracle JDBC Driver]This driver is locked for use with embedded application
    I don't understand what is happening.
    Using the Runtime navigation panel on the upper left of the IDE screen, I can right-click and connect to the database, and navigate database files, using the Oracle JDBC Driver that came with JSE8.
    Name: Oracle Driver
    Driver: com.sun.sql.jdbc.oracle.OracleDriver
    Database URL: jdbc:sun:oracle://JAZZPUP:1521;SID=REPO
    If the driver is installed, and can be used to connect to a database by right-clicking on the database definition in the Runtime panel, why can't I connect to it just using java code in the IDE. I would expect both methods to work or to fail, not one of each using the same IDE.
    Many thanks and take care,
    Shayne
    import java.sql.*;
    public class CreateCoffees {
    public static void main(String args[]) {
    //String url = "jdbc:mySubprotocol:myDataSource";
    String url = "jdbc:sun:oracle://JAZZPUP:1521;SID=REPO";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
    //Class.forName("myDriver.ClassName");
    Class.forName("com.sun.sql.jdbc.oracle.OracleDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    //con = DriverManager.getConnection(url, "myLogin", "myPassword");
    con = DriverManager.getConnection(url, "login", "password");
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    } //end class CreateCoffees
    ---

    There are two similar threads:
    http://swforum.sun.com/jive/thread.jspa?threadID=61327&tstart=0
    http://swforum.sun.com/jive/thread.jspa?threadID=51057&messageID=188210
    To summarize - the DataDirectDriver that is shipped with the IDE seems to be locked to be used inside the IDE only because of some licensing issues etc..
    That's weird, I agree. I will raise a question on reasons for such a behavior.
    The solution would be to use Oracle's own driver, that is distributed at no charge from their web site - http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    HTH,
    Kirill

  • JDBC Error: This driver is locked for use with embedded applications

    Hi Experts,
    My sender adapter is throwing the below error:
    Error during database connection to the database URL 'jdbc:nwmss:sqlserver://<host>:<port>;databaseName=<dbname>' using the JDBC driver 'com.sap.nwmss.jdbc.sqlserver.SQLServerDriver': 'java.sql.SQLException: [NWMss][SQLServer JDBC Driver]This driver is locked for use with embedded applications.'
    What could be the problem? How can I resolve it?

    download the latest version of SQL driver from MS site and re deploy it on PI

  • Unsure about preparing a Dreamweaver Site for use with Contribute

    Recently I designed a small Dreamweaver Website (DW CS2) for
    a friend and it is already successfully online. So that my friend
    can manage her own website, I`ve decided to prepare this DW site
    for use with Contribute, but I'm unsure about the steps involved
    and what files I will need to store on the server. Is the following
    roughly correct?
    Step 1: Define editable regions in these html files and save
    these as html files.
    Step 2: Enable Contribute Compatibility in DW before I upload
    to the server.
    Step 3: Is setting up a Connection Key necessary for my
    friend`s access?
    Step 4: Upload these. Do these completely overwrite the
    existing Dreamweaver html files on the server? Or should I be
    saving in another file format?
    Many thanks to anyone who can advise me!

    I sugggest these steps:
    A: Dreamweaver:
    1. build you site based on (a) template(s) with editable
    regions
    2. upload the website to the server
    B: Contribute
    1. create a connection
    2. administer the website ( and create an admin password )
    3. set the proper settings for your users (administrators,
    publishers, writers), enable rollbacks
    4. create a connection key fot you user with the proper role
    and save that to disk
    C: Dreamweaver
    1. manage the site in dreamweaver
    2. enable contribute compatibility (this way files get
    checked in and out, so you know who is editing what)
    D:
    1. Sent the connection key to your user

  • How do I do this to use OVerdrive media on deviceThe Apple device must be formatted for use with Microsoft Windows.  The iTunes setting 'Manually manage music-' must be enabled for the device before you can complete the transfer.

    I cannot make these directions work
    I downloaded media on Overdrive MEdia on my PC
    I have the overdrive media ap on my I pod touch 4g
    this media is suppossed to be compatible w/I pd touch
    Notes on Transferring OverDrive MP3 Audiobooks…
    Most MP3 capable devices should play OverDrive MP3 Audiobooks.
    If you intend to transfer OverDrive MP3 Audiobooks to an Apple® device, note the following…
    iTunes® v9.0.2 (or newer) is required.
    The Apple device must be formatted for use with Microsoft® Windows®.
    The iTunes setting 'Manually manage music…' must be enabled for the device before you can complete the transfer. Adjust this setting in iTunes as follows…
    Connect the iPod® to your computer.
    If it does not launch automatically, open iTunes v9.0.2 (or newer).
    In iTunes, locate the device in the left vertical navigation panel (under heading 'DEVICES'), and click the device.
    The 'Summary' screen is displayed. 
    Place a checkmark next to 'Manually manage music…'.
    Click the 'Apply' button.
    The iTunes 'Summary' screen refreshes, and the changes are saved.
    If desired, close iTunes.
    Note that if an Apple device is connected to your computer, you can choose to simultaneously transfer a title to the iTunes Library and the Apple device. If you wish to only transfer a title to the iTunes Library, you must first disconnect the Apple device

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    Also you said " I want to add them to my iCloud, and also back to my computer.   " Note that unless  subscribe to iTunes match, only iTunes purchases are stored in iCloud.
    Also,
    You can redownload most iTunes purchases by:
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Problem with Hp Photosmart D110a for use with iPad 3G

    I have just bought an HP Photosmart D110a for use with iPad 3G but this printer could not be connected to Internet, can anyone tell me what the problem is?

    Hi,
    Do you follow the setup guide ? What is the error ? Looks like your printer is not Airprint ready therfore you need to set it up for ePrint. 
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • How to allow create different transaction type for different customer

    We are using CRM 7.0 now. We have two types customer, one is sap customer, the other is potential customer. We want to distinguish the two types customer. And user can create all transaction (for example: quotation, opportunity, activity) the sap cus

  • How do I get rid of a phantom podcast on my iPhone?

    I subscribe to a number of daily podcasts. I regularly discard old episodes that I don't want by connecting the iPhone to my MacBook Pro and deleting them. In one of my subscribed podcasts there is a phantom episode showing on the iPhone screen, date

  • "Vendor" field in the customer master - XD03

    Hi, I would like to know how useful the "vendor" field can be in the "control data" tab of the customer master (and vice versa with the vendor master). Is this only for information only or can we use this information to consolidate open items for one

  • How to display all the rows in a report

    How will it be possible to show all the rows in a report, in a table view , other than modifying the table properties for each report individually ? Is there some setting, so that for all tabular reports, all the rows will be displayed in one page? I

  • Need to crawl a graphic and make it dissapear

    Here is a little poser I stumbled on...and I wonder how others would do this in PPRO (CS5). I have a base line title created in PPRO Titler  ( "a string of six words capatilised") I need to make them crawl right to left across the baseline and then d