Help with registering Database Activity

Hello!
Well I need help I have an issue, ammm in my portal there are many users but each one update a module, and now i'm in need to publish the last time each module has been updated... and I wonder if I can do that? and if it's possible+... how can i do it?
thanks in advance for you help and guidence
^_^
aTTe
Blume

Have you checked the Oracle AS Portal Activity Logs ?
For Portal Applications Components, the following events can be logged :
Create, Edit, Delete, Execute (except for Reports, Charts, and Hierarchies), Copy, Export, Rename, Generate, Access Control, Manage, Insert, Update, Save
[7.4|http://download.oracle.com/docs/cd/B14099_19/portal.1014/b19305/cg_monit.htm#i1040966] Viewing OracleAS Portal Activity Reports
Oracle® Application Server Portal Configuration Guide
10g Release 2 (10.1.4)
B19305-03

Similar Messages

  • [RMAN] problem with registering database

    Hello, we have RAC environment on two nodes. We created rman catalog database and then registered our database with REGISTER DATABASE command. After that we issued command SHOW ALL and encountered an error:
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 21 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    could not read file header for datafile 74 error reason 4
    could not read file header for datafile 74 error reason 4
    could not read file header for datafile 74 error reason 4
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/snapcf_easy1.f'; # default
    this is new catalog database, which is to replace the old one
    how to deal with this problem ?

    So you are following up on datafile 74 in this other thread :
    problem with datafile recovery
    Hemant K Chitale

  • 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..

  • Hoping for a little help with registering and hosting questions.

    i was hoping i could get some information from some of you
    that have personal experience with registering your site and
    picking a hosting provider.
    im wondering what the difference is between say....Dot5
    hosting at 5.00 a month and .. network solutions at 29.99 a month?
    my local provider here in sacramento wants 30 a month as
    well......299.oo a yr.
    should I go with a local provider? or go with ... say GoDaddy
    or some other company?
    also, registering. Im about to register my site name.
    however, some companies include it in the "packages" they offer.
    should I register it myself or let the hosting company I choose do
    it?
    sorry for the newb questions....but I cant find any good info
    on this and I was hoping maybe some of you that have already done
    this to chime in.
    thanks in advance.

    If you want almost all of the below features for about $9.00
    a month go to
    Gate.com and pick your package. I use them for several web
    sites and have
    never been dissatisfied with their services or features.
    They will register your domain and I've done it both ways,
    but have never
    had problems with them but it does make a lot of sense to
    register it
    yourself and keep full ownership....
    "Sonjay" <[email protected]> wrote in message
    news:C19368C5.A15FD%[email protected]...
    > There's probably not a dime's worth of difference
    between the Dot5 hosting
    > and the NetSol hosting, but I wouldn't recommend either
    of those companies
    > for hosting.
    >
    > $30/month seems high unless you have very specific needs
    -- there's plenty
    > of good hosting around for $8 or $10 a month. The thing
    you need to do is
    > decide what your requirements are: php? asp? MySQL?
    Access? dot.net?
    > E-mail?
    > Telnet or SSH access? Do you need/want a control panel
    that makes it easy
    > for you set up your own e-mail accounts, password
    protect directories, and
    > that sort of thing, or will basic FTP access be all you
    need? Do you want
    > a
    > statistics package included with your hosting? Do you
    need to run more
    > than
    > one domain under the same account? If all of the above
    makes you shake
    > your
    > head and say "I don't need any of that," then you can
    probably manage just
    > fine with any of the $5-$10 month basic packages, with a
    reputable host.
    >
    > Whatever you do, register your domain separately from
    your hosting, and
    > only
    > use an ICANN-accredited registrar, none of those
    resellers that tend to
    > disappear and/or register people's domains in their own
    name. I have
    > nothing
    > good to say about NetSol as a registrar, going back to
    the years when they
    > were the only game in town, and I will never use them
    again, but any other
    > ICANN-accredited registrar should do you just fine.
    >
    > --
    > Sonjay
    >
    > On 11/29/06 3:51 PM, "Progressive_Learning" wrote:
    >
    >>
    >>
    >> i was hoping i could get some information from some
    of you that have
    >> personal
    >> experience with registering your site and picking a
    hosting provider.
    >>
    >> im wondering what the difference is between
    say....Dot5 hosting at 5.00 a
    >> month and .. network solutions at 29.99 a month?
    >>
    >> my local provider here in sacramento wants 30 a
    month as well......299.oo
    >> a
    >> yr.
    >>
    >> should I go with a local provider? or go with ...
    say GoDaddy or some
    >> other
    >> company?
    >>
    >> also, registering. Im about to register my site
    name. however, some
    >> companies include it in the "packages" they offer.
    should I register it
    >> myself
    >> or let the hosting company I choose do it?
    >>
    >> sorry for the newb questions....but I cant find any
    good info on this and
    >> I
    >> was hoping maybe some of you that have already done
    this to chime in.
    >>
    >> thanks in advance.
    >>
    >
    >

  • Help with registering VB ActiveX EXE

    I have an ActiveX EXE that I've compiled and used on 2 of the 3 TS 3.1 systems here. We updated all the files from SourceSafe to pull in all the changes, on the 3rd system and found that the "TestListForm.EXE" wasn't registered on that system (WinXP). I tried the "regsvr32 TestListForm.exe" but XP said that it wasn't a "DLL or OCX" and ignored it. I also made sure that I pointed to the correct file in the Active-X step that calls the file within TestStand.
    It wasn't until I recompiled the EXE on that computer (within VB) that it worked correctly.
    Is there another way that the ActiveX EXE files need to be registered into the XP system?
    There are a few more systems that we will eventually need to install this ActiveX EXE on that won't have VB.
    Mike

    To register an ActiveX exe, call the exe from the command line with the commandline parameter /RegServer.
    For example:
    MyServer.exe /RegServer
    Hope this helps,
    -Doug

  • 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 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 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.

  • Needing help with Too Many Activations

    I have an Aluratek LIBRE eReader and am trying to solve an ongoing problem.  Last week I checked out a book from my local library and tried transferring it onto my reader.  When I attempted the transfer, I received an error saying No Permission to Copy Document.  After that, I opened Case #0181671508 to try and get the error fixed.  There was an email sent back to me saying I needed to get in touch with Aluratek.  So I called Aluratek and was told that I needed a Firmware update.  I ended up getting that completed but still got the same error.  After that, I uninstalled ADE and reset my reader in the hopes that starting from the beginning would help.  After reinstalling ADE and hooking up my reader, I got a new error:  E_ACT_TOO_MANY_ACTIVATIONS.  Sent in an update to my case and was told again that I needed to get with Aluratek and update the Firmware.  Please help me in figuring out what actually needs to be done so I can get to the point of transferring books onto my reader and actually being able to use it.

    You need to ask Adobe to reset all your activations, then reactivate devices you still need.
    Unfortuately, Adobe DRM does not have proper support site to allow you to view and change your device activations.
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html and try live chat.

  • Help with registering multiple XML versions with Oracle 9i

    Hello,
    I have a fundamental question. Probably someone had been in similar situation and thought of the best way to handle.
    Our product has about 15 versions that we need to support.
    Each version publishes its 'xmlschema' and is slightly different from the previous version.
    Now if I register each schema version with oracle9i it will auto-create tables for each version (even for xml elements/attributes that are same across different versions).
    2 options that we thought of so far to handle this is
    -Combine all 15 versions schema's into 1 super-set schema and register with oracle db. Fields/elements, a version does not use will be empty
    -Use XML 'extensions' in various xml schema, such that each version in 'extended' from the previous one and keeps on adding its additions attributes/elements. My question is then if I register these 15 'extended' schemas with oracle, will it create common DB tables per version or it will still create unique tables for all 15 versions.
    Anyone has any better suggestions or comments to handle this situation ?
    thanx
    -Manu

    But I'm still stuck on the problem. It still doesn't read the second object. There is no second object.
    The code is quite big, any specific portion would be helpful, please let me know?This is a minimal load and print for an XML bean:import java.io.*;
    import java.beans.*;
    import java.util.*;
    public class LoadAndPrintXMLBean {
      // run with your file name as first argument
      public static void main (String[] args) {
        try {
          XMLDecoder d = new XMLDecoder(
            new BufferedInputStream(
              new FileInputStream(args[0])));
          Object result = d.readObject();
          d.close();
          System.out.println(result);
        } catch (Exception ex) {
          ex.printStackTrace();
    }For your input, it prints[[INDEX_KEY], [7]]You have one object, a vector, containing two vectors:
      The first child vector contains the string "INDEX_KEY".
      The second child vector contains the string "7".
    This matches the structure of your XML<?xml version="1.0" encoding="UTF-8"?>
    <java version="1.4.1_01" class="java.beans.XMLDecoder">
      <object class="java.util.Vector">
        <void method="add">
          <object class="java.util.Vector">
            <void method="add">
              <string>INDEX_KEY</string>
            </void>
          </object>
        </void>
        <void method="add">
          <object class="java.util.Vector">
            <void method="add">
              <string>7</string>
            </void>
          </object>
        </void>
      </object>
    </java>There is only one object there to retrieve using readObject().
    Pete

  • Help with Registering objects/access cache

    Below is the save routine i use to persist my top-level objects to the database.
    It seems very likely that I am doing something fundamentally wrong as I am obvserving behaviour that I do not expect.
    For example, I am using a field called version_id to hold an integer for optimistic locking. The first time I save the object, the correct sql is created, and the database row looks as I would expect. However, subsequent attempts to save do not work because I cannot figure out how to get a reference to the object with the incremented version_id.
    It would be much appreciated if someone can see things i am doing incorrecty with the implementation i have included below.
    thanks in advance.
    craig
    public static Object save(IdentifiableValue obj, String sessionName) {
              Object entity= null;
              try {
                   UnitOfWork uow= getSession(sessionName).acquireUnitOfWork();
                   if (obj.isNew())
                        uow.registerObject(obj);
                   entity= uow.deepMergeClone(obj);
                   //                    uow.printRegisteredObjects();
                   uow.commit();
                   //               uow.registerObject(facility);
              } catch (DatabaseException e) {
                   e.printStackTrace();
              Object returnValue= getSession(sessionName).readObject(obj);
              return returnValue;
         }

    When I create a new record, the id (sequence generated) gets set fine, but not the version number.
    When I save a record, the version id is not incremented.
    It seems to use the version number field properly in the sql though.
    Below is my sessions.xml entry, which looks like I am not JTS unless I am doing something incorrect.
    Any help is much appreciated.
    <session>
              <name>default</name>
              <project-xml>toplink.xml</project-xml>
              <session-type>
                   <server-session/>
              </session-type>
              <enable-logging>true</enable-logging>
              <logging-options>
                   <log-debug>true</log-debug>
                   <log-exceptions>true</log-exceptions>
                   <log-exception-stacktrace>true</log-exception-stacktrace>
                   <print-thread>true</print-thread>
                   <print-session>true</print-session>
                   <print-connection>true</print-connection>
                   <print-date>true</print-date>
              </logging-options>
              <login>
              <platform-class>oracle.toplink.internal.databaseaccess.OraclePlatform</platform-class>
                   <datasource>jdbc/toplinkDS</datasource>
                   <uses-external-connection-pool>true</uses-external-connection-pool>
                   <uses-external-transaction-controller>false</uses-external-transaction-controller>
              </login>
         </session>

  • 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 registering a product  code

    I have just purchased a new Mac Book Pro w/Retina display, and it doesn't come with a disc drive. I also purchased Adobe CS6 through Journey Ed. I am a full time student at Los Medanos College. I was instructed by Apple that I can download a trial version and register it with the product code provided on the box. Could you help me in this process?

    Not sure what you are asking. If you have the software and the serial then that's all there is to it - download the trial of whatever CS6 product you are referring to, input the serial during install.
    Mylenium

Maybe you are looking for

  • IMGBurn updated to 2.0.0.0

    See http://www.imgburn.com/ All-new version of the popular freeware burn utility. Changelog: * Added: 'Build' mode for creating ISO's from files on your hard disk, or burning them direct to a disc. * Added: Capturing Processor usage is now optional.

  • Error "Compile error: Invalid character" after copy paste operations in VBE 6.5 PowerPoint 2011

    This is a weird problem with the VBE 6.5 in Office 2011, running natively on a Mac. Sometimes, yet often, when I select a word by double clicking on it or a line by highlighting that line in the editor and then copy/paste it somewhere else in the cod

  • 0 replies, even if there are many replies

    Hi! In most common I'm reading the ABAP development forums, and NOT only the subforums (like ABAP general, etc...). I mean this one:  SAP Community Network Forums  » ABAP Development  I don' t know what causes the problem, but in the 80% of the threa

  • Direct printing with BI delivery

    Hi all, I've got a problem when sending reports to a printer automatically after the launching the job, with JDEdwards. The RD output that I get is correct, but when I go and check the document that just came out of the printer, it doesn't contain an

  • IPod synced with another computer message

    I have an iPod and an iPod nano suing iTunes on one computer, when I plug the iPod in and try to sync it, the iPod syneced to another computer comes up. The nano works fine. The iPods use two different playlists and the playlist for the iPod is empty