Logon using SRVCTL to dataguard trigger

Hi all

I'm under Oracle 11 GR 2 using the 11g grid infrastructure. I have a database main on the same machine and one physical availability on another two subscribers to the SIR as their type of role and where also their startup type (for example, open, build the stage)

My question is, when I switch (do not through the broker), the CRS does not recognize that the database has swapped roles, so has the wrong information about what to do at the start.

The command to change it is on physics is on the side of Eve: -.
srvctl change the primary database to the open - r s d < physStandby >

and on the primary side
srvctl change the d < primary > r - Mont s physical_standby database

that I can do it manually. I already have a start on the database trigger to start and stop services on the basis of data depending on what is the role. So I thought that I try and exploit that by running the command SRVCTL to breast she also well. So as a quick run, I just created a dbms_Scheduler job in the procedure and he ran.

Start
() DBMS_SCHEDULER.create_job
job_name = > 'TEST_JOB6 ',.
JOB_TYPE = > 'EXECUTABLE. "
JOB_ACTION = > ' / u01/app/oracle/product/11.2.0/grid/bin/srvctl',
repeat_interval = > null,
start_date = > systimestamp + 0.01.
number_of_arguments = > 1
);

() dbms_Scheduler.set_job_Argument_value
job_name = > 'TEST_JOB6 ',.
argument_position = > 1,
argument_value = > 'change the d < physical_standby > - r PRIMARY database '.
);

dbms_Scheduler.enable ('TEST_JOB6');
END;
/

And then I run it: -.

SQL > exec dbms_scheduler.run_job ('TEST_JOB6', FALSE);
PL/SQL procedure successfully completed.

SQL > select additional_info in the dba_scheduler_job_run_details where job_name = "TEST_JOB6";

ADDITIONAL_INFO
---------------------------
< no value here >

But when I do a srvctl config database d < physical_standby >
Unique name of database: < physical_standby >
Name of the database:
Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1
User Oracle: oracle
SPFile:
Domain:
Startup options: climb
Stop options: immediate
Role of database: PHYSICAL_STANDBY # and this value has not changed.
Management policy: AUTOMATIC
Disk groups:
Services:

As you can see... nothings changed, but he did not report any error. If someone has done something like this before?

Yes, you will need to run the commands you said manually after each change of role, if you do not use the broker.

As for your work. Hmmm, I would have thought that your job must have worked. Am I correct in assuming that you have performed this work after you had swung to the waiting and it's now the primary?

We used this type of work in the document of failover customer MAA (http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_ClientFailoverBestPractices.pdf) where we had to manually pull the Publisher for thin JDBC clients in 10g.

CREATE OR REPLACE TRIGGER ons_JDBCpublish AFTER DB_ROLE_CHANGE ON DATABASE
BEGIN
() dbms_scheduler.create_job
job_name-online "publish_events."
job_type-online "executable."
job_action =>'/ u01/oracle/product/10.2.0/db_1/bin/cfo.sh',
enabled-TRUE online
);
END;

It might have something to do with the part of the argument. Try to put the srvctl command into a script and call the job wrapper script and see if it works.

Larry

Tags: Database

