Help with Derby Database Performance.

I have started Derby as our BackEnd in microERP application.
with Swing as front end. But i am struggling with Performace of the derby database.
I have tried every thing with Preparedstatement and all related thing,
Please give me a suggetion..

aamirym wrote:
I have started Derby as our BackEnd in microERP application.
with Swing as front end. But i am struggling with Performace of the derby database.As noted your question is too general.
However I would be really surprised if Derby came anywhere to even close to the performance of Oracle/MS SQL Server for all situations.
So if you picked Derby inappropriately for the needs of the business then you have a problem.

Similar Messages

  • Help with this database performance

    we have a web app on weblogic and backend is db 11gR2.
    we have also batch jobs also running. people complain jobs running too long - in hrs.
    Could any one make comments on this AWR?
    Thank you very much
                  Snap Id      Snap Time      Sessions Curs/Sess
    Begin Snap:     16147 28-Feb-13 16:00:08       815       3.4
      End Snap:     16148 28-Feb-13 17:00:21       871       3.6
       Elapsed:               60.22 (mins)
       DB Time:              148.96 (mins)
    Cache Sizes                       Begin        End
    ~~~~~~~~~~~                  ---------- ----------
                   Buffer Cache:     2,208M     2,208M  Std Block Size:         8K
               Shared Pool Size:     3,600M     3,600M      Log Buffer:    20,800K
    Load Profile              Per Second    Per Transaction   Per Exec   Per Call
    ~~~~~~~~~~~~         ---------------    --------------- ---------- ----------
          DB Time(s):                2.5                0.1       0.00       0.00
           DB CPU(s):                2.1                0.1       0.00       0.00
           Redo size:          648,806.2           20,691.5
       Logical reads:          102,169.5            3,258.4
       Block changes:            5,538.9              176.6
      Physical reads:            9,146.3              291.7
    Physical writes:              182.8                5.8
          User calls:            1,049.4               33.5
              Parses:               38.5                1.2
         Hard parses:                1.5                0.1
    W/A MB processed:                5.4                0.2
              Logons:                0.4                0.0
            Executes:              785.9               25.1
           Rollbacks:               12.7                0.4
        Transactions:               31.4
    Top 5 Timed Foreground Events
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                               Avg
                                                              wait   % DB
    Event                                 Waits     Time(s)   (ms)   time Wait Class
    DB CPU                                            7,403          82.8
    log file sync                        63,357         954     15   10.7 Commit
    db file sequential read           6,961,298         599      0    6.7 User I/O
    direct path read                    326,419         230      1    2.6 User I/O
    SQL*Net message from dblink           1,346         164    122    1.8 Network
    Host CPU (CPUs:  160 Cores:   80 Sockets:   20)
    ~~~~~~~~         Load Average
                   Begin       End     %User   %System      %WIO     %Idle
                   27.61     28.95      10.5       6.0       0.0      83.6
    Instance CPU
    ~~~~~~~~~~~~
                  % of total CPU for Instance:       1.5
                  % of busy  CPU for Instance:       8.9
      %DB time waiting for CPU - Resource Mgr:       0.0
    Memory Statistics
    ~~~~~~~~~~~~~~~~~                       Begin          End
                      Host Mem (MB):    655,360.0    655,360.0
                       SGA use (MB):      6,144.0      6,144.0
                       PGA use (MB):      1,569.6      1,767.3
        % Host Mem used for SGA+PGA:         1.18         1.21
    Statistic Name                                       Time (s) % of DB Time
    DB CPU                                                7,402.9         82.8
    sql execute elapsed time                              6,861.1         76.8
    PL/SQL execution elapsed time                           270.2          3.0
    parse time elapsed                                      252.6          2.8
    hard parse elapsed time                                 135.6          1.5
    RMAN cpu time (backup/restore)                           61.2           .7
    connection management call elapsed time                  20.0           .2
    PL/SQL compilation elapsed time                           2.5           .0
    inbound PL/SQL rpc elapsed time                           1.1           .0
    hard parse (sharing criteria) elapsed time                0.3           .0
    hard parse (bind mismatch) elapsed time                   0.1           .0
    repeated bind elapsed time                                0.1           .0
    sequence load elapsed time                                0.0           .0
    DB time                                               8,937.8
    background elapsed time                               3,823.8
    background cpu time                                   1,067.8
    Operating System Statistics    
    Statistic                                  Value        End Value
    AVG_BUSY_TIME                             59,237
    AVG_IDLE_TIME                            301,693
    AVG_SYS_TIME                              21,399
    AVG_USER_TIME                             37,656
    BUSY_TIME                              9,507,251
    IDLE_TIME                             48,300,375
    SYS_TIME                               3,452,080
    USER_TIME                              6,055,171
    LOAD                                          28               29
    OS_CPU_WAIT_TIME                         524,700
    RSRC_MGR_CPU_WAIT_TIME                         0
    VM_IN_BYTES                               65,536
    VM_OUT_BYTES                                   0
    PHYSICAL_MEMORY_BYTES            687,194,767,360
    NUM_CPUS                                     160
    NUM_CPU_CORES                                 80
    NUM_CPU_SOCKETS                               20
    TCP_RECEIVE_SIZE_DEFAULT               2,097,152
    TCP_RECEIVE_SIZE_MAX                 335,544,320
    TCP_SEND_SIZE_DEFAULT                  2,097,152
    TCP_SEND_SIZE_MAX                    335,544,320
    Operating System Statistics -
    Snap Time           Load    %busy    %user     %sys    %idle  %iowait
    28-Feb 16:00:08     27.6      N/A      N/A      N/A      N/A      N/A
    28-Feb 17:00:21     28.9     16.4     10.5      6.0     83.6      0.0
    Foreground Wait Class          
    -> Captured Time accounts for        107.0%  of Total DB time       8,937.75 (s)
    -> Total FG Wait Time:             2,164.90 (s)  DB CPU time:       7,402.93 (s)
                                                                      Avg
                                          %Time       Total Wait     wait
    Wait Class                      Waits -outs         Time (s)     (ms)  %DB time
    DB CPU                                                 7,403               82.8
    Commit                         63,357     0              954       15      10.7
    User I/O                    7,528,076     0              932        0      10.4
    Network                     4,429,612     0              217        0       2.4
    Application                     1,560     0               29       18       0.3
    Other                         143,633     0               17        0       0.2
    Concurrency                    50,758     0               10        0       0.1
    Configuration                      71    14                4       62       0.0
    System I/O                      7,295     0                2        0       0.0
    Administrative                      2     0                0      136       0.0
    Foreground Wait Events        
                                                                 Avg
                                            %Time Total Wait    wait    Waits   % DB
    Event                             Waits -outs   Time (s)    (ms)     /txn   time
    log file sync                    63,357     0        954      15      0.6   10.7
    db file sequential read       6,961,298     0        599       0     61.4    6.7
    direct path read                326,419     0        230       1      2.9    2.6
    SQL*Net message from dblin        1,346     0        164     122      0.0    1.8
    db file parallel read            75,275     0         51       1      0.7     .6
    SQL*Net more data to clien    1,468,920     0         45       0     13.0     .5
    enq: KO - fast object chec          467     0         20      43      0.0     .2
    direct path write                 1,890     0         19      10      0.0     .2
    Background Wait Events        
                                                                 Avg
                                            %Time Total Wait    wait    Waits   % bg
    Event                             Waits -outs   Time (s)    (ms)     /txn   time
    log file parallel write          71,426     0        393       5      0.6   10.3
    db file parallel write           31,764     0        223       7      0.3    5.8
    Backup: MML create a backu            4     0        163   40660      0.0    4.3
    Backup: MML write backup p       14,976     0        153      10      0.1    4.0
    control file parallel writ        5,276     0         81      15      0.0    2.1
    Backup: MML commit backup             4     0         50   12598      0.0    1.3
    log file sequential read            530     0         21      39      0.0     .5
    db file async I/O submit         10,968     0         17       2      0.1     .5
    db file sequential read           4,562     0         17       4      0.0     .4

    top queries:
      CPU                   CPU per           Elapsed
      Time (s)  Executions    Exec (s) %Total   Time (s)   %CPU    %IO    SQL Id
       1,467.0          372       3.94   19.8    1,396.1  105.1   14.7 339k2pvagsdmy
    Module: J6597
    begin AD.CHECK_LAST_SUMM(:1, :2, :3); end;
       1,163.6          371       3.14   15.7    1,174.1   99.1   12.7 3vzr4nfv87n5x
    Module: Project_XT
    SELECT COUNT(*) FROM DUAL WHERE EXISTS (SELECT * FROM TASK WHERE UPDATE_DATE > :
    B2 AND PROJ_ID = :B1 ) OR EXISTS (SELECT * FROM TASKRSRC WHERE UPDATE_DATE > :B2
    AND PROJ_ID = :B1 ) OR EXISTS (SELECT * FROM PROJECT WHERE UPDATE_DATE > :B2 AN
    D PROJ_ID = :B1 ) OR EXISTS (SELECT * FROM PROJWBS WHERE UPDATE_DATE > :B2 AND P
         794.5        1,042       0.76   10.7      794.4  100.0     .3 c643t6fwvzj12
    Module: JDBC Thin Client
    BEGIN px_login(:1, :2, :3, :4); END;
        Buffer                 Gets              Elapsed
          Gets   Executions   per Exec   %Total   Time (s)  %CPU   %IO    SQL Id
    1.24183E+08         372    333,826.4   33.6    1,396.1 105.1  14.7 339k2pvagsdmy
    Module: J6597
    begin AD.CHECK_LAST_SUMM(:1, :2, :3); end;
    1.10990E+08         371    299,164.1   30.1    1,174.1  99.1  12.7 3vzr4nfv87n5x
    Module: Project_XT
    SELECT COUNT(*) FROM DUAL WHERE EXISTS (SELECT * FROM TASK WHERE UPDATE_DATE > :
    B2 AND PROJ_ID = :B1 ) OR EXISTS (SELECT * FROM TASKRSRC WHERE UPDATE_DATE > :B2
    AND PROJ_ID = :B1 ) OR EXISTS (SELECT * FROM PROJECT WHERE UPDATE_DATE > :B2 AN
    D PROJ_ID = :B1 ) OR EXISTS (SELECT * FROM PROJWBS WHERE UPDATE_DATE > :B2 AND P
    27,454,458       1,042     26,347.8    7.4      794.4   100    .3 c643t6fwvzj12
    Module: JDBC Thin Client
    BEGIN px_login(:1, :2, :3, :4); ENDlooked like the first two were the batch jobs and the 3rd was the web login
    first 2 looked really bad , ran 6/min, 300K logicalread each.
    By the way this is a 3rd party app, we can not access the codes, but we may make the improvement with the init file. please advise.

  • What init parameters will help with the OBIEE performance..?

    Hi All
    By any chance does any one have info on What init parameters will help with the OBIEE performance..?
    Thanks

    fast=true ;-)
    What performance is causing you a problem? Data retrieval, general UI navigation? Its a massive area to cover. Can you be more specific?

  • PHP Help with inherited database site

    Hope someone can help with this, although I might be a bit vague. (But will be happy to post any code that might help.)
    Basically I do a few sites for a company, and everything is coming together nicely moving everything to a new reseller hosting account where everything can site. I'm basically doing some redesign and new database work for them.
    But there's one site I'm basically just trying to move over, that already has a database. I've copied the site onto the new hosting, copied the database across and created a new connection file.
    I must admit the code is all a bit more PHPO heavy than what I'm used to working with. so have run into a problem trying to figure out what data is not displaying due to queries failing. As far as I can tell the connection is working, and the queries have not changed.
    Anyway - the main page is here, where you should be able to click on the furniture images to go to the product page :
    http://www.miradatravelmedia.com/lusty/public_html/index.php
    But when you click through the product page query is failing :
    http://www.miradatravelmedia.com/lusty/public_html/products.php?category=1
    The products page is mostly PHP and looks like this :
    [PHP]<?php
    if (!@empty($_REQUEST["img"])) {
      require_once("../includes/hft_image.php");
      $img = new hft_image($_REQUEST["img"]);
      $img->resize(200,180,"-");
      $img->output_resized("");
      exit;
    $page = "products";
    include("../includes/header.php");
    include("../includes/db_open.php");
    $sql = "SELECT `id`, `name` FROM `categories` WHERE `id` = '" . $_REQUEST["category"] . "'";
    $result = mysql_query($sql) or die("Query failed : $sql at line " . __line__);
    $category = mysql_fetch_assoc($result);
    ?>
    <div id="trail"><a href="shop.php">Shop</a> &gt; Lloyd Loom <?php echo $category["name"]?></div>
      <div class="clear" id="divider1"><img src="images/spacer.gif" alt="<?php echo keyword()?>" /></div>
    <h1>Lloyd Loom <?php echo $category["name"]?></h1>
    <?php
    $sql =
      "SELECT * " .
      "FROM `products` " .
      "WHERE `category` = '" . $_REQUEST["category"] . "' " .
      "ORDER BY `order`";
    $result = mysql_query($sql) or die("Query failed : $sql at line " . __line__);
    if (mysql_num_rows($result) == 0) {
    ?>
    <p>Coming soon ...</p>
    <?php
    } else {
      $n = 0;
      while ($row = mysql_fetch_assoc($result)) {
        $n++;
    ?>
    <a href="product.php?id=<?php echo $row["id"]?>" class="product"<?php if ($n == mysql_num_rows($result)) echo " id=\"last\""?>>
    <?php
        if ($file = glob("images/products/" . $row["id"] . "_*.*")) {
    ?>
    <img src="img.php?img=<?php echo $file[0]?>&width=200&height=180" alt="<?php echo $row["code"]?>" />
    <?php
        } else {
    ?>
    <div id="no_image">No image found</div>
    <?php
    ?>
    <?php echo $row["code"]?>
    </a>
    <?php
        if (is_int($n / 4)) {
    ?>
    <div class="clear"><img src="images/spacer.gif" alt="<?php echo keyword()?>" /></div>
    <?php
    ?>
      <div class="clear" id="divider2"><img src="images/spacer.gif" alt="<?php echo keyword()?>" /></div>
    <?php
    include("../includes/footer.php");
    ?>[/PHP]
    If anyone could shed any light on what's going wrong still, that would be much appreciated.
    Thanks.

    Iain71 wrote:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''categories' WHERE 'id' = '1'' at line 1
    So it does look a bit odd with the quotes.
    Column names in a SQL query must not be in quotes. The MySQL error message tells you that the SQL syntax error is "near" the section it refers to. In other words, the error is just before that part of the query. Normally, you need to display the whole query to spot the error, but it's obvious in this particular case, because there's a quotation mark after categories, indicating that you've put the column name in quotes. Anyway, you've solved that problem by using the version I suggested.
    I still haven't managed to establish where this vat.php file is - is there any explanation for it not being visible on the original hosting server where the site is working? And could it have anything to do with the query not working?
    No, it has nothing to do with the query not working, and the reason you can't see it on the live site is because there's no error. The error message on your test site tells you exactly where to look for the problem. The file vat.php is included by header.php on line 19. Either vat.php isn't on your server, or the code on line 19 of header.php is pointing to the wrong location.

  • Help with local database

    hye...
    i have some problem with mySQLite database.i have this code
    for my application (in attachment).when you clik the load button,it
    will load a text file on the desktop directory.when you click the
    filter function it will split the text file according to an array
    that i have specified.
    the text file consist of some data like this:66.249.71.54 - -
    [10/Oct/2008:03:31:01 +0800] "GET
    /mod.php?_call=Kalendar&day=2014-05-09 HTTP/1.1" 200
    66.249.71.54 - - [10/Oct/2008:03:31:57 +0800] "GET
    /KERIAN%20ENG/Towns/Main_Town.htm HTTP/1.0" 404
    i have created a database on my desktop using one tool that i
    have downloaded and point to that database.
    the probllem now is,i want to store the "200" only strings
    into the database.strings other than "200" will be not stored in
    the database.can u show me how to do this..
    i hope you can understand what i want...
    thanks for your time..

    ty for your reply
    my boss was dead set to make it work so we get down to it.. he says that this particular conf was now soppurted by oracle (dont think so), but well we modified the realese and now we have the vm server in the box with the vm manager and cam working..
    now i what to discover the server and throws this error
    OVMAPI_4010E Attempt to send command: discover_hardware to server: ovm1.grtn.cfe.gob.mx failed. OVMAPI_4004E Sync command failed on server: 10.0.2.210. Command: discover_hardware, Server error: org.apache.xmlrpc.XmlRpcException: <type 'exceptions.Exception'>:ERROR 0 @ 730 parse_multipath_conf_file() ERROR: /etc/multipath.conf could not be read !?! ERROR 1 @ 372 fill_blkDevInfo_scsi_device() blkdev 'dm-0' bad devLink [../devices/virtual] !?! Runtime errors occured [2] [Tue Jan 20 05:58:32 CST 2015] [Tue Jan 20 05:58:32 CST 2015]
    this is in the vm manager 3.3.1 console
    try to check the etc/multipath.conf and its not there and i have no idea why..

  • Help with a database view/table

    Hi,
    I have seperate oracle9i database on one machine (UNIX).
    Myview view has poor performance in dbtest, but it has good performance in dbdev.
    Both DBs are having relatively similar configuration.
    When I set the autotrace on I realized the indexes are in place on both databases.
    But it takes 2 times more to query dbtest than dbdev.
    Here is the difference when I query both views and the autotrace is on:
    SELECT id from Myview; on DBTEST:
    Statistics
    105 recursive calls
    0 db block gets
    83147 consistent gets
    456 physical reads
    0 redo size
    2777 bytes sent via SQL*Net to client
    400 bytes received via SQL*Net from client
    10 SQL*Net roundtrips to/from client
    4 sorts (memory)
    0 sorts (disk)
    122 rows processed
    SELECT id from Myview; on DBDEV:
    Statistics
    105 recursive calls
    0 db block gets
    42537 consistent gets
    267 physical reads
    0 redo size
    3601 bytes sent via SQL*Net to client
    414 bytes received via SQL*Net from client
    12 SQL*Net roundtrips to/from client
    4 sorts (memory)
    0 sorts (disk)
    157 rows processed
    How can I identify where the problem is? Why "consistent gets" and "physical reads" parameters are about 2 times in DBTEST. I believe this is why I have poor performance in DBTEST.
    Could someone give me a clue on how to idetify the issue?
    Thanks

    "I have seperate oracle9i database on one machine (UNIX)."Correction: "I have two seperate oracle9i database installed on one machine (UNIX).
    Can anyone help me with this? If you need more infor let me know.
    Thanks in advance.

  • Help with iTunes database and Time Machine after Lion clean install

    I did a clean install of OS X Lion and think I've given myself problems with my Snow Leopard Time Machine backup and with my iTunes Library database files.
    My iMac (2007) had become very sluggish so I opted for a clean install.  Before the install of Lion my Snow Leopard 10.6.8 internal 1TB HD was at about  600GBs.  I was using Time Machine to backup to an external 1TB drive.  I had my iTunes 10.?  library on the same drive.
    For the Lion install I partitioned my internal 1TB HD into two partitions - a 250GB Lion boot partition and the rest for Lion data files.
    Now I  have two problems - 1.  I can't  work out how to re-connect my Time Machine backups, since they were related to a much bigger original drive, and 2.  I can't seem to find my iTunes database files.
    I also don't want to restore any application files at this stage, as I'm determined to do a fresh install of only the applications I need as I go along, and hopefully  avoid the issues of sluggishness I had with Snow Leopard.
    I have all my iTunes files in their pre-Lion external HD folder, but that folder does not seem to  have the iTunes Library.XML or iTunes Library files.  I didn't delete them so I'm hoping they were in my iTunes folder on my SL boot drive.  But that drive was deleted during the install, so I'll be depending on Time Machine to restore the database.
    Can anyone suggest a way to deal with Time Machine for my Lion install, and a way to restore my iTunes database?  I'd like to keep as much of the Snow Leopard Time Machine data as I can, while continuing to do Time Machine backups from my Lion installation.
    Anyone know where iTunes stores those database files, if not in the external drive iTunes folder? Spotlight search doesn't find the files, but is there a way to search my old Time Machine backups without having the Time Machine backups folder re-connected in Lion?
    Thanks.

    My iTunes folder is organised like this if it helps:
    And iTunes uses them from the Prefrences like this:
    Regards,
    Colin R.

  • Button help with asp database in dreamweaver

    Hey i have a page that has an iframe inside it with 2 menu's
    side by side with buttons in between to move items from one menu to
    another and i have them set with javascript to move back and forth
    works great only problem is its also supposed to update to the
    database as well and i used the update command feature in
    dreamwaver and i set it up but its still not working if i post my
    code can someone help me?

    If you're good with Flash and Action Script you could build a custom player.  Otherwise, pick-one from the links below. Some are free, some are not.
    Coffee Cup Video Player -- (supports playlists)
    http://www.coffeecup.com/video-player/
    Video LightBox --
    http://videolightbox.com/
    WWD Player -- supports playlists
    http://www.woosterwebdesign.com/flvplayer/
    Wimpy Rave -- supports playlists
    http://www.wimpyplayer.com/index.html
    JW Player --
    http://www.longtailvideo.com/
    FlowPlayer --
    http://flowplayer.org/
    YouTube --
    http://code.google.com/apis/youtube/getting_started.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Help with a database template - Desktop Product Inventory Template

    Hello Developers,
    I'm trying to develop a database to track purchase orders, supply levels, and supplies issued (with reports). I've been working with the MS Access template called "Desktop Product Inventory", but it has more functionality than I need (i.e. shipping,
    sales, invoicing). This template is almost exactly what I'm looking for.
    I've tried removing the fields I don't need, but I encounter errors everytime. Frustrated, I created a new database by studying and copying the format of the template. I have the general structure of the database setup with tabs, but I'm completly lost when
    it comes to formatting/coding the database. I'm not sure what needs to be done in order to recreate the functionality from the original template.   
    Unfortunately, I must admit that Access is my least favorite and used MS application.
    So, my questions are:
    1.) Does anyone know of an "effective" way to edit the Desktop Product Inventory template and maintain functionality?
    OR
    2.) Would someone mind taking a look at my database and giving me feedback? It's essentially just the layout  and what I want the database to show.
    Any and all help is appreciated, thanks for reading!

    The Microsoft template apps have a lot in them - which is why they are particularly difficult to modify by the novice - so don't feel bad. 
    A database that does  Inventory, shipping, sales, invoicing - is going to be complicated inherently, and is really a matter of development familiarity and experience.

  • Help with searching database

    good morning.... could someone please help me with some coding for the following program... i need a text box that i can enter a customers name into that then will search the database and display the appropriate record.. i have written the following code for displaying the whole database but am having trouble with the text box and the searching of the database if anyone could point me to some helpfull links or anything else that would be great.. thanks..
    CODE SO FAR
    import java.sql.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class customer extends JFrame {
    private Connection connection;
    private JTable table;
    public customer()
    String url = "jdbc:odbc:Info";
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    connection = DriverManager.getConnection(url);
    catch (ClassNotFoundException cnfex){
    System.err.println(
    "Failed to load JDBC/ODBC driver.");
    cnfex.printStackTrace();
    System.exit(1);
    catch(SQLException sqlex){
    System.err.println("Unable to connect");
    sqlex.printStackTrace();
    getTable();
    setSize(450,200);
    show();
    private void getTable()
    Statement statement;
    ResultSet resultSet;
    try{
    String query = "Select * from custDetails";
    statement = connection.createStatement();
    resultSet = statement.executeQuery(query);
    displayresultSet(resultSet);
    statement.close();
    catch (SQLException sqlex){
    sqlex.printStackTrace();
    private void displayresultSet(ResultSet rs)
    throws SQLException
    boolean moreRecords = rs.next();
    if(!moreRecords){
    JOptionPane.showMessageDialog(this,
    "ResultSet contained no records");
    setTitle("No records to diaplay");
    return;
    setTitle("Customer Details Table from Customer");
    Vector columnHeads = new Vector();
    Vector rows = new Vector();
    try{
    ResultSetMetaData rsmd = rs.getMetaData();
    for(int i=1; i<=rsmd.getColumnCount();++i)
    columnHeads.addElement(rsmd.getColumnName(1));
    do{
    rows.addElement(getNextRow(rs, rsmd));
    }while (rs.next());
    table = new JTable(rows, columnHeads);
    JScrollPane scroller = new JScrollPane(table);
    getContentPane().add(
    scroller, BorderLayout.CENTER);
    validate();
    catch (SQLException sqlex){
    sqlex.printStackTrace();
    private Vector getNextRow(ResultSet rs,
    ResultSetMetaData rsmd)throws SQLException
    Vector currentRow = new Vector();
    for (int i=1; i<rsmd.getColumnCount();++i)
    switch(rsmd.getColumnType(i)){
    case Types.VARCHAR:
    currentRow.addElement(rs.getString(i));
    break;
    case Types.INTEGER:
    currentRow.addElement(
    new Long(rs.getLong(i)));
    break;
    default:
    System.out.println("Type was:"+
    rsmd.getColumnTypeName(i));
    return currentRow;
    public void shutDown()
    try{
    connection.close();
    catch (SQLException sqlex){
    System.err.println("Unable to disconnect");
    sqlex.printStackTrace();
    public static void main(String args[])
    final customer app = new customer();
    app.addWindowListener(
    new WindowAdapter(){
    public void windowClosing(WindowEvent e)
    app.shutDown();
    System.exit(0);
    }

    what is it that you actually want to do and what errors are u getting.
    cheers

  • Help with a database link?

    Hiya
    In our environment we have two servers for live and two for test. LIVE01 has db links to all other servers and they all work fine. I cannot get the db links up on test and I'm not sure why..
    Both systems have global_names set FALSE so i can name the link anything I want. Both systems have identical TNSNAMES files and no SQLNET.ORA
    The test systems have database names that do not have a suffice (it's the only significant difference I can find)
    LIVE01 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.1)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = LIVE01.MYDOMAIN.COM)
    LIVE02 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.1)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = LIVE02.MYDOMAIN.COM)
    TEST01 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.2)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = TEST01)
    TEST02 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.2)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = TEST02)
      )I've connected via RDP to each server, and I can tnsping and sqlplus user/pass@tnsname successfully on both servers, to all instances
    The command I use in sqlplus to create the link on LIVE01:
    CREATE PUBLIC DATABASE LINK live2dblink CONNECT TO user IDENTIFIED BY pass USING 'LIVE02';
    CREATE PUBLIC DATABASE LINK test1dblink CONNECT TO user IDENTIFIED BY pass USING 'TEST01';
    CREATE PUBLIC DATABASE LINK test2dblink CONNECT TO user IDENTIFIED BY pass USING 'TEST02';
    SELECT * FROM ALL_DB_LINKS
    PUBLIC     live2dblink.DOMAIN.COM     USER     LIVE02     2011-04-10 01:26:23
    PUBLIC     test1dblink.DOMAIN.COM     USER     TEST01     2011-04-10 01:26:23
    PUBLIC     test2dblink.DOMAIN.COM     USER     TEST02     2011-04-10 01:26:23SELECT * FROM DUAL@test2dblink ;
    DUMMY
    XBut if I repeat the relevant parts of the setup on test01 to link to the other 3 databases:
    CREATE PUBLIC DATABASE LINK live1dblink CONNECT TO user IDENTIFIED BY pass USING 'LIVE01';
    CREATE PUBLIC DATABASE LINK live2dblink CONNECT TO user IDENTIFIED BY pass USING 'LIVE02';
    CREATE PUBLIC DATABASE LINK test2dblink CONNECT TO user IDENTIFIED BY pass USING 'TEST02';
    SELECT * FROM ALL_DB_LINKS
    PUBLIC     live1dblink.DOMAIN.COM     USER     LIVE01     2011-04-10 01:26:23
    PUBLIC     live2dblink .DOMAIN.COM     USER     LIVE02     2011-04-10 01:26:23
    PUBLIC     test2dblink.DOMAIN.COM     USER     TEST02     2011-04-10 01:26:23SELECT * FROM dual@test2dblink
    error: "tns could not resolve service name"
    I've run out of other things to check - it's not the "global names must match" issue because that's set false and verified with
    SELECT name, value
    FROM gv$parameter
    WHERE (name LIKE '%link%')
    OR (name IN ('global_names', 'dblink_encrypt_login'));
    Yep, it's false..
    I've seen other errors during my fiddling with various parameters, including "end of file on communication channel" when select * from dual@db_link.. as though the test instance kicked the connection from live but for the past half hour, this "cannot resolve" has been the persistent one..

    Try using the full connect string in the database link like this:
    CREATE PUBLIC DATABASE LINK test2dblink CONNECT TO user IDENTIFIED BY pass
    USING '(description=(address=(protocol=tcp)(port=1521)(host=10.0.0.2))(connect_data=(sid=TEST02)))';

  • Help with dynamic database

    I'm still stuck on learning database-driven development. I
    plan to take the Lynda.com free lessons... but until then, if
    anyone can help me, I'd be very appreciative:
    Here are today's questions:
    My manager (VP eng./sales/mktg) wants to know WHY I think
    Dreamweaver is better for developing database-driven applicaitons
    than C# in an asp.net environment. I believe DW is better at
    supporting CSS and enabling an user-friendly design for the UI, but
    I don't know whether C# can do all the same things... (C# is a
    development tool for the asp.net environment).
    Can you help me identify why DW is better than C# for either
    the entire dynamic site development OR just the UI?
    Also I need to learn how to attach my sql queries (already
    written) to an html page created in dreamweaver, We have an IIS
    webserver. Here's how I see the process:
    a) Kick off the query from a DW html page
    b) access the DB through the web server (IIS?)
    c) recieve the results back from the database
    d) render the results on a DW page.
    The sql is going to an oracle DB.
    I can access oracle and run the query (using SQL plus) from
    my PC, so the only question is how to I hook it up to DW...
    Anything you can say to shed light on any of these would be
    so helpful!
    THanks,
    Jane

    Hi Jane,
    You must remember DW is a tool for creating websites. You
    could use C#
    for your website and do the coding of C# in DW. DW is not a
    scripting
    language as PHP, ASP and C# are.
    As for the query, do you know what scripting language you
    would be using
    to connect to the Oracle DB (ASP, PHP, etc.)? Once you let us
    know what
    you are using it will be easy to give an example.
    Cheers.
    Chris
    basketcasecafe1 wrote:
    > I'm still stuck on learning database-driven development.
    I plan to take the
    > Lynda.com free lessons... but until then, if anyone can
    help me, I'd be very
    > appreciative:
    >
    > Here are today's questions:
    >
    > My manager (VP eng./sales/mktg) wants to know WHY I
    think Dreamweaver is
    > better for developing database-driven applicaitons than
    C# in an asp.net
    > environment. I believe DW is better at supporting CSS
    and enabling an
    > user-friendly design for the UI, but I don't know
    whether C# can do all the
    > same things... (C# is a development tool for the asp.net
    environment).
    >
    > Can you help me identify why DW is better than C# for
    either the entire
    > dynamic site development OR just the UI?
    >
    > Also I need to learn how to attach my sql queries
    (already written) to an html
    > page created in dreamweaver, We have an IIS webserver.
    Here's how I see the
    > process:
    > a) Kick off the query from a DW html page
    > b) access the DB through the web server (IIS?)
    > c) recieve the results back from the database
    > d) render the results on a DW page.
    >
    > The sql is going to an oracle DB.
    > I can access oracle and run the query (using SQL plus)
    from my PC, so the
    > only question is how to I hook it up to DW...
    >
    >
    > Anything you can say to shed light on any of these would
    be so helpful!
    > THanks,
    > Jane
    >
    >
    >
    >
    >

  • Please help with Configuring Database Security Store

    Here's the error i get....
    Any ideas?
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Info: Data source is: opss-DBDS
    WLS ManagedService is not up running. Fall back to use system properties for con
    figuration.
    Info: DB JDBC driver: oracle.jdbc.OracleDriver
    Info: DB JDBC URL: jdbc:oracle:thin:@localhost:1521/idgov
    Connected:oracle.jdbc.driver.T4CConnection@21bce8d
    Disconnect:oracle.jdbc.driver.T4CConnection@21bce8d
    INFO: Found persistence provider "org.eclipse.persistence.jpa.PersistenceProvide
    r". OpenJPA will not be used.
    [oracle.security.jps.internal.config.db.DbCredStoreServiceConfigurator]  checkSe
    rviceSetup - done
    Aug 13, 2013 8:47:47 PM oracle.security.jps.internal.config.ldap.LdapCredStoreSe
    rviceConfigurator schemaCompatibleHandler
    INFO: Credential store schema upgrade not required. Store Schema version 11.1.1.
    6.0 is compatible to the seed schema version 11.1.1.4.0
    [oracle.security.jps.internal.config.db.DbCredStoreServiceConfigurator]  checkSe
    rviceSchema - Store schema has been seeded completely
    [oracle.security.jps.internal.config.db.DbCredStoreServiceConfigurator]  updateS
    erviceConfiguration - done
    [oracle.security.jps.internal.config.db.DbCredStoreServiceConfigurator]  seedSch
    emaAndCreateDIT - failed JPS-10000: There was an internal error in the policy st
    ore.
    Exception in thread "Main Thread" java.lang.RuntimeException: JPS-10000: There w
    as an internal error in the policy store.
    oracle.security.jps.internal.api.common.JpsCredentialStoreLdapNodeCreationExcept
    ion: JPS-10000: There was an internal error in the policy store.
            at oracle.security.jps.internal.common.rdbms.util.JpsDbBootstrapImpl.cre
    ateJpsCredentailStoreInLdap(JpsDbBootstrapImpl.java:303)
            at oracle.security.jps.internal.config.ldap.LdapCredStoreServiceConfigur
    ator.addServiceStoreBase(LdapCredStoreServiceConfigurator.java:114)
            at oracle.security.jps.internal.config.ldap.LdapCredStoreServiceConfigur
    ator.seedSchemaAndCreateDIT(LdapCredStoreServiceConfigurator.java:142)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.runConfiguration(LdapServiceEnabler.java:448)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.configureCredentialStoreService(LdapServiceEnabler.java:233)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.configureSecurityServices(LdapServiceEnabler.java:171)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.main(LdapServiceEnabler.java:129)
    Caused by: oracle.security.jps.service.policystore.PolicyStoreConnectivityExcept
    ion: JPS-10000: There was an internal error in the policy store.
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.handl
    eRollbackException(JpsDBDataManager.java:1345)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.inter
    nalCommitTxn(JpsDBDataManager.java:1508)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.commi
    tTransactionInDoAs(JpsDBDataManager.java:1475)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.commi
    tTransaction(JpsDBDataManager.java:1466)
            at oracle.security.jps.internal.common.rdbms.util.JpsDbBootstrapImpl.cre
    ateJpsCredentailStoreInLdap(JpsDbBootstrapImpl.java:296)
            at oracle.security.jps.internal.config.ldap.LdapCredStoreServiceConfigur
    ator.addServiceStoreBase(LdapCredStoreServiceConfigurator.java:113)
            at oracle.security.jps.internal.config.ldap.LdapCredStoreServiceConfigur
    ator.seedSchemaAndCreateDIT(LdapCredStoreServiceConfigurator.java:142)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.runConfiguration(LdapServiceEnabler.java:447)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.configureCredentialStoreService(LdapServiceEnabler.java:232)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.configureSecurityServices(LdapServiceEnabler.java:170)
            ... 1 more
    Caused by: javax.persistence.RollbackException: Exception [EclipseLink-4002] (Ec
    lipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.ex
    ceptions.DatabaseException
    Internal Exception: java.sql.SQLIntegrityConstraintViolationException: ORA-00001
    : unique constraint (DEV20_OPSS.IDX_JPS_RDN_PDN) violated
    Error Code: 1
    Call: INSERT INTO JPS_DN (ENTRYID, PARENTDN, RDN) VALUES (?, ?, ?)
            bind => [3 parameters bound]
    Query: InsertObjectQuery(EntryId=11437:rdn=cn=credentialstore:pdn=cn=jpsroot,cn=
    jpscontext,cn=iam,: JpsStore Entry={[EntryId = 11437:Attribute RowId = 45348
    dn = cn=CredentialStore,cn=IAM,cn=JPSContext,cn=jpsroot, EntryId = 11437:Attribu
    te RowId = 45349
    objectclass = top, EntryId = 11437:Attribute RowId = 45350
    objectclass = orclContainer, EntryId = 11437:Attribute RowId = 45351
    cn = CredentialStore]})
            at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImp
    l.commitInternal(EntityTransactionImpl.java:102)
            at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImp
    l.commit(EntityTransactionImpl.java:63)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager$8.run
    (JpsDBDataManager.java:1488)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.inter
    nalCommitTxn(JpsDBDataManager.java:1492)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.commi
    tTransactionInDoAs(JpsDBDataManager.java:1476)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.commi
    tTransaction(JpsDBDataManager.java:1466)
            at oracle.security.jps.internal.common.rdbms.util.JpsDbBootstrapImpl.cre
    ateJpsCredentailStoreInLdap(JpsDbBootstrapImpl.java:297)
            at oracle.security.jps.internal.config.ldap.LdapCredStoreServiceConfigur
    ator.addServiceStoreBase(LdapCredStoreServiceConfigurator.java:114)
            at oracle.security.jps.internal.config.ldap.LdapCredStoreServiceConfigur
    ator.seedSchemaAndCreateDIT(LdapCredStoreServiceConfigurator.java:142)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.runConfiguration(LdapServiceEnabler.java:448)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.configureCredentialStoreService(LdapServiceEnabler.java:233)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.configureSecurityServices(LdapServiceEnabler.java:171)
            ... 1 more
    Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.1.v2
    0111018-r10243): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLIntegrityConstraintViolationException: ORA-00001
    : unique constraint (DEV20_OPSS.IDX_JPS_RDN_PDN) violated
    Error Code: 1
    Call: INSERT INTO JPS_DN (ENTRYID, PARENTDN, RDN) VALUES (?, ?, ?)
            bind => [3 parameters bound]
    Query: InsertObjectQuery(EntryId=11437:rdn=cn=credentialstore:pdn=cn=jpsroot,cn=
    jpscontext,cn=iam,: JpsStore Entry={[EntryId = 11437:Attribute RowId = 45348
    dn = cn=CredentialStore,cn=IAM,cn=JPSContext,cn=jpsroot, EntryId = 11437:Attribu
    te RowId = 45349
    objectclass = top, EntryId = 11437:Attribute RowId = 45350
    objectclass = orclContainer, EntryId = 11437:Attribute RowId = 45351
    cn = CredentialStore]})
            at org.eclipse.persistence.exceptions.DatabaseException.sqlException(Dat
    abaseException.java:324)
            at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.exec
    uteDirectNoSelect(DatabaseAccessor.java:840)
            at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.exec
    uteNoSelect(DatabaseAccessor.java:906)
            at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basi
    cExecuteCall(DatabaseAccessor.java:592)
            at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.exec
    uteCall(DatabaseAccessor.java:535)
            at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecut
    eCall(AbstractSession.java:1717)
            at org.eclipse.persistence.sessions.server.ClientSession.executeCall(Cli
    entSession.java:253)
            at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism
    .executeCall(DatasourceCallQueryMechanism.java:207)
            at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism
    .executeCall(DatasourceCallQueryMechanism.java:193)
            at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism
    .insertObject(DatasourceCallQueryMechanism.java:342)
            at org.eclipse.persistence.internal.queries.StatementQueryMechanism.inse
    rtObject(StatementQueryMechanism.java:162)
            at org.eclipse.persistence.internal.queries.StatementQueryMechanism.inse
    rtObject(StatementQueryMechanism.java:177)
            at org.eclipse.persistence.internal.queries.DatabaseQueryMechanism.inser
    tObjectForWrite(DatabaseQueryMechanism.java:472)
            at org.eclipse.persistence.queries.InsertObjectQuery.executeCommit(Inser
    tObjectQuery.java:80)
            at org.eclipse.persistence.queries.InsertObjectQuery.executeCommitWithCh
    angeSet(InsertObjectQuery.java:90)
            at org.eclipse.persistence.internal.queries.DatabaseQueryMechanism.execu
    teWriteWithChangeSet(DatabaseQueryMechanism.java:287)
            at org.eclipse.persistence.queries.WriteObjectQuery.executeDatabaseQuery
    (WriteObjectQuery.java:58)
            at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.j
    ava:844)
            at org.eclipse.persistence.queries.DatabaseQuery.executeInUnitOfWork(Dat
    abaseQuery.java:743)
            at org.eclipse.persistence.queries.ObjectLevelModifyQuery.executeInUnitO
    fWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:108)
            at org.eclipse.persistence.queries.ObjectLevelModifyQuery.executeInUnitO
    fWork(ObjectLevelModifyQuery.java:85)
            at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExec
    uteQuery(UnitOfWorkImpl.java:2871)
            at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuer
    y(AbstractSession.java:1516)
            at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuer
    y(AbstractSession.java:1498)
            at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuer
    y(AbstractSession.java:1449)
            at org.eclipse.persistence.internal.sessions.CommitManager.commitNewObje
    ctsForClassWithChangeSet(CommitManager.java:224)
            at org.eclipse.persistence.internal.sessions.CommitManager.commitAllObje
    ctsForClassWithChangeSet(CommitManager.java:191)
            at org.eclipse.persistence.internal.sessions.CommitManager.commitAllObje
    ctsWithChangeSet(CommitManager.java:136)
            at org.eclipse.persistence.internal.sessions.AbstractSession.writeAllObj
    ectsWithChangeSet(AbstractSession.java:3799)
            at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToData
    base(UnitOfWorkImpl.java:1415)
            at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.c
    ommitToDatabase(RepeatableWriteUnitOfWork.java:636)
            at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToData
    baseWithChangeSet(UnitOfWorkImpl.java:1505)
            at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.c
    ommitRootUnitOfWork(RepeatableWriteUnitOfWork.java:267)
            at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndRes
    ume(UnitOfWorkImpl.java:1143)
            at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImp
    l.commitInternal(EntityTransactionImpl.java:84)
            at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImp
    l.commit(EntityTransactionImpl.java:63)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager$8.run
    (JpsDBDataManager.java:1487)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.inter
    nalCommitTxn(JpsDBDataManager.java:1492)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.commi
    tTransactionInDoAs(JpsDBDataManager.java:1475)
            at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.commi
    tTransaction(JpsDBDataManager.java:1466)
            at oracle.security.jps.internal.common.rdbms.util.JpsDbBootstrapImpl.cre
    ateJpsCredentailStoreInLdap(JpsDbBootstrapImpl.java:296)
            at oracle.security.jps.internal.config.ldap.LdapCredStoreServiceConfigur
    ator.addServiceStoreBase(LdapCredStoreServiceConfigurator.java:113)
            at oracle.security.jps.internal.config.ldap.LdapCredStoreServiceConfigur
    ator.seedSchemaAndCreateDIT(LdapCredStoreServiceConfigurator.java:142)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.runConfiguration(LdapServiceEnabler.java:447)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.configureCredentialStoreService(LdapServiceEnabler.java:232)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.configureSecurityServices(LdapServiceEnabler.java:170)
            ... 1 more
    Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique
    constraint (DEV20_OPSS.IDX_JPS_RDN_PDN) violated
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
            at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
            at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)
            at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
            at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
            at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.
    java:207)
            at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedSta
    tement.java:1044)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1329)
            at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
    aredStatement.java:3593)
            at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
    edStatement.java:3674)
            at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(Oracl
    ePreparedStatementWrapper.java:1354)
            at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.exec
    uteDirectNoSelect(DatabaseAccessor.java:831)
            ... 45 more
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.throwExceptionWithStackTrace(LdapServiceEnabler.java:145)
            at oracle.security.jps.internal.tools.configuration.ldap.LdapServiceEnab
    ler.main(LdapServiceEnabler.java:137)
    Error: Failed to initialize security store.
    Error: Create operation has failed.
    C:\Oracle\IDGMiddleware\oracle_common\common\bin>

    Try to configure the policy store with different ID (highlighted in the below command)
    ./wlst.sh <Oracle_IDM1_Home>/common/tools/configureSecurityStore.py -d <WLS_Domain>/OAM_domain -c IAM -p <Password> -m create
    OR
    Reinstall the RCU and try to configure the policy store.

  • Help with relational database model

    Hi everyone,
    How will a database model look like if you have one program that writes to the database and one program that reads from it. The database tables consist of customer orders.
    Regards
    Ardalan

    Database model itself is unchanged, as far as I can see. The tables don't know how they're being used.
    If you're saying that you have two apps, one that does mostly reads and another that does reads AND writes, then it's a more interesting question.
    If you have a table that's mostly READs, you might want to create indexes that speed up queries.
    But indexes can slow down WRITEs, because every time you add a new record the index has to be modified, too. More work for the RDBMS.
    So maybe you're asking whether or not you should create a bunch of indexes for a table? Or have two tables, one for reading and another for read/write, with some kind of procedure that might update the read table from the write values on a regular schedule but off-line, like synchronizing a data cube?
    Hard to tell from your OP, but it could be an interesting question. - MOD

  • Help with creating database

    I have installed oracle8iR2 on a mandrake 7.1, but when I create a datebase, it tell me ora-03114 using dbassitant, when I use svrmgrl to create the database, it tell me, ora-00445, that PMON not start up. Who can help me? (I have successfully installed one one a laptop.)
    null

    First, I followed the posting from http://www.arsdigita.com/ad-training/acs-install/oracle
    Next, I noticed that the /etc directory needed to be included in the PATH statement. Also, The entire installation went much better when done under Gnome GUI. Best of Luck!
    Tim

