Script execution in RAC

We have a 2 node RAC in place with different DB names like dev1 in one node and dev2 in another node. DB is up and running .
Now I need to create tablespace, schemas ,objects etc. DO I need t execute the scripts in both nodes of the RAC? .How this will work?
[oracle@636606-devora1 ~]$  ps -ef|grep pmon
oracle    1577 28768  0 11:05 pts/1    00:00:00 grep pmon
grid     23149     1  0 Dec04 ?        00:00:17 asm_pmon_+ASM1
oracle   26701     1  0 Dec04 ?        00:00:21 ora_pmon_DEV1
oracle   27410     1  0 Dec04 ?        00:00:21 ora_pmon_QA1
oracle   28185     1  0 Dec04 ?        00:00:21 ora_pmon_UAT1
[oracle@636607-devora2 ~]$ ps -ef|grep pmon
oracle   14586 10328  0 11:04 pts/0    00:00:00 grep pmon
grid     16635     1  0 Dec04 ?        00:00:21 asm_pmon_+ASM2
oracle   17579     1  0 Dec04 ?        00:00:20 ora_pmon_DEV2
oracle   18600     1  0 Dec04 ?        00:00:20 ora_pmon_QA2
oracle   19490     1  0 Dec04 ?        00:00:20 ora_pmon_UAT2

DEV1 and DEV2 are "instances" of the same database, which is named "DEV". If you add a third node to the cluster, the instance on node 3 would be "DEV3".
Any users, tables created, etc will only need to be done once. The database is shared among the instances so the other instances will see the change.
Cheers,
Brian

