How can let oc4j use my database schema file?

I wrote a mysql.xml in config\database-schemas.
But when I deploy a ejb application, It reported:
2005-2-20 4:11:03 com.evermind.server.Application getDatabaseSchema
Warning: Exception occurred getting database schema. Exception: java.sql.
SQLException: Can't call commit when autocommit=true
2005-2-20 4:11:04 com.evermind.server.Application getDatabaseSchema
Warning: Warning: Exception occurred getting database schema. Exception: java.sql.
SQLException: Can't call commit when autocommit=true
05/02/20 04:11:05 Auto-deploying - compiling and loading...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
05/02/20 04:11:22
Auto-creating table: create table Student_ejb1_ejb1 (id BIGINT not null primary
key, name SET(255) null)
05/02/20 04:11:22 Error creating table: You have an error in your SQL syntax; ch
eck the manual that corresponds to your MySQL server version for the right syntax....
Do I need write schema property in data-sources.xml?

To the data-sources.xml configuration file add a datasource element for MySQL. In the schema attribute set the schema file to database-schemas/mysql.xml.
<data-source
    class="com.mysql.jdbc.jdbc2.optional.MysqlDatasource"
    name="OracleDS”
    schema="database-schemas/mysql.xml"
    location="jdbc/mySQLCoreDS"
    xa-location="jdbc/xa/mySQLXADS"
    ejb-location="jdbc/mySQLDS"
    connection-driver="com.mysql.jdbc.Driver"
    username=""
    password="”
    url="jdbc:mysql://localhost/test"
    />   

