LONG running qurries in oracle database

HI,
How to check LONG running qurries in oracle database ? and also can you please tell me how to check current runnning quries in DB.
Thanks,
Shyamu.A.

you mean long ops...
SELECT sid, to_char(start_time,'hh24:mi:ss') stime,
message,( sofar/totalwork)* 100 percent
FROM v$session_longops
WHERE sofar/totalwork < 1if you want locked objects
select
  object_name,
  object_type,
  session_id,
  type,           -- Type or system/user lock
  lmode,         -- lock mode in which session holds lock
  request,
  block,
  ctime           -- Time since current mode was granted
from
  v$locked_object, all_objects, v$lock
where
  v$locked_object.object_id = all_objects.object_id AND
  v$lock.id1 = all_objects.object_id AND
  v$lock.sid = v$locked_object.session_id
order by
  session_id, ctime desc, object_name
/Query for currently running queries more than 60 secs...
select s.username,s.sid,s.serial#,s.last_call_et/60 mins_running,q.sql_text from v$session s
join v$sqltext_with_newlines q
on s.sql_address = q.address
where status='ACTIVE'
and type <>'BACKGROUND'
and last_call_et> 60
order by sid,serial#,q.piece

Similar Messages

  • Cancel long running statement in Oracle Lite (OLITE_10.3.0.3.0 olite40.jar)

    On JDBC statement, there is the method 'cancel' to instruct the database to cancel an executing statement. This works fine on Oracle server database, but not on Oracle lite database. The method call 'cancel' just blocks and the running statement is never interrupted.
    The example I tried is very simple. There is a thread started which executes a long running statement. I noticed, that when moving the cursor forward by calling rs.next(), it just blocks. That would be ok, if the statement could be canceled from within the main thread by stmt.cancel. But this call blocks as well with no implact on the running statement. Why is that? Do I miss something or is it not possible to cancel a long running statements in Oracle Lite?
    In the following my code snipped:
    public class CancelStatement {
         private static final String PATH_DB = "XX";
         private static final String PATH_LIB = "XX";
         private static final String CON_STRING = "jdbc:polite:whatever;DataDirectory=" + PATH_DB + ";Database=XX;IsolationLevel=Read Committed;Autocommit=Off;CursorType=Forward Only";
         private static final String USER = "XX";
         private static final String PASSWORD = "XX";
         public static void main(String args[]) throws Exception {
              System.setProperty("java.library.path", PATH_LIB);
              Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
              Connection con = DriverManager.getConnection(CON_STRING, USER, PASSWORD);
              Statement stmt = con.createStatement();
              Thread thread = new Thread(new LongStatementRunnable(con, stmt));
              thread.start();
              Thread.sleep(3000);
              // stop long running statement
              System.out.println("cancel long running statement");
              stmt.cancel(); // XXX does not work, as call is blocked until out of memory
              System.out.println("statement canceled");
         private static class LongStatementRunnable implements Runnable {
              private Connection con;
              private Statement stmt;
              public LongStatementRunnable(Connection con, Statement stmt) {
                   this.con = con;
                   this.stmt = stmt;
              @Override
              public void run() {
                   try {
                        System.out.println("start long running statement...");
                        // execute long running statement
                        ResultSet rs = stmt.executeQuery("SELECT * FROM PERSON P1, PERSON P2");
                        while (rs.next()) { // here the execution gets blocked
                             System.out.println("row"); // is never entered
                        rs.close();
                        stmt.close();
                        con.close();
                        System.out.println("long running statement finished...");
                   } catch (Exception e) {
                        e.printStackTrace();
    }I would be very glad if you could help me.
    Thanks a lot
    Daniel
    Edited by: 861793 on 26.05.2011 14:29

    Unfortunately Oracle Lite doesn't have this option. You can call your statement from a second thread as you have done, but you won't be able to kill or cancel this operation. The only way to get fix this is by rebooting. You can use process explorer to find the dll process that is executing the SQL, but the tables will be locked and sync would be locked as well until the process is finished running in shared memory.

  • Does BusinessObjects 5.1 can run on an Oracle database 10g?

    Hello,
    Can anyone tell me if BusinessObjects 5.1.6 can run on an Oracle database 10g?
    Thanks in advance for your answer
    Thierry

    Markus Waldorf wrote:
    Did you run the post-installation?
    $ sudo /etc/init.d/oracle-xe configureYes I've done it but it doesn't seem to work...

  • Sending Long Raw Data to Oracle database through Stored  Procedure

    Hi,
    I am trying to push data to Oracle 9i database through Stored Procedure via thin driver. It is going smoothly upto 29411 bytes. But it is not accepting for 53843 bytes and giving following error :
    java.sql.SQLException: Data size bigger than max size for this type: 53843
    Is it thin driver limitation? Can I solve it by using OCI driver? Or is there any other approach?
    I tried creating connection pool in weblogic 7.0 through OCI driver. But I am not able to configure it. Is there any special way of configuration.
    Quick response will be greatly appreciated.
    Thanks
    Sanjiv

    It happens to me. But I am using CMP of Weblogic 7. If you write your own jdbc code, the following link may be helpful.
    http://otn.oracle.com/sample_code/tech/java/codesnippet/xmldb/HowToLoadLargeXML.html

  • Finding the long running queries

    Hello, I am able to find the long running queries in my database as below.
    SQL> select sid,serial#
    2 from v$session_longops
    3 where time_remaining > 0
    4 order by time_remaining desc;
    SID SERIAL#
    1100 4411
    1383 3912
    1295 2493
    SQL>
    With this info, i want to find out what sql code related to these (SID,SERIAL#). The SQL code comes from v$sqlarea. But i am not able to join v$session_longops with v$sqlarea. Any help is highly appreciated.
    Here is my database version.
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production

    Thank you!!!
    select     
    A.SID ,
    A.SERIAL# ,
    A.OPNAME ,
    A.TARGET ,
    A.TARGET_DESC,
    A.SOFAR ,
    A.TOTALWORK ,
    A.UNITS ,
    A.START_TIME ,
    A.LAST_UPDATE_TIME ,
    A.ELAPSED_SECONDS ,
    A.CONTEXT ,
    A.MESSAGE ,
    A.USERNAME ,
    B.sql_fulltext
    from     v$session_longops a,
    v$sqlarea b
    where a.sql_id = b.sql_id
    and     time_remaining > 0
    order by time_remaining desc

  • Re:How to determine the long running jobs in a patch

    Hi ,
    How to determine the long running jobs in a patch .
    Regards

    Hi,
    Check the below MY ORACLE SUPPORT note:
    Note.252422.1 .... Check Completed Long Running Jobs In Oracle Apps.
    Best regards,
    Rafi

  • Oracle Database 10g Enterprise version supported on Win 2003/Win 2008?

    Hi,
    The Current version of SAP we are using is SAP R/3 Enterprise 4.7 version (operating system- WINDOW NT )and the database is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 u2013 Prod
    Please help to advice me:
    Can currently running version of oracle database be supported on Win 2003/Win 2008?
    Can SAP application support the existing oracle database server upgrade to Windows 2003/Win 2008?
    Is it possible to have Oracle database separated to other server on SAP DEV and SAP QA?
    Many thanks in advance.

    Hi,
    You can get more clarity in the [Product Availability Matrix|http://service.sap.com/pam].
    The following notes can help u better.
    [Note 1383873 - Windows Server 2008 R2 Support|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1383873]
    [Note 1303262 - Oracle on Windows Server 2008|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1303262]
    Hope this helps.
    Regards,
    Varadharajan M

  • Possible to use ServiceCenter's Oracle database for Content Management?

    Hi,
    I have a quick question, and I would really appreciate if any of you have a quick answer for me.
    My company is sourcing for a Content Management option as a complement to the object information that can be stored in ServiceCenter's CMDB. We are working towards a complete information storage solution, where the CMDB is the obvious master for all object information.
    Our ServiceCenter/CMDB solution is run on an Oracle database. We have an interest in possibly using an Oracle Content Management solution on top of the existing Oracle database.
    A question was raised if the Content Management solution can use ServiceCenter's Oracle database for storing documents, ie act as a Content Management database?
    The documents need to be fully searchable from Oracle's Content Management product. The solution should support storage of a large amount of data and documents and be scalable. It is critical that this in no way lower ServiceCenter's performance.
    Please bear in mind that I'm not a technician, but involved in the portal/Content Management aspect of the project. I'm also responsible for the user environment of our ServiceCenter-implementation.
    Best regards
    Leila Blomqvist
    EDB Business Partner Sweden AB

    Hi Harsha,
    Are you going to use the same ERP server for Content server as well? Are you planning to store the documents of this ECC system to the content server only?
    If yes, what is the use of that, Anyways all the documents will be stored on this server only for this ECC system. Please go through the link given by Mr Saxena above, that will give you a clear picture of how the content server works.
    You can install content server with Max DB although you already have oracle installed on your linux server.
    I would suggest you to check the stuff about content server and get your concepts cleared up before going ahead. if you are not clear, you may end up crashing your existing ERP system as well.
    AC

  • Running Oracle database 10g and 11g on same 5 RAC nodes

    Hello Gurus,
    Could any body throw light if I can install and sucessfully run Oracle database 10g and 11g on the same Oracle RAC installation setup.My setup is below
    Number of nodes-5
    OS- windows 2003 or RHEL5
    storage- DELL EMC SAN
    Clusterware- oracle version11g
    File system-Automatic storage management(ASM)
    After I successfully setup clusterware,ASM on the nodes,I would want to install 11g database on all 5 nodes .
    Then Install 10g database on only 3 of the nodes using the same clusterware.
    What are your views on the same.
    Also FYI... as per metalink node 220970.1(RAC: Frequently Asked Questions) one can do such a setup.
    what iam looking for is practical experience if anyone has implemented this in production system,if yes any issues faced and how tough it is to support.
    Thanks,
    Imtiyaz

    You could run an 11g database and 10g database on the same cluster as long as you use Clusterware 11g.
    The administration aspect will drastically change according to the platform you run on. As of now, it appears you don't know whether it will be Linux or Windows.
    It would be practical to support the same database release.

  • Query running for long post upgrade to Oracle 11g from 10g

    The below query is running for a very long time post upgrade of database from 10g to 11g.
    SELECT default_supplier
      FROM (SELECT pv.vendor_name || '-'
                   || pvsa.vendor_site_code default_supplier
              FROM mrp_item_sourcing_levels_v mislv,
                   mfg_lookups ml1,
                   mfg_lookups ml2,
                   mfg_lookups ml3,
                   mtl_system_items_b msib,
                   po_vendors pv,
                   po_vendor_sites_all pvsa
             WHERE msib.segment1 = :b1
               AND msib.organization_id = :b2
               AND mislv.inventory_item_id = msib.inventory_item_id
               AND mislv.organization_id = msib.organization_id
               AND ml1.lookup_type = 'MRP_SOURCING_RULE_TYPE'
               AND ml1.lookup_code = mislv.sourcing_rule_type
               AND ml2.lookup_type = 'MRP_ASSIGNMENT_TYPE'
               AND ml2.lookup_code = mislv.assignment_type
               AND pv.vendor_id = mislv.vendor_id
               AND pvsa.vendor_site_id = mislv.vendor_site_id
               AND pvsa.vendor_id = mislv.vendor_id
               AND ml3.lookup_type = 'MRP_SOURCE_TYPE'
               AND ml3.lookup_code = mislv.sourcing_level
               AND mislv.sourcing_level =
                      (SELECT MIN (sourcing_level)
                         FROM mrp_item_sourcing_levels_v
                        WHERE inventory_item_id = msib.inventory_item_id
                          AND organization_id = msib.organization_id)
            UNION
            SELECT ood.organization_code default_supplier
              FROM mrp_item_sourcing_levels_v mislv,
                   mfg_lookups ml1,
                   mfg_lookups ml2,
                   mfg_lookups ml3,
                   mtl_system_items_b msib,
                   org_organization_definitions ood
             WHERE msib.segment1 = :b1
               AND msib.organization_id = :b2
               AND mislv.inventory_item_id = msib.inventory_item_id
               AND mislv.organization_id = msib.organization_id
               AND ml1.lookup_type = 'MRP_SOURCING_RULE_TYPE'
               AND ml1.lookup_code = mislv.sourcing_rule_type
               AND ml2.lookup_type = 'MRP_ASSIGNMENT_TYPE'
               AND ml2.lookup_code = mislv.assignment_type
               AND ml3.lookup_type = 'MRP_SOURCE_TYPE'
               AND ml3.lookup_code = mislv.sourcing_level
               AND ood.organization_id = mislv.source_organization_id
               AND mislv.sourcing_level =
                      (SELECT MIN (sourcing_level)
                         FROM mrp_item_sourcing_levels_v
                        WHERE inventory_item_id = msib.inventory_item_id
                          AND organization_id = msib.organization_id))
    From the trace files, we see that the issue is with the seeded view, mrp_item_sourcing_levels_v.
    Need pointers for fixing the performance.    

    The ETRM says this about the view:
    ***** Warning: Oracle Internal Use Only *****
    Oracle Corporation does not support access to Oracle
    applications data using this object, except from standard Oracle Applications programs.
    which is a powerful suggestion that you should not be addressing this view directly. Looking at the source code for the view, it has a bunch of UNIONs that may prevent view merging, and all the queries have loads of hints coded within them. So really, there is little you can do about this.
    It looks pretty simple to re-write your query to avoid addressing this view, you are using it only to retrieve a couple of columns. If you look at the source code for the view you'll see that you can get them easily without going through the view.
    John Watson
    Oracle Certified Master DBA

  • &, &&, and @s causing ORACLE Database Project issues And SLOW Run

    Hello I am encountering an issue while "Run"ing functions/sp/packages from an ORACLE DATABASE PROJECT.
    We are supporting a legacy application that utilizes HTP.PRINT. We decided that it would be nice to have it as an Oracle Database Project but when we save the file it is croaking at us.
    We are using
    ODTwithODAC1110720
    Visual Studio 2008
    Oracle 10g r2
    The specific issue happens when an @ is the first line in the file and when utilizing && in javascript (all being emitted from HTP.Print). Now I know we can work around these limitations (escaping the &s and wrapping the line) but is there any way to get these to work in the IDE w/o the escaping and such?
    For instance:
    In visual Studio Create a Function1 as such
    DROP FUNCTION FUNCTION1;
    CREATE FUNCTION FUNCTION1 (
      PARAM1 IN NUMBER) RETURN NUMBER IS
    BEGIN
    HTP.PRINT ('    if (popupStatus == 1 && okDisabled==false) {');
             htp.print('
    <style>
    @media printfooter; {
    }   etc etc etc   ');
      RETURN PARAM1;
    END FUNCTION1;
    /You will get this result:
    Connected.
    ------ Running '***\Project1\Functions\Script1.sql' @**.** ------
    Function dropped.
    SP2-0310: unable to open file "media.sql"
    Enter value for okdisabled:
    Operation canceled by user
    -- this locks the file
    If I go ahead and hit OK (in a new unlocked file)
    SP2-0310: unable to open file "media.sql"
    Enter value for okdisabled: old   5: HTP.PRINT ('      if (popupStatus == 1 && okDisabled==false) {');
    new   5: HTP.PRINT ('      if (popupStatus == 1 ==false) {');
    **/You will notice that when the function is created it just skips the & and @s
    FUNCTION FUNCTION1 (
      PARAM1 IN NUMBER) RETURN NUMBER IS
    BEGIN
    HTP.PRINT ('    if (popupStatus == 1 ==false) {');
             htp.print('
    <style>
    }   etc etc etc   ');
      RETURN PARAM1;
    END FUNCTION1;and just a little insult to injury on this, each "run" takes upwards to 20-25 seconds from Visual studio (this is a deal breaker for us to use the tool -- when SQL Developer takes mere moments) -- is there a configuration setting awry?
    So I guess the questions are these (sorry for the ramble)
    1) How, in the VS 2008 IDE, can we accommdate & and && and @s without escaping/workarounds? (these work fine in developer)
    a) I have noticed that the escape character work around is ONE way ... thus if I have the package body in the Oracle Database Project, add "set escape \ " then escape all of my & and && and @s it works. but... the code is saved in Oracle without the escape characters (understandable) but if it changes in Oracle then I push the changes down I lose all of my escape characters.
    2) Why does each RUN take so long? working in developer & even the Server Explorer edited function are almost instantaneous.
    -- I want to add, during my escape character tests EACH RUN took upwards to 30-45 seconds, so for 4 small simple test cases it was approaching 2 minutes of just save time...
    so far these two shortcomings are barrier for our company to utilize these features (it's hard to try to sell the dept. on anything that doesn't handle escapes well AND -- the big AND -- takes entirely too long to save). any advise?
    thnx
    Edited by: tanging on Jul 1, 2010 4:47 AM

    we can just set the escape character and it works fine,
    set escape '~'
    create or replace ....when/if we have to pull down from production level we'll have to be mindful to change & and @s to have a preceding escape character (and add the set escape to the top) --> which is a step back from SQL Developer which handles this flawlessly.
    now the timing -- I believe it to be a timing issue on our network (therefore I've wasted your time). We have a default shared drive that is anything but speedy and our "default" homes in Visual Studio pointed to the shared drive. While the project/solution were on our local drives - the temp drive was the slow default. Changing that locally seems to have made the timing issue go away. (although on the first save of the body spec after the change and reboot it took 35 seconds but on subsequent runs it Ran in acceptable time limits).

  • Can we run 2 versions of Apex on the same Oracle database ?

    Can we run both Apex 3.1 & Apex 4.0 versions on the same database ?
    Instead of upgrading my 3.1 to Apex 4.0, I wanted to know if I can run 2 versions of Apex on the same database simultaneously

    Hello,
    >> Can we run both Apex 3.1 & Apex 4.0 versions on the same database ?
    No you can’t. The APEX 4.0 installation script will automatically detect the 3.1 instance and it will be upgraded.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Running oracle database xe (express edition) on windows server 2008 r2

    Is it supported to run Oracle Database XE on Windows Server 2008 R2?
    Database XE is only supported as 32-bit. Current builds of Windows Server 2008 only come in x64 configurations.
    Here are the Database XE system requirements for windows:
    [http://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm]
    The docs say that 32-bit windows is required, yet they also say that windows server 2008 is supported.
    Windows Server 2008 R2 came out in 2009, and in R2 they eliminated 32-bit OS (though there is the WOW64 subsystem to run 32-bit programs within the 64-bit OS).
    See:
    - [Wikipedia page about windows server 2008 with info on R2|http://en.wikipedia.org/wiki/Windows_Server_2008#Windows_Server_2008_R2]
    - [Wikipedia page on "windows 32-bit on windows 64-bit"|http://en.wikipedia.org/wiki/WOW64]
    Thanks,
    Matt

    Hello Matt,
    Is it supported to run Oracle Database XE on Windows Server 2008 R2?No.
    The docs say that 32-bit windows is required, yet they also say that windows server 2008 is supported.So this means that only 32bit versions of 2008 will be supported.
    Windows Server 2008 R2 came out in 2009, and in R2 they eliminated 32-bit OS (though there is the WOW64 subsystem to run 32-bit programs within the 64-bit OS).Which is probably why 2008 R2 is not supported.
    You can either take the VM approach and install a 32 bit Windows or 64 bit Linux host, or you can queue in the list of persons waiting for a 64 bit Windows release. See the following thread for details (and the queue) for the latter: {thread:id=2277728}
    -Udo

  • Unable to connect to Oracle database running on Windows machine from linux.

    Hi,
    I'm not able to connect to oracle database running on Windows machine from Linux machine. I'm geting the below mentioned error. I have given below the code I used to connect to database and database propertes.Do I need to use any specific driver?
    Please help me.
    Thanks,
    Sunjyoti
    Code :
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Connection;
    import java.util.*;
    import java.sql.*;
    import java.io.*;
    class try2{
    public static void main(String args[]) {
    try {
              System.out.println("hi");
    // Load the properties file to get the connection information
    Properties prop = new Properties();
    prop.load(new FileInputStream("/home/sreejith/EDIReader/Connection.properties"));
    // Create a OracleDataSource instance
    OracleDataSource ods = new OracleDataSource();
    System.out.println("prop is "+prop);
    configureDataSource(ods, prop);
    Connection conn=null;
    // Create a connection object
    conn = ods.getConnection();
         System.out.println("Connection is"+conn);
    // Sets the auto-commit property for the connection to be false.
    conn.setAutoCommit(false);
    } catch (SQLException sqlEx){ // Handle SQL Errors
    System.out.println("In exception "+sqlEx);
    } catch(Exception excep) { // Handle other errors
    System.out.println(" Exception "+ excep.toString());
    private static void configureDataSource(OracleDataSource ods, Properties prop) {
    // Database Host Name
    ods.setServerName(prop.getProperty("HostName"));
    // Set the database SID
    ods.setDatabaseName(prop.getProperty("SID"));
    // Set database port
    ods.setPortNumber( new Integer( prop.getProperty("Port") ).intValue());
    // Set the driver type
    ods.setDriverType ("thin");
    // Sets the user name
    ods.setUser(prop.getProperty("UserName"));
    // Sets the password
    ods.setPassword(prop.getProperty("Password"));
    Connection properties :
    # Your Database Connection details
    HostName = 10.20.3.19
    SID = EDIREAD
    Port = 1521
    UserName = dbuser
    Password = dbuser
    Error I'm getting is
    error while trying to connect with odbc datasource
    [root@iflexpau2217 EDIReader]# java try2
    hi
    prop is {HostName=10.20.3.19, Password=dbuser, UserName=dbuser, SID=EDIREAD, Port=1521}
    In exception java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Also I tried to connect with weblogic JDBC driver
    Code is here:
    import java.io.BufferedReader;
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    //import com.entrust.toolkit.util.ByteArray;
    public class trial{
         public static void main(String args[]) throws IOException{
              System.out.println("hi");
              Connection p_conn = null;
              PreparedStatement xml_insert = null;
              try {
         // Load the JDBC driver
                   System.out.println("hi2");
         // String driverName = "oracle.jdbc.driver.OracleDriver";
    String driverName = "weblogic.jdbc.oracle.OracleDriver";
         System.out.println("hi2");
         Class.forName(driverName);
         // Create a connection to the database
         String serverName = "10.20.3.19";
         String portNumber = "1521";
         String sid = "EDIREAD";
         //String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String url = "jdbc:bea:oracle://10.20.3.19:1521";
         String username = "dbuser";
         String password = "dbuser";
    System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
         p_conn = DriverManager.getConnection(url, username, password);
         System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
              xml_insert=p_conn.prepareStatement("insert into PRTB_SUBUNIT (SUBUNT_ID,SUBUNT_SUB_UNIT,SUBUNT_PHYUNT_ID) values (?,?,?)");
              //InputStream in=null;
              File l_file=new File("/home/sreejith/EDIReader/propertyfiles/inputfile/BUG_10802_ES_CSB19_68.txt");
              BufferedReader input =null;
              input=new BufferedReader(new FileReader(l_file));
              String line = null;
              StringBuffer trial=new StringBuffer();
              while (( line = input.readLine()) != null){
                   trial.append(line);
                   trial.append(System.getProperty("line.separator"));
              //InputStream is = new BufferedInputStream(new FileInputStream(l_file));
              System.out.println(trial.toString());
              //Blob b ;
              //byte[] bytes=trial.toString().getBytes();
              //System.out.println("Size-->"+bytes.length);
              xml_insert.setString(1,new String("SpecailChar"));
              //xml_insert.setBinaryStream(2,new ByteArrayInputStream(bytes),15920);
              xml_insert.setString(3,"SpecailChar");
              xml_insert.executeUpdate();
              p_conn.commit();
              } catch (ClassNotFoundException e) {
                   System.out.println("ClassNotFoundException:"+e.getMessage());
              // Could not find the database driver
              } catch (SQLException e) {
                   System.out.println("SQEXCEPTIN:"+e.getMessage());
              // Could not connect to the database
              }catch (FileNotFoundException e) {
                   System.out.println("filenot found:"+e.getMessage());
              // Could not connect to the database
    Error I'm getting is
    error while trying with jdbc:
    SQEXCEPTIN:[BEA][Oracle JDBC Driver]Error establishing socket to host and port: 10.20.3.19:1521. Reason: Connection refused

    Is the Windows firewall active? Have you enabled the port on the firewall, if it is?

  • Can HFM & FDQM  run on Oracle Database 10.2.0.2 based on a 64bit server?

    To enhance performances of HFM and FDQM, my customer would like to upgrade the Oracle DB server (10.2.0.2) that runs on Windows Server 2003, from 32Bit to 64Bit, that supports larger number of connections.
    The HFM and FDQM are installed on Windows Server 2003 32Bit and will not move to the new 64Bit server so only the Oracle DB will be installed on the new 64Bit server.
    Is it possible? Is there any document that explain it?
    Thank you,
    Yoram.

    Hi,
    I am facing another related problem. I have installed HFM 9.3.1.1 along with Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 in Windows server 2003 SP2. When I try to create udl by choosing Oracle Provider for OLE DB, the test connection succeed. but giving unknown error at the time of Application server configuration indicating to apply working udl file.
    When I check the HFM installation guide, it tells to download and install the 'Oracle Provider for OLE DB' file from Oracle.com (as per page 21 of the installation doc).But the problem is that the 'Oracle Provider for OLE DB' file is not available for the aforesaid Oracle 10g version.
    Can anybody guide me in the aforesaid problem? Please sent the link from where I can get the file for installation purposes.
    Your help would be of great help.
    Thanks & Regards...

Maybe you are looking for