Networking class

I was wondering if someone would be willing to take a look at thi code and tell me where I was wrong. Also do you not think that it would be useful to store the connection string that may work in a persistent storage and just use it every time.

I founded this class out of the Network Diagnostic tool.

public class ConnectionTypes {
    HttpConnection httpcon;
    private static ConnectionTypes INSTANCE;
    private ServiceRecord srWAP2;
    private boolean coverageTCP = false, coverageMDS = false,
            coverageWAP2 = false, coverageWiFi = false;
    private boolean succeeded = false;
    InputStream content;

    public static ConnectionTypes getInstance(){
        if(INSTANCE == null){
            INSTANCE = new ConnectionTypes();
        }
        return INSTANCE;
    }
    public ConnectionTypes() {
        if (!CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_NONE)) {
            initializeTransportAvailability();

        } else {
            UiApplication.getUiApplication().invokeLater(new Runnable() {
                public void run() {
                    Dialog.alert("You are not connected to a network.");
                }
            });
        }
    }

    public InputStream getInformation(String url) {
        content = null;
        if (coverageTCP) {
            succeeded = getViaHttp(url + ";deviceside=true");

        }
        if (!succeeded && coverageMDS) {
            succeeded = getViaHttp(url + ";deviceside=false");
        }
        if (!succeeded && coverageWAP2) {
            succeeded = getViaHttp(url + ";deviceside=true"
                    + ";ConnectionUID=" + srWAP2.getUid());
        }
        if (!succeeded && coverageWiFi) {
            succeeded = getViaHttp(url + ";interface=wifi");
        }

        return content;
    }

    private boolean getViaHttp(String url) {
        try {
            httpcon = (HttpConnection) Connector.open(url);
            SocketConnectionEnhanced sock = (SocketConnectionEnhanced) httpcon;
            sock.setSocketOptionEx(SocketConnectionEnhanced.READ_TIMEOUT, 10000L);
            int response = httpcon.getResponseCode();
            if (response == HttpConnection.HTTP_OK) {
                content = httpcon.openInputStream();
                return true;
            } else {
                return false;
            }

        } catch (Exception e) {
            UiApplication.getUiApplication().invokeLater(new Runnable() {
                public void run() {
                    Dialog.alert("There was an error connecting. Try again later.");
                }
            });
            return false;
        }
    }

    public void closeConnection() {
        try {
            httpcon.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void initializeTransportAvailability() {
        ServiceBook sb = ServiceBook.getSB();
        ServiceRecord[] records = sb.getRecords();

        for (int i = 0; i < records.length; i++) {
            ServiceRecord myRecord = records[i];
            String cid, uid;

            if (myRecord.isValid() && !myRecord.isDisabled()) {
                cid = myRecord.getCid().toLowerCase();
                uid = myRecord.getUid().toLowerCase();

                // Wap2.0
                if (cid.indexOf("wptcp") != -1 && uid.indexOf("wifi") == -1
                        && uid.indexOf("mms") == -1) {
                    srWAP2 = myRecord;
                }
            }
        }
        if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_DIRECT)) {
            coverageTCP = true;
            coverageWAP2 = true;
        }
        if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_MDS)) {
            coverageMDS = true;
        }

        if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {
            coverageWiFi = true;
        }
    }
}

Sorry its adding "deviceside = true (for Simulator) and while he gets a result if I paste it into my browser does not return a result here."

Tags: BlackBerry Developers

