Upgrading the JVM in the oracle database.

I found a post regarding upgrading the JVM in the database for release 10.2 of the database and they said it can not be upgraded to a newer version (i.e. 1.4 to 1.6_25 say). Is this still the case for the 11.2 release of the database. Thanks in advance.
Stu

No change as of 11.2 however, we are looking into this but i am not allowed to say when it'll be available.
Kuassi

Similar Messages

  • How to find out the date when an oracle database is upgraded

    Hi,
    I would like to know the date when an oracle database is upgraded (for example 10.2.0.4 to 11.2.0.3).
    Can you help me to find out these details.
    Thanks,
    Sarayu

    user13312943 wrote:
    Hi Ed and SB,
    Thanks for your replies. How about this option?
    Let us assume I am interested in checking when my database is upgraded to any 11g version.
    Will this query help?
    select min(first_usage_date)  from  dba_feature_usage_statistics where  version like '11%';
    I understand this may not be a generic solution , but with this idea I may be able to build up a query to get the result.
    Thanks,
    Sarayu
    How is it that you or nobody knows when the DB was upgraded?
    I would have expected a formal testing & upgrade plan.
    Does the organization practice safe software & utilize any source code repository?
    Does everyone suffer from amnesia?
    How could a MAJOR database upgrade slip by everyone who should care about such a detail?

  • How to create a Macro in excel to store the excel data to Oracle Database

    Hi All
    Does anyone has created a macro in excel which on being run stores the excel data to Oracle database. In my project I need to create one such macro for updating oracle database with excel data and another for inserting excel records.
    I tried doing this using a macro in MS access but Client wants its to be done using Excel Macro only.
    Any help would be highly appreciated.
    Thanks in advance..
    Shikha

    Please read Chapter 19.7 Creating Selection Lists (http://download.oracle.com/docs/html/B25947_01/web_complex007.htm#CEGFJFED) of the Oracle® Application Development Framework Developer's Guide For Forms/4GL Developers 10g Release 3 (10.1.3.0)
    Cheers,
    Mick.

  • What are the differences between the following terms in Oracle database?

    What are the differences between the following terms in Oracle database?
    Services
    Applications
    Modules
    Actions
    Thanks

    junez wrote:
    What are the differences between the following terms in Oracle database?
    Services
    Applications
    Modules
    Actions
    ThanksIt seems that you are posting alot of such questions, here is one thread of the same nature.
    What are the differences between the following Oracle database views?
    Please search in the oracle docs to find the information and if you have read it already, please post your doubts about it. It would help you in a better way to understand things and also would make you corrected where you would be wrong.
    HTH
    Aman....

  • What are the advantage of using Oracle Database when compare to SQL SERVER

    Hi all
    Please tell anyone about
    what are the advantage of using Oracle Database when compare to SQL SERVER
    Thanks in advance
    Balamurugan S

    user12842738 wrote:
    Hi,
    There are various differences between the two.
    1. SQL Server is only Windows, but Oracle runs on almost all Platforms.
    2. You can have multiple databases in SQL Server, but Oracle provides you only one database per instance.Given that the very term 'database' has s different meaning in the two products, this "difference" is absolutely meaningless.
    3. SQL Server provides T-SQL for writing programs, whereas Oracle provides PL/SQLWhich means what? Both products have a procedural programming language. They named them differently, and the languages are not interchangeable. Means nothing in comparing the features/strengths/weaknesses/suitability to purpose.
    4. Backup types in both are the same. (Except Oracle provides an additional backup called Logical Backup.)You make that sound like "Logical Backup" is something more than it is. It is nothing more than an export of the data and metadata. Many experts don't even consider it a backup. I'm sure SQL Server provides the same functionality though they probably call it by some other name.
    5. Both provide High Availability.Well, I guess they both have a suite of features they refer to as "High Availability". But what does that really mean? The devil is in the details. Remember, the two products don't even agree on what constitutes a "database".
    6. Both come in various distributions.???
    >
    If you are going for an Implementation, you can try SQL Server Express Edition and Oracle XE which are free to use.
    Then you can choose whichever is comfortable for your needs.
    Thanks.

  • Tablesusing in the work practice of Oracle Database 10g-SQL Fundam 1

    I want scripts sql builder for the tables (LOCATIONS, DEPARTMENTS, JOB_HISTORY, COUNTRIES, EMPLOYEES, JOBS, REGIONS, JOB_GRADES) use in the work practice of Oracle Database 10g-SQL Fundamentals(I)
    I thank you
    Youssef BENABDELLAH

    These exist in the HR schema.
    You may need to log in as SYS user and unlock the HR user account so you can log in with it (and set a password too if appropriate/necessary)

  • Do i have to pay exam center fee to an authorized oracle exam center(new horizon) in Bangladesh rather than the exam fee of Oracle Database 11g: SQL Fundamentals I ?

    Do i have to pay exam center fee to an authorized oracle exam center(new horizon) in Bangladesh rather than the exam fee of Oracle Database 11g: SQL Fundamentals I ?

    I agree with Matthew that I cannot be sure exactly what you are asking.
    Generally i regard it as less risk to yourself to schedule and pay Pearson Vue directly.
    However if you contact the exam center and get them to schedule for you my understanding is you pay them. Unfortunately there is risk of the exam center overcharging you (99%++ of most most worldwide wont).
    The only reasons for doing this I can think of is (there may be more) :-
    - is if you do not have credit/debit cards that Pearson Vue would accept.
    - The center will accept turn up and schedule and your transport to the exam center might be unreliable and you are worried you might miss the appointment and you are hoping to pay on arrival (some will not accept this).

  • How to control the connection numbers in Oracle database

    Post Author: admincrystal_2008
    CA Forum: Data Connectivity and SQL
    Hello,
    We use Crystal Report XI R2 and Oracle 10.2 database. This is a web based application on Windows server 2003. After generating the report user usually kill the broswer, but the connection is still in Oracle database. Is teher a way to set up the max connection numbers on application web server?
    Thanks for your input!

    Alekh wrote:
    lists of jobs execute concurrently.Thats a definition we all aware of ;), I meant do you want to execute the jobs in a sequence? is there any dependency? is it more like scheduling?
    And What kind of jobs you are talking about? running PL/SQL programs? or stats collection? or DB backup?
    Regards,
    Prazy

  • The problem of installing oracle database 9.2.0 on Redhat 7.2

    Hi, there,
    I meet an error when I want to run runInstaller to install oracle database 9.2.0 on Redhat 7.2 at the Oracle Database Configuration Assistant step:
    ORA-03113:end-of-file on communication channel.
    the installer report every other things are installed successfully except Database Configuration Assistant. but after I try to connect to database using sqlplus:
    sqlplus /nolog
    connect / as sysdba
    after a very long responding time, there is an interior error. I don't know how to fix it. do I need reinstall the oracle or mannully configure the database? how to do that? my machine is P2 266 with 128M memory. the harddisk is 30GB. I don't know if this problem is caused by memory limitation?
    besides, who knows any other forums or website about oracle database installed on linux? I found there is very limit resource about this content on oarcle website.
    any hint will be great appreciated!

    It could be because of the memory. Oracle 9.x requires 512 MB minimum on Linux. Also the only Red Hat Oracle is now supporting is Advanced Server. But there are workarounds.
    There is an excellent web site for installing Oracle on Linux, but it has been down for the last week or two. But try it maybe next week:
    www.puschitz.com

  • Setting up the Weblogic portal with Oracle Database

    I am creating weblogic portal domain using oracle database
    a) At the “configure JDBC Data Source “ I have changed all database sources to oracle and before this I have created the weblogic/weblogic user id and required tables spaces also
    1) cgDataSource
    2) cgDataSouce –nonXA
    3) p13nDataSource
    4) portalDatasource
    5) portalDataSourceAlwaysXa
    6) portalDataSourceNeverXa
    b) Test JDBC Data Source
    for all the data sources test has passwd
    c) Run the database scripts run and created the objects
    and when I try to start startWebLogic.sh from portal domain
    I got the below errors looking for <Test "SELECT COUNT(*) FROM SYSTABLES"
    Best Regards
    RAJ
    <Nov 24, 2010 3:58:17 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceAlwaysXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceNeverXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:20 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceNeverXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:21 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceNeverXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <LoggingService> <BEA-320400> <The log file /home/orawlp/Oracle/Middleware/user_projects/domains/portal01/servers/AdminServer/logs/portal01.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/orawlp/Oracle/Middleware/user_projects/domains/portal01/servers/AdminServer/logs/portal01.log00002. Log messages will continue to be logged in /home/orawlp/Oracle/Middleware/user_projects/domains/portal01/servers/AdminServer/logs/portal01.log.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:216:3eff:fe4e:9ac9:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.8.8.116:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "portal01" running in Development Mode>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>

    Hi,
    When i try to bring up the portal doman i am getting this errors :
    ================
    <Dec 3, 2010 7:23:29 PM SGT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'cgDataSource-nonXA' due t
    blogic.application.ModuleException: .
    weblogic.application.ModuleException:
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
    Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: weblogic.common.ResourceException: DataSource 'cgDataSource-nonXA' can not be c
    is non-transactional and so can not use XA-aware pool 'cgDataSource-nonXA'
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:236)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:204)
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:278)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
    Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: DataSource 'cgDataSource-nonXA' can not be created. It is non-transactional and
    t use XA-aware pool 'cgDataSource-nonXA'
    at weblogic.jdbc.common.internal.DataSourceManager.checkPoolConfig(DataSourceManager.java:434)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDSConfig(DataSourceManager.java:389)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:233)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:204)
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:278)
    Truncated. see log file for complete stacktrace
    >
    ==================================
    Can I ignor this error or i have to fix ????
    Best Regards
    Raj

  • What are the BEST books for Oracle database architect/designer?

    What concrete books would you recommend for OLTP database developer (to start from the scratch, starting from data sources analysis, logical and physical data modeling, indexes, tuning, maintaining). It doesn't have to be a book particulary for Oracle but suitable for it..
    I don't mean books DBA's or overall Oracle handbooks, also not for OLAP.
    Thanks!

    For learning how to use Oracle database effectively, i would say
    Tom Kyte's both books:
    Effective Oracle by design
    & Expert Oracle Database Architecture
    Jonathan Lewis's
    Practical Oracle 8i
    They tell you all the stuff: what/how to do something? and most importantly what/how not to do ?
    And their writing style is just awesome :)
    Amardeep Sidhu

  • Unable to connect to the informatica repository on oracle database 11g

    hi all,
    i have installed OBI Apps 7.9.6.0 with informatica 8.6.0 and no hotfix.
    Now the problem is , when i create a repository service i get the error
    " The service did not start due to the following error: *Unable to connect to the repository Oracle_BI_DW_Base on database* . " here Oracle_BI_DW_Base is also the name of my .rep repository that came with OBI APPS installation.
    i have oracle database 11g installed and also created respective user for repository of informatica.
    what should i do in this case??
    plz help

    Good Morning.
    I had the same problem and I had the same IE 6, the problem was the translation between the IE6 from http and https, to solve it you just need to open your url typing
    https:url:port, do no forget to put the s after the http, with this my problem was solved.
    best regards.
    Digudi - São Paulo - Brazil
    Edited by: user12267194 on 24/11/2009 05:37
    Edited by: user12267194 on 24/11/2009 05:38
    Edited by: user12267194 on 24/11/2009 05:38

  • Monitoring manually using scripts/sql cmds to find the recent changes on Oracle Database

    Hello All,
    I have an Oracle database running on HP Open VMS Alpha server, need to monitor the actvities and changes made to the database.
    I am not sure of any tools which supports HP Open VMS alpha server, Can you help with the scripts or commands to findout recent changes occured on the database.
    I found suddenly a couple of schema sizes showing very less in size than usaul, how to find out the recent changes.
    Regards,
    RanG

    RanG wrote:
    Thanks but sorry EdStevens,
    I was referring to DB Administration/auditing etc on HP Open VMS in specific. Tools or Grid agent installation steps for effective and easy monitoring.
    Regards,
    RanG
    And I was referring to "DB Administration/auditing etc " on any platform.  Oracle's AUDIT function is the same regardless of OS.
    "I found suddenly a couple of schema sizes showing very less in size than usaul,"
    Exactly what do you mean by "schema sizes showing very less in size than usual"?  Schemas don't have sizes.  Only segments.
    Perhaps if you were more explicit in exactly what problem you are trying to solve, we could give better advice, but whatever it is, I seriously doubt that the solution will be OS-specific.

  • Install Oracle Application Server on the same machine with Oracle Database

    Hello!
    I have already have installed on my laptop the oracle Database 10g, and i want to install on the same machine Oracle Application Server; can I do that? After i look on some threads on this forum I understand that all I have to do is to change the default port 1521 of the database to antoher ..let's say 1523...how can I change the port? what files do i have to modify? Oracle Application server can work in good conditions with Oracle XE or I will have the same problem?
    My SO is Windows XP Professional SP II, all updates, 512RAM, 2Ghz-CPU
    Thanks!

    Well, you'll have some problems to run simultaneously Database and AS with 512 Mb...
    Apart from that, you don't need to start two listeners, you can use just one (the highest version) for both DBs.
    If, for any reason, you want to use two, you can change the port within LISTENER.ORA file, normally in ORACLE_HOME\network\admin.

  • How to fetch the image file from oracle database and display it.

    hi... i've inserted the image file into the oracle database... now i want to retreive it and want to display it... can anybody help me... pls

    not a big deal dude... i fetched the image from database and saved it into my local hard disk.. but when tried to open it,ends up with no preview... dont know what d prob is... any idea... i've inserted the image as bytes n trying to fetch it as binary stream.. is that the problem... here im giving my insertion and retireving code.. jus go through it...
    Insertion code:_
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.io.File;
    import java.io.FileInputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    public class Browse_java
    static Connection con=null;
    public static void main(String args[])
    try{
    System.out.println("(browse.java) just entered in to the class");
    con = new PMS.DbConnection().getConnection();
    System.out.println("(browse.java) connection string is"+con);
    PreparedStatement ps = con.prepareStatement("INSERT INTO img_exp VALUES(?,?)");
    System.out.println("(browse.java) prepare statement object is"+ps);
    File file =new File("E:/vanabojanalu-/DSC02095.JPG");
    FileInputStream fs = new FileInputStream(file);
    System.out.println("lenth of file"+file.length());
    byte blob[]=new byte[(byte)file.length()];
    System.out.println("lenth of file"+blob.length);
    fs.read(blob);
    ps.setString(1,"E:/vanabojanalu-/DSC02095.JPG");
    ps.setBytes(2, blob);
    // ps.setBinaryStream(2, fs,(int)file.length());
    System.out.println("(browse.java)length of picture is"+fs.available());
    int i = ps.executeUpdate();
    System.out.println("image inserted successfully"+i);
    catch(Exception e)
    e.printStackTrace();
    finally
    try {
    con.close();
    } catch (SQLException ex) {
    ex.printStackTrace();
    and Retrieving code is:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.beans.Statement;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.jdbc.OracleResultSet;
    * @author Administrator
    public class view_image2 extends HttpServlet {
    * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("image/jpeg");
    //PrintWriter out = response.getWriter();
    try
    javax.servlet.http.HttpServletResponse res=null;;
    int returnValue = 0;
    Connection con = null;
    PreparedStatement stmt = null;
    ResultSet rs = null;
    InputStream in = null;
    OutputStream os = null;
    Blob blob = null;
    //String text;
    //text=request.getParameter("text");
    //Class.forName("com.mysql.jdbc.Driver");
    con=new PMS.DbConnection().getConnection();
    System.out.println("jus entered the class");
    //String query = "SELECT B_IMAGE FROM img_exp where VC_IMG_PATH=?";
    //conn.setAutoCommit(false);
    PreparedStatement pst = con.prepareStatement("select b_image from img_exp where vc_img_path=?");
    System.out.println("before executing the query");
    pst.setString(1,"C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    rs = pst.executeQuery();
    //System.out.println("status of result set is"+rs.next());
    System.out.println("finished writing the query");
    int i=1;
    if(rs.next())
    System.out.println("in rs") ;
    byte[] byte_image=rs.getBytes(1);
    // byte blob_byte[]= new byte[(byte)blob.length()];
    //System.out.println("length of byte is"+blob_byte);
    //String len1 = (Oracle.sql.blob)rs.getString(1);
    //System.out.println("value of string is"+len1);
    //int len = len1.length();
    //byte [] b = new byte[len];
    //in = rs.getBinaryStream(1);
    int index = in.read(byte_image, 0, byte_image.length);
    System.out.println("value of in and index are"+in+" "+index);
    FileOutputStream outImej = new FileOutputStream("C://"+i+".JPG");
    //FileOutputStream fos = new FileOutputStream (imgFileName);
    BufferedOutputStream bos = new BufferedOutputStream (outImej);
    //byte [] byte_array = new byte [blob_byte.length]; //assuming 512k size; you can vary
    //this size depending upon avlBytes
    //int bytes_read = in.read(blob_byte);
    bos.write(index);
    /*while (index != -1)
    outImej.write(blob_byte, 0, index);
    index = in.read(blob_byte, 0, blob_byte.length);
    //System.out.println("==========================");
    //System.out.println(index);
    //System.out.println(outImej);
    //System.out.println("==========================");
    /*ServletOutputStream sout = response.getOutputStream(outImej);
              for(int n = 0; n < blob_byte.length; n++) {
                   sout.write(blob_byte[n]);
              sout.flush();
              sout.close();*/
    outImej.close();
    //i++;
    else
    returnValue = 1;
    catch(Exception e)
    System.out.println("SQLEXCEPTION : " +e);
    finally {
    //out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    * Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    * Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    * Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    // </editor-fold>
    }

Maybe you are looking for

  • Battery Serial Number Report For Laptops?

    Does anyone know if there is a way to get a report of the battery serial number via ARD 3? Chris H. G5 Desktop   Mac OS X (10.4.7)  

  • NullpointerException in java.util.Hashtable.access$100 ???

    Hi folks. I am trying to reconstruct a Hashtable using my own way of serialization/deserialization via Java Reflection. It works fine with most classes, but a reconstructed hashtable is seriously screwed up. After reconstruction, it is passed as an a

  • ERROR" unable to convert the service as an ALE logical system"

    Hello All, In SOAP to IDOC scenario I tested the webservice with the client tool. Its hitting the integration engine but its throwing up an error" unable to convert the service as an ALE logical system". How can I maintain a logical system for a serv

  • Link not available

    Hi i cant download files through my mobile nokia C2 01 it if i click on any files it shows a msg as link not available help.

  • I pad keeps blacking out

    I pad continues to go blank after a short while, will come back on if I press safari but will keep doing the same