UserTransaction and too many connections

This might sound a bit weird. I am just looking for some quick pointers here if possible. The OC4J version in use is 9.0.4.0.0. I am doing something along the following lines in a struts action class.
1) UserTransaction txn = ctx.lookup("java:comp/UserTransaction");
2) Connection conn = dataSource.getConnection();
3) txn.begin();
4) ..StatelessSessionBean call which uses a few entity beans (Bean Managed)
5) Direct updates using conn (no commits in this).
6) txn.commit
My issue is with step 4 above. It does some updates and this results in close to 500 plus physical db connections getting created when in UserTransaction. The beans are normal usual beans and the whole process works without issues if I get rid of UserTransaction with less than 50 physical connections.
I am just not able to pinpoint what exactly might be going wrong in the beans that such a large number of connections get created when in UserTransaction.
The datasource is along these lines
     <data-source
          class="com.evermind.sql.DriverManagerDataSource"
          name="xxxDB"
          location="jdbc/xxxDBCore"
          pooled-location="jdbc/xxxDBCore_non_tx"
          xa-location="jdbc/xa/xxxDBXA"
          ejb-location="jdbc/xxxDB"
          connection-driver="oracle.jdbc.driver.OracleDriver"
          username="xxxxxxxx"
          password="xxxxxxxx"
          url="jdbc:oracle:thin:@1.2.3.4:1521:xxx"
          min-connections="10"
     />
I check for the number of physical connections using the oc4j option
-Ddatasource.verbose=true which prints out the information.
If I set the max-connections attribute on the datasource, I get a Timeout waiting for connection exception in the app.
If any of this rings a bell and if you have any thoughts or suggestions, I would really appreciate it.
Thanks in advance
best regards
-Sudhir

Just to add to my above post, the messages on the cnsole are along the lines of ...
null: Connection com.evermind.sql.DriverManagerXAConnection@189c9fe allocated (Pool size: 0)
Created new physical connection: com.evermind.sql.DriverManagerXAConnection@12c820f
null: Connection com.evermind.sql.DriverManagerXAConnection@12c820f allocated (Pool size: 0)
Created new physical connection: com.evermind.sql.DriverManagerXAConnection@10eb09e
null: Connection com.evermind.sql.DriverManagerXAConnection@10eb09e allocated (Pool size: 0)
Created new physical connection: com.evermind.sql.DriverManagerXAConnection@16d7d9e
null: Connection com.evermind.sql.DriverManagerXAConnection@16d7d9e allocated (Pool size: 0)
Created new physical connection: com.evermind.sql.DriverManagerXAConnection@e3f9e3
null: Connection com.evermind.sql.DriverManagerXAConnection@e3f9e3 allocated (Pool size: 0)
Created new physical connection: com.evermind.sql.DriverManagerXAConnection@10382ca
null: Connection com.evermind.sql.DriverManagerXAConnection@10382ca allocated (Pool size: 0)
Created new physical connection: com.evermind.sql.DriverManagerXAConnection@17faec2
Why would the pool size be 0?

