Oracle 11G - configuration of the Service CARS

Hello
I read a lot of documentation about oracle services and I have ok understand how they work. However, I have a general question about using Oracle RAC configuration services. For example, if I have a 2 node RAC 11 GR 2 on a Linux Redhat Server oracle. I have an application that connects to a service that I created. I create the following service.

srvctl add service d ORCL_RAC s app_service - ORCL_RAC1, ORCL_RAC2 r

The tnsnames contains:

APP_OLTP =
(DESCRIPTION =
(LOAD_BALANCE = ON)
(FAILOVER = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = server01) (PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = server02) (PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = APP_SERVICE)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 20)
(TIME = 1)
)
)
)

My questions are the following:

(1) when I do a "srvctl status service d ORCL_RAC", I see the service that is running on both nodes of the RAC? Or he runs only a single node, and then it will switch to the other if necessary?
(2) if I have a RAC environment where I see two services created (RAC_SRV1 and RAC_SRV2). I see that RAC_SRV1 runs only on node1 and RAC_SRV2 is only running on Node2. There are two applications that share the same database, an application uses RAC_SRV1 and the other application is the use of RAC_SRV2. Am I right to think that there is no failover available here? If node1 goes down, the connection to RAC_SRV1 application will be not able to connect to the right of node2?
(3) in the case of the scenario in question 2 above, it would be better practice to simply create a service and have the two applications connecting to a service? Could configure NEB service to point connections of an application with the Node1 and node2 another application?

(1) when I do a "srvctl status service d ORCL_RAC", I see the service that is running on both nodes of the RAC? Or he runs only a single node, and then it will switch to the other if necessary?

