Database Storage of Applet Diagram

Hi,
I hope someone can help me. I have an applet which allows you to draw diagrams. The details of the diagram is kept in a vector object. I want users to be able to store the diagram on a database. They can at present connect to the oracle database and manipulate it. I need to do this because they cannot just save it to their local machines due to security restrictions.
Can anyone help me?
Thanks,
Mark

Hi Mark,
What is your question?
You infact answered the question regarding saving files on the
local computer yourself. You cannot do that!
Applets can connect to databases that are running on the
server where the applet is loaded from. If you want to
store the diagram on another computer you could only do
this with an application instead of an applet. But then you
need to run a process on the server to use it as a three-way-teer.
If this doesn't answer your question you might give us a little
code what you want to do.
Regards
Martin (Mazemaster @ www.mazeland.net)

Similar Messages

  • DBCA can not use ASM for database storage due to following reason: Could no

    Hi
    I've a recently installed RAC11gR2(11.2.0.3) on HP-UX
    I installed Grid Infrastructure with grid user:
    Node1: # id grid
    uid=1100(grid) gid=1000(oinstall) groups=1031(dba),1021(asmdba)
    Node2: # id grid
    uid=1100(grid) gid=1000(oinstall) groups=1031(dba),1021(asmdba)
    I installed the Oracle Server with oracle user:
    Node1: # id oracle
    uid=1101(oracle) gid=1000(oinstall) groups=1031(dba),1021(asmdba),1033(oper)
    Node2: # id oracle
    uid=1101(oracle) gid=1000(oinstall) groups=1031(dba),1021(asmdba),1033(oper)
    All related Grid Infrastructure is functioning well in both nodes:
    $ crs_stat -t
    Name Type Target State Host
    ora.DATA.dg ora....up.type ONLINE ONLINE node03
    ora.FRA.dg ora....up.type ONLINE ONLINE node03
    ora....ER.lsnr ora....er.type ONLINE ONLINE node03
    ora....N1.lsnr ora....er.type ONLINE ONLINE node04
    ora.asm ora.asm.type ONLINE ONLINE node03
    ora.cvu ora.cvu.type ONLINE ONLINE node04
    ora.gsd ora.gsd.type OFFLINE OFFLINE
    ora....network ora....rk.type ONLINE ONLINE node03
    ora.oc4j ora.oc4j.type OFFLINE OFFLINE
    ora.ons ora.ons.type ONLINE ONLINE node03
    ora.scan1.vip ora....ip.type ONLINE ONLINE node04
    ora....SM1.asm application ONLINE ONLINE node03
    ora....03.lsnr application ONLINE ONLINE node03
    ora....d03.gsd application OFFLINE OFFLINE
    ora....d03.ons application ONLINE ONLINE node03
    ora....d03.vip ora....t1.type ONLINE ONLINE node03
    ora....SM2.asm application ONLINE ONLINE node04
    ora....04.lsnr application ONLINE ONLINE node04
    ora....d04.gsd application OFFLINE OFFLINE
    ora....d04.ons application ONLINE ONLINE node04
    ora....d04.vip ora....t1.type ONLINE ONLINE node04
    $
    The ASM instance are running well in both nodes
    Connected with oracle user, the listener has registered perfectly the ASM instance in each node:
    $
    $ lsnrctl status
    LSNRCTL for HPUX: Version 11.2.0.3.0 - Production on 16-MAY-2012 15:41:06
    Copyright (c) 1991, 2011, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for HPUX: Version 11.2.0.3.0 - Production
    Start Date 16-MAY-2012 15:24:19
    Uptime 0 days 0 hr. 16 min. 47 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
    Listener Log File /u01/app/grid/diag/tnslsnr/node03/listener/alert/log .xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=16.0.0.133)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=16.0.0.136)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    $
    $
    DATA & FRA disk group are created:
    $
    $ echo $ORACLE_SID
    +ASM1
    $
    $ asmcmd
    ASMCMD>
    ASMCMD> ls -lt
    State Type Rebal Name
    MOUNTED EXTERN N DATA/
    MOUNTED EXTERN N FRA/
    ASMCMD>
    ASMCMD>
    The big issue is... that the DBCA can not see the diskgroups. When I choose ASM Storage it can not see them. It shows the chart in blank and if i try to write the disk group, so the following message appears: can not use ASM for database storage due to following reason: Could not connect to ASM due to following error: ORA-01034 ORACLE not available
    What can be passing in this case... ?
    Thanks in advance

    Thanks both
    Really the problem initially was because of this:
    [INS-06006] Passwordless SSH connectivity not set up between the following node(s): [node1, node2]. CVU may reports "PRVF-4007 : User equivalence check failed for user "user"" for same error
    and I had to install node1 first and after node2 manually and perhaps for this the product was not well linked.
    I resolved the problem establishing the keys with the wizard and after copying the following files from node1 to node2
    /home/grid/.ssh -------> /home/grid/.ssh
    authorized_keys
    known_hosts
    This is the procedure if you run the wizard at the node1.
    The problem is that the wizard creates the keys incompletely...
    Thanks

  • WHY can't I access my database from an applet???????????

    The security code won't let my applet access its own database (from its own server)..
    I'm using getDocumentBase()
    to try and tell it that it is my own damn file..
    I keep getting :
    java.securityAccessControlException: access denied <java.util.PropertyPermission jdbc.drivers write>
    ...etc.
    This applet crap is really starting to piss me off. I can see why they came out with JSP.
    All I need to do is access my database, update it, etc. It kind of defeats the purpose of being able to do jdbc from applets if you can't even access the database on your own damn server.
    If you all don't have a clue, I'm freakin switching to PHP--I'm tired of this crap-I was thinking Java was a damn good language until I hit applets.

    The simple answer to your question is: Because of security concerns.
    The somewhat longer answer is that directly accessing a database from an applet is generally not a good idea. A lot of security-critical code like DB username/password must be hidden in the applet which potentially can be downloaded (and disassembled) by anyone that hits your webpage. Maybe you do an intranet solution with trusted users but that is not what applets were originally designed for.
    The clean way is to make your applet talk to a servlet that talks to your database.
    If that is not the way you want to do it, make sure that all client policy files (yes, on the browser machine) contain the permissions that your applet needs.

  • Database Storage location using DBCA

    I'm trying to create a database. I would like to put the database on drive M and the logs on drive N.
    I'm getting that if I want to do it during creation using DBCA I need to define the location on step 11 - Database Storage.
    When I click on Datafile I then click on File Location Variables do I change ORACLE_BASE, ORACLE_HOME or both?
    When I click on Redo Log Groups I then click on File Location Variables do I change ORACLE_BASE, ORACLE_HOME or both?
    Do I do anything with the Control files location?

    In that step you got File Name and File Directory menu.
    Change the paths in File Directory menu.
    Suppose you have create oradata folder in both M and N drives.
    System01.dbf M:\oradata
    redolog01a.log N:\oradata
    suggestion:- Please multiplex controlfiles and redo log files.

  • Database location in Applet

    Hi guys
    I'm not an expert in java, so sorry if i'm doing a simple question ;)
    I have a java applet that use the postgres jar file to connect to a database, my question is: how can the applet know the database location? if it was a static location would be embuted inside code, but could be any address and authentication...
    I hope that information is enougth...
    Thanks,
    Paulo

    Paulo,
    In order to access a database from an applet you usually need to make the applet a signed applet and you need to download the JDBC driver together with the applet.
    There is plenty of information on the Internet about how to make signed applets and how to download JAR archives together with your applet.
    Alternatively, you could use JSP (Java ServerPages) and/or servlets.
    The JSTL (JSP standard taglib library) has a set of "SQL" tags specifically for allowing a JSP to interact with a database.
    Somewhere, some piece of software needs to know the connection details for the database. There are several ways to do this. If you use a servlet, then the servlet needs to know. Or you could use a properties file downloaded with your applet, or you could do it the most popular way and use PHP (instead of java ;-), or an application server.
    Good Luck,
    Avi.
    Message was edited by:
    abramia

  • Link to "   Database Storage Consolidation with ASM White Paper " now fixed

    I cannot access document "Database Storage Consolidation with ASM White Paper " on http://www.oracle.com/technetwork/database/index-100339.html.
    The new link seems also to be broken http://www.oracle.com/technology/products/database/asm/pdf/db_storage_consolidation_wp%2012-05.pdf
    Link is now working.
    Edited by: P. Forstmann on 21 sept. 2010 08:51
    Edited by: P. Forstmann on 21 sept. 2010 08:51

    This link has been repaired.
    Regards, OTN

  • How to get database connection in applet

    Hi,
    I am trying to prepare database connection in applet. After preparing connection with database it'll read same values from table.
    At the time of development it works fine. I have used esclipse IDE for coding and testing.
    But when I try to call that applet from browser. It is giving ClassNotFound exception.
    Does anybody know How to get database connection in applet ?
    Please help me if anybody know solution for this.
    Thanks,
    Rajesh

    As per my knowledge is conserned
    1 u can get the database connection in a jsp page and u send the result set as param to the applet and u can use retrieved values as if they were of the same applet if u r interested i can send the db connetion coding for jsp my id [email protected]

  • Default Space for database storage

    What the heck is that?
    After I did a software update, this new feature showed up
    under "Security".
    1) It has a "Show Database" tab.
    2) It has a "Drag down" for mb (from 1mb to 500mb)
    bobo

    Safari now comes with SQLLite database storage for offline applications. An example is here:
    http://webkit.org/misc/DatabaseExample.html

  • Database storage

    I have a confusion regarding the database storage mechanism.
    I have created a tablespace
    CREATE TABLESPACE TEST
    DATAFILE '..\test01.DBF'
    SIZE 152k
    SELECT bytes FROM DBA_FREE_SPACE
    WHERE tablespace_name ='TEST'
    It shows 65536 bytes.
    But it is smaller then 152k.
    Why is it so??
    Please help me out.

    hello,
    as you have not specified extent clause i think it is initial extent oracle creates of 64k (65536/1024=64k) as it is ...oracle system-managed extents
    have a look at this
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/logical.htm#g23847
    this is extract from oracle docs
    For system-managed extents, Oracle determines the optimal
    size of additional extents, with a minimum extent size of 64 KB.
    If the tablespaces are created with 'segment space management auto',
    and if the database block size is 16K or higher, then Oracle manages
    segment size by creating extents with a minimum size of 1M.
    This is the default for permanent tablespaces.experts please correct me.....if i am wrong
    thanks and regards
    VD
    Edited by: Dixit on Sep 8, 2009 2:15 AM
    Edited by: Dixit on Sep 8, 2009 2:16 AM
    Edited by: Dixit on Sep 8, 2009 2:18 AM

  • Step for oracle database storage migration

    Hi all
    Need a help for database storage migration from old storage to new storage. Please advise and given step to migrate the database storage.
    Database version: 9i,10g(ASM),10g and 11g (ASM)

    Hi;
    Your question is not clear. Migration from what to what?
    For all migration question please review:
    Master Note For Oracle Database Upgrades and Migrations [ID 1152016.1]
    Different Upgrade Methods For Upgrading Your Database [ID 419550.1]
    Migration of Oracle Database Instances Across OS Platforms[ID 733205.1]
    How To Use RMAN CONVERT DATABASE on Source Host for Cross Platform Migration [ID 413586.1]
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Does Partitions take up database storage space

    Thanks in advance.
    I have tables with partitions that do not have data stored in them yet, does partitions without data stored in them take up database storage? How do you measure the storage used by a tables partitions that do not have data stored in them yet?

    Is there a benefit to asking the same question over again? (If so, I'd love to hear it.)
    Or would you be willing to continue with the original thread at Oracle Table and Index Partitions storage consumption?

  • Database storage of multiple languages for name of a single entity

    Surely I'm not the first person to have this problem, but I can't find many resources on how to solve this. Just some background on what I'm working with, I'm running a web application using the Struts framework with jdk 1.4 on a Weblogic 8.1 server connected to an Oracle 9i database, I'm using DAO for my persistence layer, and I'm not opposed to using any 3rd party software to assist in this task.
    For example, say I have a database of DVDs, My application will retrieve the list of DVDs from the database to display to the user. Depending on the user's Locale I want to display the title of the DVD in that language.
    This is a simple example, but the real-world application is much more complicated. The application is highly configurable meaning that through a configuration application, my internal users can add DVDs at any time, edit the title of the DVD, or add a new language that they want the title to display in, etc. When a customer logs in to the application front-end they will be able to change the language they want the application to display in at any time, and the application will need to reflect that change. The display of constant text like field labels and page text is easy using Struts but its this configurable dynamic text thats a bit more difficult.
    Its obvious to me that I will need to store the multiple languages in the database in some way, I'm thinking of either storage in some xml format, or a new table hanging off the "dvd" table with languages for each dvd. Either of these options would work for my purposes, but I don't want to go reinvent the wheel when this same problem has arleady been solved. If someone could point me in the right direction I would appreciate it

    One common way to handle this is to modify your key for the dvd title to include a locale identifier:
    key dvdtitle
    becomes
    key locale dvdtitle
    Now your db can hold multiple translations of the same dvd title.
    Regards,
    John O'Conner
    Its obvious to me that I will need to store the
    multiple languages in the database in some way, I'm
    thinking of either storage in some xml format, or a
    new table hanging off the "dvd" table with languages
    for each dvd. Either of these options would work for
    my purposes, but I don't want to go reinvent the
    wheel when this same problem has arleady been solved.
    If someone could point me in the right direction I
    I would appreciate it

  • Database connection in applet works in Netscape but not in IE

    Hello,
    we have an applet which connects through an jdbc:odbc connection to an Access database.
    When we run it in Netscape 4.7, the applet connects to the database and finds records. When we run it in IE (5.5), we get an error.
    Haven't completely figured out where, but most likely when we try to get the connection:
    con = DriverManager.getConnection(url, "loginname", "password");
    We end up in the catch block.
    Any suggestions what the problem could be?
    TIA
    Gunter

    Can u send me code and let me see.
    Tell me all specification which Access driver you are using and which DSN you are using.
    Let me know i know i can help u out.

  • Need help connecting to a database with an applet

    I am making a Java game that runs in an applet and needs to connect to a Java DB database. I created the database and table in NetBeans and now I have no idea how to connect this applet to the database. I tried using a DataSource and an InitialContext and I got a NoInitialContextException. Any help would be appreciated thanks.

    Already made the InitialContext. This is the code I used in the applet:
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup("jdbc:derby://localhost:1527/GameDatabase");
    Connection con = ds.getConnection();
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM Scenery");

  • Move the database storage layout, please Help.

    Hi Buddies,
    My current database A (9i) 's storage layout is
    File System SIZE
    /yqa1/tech/oracle 8628 MB <-- Oracle software plus server's dump dirs only
    /yqa7/appl/oracle 34521 MB <-data
    /yqa8/appl/oracle 34521 MB <-data
    we want to split existing 32G filesystem into separate chunks of 8G and map them into seperate filesystems
    (for expamle: split /yqa7/appl/oracle into
    /def1/appl/oracle [8G]
    /ghi7/appl/oracle [8G]
    /jkl23/appl/oracle [8G]
    /xyz2/appl/oracle [8G]
    for database A, finallly, we want to change the storage layout like this:
    File System SIZE
    /yqa1/tech/oracle 8628 MB <-- Oracle software plus server's dump dirs only
    /yqa7/appl/oracle 8628 MB <-data
    Is there any best practice to achive the purpose? or any frinds can provide practice documentation regarding to this?
    Thanks a lot in advance.
    Jerry

    You'd need to take the tablespace offline
    ALTER TABLESPACE tablespace_name OFFLINE;
    before you move or copy the datafile to relocate it.
    After completing the move or copy, you could use the
    ALTER DATABASE RENAME FILE 'old_file_name' TO 'new_file_name' ;
    for each of the datafiles in that tablespace.
    Then, you can bring the tablespace online again
    ALTER TABLESPACE tablespace_name ONLINE;

Maybe you are looking for

  • How to get a currency format for a character field

    for some specifix reason, we have a requirement to show character field (which results in value 633948) in the format $633,948 how do i do this? if i do SELECT to_char(:c_1,'$999,999')) from dual; it gives me ora: 01722: invalid number error c_1 is a

  • Is it possible to embed a window in another?

    I know I kind of asked this previously, but is it possible to instead of changing the window class, embed a window or object into a current window, using Cocoa-Applescript? In the example of my application below, I'd like to fill the big empty area i

  • Email deletions from iphone

    Any word on the update for iphone that will enable me to delete mail in mass or by selecting multiple emails to delete. One at a time is very time consuming.

  • Internal Error when trying to create a custom controller with execute comma

    Hi, I have got the following problem. I created a new web dynpro project and added an existing RFC model. But when I try to create a custom controller by applying a service controller including an execute command, I only get an internal error message

  • A short programing question???

    Hi guys... I am a programer and have not worked much but I got this offer from a company to design their web site. The web site will have to do with creating this servise where people can login and check their phone calls made (the data which I will