Maybe you are looking for

  • Why is my Firefox 4.0.1 crashing and deleting my browsing history and bookmarks?

    This is the third time in the past month and a half that my Firefox 4.0.1 has crashed and deleted both my browsing history and my recent bookmarks. It seems to delete up to about a week's worth of information. In the past, my Firefox browser would cr

  • Service to Worker Pattern

    Hi all I want to ask you an explanation about Service To Worker Pattern Looking at http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceToWorker.html , we can see the example that uses this pattern, I want to know if we can invoke directly

  • Bursting - Delivery Data Source

    Hi, I have created a template and mapped the appropriate fields in the source data. I would like to enable bursting split by customer and delivery by vendornum. I am using the following SQL select distinct VENDORNUM KEY, BROKERS PDF TEMPLATE TEMPLATE

  • R12 Oracle Diagnostics Zip files

    Sorry if this has been asked before but my understanding is Oracle Support's preference when uploading multiple files to an SR is to zip them into a single zip file. However when you are asked by Support to run multiple R12 Oracle Diagnostics each re

  • You don't have permission to access / on this server.

    Hello. I was looking all around internet (seems like that..) and can't find right decision yet. I try to change permissions  and edit httpd.conf (add ServerName string corresponding with my domain name), but, unfortunately, I has no way how to solve