Wrong XML OraDbType code for database column type CHAR

Hi there!
I have a strange issue with the XML retrieved from an Oracle DB. I'm using OraDB11g and my problem is described next:
When I create a table with a CHAR type columns and get the XML from a query the returns a cursor with the table rows, I get the supposed right OraDbType code 104:
Table creation:
create table AA_Table1
ID number(2,0) not null,
ColumnA         char(1)                    null,
ColumnB         char(1)   default 'S'   not null,
constraint PK_AA_Table1
primary key ( ID )
tablespace "X"
storage
compress for all operations
and the returned XML:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="o_ListaTable" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
<xs:element name="o_ListTable" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="o_List" msprop:REFCursorName="REFCursor">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" msprop:OraDbType="111" type="xs:short" minOccurs="0" />
*<xs:element name="COLUMNA" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
*<xs:element name="COLUMNB" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
BUT...when I insert another column on the table, changing it, after that, I get a wrong OraDBType code on the returned XML for the new added column...
Added new column:
alter table AA_Table1 add ColumnC char(1) default 'S' not null;
The returned XML is:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="o_ListaTable" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
<xs:element name="o_ListTable" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="o_List" msprop:REFCursorName="REFCursor">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" msprop:OraDbType="111" type="xs:short" minOccurs="0" />
<xs:element name="COLUMNA" msprop:OraDbType="104" type="xs:string" minOccurs="0" />
<xs:element name="COLUMNB" msprop:OraDbType="104" type="xs:string" minOccurs="0" />
*<xs:element name="COLUMNC" msprop:OraDbType="126" type="xs:string" minOccurs="0" />*
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
My question is: why is this OraDbType code different? Check that the same column type CHAR(1) NOT NULL DEFAULT 'S' is created on table create and the OraDbType is ok, so I think this can be a bug...Because of this, I cannot do a right XML parser to convert CHAR(1) columns in other type I want, in this case, to convert it to .Net bool type. My parser now is ignoring the OraDbType code 126, because this is also the code used for nvarchar2, and I won't convert nvarchar2 to bool.
How can I solve this problem?
Some additional tests I've done:
Have also inserted new columns nullable/not nullable and with default value:
alter table AA_Table1 add ColumnD char(1);
alter table AA_Table1 add ColumnE char(1) not null;
alter table AA_Table1 add ColumnF char(1) default 'S';
And the returned XML was:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="o_ListTable" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
<xs:element name="o_ListTable" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="o_Lista" msprop:REFCursorName="REFCursor">
<xs:complexType>
<xs:sequence>
<xs:element name="COLUMNA" msprop:OraDbType="104" type="xs:string" minOccurs="0" />
<xs:element name="COLUMNB" msprop:OraDbType="104" type="xs:string" minOccurs="0" />
<xs:element name="COLUMNC" msprop:OraDbType="126" type="xs:string" minOccurs="0" />
*<xs:element name="COLUMND" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
*<xs:element name="COLUMNE" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
*<xs:element name="COLUMNF" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
All OraDbTypes are right, except that one for the column not null and with default value. Any solution for this issue?
If I change the type of the column that returns the wrong code (ColumnC) to CHAR(1) null default 'S' and then change it again to the original type CHAR(1) not null default 'S', I get the right ORaDbType code 104 as expcted and not the 126. This behaviour is strange - can this be an Oracle bug?
I am using the following Oracle DLL and respective version:
oci.dll (version 11.2.0.1)
Oracle.DataAccess.dll (version 4.112.3.0)
orannzsbb11.dll (version 11.0.0.1)
oraocci11.dll (version 11.2.0.3)
OraOps11w.dll (version 2.112.3.0)
Edited by: 929091 on 23/Abr/2012 2:44

Have you tried using minOccurs="1" ? Since the column is not null, it is guaranteed 1 value, correct?

