Oracle 11 g RAC 2: the problem of the script running root.sh

People,

Hello. I want to install Oracle 11 g RAC 2 with 2 Virtual Machines (rac1 and rac2 which BONES are Oracle Linux 5.6) VMPlayer and according to the tutorial

http://appsdbaworkshop.blogspot.com/2011/10/11gr2-RAC-on-Linux-56-using-VMware.html

I've been installing grid Infrastructure using runInstaller from step 1 to step 9/10 in rac1 and rac2 VM.

Now, I run the root.sh script in VM rac1 and rac2 as below:


[root@rac1 /] # /u01/app/grid/root.sh

Output:

... ...

CRS-4123: ohasd begins

FATAL: Module not found oracleoks
FATAL: Module not found oracleadvm
FATAL: Module not found oracleacfs

ACFS-9121: failure of /dev/asm/.asm_ctl_spec detection
ACFS-9310: ADVM/ACFS installation failed.
ACFS-9311: not all components were detected after installation

... ...

'UpdateNodeList' succeeded.
[root@rac1 /] #.




[root@rac2 /] # /u01/app/grid/root.sh

Output:

... ...

CRS-4123: ohasd begins

FATAL: Module not found oracleoks
FATAL: Module not found oracleadvm
FATAL: Module not found oracleacfs

ACFS-9121: failure of /dev/asm/.asm_ctl_spec detection
ACFS-9310: ADVM/ACFS installation failed.
ACFS-9311: not all components were detected after installation

... ...

Beginning of the resource 'ora.asm_init' failed.
Cannot start the ASM.
Failed to start Oracle Clusterware battery.
[root@rac2 /] #.


As seen the above output, rac1 and rac2 get the same problems. In addition, rac2 does not stack Clusterware and ASM. So, I have 2 questions:

First of all, the common problem for rac1 and rac2:

(1) "oracleoks, oracleadvm, oracleacfs" module not found
2)/dev/ASM/.asm_ctl_spec not detected
(3) ADVM/ACFS installation failed

These 3 factors affect grid and Installation of the database later? If so, how to solve these problems?

Second, how to start Clusterware and ASM battery in rac2?


Thank you.

you have 2 options:

1 OEL 5.6 comes with 2 nuclei, the original Red Hat and UEK Oracle, you can not use UEK

or one I recommend:

2. improve the grid Infrastructure,
* 11.2.0.3.1 * (patch 13348650, released a month ago 1) supports ACF on UEK (starting with 2.6.32.200 IIRC)

Tags: Database