Similar Messages

  • Too many connections - even after closing ResultSets and PreparedStatements

    I'm getting a "Too many connections" error with MySQL when I run my Java program.
    2007-08-06 15:07:26,650 main/CLIRuntime [FATAL]: Too many connections
    com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Too many connections
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:921)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:812)
            at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3269)
            at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1182)
            at com.mysql.jdbc.Connection.createNewIO(Connection.java:2670)I researched on this and found out that I wasn't closing the ResultSet and the PreparedStatement.
    The JDBC connection is closed by a central program that handles connections (custom connection pooling).
    I added the code to close all ResultSets and PreparedStatements, and re-started MySQL as per the instructions here
    but still get "Too many connections" error.
    A few other things come to mind, as to what I may be doing wrong, so I have a few questions:
    1) A few PreparedStatements are created in one method, and they are used in a 2nd method and closed in the 2nd method
    does this cause "Too many connections" error?
    2) I have 2 different ResultSets, in nested while loops where the outer loop iterates over the first ResultSet and
    the inner loop iterates over the second ResultSet.
    I have a try-finally block that wraps the inner while loop, and I'm closing the second ResultSet and PreparedStement
    in the inner while loop.
    I also have a try-finally block that wraps the outer while loop, and I'm closing the first ResulSet and PreparedStatement
    in the outer while loop as soon as the inner while loop completes.
    So, in the above case the outer while loop's ResultSet and PreparedStatements remain open until the inner while loop completes.
    Does the above cause "Too many connections" error?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The following is relevant sections of my code ( it is partially pseudo-code ) that shows the above 2 cases:
    init( Connection jdbcConnection ){
       String firstSQLStatement = "....";
       PreparedStatement ps1 = jdbcConnection.prepareStatement( firstSQLStatement );
       String secondSQLStatement = "....";
       PreparedStatement ps2 = jdbcConnection.prepareStatement( secondSQLStatement );
       String thirdSQLStatement = "....";
       PreparedStatement ps3 = null;
       ResultSet rsA = null;
       try{
            ps3 = jdbcConnection.prepareStatement( thirdSQLStatement );
            rsA = ps3.executeQuery();
            if( rsA.next() ){
                   rsA.getString( 1 );
       }finally{
            if( rsA != null )
                   rsA.close();
            if( ps3 != null )
              ps3.close();
       //Notice, how ps1 and ps2 are created here but not used immediately, but only ps3 is
       //used immediately.
       //ps1 and ps2 are used in another method.
    run( Connection jdbcConnection ){
         ResultSet rs1 = ps1.executeQuery();
            try{
               while(rs1.next()){
                    String s = rs1.getString();
                    ps2.setString(1, s);
              ResultSet rs2 = ps2.executeQuery();
                    try{
                   while(rs2.next()){
                        String s2 = rs2.getString();
                    }finally{
                   if( rs2 != null )
                     rs2.close();
                   if( ps2 != null )
                     ps2.close();
         }catch( Exception e ){
              e.printStackTrace();
         }finally{
            if( rs1 != null )
                  rs1.close();
               if( ps1 != null )
                  ps1.close();
    //Notice in the above case rs1 and ps1 are closed only after the inner
    //while loop completes.
    }I appreciate any help.

    Thanks for your reply.
    I will look at the central connection pooling mechanism ( which was written by someone else) , but that is being used by many other Java programs others have written.
    They are not getting this error.
    An addendum to my previous note, I followed the instructions here.
    http://dev.mysql.com/doc/refman/5.0/en/too-many-connections.html
    There's probably something else in my code that is not closing the connection.
    But I just wanted to rule out the fact that opening a PreparedStatement in one method and closing it in another is not a problem.
    Or, if nested ResultSet loops don't cause the problem.
    I've read in a few threads taht "Too many connections" can occur for unclosed RS and PS , and not just JDBC connections.

  • Sendmail in Solaris 10 - 554 Too many connections from origin

    I recently upgraded a server from Solaris 9 to Solaris 10. One of the apps that worked fine on S9 is now having a problem. I believe I have discovered the cause, but I'm not having any luck coming up with a solution.
    The app in question queries a database for a list of e-mail addresses (all within our own domain) and then sends e-mail to each user. The messages are sent to our Barracuda firewall/spam filtering appliance, and it relays the messages on to our Exchange server.
    The problem that arose after the upgrade is that sendmail is opening too many concurrent connections to the Barracuda, and the 'Cuda is replying with "554 Too many connections from origin".
    I see that there is a sendmail configuration parameter "SingleThreadDelivery" that will only allow one connection to the Barracuda at a time. That appears to be overly restrictive, though.
    My question is this: is there a way to tell sendmail to only allow some number of concurrent connections to the 'Cuda so as not to hit this limit?
    Thanks,
    Bill

    Glen,
    Thanks for the reply.
    Yes, I did look at those, but my understanding was that those parameters effect inbound connection and in our case, the problem is that we want to limit the number of outbound connections.
    As it turns out, the S10 upgrade was not the cause of this problem. At the same time that we upgraded we also added a second network interface (and IP address). Unknown to either myself or the current Barracuda admin, the old IP had been configured into the 'Cuda so that rate limits did not apply. The fix was to add the second IP, too (well actually, he decided to open it up to all of our servers' internal IPs).
    Bill

  • ICloud mail "Too many connections" error

    Anyone ever gotten this error when sending to an @me.com account? This is what it looks like when I send email to myself using it. My gut says it's a Boxcar issue but I haven't used that service in months and I've now disconnected anything from it. This is the error I'm seeing back when sending email to my iCloud account:
    This report relates to a message you sent with the following header fields:
    Message-id: <[email protected]>
    Date: Wed, 07 Nov 2012 14:29:50 -0500
    From: Brad Franklin <[email protected]>
    To: Brad Franklin <[email protected]>
    Subject: Test
    Your message cannot be delivered to the following recipients:
    Recipient address: [email protected]
    Original address: [email protected]
    Reason: Rejection greeting returned by server.
    Diagnostic code: smtp;554 Transaction failed. Too many connections.
    Remote system: dns;push.boxcar.io (TCP|17.172.204.240|45227|173.192.56.11|25) (Transaction failed. Too many connections.)
    Original-envelope-id: [email protected]
    Reporting-MTA: dns;st11p01mm-asmtp005.mac.com (tcp-daemon)
    Arrival-date: Wed, 07 Nov 2012 19:29:54 +0000 (GMT)
    Original-recipient: rfc822;[email protected]
    Final-recipient: rfc822;[email protected]
    Action: failed
    Status: 5.0.0 (Rejection greeting returned by server.)
    Remote-MTA: dns;push.boxcar.io (TCP|17.172.204.240|45227|173.192.56.11|25)
    (Transaction failed. Too many connections.)
    Diagnostic-code: smtp;554 Transaction failed. Too many connections.

    I'm also having this issue with two of my accounts (the main ones I use the most!) I get this message:

  • Mail Alert with Triangle Exclamation Mark with iMap - Too Many Connections?

    I have one Laptop (Macbook mid-07) on Leopard 10.5.6 and a Macbook Pro 09 on Leopard 10.5.8. I just switched over to iMap where I have two email accounts set up on both laptops. Both laptops have identical accounts set up on them.
    I'm currently geting the triangle with the exclamation mark alert on the inboxes of both accounts when both laptops have Apple Mail open. Is this an issue with Apple Mail or my Service Provider possibly complaining that I have too many connections? I don't get these alerts when only one laptop has the Mail App open. The alert reads:
    Alert
    There may be a problem with the mail server or the network. Check the settings for the account "IMAP" or try again.
    The server error encountered was: The attempt to read data from the server "mail.mydomain.com" failed.
    However, Mail seems to send and receive okay with the alerts popping up and so I'm not sure if this alert is anything to be serioulsy concerned about. Or, is there a way to fix this?

    I set mail to fetch messages every 15 minutes where I delayed one laptop in opening up mail initially by 5 minutes. That way, both laptops are not fetching mail concurrently and there's a gap of time for them to download mail before the other starts. This seemed to have fix this alert issue and I'm no longer getting these messages.
    Although, 15 minutes seems to be a bit long for auto fetching since my email can be under some time constraints. Does anyone know how to set the time to check every 10 minutes which I can probably live with? Currently, I have the option to set for 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, or manually.

  • Too many connections to call SAP functions

    Hello everyone,
    I'm having a random problem while accessing SAP functions on my applications.
    Sometimes i get this message:
    Could not create JCOClientConnection for logical Systems: WD_MODELDATA_DEST - Model: class com.xxx.sap.NameController.
    Please assure that you have configured the RFC connections and/or logical system name properly for this model.
    A friend tells me that this has to do with the fact that i use one model per SAP function ,
    and a custom controller for each unique model.
    This creates too many connections and launches the error.
    Can anyone tell me how to solve this problem without
    having to reimport all my functions into one single model  and one single custom controller ??
    My biggest problem is that doing that would increase the time spent on project development dramatically.
             Thank you everyone,
                  Nuno Santos

    Hi Guillaume,
    My answers:
    1. All connections are closed by time-out, but i would really apreciate if someone could explain how to explicitly close them after calling them.
    2. No. That is the big problem. This was my first project, and in a very simplistic (and stupid) way i created a webdynpro model for each SAP function that i call. This means that an application may call 5 or 6 functions during it's runtime, meaning 5 or 6 connections. Multiply this by a few hundred users...
    What are my choices here?
    Help will be really apreciated.
       Thanks to everyone,
           Nuno Santos

  • Error "421 #4.4.5 Too many connections from your host"

    We have deployed a Java application using JavaMail which enables people to send email to their contact lists. It has been in use for a few years, various updates being applied over that time. Most of our customers have no problem. But a couple of weeks ago, two of them suddenly could no longer send emails.
    The connection to the SMTP server works but when the application sends email, it gets an error 421. A debugging dump is reproduced below: the target email address is changed to protect the uninvolved; messages starting with **** come from my program, other come from JavaMail.
    Can anyone solve this problem? suggest where to look? Thanks.
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG SMTP: trying to connect to host "smtp10.bellnet.ca", port 25, isSSL false
    220 toip35-bus.srvr.bell.ca ESMTP
    DEBUG SMTP: connected to host "smtp10.bellnet.ca", port: 25
    EHLO Communications
    250-toip35-bus.srvr.bell.ca
    250-8BITMIME
    250 SIZE 20971520
    DEBUG SMTP: Found extension "8BITMIME", arg ""
    DEBUG SMTP: Found extension "SIZE", arg "20971520"
    **** transport connect worked
    NOOP
    250 ok
    **** about to send message to [email protected]
    NOOP
    250 ok
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth true
    **** cEmailAuthenticator.getPasswordAuthentication() called
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG SMTP: trying to connect to host "smtp10.bellnet.ca", port 25, isSSL false
    421 #4.4.5 Too many connections from your host.
    DEBUG SMTP: could not connect to host "smtp10.bellnet.ca", port: 25, response: 4

    Looks like the server keeps track of the number of connections from each machine, and when the number of connections in a certain period exceeds some number, that machine is deemed to be a potential spammer. At any rate it is something you should discuss with the manager of that server.

  • Why Customer get too many "Connection reset by peer"

    Hi,
    I have CSS 11503 V7.50 without SSL Module.
    I have 4 real servers and LB method is Round Robin. Customer tests the methods by using two way.
    First A requestor try to connect service via VIP address.Second requestor try to connect to real servers by using directly real server IP address (Bypass Load balacer)
    Customer cheks the real server logs and sees that in first experiment (via VIP) there too many "connection reset by peer" messages. For second experiment there are few same messages.
    I wonder why real servers get this messages. Plus, why CSS reset flows. I know flow timeout does that. But if there are too many idle flows, it says something wrong?

    There is a command, but I was more thinking about the server side counter or log info.
    If you really want to see if the CSS sent a RESET or not, you can use the following engineering command
    CSS11503-2(debug)# symbol-table load SPRITZ
    Loading string table... 660,706
    Loading symbols........ 24,937
    Load complete.......... 1,259,194
    CSS11503-2(debug)# shell 1 1 FMShowReset
    FM RESET COUNTERS:
    Last FM Reset Case was 7
    0 Case 1: Server Flow not in WCC
    0 Case 2: Client Flow not in WCC
    0 Case 3: FM_ContentHandleUnexpectedTermination
    0 Case 4: Server not responding on backend, reset client
    0 Case 5: Server not responding on backend, reset server
    0 Case 6: WCC returns empty vector, reset client
    18 Case 7: Reset to server on DOS attack
    2 Case 8: FM_HandleEarlySpoofTermination
    0 Case 9: Reset client if join fails in spoof flow
    0 Case 10: TCP SYN Exceeded
    0 Case 11: Reset server on remap backend connection
    0 Case 12: WCC did not return WCC_TCP_SPOOF for FAUX SYN
    0 Case 13: FM_HandleFinalClose
    0 Case 14: FM_CreateRedirectServerReset
    0 Case 15: Flow reset, route change
    0 Case 16: Peer reset, route change
    0 Case 17: Peer Flow rejected, either WCC rejected or no egress port
    0 Case 18: Reset flow, bridge forwarding change
    0 Case 19: Reset flow, egress port went down
    0 Case 20: Client side connection reset sent
    0 Case 21: Server side connection reset sent
    0 Case 22: Reset client due to server reset
    0 Case 23: Received ACK to SYN, reset existing connection on server
    0 Case 24: Server side reset, server port down
    0 Case 25: Client side reset, client port down
    0 Case 26: Server side reset, client port down
    0 Case 27: Client side reset, server port down
    0 Case 28: MIDNAT reject, reset server
    0 Case 29: MIDNAT reject, reset client
    0 Case 30: FM_HandleTcpResetVipUnavailable
    0 Case 31: MID SPOOF reject, reset server
    0 Case 32: MID SPOOF reject, reset client
    Gilles.

  • IPhones w ActiveSync creating too many connections on mail server

    Over the past two days, I have started getting 503 errors, indicating too many connections. When I went to look at active connections, I noticed that the vast majority were from the iPhones that connect using ActiveSync. Just in the 45 minutes since I cleared all active connections, my iPhone has created 14 active connections. When you multiply that by the eight iPhones we have at this company the number jumps to 112. It is easy to see why the 503 error is getting generated by the end of the business day. It is as though the iPhone is unable to let go of an active connection, and just starts a new one. This only seems to be happening since the iPhone 3.0 update. Is anyone else experiencing similar issues?

    Yes - I'm having a very similar problem on our server. But in this case the user has a very large mailbox - and imap processes are spawned but never die unless I go in and manually kill them.

  • Too many connections!what can i do?help :)

    Hello,everyone!
    I am a programmer in China,I like java,During working I met a question,please give me some indicate!
    //the main program
    public void actionPerformed(ActionEvent e){
    mysqldatabean mysqldata=new mysqldatabean();
    String sql1="select*from talbe1";
    ResultSet rs1=mysqldata.mysqlexecuteQuery(sql1);
    try{
    while(rs1.next()){
    String id=rs1.getString("id");
    String sql2="select*from table2 where id='"+id+"'";
    ResultSet rs2=mysqldata.mysqlexecuteQuery(sql2);
    try{
    while(){
    catch(SQLException ex){}
    mysqldata.destroyconnection();
    catch(Exception ex){}
    mysqldata.destroyconnection();
    //the class
    class mysqldatabean {
    String mysqlDBDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
    String mysqlConnStr = "jdbc:odbc:mysqldata";
    Connection mysqlconn = null;
    ResultSet mysqlrs = null;
    Statement mysqlstmt=null;
    public mysqldatabean() {
    try {
    Class.forName(mysqlDBDriver);
    catch(java.lang.ClassNotFoundException e) {
    System.err.println("mysqlexecuteQuery: " + e.getMessage());
    public ResultSet mysqlexecuteQuery(String mysqlsql) {
    try {
    mysqlconn = DriverManager.getConnection(mysqlConnStr);
    mysqlstmt = mysqlconn.createStatement();
    mysqlrs = mysqlstmt.executeQuery(mysqlsql);
    catch(SQLException ex) {
    System.err.println("mysqlexecuteQuery: " + ex.getMessage());
    return mysqlrs;
    public void destroyconnection(){
    boolean connboolean=false;
    try{
    mysqlconn.close();
    connboolean=mysqlconn.isClosed();
    catch(SQLException ex){}
    Question:
    because of large number of datas,while execute,Exception:mysql server, odbcdriver too many connections, getSQLState:s1000
    how can i change this program?please give me the anwser(code),I need it immediately!
    Help!!:)
    [email protected]

    // You are trying to establish connection for all statements.
    // You only need connection per database connection not per statement.
    // Try to create connection outside of mysqlexecuteQuery()
    mysqldatabean mysqldata=new mysqldatabean();
    String sql1="select*from talbe1";
    mysqlconn = DriverManager.getConnection(mysqlConnStr);
    ResultSet rs1=mysqldata.mysqlexecuteQuery(sql1);
    public ResultSet mysqlexecuteQuery(String mysqlsql) {
    try {
    mysqlstmt = mysqlconn.createStatement();
    mysqlrs = mysqlstmt.executeQuery(mysqlsql);
    catch(SQLException ex) {
    System.err.println("mysqlexecuteQuery: " + ex.getMessage());
    return mysqlrs;

  • Slow system and too many details after upgrading to OS/Lion

    This MacBook Pro is my right hand, I was doing so great with Snow Leopard, Now everything takes twice longer. I cleaned up, reseted, reinstalled softwares, etc. same.
    Too many details that doesn't work correctly.
    -Safari constantly needs to be loading. Some times Firefox.
         The track pad cant keep open a display box with a long list, once you try to scroll down.
    -Preview, i used this app a lot, safe me time, DUPLICATE? instead of SAVE, i don't see the purpose. After editing images and safe them, gamma, color patterns and light appear distortion.
    -iTunes volume doesn't comeback after using Skype or another app, remains low.
    -Airport takes a bit longer to find a local network.
    -There is not an extra space for the left and right scroll bottom on the finder window, sometimes this one disappear but mostly remains which makes it pretty tricky to open the last file at the bottom of the list. because the scroller is on front.
    -External Drives, takes longer to connect or disconnect them.
    Suggestions before i reinstall Snow Leopard.

    guizz,
    it sounds like you have come across the mother of all problems but i would like to help as much as i can.
    first of all, i noticed that it took a few days after installing lion before my system was back to the full stride it had while running snow leopard give it some time and a few updates and lion should speed up because components such as ram take time to adjust.
    the duplicate thing in preview is a new thing that came out with versions, one of the many new features in lion. i think it takes the place of the SAVE AS... command and you should still be able to save using the old command-s keystroke however part of lion includes an autosave feature so you really never have to worry about saving your work.
    i personally cannot speak for safari or firefox even though i have both because i use google chrome as my web browser you can always give that a try.
    in the system preferences under the general settings option you can change how the scroll bar is displayed on the screen.
    i would suggest searching for other people who have had similar problems with itunes to try and find an answer
    as for everything else your system may just need time to adjust to lion
    good luck hope this helped a little

  • Safari with IIS: Too many connections?

    Has anyone out there any experience using Safari with Microsoft's IIS? In particular, the 'Personal Edition' of IIS that only allows 10 concurrent connections?
    I'm finding that whenever I access one of the websites running on IIS using Safari, I can only click through a limited number of pages before I get an error message from the IIS server: "Too many people are trying to connect to this server."
    It's almost as if Safari is treating each request as a new connection. I don't have this problem running Firefox or IE. Come to think of it, I never had this problem before Tiger!
    I'm using a PC running IIS as a testing server for my ASP-based websites.
    Any ideas ... anyone? :o)
    Kind regards,
    Oli Trenouth
    Media Developer

    This is a bit sad -- I'm answering my own post :o)
    In case anyone is interested, I think I may have found a workaround. Aparently the problem is related to the HTTP Keep-alive request. I guess Safari is trying to keep to many connection alive, and running up a bill on the server.
    One way around this is to turn off the Keep-Alive setting within IIS, however this causes problems if you're using authentication on your site. The alternative is reduce the session timeout to something small, such as 5 or 10 seconds.
    Luckily my site doesn't rely on session states, so I'm ok there!
    I guess the real solution is to get a proper webserver
    If anyone has any better suggestions, I welcome your comments.
    Many thanks,
    Once again,
    Oli Trenouth.

  • SMTP connection refused too many connections

    I keep getting the above error on my email.
    I'm using blue iris to send me emails using my bt account and over the last month I'm am getting more and more SMTP failed to connect, when is look at the logs on blue iris it says connection refused too many active connections.
    Can anyone tell me if BT has a limit on the number of active connections to my btinternet.com email?

    Hi ChrisBRRS,
    Welcome and thanks for posting.
    I'm sorry for the problems you're having.  I've moved your post here where it's more relevant and others should be along now to offer further advice 
    All the best,
    Robbie
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • How do I stop unwanted and too many friend request...

    I started receiving way too many contact requests from unknown men, usually all military, Which I have been consistently blocking, but I want to know if my account has been jacked or what is going on and how to stop this, please. Anyone???

    just some clarifications changing your privacy settings will only prevent unwanted calls and/or IMs from people who are not in your contact list.  It will not prevent other users, both legitimate and potential scammers/spammers, from sending your contact requests.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • ROWTYPE and "Too many values" error...

    I'm in the middle of trying to understand the inner workings of %ROWTYPE and how I can copy the structure of a table with it. I think I'm understanding the gist of it, but I continue to fail in pinpointing the actual values I try to insert with an example tutorial I'm using at the moment and was hoping someone could help me understand my problem better so that I can bridge this mental gap I seem to be slipping into...
    That said, I have the following table: ct_employee
    The columns of this table (and their schema settings) are as follows:
    empno - NUMBER(4,0)
    ename - VARCHAR2(20)
    job - VARCHAR2(20)
    mgr - NUMBER(4,0)
    hiredate - DATE
    sal - NUMBER(7,2)
    comm - NUMBER(7,2)
    ct_department - NUMBER(2,0)The SQL I'm using in all this is the following:
    SET VERIFY OFF
    DEFINE emp_num = 7369;
    DECLARE
      emp_rec ct_retired_emps%ROWTYPE;
    BEGIN
      SELECT *
      INTO emp_rec
      FROM ct_employee
      WHERE empno = &emp_num;
      emp_rec.leavedate := SYSDATE;
      UPDATE ct_retired_emps SET ROW = emp_rec
      WHERE empno = &emp_num;
    END;As I hope you can tell from the above, I'm trying to create a variable (emp_rec) to store the structure of ct_employee where upon I then copy a record into emp_rec if and only if the empno column from ct_employee matches that of the emp_num "7369".
    I'm using SQL*PLUS with 10g in all this (+a program I love, by the way; it's really easy to use and very informative+) and when I press the "Run Script" button, I receive the following Script Output:
    Error report:
    ORA-06550: line 6, column 3:PL/SQL: ORA-00913: too many values
    ORA-06550: line 4, column 3:
    PL/SQL: SQL Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:>
    What I translate from this is that there's either a column number mismatch or else there's some value being attempted to be inserted into the variable I created that isn't matching the structure of the variable.
    Anyway, if someone around here could help me with this, you would make my day.

    It's still not updating the table. :(
    Here's where I am...
    I currently have the following pl/sql:
    SET VERIFY OFF
    DEFINE emp_num = 7369;
    DECLARE
      emp_rec ct_retired_emps%ROWTYPE;
    BEGIN
      SELECT *
      INTO emp_rec
      FROM ct_employee
      WHERE empno = &emp_num;
      emp_rec.leavedate := SYSDATE;
      UPDATE ct_retired_emps SET ROW = emp_rec
      WHERE empno = &emp_num;
    END;I'm trying to avoid as much hard-coding as possible, hence my use of the all selector, but because of this, SQL*Plus is now giving me a run-time error of the following:
    Error report:ORA-06550: line 6, column 3:
    PL/SQL: ORA-00913: too many values
    ORA-06550: line 4, column 3:
    PL/SQL: SQL Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:>
    So to remedy this, I then try the following revised PL/SQL:
    SET VERIFY OFFDEFINE emp_num = 7369;
    DECLARE
    emp_rec ct_retired_emps%ROWTYPE;
    BEGIN
    SELECT empno, ename, job, mgr, hiredate, SYSDATE as leavdate, sal, comm, ct_department
    INTO emp_rec
    FROM ct_employee
    WHERE empno = &emp_num;
    UPDATE ct_retired_emps SET ROW = emp_rec
    WHERE empno = &emp_num;
    END;>
    This time, everything runs smoothly, however, no information is updated into the ct_retired_emps! Ha!
    I've verified that there's a record in ct_employee that has "7369" for its empno column value, so there should be no missing value concern from all this. The only other thing I can think of is that there must be something askew with my logic, but as to what, I have no clue. Below are my columns for both tables:
    ct_employee -
    empno, ename, job, mgr, hiredate, sal, comm, ct_department
    ct_retired_emps -
    empno, ename, job, mgr, hiredate, leavedate, sal, comm, deptno
    My immediate questions:
    1.) I know nothing about debugging or troubleshooting PL/SQL, but I do know that I need to review the contents of the emp_rec variable above to see what all is inside it so that I can better assess what's going on here. I've tried to use DBMS_OUTPUT.PUT_LINE(emp_rec) but this does nothing and only creates another run-time error. What's a way in which I can output the contents of this regardless of run-time success? Would I need to code in an EXCEPTION section and THEN use DBMS_OUTPUT...?
    2.) SELECTING * in the first snippet above meant that I was disallowed the use of the emp_rec.leavedate := SYSDATE; after the SELECT. How might oneself SELECT * AND+ use emp_rec.leavedate := SYSDATE; in the same EXECUTION section?
    3.) With everything I've provided here, do you see any obvious issues?
    It doesn't take a genius to realize I'm new at this stuff, but I am trying to provide everything I can to learn here so if any of you can help this poor guy out, he'd be very grateful.

Maybe you are looking for

  • The right way to program this part?

    Hi I have some questions need some advice.. i have declared private variables for the database connection named con. if in this function A. i use con and execute an sql statement. if somewhere in the middle of function A, i call function B. and funct

  • How do I successfully merge MXF and DV files in a sequence?

    I have a Panasonic with a P2 card (and DV film).  I have a reader.  I have successfully transferred all the files to my computer, and imported them into PP6, no problem.  My only issue is this: if I want to consolidate the MXF files with the camera's

  • Packed Project Library error: contains compiled code

    I was trying to figure out how the packed library works for LVOOP, but face a wall with an error and don't know how to solve it. i) I made a class 'Class 1', which I then put in a library called 'library'. ii) I create a Packed Library and set the to

  • SCOM 2012 - Additional Management Server - Database not Found (no errors)

    Hello, I am installing a second management server (SCOM 2012) and am running into an issue connecting to the existing database.  I selected Add a Management server to an existing management group. On the installer page Configuration/Configure the Ope

  • Content Engine cannot authenticate using LDAP

    Dear All, I have a problem with content engine 511 authenticating with LDAP server. I am using Lotus notes LDAP server to authenticate with content engine but it doesn't work. Anyone has try with LDAP before? Please advice. Thank you for your help. R