Some details on Oracle and ARM partnership?

"The long-standing relationship between ARM and Oracle has enabled our mutual technologies to be deployed across a broad spectrum of products and applications," commented Henrik Stahl, vice president, Java Product Management, Oracle.  "By working closely with ARM to enhance the JVM, adding support for 64-bit ARM technology and optimizing other aspects of the Java SE product for the ARM architecture, enterprise and embedded customers  can reap the benefits of high-performance, energy-efficient platforms based on ARM technology."
ARM AND ORACLE ANNOUNCE PLANS TO OPTIMIZE JAVA SE FOR… - ARM
Is it possible to obtain some details on plans for embedded, given it could be useful for JavaFX?
Thanks,
Gaja.

Yes, what about JavaFX, JavaSE and iOS/Android???

Similar Messages

  • Some problems with Oracle and XA in WLS 6.1

    Hi,
    I am using WLS6.1 SP4 with Oracle Thin driver 8.1.7 and TxDataSources with ConnectionPools
    using XA.
    I am getting the following error:
    java.sql.SQLException: ORA-00604: error producido a nivel 1 de SQL recursivo
    ORA-01000: número máximo de cursores abiertos excedido
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1657)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1870)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:314)
         at weblogic.jdbc.jta.PreparedStatement.executeQuery(PreparedStatement.java:69)
         at weblogic.jdbc.rmi.internal.PreparedStatementImpl.executeQuery(PreparedStatementImpl.java:56)
         at weblogic.jdbc.rmi.SerialPreparedStatement.executeQuery(SerialPreparedStatement.java:42)
         at delta.beans.common.DBQueriesRemesa.getSecuencia(DBQueriesRemesa.java:55)
         at delta.beans.remesas.ImportarRemesa2.remesaRATSB(ImportarRemesa2.java:858)
         at delta.beans.remesas.ImportarRemesa2.execute(ImportarRemesa2.java:122)
         at java.lang.reflect.Method.invoke(Native Method)
         at delta.servlet.contrl.service(contrl.java:161)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:21)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at delta.servlet.VolverFiltro.doFilter(VolverFiltro.java:101)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2643)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    I have read about this issue in the newsgroup and I know it seems to be a bug
    in Oracle Driver.
    So, as a workaround, I'm trying to use the Oracle's prepared statement cache features
    in order to avoid creations of new statements for each query. I noticed that the
    WebLogic prepared statement cache does not work properly, because I put a value
    of 10 but when inspecting with WLShell it haven't any hit in the statement cache.
    In order to use Oracle's prepared statement cache I have to enable it in the physical
    connection, but I don't found in weblogic.jar the class weblogic.jdbc.extensions.WLConnection
    which have the method getVendorConnection. In the documentation available at http://edocs.beasys.com/wls/docs61/javadocs/index.html
    there is a reference to that class and it haven't any notice since which service
    pack it becomes available.
    So, is there any way to obtain the physical connection?
    Can anybody help me about any of these problems??
    Thanks in advance.
    Jesús.

    The line of code that brings up this exception is:
    multiReq = new
    = new MultipartRequest((ServletRequest)request,
    "c:\\temp", 10485760);
    try this: MultipartRequest multiReq = new MultipartRequest((ServletRequest)request,
    "c:\\temp", 10485760);
    (not sure if that is the problem or not..)

  • Some problem about SAP R/3 ~ I need some detail solutions and suggests

    I need some detail solutions and suggests about below these problems:
    Problem 1: SAP Management Console cannot start successfully
    •     Problem 1.1: Click on SAP Management Console, but yellow light continues for a long period of time.
    •     Problem 1.2: In DOS, startsap command cannot start SAP R/3.
    •     Problem 1.3: Oracle 9i database automatically shutdown by itself.
    •     Problem 1.4: There is very low disk storage left (say less than 50MB) in the hard disk where Oracle 9i database is installed in the server.
    Problem 2: Problems in User Maintenance and Security of the SAP R/3 System
    •     Problem 2.1: Super user account password was lost (e.g. SAP* password was lost)
    •     Problem 2.2: Super users DDIC and SAP* were dropped in table usr02 in Oracle.
    •     Problem 2.3: Some users have been locked or deleted by an ABAP programmer who has been granted with almost superuser profiles.  For example, an ABAP programmer has been granted a profile of SAP_ALL and SAP_NEW but the system administrator would like to restrict all programmers form using SU01, SU02, SM01, so that no programmers can maintain other user's accounts.
    Problem 3: Problems in the configuration of client copy
    •     Problem 3.1: A copied client from the Client 000 cannot be customized.
    •     Problem 3.2: No sample data in IDES after a successful client copy.
    •     Problem 3.3: Logging on without being authorized.  A new client is created and client copied and transported successfully.  However, anyone can log into the system using user SAP* with the default password PASS.
    Problem 4:  Problems in the installation of SAP R/3 Server
    •     Problem 4.1: Computer Name of the SAP R/3 server has been changed after the full installation of Oracle 9i and SAP R/3.
    •     Problem 4.2: A network card of a server was faulty and it was replaced by a new network card but the SAP R/3 license was expired.
    •     Problem 4.3: You would like to reinstall SAP R/3 on a server which has previously installed with SAP R/3 but the same error message appears during the re-installation.
    Problem 5: Problems in the backup and recovery of Oracle 9i Database
    •     Problem 5.1: A redo log file was lost and the database could not be started.
    •     Problem 5.2: A group of data files were accidentally deleted and the database could not be started.
    •     Problem 5.3: Both the online redo log files and archived redo log files have been damaged.
    Problem 6: General problems regarding the general operations and the connection to the SAP R/3 System
    •     Problem 6.1: After a reboot of the Windows 2003 Server, SAP service is not automatically started.
    •     Problem 6.2: Some users complained that the performance of SAP R/3 is really very slow.
    •     Problem 6.3: A user complained that his/her password was correct but he/she could not lock on the client because it was locked.

    Problem 2
    2.1  If user account of the sap* is lost u can retrive by loging into os level as sidadm type this command
    DELETE  SAP<sid>.USR02 where BNAME='SAP*' AND MANDT=100
    This 100 is the client in which u want to delete the sap*
    after that restart the server and login as sap* with the default password as pass
    there is also another way of doing this if needed u can catch me at [email protected]

  • I need some detail solutions and suggests about below these problems ?

    I need some detail solutions and suggests about below these problems:
    Problem 1: SAP Management Console cannot start successfully
    • Problem 1.1: Click on SAP Management Console, but yellow light continues for a long period of time.
    • Problem 1.2: In DOS, startsap command cannot start SAP R/3.
    • Problem 1.3: Oracle 9i database automatically shutdown by itself.
    • Problem 1.4: There is very low disk storage left (say less than 50MB) in the hard disk where Oracle 9i database is installed in the server.

    3.1 - If you client copy from client 000, you need to go to SCC4 and set the client to customizing chnages allowed;
    3.2 - If you do a client copy from client 800 (the one that SAP delivers data in) you should have data. Client 000 is empty (almost).
    3.3 - You should be able to change the password of SAP* PASS user.
    I am not sure which version you are dealing with, but ERP2004 and ERP2005 allow you to change the password suring installation.
    Also, there is a parameter that can be maintained that allows you to log on as SAP*. If you set as not available, no one can log on.
    Hope it helps,
    Leonardo De Araujo

  • Differences between being an Oracle and SQL DBA?

    Sorry to post this here, but I need so insight and don't know any Oracle DBA's. As posted here before, Ive been a MSSQL DBA for about 6 years and want to broaden my skill set. One of my ideas is to learn Oracle. For the record, I do realize that my teaching myself wont open up hundreds or Oracle DBA jobs, but Im hoping to land a "mostly SQL with a little Oracle" gig somewhere. Ive successfully installed Oracle on Linux, and now need to make a decision on if to proceed or not. Any insights from people that have worked with both platforms would be especially helpful, but all thoughts are definately welcomed. So now my questions:
    1. Why are Oracle DBA's paid more than SQL DBA's? It must be something skill specific? What is it?
    2. Will this trend likely continue as newer versions of Oracle are released that are easier to manage?
    3. With that extra cash, is there typically more hours involved? I dont mind working a bit extra if needed, but I do have little ones that I'd like to watch grow up.
    4. Are there typically differences in the job responsibilities between Oracle and SQL DBA's? The changing trend these days is to include DTS/ Analysis Services/ Reporting Services all under the DBA umbrella. Do Oracle DBA's typically have the same type of stuff?
    5. If I do continue down this path, it would probably be far easier for me to learn on Windows than *nix. Is this a valid thing to do, or should I not bother? I've been told that it's still worth while, but have real reservations about needing to tell an interviewer "I've only used it on Windows".
    I realize this is all subject to personal experiences and feelings, but don't know how else to figure this stuff out without asking.
    TIA, ChrisR

    By SQL DBA, I assume you mean SQL Server DBA. SQL is 'Structure Query Language' and is not a specific product, no matter how much the Microsoft community might wish to usurp the term. <g>
    There are mauy reasons for this, including the Oracle vs Microsoft mindset that has been nurtured over the years. For many managers, 'Oracle is solid, reliable and expensive' whereas 'Microsoft SQL Server is cheap, not necessarily as reliable, but good enough'.
    Whether true or not is irrelevant, these are direct quotes from some of my customers.
    My remaining answers are based on my personal experience, and may only be valid in my area. (Yes, things are VERY regional.)
    >
    1. Why are Oracle DBA's paid more than SQL DBA's? It
    must be something skill specific? What is it? Often, an Oracle DBA is a trained DBA. SQL Server DBAs seem to be decent developers who are [or have been stuck] doing DBA work.
    I find that SQL Server DBAs who are truly capable of handling all of {backup, recovery, troubleshooting, security, development, disaster recovery, audit, locking, configuration, RAID and disk, upgrade, migration and porting (to name a few)} competently are generally paid comparable to Oracle DBAs.
    However, I also find there are extremely few true SQL Server DBAs.
    >
    2. Will this trend likely continue as newer versions
    of Oracle are released that are easier to manage?Yes.
    Although Oracle administration is easier, DBAs are now expected to handle more instances, and adminstrator across more servers, and are expected to be competent in more of the feature capabilities.
    There is NO reduction in the amount of work. The 'easier to manage' stuff simply means being more efficient.
    >
    3. With that extra cash, is there typically more
    hours involved? I dont mind working a bit extra if
    needed, but I do have little ones that I'd like to
    watch grow up.
    A blatant observation: Oracle tends to be used in more mission critical environments, and SQL Server in department support environments. Mission critical tends to be watched closer, and require 'fast aqnd competent' response. Pager duty seems to be more prevelant in Oracle positions - department server crashes can be handled by a reboot in the morning.
    4. Are there typically differences in the job
    responsibilities between Oracle and SQL DBA's? The
    changing trend these days is to include DTS/ Analysis
    Services/ Reporting Services all under the DBA
    umbrella. Do Oracle DBA's typically have the same
    type of stuff?Many SQL Server 'DBAs' I know personally are 'super developers' but not really DBAs.
    Observation: DBAs are often very 'repeatable' detail oriented, whereas developers are 'get it done' oriented. Very different mentailties, both very important.
    >
    5. If I do continue down this path, it would probably
    be far easier for me to learn on Windows than *nix.
    Is this a valid thing to do, or should I not bother?
    I've been told that it's still worth while, but have
    real reservations about needing to tell an
    interviewer "I've only used it on Windows". Oracle is quite operating system independant. Pick your poison.
    SQL Server is quite operating system dependant. Some else picks your poison.
    There is no shame in saying to an interviewer that you have a strong competence in Oracle but only experience in Windows. A good potential employer will often provide appropriate additional training to a suitable, honest, candidate.
    >
    I realize this is all subject to personal experiences
    and feelings, but don't know how else to figure this
    stuff out without asking.
    I strongly encourage you to contact locals rather than ask in these forums. Check whether there is an Oracle User Group close to you, and meet and chat with the members. Ditto for SQL Server. (You can find out by contacting respective sales reps.)
    The above is NOT a dismissal of SQL Server capabiltites or SQL Server DBAs. (Some close friends are extremely competent with SQL Server.) It is just a set of personal observations.

  • Master-Detail Composition - oracle.jbo.InvalidOwnerException: JBO-25030

    I created mater-detail using composition and during testing BC layer, everthing works great. Moreover I debuged BC test tool and to add new row it using methd createAndInitRow() from ViewObjectImpl .
    I want to create the same in JHS and i have got oracle.jbo.InvalidOwnerException: JBO-25030, I see that you are using createRow in TableBean, maybe it's the cause.

    I read this article, and some other about JBO-25030, but I want to solve it in JHS, problem is that I try add master and details in one transaction.
    You can try to reproduce my case in MyJhsTurorial demo: 1. Create a composition between Departament and Employee (EmpDepFkAssoc), check implement cascade delete and cascade update key.
    2. Run it and try to add departament with employees in one transaction (click only add for departament and next new employee)...
    How can I fix this problem?
    Moreover I want to add a validation for master before adding new details. How can I do it in JHS?
    Edited by: kmichalski on Jun 10, 2011 5:55 AM

  • Extracting the DML queries by LCR in Oracle and send them over to IBM MQ

    Hi,
    My question is mostly about the concept of LCR (logical change recortds in Oracle Streams)
    I want to extract any DML script which has been applied to one specific table, but i don't want to apply this DML anywhere , I just want to send it over by AQ in oracle and then
    the MQ queues in IBM will recieve it.
    I don't know what the Mainframe guys are going to do with it but my task is to just send them the script?
    Do you think it's possible using the LCRs?
    Thanks in advance for comments!

    I had implemented such a setup few months back and it works fine except for some performance issues.
    you'll need to implement oracle streams and oracle messaging gateway for this propagation.
    below mentioned are the generalized steps:
    >>capture changes from redo log for the table by creating a capture process.
    >>store these messages in the staging area of advanced queues, which in turn are queues themselves.
    >>use apply process to enqueue these messages onto messaging gateway queue.
    >>the messages can be transported to Websphere MQ by creating propagation jobs, foreign queue links, messaging gateway agents etc.
    you can figure out the basic details using the link mentioned below.
    http://csus-dspace.calstate.edu/bitstream/handle/10211.9/1004/Masters%20Project%20Report_Raj_1222010.pdf?sequence=1

  • Oracle and Informatica Powercenter?

    Hi,
    I have seen a few people saying Informatica Powercenter 8.x/9.x could be downloaded from Oracle eDelivery web site.
    Eg.
    Where can I get Informatica PowerCenter ?
    https://forums.oracle.com/forums/thread.jspa?messageID=10292290
    I don't quite understand this.
    Is Informatica owned and distributed by Oracle?
    Could someone shed some light?
    Thanks

    Thanks Jai for the reply.
    Do Oracle and Informatica still have the same partnership?
    Does that mean we can still download latest Powercenter from Oracle web site?
    I can see "Informatica Powercenter adapters for Oracle" downloads in Oracle, but couldn't find Powercenter server/client.
    So, doesn't Oracle Warehouse Builder compete with Powercenter?
    I went to Informatica website, but couldn't find a Powercenter download link. It looks as if Informatica does not want anyone to download trial versions of Powercenter.
    Thanks
    Edited by: Sman on Apr 25, 2012 11:26 PM

  • Will MaxDB beat Oracle and SQLserver in the market?

    Somebody tells me that eventually MaxDB will dominate the market.
    I do not believe.   Do you agree?   Thanks!

    Hi Lars;
    and at first, thanks a bunch for the well-put reply.
    >
    > But to be serious - putting MaxDB into the solution stack and not as a product is a business decision.
    > It's not about technical ability, feature set or something like that.
    Yes. I am fully aware of this. It seems the case in most of these situations, and, as I stated, eventually business decisions and strategic decisions are just to be taken as granted.
    > Depends on what "beneficial" really means.
    > SAP does have agreements and partnerships with all the important DBMS vendors.
    > These companies have whole LOBs just for the database product.
    > They make money from it.
    > And they may be annoyed to have another competitor on the scene.
    That, for sure, sounds reasonable. But, from that point of view, of course (not wanting to be provocative): If not wanting to be into the database market after all, having partnerships with all major database vendors, and eventually having a load of open source databases out there to build upon for those who don't want Oracle, why bother maintaining "another" custom DBM system after all? This seems somewhat ambivalent.
    > SAP does not do this. SAP does not sell programs. SAP sells business solutions.
    > That's where our money comes from - providing solutions to every customers business so that the customer can make better business.
    Yes... Yesss. That's what I see, and that's what we want. We don't really care about buying a piece of DBMS software. Our business is to offer services based upon software, some being third-party code (be that open source or proprietary), some being developed or at least customized in-house. DBMS is something we see as a basic service which just "should be there" without having to bother that much. In most cases (Oracle, DB2, or also mySQL) it is not like this - one has to deal with buying licenses, with education to dig deep into the guts of these systems, and then the "real work" just starts. MaxDB does rather good here leaving this "getting-started" hurdle rather low. And for the rest, at least from our point of view, MaxDB service (support, on-demand custom training, help in performance tuning, ...) on top of this indeed seems a "business solution", thus no contradiction to what SAP business is all about...
    I think you are basically right about database market being saturated relating to DBMS as "boxed products". However, the "other" market (free or open source "product" along with enterprise strength support on top for those who want / need it) so far mainly seems dominated by mySQL and, to some degree, postgreSQL. Not sure whether this is (yet?) an actual market, though. Maybe the acquisition of Sun by Oracle and, subsequently, the fact of mySQL being at stake to some degree could be an option for MaxDB to attract more users...
    > One example: remote access to the database systems and the analysis tools of the SAP NetWeaver CCMS.
    > Both of them are crucial for the day to day support for MaxDB/liveCache work we do for SAP customers.
    > Without them, support becomes slow, cost intensive (for us) and difficult.
    > Since SAP customers do have all this infrastructure it's easy to offer them support for a MaxDB that is used for something else.
    I see... I also can imagine that supporting MaxDB used for something, well, eventually "unfamiliar" (unknown application / table structure, unknown user infrastructure, ...) is rather more difficult than, say, supporting it for a bunch of well-known applications and environments. From this point, the most straightforward (and eventually only?) way seems a "rent-an-engineer" kind of support approach - have someone visit your site for a couple of days to look around things, to look at what's there and try evaluating what could be wrong / improved / ... . But indeed maybe this is beyond the scope of SAP business approach...
    > Personally I do of course see that there is some interest from the "Open Source" users for such an offering.
    > I also see that there are constraints to the development of MaxDB that maybe wouldn't be so tight if this would be a product on its own (there are really only a few people developing it, compared with other DBMS vendors...)
    Or, another way 'round, if people would have paid more attention... Remembering the "dual licensing experiment" of MaxDB < 7.6 beind distributed by mySQL AB, I kinda hoped MaxDB attracting a couple of open source developers to participate in development and, eventually, "adopt" the source code and help driving forth MaxDB as something like a "corporate backed open source" project. Obviously, it didn't seem to work out this way, if it was intended to be like this at all...
    > DISCLAIMER:
    As usual when talking about SAP business strategy, these are my personal thoughts and views and in no way any kind of official statement of SAP.
    Acknowledged.
    Cheers,
    Kristian
    Edited by: Kristian Rink on May 28, 2009 9:29 AM
    Edited by: Kristian Rink on May 28, 2009 9:30 AM

  • Oracle and empty strings

    Hi All,
    i'm porting my application to Oracle and i'm experiencing (big) issues since empty strings are treated as null by Oracle.
    This is a big issue for me since my application uses empty and null values as two different things (indeed they are different !!), ie, i'm not having null pointer exception, but wrong behavior.
    I'm thinking what's the best approach to follow since my appl. must work also on mysql and postgres.
    Three options at the moment:
    1. implement a jdbc wrapper that converts any empty string in something like '~'.
    2. using aspectj, add some aspects to setString/getString converting any empty string in something like '~'.
    3. buy a commercial driver that makes difference between empty and null (using aforementioned approaches ?).
    I think that this difference in Oracle is really an impediment in doing applications db neutral and I'd like to ask your opinion about the best solution (if someone already resolved it as i guess).
    Does anyone know if there are commercial jdbc driver that can help me ?
    Does anyone know how ORM frameworks (like hibernate) handle this case ?
    Thanks in advance
    ste

    jschell wrote:
    nichele wrote:
    jwenting wrote:
    If NULL really is different in your context from an empty string you're going to have to define some sequence of characters as indicating an empty string.yes, this is what i need to implement.Sounds like a flawed design then.
    I'm wondering what's the best approach in order to avoid to change all my application isolating this behavior somewhere (wrapping the jdbc driver for instance).That doesn't make much sense to me. You should already have a database layer. You change the database layer. If you don't have a database layer then that means you have another design flaw. And in that case I would really not be the one that needs to maintain that code base.I thought a bit about the value of your answer...but i didn't find it ....sorry but i don't like who replies on forum just to say bad design/bad choice etc...if you have any kind of suggestion you are welcome, otherwise you can spend your time in doing something else instead of reply to this thread.

  • How do I set miminum # of connections for pool with Oracle and Tomcat?

    Hi,
    I can't seem to find any attribute to initialize the number of connections for my connection pool. Here is my current context.xml file under my /App1 directory:
    <Context path="/App1" docBase="App1"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="App1ConnectionPool" auth="Container"
    type="oracle.jdbc.pool.OracleDataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver"
    factory="oracle.jdbc.pool.OracleDataSourceFactory"
    url="jdbc:oracle:thin:@127.0.0.1:1521:oddjob"
    user="app1" password="app1" />
    </Context>
    I've been googling and reading forums, but haven't found a way to establish the minimum number of connections. I've tried all sorts of parameters like InitialLimit, MinLimit, MinActive, etc, with no success.
    Here is some sample code that I am testing:
    package web;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.OracleConnection;
    import javax.naming.*;
    import java.sql.SQLException;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Properties;
    public class ConnectionPool {
    String message = "Not Connected";
    public void init() {
    OracleConnection conn = null;
    ResultSet rst = null;
    Statement stmt = null;
    try {
    Context initContext = new InitialContext();
    Context envContext = (Context) initContext.lookup("java:/comp/env");
    OracleDataSource ds = (OracleDataSource) envContext.lookup("App1ConnectionPool");
    message = "Here.";
         String user = ds.getUser();
    if (envContext == null)
    throw new Exception("Error: No Context");
    if (ds == null)
    throw new Exception("Error: No DataSource");
    if (ds != null) {
    message = "Trying to connect...";
    conn = (OracleConnection) ds.getConnection();
    Properties prop = new Properties();
    prop.put("PROXY_USER_NAME", "adavey/xxx");
    if (conn != null) {
    message = "Got Connection " + conn.toString() + ", ";
              conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME,prop);
    stmt = conn.createStatement();
    rst = stmt.executeQuery("SELECT username, server from v$session where username is not null");
    while (rst.next()) {
    message = "DS User: " + user + "; DB User: " + rst.getString(1) + "; Server: " + rst.getString(2);
    rst.close();
    rst = null;
    stmt.close();
    stmt = null;
    conn.close(); // Return to connection pool
    conn = null; // Make sure we don't close it twice
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // Always make sure result sets and statements are closed,
    // and the connection is returned to the pool
    if (rst != null) {
    try {
    rst.close();
    } catch (SQLException e) {
    rst = null;
    if (stmt != null) {
    try {
    stmt.close();
    } catch (SQLException e) {
    stmt = null;
    if (conn != null) {
    try {
    conn.close();
    } catch (SQLException e) {
    conn = null;
    public String getMessage() {
    return message;
    I'm using a utility to repeatedly call a JSP page that uses this class and displays the message variable. This utility allows me to specify the number of concurrent web requests and an overall number of requests to try. While that is running, I look at V$SESSION in Oracle and occassionaly, I will see a brief entry for app1 or adavey depending on the timing of my query and how far along the code has processed in this example. So it seems that I am only using one connection at a time and not a true connection pool.
    Is it possible that I need to use the oci driver instead of the thin driver? I've looked at the javadoc for oci and the OCIConnectionPool has a setPoolConfig method to set initial, min and max connections. However, it appears that this can only be set via Java code and not as a parameter in my context.xml resource file. If I have to set it each time I get a database connection, it seems like it sort of defeats the purpose of having Tomcat maintain the connection pool for me and that I need to implement my own connection pool. I'm a newbie to this technology so I really don't want to go this route.
    Any advice on setting up a proper connection pool that works with Tomcat and Oracle proxy sessions would be greatly appreciated.
    Thanks,
    Alan

    Well I did some more experiments and I am able to at least create a connection pool within my example code:
    package web;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.OracleConnection;
    import javax.naming.*;
    import java.sql.SQLException;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Properties;
    public class ConnectionPool {
    String message = "Not Connected";
    public void init() {
    OracleConnection conn = null;
    ResultSet rst = null;
    Statement stmt = null;
    try {
    Context initContext = new InitialContext();
    Context envContext = (Context) initContext.lookup("java:/comp/env");
    OracleDataSource ds = (OracleDataSource) envContext.lookup("App1ConnectionPool");
    message = "Here.";
         String user = ds.getUser();
    if (envContext == null)
    throw new Exception("Error: No Context");
    if (ds == null)
    throw new Exception("Error: No DataSource");
    if (ds != null) {
    message = "Trying to connect...";
    boolean cache_enabled = ds.getConnectionCachingEnabled();
    if (!cache_enabled){
    ds.setConnectionCachingEnabled(true);
    Properties cacheProps = new Properties();
    cacheProps.put("InitialLimit","5");
         cacheProps.put("MinLimit","5");
    cacheProps.put("MaxLimit","10");
    ds.setConnectionCacheProperties(cacheProps);
              conn = (OracleConnection) ds.getConnection();
    Properties prop = new Properties();
    prop.put("PROXY_USER_NAME", "adavey/xyz");
    if (conn != null) {
    message = "Got Connection " + conn.toString() + ", ";
              conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME,prop);
    stmt = conn.createStatement();
    //rst = stmt.executeQuery("SELECT 'Success obtaining connection' FROM DUAL");
    rst = stmt.executeQuery("SELECT user, SYS_CONTEXT ('USERENV', 'SESSION_USER') from dual");
    while (rst.next()) {
    message = "DS User: " + user + "; DB User: " + rst.getString(1) + "; sys_context: " + rst.getString(2);
    message += "; Was cache enabled?: " + cache_enabled;
    rst.close();
    rst = null;
    stmt.close();
    stmt = null;
    conn.close(OracleConnection.PROXY_SESSION); // Return to connection pool
    conn = null; // Make sure we don't close it twice
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // Always make sure result sets and statements are closed,
    // and the connection is returned to the pool
    if (rst != null) {
    try {
    rst.close();
    } catch (SQLException e) {
    rst = null;
    if (stmt != null) {
    try {
    stmt.close();
    } catch (SQLException e) {
    stmt = null;
    if (conn != null) {
    try {
    conn.close();
    } catch (SQLException e) {
    conn = null;
    public String getMessage() {
    return message;
    In my context.xml file, I tried to specify the same Connection Cache Properties as attributes, but no luck:
    <Context path="/App1" docBase="App1"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="App1ConnectionPool" auth="Container"
    type="oracle.jdbc.pool.OracleDataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    factory="oracle.jdbc.pool.OracleDataSourceFactory"
    url="jdbc:oracle:thin:@127.0.0.1:1521:oddjob"
    user="app1" password="app1"
    ConnectionCachingEnabled="1" MinLimit="5" MaxLimit="20"/>
    </Context>
    These attributes seemed to have no effect:
    ConnectionCachingEnabled="1" ; also tried "true"
    MinLimit="5"
    MaxLimit="20"
    So basically if I could find some way to get these attributes set within the context.xml file instead of my code, I would be a happy developer :-)
    Oh well, it's almost Miller time here on the east coast. Maybe a few beers will help me find the solution I'm looking for.

  • I am new to using Oracle, and I am trying to create an add/insert stored pr

    I am new to using Oracle, and I am trying to create an add/insert stored procedure for a table. The PROD_CD and PLAN_CD fields in my table can have no value (empty or null) Can you please check my code and let me know what I am doing wrong?
    Table definition:
    CREATE TABLE DCWEB.USER_PLAN_PREFERENCE
    USERID VARCHAR2(40) NOT NULL,
    PROD_CD VARCHAR2(9) NULL,
    PLAN_CD VARCHAR2(9) NULL,
    STATE_LST VARCHAR2(2) NOT NULL,
    STATE_NM VARCHAR2(40) NOT NULL,
    LST_UPDATE_TS TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL
    ALTER TABLE DCWEB.USER_PLAN_PREFERENCE
    ADD CONSTRAINT USER_PLAN_PREFERENCE_XPK PRIMARY KEY (USERID, PROD_CD, PLAN_CD);
    -- Grant/Revoke object privileges
    grant select, insert, update, delete on DCWEB.USER_PLAN_PREFERENCE to HIGGIB1;
    Stored Procedure Definition:
    procedure setUserPlanPref (
    userid in varchar2,
    prod_cd in varchar2,
    plan_cd in varchar2,
    state_lst in varchar2,
    state_nm in varchar2
    is
    currentTimestamp timestamp := current_timestamp;
    begin
    insert into user_plan_preference (userid, prod_cd, plan_cd, state_lst, state_nm, lst_update_ts)
    values (upper(userid), upper(prod_cd), upper(plan_cd), upper(state_lst), upper(state_nm), currentTimestamp);
    commit;
    exception
    when dup_val_on_index then
    begin
    update user_plan_preference up set
    up.userid = upper(userid),
    up.prod_cd = upper(prod_cd),
    up.plan_cd = upper(plan_cd),
    up.state_lst = upper(state_lst),
    up.state_nm = upper(state_nm),
    up.lst_update_ts = currentTimestamp
    where up.userid = upper(userid)
    and up.prod_cd = upper(prod_cd)
    and up.plan_cd = upper(plan_cd);
    commit;
    exception
    when others then
    rollback;
    end;
    when others then
    rollback;
    end;
    end;
    INPUT DATA
    I am unable to insert a record calling the stored procedure with values: DCWEB4578, , 2P, CA, CALIFORNIA but when I change to the string "NULL", the insert succeeds. When I try to call the stored procedure to update the inserted record with values: DCWEB4578, "NULL", 2P, CO, COLORODO the update does not happen since I still see the original record in the table. Please advise. Thanks in advance for your help.

    938319 wrote:
    I am new to using OracleWelcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you've updated your profile with a real handle instead of "938319".
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    With APEX we're fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Thanks for posting the complete code, it makes it so much easier to understand the problem, but always post code wrapped in tags<tt>\...\</tt> tags to preserve formatting and special characters.
    and I am trying to create an add/insert stored procedure for a table.Does this have anything to do with APEX, for which this is the forum? General SQL &amp PL/SQL matters should be directed to the {forum:id=75} forum.
    The PROD_CD and PLAN_CD fields in my table can have no value (empty or null) Can you please check my code and let me know what I am doing wrong?This:
               commit;
    exception
    when others then
    rollback;
    end;
    when others then
    rollback;Remove it all.
    Commits should be issued by end user/client software on completion of a transaction. This means <tt>commit;</tt> should almost never appear in PL/SQL code. The main exception to this is in <tt>dbms_job/secheduler</tt> scheduled processes that have no client or UI. If this code is executed from APEX, then APEX issues more than enough commits anyway.
    exceptions are just a way of ensuring your code is buggy.<tt>when others</tt> exceptions are just a way of ensuring your code is buggy.
    INPUT DATA
    I am unable to insert a record calling the stored procedure with values: DCWEB4578, , 2P, CA, CALIFORNIA but when I change to the string "NULL", the insert succeeds. When I try to call the stored procedure to update the inserted record with values: DCWEB4578, "NULL", 2P, CO, COLORODO the update does not happen since I still see the original record in the table. Please advise. Thanks in advance for your help.With the <tt>commit</tt>s and <tt>when others...</tt> removed from the code you'll have a chance of seeing what's actually happening. Note that the entire procedure can be simplified by writing as a MERGE</tt> statement.

  • How to find out when data was deleted from table in oracle and Who deleted that

    HI Experts,
    Help me for below query:
    how to find out when data was deleted from table in oracle and Who deleted that ?
    I did that to fidn out some data from dba_tab_modifications, but I m not sure that what timestamp shows, wether it shows for update,insert or delete time ?
    SQL> select TABLE_OWNER,TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP,DROP_SEGMENTS,TRUNCATED from dba_tab_modifications where TABLE_NAME='F9001';
    TABLE_OWNER                    TABLE_NAME                        INSERTS    UPDATES    DELETES     TIMESTAMP         DROP_SEGMENTS TRU
    PRODCTL                        F9001                                                     1683         46       2171            11-12-13 18:23:39             0                   NO
    Audit is enable in my enviroment?
    customer is facing the issue and data missing in the table and I told him that yes there is a delete at 11-12-13 18:23:39 in table after seeing the DELETS column and timestamp in dba_tab_modifications, but not sure I am right or not
    SQL> show parameter audit
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      /oracle/admin/pbowe/adump
    audit_sys_operations                 boolean     TRUE
    audit_syslog_level                   string
    audit_trail                          string      DB, EXTENDED
    please help
    Thanks
    Sam

    LOGMiner --> Using LogMiner to Analyze Redo Log Files
    AUDIT --> Configuring and Administering Auditing

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • Need Expert Advice regarding oracle and java objects

    In our project, we are submitting data for many screens at a time. Some screens will have a list of records to be submitted. There is also some hierarchy among the data up to 4 levels.
    In such a scenario, we need to know the best way to exchange data between Oracle and Java. Currently java holds the data as objects, where each object may contain an array of next level of objects in it.
    Is it best approach to pass the entire data with hierarchy to Oracle using nested table approach and internally oracle handling the data? Is there any other way to do this?
    Also in some scenarios we need to pass the entire information for all the screens in one shot with the hierarchy. So we need to know a solution for that also. Could you please help us in this regard?

    See Oracle JPublisher technique to map Oracle object types to Java ones:
    http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96658/toc.htm
    Rgds

Maybe you are looking for

  • Boot camp for Mac OS 10.4.11

    Hello All, On my Mac I dual booted Win XP I upgrade Mac OS X 10.4.7 ; to 10.4.11. On my machine both OS works fine . But now I want to uninstall Win XP. How should I uninstall it , because my Mac OS Install Disk 1 does not have boocamp.pkg and my App

  • N95 v21.0.016 bug(?) in SIP phone

    This one had me stumped for a while... My N95 is hooked up to my own Asterisk server and, as such, rings whenever someone calls me by VoIP or on any of the DID numbers I have attached to my VoIP account. It's logged in as extension 2002 on my server

  • Is there a way to permanently set items you have added to the sidebar?

    Every time I log out or restart my computer, the items I've added to the sidebar disappear. Is there any way to edit a .plist file or something to make these items a permanent part of my sidebar? Thanks for any help with this.

  • How to make a cell in a JTable to be uneditable and handle events

    I tried many things but failed,How do you make a cell in a JTable to be uneditable and also be able to handle events>Anyone who knows this please help.Thanx

  • How do get rid of the message:"repair library"

    How to I get rid of the" Mac OS X repair libarary " message? It is polling me all the time....