Creating table in other databases than Oracle

Hi
It would be nice to be able to create tables in a JDBC Connection in other databases than Oracle. Why limit it to Oracle when there is a SQL standard to work with?
Regards,
Fredrik

Generic SQL isn't really as generic as people would like to believe.
In any case, we're working on that for an upcomming release, but with the current time constraints, we just got the Oracle table creation support done.
(The time is more on testing than writing the feature)
It'll get in there, but probably not in the next release.
Rob

Similar Messages

  • Db-cascade-delete for other databases than Oracle?

    I have two entity beans with a one to many relationship. The database designers have implemented a cascading delete between the two tables for the entity beans. How should the deployment descriptors be written for this to work properly? From what I understand I will need to use the <cascade-delete /> tag in ejb-jar.xml and <db-cascade-delete /> in weblogic-cmp-jar.xml. However this document http://e-docs.bea.com/wls/docs81/ejb/entity.html states that <db-cascade-delete /> only works for Oracle, and I'm using DB2. Does this mean that I have to remove the cascading delete in the database and only enable it in ejb-jar.xml, or will <db-cascade-delete /> work for other databases than Oracle?
    /Björn

    To get the certified answer I'd ask a tech support rep. Unofficially, if DB2 supports cascade delete then I would expect that the EJB container will work with that. There are issues surrounding certification of features against specific databases and I'm not up on all of these so I'd check with support.

  • How to use database link to create table in other database?

    e.g., java jdbc is connected to the database A.
    i want to create one table (Table1)in database B, and then insert data into Table1 select ....from Table2 which is in database A.
    i used the create database link (database name) connect to (database) indentified by .....
    but ...i got the sqlException as i wrote before.
    Thanks again.

    http://forum.java.sun.com/thread.jspa?threadID=656868&messageID=3860293#3860293

  • Download data Other databases to Oracle

    Hi,
    Currrently I am following a process through MS Access to A) download the data from other databases, B) truncate Oracle tables to delete all the data and C) to upload the data to Oracle Tabes...
    Can you please advice if there is a way I can download the data directly from other databases to Oracle... I am looking for details as I am new bee with Oracle...
    Thanks

    I am just curious about your word "database".
    Is this in Oracle terms, MS terms, MYSQL terms?
    Please clarify.
    Can you please advice if there is a way I can download the data directly from other databases to Oracle...Yes, depending upon exactly which flavor of other databases may be.
    I am looking for details as I am new bee with Oracle..Details are database specific, but since we don't anything about other databases, I won't guess at which details you may require.

  • Getting error while creating table from one database to other.

    Hi,
    We are getting below error while creating the table from one database to other.
    SQL> create table fnd_lobs parallel compress as select * from [email protected];
    create table fnd_lobs parallel compress as select * from [email protected]
    ERROR at line 1:
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    Regards,
    Bhatia

    hi
    what are the apps version local and remote database???
    Snapshot too old errors occur because Oracle can 't reconstruct a consistent
    image of a block for the purposes of a consistent read.
    I feel at remote database, you are using UNDO, it will be rather easy to iincrease the undo retention time or increase the undo tablespace size.. if you are dealing with roll back segments, you may have rollback segments whose optimal values are too small...
    increase roll back segments size and select again then
    the following metalink notes might be helpful
    ORA-01555 "Snapshot too old" - Detailed Explanation Doc ID: 40689.1
    How To Avoid ORA-01555: Snapshot Too Old When Running PAAPIMP Doc ID: 603259.1
    OERR: ORA 1555 "snapshot too old (rollback segment too small)" Doc ID: 18954.1

  • Could not create table on 'master' database

    Hello,
         I am new to the SQL Azure. When I tried to create table on master DB, i get following error.
    Msg 262, Level 14, State 1, Line 1CREATE TABLE permission denied in database 'master'.
    I tried to change role to 'db_owner' but have received following error.
    Msg 15151, Level 16, State 1, Line 1Cannot alter the role 'db_owner', because it does not exist or you do not have permission.
    I logged into master DB using the credentials I created while creating DB on the Azure. This is supposed to be 'sa'.
    My question is, does SQL Azure allow to create objects (tables, stores procedures, triggers) on master DB. If yes, what am I doing wrong? If no, why?
    My guess is that SQL Azure is not less than the On premises DB. It must be allowing objects creation on master DB.
    I have found a similar question on forum but I did not get the answer. Here is the link --> https://social.msdn.microsoft.com/Forums/azure/en-US/cbff1bd2-358f-4106-b238-ec369941099d/master-database-cannot-alter-the-role-dbowner.
    FYI, I have gone through following resources but haven't got solution for my problem.
    1) https://iainhunter.wordpress.com/2011/06/20/copying-databases-and-creating-users-and-logins-for-sql-azure/
    2) http://www.c-sharpcorner.com/forums/thread/126589/create-database-permission-denied-in-database-master.aspx
    3) http://stackoverflow.com/questions/20656943/how-do-you-change-the-owner-of-an-azure-database
    4) https://msdn.microsoft.com/en-us/library/azure/ee336235.aspx
    Thanks in advance.

    My question is, does SQL Azure allow to create objects (tables, stores procedures, triggers) on master DB. If yes, what am I doing wrong? If no, why?
    My guess is that SQL Azure is not less than the On premises DB. It must be allowing objects creation on master DB.
    For the answer of the question, you can read Joseph's. Azure SQL, so far, is less than the premise DB except its
    cloud-based advantage. There're many limitations like less T-SQL features supported.
    Azure SQL Database Transact-SQL Reference
    more links for your reference.
    Preview features
    Managing Databases and Logins in Azure SQL Database
    Eric Zhang
    TechNet Community Support

  • Can use JDBC to create table in the database?

    other than select, insert, update, delete the record set
    I want to know can I use the JDBE to create table.

    As far as i know you can use 'CREATE TABLE' to create tables.
    Use it in an cn.execute() or cn.executeUpdate().
    I'm not sure about the complete syntax for CREATE TABLE, since you also need to define you fields etc. Try looking on the net for an SQL manual.
    Greetz..

  • Need to create Table Maintenance with more than 400 characters

    I need to create table maintenance in which one filed have more than 400 characters. CHAR type support between 1-255 & STRING type not supported by Table Maintenance. Is there any alternative type or solution for that?

    Hi,
    If  you assign TMG to the table, it will throw error as unable to display the field on screen. why because it can able to display upto 255 char length only.
    For this requirement you have 2 solutions :
    1) Create multiple fields and your Z table, split the data and store them as required.
    2) Create a TEXT ID and store it as a long text using FM CREATE_TEXT.
    or
    This type of text should be treated as Long Text.
    And the steps are:
    1. Create Text Object Using SE75.
    2. Create Text ID Using SE75.
    3. Now you have to Save the text with FM SAVE_TEXT.
    For example:
    The Most simple solution for it can be that Divide the field REMARKS of size 1000 in multiples of 200 characters like REMARK1, REMARK2....REMARKn.
    Now you can create two FMs :
    zset_data: To Store 1000 char long data in Table
    Here you will divide the data of Variable (type char1024) in multiples of 200 and will store in REMARK1, REMARK2.....
    zget_data: To Get 1000 char long data back from Table
    Here you will concatenate REMARK1, REMARK2..... and will store in Variable of Type char1024.
    This is the best solution if Table is not going to be maintained by Table Maintenance Generator.
    regards,
    ravi

  • Creating table on production database

    Hi expert I want some real time knowledge
    If a user requested create a table on production database where DBA a should contact 1st.
    form where dba get approval for create table.
    Thanks & Regards
    Sanat

    are you asking who should DBA contact to ask if its ok to create a table for a user request?
    is there a process in place to handle user requests? Follow it. If there isnt, put one in place and ask user to follow it too.
    usually some managers approval which then comes to you to review.

  • Can i create table in a database procedure?

    Hello
    Can i create a table in a database procedure?
    create or replace procedure create_table is
    tt number;
    begin
    create table temp (
    a number,
    b varchar2(100));
    end;
    it return an error....
    regards,
    deemy

    Hello
    Can i create a table in a database procedure?
    create or replace procedure create_table is
    tt number;
    egin
    create table temp (
    a number,
    b varchar2(100));
    end;
    it return an error....
    regards,
    deemy
    create or replace procedure create_table is
    tt number;
    begin
       execute immediate 'create table temp (a number,b varchar2(100))';
    end;
    /Cheers
    Sarma.

  • Create Table query in java for oracle

    hi all,
    i am working on a project in which i have to create table runtime, i want that if table already created it dont create.
    Regards

    There is a forum for JDBC related questions. This is not that forum. Also you may have noticed that there is no forum called "General Oracle PSQL questions here" amongst these forums as well and that might be something you wish to reflect upon.

  • Create tables in different database schemas using EJB 3 Entity Persistent

    Hi All,
    I would like to find out how to get the following tasks done using EJB 3.0 Java Entity Persistent:
    ( i ) Create tables in different schemas such as STUDENT under EDUCATION schema and table PATIENT in HOSPITAL schema. We can then reference them in SQL as EDUCATION.STUDENT and HOSPITAL.PATIENT.
    ( ii ) Reference these tables uniquely once they are created.
    There are no pre-existing tables or naming conventions that needs to be adhere to in this situation.
    I have no problem creating tables on the current schema in EJB 3.0 Java Entity Persistent.
    Any suggestions would be appreciated.
    Thanks,
    Jack

    Use the schema attribute of the Table annotation:
    package javax.persistence;
    @Target({TYPE}) @Retention(RUNTIME)
    public @interface Table
       String name( ) default "";
       String catalog( ) default "";
       String schema( ) default "";
       UniqueConstraint
    uniqueConstraints( ) default {};
    }

  • ORA-03237 when creating table with BLOB columns on Oracle 9i

    I am playing with my new Oracle 9i database. I am trying to copy
    tables from my 8.1.6 db. Three tables won't create due to this
    new message. The 9i documentation says it's soemthing to do with
    freelist groups but my DBA says he hasn't set up any.
    The tablespace is one of these newfangled locally managed
    tablespaces (predetermined size 8k).
    I can create these tables if I change the BLOB column to datatype
    VARCHAR2(4000).
    I have raised this through the usual channels, but I thought I'd
    try this site as well.
    Cheers, APC

    victor_shostak wrote:
    Figured, Virtual Columns work only for Binary XML.They are only supported, currently, for Binary XML.

  • Error when creating table in cloudscape database

    Hi, all:
    I installed j2sdk1.4.0, j2sdkee1.3.1 on windows XP. I am able to start j2ee, cloudscape and deploy without error. I try to follow the J2EE tutorial to setting up the database, I go to the j2eetutorial/examples directory and type "ant create-savingsaccount-table", I got error "java.lang.NoClassDefFoundError: COM/cloudscape/tools/ij".
    Following are the environment variables:
    JAVA_HOME C:\j2sdk1.4.0
    J2EE_HOME C:\j2sdkee1.3.1
    CLASSPATH %JAVA_HOME%\lib\tools.jar;%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\jhall.jar;%J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\cloudscape\cloudclient.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar
    cloudscape is from the j2ee1.3.1 bundle. does anyone know how to get around this?
    please help. thanks in advance.

    I'm having the same problem.
    I really did some searching put couldn't find a working solution :|
    This worked fine at work but when I continued learing at home it didn't work anymore. I have xp at home and nt4 at work.

  • Best way to create table at remote database side

    Hi ..
    I have one table around 60GB and i want to sync this table with remote side database table.
    Options
    1> Creat DB link and then fetch data.
    Problem <<Performace issue and May be chance of Network chock >>
    2> Using DBMS_REDFINITION package.
    Problem <<Again we need 60GB Extra sapce to create New table and Related indexes >>
    Can any one suggest me by any other way we can sync table at remote side with source with out adding space and no down time?
    Thanks
    Mahantesh

    Still a duplicate thread. Still needs to be moved to the correct forum.

Maybe you are looking for