Performance with MySQL and Database connectivity toolbox

Hi!
I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
My questions are:
1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
3. Is there any way of adjusting the MySQL setup to achieve better performance?
Thank you very much for your time.
Regards,
Mattias

First of all, thank you very much for your time. All of you have been really good support to me.
>> Is your database on a different computer?  Does your loop execute 61 times? 
Database is on the same computer as the MySQL server.
The loop saves 61 values at once to the database, in one SQL-statement.
I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
The test database table that I add data to is created by a simple:
create table test(aa int, bb char(15));
...I'm sure that this can be improved in some way.
I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
Any more advise will be gratefully accepted.
Regards,
Mattias
Message Edited by mattias@hv on 10-23-2007 07:50 AM
Attachments:
front panel 2.JPG ‏101 KB
block diagram.JPG ‏135 KB

Similar Messages

  • How to use sql request with Jdev and database connection

    Hello,
    I have a login page with simple username and password inputsecret text and a button validate! I would like, when the user click on the validate button, to check in the database that the user and password matches. I've done the "Method BIndind..." with the commandButton_action and the database connection works fine.
    How can I use an already existing procedure, say authenticate, wich is stored in the database to authenticate my user ?
    Do I have to create a jdbc connection in java even if I've done the connection with the "create new database connection" wizard ?
    String s1 = "jdbc:oracle:thin:@address:1521:ORCL";
    System.out.println( "Connecting with: " );
    System.out.println( s1 );
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    this.conn = DriverManager.getConnection( s1,"user","pass");
    thanks for your help

    Creating a connection to the DB in JDeveloper doesn't mean that your application is now connected to the DB - so yes you do need to create a connection to the database using JDBC.
    One note - if you are trying to do a database user authentication the following is probably the better way to go about it:
    http://www.oracle.com/technology/products/jdev/howtos/1013/oc4jjaas/oc4j_jaas_login_module.htm

  • I run Dev 6i on Windows 2008 R2 64-bit,the forms are working fine after connection to the database but the reports continue to request for username, password and database connection string every time i try to open a report.

    I receive REP-0501: Unable to connect to specified database. I run developer 6i application on windows 2008 r2. I have applied the nn60.dll and nnb60.dll files to the \BIN directory. The forms are working fine. The reports will only display after the correct user id (username, password and database connection string) is supplied. This is happening to all attempts to open already complied form. Pls, help.

    If you are connecting to an Oracle 11g database, remember that by default the passwords are case sensitive. To disable that, run
    ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;

  • I need to connect my Imac 27'' (newest version) up to 3/4 monitors (all 40'' LCD tv's with VGA and HDMI connections) with extended display to all external screens, not duplicate images. Is this possible?

    i need to connect my Imac 27'' (newest version) up to 3/4 monitors (all 40'' LCD tv's with VGA and HDMI connections) with extended display to all external screens, not duplicate images. Is this possible?

    I would suggest you visit an Apple dealer, preferably an Apple Store if there's one in your city, and ask for assistance in determining what you need. The questions and issues you bring up are rather complex to address in a technical support forum and would be better addressed in person where you and the salesperson can ask questions back and forth to arrive at the optimal setup.
    Regards.

  • Enabling Usage Rights for Web Service and Database connectivity

    We are looking for code that allows us to enable web service and database connectivity rights into a form. We are using LiveCycle Forms 7.2 to render the XDP and merge data. Because we are merging data into the form, it has to be reader enabled through the  code everytime it is presented to the user in our application.
    usageRights[0] = com.adobe.document.pdf.DOCUMENT_SAVE.value;
    usageRights[1] = com.adobe.document.pdf.FORM_FILL_IN.value;
    usageRights[2] = com.adobe.document.pdf.FORM_EXPORT.value;
    usageRights[3] = com.adobe.document.pdf.FORM_IMPORT.value;
    usageRights[4] = com.adobe.document.pdf.FORM_ONLINE.value;
    Anyone's help would be greatly appreciated

    This topic was cross posted.  See responses here:
    http://forums.adobe.com/message/2111421#2111421

  • All of a sudden my personal hot spot isn't working. It only comes up with Bluetooth and USB connection options. Why would that be?

    All of a sudden my personal hot spot isn't working. It only comes up with Bluetooth and USB connection options. Why would that be?

    No I can not turn on the wifi either. I can get on the web on my phone and Facebook etc on phone but no wifi or hotspot

  • (IMP)Application module and database connection

    Hi,
    How application module pooling and database connection pooling is working ?
    Currently i m facing a problem like if i am creating 10 browser session then it doesn't mean that i'll have only 10 db sessions. While closing the browser session of application module time out respective db session is not removed.
    In this case, invalid db session are created in bulk which is crashing database sometime. We have writter script to kill those session periodically but in this case if application module is accessing such dbconnection then we are getting session killed error or not logged in error.
    To over come we need to bounce the server (middle tier).
    Is there any proper way to solve this or am i doing something wrong ?
    Please let me know if you need any more details.
    Thanks in advance
    Devang

    Thanks for your prompt reply Ricky.
    I just found out that in some of the JSP pages in application
    <jbo:ReleasePageResources/> is not written. Should this problem arise because of this?
    could you please tell me how can I release page resources in UIX pages ?
    Datasources.xml file content
    <data-source class="com.evermind.sql.DriverManagerDataSource"
    name="AITDS"
    location="jdbc/AITCoreDS"
    pooled-location="jdbc/pooled/AITPDS"
    xa-location="jdbc/xa/AITXADS"
    ejb-location="jdbc/AITDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username=<USERNAME>
    password=<PASSWORD>
    url=<URL>
    inactivity-timeout="30"
    />
    bc4j.xcfg file
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="GsaServerModuleLocal">
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCDataSource>jdbc/AITCoreDS</JDBCDataSource>
    <jbo.project>gsa</jbo.project>
    <AppModuleJndiName>oracle.appsit.gsa.server.GsaServerModule</AppModuleJndiName>
    <java.naming.factory.initial>oracle.jbo.common.JboInitialContextFactory</java.naming.factory.initial>
    <ApplicationName>oracle.appsit.gsa.server.GsaServerModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    Let me know if you need any more detail.
    Thanks in advance
    Devang

  • Database setup with MySQL and PHP question

    Hello all,
    I recently had a problem getting a report to work for a site I was updating.  This site is written in PHP with a MySQL database.  The application is to track customer calls to auto repair stores.  The database has a lot of foreign keys because they wanted to update information in only one spot and have multiple records be updated all at once.  So, I've got all the information from individual calls saved in the call_log table, and have foreign keys to reference information in other tables (for example this table lists what store received the call referencing the store table).  If a store changes locations, they want to have reports automatically update with the new address, connection to conversation number, etc.
    In one of the responses to my question on how to get this report to work, I was told that this could be done without using foreign keys (by Normalizing the database using mapping tables).  I am still a newbie to MySQL, and after looking though a lot of manuals, tutorials, and forum posts, I am more confused now than ever.
    I got the report to work using the foreign keys, but I would like to learn what I should have done with the database (and how to get the information displayed).
    So for example one report would be displaying the following:
               Store                                                      Reason for the Customer Call
                                               breaks             oil change            shocks              tune up         total calls
    5636 - Bloomington                  2                       4                        0                       2                   8
    8875 - Duluth                           1                       6                       4                        8                  19
    with links on the store name to pull up the information on that specific store.  How would I change the database (listed below) to do this without foreign keys?  Any help would be greatly appreciated.
    call_log             (table that contains the following:)
    call_id
    conv_number
    date
    camp_type         (foreign key to the campaign table so it displays the campaign_id)
    reason               (foreign key to the call_reason table so it displays the reason_id)
    location              (foreign key to the store table so it displays the store_id)
    associate
    call_summary
    trainig_issue      (foreign key to the training_points table so it displays the training_key_id)
    visit_closed
    example            (foreign key to the example_type table so it displays the example_id)
    campaign          (table that contains the following:)
    campaign_id
    campaign_name
    campaign_promotion
    campaign_coupon
    campaign_startdate
    campaign_enddate
    call_reason       (table that contains the following:)
    reason_id
    reason
    store               (table that contains the following:)
    store_id
    store_number
    store_address
    store_city
    store_state
    store_postalcode
    store_name
    store_phone
    store_email
    store_mgr
    training_points  (table that contains the following:)
    training_key_id
    key_issue
    policy
    example_type  (table that contains the following:)
    example_id
    example_name
    example_image
    Thank you very much.

    Frankly, that is way to much of a question to be answered in detail on a forum... There's a lot involved and a lot of general database understanding required. I would highly recommend:
    Database Design for Mere Mortals:                       A Hands-On Guide to Relational Database Design, Second                       Edition -- by Michael                     J. Hernandez
    This is an invaluable book to get you going in the right direction and on a firm foundation.
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • Issue in bringing up CRS on ATG 10.1.1 with MySQL and Weblogic 10.3

    Hello,
    I am trying to bring up Commerce Reference Store as part of my evaluation using MySQL (bundled with ATG) and WebLogic 10.3.
    I followed the ATG Documentation on CRS with WebLogic and MySQL and I could not proceed because of the below error log. I keep getting error in OnlineCreateServerInstanceTask of CIM. I believe it should be some configuration problem, but could not think of any.
    As part of the installation, I use C:\jdk1.6.0_25. I verified my weblogic server is up through the admin console. I started MySQL before running the eval batch. Apart from starting MySQL server, I did not make any datasource/database configuration changes for ATG. I have not run any other scripts to configure MySQL too.
    Please guide me to resolve the problem.
    C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval>configureEval.bat
    Do you wish to run the CRS evaluation installation? [Y/N]: y
    Do you wish to use an existing database for the CRS evaluation? [Y/N]: n
    The CRS evaluation install will attempt to create the database. Press [Return] t
    o continue or any other key to quit:
    Enter mysql database connection details
    Enter user name: admin
    Enter user password: admin
    Enter database name: crsprod
    Enter 'root' user password:
    Creating database...
    Finished database creation
    Enter weblogic admin server URL: http://localhost:7001
    Enter weblogic admin server username: weblogic
    Enter weblogic admin server password: weblogic123
    Buildfile: C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval\evalbuild.xml
    all:
    [copy] Copying 1 file to C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval
    [delete] Deleting: C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval\cimOut.
    cim.tmp
    BUILD SUCCESSFUL
    Total time: 0 seconds
    Application Server: weblogic
    The following installed ATG components are being used to launch:
    ATGPlatform version 10.1.1 installed at C:\ATG\ATG10.1.1
    Created "C:\ATG\ATG10.1.1\home\CIM\startDynamo.jar" in 15,273ms.
    Nucleus running
    atg.cim.productconfig.productselector.ProductSelectionContextTask starting...
    (Searching for products... done.)
    atg.cim.productconfig.productselector.ProductSelectionContextTask finished.
    atg.cim.productconfig.appserver.AppServerSelectTask starting...
    atg.cim.productconfig.appserver.AppServerSelectTask finished.
    atg.cim.productconfig.appserver.AppServerPathTask starting...
    atg.cim.productconfig.appserver.AppServerPathTask finished.
    atg.cim.productconfig.appserver.DomainPathTask starting...
    atg.cim.productconfig.appserver.DomainPathTask finished.
    atg.cim.productconfig.appserver.UrlTask starting...
    atg.cim.productconfig.appserver.UrlTask finished.
    atg.cim.productconfig.appserver.UsernameTask starting...
    atg.cim.productconfig.appserver.UsernameTask finished.
    atg.cim.productconfig.appserver.PasswordTask starting...
    atg.cim.productconfig.appserver.PasswordTask finished.
    atg.cim.productconfig.appserver.AppServerSelectionPersistenceTask starting...
    atg.cim.productconfig.appserver.AppServerSelectionPersistenceTask finished.
    atg.cim.database.CreateSchemaTask starting...
    atg.cim.database.CreateSchemaTask finished.
    atg.cim.database.ImportDataTask starting...
    Combining template tasks...Success
    Importing (1 of 1) /CIM/tmp/import/nonswitchingCore-import1.xml:
    /CommerceReferenceStore/Store/Storefront/data/pricelists.xml to /atg/commerce/pr
    icing/priceLists/PriceLists
    /CommerceReferenceStore/Store/Storefront/data/stores.xml to /atg/store/stores/St
    oreRepository
    /CommerceReferenceStore/Store/Storefront/data/catalog-i18n.xml to /atg/commerce/
    catalog/ProductCatalog
    /CommerceReferenceStore/Store/Storefront/data/pricelists-i18n.xml to /atg/commer
    ce/pricing/priceLists/PriceLists
    /CommerceReferenceStore/Store/Storefront/data/sites.xml to /atg/multisite/SiteRe
    pository
    /CommerceReferenceStore/Store/Storefront/data/sites-i18n.xml to /atg/multisite/S
    iteRepository
    /CommerceReferenceStore/Store/Storefront/data/promos-i18n.xml to /atg/commerce/c
    atalog/ProductCatalog
    /CommerceReferenceStore/Store/Storefront/data/seotags-i18n.xml to /atg/seo/SEORe
    pository
    /CommerceReferenceStore/Store/Storefront/data/wishlists.xml to /atg/commerce/gif
    ts/Giftlists
    /CommerceReferenceStore/Store/Storefront/data/inventory.xml to /atg/commerce/inv
    entory/InventoryRepository
    /CommerceReferenceStore/Store/Storefront/data/users.xml to /atg/userprofiling/Pr
    ofileAdapterRepository
    /CommerceReferenceStore/Store/Storefront/data/orders.xml to /atg/commerce/order/
    OrderRepository
    /CommerceReferenceStore/Store/Storefront/data/orders-i18n.xml to /atg/commerce/o
    rder/OrderRepository
    /CommerceReferenceStore/Store/Storefront/data/storetext-i18n.xml to /atg/store/s
    tores/StoreRepository
    /CommerceReferenceStore/Store/Storefront/data/claimable-i18n.xml to /atg/commerc
    e/claimable/ClaimableRepository
    ... > Success
    All Imports Completed Successfully
    atg.cim.database.ImportDataTask finished.
    atg.cim.worker.common.PropertyFileClearPersistanceTask starting...
    atg.cim.worker.common.PropertyFileClearPersistanceTask finished.
    atg.cim.productconfig.serverinstance.ServerInstanceNameTask starting...
    atg.cim.productconfig.serverinstance.ServerInstanceNameTask finished.
    atg.cim.productconfig.serverinstance.PortBindingsSelectTask starting...
    atg.cim.productconfig.serverinstance.PortBindingsSelectTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.productconfig.serverinstance.MakeServerInstanceFromPatternTask starting.
    atg.cim.productconfig.serverinstance.MakeServerInstanceFromPatternTask finished.
    atg.cim.productconfig.appassembly.EarFileNameTask starting...
    atg.cim.productconfig.appassembly.EarFileNameTask finished.
    atg.cim.productconfig.deploy.weblogic.OnlineCreateServerInstanceTask starting...
    Error Executing Batch File
    atg.cim.worker.TaskException: Error deploying to weblogic
    atg.cim.worker.TaskException: Error exececuting batch file
    at atg.cim.flow.CimFlowCreator.startHeadlessCimFlow(CimFlowCreator.java:
    130)
    at atg.cim.Launcher.startCimFlow(Launcher.java:278)
    at atg.cim.Launcher.main(Launcher.java:99)
    Caused by: atg.cim.worker.TaskException: Error deploying to weblogic
    at atg.cim.worker.Task.handleException(Task.java:72)
    at atg.cim.productconfig.deploy.weblogic.OnlineCreateServerInstanceTask.
    execute(OnlineCreateServerInstanceTask.java:159)
    at atg.cim.headless.HeadlessExecutorImpl.executeTasks(HeadlessExecutorIm
    pl.java:150)
    at atg.cim.headless.HeadlessExecutorImpl.populateAndExecuteHeadlessTasks
    (HeadlessExecutorImpl.java:140)
    at atg.cim.batch.BatchChooserExecutor.populateAndExecuteHeadlessTasks(Ba
    tchChooserExecutor.java:169)
    at atg.cim.flow.CimFlow.headlessFlow(CimFlow.java:116)
    at atg.cim.flow.CimFlowCreator.startHeadlessCimFlow(CimFlowCreator.java:
    120)
    ... 2 more
    Caused by: C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:348: The following
    error occurred while executing this line:
    C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:254: The following error occur
    red while executing this line:
    C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:214: exec returned: 1
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
    tHelper.java:541)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    at atg.cim.task.ant.utility.AntExecutionWrapper.executeAntTarget(AntExec
    utionWrapper.java:167)
    at atg.cim.worker.AntTask.executeAntTarget(AntTask.java:115)
    at atg.cim.productconfig.deploy.weblogic.OnlineCreateServerInstanceTask.
    execute(OnlineCreateServerInstanceTask.java:155)
    ... 7 more
    Caused by: C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:254: The following
    error occurred while executing this line:
    C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:214: exec returned: 1
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
    tHelper.java:541)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:391)
    ... 20 more
    Caused by: C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:214: exec returned:
    1
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
    at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:391)
    ... 34 more
    Nucleus shutting down
    Nucleus shutdown complete
    Thanks.

    This error is resolved after following the logs in C:\ATG\ATG10.1.1\CIM\log\cim.log. The root cause is I used http as protocol instead of t3 while specifying weblogic admin url.
    http://localhost:7001 instead of t3://localhost:7001
    Thanks.

  • Need help setting up JDBC with mySQL and Netbeans

    I've successfully got mySQL up and running and created a few simple test databases. I've been following the instructions on this website (http://www.stardeveloper.com/articles/display.html?article=2003090401&page=1 ) to get JDBC working but have had little luck.
    I've downloaded JDBC from mySQL website, extracted the mysql-connector-java-3.1.13-bin.jar file and changed the class path to :
    C:\Program Files\Java\jre1.5.0_06\lib\ext\mysql-connector-java-3.1.13-bin
    which is where I placed the .jar file.
    I then used the following code provided on stardeveloper.com to test a connection with the test database.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class JdbcExample2 {
      public static void main(String args[]) {
        Connection con = null;
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql:///test",
            "root", "secret");
          if(!con.isClosed())
            System.out.println("Successfully connected to " +
              "MySQL server using TCP/IP...");
        } catch(Exception e) {
          System.err.println("Exception: " + e.getMessage());
        } finally {
          try {
            if(con != null)
              con.close();
          } catch(SQLException e) {}
    }It compiles but when run I get the error message :
    java.lang.NoClassDefFoundError: testdatabase/JdbcExample2
    Exception in thread "main"I assume this means that my classpath isn't setup correctly but I have no idea what's up and how to correct it.
    Can someone PLEASE tell me how to setup jdbc and what I've done wrong.
    Thanks in advance :)

    Thanks for your reply. I've made some progress but I'm still having problems.
    In mySQL I created a new user called uraknai with password n0121429 and granted them access to a test database I created called pet.
    Then, in netbeans, I clicked the Runtime tab, clicked Databases and rightclicked Drivers and clicked Add Driver. I then added the driver mysql-connector-java-3.1.13-bin.jar. I then right clicked the newly added driver and selected the connect using option. I filled in the appropriate boxes clicked ok and it connected successfully.
    Then, under the project tab, I right clicked the project name, clicked properties then clicked Libraries and added the .jar file mysql-connector-java-3.1.13-bin.jar
    I then ran the following code to test the connection to the database:
    import java.sql.*;
    public class ConnectionTest {
        public ConnectionTest() {
        public static void main(String[] args)
            System.out.println("BEGIN CONNECTION TEST");
            Connection conn = null;
            try
                   String userName = "uraknai";
                   String password = "n0121429";
                   String url = "jdbc:mysql://localhost/pet";
                   Class.forName ("com.mysql.jdbc.Driver").newInstance ();
                   conn = DriverManager.getConnection (url, userName, password);
                   System.out.println ("Database connection established");
             catch (Exception e)
                   System.err.println ("Cannot connect to database server");
             finally
                   if (conn != null)
                       try
                           conn.close ();
                           System.out.println ("Database connection terminated");
                       catch (Exception e) { /* ignore close errors */ }
    }and get the message:
    java.lang.NoClassDefFoundError: math/ConnectionTest
    Exception in thread "main"
    Java Result: 1when I run the code.
    Can someone explin what I've done wrong and how to fix the problem.
    Cheers.

  • How to use SQL Dev with MySQL DBs ? Connection Setup

    As far as I know SQL Dev can be used with MySQL databases as well.
    How do I have to setup the connection for MySQL?
    In detail what do I have to enter for
    -role
    -connection type
    SID/ServiceName
    Or is there a separate version for Oracle and MySQLß
    Peter
    Edited by: user5328442 on Jan 5, 2011 9:23 AM

    Hi,
    After downloading the MySQL plugin did you add the details in the third party database list ?
    Do the following -
    - Tools
    - Preferences
    - expand the Database option if necessary
    - Third Party JDBC Drivers
    - add the location and file name of the plugin.
    On my setup it is -
    D:\mysql_jdbc\mysql-connector-java-5.0.8\mysql-connector-java-5.0.8-bin.jar
    The driver may be different if you have a later version.
    Regards,
    Mike
    Edited by: mkirtley on Jan 7, 2011 9:46 AM

  • AIR application and database connectivity (using JAVA)

    Hi
    I am creating AIR application and I want to connect with the database using java database connectivity (JDBC).
    Can any body give me the some suggestion on how to how to do that.
    Please give me any reference for creating AIR application for database connectivity with mysql/access.
    Thanks
    Sameer

    lots of serching on the google and found that For AIR applications either you use Webservices(JAVA/PHP/.Net) or you can use SQLLite.
    Not found any method for direct connectivity with the database using JDBC.
    If any one found direct connecivity withe database using JAVA then please reply.
    Thanks

  • JDeveloper 10.1.2 with MySQL and PostgreSQL

    I'm testing JDeveloper 10.1.2 business components with mysql or postgresql because my company needs to connect also to these non-oracle DBs. ADF suits our developement needs, in speed and functionalities; anyway to make it our main developement system we need it to be compatible.
    I made three tests and they were all disappointing.
    At first, I installed MySQL 4.0 on my windows machine. I used the stable Connector/J 3.1
    and then MySQL Connector/J 3.0, but in both cases JDeveloper had a strange behaviour: I can make the connection, I can navigate correctly through all tables in the connection-navigator, I see all the column names etc... Anyway, as I try to build a "new Entity Object" from a table, there are no available table properties, like if the table had no columns.
    In this forum I only found documentation about rowid problems with mysql, but nothing about Entity Object wizard issues.
    Then I switched to PostgreSQL. I installed it locally, so I had to choose the 8.01 since I'm on a windows machine. JDBC driver: postgresql-8.0-310 jdbc3
    The developement test phase went ok, it is possible to use this DB just as if it was a Oracle, all the business components wizards works perfectly.
    The problem is at runtime, unfortunately. I built a simple datapage on the struts-config diagram and I dragged on it a "read-only table" from the data control palette.
    As I run the application, the embedded OC4J immediately returns this error:
    oracle.jbo.JboException: JBO-29000: JBO-29000: JBO-29000: JBO-26061: Errore durante lapertura della connessione JDBC.
    at oracle.jbo.JboException.<init>(JboException.java:343)
    (in english: Error during JDBC connection)
    There are no other available JDBC drivers for JVM 1.4x so I see no solution...
    I also tried to connect to an older PostgresSQL with its (older) JDBC but I get same the result.
    Anyone can help? Is it a JDev 10.1.2 issue?

    Hi Paolo.
    I'm also doing such tests.
    I did not ran into these problems because I created the busisness componentes using an Oracle connection first.
    After that, I switched the datatype of the table columns in the entity object to meet the SQL92 criteria ( like changing NUMBER(n) to INTEGER ).
    And then, I switched the connection to the postgreSQL or MySQL. This worked fine for me.
    But, the other big problem you will face is related to updating records using postgreSQL connection.
    Please see my post "Problem updating records using BC4J with foreign data sources" Problem updating records using BC4J with foreign data sources
    It would by fine if we help each other to solve this problems.
    Thanks
    Denis

  • Dynamic Login Environment with LDAP and Database level security.

    JDeveloper 11.1.1.0.1 + ADF BC + ADF RC
    Hi everyone,
    We are ready to begin creating a dynamic login environment.
    We would like to be able to keep security on the database side, instead of in the application layer.
    We also want to be able to use Oracle LDAP for authentication.
    Can anyone suggest any good documentation for our situation?
    Highly appreciated. Thanks!

    Alexander,
    unlike in Forms, authentication is separate from connection. You can have individual user connections - like in Forms - but this most likely is not of best performance. A document and example for this to follow is
    http://radio.weblogs.com/0118231/2008/08/06.html#a902
    Note that authentication does not need to be hard coded in either way. If you use a single database connection and container managed authentication, then all users access the database from the same user account but can have their authenticated names passed through. In ADF BC you can use the prepareSession method on the ApplicationModule to pass the name to the database as a prepared statement (e.g. to set the predicate on a VPD database). However, using PLSQL for authorization is a bit difficult because the business logic, unlike in Forms isn't executed in PLSQL. You can look up PLSQ from ADF BC - or Java in general - but its a separate call.
    Frank

  • Something is wrong with ViewCriteria Search with MySQL as database.

    Hello everybody:
    I have spent some time working with JDeveloper and ADF but I always did it using Oracle Database as data repository. Now I'm experimenting with MySQL. I created a view criteria in a view object, I published it in the application module and drop it to a page, as usually have done before. When I compile the page and select Advanced option in the search form, only operator "Equals" works, non other. My question is if that behavior is normal when I use MySQL or, if is there any feature that I should modify or some thing else.
    Regards,
    isabelbernely

    isabelbernely,
    When you created your business components, what [url http://download.oracle.com/docs/cd/E16162_01/web.1112/e16182/bcintro.htm#sm0063]SQL Platform did you choose?
    John

Maybe you are looking for

  • "Show Desktop" bug forces any program windows to be stuck "Always-on-top"

    What I found under Windows 7, when you use the "Show Desktop" feature (I prefer the ⊞ Win + D shortcut) and then bring all windows back by using it again, some windows behave as if they're glued to the front of the z-order. What this means is, say, I

  • In need of an expert: OpenGL and drawing simple textures

    Hello, Is anyone knowledgeable about loading sprites with an alpha channel? This is the code I am using to load my sprites. The image files were png files with an alpha channel(parts where you can see through the image). But when loading it the parts

  • Still no Aperture Galleries in iWeb!?!

    Now that all my photos are created in Aperture it is really frustrating that they are not showing up on the iWeb "insert" menu. All of the iPhoto galleries show up and none of the Aperture galleries. Does anyone know when this may be fixed? -josh

  • Context object

    Hello,              What is context object ? where this will be used?                                                                           shyam

  • HR_FORMS_TIM_GET_B2_RESULTS

    Hi All, Can any one tell me why the FM HR_FORMS_TIM_GET_B2_RESULTS is used.. i'm trying to read attendances from tables ANWES with a particular wage type from above FM... Is the above FM used to get pay roll results like RT,CRT tables etc... Is there