Running parallel queries in 11 GR 2

I'm a little confused about parallel execution in GR 11, 2.

Lets say I have the Setup below.

parallel_servers_target = 4;

PARALLEL_MAX_SERVERS = 16;

parallel_degree_limit = CPU

parallel_threads_per_cpu = 2

parallel_adaptive_multi_user = TRUE

N ° of UC = 16 CPU, 2 cores each.

The Test table degree = DEFAULT

Example query:

Select * from Test by 1,2,3;

Lets say I want to run 5 in parallel sql statements that require 4 parallel workers each.

PARALLEL_DEGREE_POLICY = AUTO:

What of her below happen?

(a) a statement was going to be executed and the rest four would be queued because the first statement itself uses 4 parllel workers what amounts to our parameter of parallel_servers_target.

or

(b) four statements would be carried out using 4 workers each and the fifth would be queued because it exceeds the parallel_max_servers setting if it were to be executed.

or

Please explain what could happen if not a) or b).

PARALLEL_DEGREE_POLICY = MANUAL:

What of her below happen?

(a) four statements would be managed (using 4 parallel slaves each) and the fifth will be held in the series.

or

(b) all five would be using parallel workers. If so, please explain how the No. parallel to each statement slaves were to be distributed.

or

(c) it would first try to allocate 16 sons in the first statement. Later it will adjust accordingly and reduce parallel workers allocated to each statement and end up running two 4 statements with parallel workers or all the five workers parallel.

I appreciate really all of your answers on this.

UC = 60 (perhaps CPU_COUNT = 60), the number of cores = 15 - so you have four hardware threads by heart.

The DOP default value is calculated as PARALLEL_THREADS_PER_CPU * CPU_COUNT (in the single instance databases) - in your case, the DOP default is 2 * 60 = 120.

