Create new daba base over jdbc-Driver

Hi,
i use the mySql-DB with the mm.mysql.jdbc-1.2c-JDBC-Driver.
Its working fine!
But how can I create a new database thru the JDBC-Driver?
Thanks
Daniel :-)

i don't know if this wil work but with a access database with ODBC it works like this.....
               try
          Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
                    connection = DriverManager.getConnection(
     url, username, password );
          catch ( ClassNotFoundException cnfex )
          System.err.println(
     "Failed to load JDBC/ODBC driver." );
          cnfex.printStackTrace();
          System.exit( 1 ); // terminate program
          catch ( SQLException sqlex )
          System.err.println( "Unable to connect" );
          sqlex.printStackTrace();
Statement stmt = connection.createStatement();
stmt.executeUpdate("CREATE TABLE TABLENAME(ROWNAME TYPEDATA(xx), rowname VARCHAR(19))");
connection.close();

Similar Messages

  • I just saved my iphoto original library to my external hard drive, now how do i create new space on my hard drive and create a new iphoto library

    i just saved my iphoto original library to my external hard drive, now how do i create new space on my hard drive and create a new iphoto library

    Trash the copy of the library you just moved. Then Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    But do you want to have two iPhoto Libraries? Why not just use the one on the External?

  • How we create new data base in oracle 10g express edition

    hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition

    Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
    Using SYS or system accounts for creating user accounts.
    Syntax to create a user:
    create user Your_user
    IDENTIFIED BY password
    default tablespace users;
    grant connect, resources to your_user;
    Edited by: rober584812 on Jun 25, 2010 9:03 PM

  • How to create new scale basis for shipment costs without modification?

    Hi,
    at the moment I am trying to create a new scale basis for shipment costs.
    It is not a problem to create a new scale basis in table view V_TVFRFQ. The creation of an Append structure in the communication structure KOMK is easy, too.
    The problem is the following:
    When creating a scale for a scale basis with transaction VS01, the system picks some screens out of function group V57S. For my new scale basis there is of course no screen in this standard function group.
    So my question:
    How to create/generate a screen to create scales for my new scale basis without a modification of function group V57S?
    To me it makes no sense that SAP offers a possibility to create customer owned scale bases but then gives the customer no possibility to create an input screen for that scale basis without modification. Therefore I think it should be possible to generate such a screen in some way.
    If you have some idea, let me know.
    Thanks!
    Christian

    Hi Christian,
    We are currently facing exactly the same problem you described in your message in January 2009.  I see that you have marked this as "answered", and was wondering if you would mind explaining how you overcame this issue?
    Any assistance would be hugely appreciated.
    Many thanks,
    Kaushik

  • New SQL Server 2005 JDBC Driver

    Dear All,
    I am grasping for straws here. I have a very strange issue with
    the new Microsoft JDBC driver (Microsoft SQL Server 2005 JDBC Driver).
    I have a couple of strange things happenning when I am using this driver,
    but the most critical one is that the application literally hangs
    executing a readObject statement:
    ExpressionBuilder trp= new ExpressionBuilder();
    Expression exp1 = trp.get("ID").equal(ID);
    getDatabaseSession().readObject(Trip.class, exp1);
    I can see that it actually executes the statement, then hangs.
    Any ideas would be greatly appreciated
    I am using 10g Release 3 (10.1.3.0.0) (Build 060118)

    Are you able to get a thread dump to see where the threads are?
    Doug

  • Create new folder on external hard drive.

    I am using an external hard drive with my Mac Air. How do I create a new folder on the EHD so I can sort my documents?

    I double clicked on the icon (under Finder/Devices). My choices are: Open, Open Enclosing Folder, Eject Free Agent Go Flex Drive, Get Info, Remove from Sidebar. Do you have any other suggestions?
    I also tried double clicking on icon, then going to File. Only choice was "New Smart Folder".

  • Cannot create SOA-MDS connection for JDBC driver issue

    I am unable to create a SOA-MDS connection in JDeveloper 11.1.1.6. We are using MS SQL Server database and have put the sqljdbc4.jar file into a library in our JDeveloper environments. We can use this to sucessfully create database connections.
    However, when we attempt to configure a SOA-MDS connection which uses our DEV_MDS connection (which uses the com.microsoft.sqlserver.jdbc.SQLServerDriver successfully), we do not see anything in the drop down list for 'Select MDS partition'.
    While looking at the Messages, log, we're getting:
    WARNING: Error reading db partitions for connection DEV_MDS. Reason: MDS-0003: error connecting to the database
    Error during pool creation in Universal Connection Pool Manager MBean
    ...ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerXADataSource
    I opened our sqljdbc4.jar file and see both the SQLServerXADataSource.class and SQLServerDriver.class files in there.
    So why can JDeveloper load one of them but not the other at runtime? Do I need to add the sqljdbc4.jar to a second location (besides a custom Library) in order for the Universal Connection Pool Manager MBean to load it via JDeveloper?
    Please advise,
    Michael
    NOTE: I can manually query the database and see 'soa-infra', 'owsm' and 'obpm' partitions just fine.
    Edited by: mscongdon on Aug 14, 2012 9:33 AM

    Hi,
    Do you use MS SQL Server as your MDS database? Did you create an MDS in it using RCU?
    When you created the database connection in JDeveloper could you test it succesfully? Can you connect to it with the Database Navigator?
    Regards,
    Martien

  • Create new Library on internal Hard Drive.

    My A3 was extremely sluggish. All functions work, but they are all sloooooowwww.
    Created an Aperture Library in my internal HD instead of External HD. Seems to have picked up some speed. Was wondering if any of you guys have noticed a performance difference based on where your Libriary icon is kept. Onboard or off?
    I use only referenced files.
    MBP 17 gloss older gen//2.6 core 2 duo intel// 4g ram. ///10.6.2

    What kind of external drive were you using? USB? FW400? FW800? Or was it on a network drive? Makes a big difference. Also the rpm and cache size of the drive can make a big difference as well.
    I have the "library" on the internal and the image files (referenced) on a FW800 drive.

  • Help installing new JDBC driver on LINUX

    Hello,
    Today, I downloaded the new SQL Server 2005 JDBC Driver onto
    my Linux Server. The path to the driver's .jar file is
    /root/sqljdbc_1.0/enu/sqljdbc.jar. I placed that path in my CF
    Adminstrator "Java and JVM" page's Class Path field. I restarted
    the app server but each time I try to establish a dsn connection I
    keep getting this error. (note: I have dsn's set up already to this
    instance of SQL Server 2005 so the communicatio is there but I
    would prefer to use this new driver)
    Connection verification failed for data source: dsnTestDB
    java.sql.SQLException: No suitable driver available for
    dsnTestDB, please check the driver setting in resources file,
    error: null
    The root cause was that: java.sql.SQLException: No suitable
    driver available for dsnTestDB please check the driver setting in
    resources file, error: null
    Any help would be greatly appreciated.
    Thanks,
    mdg1
    Houston, TX

    Try placing the jar file in the
    {cfmx-root}/runtime/servers/lib (create if not already there)
    directory if you have the server install or the
    {jrun-root}/servers/lib directory if you have the multiserver or
    j2ee install on JRun. Restart the Coldfusion applicatioin server.
    Ted Zimmerman

  • I am unable to create new folders 10.8.6

    Today I am unable to create new folders on my internal drive. I changed all the permissions for the applications with "get info" and unlocking plus selecting read and write for all three categories of users. My home office is shut down.
    HELP!

    reset home folder permissions
    1. Boot OS X Recovery by restarting the computer while holding the Command (⌘) and R keys.
    2. When the Repair Utilities screen appears, select Utilities from the Menu Bar, then click Terminal.
    3. In the Terminal window, type resetpassword and press Return.
    4. The password reset utility window will appear. Do not select a new password.
    Instead, click on the icon for your Mac's hard disk at the top. From the dropdown below it, select the user account with the problem.
    5. At the bottom of the window, you will see Reset Home Directory Permissions and ACLs. Click the Reset button. Repeat for each User account with the problem.
    The reset process may take a couple of minutes. When it finishes quit the programs and restart your Mac.
    Depending on exactly what you did to your Mac's permissions the above may not help. If it does not, read and follow Apple Support Communities contributor Niel's User Tip: kmosx: I accidentally set a disk's permissions to No Access

  • JDBC Driver 10.1.0.2.0 versus BC4J

    I tried to use Oracle JDBC Driver 10.1.0.2.0 with BC4J (JDeveloper 9.0.3.4), due to some bugs inside 9.0.1.4.
    But I meet some error:
    oracle.jbo.AttributeLoadException: JBO-27021: Selhalo nactení hodnoty CustomDatum na indexu 1 s objektem java typu oracle.jbo.domain.Number z duvodu java.sql.SQLException.
    (This error never occurred before with older version of JDBC driver.)
    Can be BC4J used with newer version of Oracle JDBC Driver? Is some combinations guaranteed? Have you any experiences with newer version of JDBC Driver?
    Thank you very much for any hints.
    Jan

    Rob,
    I hunted through the docs and can't seem to find which JDBC drivers are certified -- I hope I'm missing something.
    My case is that our client is forcing a move from the 9iAS 9.0.3 line using 8.1.7.4 database to Caucho Resin. They use the 9.2.0.4 DB version now and use that version of the JDBC driver on their Resin app server. They recommend the OCI (non-thin) version -- however, we are having trouble with that when updating the PS_TXN table.
    (getting java.sql.SQLException: ORA-00001: unique constraint (FISTSPROD2.PS_TXN_PK) violated
    ORA-06512: at line 1)
    Anyway, it would be great if I could find certification lists matrices for JDev/BC4J versions: 9.0.3.4, 9.0.4 and 9.0.5.1 to see which ones are compatible with the target JDBC driver. They are currently using the 9.2.0.4 (OCI) in Windows, given their belief that the OCI driver is more reliable in their RAC configuration.
    Metalink doesn't seem to have it on the certification and the JDev docs prior to 9.0.5.1 are not as clear (from what I can see).
    I'm trying to use whichever JDev gets me there the easiest...
    Thanks,
    Jeff
    Thanks,
    Jeff

  • New Data Basis using infocbe 0BCS_C11

    Hi,
    I am creating new data basis using Infocube 0BCS_C11 in SEM BCS 4.0. Data Stream has been generated properly. Company and Consolidation Profit Center has been assigned Role ''Consolidation Unit'.
    However, I am not getting Company as characteristic in 'Authorization/Validity check' tab. I can see:
    Consolidation Group
    Consolidation Profir Center Group
    Consolidation Profit Center
    We are using Infocube 0BCS_C11 as we think that in future we might use Matrix Consolidation, though there is no current requirement. At present we are going to use Legal Consolidation only.
    Can you please advise?
    Best Regards,
    UR

    Solved. It was just saving and going out of the screen. Thanks

  • Jdbc driver creates new thread for each statement with a query timeout set

    I am profiling a web application that is using the Microsoft JDBC driver, version 1.1 to connect to a sql server 2005 database. Each java.sql.Statement that is created, within the application, gets a query timeout value set on it ( statement.setQueryTimeout(...) ).
    I have discovered that the JDBC driver creates a new thread to monitor each Statement and the query timeout value. When the application is under load these threads are getting created faster then they are being destroyed and I am concerned that this will cause a performance problem in production.
    One option I have is to remove the query timeout value and the monitor threads will not be created, another is to change JDBC drivers.
    I'm curious is there any way to control this behavior so that these threads are not created or are managed more efficiently.  Is there a workaround that anyone is aware of?   Is this considered a bug?
    I have found a similar bug here for the 2000 driver:
    http://support.microsoft.com/default.aspx/kb/894552
    Cheers

    Hi,
    Thank you for using the Microsoft SQL Server JDBC driver.  You are correct that a new thread is started to monitor the query timeout when a statement is executed.  This is a potential performance issue that we may look at addressing in the upcoming v1.2 release.  The current behavior is not configurable.  The only workaround with the v1.1 driver is to limit your use of query timeouts to only those statements which you reasonably might expect to actually time out.
    We do take customer feedback very seriously, so if anyone else is concerned about this particular issue, please chime in and we will be able to give it appropriate weight.
    --David Olix [MSFT]

  • How to add new JDBC driver ?

    OS - Linux
    SunAppServ 9.1
    Hi, I want to create in AdminPanel on 4848 port new ConnectionPool in Resources/JDBC.
    To do this I can chose Postgres Vendor but I want to use my new Postgres driver because default is not work.
    I hava postgresql-8.2-505.jdbc4.jar file
    in this file there is a directories org/postgresql/ds/PGPoolingDataSource.class which I want to use.
    Where I should copy this postgresql-8.2...jar file
    I tried copy to JEE5_HOME/lib/. and in secend step i write class postgresql-8.2-505.jdbc4.org.postgresql.ds.PGPoolingDataSource
    but this doesn't work.
    BTW this driver work in NetBeans (I have jdbc connection in Runtime and linked this driver)

    Please Refer :
    1) http://blogs.sun.com/JagadishPrasath/entry/creating_jdbc_connection_pool_resource
    2) http://blogs.sun.com/JagadishPrasath/entry/jdbc_connection_pool_templates_glassfish

  • Cannot create JDBC driver of class '' for connect URL 'null'

    HI,
    Can any one help why i am getting the below error:
    Cannot create JDBC driver of class '' for connect URL 'null'
    The Error Stack Trace is:
    Cannot create JDBC driver of class '' for connect URL 'null'
    java.lang.NullPointerException
        at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(Unknown Source)
        at java.sql.DriverManager.getDriver(Unknown Source)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
        at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
        at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
        at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1786)
        at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:505)
        at com.crystaldecisions.reports.queryengine.Connection.t4(SourceFile:3020)
        at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:697)
        at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.a(SourceFile:309)
        at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.long(SourceFile:264)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1150)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)
        at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
        at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
        at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
        at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
        at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:878)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPromptDatabaseLogOnInfos(SourceFile:815)
        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPromptDatabaseLogOnInfos(SourceFile:338)
        at com.businessobjects.report.web.a.e.a(SourceFile:174)
        at com.businessobjects.report.web.a.e.a(SourceFile:97)
        at com.businessobjects.report.web.a.e.a(SourceFile:343)
        at com.businessobjects.report.web.a.t.a(SourceFile:1726)
        at com.businessobjects.report.web.event.bw.broadcast(SourceFile:97)
        at com.businessobjects.report.web.event.am.a(SourceFile:53)
        at com.businessobjects.report.web.a.t.if(SourceFile:2104)
        at com.businessobjects.report.web.e.a(SourceFile:300)
        at com.businessobjects.report.web.e.a(SourceFile:202)
        at com.businessobjects.report.web.e.a(SourceFile:135)
        at com.crystaldecisions.report.web.ServerControl.a(SourceFile:607)
        at com.crystaldecisions.report.web.ServerControl.processHttpRequest(SourceFile:342)
        at org.apache.jsp.CrystalReport_jsp._jspService(CrystalReport_jsp.java:205)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    Cannot create JDBC driver of class '' for connect URL 'null'
    java.lang.NullPointerException
        at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(Unknown Source)
        at java.sql.DriverManager.getDriver(Unknown Source)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
        at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
        at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
        at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1786)
        at com.crystaldecisions.reports.queryengine.Connection.
    Thanks
    Penchal

    HI Shailendra,
    I think your expecting code. The Code is as follows. and also for few reports i am getting Unexpected Database Error help me in this also
    if(reportName != null && !"".equals(reportName) && reportSource==null){
            //Initializing report
            ReportClientDocument boReportClientDocument = new ReportClientDocument();
            boReportClientDocument.open(reportName, 0);
              Fields<IParameterField> parameterFields = boReportClientDocument.getDataDefController().getDataDefinition().getParameterFields();
              System.out.println("Param Fields Size:"+parameterFields.size());
         if (parameterFields.size() > 0) {
            ParameterFieldController paramController = boReportClientDocument.getDataDefController().getParameterFieldController();
            for (int i = 0; i < parameterFields.size(); i++) {
                String paramName = parameterFields.getField(i).getName().trim();
                System.out.println("                    -          "+paramName);
                if(request.getParameter(paramName) != null) {
                    paramController.setCurrentValue("", paramName, request.getParameter(paramName));
                    System.out.println(paramName+":"+request.getParameter(paramName));
                }else {
                    System.out.println("Param is Null:"+paramName+":"+request.getParameter(paramName));
                    paramController.setCurrentValue("", paramName, "");
        reportSource = boReportClientDocument.getReportSource();
        //session.setAttribute("ReportSource", reportSource);
        boReportClientDocument.close();
        CrystalReportViewer crystalReportViewer = new CrystalReportViewer();
        crystalReportViewer.setName(reportName);
        crystalReportViewer.setOwnPage(true);
        crystalReportViewer.setBestFitPage(true);
        crystalReportViewer.setToolPanelWidth(0);
        crystalReportViewer.setHasToggleParameterPanelButton(false);
        crystalReportViewer.setHasToggleGroupTreeButton(false);
        crystalReportViewer.setReportSource(reportSource);
        crystalReportViewer.setEnableDrillDown(false);
                crystalReportViewer.processHttpRequest(request, response,getServletConfig().getServletContext(),null);
    Thanks
    Penchal

Maybe you are looking for

  • Images on a website don't show, while they do in Safari

    This webpage shows a bunch of small graphics, connected by lines. The content does not show at all in Firefox 4 and the problem started showing in the last two Firefox 3 updates. Safari loads the page no problem. I do use the noscript plugin, but the

  • Apple TV (3rd Generation Retail Demo Mode

    Hey guys! I'm kinda stuck here. I've been trying to activate the retail demo mode on Apple TV (3rd Generation) using the Right, Right, Left, Center button combination for our store demo model. That part worked, but from what i've read, there is suppo

  • Dealer Invoice related

    Hi Experts I have a typical issue. My client gets an invoice from dealer where the basic prices and assesable values are different. ALong with BED/ECS/SECS Additional duty of customs is also charged by the vendor. On the basic price the duties are ad

  • Connect sg300-28 to sg500-52

    i am looking to connect a sg300-28 (as the secondary or non-root bridge) to a sg500-52, using Port-Channeling with LACP and 802.1q. i have configured the ports as trunk, the port-channel as trunk, and added several vlans to the trunk.  no link shows

  • Not able to find text element in layout

    Hi guys, in a layout ZABC print prgrm following write statement is coded.. call function 'WRITE_FORM'           "Deactivate Header      exporting  element  = 'ITEM_HEADER'                 function = 'DELETE'                 type     = 'TOP'. then cal