You can see how it works on both nodes.
Use a option in srvctl (a list of available instances to which the service switch when the database's administrator managed).

http://docs.Oracle.com/CD/E11882_01/RAC.112/e16795/srvctladmin.htm#i1008562

(2) if I have a RAC environment where I see two services created (RAC_SRV1 and RAC_SRV2). I see that RAC_SRV1 runs only on node1 and is RAC_SRV2 > only running on Node2. There are two applications that share the same database, an application uses RAC_SRV1 and the other application is the use of RAC_SRV2. Am > reason to think that there is no failover available here? If node1 goes down, the connection to RAC_SRV1 application won't be able to connect to node2 > right?

It depends on the configuration of your service. Check it out by srvctl config

(3) in the case of the scenario in question 2 above, it would be best practices simply create a service and have the two applications connecting to that > service? Could configure NEB service to point connections of an application with the Node1 and node2 another application?

better create two services, one for each application with specific and other nodes in the available list.

Tags: Database

Similar Questions

  • Oracle 11G - access to the table problem

    Hello
    New on Oracle IAM... After you create a database, I created a connection and SYSDBA role...
    And then I create a table called Table1. And then I create a new USER and I Connect with the same SID of the database, but the role has the DEFAULT value for this new USER...

    01. but the problem is that I can't find the Table1 table for this new user... so how acess as Table1...?

    02. I came to know in Oracle, also we can design forms for the frontend and can generate EXE... Is this true?

    03. in SQL Server - Sql Port with static IP - we have access to the database for remote users... Is it possible for Oracle?


    Thanks for the directions...

    997497 wrote:
    Hello
    New on Oracle IAM... After you create a database, I created a connection and SYSDBA role...

    What the user did you use to connect? I'm guessing that you logged in as SYS

    And then I create a table called Table1. And then I create a new USER and I Connect with the same SID of the database, but the role has the DEFAULT value for this new USER...

    So I guess that you have created the table in the SYS schema. You should never, ever create user objects in the SYS schema. If you have created the table in the SYS schema, you really need to drop and create in a more appropriate scheme.

    You indicate that you come from SQL Server, so there may be a question of terminology. Which refers to SQL Server as a "database" is roughly equivalent to what Oracle designates as a "scheme." An Oracle database contains many schemas. A schema is the set of objects owned by a particular user.

    01. but the problem is that I can't find the Table1 table for this new user... so how acess as Table1...?

    As I said above, you really, really should not create objects in the SYS schema. If you really want, however, you need to log the SYS schema and grant access on the table to your new user

    GRANT SELECT ON sys.table1 TO your_new_user
    

    You will then need to fully qualify the table name in your SELECT (or create a synonym or the current_schema)

    SELECT *
      FROM sys.table1
    

    02. I came to know in Oracle, also we can design forms for the frontend and can generate EXE... Is this true?

    Older versions of Oracle Forms would create server executables. The modern versions are used to create three-tier applications. You can also use APEX to build web applications. Of course, you can also generate executables by writing code in another language (often .net).

    03. in SQL Server - Sql Port with static IP - we have access to the database for remote users... Is it possible for Oracle?

    Is this possible? Sure. Depending on what means "remote users", however, it may be poorly advised - you would never open a database to the internet directly, for example, you want to ensure that the remote users are connected to your network (via a virtual private network).

    Justin

  • Oracle 11g and then the database export import in oracle 10g

    Hello! There everyone...

    Please tell me the way to export the data and my data structures i.e. the comprehensive database of Oracle 11 g to the old version (oracle 10g) and how he import it...

    I move the database from one computer to another without lan, preferably via the storage device...

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/dp_overview.htm#CEGFCFFI

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/dp_export.htm#i1009711

  • Oracle 11G Configuration problem

    Hi all
    I am installing Oracle Forms and reports 11 g [11.1.2].

    I installed Oracle 11 g, getting a problem when configuring it.

    INST-07249: year Unexpected error occurred during validation of Middleware location home
    INST-07286: specified Oracle Middleware locationdoes House has no version 10.3.5 WebLogic server. Then by configuring the weblogic server will fail if the version is incorrect

    WLS 10.3.5 were installed, and I can access the admin console.
    I did checked for version WLS in its registry file created during installation of WLS to confirm its version number.

    I used the same location House middle ware that I used to install the WLS.

    Please can you get me some information to overcome this problem?

    Hi rafik,.

    Port 5556 is used by the Manager of nodes. Simply stop Node in your Windows Services Manager and click on 'Retry' market area to create. It should work. If you have already left the Setup Wizard before running it again, make sure to Node Manager is stopped before you try.

    The problem is that the Oracle Fusion Middleware Installer is smart enough to know that Node Manager is already listening on port 5556, so he's trying to start again on that port node management. This is a problem since the installer of Forms 11 g 1 matter :)

    Thank you

    Gavin

  • Oracle 11g R2, CREATE THE TABLE and QUOTAS

    Hi all
    I need some insight on a strange behavior, that I discovered in Oracle 11 g 2. Don't know if I'm missing something or if I just discovered a security issue with Oracle.

    Oracle Version: 11.2.0.1.0

    The problem is with the CREATE TABLE and the QUOTA on the specific tablespace privilege.

    Please, try this on your system (if you have some free time and care to confirm the "bug").

    Create a user, grant privileges than two, CREATE THE SESSION and CREATE TABLE.

    Grant NO quota on any tablespace.

    Try to create a table on any tablespace (except SYSTEM) and everybody say if it worked or not.

    The oracle documentation provides the following:

    To create a relational table in your own schema, you must have the CREATE TABLE system privilege. To create a table in the schema of another user, you must have the CREATE ANY TABLE system privilege. In addition, the owner of the schema containing the table must have a quota of space on the tablespace contains the table or the UNLIMITED TABLESPACE system privilege.

    [http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_7002.htm#SQLRF01402]

    The fact is, so far, on two different instances of Oracle 11 g 2, my users are not limited in the creation of the tables only when they have quotas, but where they want to, except the STRING.

    The behavior correct would be to deny the creation of the table the tablespace where there is no quota, but it does not work.

    My instance of Oracle 10 g behave properly and therefore the creation of the table is denied the tablespace with no quota.

    P.s1 sorry if this a well known "bug/problem/question". I've been ridiculous on a well-known forum for the same question. I don't need to be "filled spoon" as shown on this famous site! I have read the documentation! I googled a lot!

    P.s2 even if the creative work of table on tablespace with no quota, you cannot insert data into it. Yes, big picture, the user cannot not filled space with irrelevant data tables, but it can create thousands of tables...!

    Did I miss something?
    Is there a 'default' option I have to mark to prevent the creation of the table where it shouldn't?
    ? (?)

    Please read http://tkyte.blogspot.com/2011/02/deferred-segment-creation.html.

  • Oracle 11g: engage inside the outer loop or loop

    Hello

    Could someone pls help in this regard.

    My PLSQL program retrieves approximately 400 000 thousand records in cursor loop and cl, it takes more than 4 hours to complete IT.

    I commit every transactions inside the cursor loop... This can affect the runtime performance?


    Also, pls suggest, can we use commit 400 000 transactions once it will be faster? (or) the performance of baskets longer than the current situation.


    My goal is to make the fastest program and expect to reduce the timing of execution of 4 hours to 1 hour...


    Appreciate your help...


    Program design: advice:

    a. Select 400 000 thousand documents in the cursor.

    b. inside cursor for loop to two new sql instructions written to get values and store it in the local variable (this value is used in the call to insert data), two sql statements are handled with no_data_found and too_may_rows logic implicit sql statements to intercept the errors of the company

    c insert statement.

    validation of d. inside the loop (batch mode: nowait)

    management at the level of the procedure using raise_application_error exception e...

    Do not use the PL/SQL for data processing. SQL is a powerful language. Get the best out of him.

    Here is an example of using INSERT ALL. This is untested code and may contain syntax and semantic errors.

    insert all
      into medicomread.aatable_permit_people
      (
            permitnum
          , lic_num
          , lic_type
          , bus_name
          , addr1
          , addr2
          , addr3
          , city
          , state
          , zip
          , ph1
          , ph2
          , fax
          , bus_lic
          , lic_original_issue_date
          , expiration_date
      )
      values
      (
            appt_ref_no
          , lic_num
          ,'Business License'
          , company_name
          , postal_address
          , null
          , null
          , null
          , emirate
          , po_box
          , telephone
          , null
          , fax
          , license_no
          , issue_date
          , expiry_date
      )
      log errors into err$_aatable_permit_people ('INSERT1: HEALTH CARD SPONSOR DETAILS') reject limit unlimited
      into medicomread.aatable_permit_people
      (
            permitnum
          , tt_contact_type
          , name
          , b1_contact_nbr
      )
      values
      (
            appt_ref_no
          , 'Applicant'
          , cname
          , userseqno
      )
      log errors into err$_aatable_permit_people ('INSERT2: HEALTH CARD BUSINESS USER DETAILS') reject limit unlimited
      into medicomread.aatable_permit_people
      (
            permitnum
          , tt_contact_type
          , B1_Contact_Nbr
          , Name
          , gender
      )
      values
      (
            appt_ref_no
          , 'Individual Health'
          , userseqno
          , patient_name
          , ***
      )
      log errors into err$_aatable_permit_people ('INSERT3: HEALTH CARD APPLICANT USER DETAILS') reject limit unlimited
    with t1
    as
    (
     select mr.appt_ref_no
          , mr.sponsor_name
          , substr(mr.PATIENT_NAME,1,79) PATIENT_NAME
          , mr.***
       from medicomdata.mc_register mr
          , medicomdata.mc_process_type_register mptr
          , medicomdata.um_users uu
          , medicomdata.um_companies uc
      where mr.patient_id     = mptr.patient_id
        and mr.pro_id         = uu.user_id
        and mr.facility_id    = mptr.facility_id
        and mr.process_type   ='OH'
        and mr.regn_status    = 5
        and mr.sponsor_name   = uc.company_name
        and uu.type_id        = 3
        and (add_months( mptr.issued_date, 12 )-1) > sysdate
    ),
    t2 as
    (
     select decode(ucr.license_category_id,'DED','DED'||uuc.license_no,uuc.license_no) lic_num
          , uuc.company_name
          , ucr.postal_address
          , ucr.emirate
          , ucr.po_box
          , ucr.telephone
          , ucr.fax
          , uuc.LICENSE_NO
          , ucr.issue_date
          , ucr.expiry_date
       from medicomdata.um_companies uuc,medicomdata.company_registration ucr
      where uuc.license_no=ucr.business_license_number
        and uuc.inactive=0
        and upper(ucr.request_status)=upper('true')
    ),
    t3 as
    (
     select uu.company_name
          , cname
       from (
             select uu.first_name ||' '|| uu.last_name cname
                  , row_number() over(partition by uu.company_name order by decode(usr.service, 'HCDC', 0, 1)) rno
               from medicomdata.um_users uu
                  , medicomdata.user_service_request usr
              where uu.user_id      = usr.user_id
                and usr.service     = 'HCDC'
                and uu.type_id      = 2
                and uu.inactive     = 0
             )
      where rno = 1
    )
    select t1.appt_ref_no
         , t1.patient_name
         , t1.***
         , t2.lic_num
         ,'Business License'
         , t2.company_name
         , t2.postal_address
         , null
         , null
         , null
         , t2.emirate
         , t2.po_box
         , t2.telephone
         , null
         , t2.fax
         , t2.license_no
         , t2.issue_date
         , t2.expiry_date
         , t3.cname
         , companyuserseq.nextval userseqno
      from t1
      join t2
        on t1.sponsor_name = t2.company_name
      join t3
        on t1.sopnsor_name = t3.company_name;
    
  • Insert in oracle 11g postgresql using the database link

    Hey all,.

    an I have a problem when I try to insert into the table postgre

    copy of sa/sa@xe insert "ora". "TAB0"@orapos3 using select * from tabel0;

    SP2-0498: lack of column between parentheses or USING keyword list

    to 'ora '. "TAB0"@orapos3, data type of are all text columns

    tabel0 taype data of the whole column is varchar2...

    What is the cause?

    kgronau,

    Thanks for your help

    I found the solution to this problem, this is not caused by the configuration...

    I use the pl/sql like this:

    DECLARE

    CURSOR remote_insert IS SELECT * FROM sa.tabel0;

    START for rec IN remote_insert LOOP

    INSERT INTO "ora". ' Values of TAB0"@orapos3 (rec.kolom000, rec.kolom001, rec.kolom002, rec.kolom003, rec.kolom004, rec.kolom005, rec.kolom006, rec.kolom007, rec.kolom008, rec.kolom009, rec.kolom010);

    END loop;

    END;

    /

    Thank you

    Daniel

  • failure of configuration for the service mobile ePrint

    I have a new HP Photosmart 7515; I tried to connect to ePrintCenter.com with my email address and password and it failed, saying that my password is not valid.  I clicked on forgot password link, but I don't receive an email with instructions to reset.

    Why is it so difficult?

    Thank you for your response.  No, I didn't already have successfully Setup of the ePrint account - that's what I was trying to do, but kept getting an error of wrong password.  When I would try to get the password reset, I got the dialog box show you, but never received an email with instructions. I'm one of those people who never stops trying.  I have been a HP customer for years and apparently the a passwords I used for another product or HP website was still active.  I had the chance to finally choose one who has accepted the ePrint Center.  It was a very frustrating experience, but all's well that ends well.

  • the error of java that I encounter in oracle 11g when I using jdm

    I have finished a java data mining program, it can work in oracle 10g. But now, I must apply this program in oracle 11g.

    What should I do to make this work always in oracle 11g?

    The pot have been replaced with 11 g pot. But when I debug the program, programName m_ of the BuildTask is always "dmsys.build_program" and it should be "sys.build_program".

    Then when it is running to the executeTask, the error occurred.

    **************the  error**********************************

    19:19:55, AprioriExecuteUtil:248 DEBUGGING 734-

    19:19:55, DEBUG 734 AprioriExecuteUtil:249 - model Build.

    19:19:55, AprioriExecuteUtil:250 DEBUGGING 734-

    19:21:52, 328 ERROR AprioriExecuteUtil:114 - executeError:

    java.lang.ArrayIndexOutOfBoundsException: 0

    at oracle.dmt.jdm.task.OraBuildTask.mapJobArgs(OraBuildTask.java:410)

    at oracle.dmt.jdm.base.OraTask.retrieveObjectFromDatabase(OraTask.java:535)

    at oracle.dmt.jdm.base.OraTask.removeTaskContents(OraTask.java:229)

    at oracle.dmt.jdm.base.OraTask.removeObjectFromDatabase(OraTask.java:214)

    at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.removeObject(OraPersistanceManagerImpl.java:297)

    at oracle.dmt.jdm.resource.OraConnection.removeObject(OraConnection.java:389)

    at oracle.dmt.jdm.OraMiningObject.saveObjectInDatabase(OraMiningObject.java:150)

    at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.saveObject(OraPersistanceManagerImpl.java:245)

    at oracle.dmt.jdm.resource.OraConnection.saveObject(OraConnection.java:383)

    at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.executeTask(AprioriExecuteUtil.java:324)

    at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.buildModel(AprioriExecuteUtil.java:303)

    at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.execute(AprioriExecuteUtil.java:108)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

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

    So, if there is someone know the reason why, please tell me how to solve this error. Thank you!!!

    Hello

    I found the reason. It is caused by the ojdbc.jar.

    Thank you.

  • How to change the size of the archivelog file in oracle 11g

    Hello

    In my oracle 11g database within the flash recovery area how to increase the size of each file, now it 41 MB per file iits name is o1_mf_1_161_8mfpwtbj_.arc how to take it
    the understandable name.

    Thanks and greetings
    hai,
    Thanks for your information
    

    If your question is answered, mark the thread as answered and clean up the forum

  • How to create the new database in oracle 11g

    Hello
    I m new in oracle 11g, I downloaded oracle 11g and with the help of the guide of the developer-2 days, I learned all the SQL queries, but I worked with human resources database.
    Now, I want to create my own database with the required tables. Can anyone help me how I can make my own database in oracle 11g.

    Thank you
    Manna

    870692 wrote:
    Hello
    I m new in oracle 11g, I downloaded oracle 11g and with the help of the guide of the developer-2 days, I learned all the SQL queries, but I worked with human resources database.
    Now, I want to create my own database with the required tables. Can anyone help me how I can make my own database in oracle 11g.

    Thank you
    Manna

    Be sure to distinguish between the terms and the database schema. Other products, make them bad. It would be a HR diagram (or a user, which is the same in Oracle). If you do not need to use the database Wizard, unless you are working with a new host with no database.

    A simple way would be to get the DDL to create the HR schema and modify it for your own. It can be extracted from your database in several ways, or you can copy the hr_cre.sql to your own script and change. The two ways are educational, and you can google for instructions.

  • Configuration of the IPC

    Hello
    I have a question related to the Inter Process Communication.
    It is the first time that I try to configure it and probably you can help me.
    I have an environment with WLS with two engines and I want the process to a single engine to create instances in the process of the other engine. I created two projects of small sample to test how it works.
    I started with the simplest scenario. I sent two engines to the WL Admin Server. I have a single body. I sent each project to each engine. And now I have to configure in the external processes in the Task Manager. The first thing to configure is the Organization, I guess that's the organization that appears when you connect to the administrator of the process, in my case, it's oracle is to know how to be configured or must put the name of FDI or the OU that appears at the level of the process?
    After setting up the Organization, I need to set up some properties:
    1 - OU: I have no defined organizational units so that I can leave this field blank or I'll put ' / '.
    2 - process: I put here the process I want to instantiate that belongs to the project deployed in the other engine.
    3 - URL: t3://192.168.1.33:7001 where is my adminserver.
    4. - user: user which I put here?, the admin user?
    When I start the process, I have an exception, sorry it of in Spanish, but basically says that the process I want to instantiate is not found in the oracle of directory service.
    ENGL_01215 Se ha producído una excepcion mientras is ejecutaba una like. Details: The instance ' / Subvencion#Default-1.0/8/0@oracle' of the activity ' / local # default - 1.0 / ProcessCreation [Transact]' no ha could create an instance in the process ' / Tramitar@oracle'. Due to: No. is ha sown el proceso "Transact" in the service of directorios: 'oracle' Detalle:Compruebe that the service of Directory works correctamente el proceso y is ha achieved implant. Tenga in cuenta Los Motors J2EE of Oracle live una referencia para comunicarse config. fuego.papi.exception.CannotCreateInstanceException: the instance ' / Subvencion#Default-1.0/8/0@oracle' of the activity ' / local # default - 1.0 / ProcessCreation [Transact]' no ha could create an instance in the process ' / Tramitar@oracle'

    So basically I have something of the above that's not OK, but I did different combinations in this configuration and I still have the same exception.
    Can someone help me?
    Thank you very much
    Kind regards

    Hi Ruben,.
    First of all, you have deployed two processes on the same engine (bpmengine1). I guess you were trying different options.
    Second, I'm afraid to tell you, but there is a bug. The configuration should be the one I told you.
    I didn't test, but I guess you can work around the problem by adding a third reference with the name of the child process, but without its version, pointing to the engine where the deployed assets process run. (do not remove one version, because the engine will need later)

    Don't forget to restart the engine (if you restart WLS still better).

    Hope this helps,
    Ariel

  • ICS error - "the service of the redundancy or the grope does not start.

    These days I was facing this problem on ICS. Whenever I try to share my internet connection with wifi, it gives an error saying: "the service of the redundancy or the grope does not start" I have reset the connection, disable on surroundings & & restart the system as well, but not the changes even error every time. Is there someone can help on this desire to please much appreciated.

    Hi kaliszewski,.

    Welcome to the Microsoft Community and thanks for posting the question.

    According to the description, it looks that you are facing with Internet connection sharing problems.

    Please follow the steps mentioned below that can help us to solve the cause of the problem.

    Method 1:

    Maybe not all services that run the Internet (ICS) ICS are enabled. I suggest to start over and make sure that the underside of addiction services are activated.

    1. click on Start, run, type services.msc and click OK.

    2. to activate a service, find in the right pane and double click on its entry.

    3. make sure that the Startup Type is set to Automatic , and then click OK.

     

    All the following services must be so configured to use ICS:

    Application Layer Gateway Service
    Network connections
    Knowledge of the network (NLA) locations
    Plug-And-Play
    Remote Access Auto Connection Manager
    Remote Access Connection Manager
    Remote procedure call (RPC)
    Telephony

    After checking and automatic startup for each of these services configuration, close the Services window and restart the computer before trying again to enable ICS.

    Method 2:

    To disable and then re-enable the Internet connection sharing on the Internet connection of the Windows 7 computer. If it asks you to select a private network connection, select the one that connects to the hub. Check the connections to the LAN on each computer:

    1. Press Windows Key + R.
    2. Type ncpa.cpl in the box and press enter.
    3. Right click on the connection to the local network, and then click status.
    4. Click on Details. It should show these values:
    • IPv4 address: 192.168. *. *
    • IPv4 subnet mask: 255.255. *. *

    If the values are not good, Internet connection sharing is not configured correctly.

    You can also consult the following link for troubleshooting Internet connection sharing problems:

    http://Windows.Microsoft.com/en-us/Windows7/using-ICS-Internet-connection-sharing

    Hope the above caliper problems

    If you need further clarification or additional assistance, please let us know, we will contact you as soon as possible.

    Thank you.

  • report of situation of the service...

    Hi guys,.

    I'm sure someone has already done something similar.

    I got this code:

    =======================================================================================

    # Trap configuration for catching exceptions
    trap [Exception]
    {
    write-error $("pris àle PIÈGE:" + $_.) Exception.Message);
    }

    # read computer text file
    $computers = get-Content "srv.txt";
    $start = $true;

    # Configuration of the Service table with the names of services, we want to verify are running
    $serviceArray = "service1", "service2;

    # Powershell knows that it is a table, so it is simple to work with her
    foreach ($computer to $computers)
    {
    $objWMIService = get-WmiObject-class win32_service-computer $computer

    foreach ($service in $objWMIService)
    {
    # Check each service specicfied in the $serviceArray
    foreach ($srv to $serviceArray)
    {
    If ($service.name - eq $srv)
    {
    Write-Host "$srv is present on $computer.";
    If ($service.state - eq "running")
    {
    Write-Host "$srv is running on $computer.
    }
    on the other
    {
    Write-Host "$srv is not running on $computer ';
    }
    }
    }
    }
    }

    $report = @)

    If ($report - not $null) {}
    $msg = new-object Net.Mail.MailMessage
    $smtp = new-object Net.Mail.SmtpClient ($smtpServer)
    $msg. From = $MailFrom
    $msg. To.Add ($Mailto)
    $msg. Subject = "subject".
    $msg. Body = $report
    $smtp. Send ($MSG)
    }
    =======================================================================================

    So now, I would like to have in an email with all the servers in the list, and "Running" or "Does not work" next to the services that are in the table...

    Kind regards
    MF

    You can fix with the WIN32_PingStatus class.

    Something like that

    $report = @)
    $serviceArray = "service1", "service2.

    foreach ($computer in (Get-Content "srv.txt")) {}
    $pingable = get-WmiObject-class WIN32_PingStatus - filter "address ="$computer"
    if($pingable.) StatusCode - eq 0) {}
    Get-WmiObject-class win32_service-computer $computer | %{
    If ($serviceArray - contains $_.) {Name)
    $row = "" | Select Server ServerState, Service, location
    $row. Server = $computer
    $row. ServerState = "online".
    $row. Service = $_. Name
    $row. Status = $_. State
    $report += $row
    }
    }
    }
    else {}
    $row = "" | Select Server ServerState, Service, location
    $row. Server = $computer
    $row. ServerState = "offline".
    $report += $row
    }
    }


    $report

    I introduced a new property called ServerState, who say online or offline, depending on whether the server is ping requests.

  • install oracle 11g r2

    Hi people, please specify a good link to install oracle 11g r2 on the computer windows XP client

    and also the steps how to install

    Thanks in advance

    Salvation;

    All the installation guide canbe to 11 doc librart g which is available at:

    http://www.Oracle.com/pls/db112/homepage

    Also, see, and check below doc of steps the thread mention etc.

    11 GR 2 on Windows XP installation problem
    Re: problem installing 11 GR 2 on Windows XP

    Respect of
    HELIOS

Maybe you are looking for

  • Do not get the new look of Firefox 4

    I upgraded my Firefox 4.0.1 desktop (Windows XP, but I still don't have the same 'look' as with the previous version.) I uninstalled and then did install a new one, but still not 'old' aspect is however the 4.0.1 version Firefox, however on my laptop

  • Need drivers SATA for Satellite A100 (PSAA3E)

    I'm hoping that someone ca help me. I'm doing a new installation of vista 32-bit, but the computer does not display my hardrive. I've been to the site of intel and tried to install a good pilot "storage manager", which relates to the chip, which I th

  • Songs missing from iTunes game

    I recently signed up for iTunes game, once they raised the limit to 100 k. I already had my Apple TV Gen 4 at this stage. When I navigate to the 'My music' part the application of music, it shows only about 20% of my library in the list of songs. I t

  • Table quantities:

  • Windows 7 Ultimate - function "Rate This Computer" does not

    When I click on "Rate this computer" I get an error message. "Windows Experice Index for your system could not be calculated. Cannot complete the requested assessment. This system has no multimedia support to carry out the requested assessment. »