Similar Questions

  • Can you use Pocket wizards to trigger the HVLF60M Sony flash when it is out of the unit with the A7R?

    Can you use Pocket wizards to trigger the HVLF60M Sony flash when it is out of the unit with the A7R?  How about studio flashes (Alien Bees)? I just sold my Canon gear and moved to Sony, but I need advice on how to trigger wireless flashes.  Thanks for any help you can provide.

    Larry

    LarryMarshall, Any Trigger of manual Radio should work.  Assistants of pocket or RadioPoppers.

    But there are a few problems with the 60 m.

    (1) it doesn't have a PC or a 1/8 port to connect directly to a Rec Radio of any brand.

    (2) you WILL NEED to buy or use a hot shoe with a PORT adapter... 1/8 according to the sync cable or PC you may already own.

    (3) you WILL NEED to 'Check' to 'ensure' that trigger the 60 m SHAFT is aligned with the center of contact your hotshoe adapter hot with a PORT... because some adapters won't online upward with the 60 m Flash... who fooled you into believing that it does not work.  When, in fact, it's just the PIN which is not aligning with ALL the hot shoe adapters.

    It will work... you just have to be careful... and know of the gatcha.

    The 60 m PUT claw is not fully compatible with all... hot shoe adapters and there that to do with how PUT 60 m flash foot aligns the trigger ROD.

    I triggered the 60 m in flash with RadioPoppers... in the manual... so, I know it works.

    It is, manual release of the waste of the 60 m flash TTL/HSS abilitys.    What is needed is for SONY to develop and deliver a Radio trigger Solution.  Which would be TTL/HSS and you allow to 'Control' the Flash too... from the camera.

    It is the power of a Flash of modern Radio System.

    Manual triggers are old school.

    p.s. the A7r/A7 can easily trigger flashes of Studio with Pocket Wizzards or RadioPoppers... or probably triggers of manual.    Just be careful if the brand you choose is reliable.

    Pocket wizzards and RadioPoppers were the choice of PRO for years.  Because they are reliable.

  • Error when using srvctl

    DB version: 10.2.0.4 (node 2 CARS)
    Platform: Solaris 5.10

    I tried to stop an iin instance one of the nodes using srvctl. I got the following error
    $ srvctl stop instance -d spike -i spike2 -o immediate
    PRKO-2007 : Invalid instance name: spike2
    
    ##### ps -ef output confirmed that spike2 instance is up and running in the node #####
    
    $ echo $ORACLE_HOME
    /u01/app/oracle/product/10.2.0/db
    $ echo $ORACLE_SID
    spike2
    $ which srvctl
    /u01/app/oracle/product/10.2.0/db/bin/srvctl
    So, I had stop the instance of sqlplus. But I was able to stop asm and applications using srvctl utility. No idea why srvctl did not work with the stop of the Instance?

    OK - can you please provide the output of

    srvctl config

    It seems that the database you are using is not listed as part of the Cluster

    Concerning
    Jörg

  • ADD A SECOND LISTENER TO USING SRVCTL COMMAND

    Hi all

    My CAR has w nodes (10g 10.2.0.4)
    He already has a registry with the CRS (NODE1_LISTENER1 at its home port of ASM 1521) default listening port and I have already create a listener to second manually on both nodes.
    My question is how to add this listener (NODE1_listener1) using srvctl not the netca
    Thanks in advance.
    Respect,
    Tom

    srvctl add listener only is not supported in 10g,.
    but in 11g, you can add listener using srvctl

    10g:
    http://download.Oracle.com/docs/CD/B19306_01/RAC.102/b14197/srvctladmin.htm#RACAD5002

    11g:
    http://download.Oracle.com/docs/CD/B28359_01/RAC.111/b28254/srvctladmin.htm#CDCEECFB

    Therefore, you must use netca to help on 10g

  • Converting a string to a Date using an insert after trigger.

    Hi people:

    I have a table that has a column (called DATE_FED) that must be registered in the format string.

    Once all data insertion after trigger is triggered that copies of some columns in another table.

    The problem is that the insert after trigger will not work because the table is copied in stores DATE_FED data in a Date format.

    I'm trying to understand how to use the TO_DATE function to convert the NEW. Data DATE_FED to a Date format and the trigger does not work.

    Here is the trigger, as it is currently worded:

    Create or replace TRIGGER "FARM". "' BALES_FED_PAST_TRIG ' AFTER INSERT"FARM ". ' ' BALES_FED_PASTURE ' 'OLD' NEWS like 'NEW' FOR EACH LINE REFERENCING OLD declare

    BEGIN

    insert into BALES_STORAGE (BALES_LOST_SUBTRACTED, HARVESTING, CUTTING, STACKYARD, DATE_MOVED, FED_ID, BALE_YEAR) values (: new.) BALES_FED,: new. CULTURE: new. CUTTING: new. STACKYARD,: new. DATE_FED,: new. FED_ID,: new. BALE_YEAR);

    END;

    This trigger worked until I had to change the column type of DATE_FED from the Date to a string.

    I tried things like:

    TO_DATE (DATE_FED): = GCNEW. DATE_FED;    in a statement, but I don't get it.

    Summary:

    I need an insert after trigger to convert NEW. DATE_FED (a string) again. DATE_FED (a Date).

    Tables:

    BALES_FED_PASTURE is the table, the trigger to run.

    BALES_STORAGE is the table the trigger is to copy certain columns.

    I thank very you much for any help.

    Matthew

    FriendlyTooo wrote:

    I have a table that has a column (called DATE_FED) that must be registered in the format string.

    If you book the date in a format string. Bad design. In any case, what is this format? Register you as hh24:mi:ss dd/mm/yyyy or DD-me-YYYY, or... You what it is, you must use this format in your trigger:

    insert into BALES_STORAGE (BALES_LOST_SUBTRACTED, HARVESTING, CUTTING, STACKYARD, DATE_MOVED, FED_ID, BALE_YEAR) values (: new.) BALES_FED,: new. CULTURE: new. CUTTING: new. STACKYARD, TO_DATE(:new.) DATE_FED, "whatever-format-is"),: new. FED_ID,: new. BALE_YEAR);

    SY.

  • Cannot use SRVCTL

    I installed a stand-alone database and the value of the variable ORACLE_HOME for the oracle user. But it still prints "could not retrieve the Oracle Clusterware House. Start Oracle Clusterware battery and try again. ", when I run SRVCTL.
    SRVCTL is available for the stand-alone database?

    You must install Oracle Grid Infrastructure to use Oracle restart:
    http://download.Oracle.com/docs/CD/E11882_01/install.112/e10840/oraclerestart.htm#CIHCBGCC

  • Windows 7 logon using my standard user can account on a reboot unattended?

    I need to be able to access my PC remotely with TeamViewer.

    My problem is when my PC did a restart without supervision, he's sitting there, waiting for someone to click standard user or administrator account and in this State I can't access my PC using TeamViewer.
    Is it possible for Windows 7 to connect automatically using my standard user account when it restarts assuming that it restarts in unattended mode?
    Thank you!
    Jim
    Is it possible for Windows 7 to automatically connect using my standard user account when it restarts assuming that it restarts in unattended mode?
    Thank you!
    Jim

    No problem:

    1. press Windows + R key on your keyboard.
    2. Enter the following command and press ENTER:
    netplwiz
    3. click once the standard account name.
    4. uncheck the box that requires users to enter a password.
    5. click on OK.
    6. Enter your password when you are prompted, and then click OK.
    7. make a note of your password (because you will soon forget!)
  • 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

  • Use savepoint and rollback trigger of forms

    I have a button in forms with the following code
    --savepoint    
    SAVEPOINT SAVEP1;
    
    --Call procedure of BBDD: Changed data of tables
    Packet.procedureexample(..., bResult);
    
    --If not correct the execution -> rollback to savepoint and exit form
    IF NOT bResult THEN
      ROLLBACK TO SAVEPOINT SAVEP1;
      Exit_Form(NO_VALIDATE);
    END IF;
     
    -- Othe savepoint
    SAVEPOINT SAVEP2;
    
    --Call other procedure of BBDD: Changed data of tables
    Packet.procedureexample2(..., bResult);
    
    --If not correct the execution -> rollback to savepoint and exit form
    IF NOT bResult THEN
      ROLLBACK TO SAVEPOINT SAVEP2;
      Exit_Form(NO_VALIDATE);
    END IF;
    
    --All correct -> COMMIT
    COMMIT;
    This question is: If "Packet.procedureexample" is correct, but the execution of "Packet.procedureexample2" is not correct, what happened with the changed data for the first procedure (Packet.procedureexample).

    Thnks.

    Hi Jortri,

    If the execution of "Packet.procedureexample" is correct, but the execution of "Packet.procedureexample2" is not correct,

    Nothing will happen to changed data for Packet.procedureexample because it has not yet been validated.

    This is because when you give rollback to save point, you did also Exit_Form (NO_VALIDATE); COMMIT is only at the last.

    "Therefore, if Packet.procedureexample2" is not correct, it will roll back to save point 2 (SAVEP2) and exit the form without validating.

    Since then, validation is not issued until now, any changes made to the data were conducted using Packet.procedureexample, are lost.

    If data packets are independent of each other and you don't want to lose the change and then issue a validation before creating the second backup point.

    It will be useful.

    + Please mark as helpful answer / OK, if this can help you.

    Carole

    Published by: Carole Punj on June 17, 2009 02:10

  • How to use delete in a trigger in pl/sql on the form element

    Can someone link me to the documentation for this problem: I have a button that when I push on I can delete the selected row in the table. This event should be triggered on a WHEN you press the shutter release BUTTON.

    Just issue a DELETE_RECORD in the trigger.

  • Auto sequence 2 be used in a database trigger

    Hello

    Best ways to do so that I can use a sequence or an auto-incrementielle (function or procedurte)
    in a database of Tigger?

    Please give me the steps in details...

    Best regards


    Abdetu...

    where 1 = 2

    In short, this allows you to copy the structure but not to copy the data from the source table. Since then, 1 = 2 never satisfy. Thus, the table of destination (this is Mike_Test) will not copy the data from the emp table.

    I could use the same sequence name more than one table? Isn't it?

    It depends on. According to your functional logic - you can use it. Otherwise, you must create a separate sequence for each table.

    an another Question how could replace the SQL prompt by your name u? )

    Here's an example->

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>set sqlprompt Abdetu>
    Abdetu>
    Abdetu>
    Abdetu>
    

    Kind regards.

    LOULOU.

  • DataGuard trigger for linux services

    Hello
    We run oracle database 11.2.0.3 and tomcat on the same machine (SLES 11).
    I need tomcat(start/stop) contol depending on the State of the database. For example, if the database stops or become standby and then to stop the tomcat service. Please help me find the solution.

    Thanks in advance!

    Please check this new offer 'Oracle Grid Infrastructure Bundled Agents ': -.

    http://www.Oracle.com/technetwork/products/Clusterware/Overview/index.html

    It has the integration of Tomcat with Clusterware. A dependency is set up the Tomcat resource to the database/Service - when the database or service disconnects, the tomcat resource will also be stopped.

  • Trigger line asked could not be booked because it is already in use.

    Hi, I am trying to export the markers PFI0 and PXI_Trig0 on NI5450 (in script view)

    by using the following code

    There are no errors when I set up by using the following code.

    commWrapper.ExportSignal (PXICommonGenWrapper.niFgenConstants.MarkerEvent, "Marker1", "PFI0")
    commWrapper.ExportSignal (PXICommonGenWrapper.niFgenConstants.Marker, "Marker0", "PXI_Trig0")

    When I run the script, I get the following error

    Trigger line asked could not be booked because it is already in use.

    Good: Terminal output event marker
    Target unit: PXI1Slot2

    State code:-89126

    Would appreciate any solution that allows me to configure the two triggers/markers. I use these markers to trigger another card PXI (NI5644R on PXI_Trig0) and an external piece of equipment (using the output of PFI0).

    Thank you.

    Hi Surya,

    Thanks for this posting on the community page. It tells you what this error, it cannot route a trigger to your destination requested because something else has already booked this trigger line. A pottential typo, this is your second order ExportSignal specifies niFgenConstants.Marker and not. MarkerEvent. It is a simple error to solve, but there are many possible sources. Is it possible for you to share the complete code with me? Or, perhaps you could arrange a join.me and I can look at your full installer.

  • niHSDIO dynamic generation and Acquisition using LV configure Trigger VI

    Hello!

    My experience is limited within the environment of digital programming; Nevertheless, I have worked on this problem for a few days and would appreciate some comments if possible.

    I am trying simply to generate and acquire a duty cycle of 50% of 8 MHz TTL pulse train on a PIN DIO of the PCI-6541 and acquire back from the signal on another axis of DIO. I have a connector corresponding to the embedded 6541 VHDCI connector which of course the generation and acquisition DIO welded pins to provide a loopback effect.

    In short, I use the niHSDIO configure Trigger VI (instance--> start Trig: SW), niHSDIO send software Edge Trigger VI and write Named Waveform VI (instance--> data: 1 D U32) in the generation section. For the section of the acquisition, in short, I use the VI of waveform Fetch niHSDIO (instance--> single record: WDT).

    I see results in the waveform acquired showing the generated and acquired digital TTL pulse on the respective DIO pins train, but I can't seem to get my 8 MHz frequency requirement. In addition, the lower part of the assignment of pin DIO, more frequency. Unfortunately, due to the configuration system required, I have confined myself to pin 12 DIO for the generation of digital pulses. Even with a 50 MHz clock frequency, I'm ~ 6 kHz of frequency acquired max. I looked at changing the parameters of the wave form VI named write, but it is not possible because the VI call a library function node. I also tried to generate a waveform of 8 MHz through a VI of generator of digital model, but I do not believe, you can trigger on generated waveforms? It seems that you must generate data using a simple loop to as a counter and sending the result to the waveform VI named write. Are there other ways I can simply generate and acquire a digital signal of TTL of 8 MHz (no external connection)?

    In any case, any kind of feedback would be greatly appreciated.

    Thanks in advance for your time.

    Dan

    Dan,

    Sorry about the nomenclature.  I usually use 0 x or 0 b for indication of radix, it is not necessarily a kind of standard, just what I used in my old days of the Assembly.

    Looks like you have a knowledge about the data.  Basically the material is just save in DRAM an array of words of 32 bits, with each bit corresponds to a data channel and each element being generated to the sampling clock rate you enter to your vi.  Everything else is just easy data manipulation or usage.  The interleaving method is just as I like to create a toggle model.  You can easily do a loop with an inverter and feedback node or use on the construction in screws to signal generation.  In addition, you can use the software digital waveform editor or control panel test to generate the county or toggle modes.

    Give us an update when you enter the laboratory and let us know if you encounter any other disorder.

  • How to use the trigger for Hammer

    Hello

    I used a hammer and an accelerometer of pcb to do some tests of beam. I want to express signal for start of log data after I use the hammer hit something. Here is my configuration in express signal.

    Trigger type: analog edge. Source of relaxation: the channel of the hammer
    Slope: fall. Level: 0

    However, once he began to run, it says "logging was stopped because an error occurred with a step in the project. If this error is due to a device buffer overflow, you can improve performance by disabling updates to screen using the "view > views of Signal update during the race" menu item. You can also change the way in which the signals are recorded by changing the Logging Options in the tools > Options dialog box. Disabling "Prepare the log for display data" will greatly improve performance. "I've changed everything, but it didn't work.

    Should I use other types of trigger?

    Thank you
    Ningyu


Maybe you are looking for

  • drivers WiFi for Windows 7 does not

    the name of my laptop is hp pavillion notebook14 ab154ca and it is not compatible with Windows 7 I tried to install only wifi and network drivers for windows 7 please help because I had serious problems with window 10.

  • active desktop is disabled

    I changed my wallpaper in the usual way.  Since then, whenever I turn on my laptop screen/background fill disappeared and "Active destop disabled" warning appears.  On the substantive change again, clicking on appy it changes my wallpaper selected, o

  • Startup startup sound is no longer

    My Droid X sounds is no longer its startup notification when starting.  I can't find this particular notification function switch.  Someone else?

  • Comctl32.ocx: error "file is missing or invalid.

    When you try to run a particular executable I get the error: "component 'comctl32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid. I looked around, on the internet and I downloaded this file and place it in the

  • After 100 hours, Playbook not shipped.

    On 10 March, I filled the form of address. Its been more than 100 hours, until then, although they have not delivered the unit. Did someone in the same situation as mine?