Similar Questions

  • PLSQL utl_file.put_line error after the script running 8 ' e

    Hello
    I wrote a script to export the results of a query to an external file using utl_file.put_line. the script works very well for the first 8 hours.

    anonymous block filled
    anonymous block filled
    anonymous block filled
    anonymous block filled
    anonymous block filled
    anonymous block filled
    anonymous block filled
    anonymous block filled

    When I run the same script for the 9th time, I got an error message

    Error from the 1 in the command line:
    DECLARE
    OutFile utl_file.file_type;
    TYPE rc_a IS REF CURSOR;
    l_rc_a rc_a;
    TELLER_1 INTEGER: = 3;
    ctt1 varchar (2000);
    AA varchar (2000);
    BEGIN
    FOR TELLER_1 IN 3.9

    LOOP

    OutFile: = utl_file.fopen ('DAT_DIR', 'A1_W' |) TELLER_1 | "_KANS. TXT', 'w');

    ctt1: = '

    SELECT
    WORP_XW | ''|''||
    D | ''|''||
    V5_AANTAL_KANS | ''|''||
    V5_AVG_KANS | ''|''||
    V6_AANTAL_KANS | ''|''||
    V6_AVG_KANS | ''|''||
    V7_AANTAL_KANS | ''|''||
    V7_AVG_KANS | ''|''||
    V8_AANTAL_KANS | ''|''||
    V8_AVG_KANS | ''|''||
    V9_AANTAL_KANS | ''|''||
    V9_AVG_KANS
    Of
    (
    Select D, V5_AANTAL_KANS, V5_AVG_KANS, V6_AANTAL_KANS, WORP_XW, ROUND(V6_AVG_KANS,6) V6_AVG_KANS ROUND(V5_AVG_KANS,6),
    V7_AANTAL_KANS, V7_AVG_KANS, V8_AANTAL_KANS, ROUND(V8_AVG_KANS,6) V8_AVG_KANS ROUND(V7_AVG_KANS,6),
    V9_AANTAL_KANS, ROUND(V9_AVG_KANS,6) V9_AVG_KANS
    Of
    (
    Select WORP_XW, D, KAN,
    case VERSIE_VX when "V5" then 5 when "V6" when then 6 "V7" when then 7 "V8" when then 8 "V9" then 9 end as VERSIE_VX
    of VMENS. TOEVAL_BASIS_W' | TELLER_1 | »

    )
    pivot)
    AVG (KAN) as AVG_KANS,
    COUNT (KAN) AS AANTAL_KANS
    by VERSIE_VX (V5, V6, V7, V8, V9 9 8 7 6 5)
    )
    ORDER BY D
    )';

    L_rc_a OPEN FOR ctt1;
    LOOP
    EXTRACTION l_rc_a IN aa;
    EXIT WHEN l_rc_a % NOTFOUND;
    -dbms_output.put_line (aa);
    UTL_FILE.put_line (OutFile, aa, TRUE);
    END LOOP;

    END LOOP;
    UTL_FILE.fclose (outfile);
    END;
    Error report:
    ORA-29283: Ongeldige bestandsbewerking/ORA-29283: invalid file operation
    ORA-06512: in 'SYS. UTL_FILE", regel 536
    ORA-29283: Ongeldige bestandsbewerking/ORA-29283: invalid file operation
    ORA-06512: in rule 14
    29283 00000 - "invalid file operation.
    * Cause: An attempt was made to read from a file or a directory which is
    not exist, or the file or directory access was denied by the
    Operating system.
    * Action: Check access privileges to the file and directory on the file system
    and if reading, check that the file exists.


    The same is true when I use another script writes the results of a query to an external file. Y at - there someone who can tell me why I have an error message after running 8 ' e of this script.

    With respect,
    Michiel van Mens

    The second time through the outer loop, it will fail because you try to open a file that is already open. Move your utl_file.fclose statement of before the last "END LOOP '.

  • What can I do if the script runs faster than the network?

    I wrote a script between applications moving to InDesign, where he begins to AppleScript, to Photoshop, which AppleScript runs a JavaScript script to perform various tasks.

    It works beautifully on my laptop at home where I do my development. Yesterday, using me as a Guinea pig, I tried it in the office.

    On the third round, I was horrified to see the ExtendScript Toolkit pop up with an error message (about as welcome to see an AppleScript script, asking the user to open the Script Editor and fix a script).

    The error message was that app.bringToFront (); was not a valid function.

    This was the case in InDesign, which has a different activation function, and I realized that, even if my AppleScript called Photoshop activate, I was still in InDesign.

    The app.bringToFront JavaScript was so called because I had joined my code in the model of Tranberry.

    So I pressed the button stop on ExtendScript, returned to InDesign and represented the script. This time he worked as usual.

    Occasionally on our network we spend some time beachball - watch as a communication happens in the background. So I guess the time wherever the error was thrown was on one of these downturns in the network.

    The passage of InDesign, Photoshop is not happening pretty fast, but the script has run and has issued an order Photoshop JavaScript while I was still in InDesign.

    In AppleScript this unhappy communication with users can be avoided using blocks '... try error'.

    Is there an equivalent of the error handling in JavaScript that would allow me to avoid being tossed in the ExtendScript Toolkit and give them a friendly message to apologize, explaining what had happened and inviting them to try again?

    JavaScript has try/catch blocks

    try {}

    app.bringToFront ();

    } catch (e) {}

    error handling code

    }

    Or you might be able to use an if statement

    If (app == 'photoshop') {}

    app.bringToFront ();

    } else {}

    app handle not photoshop

    }

  • All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    Script launched in until OS user 'A' on the 'A' server which launches sqlplus, then connects to a remote database through a service of tnsnames.ora as another user of the database and the results of this script are spoulées on the server "A".

    The file queued on the old server is written with rw-rw-r: read write user, group read the writing, reading and possession header that is the user of the OS. The file queued on the new server is written to rw-r-r user: reading writing, reading group, public reading and ownership oracle: dba.

    "" The user then has no privileges to modify the file and continue the process of transmitting the file, editing and deleting the file for the next set of commands. This allows us to keep the possibility to migrate to the new server we are unable to process orders.

    $ORACLE_HOME/bin/sqlplus - s user/password@prd1 @./script/CustomScript/R12_OM_UFPC-oracle.sql

    Background: old server running 4.8, Oracle 10.2.0.4 OEL

    New server running OEL 6.5, Oracle 11.2.0.4

    Tested so far:

    File and update umask to 0002 instead of 0022 is now generated as rw-r-r. However, the property is still oracle: dba.

    Update of ownershipt of $ORACLE_HOME/bin/oracle.exe of oracle: oracle (edi added the user to the oracle group) and chmod 6751 oracle.exe. This created several problems where crucial scripts, that is to say of sqlplus failed to run.

    Added! chmod 755 output.file.name - OS user 'A' is not allowed to change to mod.

    Added! command cp MV output file and that generated the file as a user of the operating system: oracle. It is a potential work around in case of emergency, but the developer would have to rewrite the countless scripts.

    Any ideas?

    I have reproduced the behavior of the old server and am able to spool a file via sqlplus under OS user. No changes have been made on the remote database server. All the changes have been on the new server hosting a small 11.2.0.4 database on a server running OEL 6.5 32 - bit OS.

    (1) removed the sticky bit $ORACLE_HOME/bin/sqlplus using chmod u-s, g-s, o - s suggestion of Billy ~ Verreynne

    (2) modified the main group for the 'oracle' user match the user operating system applications, while maintaining membership in the groups 'oracle' and 'dba '.

    -We are dealing with here EDI processes, so the Group was called edi.

    (3) modified property of the files tnsnames.ora and listener.ora for oracle: edi

    (4) restart the receiver

    (5) disconnect / reconnect

    Script runs as expected, the output file contains the correct ownership and permissions.

    Thank you all for taking a look and offering options.

    -Josh

  • Grid Infra configuration failed when running root.sh on the second node

    Hello world.

    I am new guy on RAC environment. When you try to install Oracle RAC on the local environment, I had this problem:

    -J' have run root.sh successfully on a local first node

    -After that, the first node, there are 3 cards of virtual network created to SCAN listening addresses

    -After the success of action on the first node, I tried to run this script on the second node, but the error occurred:

    CRS-2676: Start of 'ora.DATA.dg' on 'dbnode2' succeeded
    PRCR-1079 : Failed to start resource ora.scan1.vip
    CRS-5017: The resource action "ora.scan1.vip start" encountered the following error:
    CRS-5005: IP Address: 192.168.50.124 is already in use in the network
    . For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/dbnode2/agent/crsd/orarootagent_root/orarootagent_root.log".
    
    CRS-2674: Start of 'ora.scan1.vip' on 'dbnode2' failed
    CRS-2632: There are no more servers to try to place resource 'ora.scan1.vip' on that would satisfy its placement policy
    PRCR-1079 : Failed to start resource ora.scan2.vip
    CRS-5017: The resource action "ora.scan2.vip start" encountered the following error:
    CRS-5005: IP Address: 192.168.50.122 is already in use in the network
    . For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/dbnode2/agent/crsd/orarootagent_root/orarootagent_root.log".
    
    CRS-2674: Start of 'ora.scan2.vip' on 'dbnode2' failed
    CRS-2632: There are no more servers to try to place resource 'ora.scan2.vip' on that would satisfy its placement policy
    PRCR-1079 : Failed to start resource ora.scan3.vip
    CRS-5017: The resource action "ora.scan3.vip start" encountered the following error:
    CRS-5005: IP Address: 192.168.50.123 is already in use in the network
    . For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/dbnode2/agent/crsd/orarootagent_root/orarootagent_root.log".
    
    CRS-2674: Start of 'ora.scan3.vip' on 'dbnode2' failed
    CRS-2632: There are no more servers to try to place resource 'ora.scan3.vip' on that would satisfy its placement policy
    
    start scan ... failed
    FirstNode configuration failed at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 9379.
    /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
    
    

    I tried again with several times (with left-hand) but the problem was still there. Can you explain to me?

    -Why, after running root.sh on the first node, all IP SCANNER interfaces was created on this node? This is the reason why root.sh fails on the second node.

    -How to solve?

    I use the server for address scan local DNS resolves to 3 IPs, and I can run script runcluvfy.sh with success on both nodes.

    I thank in advance

    PS:

    I use two virtual machines in vmware. After running root.sh on the first node, I checked and found this funny information:

    [oracle@dbnode1 sshsetup] $ / sbin/ifconfig

    eth0 Link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.66 Bcast:192.168.50.255 mask: 255.255.255.0

    ADR inet6: fe80::20c:29ff:febc:431 b / 64 Scope: link

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    Dropped packets: 249814 RX errors: 0:0 overruns: 0 frame: 0

    Dropped packets: 2956882 TX errors: 0:0 overruns: 0 carrier: 0

    collisions: 0 txqueuelen:1000

    RX bytes: 24913472 (23.7 MiB) TX bytes: 4369984705 (4.0 GiB)

    eth0: 1 link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.120 Bcast:192.168.50.255 mask: 255.255.255.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    eth0:2 Link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.122 Bcast:192.168.50.255 mask: 255.255.255.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    eth0:3 Link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.123 Bcast:192.168.50.255 mask: 255.255.255.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    eth0:4 Link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.124 Bcast:192.168.50.255 mask: 255.255.255.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    eth1 Link encap HWaddr 00: 0C: 29:BC:43:25

    INET addr:192.168.29.10 Bcast:192.168.29.255 mask: 255.255.255.0

    ADR inet6: fe80::20c:29ff:febc:4325 / 64 Scope: link

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    Fall of RX packets: 471 errors: 0:0 overruns: 0 frame: 0

    Dropped packets: 664 TX errors: 0:0 overruns: 0 carrier: 0

    collisions: 0 txqueuelen:1000

    RX bytes: 82216 (80.2 KiB) TX bytes: 107920 (105.3 KiB)

    eth1:1 Link encap HWaddr 00: 0C: 29:BC:43:25

    INET addr:169.254.75.201 Bcast:169.254.255.255 mask: 255.255.0.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    Lo encap:Local Loopback link

    INET addr:127.0.0.1 mask: 255.0.0.0

    ADR inet6:: 1/128 Scope: host

    RACE of LOOPING 16436 Metric: 1

    Fall of RX packets: 10626 errors: 0:0 overruns: 0 frame: 0

    Dropped packets: 10626 TX errors: 0:0 overruns: 0 carrier: 0

    collisions: 0 txqueuelen:0

    RX bytes: 7942626 (7.5 MiB) TX bytes: 7942626 (7.5 MiB)

    I think it's because of the failure on node 2

    UPDATE:

    That thing is normal, I ignored it and the installation can continue normally. Thank you all for your help.

  • Assigned to the user of the script is not running

    Hello

    I have a problem with running scripts assigned to Quest Console (7.6). In resources/Scripts, I have 2 scripts (a VBS and other CMD). The scripts are located on a UNC resource that is accessible by all users. Script executed manually works perfectly. But not automatically runs in desktop computers running with Windows 7 SP1 VDI.

    Any ideas?

    Hi Carlos,

    I saw a similar problem before, in my case the script run perfectly when I run manually but not happen the result when running via a GPO.

    I did some research and learned that it could be caused by settings on the system UAC, you test the policy. With active UAC will be running all scripts that are run from a policy, but in a different security context of the user. When this OPTION is enabled, logon session/logoff scripts are executed by an administrative user, the office can load it later as the user.

    A suggestion to solve the problem was first to apply this registry setting:

    HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem\\\

    EnableLinkedConnections = (dword) 1

    Scripts Google UAC and logon and you will find more information and proposed solutions.

    I hope this helps

    David

  • Application front end error after importing the script executed successfully in R12

    Hello
    I got an exception in the environment of R12.
    I developed a simple page of the OPS and deployed in apps to import the script runs successfully.
    but when I open this page at the Front end will give an exception.

    It's
    Details of the exception.
    oracle.apps.fnd.framework.OAException: could not load application module 'tflsm.oracle.apps.po.per.server.TflsmAM '.


    # # 0 in detail
    Houston-30003: the application pool (cph-oadb - tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed at the checkout a module of application because of the following exception:
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.JboException, msg = Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)



    # # 0 in detail
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)


    # # 0 in detail
    oracle.jbo.NoDefException: Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)


    Houston-30003: the application pool (cph-oadb - tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed at the checkout a module of application because of the following exception:
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.JboException, msg = Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)


    # # 0 in detail
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)


    # # 0 in detail
    oracle.jbo.NoDefException: Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)


    I will check all the class files and the Application Module below top xml files, are all there in the top server (less)
    / U02/TST22/Apps/apps_st/COMN/java/classes/xxfls

    but I got the exception.

    is there a different structure in R12.
    i.Ein the/u02/TST22/apps/apps_st/comn/java/classes/xxfls top of the page from the server (here my class all files in xml files and binary mode in ASCII mode)
    Only the CLASS files are needed or the XML files are also needed. (I'm moving all CLASS and XML files)

    could you please help me on this.

    Thank you, regards,
    Muthu

    Hello

    -In the same way it is you are oracle also... ?

    / U02/TST22/Apps/apps_st/COMN/java/classes/xxfls

    Concerning
    Meher Irk

  • Stop the script if something is missing

    Hello AEScripters,

    can you tell me how to stop a running script, if a condition is not right?

    I tried stop() and exit() (normally they do the job...)

    But I get an alert that these functions are not defined?

    I use it in a function. Could be the problem?


    I have something like this:

    main();

    main() {} function


    If (something! = null) {}

    If (selectedItems.length > 0) {}
    check to see if something is selected
    targetItems = app.project.selection;
    If the use of the selection
    }
    else {}

    Alert ("nothing is selected.");

    exit(); / / doesen't work

    stop(); / / doesen't work either


    }

    }

    }

    Thanks for your help.

    : F

    p.s. all the code is here. -> https://github.com/fabiantheblind/compify2_slim/blob/master/compify2_slim.jsx

    Hello

    Just call return to the place where you want to leave. It will not stop the script running, but as you do all the work inside main() it will exit the function. And that you do not all instructions after that the call to main() the script will end.

    main();

    main() {} function

    If (something! = null) {}

    If (selectedItems.length > 0) {}
    check to see if something is selected
    targetItems = app.project.selection;
    If the use of the selection
    }
    else {}

    Alert ("nothing is selected.");

    return;

    }

    }

    }

    concerning

    Ludde

  • Bad performance of the Script when it is called from another Script

    Hello

    I have developed a. SOUTH who calls another script via "ScriptInclude" command and I noticed a substantial decrease in performance when running in this way.

    Normally my calculation scripts runs in less then 10 sec when it is running alone.

    However, when I call the script of my. Script SOUTH it takes 2-10 minutes on the same set of data.

    It's almost as if he is running in debug mode, where I can see my channel list being filled with data that the script runs.

    What could slow this process down so much?

    With the help of DIAdem 2015 32 bit.

    OK, I used this to speed up the result and it works like a charm

    Call UIAutoRefreshSet (False)     

  • Send the results of the script by email

    OK, time to reach out for a little help;

    I'm looking to receive a daily report or weekly at the time stated on all of my guests. I restored code (below), but at this point, I get an empty email for each host. The script runs and displays in the ok command window, but I want to receive an email, with the result declared all hosts. When executing this now, the command window reports 'Time on $host1 in the allowed range' if it is understood naturally, or offer lag.

    I have serached and tried various methods of the call to this function to send mail, but can someone take a look and recommend a better way?

    script:

    > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

    $allowedDifferenceSeconds = 20

    Notice-EEG - ViewType HostSystem-Property Name, ConfigManager.DateTimeSystem. %{
    datetime #get host system
    $dts = get-view $_. ConfigManager.DateTimeSystem

    time to host #get
    $t = $dts. QueryDateTime()

    #calculate time difference in seconds
    $s = ($t - [DateTime]: UtcNow). TotalSeconds

    #check so lag is too much
    {if ([Math]: ABS ($s) - gt $allowedDifferenceSeconds)}
    #print host difference and the time in seconds
    $row = "" | Select the host name, seconds
    $row. Hostname = $_. Name
    $row. Seconds = $s
    $row
    }
    else {}
    Write-Host "time on" $_. Name "to the bosom of the beach permit"

    $smtpSrv = "SMTP.domaine.com".
    $from = "[email protected]".
    $to = "[email protected]".
    $subject = "VM host time report.


    $msg = new-object Net.Mail.MailMessage ($from, $to, $subject, $body)

    $smtp = new-object Net.Mail.SMTPclient ($smtpSrv)

    $smtp.send ($msg)

    }

    > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

    Try something like this

    $allowedDifferenceSeconds = 20 $body = $null 
    
    get-view -ViewType HostSystem -Property Name, ConfigManager.DateTimeSystem  | %{
        #get host datetime system    $dts = get-view $_.ConfigManager.DateTimeSystem
    
        #get host time    $t = $dts.QueryDateTime()
    
        #calculate time difference in seconds    $s = ( $t - [DateTime]::UtcNow).TotalSeconds
    
        #check if time difference is too much    if([math]::abs($s) -gt $allowedDifferenceSeconds){
            #print host and time difference in seconds        $body += ("On " + $_.Name + " the time difference is "  + $s + " seconds`r" | Out-String)
        }
        else{
            $body +=  ("Time on " + $_.Name + " within allowed range`r" | Out-String)
        }
    }
    
    $smtpSrv = "smtp.domain.com"$from = "[email protected]"$to = "[email protected]"$subject = "VM Host Time Report"
    $msg = new-object Net.Mail.MailMessage($from,$to,$subject,$body)
    
    $smtp = new-object Net.Mail.SMTPclient($smtpSrv)
    
    $smtp.send($msg)
    
  • How to adapt the script to a Jongware for page numbers?

    I have an index where

    Anne, 3, 5

    Mary, 11, 23-24

    and converted with the script (for example by adding + 4) does not affect the numbers of hyphen:

    Anne, 7, 9

    Mary, 15, 27 -24

    required: Marie, 15, 27-28


    I assumed that the second hyphen with grep of marking + character style could mark a step, but the script asks to select ALL the text.

    May be an idea to change the script runs in a second time with these numbers given the style of character or color?


    DESCRIPTION:omg page numbers are all wrong!

    A Jongware Script 18 -Aug- 2010

    If (app.documents.length == 0)

    {

    Alert ("Oh give me a text to play with :'(");

    Exit (0);

    }

    If (app.selection.length! = 1).

    {

    alert ('we cannot go on like this. Select some text first. ») ;

    Exit (0);

    }

    myDialog = app.dialogs.add ({name:'omg the numbers are wrong!',canCancel: true});

    with (myDialog)

    {

    with (dialogColumns. add())

    {

    with (dialogRows. add())

    staticTexts.add ({staticLabel: 'firstly to change'});

    with (dialogRows. add())

    aBox = integerEditboxes.add ({editContents: "1"});

    with (dialogRows. add())

    staticTexts.add ({staticLabel: "last change"});

    with (dialogRows. add())

    bBox = integerEditboxes.add ({editContents: "99999"});

    with (dialogRows. add())

    staticTexts.add ({staticLabel: "Add or subtract this value"});

    with (dialogRows. add())

    cBox = integerEditboxes.add ({editContents: "2"});

    }

    }

    If (! myDialog. show())

    {

    myDialog.destroy ();

    Exit (0);

    }

    first = aBox. editValue;

    last = bBox. editValue;

    step = cBox. editValue;

    If (first < 1 | first > last | step == 0)

    {

    Alert ("now you're pulling my nose arentya");

    Exit (0);

    }

    approx.findGrepPreferences = null;

    approx.findGrepPreferences. findWhat = "\\b\\d+\\b";

    list = app.selection [0]. findGrep (true);

    changes = 0;

    for (i= 0; I< list.length; i++)

    {

    n = number (.silence list [i]);

    If (n > = first & & n < = last)

    changes ++, list .silence [i] = String (n+ no);

    }

    Alert ("number of changes:"+ changes ");

    My godness, is perfect.

    This formula of Grep is a piece of cake!

    Example of fake tie is nonsense, but the solution is real.

    Thank you very much.

    My Monday will begin happy benevolence.

  • Remove the Script level Document using JavaScript?

    Hi all.

    Is it possible for a document-level script to delete itself? I am running Adobe Acrobat Professional 11.

    My situation is that I'm currently analysis data using a Java application. The taylors Java application a script based on each specific PDF and then inserts it into the PDF file automatically. When the PDF file is opened, the script runs once and then is no longer necessary.

    Because the script is no longer required, it would be preferable if the script could be deleted automatically. Is it possible that the script has access to the field in which it is stored (for example, doc.javascriptField = "" ;)?) Or by some miracle, a remove function already exists?

    I think that the lack of need for such function by General and advanced users I won't get it the answer I hope. But it's worth a shot. Meanwhile, I am inserting a flag in the field keyword so that the script does not run twice. It works, but it is not really clean.

    Any help would be greatly appreciated.

    Thank you

    Jonny O

    Use this code:

    this.removeScript ("ScriptName");

  • Suspend the script

    I added a feature to my script that must be inserted between two already put in place of the functions - a new GUI window. Right now, if I show the window between the two functions, the rest of the script runs. However, I need the script to pause until the user clicks a button in the new window of GUI.

    Is there a function which stops the following functions to operate?

    I think you should move the second function call, as it is invoked only once the GUI.

    P

  • Cannot start the database the R12 DR Oracle EBS of RAC 10 g R2 using SRVCTL

    Hello

    I've implemented Oracle 10g R2 RAC data DR Guard for main server Oracle 10 g R2 RAC for EBS R12 (12.0.4).
    I followed Note + ' Business Continuity for Oracle Applications Release 12 on Release 10 gr 2 - Single Instance Database and RAC [452056.1 ID]. +.
    After you configure DR DG, I added DR Database to the Configuration of the Cluster. But I'm not able to start the DR Database via SRVCTL. But able to start the DR Database through Sql * more. I have already mentioned Note: + troubleshooting when srvctl cannot start the RAC instance, but sqlplus can start [ID 844272.1] + and tried to solve the problem but without success.

    , I opened SR but still, the problem is not resolved. Are there steps I need to do that is not mentioned in Note 452056.1.

    Rgds,
    Thiru

    Have you reviewed these docs?

    CRS - 215 srvctl cannot start ASM, listener, %ORACLE_HOME%/bin/ resources RDBMS with error [740319.1 ID]
    Could not start the Instance with Srvctl, no Info in the newspapers of Imon [ID 741212.1]

    Thank you
    Hussein

  • Migration Oracle RAC to the new data center

    Hi all

    We are 'legacy' Oracle 11 G RAC cluster from another company and I am looking for a way to migrate with the minimum of downtime. Our team has no CARS, nor database administrator Oracle also experience.

    We intend to test the migration by cloning the environment a few weeks before and just see if everything is OK.

    Question is, what is the best way to migrate this RAC cluster and it's data to a new data center? Reinstallation of the operating system (Linux) and recreate the RAC cluster are not an option I want to examine.

    For example, in the land of SQL Server, we can use sending newspapers or replication to keep a copy of the database in the new data center as close as possible direct database (data-wise). Date of commissioning, we stop the direct instance, run last restore log or something else, then set up the databases on the new data center.

    Thanks in advance.

    Data Guard. It is the name of "log shipping" feature Oracle. It's probably closer to always on SQL Server availability groups, except that the Oracle database is a large group.

    I speak not Active Data Guard which is an extra cost that gives options on top of Data Guard.

    HTH,

    Brian

Maybe you are looking for

  • How to make a search bar

    I reloaded firefox this morning, trying to get the search bar, it did not, I have windows 8. what I am doing wrong? without it I can't find it please help, thank you, puggy

  • Security settings for the Toshiba WRC-1000 router

    I would like to know: how to secure wireless transmission.I know how to get to the page: security of wireless local area network, but I don't know the settings.Regards Ben.

  • Satellite C650 saves - Toshiba DVD creator - but does not check

    I have a Toshiba Satellite C650 bought in 2010 with Windows 7. I use pre-installed "Toshiba DVD creator" to record stuff. Recently, every time I burn a DVD (saving options: all the veryfing and close DVD), save it, but when he supposed to begin the p

  • Satellite A210-127 (PSAELE) - after flashing the BIOS, the password is required

    Hello I just reinstalled my Windows Vista x 64 SP1 Ultimate... That I had a good idea to download a fresh drivers from the Toshiba site... After you have installed a BIOS update, WinPhlash version 1.0.2.2, after reboot have a surprise my bios to ask

  • I have a problem with saved searches.

    I have a hp laptop with Windows 7 64 bit. Last week, I decided to find out what was in a folder called saved searches. I was surprised to see she had a section called indexed locations containing 7,000 points and another called everywhere that contai