Similar Messages

  • Database Column Type for Rich Text Editor

    Hi,
    I have a page item as Rich Text Editor. Now I want to store the data in tables in the same format as user entered in the page item.
    What would be the database column type for that?
    Thanks,
    Mehabub

    Mehabub Sheikh wrote:
    I have a page item as Rich Text Editor. Now I want to store the data in tables in the same format as user entered in the page item.
    What would be the database column type for that?As usual, the answer is "It depends".
    In this case it depends on the nature and size of the content. For content up to 4000 bytes in length, use VARCHAR2 or NVARCHAR2 (depending on the DB character set and globalization requirements), for content of longer length use CLOB or NCLOB (again depending on DB characterset and your globalization requirements).
    Note the effect of DB character set on the number of characters you can store in a VARCHAR2 or NVARCHAR2 column, and the overhead of HTML tags generated by formatting in the Rich Text Editor.

  • Import from DDL script - Why do I get domains for every column type?

    I've only been using Data Modeler for a day and my first task was to import a database definition from a DDL script.
    I noticed that every column definition resulted in the creation of a domain for the column type, with names like "VARCHAR_0_0_30" for a varchar2(30) type.
    Is there some way of avoiding the creation of domains in this way? I'd prefer to use domains only when they serve a more useful purpose such as validation by check constraints.

    Go to Preferences - > Data Modeler - > DDL and uncheck "Create Domains During Import" option.
    Ivan

  • MIGO T code for 453 Movement type

    hi sap gurus,
    I am getting These error message when i am using MIGO T code for 453 Movement type
    Deficit of BA Ret.blocked prev. 104 EA : NTH-607-P5G 1034 3401 5786051

    This means your stock level in return blocked stock is not sufficientt to be able to carry out the goods movement. Check your stock level for your material in MARD-RETME (or in MB52).
    Mvt 453 means stock transfer from return blocked stock (that was sent back by customer) to your own stock. Return blocked stock is owned by the customer, through this goods movement you take over the ownership of the goods.
    Regards,
    Csaba

  • Finding Process Code for a message Type

    Hi,
    Is there any way to find process code for a specific message type.
    Message Type WFRESOURCE_CHANGEAVAILABILITY

    Hi Swathi,
    I have already mention the process codes that can be used for this message type. For your convenience i am also attaching th description ,which process code can be used when.
    ABI_AIDN_IN     Auto- ID Idoc process
    ED00                Display Idoc using work item
    ED00_XML        Display idoc using work item (xml)
    ED08                Forward idoc
    ZABI_DLV_IN    Delivery advice ( AIDDESADV with DELVRY04)
    Regards
    Vinod

  • Choice of database column types, part 2: float(53) (or BINARY_DOUBLE) versu

    Original post in this series:
    http://forum.java.sun.com/thread.jspa?threadID=629958
    Issue #2: float(53) (or BINARY_DOUBLE) vs float(126)
    The original database design uses float(126) for several floating point type columns. Conversation with one of the database guys involved reveals that this was not a particularly conscious choice, but came when migrating an earlier database which simply used float as the column type.
    From my perspective as a Java programmer who needs to work with this data via JDBC, the choice of float(126) as a type is poor as it (a) is probably overkill, storing unneeded precision and thus wasting space (b) is unrepresentable as a Java double type unless truncation error is introduced (c) might be the cause of subtle bugs.
    Point (a) needs no further explanation.
    For point (b), note that oracle's float(53), not float(126), is the float type that best corresponds with Java's (IEEE 754) double type.
    Unfortunately, float(53) is NOT exactly equivalent to Java's double: Oracle internally uses binary coded decimal to represent numbers (float is essentially an oracle number type with added restrictions), which will not be the same bits as Java's double format (for a reference, see http://builder.com.com/5100-6388-5224536.html). This means that there can be conversion and rounding issues even when you use float(53) (see http://www.stanford.edu/dept/itss/docs/oracle/9i/java.920/a96654/oraint.htm#1000888 which states "Performing mathematical manipulations of the data directly in SQL format avoids the loss of precision that occurs in converting between SQL and Java formats").
    For point (c), here is an example of how I think that subtle bugs can be introduced. Suppose that you do a query and among the results is some floating point type, internally stored in the db as float(126) but which can only be represented in a normal computer language program by a double type, which is equivalent to a float(53). (No one wants to use a class like Java's BigDecimal if at all possible because it is very awkward to use and is extremely slow as well.) So truncation has to occur. Then suppose that the programmer wishes to use that floating point value, unmodified, as part of a subsequent query, say in an equals condition. But now it may not equal because the value in his program has lost information present in the original, so the query does not work as expected. Of course, for this scenario, one could query based on "approximately equal" instead of exactly equal. But that assumes that the programmer knows to do this, and then even if he does, it is a pain to write, may be a performance hit, and subjectivity is involved (e.g. in how much being off you will tolerate). So, if it is at all possible to reasonably avoid this, yuo want to.
    It appears that Oracle 10g now offers the BINARY_DOUBLE type which DOES exactly correspond to Java's double type; see http://builder.com.com/5100-6388-5224536.html
    What are people's thoughts on the points that I raise above: is using a float(126) a suboptimal design choice, or are there no significant issues?
    Anyone have experience with the new BINARY_DOUBLE type? (Unfortunately, we are currently using Oracle 9i so this may not be an option for us.)

    Original post in this series:
    http://forum.java.sun.com/thread.jspa?threadID=629958
    You could have posted it as a reply to that post. :)
    It's difficult managing to keep multiple posts close together.

  • Filter Infotypes based on Company Code for the Message Type HRMD_A

    Hi,
    I have a requirement to send different infotypes for different Company codes using the same distribution model for the message type HRMD_A.
    Example :
    For the BUKRS 2500 I need to send infotype 0000 ,0002,0006
    For the BUKRS 2600 I need to send infotype 0000 ,0008,0009
    It will be a great help for me if any one can guide me on that.
    Regards,
    Raka

    Hi ,
    Thanks for the reply.
    I alredy have done that . But its not working.
    Its working only for infotype 0001.
    If the infotype is there in any of the filter groups, the data will be sent irrespective of the Com Code.
    Regards,
    Raka

  • What's wrong with my code for comparing date retreived from db and sysdate?

    Hi all,
    I need to retrive date from the DB and compare it to system date.i have posted the code below.i get java.sql.SQL Exception:Io exception:Socket closed.
    What's wrong with the code?please help me.Thanks in advance.
    public boolean date() throws IOException, SQLException {
    Connection con1;
    long millis = System.currentTimeMillis();
    Timestamp timestamp = new java.sql.Timestamp(millis);
    ResultSet rs4 = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection(
    "jdbc:oracle:thin:@abc:1605:xyz",
    "cdf", "cdf");
    Statement stmt_exp = con.createStatement();
    rs4 = stmt_exp.executeQuery("SELECT DATE FROM TABLE_NAME")
    while (rs4.next()) {
    Timestamp timestamp2 = rs4.getTimestamp("expire_date");
    con1.close();
    catch (Exception e)
    e.printStackTrace();
    finally
    //ResultSet rs4 = null;
    //Timestamp timestamp2;
    Timestamp timestamp2 = rs4.getTimestamp("expire_date");
    if (timestamp2.compareTo(timestamp) < 0)  //sysdate < exp date
    return true;
    } else {
    return false;
    }

    Didn't you understand what BalusC said? You're closing the connection and then trying to use the ResultSet. The ResultSet will be closed when you close the connection so you can't use it anymore.
    You should close the connection last thing in your code, probably in a finally. And after you close your ResultSet and Statement.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • Process code for Outbound IDOC type MBGMCR03

    Hi Friends,
    I have a requirement,  where in Goods receipt IDOC data from ECC 6.0 needs to be sent to the external system through XI, for that require a process code. Can you all suggest the process code for the outbound IDOC for Goods Receipt.
    Thanks in Advance,
    Meghna.

    Hi,
    Goods Movement is genarally inbound.
    You may have to write your own process code for MBGMCR03.
    Regards,
    Shakthi.

  • SQL (Injection) Vs Flat File TXT Vs XML (XPath Injection) For Database.

    I will have to deal with robust login sessions so I need some advice on what type of database and language I will use.
    PHP and MySQL is the choice but I hear that flat file TXT are more faster so I am thinking about Perl.
    Perl is very flexiple and have many advantages but why do many folks use PHP.
    SQL and XPath injection are becoming more frequent plus MD5 and SH512 have been cracked by some angry folks.
    The Perl community is becoming very small so it will be difficult to receive support if I have a specific problem.

    In our projects we are extracting SMS messages and
    based on the
    MISDN (Telephone number) of each SMS we are fetching
    the corresponding
    account information (server name and password) from
    the database through (connecting through)
    webservice.The data is stored in the DB which you are accessing through a webserivce and that's too slow and unreliable so you are caching the results in a text file...
    That's horrible. The party responsible for the webservice should be fixing it or you should rethink the architecture. All this extra complexity and basically it's just causing problems for you. You'd be better off just accessing the DB directly. I assume this is possible since you know there is a database. In a good SOA architecture, you should not know or care about where the data is persisted.
    This webservice connection is slow/unreliable so a
    local copy of the
    MISDN number and corresponding account information
    are stored/updated in flat files tp prevent repeated
    accessing through webservice.
    My question is-which will be faster for accessing,
    using txt file or xml or a different format.I don't think it's going to matter much at all for the numbers you site, unless you are running this on a 20 year old PC or something.
    But I think you are addressing the wrong problem.

  • Filtering xml records from CLOB database column

    Hi,
    I have a xml data stored in a CLOB field in database.
    I need to retrieve the contents that match my filter criteria.
    Say my xml is like below,
    <ROOT>
    <EMP>
    <EMP_NO>1</EMP_NO>
    <SAL>100</SAL>
    </EMP>
    <EMP>
    <EMP_NO>2</EMP_NO>
    <SAL>200</SAL>
    </EMP>
    <EMP>
    <EMP_NO>3</EMP_NO>
    <SAL>300</SAL>
    </EMP>
    </ROOT>
    I want to fetch the entire xml tree but filtered based on the SAL field, WHERE SAL>100.
    So my resulting xml should be
    <ROOT>
    <EMP>
    <EMP_NO>2</EMP_NO>
    <SAL>200</SAL>
    </EMP>
    <EMP>
    <EMP_NO>3</EMP_NO>
    <SAL>300</SAL>
    </EMP>
    </ROOT>
    I will be having 'n' number of columns, and I cant specify everything in COLUMNS clause.
    I want to select all nodes, but filter based on few fields.
    I tried using it as below, but I feel it took some time for it to display results.
    select x.*
    from emp t
    , xmltable(
    '/ROOT'
    passing xmltype(t.doc)
    columns VSAL number PATH './EMP/SAL'
    , OTHER xmltype PATH '.'
    ) x
    where x.VSAL>100
    Please suggest me a solution that doesnt consume much time.
    I think the problem with my query is OTHER xmltype PATH '.'
    Here 'xmltype' datatype is expensive I think, because after I included that, the query took some time.
    I cant hardcode the SAL value of 100 as its dynamic. So I am unable to use this method of filtering.
    select x.*
    from emp t
    , xmltable(
    '/ROOT[.//EMP/SAL>100]'
    passing xmltype(t.doc)
    ) x
    Thanks!
    Edited by: Chit on Mar 24, 2012 10:12 AM

    Hi,
    I want to fetch the entire xml tree but filtered based on the SAL field, WHERE SAL>100.Then you have to rebuild the document keeping only the elements satisfying the condition (and yes, you can bind XQuery variables too) :
    SQL> select xmlserialize(document x.doc as clob indent)
      2  from emp t
      3     , xmltable(
      4         '<ROOT>
      5          {
      6            for $i in /ROOT/EMP
      7            where $i/SAL > $minsal
      8            return $i
      9          }
    10          </ROOT>'
    11          passing xmlparse(document t.doc)
    12                , 100 as "minsal"
    13          columns doc xmltype path '.'
    14       ) x
    15  ;
    XMLSERIALIZE(DOCUMENTX.DOCASCL
    <ROOT>
      <EMP>
        <EMP_NO>2</EMP_NO>
        <SAL>200</SAL>
      </EMP>
      <EMP>
        <EMP_NO>3</EMP_NO>
        <SAL>300</SAL>
      </EMP>
    </ROOT>
    Or you can just delete the nodes you don't want :
    SQL> var minsal number
    SQL> exec :minsal := 100
    PL/SQL procedure successfully completed
    SQL> select xmlserialize(document
      2           deletexml( xmlparse(document t.doc)
      3                    , '/ROOT/EMP[SAL<='||:minsal||']' )
      4           as clob indent
      5         )
      6  from emp t
      7  ;
    XMLSERIALIZE(DOCUMENTDELETEXML
    <ROOT>
      <EMP>
        <EMP_NO>2</EMP_NO>
        <SAL>200</SAL>
      </EMP>
      <EMP>
        <EMP_NO>3</EMP_NO>
        <SAL>300</SAL>
      </EMP>
    </ROOT>
    Please suggest me a solution that doesnt consume much time.
    I think the problem with my query is OTHER xmltype PATH '.'The real problem is the CLOB text storage.
    If you want performance, use binary XMLType or object-relational.

  • How to insert long text data in oracle for LONG column type??

    Anybody who can tell me what is best way to store long text (more than 8k) in Oralce table.
    I am using Long datatype for column but it still doenst let me insert longer strings.
    Also I am using ODP.Net.
    Anybody with a good suggestion???
    Thanks in advance

    Hi,
    Are you getting an error? If so, what?
    This works for me..
    Greg
    create table longtab(col1 varchar2(10), col2 long );
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    using System.Text;
    public class longwrite
    public static void Main()
    // make a long string
    StringBuilder sb = new StringBuilder();
    for (int i=0;i<55000;i++)
    sb.Append("a");
    sb.Append("Z");
    string indata = sb.ToString();
    Console.WriteLine("string length is {0}",indata .Length);
    // insert into database
    OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl");
    con.Open();
    OracleCommand cmd = new OracleCommand();
    cmd.CommandText = "insert into longtab values(1,:longparam)";
    cmd.Connection = con;
    OracleParameter longparam = new OracleParameter("longparam",OracleDbType.Long,indata .Length);
    longparam.Direction = ParameterDirection.Input;
    longparam.Value = indata ;
    cmd.Parameters.Add(longparam);
    cmd.ExecuteNonQuery();
    Console.WriteLine("insert complete");
    //now retrieve it
    cmd.CommandText = "select rowid,col2 from longtab where col1 = 1";
    OracleDataReader reader = cmd.ExecuteReader();
    reader.Read();
    string outdata = (string)reader.GetOracleString(1);
    Console.WriteLine("string length is {0}",outdata.Length);
    //Console.WriteLine("string is {0}",outdata);
    reader.Close();     
    con.Close();
    con.Close();
    }

  • Can one help me design a perfect test code for database conncurrent access

    Hi everybody,
    I am stuck!! I want to test how a database server behaves when n (e.g. 100) users concurrently doing: connect, retrieve, update. Required is that all connections are kept open until the test is terminating. In other word, 100 users login at the same time, retrieving the data (different one) at the same time, and updating in the same time.
    As a solution, I have let the main thread to create 100 threads in for loop, set them to be daemon, and call join() on them. The threads are of TestClass that implements Runnable. In the run method, I do the following in sequence: connect, retrieve, update, retrieve, end. The code is shown down (without cserver info and logging stuff for simplification purposes).
    The problem is that the logger shows that the thread tasks are done sequentially, i.e.,
    - thread(TH)-1 connects,
    - TH-1 retrieves,
    - TH-1 updates,
    - TH-1 retrieves,
    - TH-2 connects,
    - TH-2 retrieves.
    - TH-2... and so on.
    I thaught that I will get something like: TH-1 connects, TH-2 connects, TH-1 retrieves, TH-3 connects, TH-3 retrieves, TH-2....
    What did I do wrong? or my expectations were wrong? if the later is correct, what is the right way to establish a reasonable test class?
    public class TestClass implements Runnable {
    public void run() {
    // connect me      
    Connection connection = getConnection();
    // give me this amount of data
    String[]  data = getSomeData(connection);
    // do some update
    updateData(connection, data);
    private void updateData(Connection connection, String[] data) {
    // change data and save it back to the database
    private String[] getSomeData(Connection connection) {
    // get data
    private Connection getConnection() {
    // establish a connection and return it back
    public class Main {
    public static void main(String[] args) {
    Random generator = new Random();
    for (int i = 0; i < 100; i++) {
    thread = new Thread(new TestClass());
    thread.setDaemon(true);
    thread.start();
    try {
    thread.join(); // main waits until all threads are done
    } catch (InterruptedException iex) {
    threadMessage("I have been interrupted!!");
    }Edited by: greenearth09 on May 12, 2009 2:07 PM
    Edited by: greenearth09 on May 12, 2009 2:09 PM
    Edited by: greenearth09 on May 12, 2009 2:10 PM

    Hi again,
    I got strange behavior that never ends even if I used 5 threads:
    Thread[] ths = new Thread[5];
    for (int i = 0; i < 5; i++) {
          thread = new Thread(new TestClass());
          thread.setDaemon(true);
          thread.start();
          ths[i] = thread;
    for (int i = 0; i < 5; i++) {
    try {
    ths.join(); // main waits until all threads are done
    } catch (InterruptedException iex) {
    threadMessage("I have been interrupted!!");

  • What's wrong with my code for a video embed?

    Hi all,
    I've embedded a video using Dreamweaver CS5 onto my site and the code is:
    <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,1,0" width="176" height="158" title="MyVideoTitle">
    <param name="src" value="videos/TheNameOfMyVideoHere.3gp" />
    <param name="BGCOLOR" value="#FFFFFF" />
    <embed src="videos/TheNameOfMyVideoHere.3gp" width="176" height="158" pluginspage="http://www.adobe.com/shockwave/download/"></embed>
    </object>
    I made the video on iMovie and saved it as a .3gp file (the default for tiny videos) for the small file size (176x158.)
    It works great live online in the browsers I've tested (Mac FF, Safari, Camino, GoogChrome, Windows FF), EXCEPT it doesn't load on Safari for Windows (works fine on Mac) and IE8 (and probably IE7, which I don't have.) Perhaps there are others where it won't work, too.
    The spot for the video comes up on the site, and says the words, "Adobe Shockwave..", but never loads.
    What is the problem here?
    Thanks for any help on this!
    Also taking suggestions for the best way (method, format, file type, etc..) to embed a tiny video on my site, that isn't YouTube, etc..I want it clean and simple and no advertising. P.S. I'm not a designer...just a guy with a website and CS5.

    Didn't you understand what BalusC said? You're closing the connection and then trying to use the ResultSet. The ResultSet will be closed when you close the connection so you can't use it anymore.
    You should close the connection last thing in your code, probably in a finally. And after you close your ResultSet and Statement.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • Java code for database synchronization for every transaction

    we have 10 stores each one have their own database . transaction happens in stores. If at all any transaction happen first this transaction update should happen it's own data base.After that immediately this updation should happen for central database. All stores can connect to this central database. After updation happen in this central data base this updation should happen for rest of all stores .
    this updation should happen for every transaction. Please help me for above scenario.

    So you have 11 instances of a database and you want that any changes to one of them should be replicated to the other 10?
    Sorry, there isn't a "code snippet" for that. Google for "reliable database replication" to see what you are getting yourself into.

Maybe you are looking for

  • Customizing Graph View in OBIEE 11G

    Hi! I am using OBIEE 11.1.1.6. In line graph data labels in graph view are coming on the line so some values are not readable, we have to show values always How can we move the data labels above the line or below the line. I understand its differnt t

  • Trade in System Dwon

    I went to my store today to use the %0% trade in bonus and was told that the trade in system has been down for 4 days.  They did try to do my trade in but it did fail. I find this to be unacceptable, what's the point of having a trade in bonus if the

  • Import Standard Purchase Orders return error

    Dear All , when i ran the Import Standard Purchase Orders concurent program , it completed with the following errors DECLARE ERROR at line 1: ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at line 133 So please can anyone have a solut

  • Runtime Exception in Message mapping transformation.

    hi Experts, i did IDOC(MATMAS05) to File scenario. if i tested the mapping in IR (Test tab), its working fine. but when i triggered the IDOC from SAP R/3 system, it reaches to SAP PI and showing Mapping falure in SXMB_Moni. then i took the payload fr

  • My trackpad is stuck down and won't click

    HI All, The trackpad is stuck down and wont click. It happened gradually over a week or so, it was getting harder and harder to click. It seems to be slightly depressed at the clicker end (nearest me) which makes me think its stuck? Its a newer style