Similar Messages

  • Error with dbms_scheduler and shell script execution

    Hi,guys.
    I have an issue with a dbms_scheduler and a shell script execution. So, the shell script as it self works fine, when i'm executing ./test.sh all process is running, but when i'm executing the script from dbms_scheduler it just simply doesn't work. Actually it works, but some of executable information in sh doesn't work, seems it just jump over of the part of the script. Sendmail part is running, maybe there is problem with rman script as it self?
    DB version: 10g
    And my scripts:
    Shell scripts (permisons 755):
    #!/bin/ksh
    export PATH=/home/oracle/product/asm_home/bin:/home/oracle/product/db_home/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oracle/bin:/usr/bin/X11:/sbin:.
    export ORACLE_BASE=/home/oracle/product
    export ORACLE_SID=zabbix
    export ORACLE_HOME=/home/oracle/product/db_home
    ${ORACLE_HOME}/bin/rman<<EOF
    connect target /
    run {backup recovery area delete all input;}
    EOF
    {       echo "From:[email protected]"
            echo "To: [email protected]"
            echo "Subject: Recovery area"
            echo 'Content-Type: text/html'
            echo
            echo '<html><body><table border="1" cellspacing="1">'
            echo '<tr><td><b>Process</b></td><td><b>Statuss</b></td></tr>'
            echo "<tr><td>RMAN</td><td><b>Works</b></td></tr>"
            echo "</table></body></html>"
    } | sendmail -tIn the first part i'm exporting all of the important stuff for oracle, then I call RMAN with specific atributes. And then there is just simply sendmail functionality inside script to represent if script works (for now).
    And below pl/sql script:
    begin
      DBMS_SCHEDULER.CREATE_JOB
      job_name => 'FLASH_RECOVERY',
      job_type => 'EXECUTABLE',
      job_action => '/home/oracle/backup/test.sh',
      start_date => sysdate,
      job_class => 'DEFAULT_JOB_CLASS',
      enabled => TRUE,
      auto_drop => FALSE,
      comments => 'FLASH RECOVERY USAGE AREA backup and delete'
      END;
      /And this job execution:
           begin
               DBMS_SCHEDULER.run_job (job_name =>'FLASH_RECOVERY',use_current_session => TRUE);
           end;What can be wrong? For me, I think it's something with permisions.
    I hope you got my idea and could help me.
    Tom
    Edited by: safazaurs on 2013.18.2 22:16

    There is no error, i just receive all the time e-mail, seems it jumps over rman. I tried almost everything and still couldn't get result as i want. And, if i'm running script from command line - it works. Rman calls, and starts to recover archivelogs.

  • Error when using FTP in iWeb 09! "Error 500: Script Execution Failure"

    I have my domain through 123-reg and I have free hosting with host-ed.net when I add a simple index.html file my website works fine displaying the 1 line of text that I asked for, so it is all configured correctly.
    How ever when I use the FTP upload thought iWeb '09 I always get "Error 500: Script Execution Failure"
    www.breslan.co.uk
    Anyone know why?

    I have logged into my hosting and changed the permissions to '755' and move the files from the folder iweb used to the root of the site i know get "Parse error: syntax error, unexpected T_STRING in /~/www/breslan.co.uk/index.html on line 1" there is only 1 line of code in index.html and that is
    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= Welcome.html" /></head><body></body></html>
    please help!

  • Script execution problem

    dear sir
    i got a problem with script execution. i have successfully  activate the form painter in ABAP editor. but i am getting the error like "Form  ZLASRISUD language EN is not active and has no errors". please give me the solution for above as soon as possible.

    dear sir
    i got a problem with script execution. i have successfully  activate the form painter in ABAP editor. but i am getting the error like "Form  ZLASRISUD language EN is not active and has no errors". please give me the solution for above as soon as possible.

  • Automation Script execution

    Hello All,
    How i will do Automation script execution in Production
    We have a bunch of scripts (Packages , DDL & DML ) everyday. What is the better aproach to do automatic script execution without any issues ?

    Hi,
    You have two options.
    1) Oracle job scheduler
    2) Windows Tasks
    Oracle job scheduler you can run it by your requirement. you can create it like below:-
    begin
    DBMS_SCHEDULER.CREATE_JOB(
    JOB_NAME           =>      'JOB_FOR_TEST',
    JOB_TYPE           =>      'PLSQL_BLOCK',
    JOB_ACTION         =>      'begin YOUR_PROCEDURE_NAME; end;',
    START_DATE         =>      SYSTIMESTAMP,
    END_DATE           =>      NULL,
    COMMENTS           =>      'JOB IS CREATED FOR TEST ONLY.',
    ENABLED            =>      TRUE,
    REPEAT_INTERVAL    =>      'freq=daily; byhour=20; byminute=0; bysecond=0;');
    end;
    /Above job will run on 8pm daily.
    likewise since i dont know whether you are on windows or linus or unix etc... you can scheduler windows level tasts...

  • Report script execution is getting failed

    Hi ,
    We are facing one strange issue while executing the Essbase report script. I am new to the report script and I am not getting how to resolve the issue.
    When we are changing the year in code from FY13 to FY14 the script is getting failed however the same script is successfully generating the report if we keep year as FY13 in code.
    Could you please let me know where would be the problem , below is the part of the code form Report script.
    {MISSINGTEXT "0"}  // replace #Missing with 0
    <Link ((<LEV("Customer", "Lev0,Customer")) AND ( <IDESC("All Customers")))
    <Link ((<LEV("Product", "Lev0,Product")) AND ( <IDESC("All Products")))
    <Link ((<LEV("Period", "Lev0,Period")) AND ( <IDESC("YearTotal")))
    FY14

    Hi ,
    I am getting below error message.
    "Report Script execution Failed. Please see message panel for details " and in message panel It is not showing any details , just displaying Execute Report script Failed with date and time details.
    I also checked that FY14 do exist in the application and no duplicate FY14 member exist in the outline.
    Could you please suggest where would be the problem.

  • Get Agent IP Address During Script Execution

    Good Evening,
    I'm looking for a little advice...  I'm trying to develop a method of alerting agents to the fact they are not ready.  I have a script that can dynamically change the wallpaper on an IP phone.  My aim is to add a step to the "Select Resource" portion of a script that will execute if an agent doesn't answer a call presented to them.  However in order for this script to work it requires the IP address of the phone the agent is logged on to.  Can anybody recommend a method of getting this IP dynamically during script execution?  We use EM so statically defining IPs in an XML document wouldn't be appropriate.
    On a similar note I'd also need a method of executing the same script when an agent manually alters their state to ready.  i.e. When they change to ready on the IP Phone Agent I'd like to be able to intercept that process as it takes place and automatically trigger this same script.
    I'm using UCCX 8.5(3).
    Hope that makes sense.  Any suggestions regarding how to achieve this would be much appreciated.
    Much appreciated,
    Ryan

    I don't write enough scripting to know for sure if the agent's phone's IP address would be available anywhere in the UCCX enviornment by default but I'm going to go with 'probably not'. You'd need to obtain this information from CUCM, the most straightforward method would likely be to use CUCM's AXL interface to pull this information. The HTTP Document Step may be able to produce the necessary AXL requests I guess, but I've never tried.
    Cheers,
    Kris

  • Help 'Exiting' after Automator Shell Script Execution

    Hello,
    I've recently installed and got running GCalDaemon (http://gcaldaemon.sourceforge.net/) which allows me to Synch Rainlendar <-> Google Calendar through iCal (You can also synch iCal <-> Google Calendar). I needed to start up a shell script/applescript after each startup/login in order for GCalDaemon to start the synching process each time and continue to do so at the timed intervals. I would do so by the following terminal code:
    cd /usr/local/sbin/GCALDaemon/bin
    ./standalone-start.sh
    I then tried automating this process and came across shell script execution through Automator. I did so and created a .app with the above mentioned code. This works and it starts up the necessary .sh file I need and the snyching works under StartUp. My concern is however, how do I exit terminal once the code has executed the necessary file? All I have in my .app is the above mentioned code for now. I just need it to exit terminal because on startup or after starting the program, I get this issue (See Attachment)
    This continues to run, so my guess is that I need to add code to exit terminal and allow the .app to close itself properly after doing so.
    Please guide me in the right direction.
    Picture Belows shows what happens when I run the Automator App. It continues to run until I quit out of the app manually (TheGCal programs works fine though). I feel I need to have app quit Terminal or fully end the process and quit out on it's own.
    Thanks
    <table style="width:auto;"><tr><td></td></tr><tr><td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From GCalDaemon</td></tr></table>

    i redirected the command output to /dev/null which is unix equivalent of a black hole and I also redirected error output to standard output in case the script produces any errors.
    also & at the end tells it to continue without waiting for the script to finish.
    Message was edited by: V.K.

  • Test Script execution failed.

    I'm getting the Test Script Execution Error - "Test Script execution failed. Reason: The system cannot find the file specifiied"
    This is happening to all my test script files. I can load the test script files, edit the test cases, etc, but cannot execute the test scripts
    If I click on View Test Script Specification, they all come up, and the report shows all the cases in the test script.
    If I look into the directory, they are all there, with the .tsc extension and a file type of TSC
    I created a new TSC this morning, but with the same results
    They were working yesterday. Since then, I did rename one of the test scripts, and changed my build platform from .NET to Java.
    Any thoughts?
    Thanks,
    Allan Gibson
    P.S. I also now note the my what-if analysis files do not run, and are getting a message: run time error '-2146233088 (80131500)': Batch process has failed. Reason: the system cannot find the file specified (OPA-E00241). When I press the debug button, I'm taken to a screen where the line "Call GetExcelCompilerProxy() .Analyze(ActiveWorkbood)" is highlighted in yellow.
    Edited by: A Gibson on 11-Sep-2012 9:02 AM
    Edited by: A Gibson on 11-Sep-2012 9:09 AM

    Hey Allan,
    It looks like it either can't find the Java component it needs to run or the test script for some reason. If you look in the bin directory of the OPM install (which is normally something like c:\program files\Oracle\Policy Modeling\bin) do you see a file called determinations-remote-clr.jar? If not it sounds like something's gone wrong with your install.
    If so, can you run the test script in the standalone debugger? Also, if you look at the absolute path of your test script file, does it contain any non-ascii characters? If so, try removing those characters and see if it works.
    Thanks,
    Kristy

  • Exchange 2010 SP2 to SP3 Powershell script execution policies

    Hi,
    I have broken Labs when installing service packs on exchange 2010 servers because the powershell execution policies have been incorrectly configured. Once the WMI service has been stopped, the scripts within the SP haven't been able to start it up again. 
    I can't find any info on Powershell script execution policies in relation to the SP3 for 2010 prerequisites. Does anyone know what they should be set at? And why haven't these been at the top of the list of prerequisites for installations of service packs
    for exchange? 

    Hello,
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Cara Chen
    TechNet Community Support

  • How quit script execution?

    Hi.
    I don't know how quit my script execution from a pls block.
    I have a .sql script like this:
    DECLARE
    myvar NUMBER(10);
    BEGIN
    SELECT ... INTO myvar FROM ...;
    IF myvar > ... THEN
    /* here sqlplus should stop the script execution. How? */
    END IF;
    END;
    QUIT;
    The pls block doesn't recognize the sqlplus QUIT command. Is it possible quit a sqlplus session from a pls/sql block?
    Thank you in advance
    Stefano Babayantz
    null

    A simple way would be to define a user exception and then raise it explicitly
    DECLARE
    myvar NUMBER(10);
    uexcept EXCEPTION;
    BEGIN
    SELECT ... INTO myvar FROM ...;
    IF myvar > ... THEN
    raise uexcept;
    /* here sqlplus should stop the script execution. How? */
    END IF;
    EXCEPTION
    WHEN uexcept THEN
    dbms_output.put_line('Exception raised...');
    END;
    You may wish to associate the exception to an Oracle internal exception (using PRAGMA EXCEPTION_INIT) and handle it accordingly

  • Setting script Execution in GPO

    Hi,
    I would like to enable Script Execution for APPV clients through GPO.
    There are 3 options:
    1. Allow only signed scripts
    2. Allow local scripts and remote signed scripts
    3. Allow All.
    I guess option 2 will be the right one.
    Option 1 is not enough. Yes? No?
    &quot;When you hit a wrong note it's the next note that makes it good or bad&quot;. Miles Davis

    That depends on the scripts ;-)
    To run App-V's 'native' scripts and commands (like get-appvclientsomething), local+remote-signed is the choice.
    But if you want to create your own powershell scripts (and don't want/can sign them), you'd need to use a relaxed policy (Allow all).
    Remember that - besides the Powershell execution policy - also the App-V client itself has to be enabled to run scripts if you want to use scripts within the App-V packages
    Falko
    Twitter
    @kirk_tn   |   Blog
    kirxblog   |   Web
    kirx.org   |   Fireside
    appvbook.com

  • Question about DBCA generate script o create RAC database 2 node cluster

    Question about creating two node RAC database 11g after installing and configuration 11g clusterware. I've used DBCA to generate script to create a rac database. I've set
    environment variable ORACLE_SID=RAC and the creating script creates instance of RAC1 and RAC2. My understanding is that each node will represent a node, however there should only be one database with a name of 'RAC'. Please advise

    You are getting your terminology mixed up.
    You only have one database. Take a look, there are one set of datafiles on shared storage.
    You have 2 instances which are accessing one database.
    Database name is RAC. Instance names are RAC1, RAC2, etc, etc.
    Also, if you look at the listener configuration and if your tnsnames is setup properly then connecting to RAC will connect you to either one of the instances wheras connecting to RAC1 will connect you to that instance.

  • Maxl doesn't logout after Calc Script execution

    Hi All,
    I have a batch script which runs to load data and then aggregate data using calc script. Maxl completes the load and then starts the calculation execution but this never ends. I tried looking into the logs and it shows that Calc Script executed but it won't log off the user and so the next process of the batch doesn't kick-in.
    Application Logs:
    Thu~May~20~12:40:36~2009~Local~****~****~hadmin~Info~(1012579)~Total Calc Elapsed Time for ~Agg.csc~ : ~1008.66~ seconds
    Thu~May~20~12:40:36~2009~Local~****~****~hadmin~Info~(1013274)~Calculation executed
    Thu~May~20~12:40:36~2009~Local~****~****~hadmin~Info~(1019018)~Writing Parameters For Database ~[****]
    Can anyone suggest me how to resolve the issue. Thanks...

    Hi Cameron,
    The script which you had given was running just great in Dev with very less data, as the aggregation was just taking 10mins but when I moved the scripts to QA where it loads data from Prod, the aggregation takes almost 2 hours to run and just as the calc script finishes it throws an Network error and Maxl doesn't end the agg script and hangs there and is forced to log off from console after 60mins of inactivity. The hang doesn't let the batch to start the next process.
    Network error for app logs:
    Tue Jun 2 06:31:51 2009 Local TinP TinP hadmin Info (1012579) Total Calc Elapsed Time for Agg.csc : 7210.71 seconds
    Tue Jun 2 06:31:51 2009 Local TinP TinP hadmin Info (1013274) Calculation executed
    Tue Jun 2 06:31:51 2009 Local TinP TinP hadmin Info (1019018) Writing Parameters For Database TinP
    Tue Jun 2 06:31:51 2009 Local TinP TinP hadmin Error (1042013) Network error 104 : Cannot Receive Data
    Tue Jun 2 07:34:23 2009 Local TinP Info (1013220) Supervisor CONSOLE has forced user hadmin to logout
    Can you suggest something. Thanks...

  • Remote script execution.

    Hello.
    I would like to know how to run a script on a remote Linux machine. Can I do this without caring where the local JVM is running?
    I haven't done this before, and have searched various places for a concise answer. I have not been successful. Will something like the following work: Runtime.exec("remote.machine\remote.script.sh");. I have also noticed that my searches seem to lead me to discussions of Java RMI, so in thinking RMI has something to say about what I'm doing, I have posted my question here.
    Background: I have a java application (a web service in fact) that needs to get information from a back-end system to do its job. It needs to invoke a script that's running on a remote host where the coveted business system resides.
    The Runtime.exec() method appears only to run processes on local machines. From the research I have done, the usual fudge here is to know the operating system of the local machine so you might be able to use its remote process execution facilities. However, I don't want to know anything about the local OS, because it could be different between development, testing, and production. I know that the remote OS is Linux.
    Is there any way I can get a process to run on a remote machine without having to know about the local machine's OS?
    Many thanks in reply,
    Owen.

    You need obviously the remote system to support this through some facility like remote shell (rsh) or secure shell (ssh). so it depends on how that remote Linux system is set up and what access (userid) you can get for it.
    Are you granted some access to that remote Linux machine?
    If yes, what kind of?

Maybe you are looking for

  • BI 7.0 Report Designer  Step by step procedure

    Hi, I have searched in Forum but no where i found BI 7.0 Report Designer  please can anyone provide me  Step by Step Procedure it will be great helpful to me . Thanks, Medha.

  • ITunes Producer ePub Upload Error ERROR ITMS-9000

    This is the iTunes Producer ePub Upload Error: ERROR ITMS-9000: "Unable to unzip input: null" at Book (MZItmspBookPackage) How do I fix this?

  • Windows 8.1 evaluation install on XP PC

    During the installation process of Windows 8.1 enterprise evaluation I format the disk drive so I think don't have XP anymore. And now the evaluation period expire. I need to know if I have to install a full version of Windows 8.1 or an upgrade for m

  • Error in Blackberry application using Sybase Unwired Platform

    Hi Experts, I am developing a mobile application, in which I need to give authorization to all SAP users. For this I had created an RFC enabled Function Module in SAP R/3, which checks the input username and password. If the username and password sat

  • CS6 - HELP!

    CS6 wanting to trace out a star - wanting outline - it kept filling in - help deadline looming!!! Any ideas - i checked the Window drop down I see nothing turned on that shouldn't be. Thanks