Similar Messages

  • How can I connect to the database using ODBC within excel.

    Hi,
    How can I connect to the database using ODBC within excel and just refresh the data when needed.
    Thanks,
    Priyanka
    Edited by: user554934 on Jun 9, 2009 2:53 AM

    This is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
    Thank you,
    Tony Miller
    Webster, TX

  • How can I list used database/table size resp user space ? Compression after

    How can I list used + maximum tablespace/database/table size of an Oracle database ?
    How can I list the space used currently by a user resp. his tables+indizes ?
    By the way: If I delete a user or table from an Oracle database installation: are then only the entires deleted
    or is the space released as well ?
    In otherwords: After I deleted a user resp. table is it recommended to do something like a "compress" similarly to Outlook
    or other eMail clients to shrink really the occupied space on hard disc ?

    I hope this helps you
    select df.tablespace_name "Tablespace",
    totalusedspace "Used MB",
    (df.totalspace - tu.totalusedspace) "Free MB",
    df.totalspace "Total MB",
    round(100 * ( (df.totalspace - tu.totalusedspace)/ df.totalspace))
    "Pct. Free"
    from
    (select tablespace_name,
    round(sum(bytes) / 1048576) TotalSpace
    from dba_data_files
    group by tablespace_name) df,
    (select round(sum(bytes)/(1024*1024)) totalusedspace, tablespace_name
    from dba_segments
    group by tablespace_name) tu
    where df.tablespace_name = tu.tablespace_name;

  • How can I connect to a database from ipaq with cldc??

    how can I connect to a database from ipaq with cldc??

    Hi Again
    There is a library by Mimer which allows you do connect to a Mimer SQL Server, don't know must about it, but here is a link.
    http://developer.mimer.com/
    If that doesn't suit you, I suspect that you will have to use some sort of proxy solution. Either by creating a servlet to accept the sql string you want to send, or by creating your own custom proxy server running J2EE. The servlet or the proxy server must be able to receive an SQL String, do the query to the actual database and return the results in some sort of format to the mobile device. Maybe just a space delimited string.
    Hope this helps
    -Daur

  • Data Pump - How Can I to use in Oracle 8i

    Hi
    How can I to use Data Pump in Oracle 8 i ?
    is there other way for to export an import data ?
    I have to Export data from Database Oracle to Other Database Oracel only a table , some data

    or use spool method
    set head off
    set pagesize 0
    set echo off
    set feedback off
    spool yourdump.file
    select columnA||','||columnB||','||columnC from mytable;
    spool off
    -- assuming your delimiter is comma.

  • How can i start using wifi

    how can i start using wifi if the wifi is on grey letters and wont let you click on it?

    See:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    It is frequently a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • How can I reuse the BC4J database connection?

    How can I reuse the BC4J database connection?
    I want to use the application module connection without opening another in a custom code. At this level I can’t access de ADF code, that’s why I can’t get the DBConnection from the application module.
    Now, I have a “data-sources.xml” in my project and the application module is configured to access the database from this xml file.

    I found the solution in other Forum. I worked ok.
    Here the code:
    If the Connections-Navigator connection is DBConnection1, the corresponding datasource is jdbc/DBConnection1DS.
    1. Create a JSP page.
    2. In the web.xml of the JSP add
    <resource-ref>
    <res-ref-name>jdbc/DBConnection1DS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    3. In the JSP page obtain a connection with the datasource.
    InitialContext initialContext = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource)initialContext.lookup("java:comp/env/jdbc/DBConnection1DS");
    java.sql.Connection conn = ds.getConnection();

  • How can I compact a MSAccess database with java?

    Hi.
    I have a question (Please Help!!!):
    How can I compact a MSAccess database with java-jdbc? Is it posible?
    Thanks

    MS Access database has a max length limitation of 2.14GB for Access 2000( 1.07G for Access 97), and won't recycle basically space for update/delete sql so tha it's a good idea to use MS Access database for program, which need update/delete frequent ly data. The programmers of HXTT Access(www.hxtt.net) are writing code for CREATE TABLE/DATABASE sql now. If you need a pure Java solution for PACK TABLE/DATABSE urgently in your project, you should send such a requirement to the Support page of www.hxtt.net so that they can schedule complementing such a fucntion. Otherwise, you should pack your databae manually or visit C++ code for Compact an Access Database Programmatically at
    http://www.codeguru.com/Cpp/data/mfc_database/microsoftaccess/article.php/c4327/ , or use Easy Microsoft Access MDB MDE Compactor at http://www.easyhr.com.au/software/easy_mdb_mde_compactor.htm.

  • How Can I make Use of XI

    Hi Friends,
    I am a kind of newbie in to this world of XI,
    I have a  quick question,Before stepping into the question please look in to my Existing process.
    I have a J2EE product,
    which needs the business data from differant versions of R/3 systems (for example 3.1,4.3,4.6c)
    and some other systems as well(say people soft and few other legacy systems),
    If I am asked to deploy my J2EE product at a ABC client site who has already the above environment(SAP and other systems),
    The scenario would be :
    1.Extracting the needed data from all the business environments of the client ABC(SAP 3.1,4.3,4.6c, People soft, Legacy)
    2.Converting them in to the flat files and placing in FTP
    3.Communicating thru my product to the FTP
    4 Loading in to the database which is compatible with my product(say Oracle,SQL Server,DB2...etc)
    Currently for Extracting the data from SAP Systems,
    I am writing the ABAP programs to extract the data from the client systems,
    which will create the needed flat files in FTP,
    But In case of the extraction other than SAP systems,
    Client ABC will be giving me the needed data from the other business systems in the required flat file format,
    Step 4 will be handled by my J2EE product when all the needed filed are ready in the specified FTP location.
    Now my question is,
    How can I make use of Exchange Infrastructure process integration methodology in my current business process,
    It would be great if some one can propose in enhancing the process by making use of XI,
    Thanks in Advance,I look forward for a quick response.
    Regards,
    Sanjeev.

    Hi,
    <i>I am looking for a way where I can directly write the logic with in XI for extracting the data from SAP and other systems and moving in to my oracle database,</i>
    >>>Think XI is an EAI tool. So you need to write a logic in the SAP systems to push the data into XI. Or even you can make XI to poll the data from SAP.
    <i>Here the senders should be as
    Sender 1:SAP3.1
    Sender 2:SAP4.3
    sender 3:SAP4.6
    Sender 4:People soft
    sender 5:Legacy1
    sender 6:legacy2
    Reciever should be a single Oracle Database on which my j2ee product will be sitting.</i>
    Ideally you can have 3 entries for all 3 SAP systems in SLD.
    For PeopleSoft system,Legacy1,Legacy2 different SLD entries.. SO it is something like you need to have Business system for each Systems.
    Then I suggest, you have already ABAP programs in place, you can use this and you can call proxy from these programs. So that you can avoid doing some of the developments. But inorder to process on Proxy you need to have SAP WAS6.40 and above or SAP WAS 6.20 with add-ins.
    If this is not feasible then you need to eithe go with Idoc/RFC sturctures from the R/3 sides.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm
    First try to lay out the system landscape design with message exchange format etc.
    Then it is possible to do the design easily.
    For e.g from Peoplesoft you will get the data in file format. That time you can go with File->XI->Data Base scenario.
    Hope this helps,
    Regards,
    Moorthy

  • How can 2 people use itunes in the same household? we both have iphone 4 and separate id but the same itunes? pleasehelp

           how can two people use itunes in the same household? i had a iphone before so alreday had an itunes account now me and my husband have upgraded and we now both have them. he has set up a username and i have mine yet when he logs in he seems to just get my account? please help

    Decide which iPhone will be keeping the current iCloud account.  On the one that will be changing accounts, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll.  If you are syncing Notes with iCloud, you'll also have to email your notes to yourself so they can be recreated in the new account as they cannot be migrated.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, to un-merge the data you will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want (such as deleting your wife's data from your account, and vice versa).

  • How can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?

    Good afternoon friends.
    Please help me and tell how can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?
    I started using Apple ID in 2011 when iCloud was not exist and was forced to use non-apple e-mail adress as primary ID.
    So I used GMail mailbox.
    When iCloud was started I created my account but unfortunatelly can't remove this Gmail address from my Apple ID and replace it with icloud mail address.
    I was VERY dissapointed because I don't want to use "outside" mailbox to get letters from Apple and ny ID.
    In fact I see the Apple old users and fans discrimination.
    When creating new user accounts are free to create a box on the iCloud mail and use it as a primary ID, and the only ONE.
    At the same time the old user is obliged to keep third-party mail box like Gmail etc. as the primary and can not get such an opportunity, as a new user
    This is extremely inconvenient and a VERY strange logical.
    For example, now I want to stop using this mailbox on Gmail but I can not do that because in this case I lose access to my ID, or run the risk that someone in the future will create a box with the same name on Gmail (when name will be free and available) and will automatically get access to my accounts on Apple and to my Apple ID.
    Now, to avoid this, your team, I offer the only way out: ID, create anew.
    Of course it's possible, but then:
    - I lose all my purchases for 3 years and will be forced to make them again and pay money for the second time for my purchases
    - Lose access to the familiar iCloud e-mail address who now serves as secondary ID because this e-mail address is almost no longer available and will never be released in future.
    And now answer me for ONLY TWO questions:
    - WHERE IS LOGIC?
    - WHAT ABOUT TO BE FRIENDLY FOR YOUR USERS AND FANS?
    Thank you!
    Hopefully for your GOOD answers.

    You cannot make your @icloud.com address the login address for the ID. However you can change your ID, currently a Gmail one, to any other functioning non-Apple email address. The Gmail address would then no longer access your account, and so even if someone were to obtain posession of it (is that even possible) it wouldn't allow them to get into your account.
    If you want to change your ID to another email address please follow the procedure outlined below, particularly noting the first step.
    Firstly, if you have 'Find My iPhone/iPad/iMac' enabled on any of your devices, turn it off.
    Create a new email address, for example  at Yahoo or Gmail, or anywhere convenient (or you can use an existing address as long as it has never been associated with an Apple ID).
    Go to http://appleid.apple.com and click 'Manage your Apple ID'. Sign in with the current ID.
    Where it says 'Apple ID and primary email address' and gives your current ID email address, click 'edit'.
    Enter your new address and click 'Save changes'.
    Now you will need to go to each of your devices and sign out in System Preferences (or Settings)>iCloud - 'Sign out' on a Mac, 'Delete this account' on an iOS device (this will not delete the account from the server).
    Then sign back in with your new ID. Your iCloud data will disappear from your devices when you sign out, but reappear when you sign back in.
    I re-iterate: before you start, turn off 'Find My Mac' (or whatever) or you will need the services of Support.

  • My husband and I share a new PC.  We have different music tastes and each have an iphone.  How can we both use our one computer and one itunes program with separate music libraries and separate iphones?

    My husband and I share a new PC.  We have different music tastes and each have an iphone.  How can we both use our one computer and one itunes program with separate music libraries and separate iphones?

    Each device only syncs waht you select.
    Select only what you want for each phone.

  • I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    Hi kamfong,
    Went to Settings where?
    If you want to use your exisiting Apple ID on your iPad, you need to:
    1.     Go to Settings>iTunes & App Store and sign out the new ID, and then sign on the old one
    2.     Go to Settings>iCloud, scroll to the bottom and delete the iCloud account, and the sign back onto iCloud using the old ID
    You still have not indindated why you are saying that using your old ID originally "didn't work". What do you mean by that? Did you get some sort of error when you tried to sign on with your exisiting Apple ID?
    Cheers,
    GB

  • I have a $10 gift card balance on my Apple ID but when I try to rent a movie it wants me to use my debit card. How can Make it use the iTunes credit?

    I have a $10 gift card balance on my Apple ID but when I try to rent a movie it wants me to use my debit card. How can Make it use the iTunes credit?

    Hi ...
    Select None for payment method > iTunes Store: Changing account information
    Be aware, an auto renewing subsciption by require a credit card.

  • HT5177 How can two people edit the same FCPX file? One company, so both people/computers share the same license. Example: I work on revision A and my boss takes it and makes revision B and gives it back to me using two separate computers.

    How can two people edit the same FCPX file? One company, so both people/computers share the same license. Example: I work on revision A and my boss takes it and makes revision B and gives it back to me using two separate computers.

    Have the project, events and media on one drive which is common to both macs.
    You can download FCP X to both macs using the same Apple ID that it was purchased with.
    Andy

Maybe you are looking for

  • Trouble exporting to DVDSP

    I'm trying to export using Quicktime Conversion so as to import into DVD Studio Pro. I keep getting the message: "sequence needs to be rendered first." There isn't a render bar above the sequence. Everything appears fine. What could be the problem? W

  • Why question marks instead of pics and links

    When I upload my iWeb page ti iPage the pics and links show up as question marks and the text is not sized as it was on the iWeb page. Is iWeb not compatible with iPage? Thanks

  • My 3GS iphone always go into 'network lost'!

    my 3GS iphone is constantly going into network lost and 'no service'. Each time that happens, I have to go through a lengthy process of re-starting the phone which is painful! Additionally, the call drops while i am on conversation. My colleagues alw

  • Uix:shuttle component

    I'm trying to use the uix:shuttle component and dynamically set each option based off of values retrieved from the database. I'm using a java bean to grab a RowSet, which I will loop through to set my values for the leading and trailing values of the

  • HT3406 Can I do this with a 4s?

    So if I buy a Iphone from ebay, I can just take the sim card out and use that Iphone as a Ipod touch? And where is the sim card located on the Iphone?