Similar Questions

  • Guard application launch at the start of the appliance, also need advice for the implementation of network methods

    Hi all

    I'm new to the development of Blackberry and I'm writing a relatively simple application to run on 7.1.

    So far the development was interesting, I managed to create my user interface using resources online (mainly this forum), but today I tried to implement some of the network classes that I need and now I just met constant problems.

    I use Eclipse SDK 3.7.2 (the one that comes with the plugin RIM)

    First question:

    I'm not sure what I changed, but today I noticed that whenever I start the Simulator (by sim 9360) my application is started during the initial startup process. I don't think he did this before, but to be honest, I wasn't paying much attention. I think it starts at the start of the device is because I put a breakpoint in the constructor for my class from the main screen, which is hit before the Simulator happens even to the point where it is ready for user interaction. In addition, once it is ready, if I press the BB button, I see my registered application.

    I don't have it set to automatic start in .xml descriptior enforcement.

    I started this application on the HelloBlackBerry sample, here is my main method for the entry of the application:

    public static void main( String[] args ) {
            appSettings = AppSettings.fetch();
            // Create a new instance of the application and make the currently
            // running thread the application's event dispatch thread.
            HelloBlackBerry theApp = new HelloBlackBerry();
            theApp.enterEventDispatcher();
            //openConnection();
    
        }
    
    
    

    As far as I know, this is the only entry point for the application.

    More code

        public HelloBlackBerry() {
            // Push a screen onto the UI stack for rendering.
            mainScreen = new ScreenHelloBlackBerry();
            pushScreen( mainScreen );
        }
    

    Here is the method of. my class AppSettings fetch()

        // Retrieves a copy of the effective properties set from storage.
        public static AppSettings fetch()
        {
            AppSettings savedSettings = (AppSettings) _store.getContents();
            return new AppSettings(savedSettings);
        }
    

    Some of this code that I wrote myself, the persistence store cause the launch of my car?

    I tried to reset the Simulator to the factory settings, no change.

    All applications initialized during the startup of the device and then closed shortly after?

    Part 2: Need advice for the implementation of functions of network in the application

    I need to implement some methods that will retrieve data from a web service, and I also need to send data to this service. What I've read, the ConnectionFactory is the way to go. I want my application to make a request when the application is open and can check on a set interval. I didn't know exactly how to go about adding another thread for networking, I understand that network connections should not be created on the thread main event, so I tried to do this:

    The constructor of my class that implements screen (ScreenHelloBlackBerry), I use the following to create a modal dialog box to prompt the user for a username, I also try networking wire in the same segment of spawning:

            public ScreenHelloBlackBerry(){...initialize fields and managers, add it all together...then near the end
    
    //This will open the confirm dialog when the application is launched
            UiApplication.getUiApplication().invokeLater(new Runnable() {
                  public void run() {
                      openConfirmDialog();
                    //start connection - Possibly broken
                      ConnectionThread ct = new ConnectionThread();
                      ct.start();
                  }
            });
    

    I don't know if it's somehow OK to do, but it seems to work for what I need. I want a user who launches the application at the prompt, and if a user switch applications, when they come back they wondered again (unless they close the app and reopen it).

    Here is my ConnectionThread:

    public class ConnectionThread extends Thread
    {
    
        public void run()
        {
    
              ConnectionFactory connFact = new ConnectionFactory();
              ConnectionDescriptor connDesc;
              connDesc = connFact.getConnection("http://www.google.com");
              if (connDesc != null)
              {
                  HttpConnection httpConn;
                  httpConn = (HttpConnection)connDesc.getConnection();
                  try
                  {
                      final int iResponseCode = httpConn.getResponseCode();
                      UiApplication.getUiApplication().invokeLater(new Runnable()
                      {
                          public void run()
                          {
                              Dialog.alert("Response code: " +
                                            Integer.toString(iResponseCode));
    
                          }
                       });
                      httpConn.close();
    
                   }
                   catch (IOException e)
                   {
                     System.err.println("Caught IOException: "
                          + e.getMessage());
                   }
              }
        }
    }
    

    At the moment it has basically unmodified code from a sample that I found, I'll be retooling to meet my needs whenever I can make it work. I HAD this work to the point where, after the closed user confirm this dialog, a few moments later a an alert dialog appears with the 302 response code. I don't know what changed, but now it doesn't work at all, and if I try to scroll with the debugger, I can't past the httpCon.getResponseCode (). I've seen some mistakes earlier on "no record of service was set up", and I also had once a timeout exception.

    I'm sure I'm doing this wrong, but at the same time as I said WAS working, and now it is not. If someone has done this far, thank you very much for your time and advice are much appreciated.

    Also, should I try to start the thread of the network of the UIApplication class instead of the screen? There is currently very little happening in the class that extends UIApplication, do I spend most of my business logic out of the class of the screen and in the UIApplication class?

    Thanks in advance!

    Hi all

    Just to conclude this topic for those who are interested, I found an excellent guide to the implementation of networks in applications of BB, click here for a link.

    About my application being started at the start of the simulator of the device, I found that on a device real this behavior is not complied with, and in addition, the behaviour seems to have stopped after uninstallation and reinstallation of my Simulator.

    See you soon,.

  • Relationship with custom properties with friendly names for networks

    Hello

    Basically, I wanted to use the expression of value for networks, but using a friendly name for the network, as the network profile names would confuse the user.  We have created four areas (apps, web, db and gen) and 3 network classes (prod, dev UAC) for a total of 12 network profiles.  I have the expression works but it takes map a friendly name of "prod" to a profile of network specific to this region and class.  If an application server which should be prod you hit the drop down menus, but the "prod" would be effectively mapped vwire/network specific to the application server that are prod name.

    Any help is greatly appreciated.

    Well Yes, it's a common request.  You use the vCO to do the translation.  Your items in dictionary of properties will have the friendly name that the user selects and then you will run a vCO workflow during WFStubBuildingMachine that would make the translation and rewrite the property in vCAC for which network to place the machine on.  I'd be more than happy to build something that can do it for you.  According to the time available I can put together in a little later this week or early next week.  It's something that I wanted to blog in any case.

    -Sid Smith

    http://www.dailyhypervisor.com

  • WNR2000v4 continues to change the internal ip address

    Hello

    For some time, I have a strange problem with my WNR2000v4. time to time the Exchange Router ip address internal of himself. The standard/default ip address is 192.168.1.1, but for some reason any change the router to 10.0.0.1. According to the notice, it is because of problems with my internet provider. If this happens, I have to manually change again to the correct internal ip address.

    My setup is very simple, the internet signal is coming in my house received by my modem (ubee) and then it is given to the netgear WNR2000v4 model. I do not know the ip address of the modem or how it works, but my external ip address is in the 94.*. *. * range. So it seems to me that there must be no problem at all.

    Kind regards

    Anonymous

    Hi Andy,.

    I have some additional information on this topic from my ISP community. This is a rough translation with google translate, I hope you understand.

    This apparently "strange phenomenon" can be explained. What I can say at this stage, is that the two parties have no guilt here. This is due to two requirements that a manufacturer must meet when NAT is used with the product. See https://tools.ietf.org/html/rfc4787#section-4.4 for more details.

    Why you can see that a reset of the modem, it is because the modem RF interface is not yet connected to the CMTS. Therefore, the DHCP server on the modem itself is active until there is a link with the CMTS. The router WAN interface detects a link down / event and then again try to obtain an IP address. Router WAN interface will then receive a private at this time, IP from the modem of the same sequence, which is then used in your router. The modem doesn't know that your router uses internally the same private IP range. Clearly, this is a problem and set up your router correctly responds by himself with another range of IP private. Why the DHCP server on the modem is active when there is no connection with the CMTS? Because you still can connect to the management interface of the modem.

    Manufacturer must implement one of the following two things to make it work.

    All traffic between internal / exterene correct translation and transfer customers. It is difficult because you need a solution like Session Traversal utilities for NAT server. If two clients are the same ISP that makes double NAT, you also depend on the correct application of crossed NAT of the ISP router.

    The second solution is automatically ensure that the internal and external IP address ranges do not overlap / are identical.

    Manufacturers a logically opted for the second solution easy. How can you solve this problem permanently? If your local network for example. 192.168.0.0 network class C can be used for example. Set your router to use IP network 192.168.1.0.

  • WRT120N allows 255.0.0.0 subnet?

    I have currently a network using IP 10.1.x.x and 10.2.x.x and 10.3.x.x with a 255.0.0.0 subnet, I bought 2 of wrt120n wireless routers to test and find that I can't use the 255.0.0.0 subnet someone has tried this or have I missed something?

    Just phone with support technique linksys, boy what a job to get answers.   After waiting for a long time for the first tech looking for something somehow, I logged out, I called back and started all over with my problem but I had someone who had problems with the notion of subnet mask, asking "why even I would like to change the default subnet" I tried to explain what I wanted to do , but no luck I had to ask a support level 2 and another long time of waiting, I finally got a tech level 2 on the phone who said "is not possible' linksys 'Homepage class' routers will do it a class C network and I need to buy a router Cisco Business Class!

    I was sure that I used the old routers "Reception class" before doing so and never had a problem doing this, but will have to check it out to make sure.

    So, to put an end to some other frustrations... Make sure that your router will do the subnet / network class, you must before buy you!

    I guess that my fault to assume

  • Problem Panel of the start menu window opening control

    Hello

    I have Windows vista premium operating system. I have the problem to open the file on the right hand side starting by, default programs (error, 'class not registered'), Panel, connect (no problem), network (class error, Explorer.EXE, unregistered), computer (class error, Explorer.EXE, unregistered), games (error, Explorer.EXE class, unregistered), music (C:\Users\hp\Music, class not registered), images (C:\Users\hp\Domuments\Pictures (class not registered), Document (C:Users\hp\Documents, class unregistered)

    This is the first time I have this problem.

    Help, please. I can't open any of the files and my document folders, and all the one I mentioned above.

    Thank you very much!

    Repost:

    If you need additional assistance with the clean install, please start a new thread in this forum: http://social.answers.microsoft.com/Forums/en-US/vistarepair/threads

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and stand-alone computer (that is, not BigBoxStoreUSA or Geek Squad) repair facility.

    Good luck!

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • No option to order MLS available on IE-4000-8GT8GP4G-E

    I can't issue any 'mls cos' on a specific interface or global configuration commands. I have never set up a front IE4000 and try to set it up the same way to our IE3000s.

    Thanks in advance

    IE4K use MQC, MLS. So qos commands are different and you can't ' use the configuration of IE3000 as a reference guide. It's like Cat2k / 3K switches are switch based MLS but Cat4K isn't.

    Example of configuration related QOS on the IE4000-

    class-match-all first-class-network map
    Access-group name arranged

    class-match-all second-class-network map
    Access-group name second class

    class-match-all third-class-network map
    group-access third name match class
    !
    !! MQC can use the collection of QOS, which lies on the penetration and matched in one
    class-map on evacuation
    !! as another way to match the traffic to the output queues.
    !! Here's the output class cards.

    class-map correspondence qos-group-0
    qos-group match 0
    class-map correspondence qos-Group 1
    qos-group match 1
    class-map correspondence qos-Group 2
    qos-group match 2
    !
    !!!! straight forward corresponding traffic is also supported.
    class-map match-data voip
    match ip dscp ef
    class-map correspondence-any voip-control
    match ip dscp cs3 af31
    class-map match-all cos-56
    5 6 cos game

    !
    !! penetration strategy sample that sets DSCP-based ACL with beach
    order
    !
    policy-card policy-set-dscp-example
    class first class network
    the 47 ip dscp value
    class second-class-network
    the 31 ip dscp value
    third-class-network class
    the 58 ip dscp value
    class class by default
    set the default dscp ip

    laid out IP extended access list
    permit tcp 10.218.9.0 0.0.0.255 100 200 rank
    extended patent IP access list
    permit tcp 10.198.46.0 0.0.0.127 a 400 500 rank
    IP access-list extended to third class
    permit tcp 10.218.0.0 0.0.0.255 700 800 rank

    !

    Config reference guide-

    http://www.Cisco.com/c/en/us/TD/docs/switches/LAN/cisco_ie4000/software/...

    Thank you

  • Addition of a VLSM subnet to an existing design

    Hello!

    I'm studying for my CCENT exam and practical this question in the book warning stumble me.  I'm starting to think that it's a typo.

    The problem relates to the addition of a subnet to an existing model.  The current design already has these five subnets:

    10.0.0.0/24

    10.0.1.0/25

    10.0.2.0/26

    10.0.3.0/27

    10.0.6.0/28

    The boss can't decide among five competitors subnet masks to be used for this new next subnet to add to the internetwork.  However, the boss wants you to practice VLSM and plan ID subnet he would use for each of these four possible masks.  It tells you that the new subnet ID should be part of the 10.0.0.0 network, class A, which the new subnet should not overlap with the original five subnets, and the new subnet ID must be the ID of possible subnet numerically lowest (without breaking other rules).  Choose a subnet ID that you can plan to use based on the following mask.

    / 22

    The answer guide says it's 10.0.8.0/22 as the new numerically lower number of subnet that does not overlap with the existing subnets.  However; It's confusing to me because it seems that the correct answer must be 10.0.4.0/22, because it does not overlap with any of the existing subnets and is a subnet of lower than 10.0.8.0/22.

    Let me know if you need more information on this.  Thanks to you all!

    10.0.4.0/22 includes:

    • 10.0.4.0/24
    • 10.0.5.0/24
    • 10.0.6.0/24
    • 10.0.7.0/24

    Who rides with 10.0.6.0/28.

  • default gateway for vpngroup

    Is it possible to configure a default gateway in the vpngroup?

    When I set up the split tunnel for my vpngroup, they see the web but no local lan access. If I remove the split tunnel in the config, they see lan local but of course without web access access because everything is encrypted at this time.

    I did a ipconfig/all in the two scenarios and found that in the split tunnel, there is no default gateway specified for the virtual card; without split tunnel, the default gateway in the virtual card is the ip address of the connected vpn client.

    Usually, the pool of VPN and the internal network should be two different networks. The best way to do it is by using a class C network.

    For example: 192.168.1.0 / 24 for network access

    192.168.2.0 and 24 for the VPN Pool.

    Note that the for the Pool of VPN subnet mask cannot be set and is chosen by the network class.

  • DAVID tail Drops

    We have a POS 155 Mbps circuit.

    There are tail drops that occur on the default class that is allocated 25% (38,75 Mbps). There is a part of the voice traffic, but it is the priority in queue and is not a problem. Other control classes also OK.

    But when I look at the overall use of the physical interface (155 Mbps), it isn't cluttered. It peaks at 40 percent during the opening hours - which most is the default class.

    It was my understanding that DAVID should not "kick in" unless there is congestion - such as defined by the WRED algorithm.

    "Congestion" here applies to the physical interface or is it worth the 25% allocated without traffic?

    If the tail drops are produced due to "congestion" on the class by default, what settings should I change - queue lengths or the bandwidth allocated by default?

    eth-service-policy policy-map
    voice of the class
    percentage of priority 35
    voice command class
    2% of bandwidth
    Network-class control
    percentage of bandwidth 5
    class class by default
      25% of bandwidth
    random detection

    Policy-map frame-relay-form-policy
    class class by default
    average of form 154000000
    Service-eth-service-policy

    POS1/0 interface
    Description «...» »
    no ip address
    encapsulation frame-relay
    No keepalive
    No arp frame relay
    no relay inverse-arp frame
    frame-relay-form-exit of service-policy policy
    waiting-1000 on

    show policy-map interface POS1/0

    POS1/0

    Out of service-policy: frame-relay-form-policy

    Class-map: default class (all football match)
    1802709602 package, 720560400569 bytes
    5 minutes offered rate 26898000 bps, lower rate 0 bps
    Match: all
    Traffic Shaping
    Target/average byte support excess increment interval
    Rate limit bits/int bits/int (ms) (bytes)
    154000000/154000000 962500 3850000 3850000 25 481250

    Adapt the queue packets bytes packet shaping
    Active depth delayed deferred Active
    -0 1802673602 3259356776 79971 71426633 not

    Service policy: eth-service-policy

    Class-map: default class (all football match)
    1405375819 package, 644742811187 bytes
    5 minutes offered rate 24889000 bps, lower rate 0 bps
    Match: all
    Queues
    The output queue: Conversation 267
    Bandwidth 25 (%)
    Bandwidth 38500 (Kbps)
    (correspondence pkts matched / bytes) 94915/108733008
    (depth/total drops/No.-buffer drops) 36015/0/0
    exponential weight: 9
    average queue depth: 0

    class transmitted random drop tail drop brand Maximum Minimum
    pkts pkts, bytes, pkts, bytes beat beat the prob
    0 1405364393/644719714663 4793657/4024 31991/36714190 20 40 1/10
    1 25378/1116693 0/0 0/0 22 40 1 / 10
    2 175 / 7736 0/0 0/0 24 40 1 / 10
    3       0/0               0/0              0/0           26      40  1/10
    4       0/0               0/0              0/0           28      40  1/10
    5       0/0               0/0              0/0           30      40  1/10
    6       0/0               0/0              0/0           32      40  1/10
    7       0/0               0/0              0/0           34      40  1/10
    RSVP 0/0 0/0 0/0 36 40 1 / 10

    Packet drop counters increment when I controlled from one day to the next, and we have graphs that show random and drops of tail.

    Thank you (in anticipation).

    Hello, Craig.

    Here is the minimum and maximum thresholds that you have on the class by default WRED. That you run fast enough connection with many users, the traffic must be burst, and queue average of 20/40 packages is not enough!

    100M link I would say to have thresholds at least 200 to 300 packages (or even more) respectively; the size of the queue on 400-500.

    Best regards.

    PS: forced to queue length just queues delay and buffers available; I guess in your case, only delay queues would come into play... up to 300 packs * 500 bytes * 10/150 M = 1/100 sec = 10 ms (in the worst cases).

  • Need help little ADDM report...

    DETAILED REPORT ADDM FOR TASK 'ADDM:151072109_1_2686' WITH ID 9530
    ------------------------------------------------------------------

    Evaluation period: May 16, 2011 11:00:55-11:29:38
    Database ID/Instance: 151072109/1
    The names of database/Instance: IU10G/iu10g
    Host name: LIVEDB
    Database version: 10.2.0.1.0
    A range of snapshot: of 2685 to 2686
    Database time: 364 seconds
    Average load of data base:.2 active sessions

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    1: 64% impact RESEARCH (234 seconds)
    -----------------------------------
    Time spent on the processor by the instance has been responsible for a substantial part
    time of database.

    RECOMMENDATION 1: SQL Tuning, 31% of profit (112 seconds)
    ACTION: Run SQL Setup on the SQL with SQL_ID
    '57xtcdjqy9pv4 '.
    RELEVANT SUBJECT: With 57xtcdjqy9pv4 SQL_ID SQL statement and
    PLAN_HASH 3175156280
    UPDATE FEESUM SET AMTPAY = (SELECT SUM (CRE_BAL) OF STUJOURNAL
    WHERE REF_NO =: b1 AND STDJID LIKE '% SPY') WHERE VHNO =: b1
    RATIONALE: The SQL with SQL_ID "57xtcdjqy9pv4" was performed 2256
    time and took an average time of 0,051 seconds.
    RATIONALE: Average CPU used by execution was 0.049 seconds.

    RECOMMENDATION 2: Demand analysis, benefit from 28% (101 seconds)
    ACTION: Parsing SQL statements consumed significant CPU. Please
    refer to other findings in this spot on for further analysis
    Details.

    RECOMMENDATION 3: SQL Tuning, 13% advantage (48 seconds)
    ACTION: Run SQL Setup on the SQL with SQL_ID
    '0qz20ftp5t89r '.
    RELEVANT SUBJECT: With 0qz20ftp5t89r SQL_ID SQL statement and
    PLAN_HASH 1500325377
    SELECT COUNT (*) FROM ENTER_MSG WHERE SEND_UNSEND = 'U '.
    ACTION: Examine the SQL with SQL_ID '0qz20ftp5t89r' for
    improvement of the performance possible.
    RELEVANT SUBJECT: With 0qz20ftp5t89r SQL_ID SQL statement and
    PLAN_HASH 1500325377
    SELECT COUNT (*) FROM ENTER_MSG WHERE SEND_UNSEND = 'U '.
    RATIONALE: With SQL_ID '0qz20ftp5t89r' SQL statement executed 167
    times and had an average of 0.28 seconds.
    RATIONALE: Average CPU used by execution was 0.12 seconds.

    FIND 02:45 % impact (164 seconds)
    -----------------------------------
    SQL statements consume significant database time were found.

    RECOMMENDATION 1: SQL Tuning, 31% of profit (112 seconds)
    ACTION: Run SQL Setup on the SQL with SQL_ID
    '57xtcdjqy9pv4 '.
    RELEVANT SUBJECT: With 57xtcdjqy9pv4 SQL_ID SQL statement and
    PLAN_HASH 3175156280
    UPDATE FEESUM SET AMTPAY = (SELECT SUM (CRE_BAL) OF STUJOURNAL
    WHERE REF_NO =: b1 AND STDJID LIKE '% SPY') WHERE VHNO =: b1
    RATIONALE: The SQL with SQL_ID "57xtcdjqy9pv4" was performed 2256
    time and took an average time of 0,051 seconds.

    RECOMMENDATION 2: SQL Tuning, 13% advantage (48 seconds)
    ACTION: Run SQL Setup on the SQL with SQL_ID
    '0qz20ftp5t89r '.
    RELEVANT SUBJECT: With 0qz20ftp5t89r SQL_ID SQL statement and
    PLAN_HASH 1500325377
    SELECT COUNT (*) FROM ENTER_MSG WHERE SEND_UNSEND = 'U '.
    ACTION: Examine the SQL with SQL_ID '0qz20ftp5t89r' for
    improvement of the performance possible.
    RELEVANT SUBJECT: With 0qz20ftp5t89r SQL_ID SQL statement and
    PLAN_HASH 1500325377
    SELECT COUNT (*) FROM ENTER_MSG WHERE SEND_UNSEND = 'U '.
    RATIONALE: With SQL_ID '0qz20ftp5t89r' SQL statement executed 167
    times and had an average of 0.28 seconds.

    FIND 03:31 % impact (114 seconds)
    -----------------------------------
    Difficult the analysis of SQL statements consumed time important data.

    NO AVAILABLE RECOMMENDATION

    ADDITIONAL INFORMATION:
    Difficult parsed because of the incompatibility of cursor environment did not consume
    time of important database.
    Hard instructions analysis SQL that has encountered any errors of analysis was not
    important base of consumption.
    Difficult due to the invalidation of his slider and use literal parsed were not
    important base of consumption.
    The LMS was the right size.

    CONCLUSION 4: 2.4% impact (9 seconds)
    ----------------------------------
    Soft analysis of SQL statements consumed time important data.

    RECOMMENDATION 1: Demand analysis, benefit from 2.4% (9 seconds)
    ACTION: Investigate the application logic to keep open the frequently used
    sliders. Note that cursors are closed by two cursor close calls and
    session disconnects.

    RECOMMENDATION 2: Configuration of DB, enjoy 2.4% (9 seconds)
    ACTION: Consider increasing the maximum number of open cursors a session
    can have in increasing the value of the parameter 'open_cursors '.
    ACTION: Consider increasing the session cursor cache size by increasing
    the value of the parameter "session_cached_cursors.
    RATIONALE: The value of the parameter 'open_cursors' has been '700' in the
    analysis period.
    RATIONALE: The value of the parameter "session_cached_cursors" was "20".
    during the period analyzed.


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    MORE INFORMATION
    ----------------------

    Wait for the "Application" class was not consuming time of important database.
    Wait for the class "Commit" is not consumed time of important database.
    Wait for the 'Competition' class was not consuming time of important database.
    Wait for the "Configuration" class was not consuming time of important database.
    Wait for the 'Network' class was not consuming time of important database.
    Wait for the "User i/o" class not consumed time of important database.
    Session, connect and disconnect calls did not consume significant database
    time.

    The IO performance analysis is based on the assumption by default as the
    average reading time for a block of data base is 10000 milliseconds.

    An explanation of the terminology used in this report is available when you
    Run the report with the "ALL" level of detail.


    --------------------------------------

    How can I run SQL Tuning Advisor on the SQL with SQL_ID "XYZ" in EM?
    And any other suggestions concerning the above ADDM report is that he appreciates...

    Kind regards...

    Salvation;

    Have you checked my post?

    http://www.Stanford.edu/dept/ITSS/docs/Oracle/10gR2/server.102/b28051/tdppt_sqltune.htm#CAEFFIEE

    Respect of
    HELIOS

  • Is the network address in the identity of A class society I have contract with?

    Is the network address in the identity of A class society I have contract with?

    Hi stuckfree,

    You want to check the following items for related information.

    Address classes

    Public and private addresses

  • Unregistered class - could not open a network application

    original title: class not registered

    The or around May 8, I suspect one update brought a change to computers and some of them can no longer open an application executable network we use. The application is a simple .exe that is written in XML and the Zinc. We use a shortcut to a server share to open it. But some computers of return 'Class not registered' and we can run is no longer the application.

    The updates would have penetrated my executable?

    Hello

    I suggest you post the same question in the Microsoft Techent Forum for assistance. We have a dedicated team to help you with such questions.

    http://social.technet.Microsoft.com/forums/en-us/category/windowsxpitpro

  • Database of queue (%): class network waiting

    Dear gurus

    my production em alert is showing that

    Database of queue (%): class network waiting

    my version of the database is 10.2.0.4 and Os Rhel 4
    I generated awr also, but in that to wait for the event is TCP Socket (Department)

    could someone tell what is exactly the problem, as I look at this behavior only since last night... .the chart shows yesterday 12:00 and continues the chart down upwards and I feel fear and do not find the root cause.please anyone could with lighting

    No one here can say that is the problem, you have not validated no statement of the problem.
    In this line
    Database of queue (%): class network waiting
    There is no factual information about the impact of the event (s)

    In this line
    I generated awr also, but in that to wait for the event is TCP Socket (Department)
    There is also no factual information.

    Oracle 10.2.0.4 is desupported, so you probably upgraded.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • Class of RNWF MSM WIFI network problem

    I have wifi detected in my laptop it worked great for a while and suddenly it is not and I do not have access to wifi, I've updated my driver tried everything what is possible, says my troubleshooting

    Result of diagnosis: problem found
    Question: RNWF MSM Helper Class
    Please help me

    If this is the case, contact your manufacturer. It could be a known issue.

Maybe you are looking for

  • Hi my iphone 5s does not work for some sacurity reasons that I can use the serial number or imei

    My iphome for sacurityureasonscan disable I reset serial number or imei/5 s

  • Can I use optical cable for a mediaoutput all?

    If I use the optical cablehttp://support.toshiba-tro.de/KB0/TSD57013M000UR01.htm No matter what DVD and can be used as media playable CD?I contacted Toshiba support and they said that the media must support S/P-DIF.I do not understand this, anyone el

  • Reinstalling XP OEM with any OEM cd

    Hi, I am in the need to reinstall several OEM XP installations, due to the failure of hard drives. I have the product key and the OEM cd. However, the product key on the sticker was already pasted on computers and CD have been labeled unfortunately n

  • can someone convert my WMM project to a wmv file?

    Hello have beeen fighting with movie maker to convert a project file to a wmv. have followed all the steps of "save computer" but instead to save only "minutes remaining" constantly climbing (in thousands) no save. used wmv files to create project bu

  • My mouse won't drag is no longer

    I can't click - drag with my mouse, a convenient Intellimouse 3.0 (when I click and drag, the computer behaves as if I let my finger to the top of the button). I tried to get the support of the conventional way, but when I enter my ID number of the p