See this page 20 (http://www.oracle.com/technetwork/database/bi-datawarehousing/twp-parallel-execution-fundamentals-133639.pdf) :

Manually set the degree of parallelism

With PARALLEL_DEGREE_POLICY set to MANUAL Auto DOP feature is disabled and the end user must manage the use of parallel execution in the system.

You can either apply the default value of the so-called DOP or a specific fixed value for the declaration of principles on a session, statement or object level.

LACK of parallelism

...

Fixed degree of parallelism (DOP)

Unlike the LACK of parallelism, a specific DOP can be asked to the Oracle database. You can use one of the following ways to get a fixed DOP.

1. define a fixed DOP for objects. ALTER TABLE 8 PARALLELS customers. ALTER TABLE 16 PARALLELS sales;

2. use the suspicion level parallel (integer) statement. SELECT / * + parallel (8) * / COUNT (*) OF customers.

3. use the level indicator parallel (table_name, whole) object. SELECT / * + parallel (8 customers) * / COUNT (*) OF customers.

Note that the parameters in the table on the #1 above give you only the fixed DOP in manual mode and mode limited, namely when PARALLEL_DEGREE_POLICY is set to MANUAL or LIMITED.

All table decoration will be ignored in mode (AUTO or ADAPTIVE) AutoDOP.

Also note that for example # 1 parameters, Oracle will choose the DOP requested as follows:

-The queries accessing the CUSTOMERS table use a DOP asked 8.

-Accessing the SALES table queries ask a DOP of 16.

-Queries accessing both the SALES and the CUSTOMERS table will be processed with a DOP of 16. Oracle uses the upper DOP2.

The number of allocated PX servers can become always twice the requested DOP in the case of parallel processing requires two sets of PX server for treatment of producer/consumer.

And see on page 25:

Parameter: PARALLEL_MAX_SERVERS

Default value: PARALLEL_THREADS_PER_CPU * CPU_COUNT * concurrent_parallel_users * 5

Suggested value: default

Explanations: Sets the maximum number of servers in parallel execution that can allocate an instance of database. This is a hard limit and cannot be exceeded.

So, put PARALLEL_MAX_SERVERS > 120.

In fact, it would be better to change the PARALLEL_THREADS_PER_CPU = 1 parameter (default is 2). See this page 25:

Parameter: PARALLEL_THREADS_ PER_CPU

Default value: 2

Suggested value: 1 for platforms with hyperthreading enabled, 2 for other platforms

Explanations: Number of parallel processes that a processor can handle in parallel execution

Then the default DOP would be PARALLEL_THREADS_PER_CPU * CPU_COUNT = 1 * 60 = 60.

In this case, set PARALLEL_MAX_SERVERS > 60.

Kind regards

Zlatko

Tags: Database

Similar Questions

  • What might be 'parallel queries alarm firmware' Star?

    Our database of production with the projector of the analysis, discovered us the alarm 'parallel firmware of queries.

    As far as I understand it, this means that a query that is supposed to work in parallel using multiple PQ (parallel query servers) must be serialized by the absence of PQ.

    But the parallel server is disabled:

    < police = "Courier New" > < pre >
    SQL > show the parallel parameter

    < b > NAME < /b > VALUE TYPE
    fast_start_parallel_rollback string LOW
    parallel_adaptive_multi_user Boolean TRUE
    parallel_automatic_tuning boolean FALSE
    whole parallel_execution_message_size 2152
    parallel_instance_group string
    PARALLEL_MAX_SERVERS integer 8
    parallel_min_percent integer 0
    parallel_min_servers integer 0
    < b > < color = "#FF0000" > parallel_server boolean FALSE < / police > < / b >
    parallel_server_instances integer 1
    parallel_threads_per_cpu integer 2
    recovery_parallelism integer 0
    < / pre > < / make >

    That should be enough, but in addition, we have no tables with degree > 1:

    < police = "Courier New" > < pre >
    SQL > select the owner, table_name from dba_tables where degree > 1;
    no selected line
    < / pre > < / make >

    And not just any what session level parallelism.

    Our database is enterprise Oracle 10.2.0.5 on Solaris 10

    I have 2 questions:

    (1) does anyone know what causes the increase of Spotlight these alarm? ... maybe a confusion of Spotlight?

    (2) how can I find this information (downgraded to parallel queries) through SQL in the views v$ performance?

    Thanks in advance
    Alfonso

    Alfonso Vicente wrote:
    based on decommissioning operations, do you think we should parallel_automatic_tuning set to TRUE and the parallel_execution_message_size?

    Alfonso,

    These statistics show that some queries running on your database are not able to use the required level of parallelism - that's all. Since you have PARALLEL_MAX_SERVERS = 8, this means that even a single session executes a query with DOP > 8 (or 4 > in the case of redistribution of data) is inevitably to be decommissioned. It is bad or not and if it requires a few changes to the DB settings or not, depends only on your queries and how well their execution times are right now and you need some improvements or not.

  • script to run several queries to find/replace

    Working on a big book of ID document (* .indb), I saved dozens of queries to search/replace (named "col01', 'col02' etc.) that I run on 'all documents '. For some reason, I have to run these queries several times a day.

    So I'm wondering if he has, or if someone out there will write: a script that runs these queries one after another. Given the size of the book, it may be necessary to provide the script to pause after each query (before it turns on with the next), but I'm just guessing.

    Any help is very appreciated!

  • No output when using CFTHREAD for parallel queries

    Hello

    I want to run some queries at the same time using cfthread.

    But when I attach the wires and try to generate the query results I get following error:

    "The value of the query of the attribute, which is currently q_emp, is not valid."

    Here is my sample code:

    < cfthread name = "t1" >

    < cfquery name = "q_emp" datasource = 'test' >

    SELECT EmpNo, ename

    WCP

    < / cfquery >

    < / cfthread >

    < cfthread name = "t2" >

    < cfquery name = "q_dept" datasource = 'test' >

    SELECT DeptNo, name

    OF THE Department

    < / cfquery >

    < / cfthread >

    < cfthread action = 'join' name = "t1, t2" / >

    < cfoutput >

    < cfloop query = "q_emp" >

    #empno # #ename # < here >

    < / cfloop >

    < cfloop query = "q_dept" >

    #deptno # #name # < here >

    < / cfloop >

    < / cfoutput >

    What is the problem in my code?

    I use ColdFusion 9 Standard Edition and Oracle 11 g.

    cordially Claudia

    I suspect the variables q_emp and q_dept are available in their scope respective local thread . In other words, within tags respective cfthread in which they are defined.

    I would like to redefine q_emp and q_dept within the scope of the thread, in order to extend their context to the entire page, as follows:

    SELECT EmpNo, ename

    WCP

    CFThread name = "t2" >

    SELECT DeptNo, name

    OF THE Department

    CFThread action = 'join' name = "t1, t2" / >

    cfoutput >

    #empno # #ename #.

    CFLOOP query = "t2.q_dept" > "

    #deptno # #name #.

  • Problems running SPARQL queries with Jena Oracle adapter

    Hello

    I am trying to run SPARQL queries using the adapter of Jena.

    I use Jena 2.6.0 and all concerned pots (granules and ojdbc5) and running on Oracle 11 g 1 material.

    I'm under theexample code provided with the adapter Jena:
    ' public void testOrderBy (String jdbcUrl, String user,
    String password, String modelName,
    PrintStream psOut)
    throws SQLException, IOException
    {
    Oracle Oracle = new Oracle (jdbcUrl, user, password);
    Chart GraphOracleSem = new GraphOracleSem (oracle, modelName);
    Model ModelOracleSem = new ModelOracleSem (graph);

    Void node = Node.createURI ("http://sub/a3");
    Pred node = Node.createURI ("http://pred/p1-a3");
    Node obj = Node.createLiteral("8888");
    Graph.Add (Triple.create (pred, sub, obj));

    void = Node.createURI ("http://sub/a2");
    PRED = Node.createURI ("http://pred/p2-a2");
    Graph.Add (Triple.create (pred, sub, obj));

    void = Node.createURI ("http://sub/a4");
    PRED = Node.createURI ("http://pred/p3-a4");
    Graph.Add (Triple.create (pred, sub, obj));

    Dim queryString As String = "SELECT? s? p? o"
    + "WHERE {?}" s? p? o.}"
    + "ORDER BY? s « ;

    psOut.println ("testOrderBy: question 1");
    runQuery (QueryFactory.create (queryString), model, psOut);


    String queryString2 = "SELECT? s? p? o"
    + "WHERE {?}" s? p? o.}"
    + "ORDER BY DESC (?) p) « ;

    psOut.println ("testOrderBy: request 2");
    runQuery (QueryFactory.create (queryString2), model, psOut);

    Graph.Close ();
    Oracle.Dispose ();
    }

    I'm getting the following exception:
    Exception in thread "main" java.lang.NoSuchMethodError: com.hp.hpl.jena.graph.query.Query.getTriples () mCol/hp/hpl/jena/graph/query/NamedTripleBunches;
    at oracle.spatial.rdf.client.jena.OracleSemQueryPlan.getStatements(OracleSemQueryPlan.java:363)
    at oracle.spatial.rdf.client.jena.OracleSemQueryPlan.executeBindings(OracleSemQueryPlan.java:182)
    to com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriplesQH$ StagePattern. < init > (QueryIterBlockTriplesQH.java:90)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriplesQH.nextStage(QueryIterBlockTriplesQH.java:56)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:87)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:49)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:71)
    at com.hp.hpl.jena.sparql.engine.iterator.QueryIterSort.sort(QueryIterSort.java:44)
    to com.hp.hpl.jena.sparql.engine.iterator.QueryIterSort. < init > (QueryIterSort.java:36)
    to com.hp.hpl.jena.sparql.engine.iterator.QueryIterSort. < init > (QueryIterSort.java:31)
    at com.hp.hpl.jena.sparql.engine.main.OpCompiler.compile(OpCompiler.java:292)
    at com.hp.hpl.jena.sparql.engine.main.CompilerDispatch.visit(CompilerDispatch.java:142)
    at com.hp.hpl.jena.sparql.algebra.op.OpOrder.visit(OpOrder.java:28)
    at com.hp.hpl.jena.sparql.engine.main.CompilerDispatch.compile(CompilerDispatch.java:33)
    at com.hp.hpl.jena.sparql.engine.main.OpCompiler.compileOp(OpCompiler.java:71)
    at com.hp.hpl.jena.sparql.engine.main.OpCompiler.compile(OpCompiler.java:298)
    at com.hp.hpl.jena.sparql.engine.main.CompilerDispatch.visit(CompilerDispatch.java:149)
    at com.hp.hpl.jena.sparql.algebra.op.OpProject.visit(OpProject.java:47)
    at com.hp.hpl.jena.sparql.engine.main.CompilerDispatch.compile(CompilerDispatch.java:33)
    at com.hp.hpl.jena.sparql.engine.main.OpCompiler.compileOp(OpCompiler.java:71)
    at com.hp.hpl.jena.sparql.engine.main.OpCompiler.compile(OpCompiler.java:49)
    at com.hp.hpl.jena.sparql.engine.main.QueryEngineMain.eval(QueryEngineMain.java:43)
    at com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.java:81)
    at com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:70)
    to com.hp.hpl.jena.sparql.engine.main.QueryEngineMain$ 1.create(QueryEngineMain.java:59)
    at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.java:262)
    at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExecutionBase.java:239)
    at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execResultSet(QueryExecutionBase.java:244)
    at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect(QueryExecutionBase.java:77)
    in the example. Examples.runQuery (Examples.java:1748)
    in the example. Examples.testOrderBy (Examples.java:1035)
    in the example. Test.main (test.) Java:23)

    Someone has an idea what is the problem? Am I guilty of?

    Doron,

    There was some interface with Jena itself changes.
    As a result, the Oracle Jena 2.0 adapter does not work with Jena 2.5.7 or Jena 2.6.0. Please try 2.5.6.
    We are working on a new version of the adapter of Jena and this restriction has been lifted.

    See you soon,.

    Zhe Wu

  • Poor Oracle Performance consistency running concurrent queries

    We have 600 million records in the cache must be retrieved on queries (filter or Multi Extractor, we tried both), but we are faced with poor performance when we increase concurrency, we use 5 son of job by node Manager representing a total of 300 sons, we are not able to get a rate higher than 400 records/s (that is, each node consistency to recover 6 records/s) It would take too long (nearly 20 days) to 600 M of process records. This means that consistent performance are poor until the database.

    The improvements that we tried:

    We have created the index (index simple and compound), implemented from POF, tunned shuts down the JVM to reduce the GC, configured network communication (doesn't any sense cause we run everything on the same machine, but we tried), increased coherence nets, implemented best practices and after all, we tried to run on Exalogic , and after all, we had the same problem.

    The material on our tests, we used:

    -Dell R910 with 1 TB of Ram and 80 processors;

    -Oracle Exalogic X 3.

    Each node consistency is using 16 GB of Ram, and we use a distributed Cache.

    Before dropping out of coherence I would like to know if there is something more, we can try.

    We opened the SR and after many tests, that we abandoned consistency, we changed the technology, and now the Solution works well. We understood that the consistency is just for the cache and not for intensive query.

  • Parallel queries

    Hell

    Database 11 g 2
    Host: Linux

    I will carry out request to sys schema and the objects belonged to another schema. sound using 4 parallel to run servers, is that the plan has to say. I also checked the degree for Tables and indexes, but they all have the value 1. I was wondering, what settings/stuff caused this option to use the parallelism despite no parallelism used for Tables and indexes.
    SQL> explain plan for
      2  SELECT SUM(IMC.TYPICAL_PERCENT)   TYPICAL_PERCENT
      3        FROM rds.ITEM_MASTER_COMPONENT   IMC,
      4             rds.master_formula          frm
         WHERE FRM.FRM_ID = 2060055 AND
      5    6             IMC.IML_ID = FRM.IML_ID AND
      7             EXISTS (SELECT 'X' FROM DUAL WHERE
      8                     IMC.CMP_ID in (select cmp_id
      9                            from rds.component_regulation cmr, rds.regulatory_application rap
     10                            where cmr.rap_id = rap.rap_id
     11                            and rap.procedure_name = 'CHALLENGE_USA_HYDROCARBON')) AND
     12             frm.iml_id IS NOT NULL
     13  /
    
    Explained.
    
    SQL> select * from table (dbms_xplan.display) ;
    
    
    
    ----------------------------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                             | Name                          | Rows  | Bytes | Cost (%CPU)| Time     |    TQ  |IN-OUT| PQ Distrib |
    ----------------------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                      |                               |     1 |    37 |    16  (13)| 00:00:01 |        |      |            |
    |   1 |  SORT AGGREGATE                       |                               |     1 |    37 |            |          |        |      |            |
    |   2 |   PX COORDINATOR                      |                               |       |       |            |          |        |      |            |
    |   3 |    PX SEND QC (RANDOM)                | :TQ10004                      |     1 |    37 |            |          |  Q1,04 | P->S | QC (RAND)  |
    |   4 |     SORT AGGREGATE                    |                               |     1 |    37 |            |          |  Q1,04 | PCWP |            |
    |   5 |      NESTED LOOPS                     |                               |       |       |            |          |  Q1,04 | PCWP |            |
    |   6 |       NESTED LOOPS                    |                               |     1 |    37 |    16  (13)| 00:00:01 |  Q1,04 | PCWP |            |
    |   7 |        NESTED LOOPS                   |                               |   153 |  3213 |    11  (19)| 00:00:01 |  Q1,04 | PCWP |            |
    |   8 |         BUFFER SORT                   |                               |       |       |            |          |  Q1,04 | PCWC |            |
    |   9 |          PX RECEIVE                   |                               |       |       |            |          |  Q1,04 | PCWP |            |
    |  10 |           PX SEND BROADCAST           | :TQ10002                      |       |       |            |          |        | S->P | BROADCAST  |
    |* 11 |            TABLE ACCESS BY INDEX ROWID| MASTER_FORMULA                |     1 |     8 |     3   (0)| 00:00:01 |        |      |            |
    |* 12 |             INDEX UNIQUE SCAN         | FRM_PK00                      |     1 |       |     2   (0)| 00:00:01 |        |      |            |
    |  13 |         VIEW                          | VW_SQ_1                       |   153 |  1989 |     8  (25)| 00:00:01 |  Q1,04 | PCWP |            |
    |  14 |          HASH UNIQUE                  |                               |   153 |  3519 |            |          |  Q1,04 | PCWP |            |
    |  15 |           BUFFER SORT                 |                               |       |       |            |          |  Q1,04 | PCWC |            |
    |  16 |            PX RECEIVE                 |                               |   153 |  3519 |            |          |  Q1,04 | PCWP |            |
    |  17 |             PX SEND HASH              | :TQ10003                      |   153 |  3519 |            |          |  Q1,03 | P->P | HASH       |
    |  18 |              HASH UNIQUE              |                               |   153 |  3519 |            |          |  Q1,03 | PCWP |            |
    |  19 |               MERGE JOIN              |                               |   153 |  3519 |    22  (14)| 00:00:01 |  Q1,03 | PCWP |            |
    |  20 |                SORT JOIN              |                               | 30200 |   353K|    19  (11)| 00:00:01 |  Q1,03 | PCWP |            |
    |  21 |                 NESTED LOOPS          |                               | 30200 |   353K|    17   (0)| 00:00:01 |  Q1,03 | PCWP |            |
    |  22 |                  BUFFER SORT          |                               |       |       |            |          |  Q1,03 | PCWC |            |
    |  23 |                   PX RECEIVE          |                               |       |       |            |          |  Q1,03 | PCWP |            |
    |  24 |                    PX SEND BROADCAST  | :TQ10000                      |       |       |            |          |        | S->P | BROADCAST  |
    |  25 |                     FAST DUAL         |                               |     1 |       |     2   (0)| 00:00:01 |        |      |            |
    |  26 |                  PX BLOCK ITERATOR    |                               | 30200 |   353K|    15   (0)| 00:00:01 |  Q1,03 | PCWC |            |
    |  27 |                   INDEX FAST FULL SCAN| CMR_UN01                      | 30200 |   353K|    15   (0)| 00:00:01 |  Q1,03 | PCWP |            |
    |* 28 |                SORT JOIN              |                               |     1 |    11 |     3  (34)| 00:00:01 |  Q1,03 | PCWP |            |
    |  29 |                 BUFFER SORT           |                               |       |       |            |          |  Q1,03 | PCWC |            |
    |  30 |                  PX RECEIVE           |                               |     1 |    11 |     2   (0)| 00:00:01 |  Q1,03 | PCWP |            |
    |  31 |                   PX SEND BROADCAST   | :TQ10001                      |     1 |    11 |     2   (0)| 00:00:01 |        | S->P | BROADCAST  |
    |* 32 |                    TABLE ACCESS FULL  | REGULATORY_APPLICATION        |     1 |    11 |     2   (0)| 00:00:01 |        |      |            |
    |* 33 |        INDEX UNIQUE SCAN              | ITEM_MASTER_COMPONENT_NDX_N01 |     1 |       |     1   (0)| 00:00:01 |  Q1,04 | PCWP |            |
    |  34 |       TABLE ACCESS BY INDEX ROWID     | ITEM_MASTER_COMPONENT         |     1 |    16 |     2   (0)| 00:00:01 |  Q1,04 | PCWP |            |
    ----------------------------------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
      11 - filter("FRM"."IML_ID" IS NOT NULL)
      12 - access("FRM"."FRM_ID"=2060055)
      28 - access("CMR"."RAP_ID"="RAP"."RAP_ID")
           filter("CMR"."RAP_ID"="RAP"."RAP_ID")
      32 - filter("RAP"."PROCEDURE_NAME"='CHALLENGE_USA_HYDROCARBON')
      33 - access("IMC"."IML_ID"="FRM"."IML_ID" AND "IMC"."CMP_ID"="ITEM_1")
    
    51 rows selected.
    Concerning

    Hello

    The "PARALLEL (DEGREE 1)" is not identical to "NOPARALLEL", Oracle will try to use the parallel degree limit based on your setting PARALLEL_AUTOMATIC_TUNING. the NOPARALLEL will ensure that there is no DoP.

    But I have not read all the differences in the Docs (ASAIK), I felt it in my environment.

    Thank you
    Vijay

  • Question: Running the queries

    Hello

    It's maybe a newbie stupid question, but I'll ask anyway since Google has not been able to answer easily:
    When you run queries in Oracle SQL Developer, what is the difference between 'Execute the statement', 'Run Script' and 'commit '? (and throw in 'Dismantling', also if you feel it)

    Normally I just use F9 (run), but someone told me I should use instead to run the Script and then Commit and I don't know the difference :)

    Kind regards
    Gunnar

    lets say your window has 2 following
    Select sysdate double;

    Insert 1 my_table;

    If you click on "execute the statement" it should run only the current statement in highlight or where you put the slider.
    If you click "run a script" it will execute two instructions.
    If you click on 'validate', contains all changes are committed for this window. It does not have anything in the window.

    You need to find and understand what that commit means.

  • Convert or run Parallels?

    Is that what I can convert a Windows 7 Lightroom 3 for Imac or should I run it on Parallels on my Mac?

    Serial number Lightroom is cross-platform. So, what you need to do is download the Mac version, install it, and then apply your existing serial number.

    You can download the versions up to Lr3.6 on this linked page http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • MAC: Split Office on a computer running parallels

    I have a mac, but still like the suite office windows. I've divided my hard drive and want to run outlook just on the patrician windows I like ClearContect outlook plugin. It is not available on a Mac. However quite I execute the rest of the application on the side of my HD Mac - is it still possible? or would I need to buy two separate licenses/products? Thank you

    Hi N Phibbs,

    The only way to use both at the same time would be to use some kind of virtual machine software. Apart from that, he will have to use the system of each operation separately.

    With respect to licensing, a separate license is required for each installation.

  • OID need to run SNMP queries for the CPU usage, etc. in Win XP

    Hello

    I am unable to get the details (CPU Util, Util Swap) of windows using SNMP (SNMP4j.jar) machine. The SNMP service is running on the Windows XP system target. Where can I find the correct OID for windows XP to retrieve these settings?

    Join the code below:

    Import org.snmp4j.CommunityTarget;
    Import org.snmp4j.PDU;
    Import org.snmp4j.Snmp;
    Import org.snmp4j.event.ResponseEvent;
    Import org.snmp4j.mp.SnmpConstants;
    Import org.snmp4j.smi.OID;
    Import org.snmp4j.smi.OctetString;
    Import org.snmp4j.smi.UdpAddress;
    Import org.snmp4j.smi.VariableBinding;
    Import org.snmp4j.transport.DefaultUdpTransportMapping;

    Configure the Snmp object
    private Snmp snmp = null;
    private UdpAddress targetAddress = null;
    private CommunityTarget target = null;
    ResponseEvent responseEvent = null;

    targetAddress = new UdpAddress (10.101.210.127 + ' /' + 161);

    target = new CommunityTarget();
    target.setCommunity (new OctetString ("public"));
    target.setAddress (targetAddress);
    target.setRetries (2);
    target.setTimeout (60000);
    target.setVersion (SnmpConstants.version2c);
           
    SNMP = Snmp new (new DefaultUdpTransportMapping());
                
           
    SNMP. Listen();

    CPU usage code
       
    Command PDU = new PDU();
    command.setType (PDU. (GET);
    Command.Add (new VariableBinding (new OID(".1.3.6.1.2.1.25.2.3.1.4"))); / / percentage of CPU Idle time//.1.3.6.1.4.1.311.1.7.3.1.6.0
    try {}
    responseEvent = snmp.send (command, target);//.1.3.6.1.4.1.2021.11.11.0
    } catch (Exception e) {}
    System.out.println ("Exception:" + e); e.printStackTrace ();
    }
    If (responseEvent.getResponse () == null) {}
    request timed out
    Returns a null value.
    } else {}
    Response PDU dump
    PDU pdu = (responseEvent.getResponse ());
    Output vector = new Vector();
    Output = pdu.getVariableBindings ();
    int val1 = 0;
    Double CPUMemUtil = 0;
    Dim str As String = null;
    Str = Output.get (0) m:System.NET.SocketAddress.ToString ();
    String [] Spstr = str.split("=");
    Spstr [1] = Spstr [1] .trim ();
    try {}
    val1 = Integer.parseInt(Spstr[1]);
    } catch (Exception e) {}
    System.out.println ("An Exception occurred" + e); e.printStackTrace ();
    }
    CPUMemUtil = (100 - val1);
    String OutputMemUtil = Double.toString (CPUMemUtil);
    System.out.println ("CPU usage" + OutputMemUtil);

    Thanks in advance,

    Souto

    Hello

    Questions like these are much better handled in the TechNet IT Pro Forums.

    My moderator tools cannot transfer messages on Windows forums, please re - ask you question there.

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Causes of white space, tab, and line breaks slow in running the queries? What is the main reason behind it?

    Hi all


    I am facing a weird problem in the SQL query. Taken, I wrote the request with the spaces, tabs and line breaks after execution it slows down the database and finally, I have to restart the database again. But after removing the spaces the application went very well. I don't know what the problem causing this slow run, but after the removal of whitespace to query everything works fine. I've also confirmed plans to explain the two after the removal of whitespace and previously had the same results.

    I use the TOOL of DEVLOPER PL/SQL, SQL developer, Toad and Oracle 11 g.

    ***************************************************************

    For example. (in reference to my original query):

    Select

    *

    Of

    Double;

    ****************************************************************

    (After removing whitespace)

    Select * twice;

    *****************************************************************

    What would be the reason for white spaces causing slow performance?

    Please let me know if you need additional information on my question.


    Thanks in advance,

    HP

    If you make the first request without spaces and the second by spaces you will see, the second is even faster...

    The reason why are cached revenge...

    HTH

  • Can I run parallel to R12.1.3, 11.2.0.3 adadmin?

    Hello

    I need to do the following in adadmin. Can I open multiple window and the parallel?

    -recreate the grants and synonyms
    -compile flexfields
    -regen jar files - select YES when you are prompted to force the generation of jar files.
    -recompile apps (check the invalid objects)
    -regen forms and pll
    -relink all the applications programs see: How do I create a link to a version 11i Installation of Applications and Release 12 (Doc ID 356878.1()
    -menus to recompile
    -keep the apps schema

    Thank you

    I need to do the following in adadmin. Can I open multiple window and the parallel?

    N °

    Thank you

    Hussein

  • Report 10g Server (run multiple queries simultaneously)

    Hi, I'm having a problem with the report server and I was wondering if there was a solution to this problem, I'll have.

    I have several users who send requests from different report on the report server. My problem is that if the first is a report and a report of 1000 pages running, the 2nd user submits an application during execution of the 1st request, I noticed on the console of the report server, it says "pending in the queue.

    Is there an option on the report server to allow applications to report both the user run simultaneously? In this way, users are not waiting for another request to finish. I'm looking and I'm not just see.

    Any help is appreciated.

    Chris

    Chris,

    On the application server, edit this file:

    \reports\conf\.conf

    In this folder, find: engine id = "rwEng" and change the value of maxEngine from 1 to 4

    Save the file and restart the report server.

    I hope this helps.

  • Parallel queries on non partitioned tables

    I'm using the 11g database.

    I have a table that is partitioned on column a flag (Y and N), as of now all of the values of this column is Y, while values exist on the one parition while the other partition is empty.

    We use the NAS with RAID storage. If the content of the files is distributed on disks. In this case the parallel requests will be of no use. We use 2 quad core processors, so I guess that according to oracle documentation that parallelism can be set to 16 (8 cores * 2 (slaves for each carrot)).

    My question is since the table isn't actually paritioned parallelism will be of no use here?
    Because the data is distributed parallel slaves will be able to access content from multiple disks at the same time without expectations?

    Published by: souad on November 26, 2009 13:44

    Oracle is not clear how many disks is underlying file system.

    Parallelism can be used even on a single disc, even if the table is not partitioned. That is to say, there is no prohibition or internal control prevents you specify parallelism as a hint or a table / index attribute.
    However, if it will be useful really depends on many factors:
    a. how well the e/s flow performs
    (b) the effects of the other sessions at the same time do I/O
    c. the number of blocks that really needs to be read
    d. If you have enough CPU cores and cycles to manage parallelism
    etc.

    Hemant K Collette

Maybe you are looking for