DataGurad - How to schedule scripts for failover

Sir,
We configured dataguard(Oracle9i, WIndows 2000 server). I have one doubt.
How can we make Standy Server as Primary when Standby database fails
without DBA executing commands?
eg: Put all commands in on script file(eg: std.sql) and call from Batch file.
But how to set/schedule this file?
regards
Mathew

In Brtools you can always see the "Command line" before executing an action, You can simply copy that and use it to run BRTOOLS command from prompt, You can make a script with it and schedule via Cron.
Regards
Juan

Similar Messages

  • How to schedule jobs for brtools/oracle on EP

    How to schedule jobs for brtools/oracle (Update statistics
    Chech db
    Db verify
    ) on an EP system where as  no tool for java to do that (like db13). How to invoke it with cron?

    In Brtools you can always see the "Command line" before executing an action, You can simply copy that and use it to run BRTOOLS command from prompt, You can make a script with it and schedule via Cron.
    Regards
    Juan

  • How to schedule Job for data uploading from source to BI

    Hi to all,
    How to schedule Job for data uploading from source to BI,
    Why we required and how we do it.
    As I am fresher in BI, I need to know from bottom.
    Regards
    Pavneet Rana

    Hi.
    You can create [process chain |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502b2998-1017-2d10-1c8a-a57a35d52bc8?quicklink=index&overridelayout=true]for data loading pocess and schedule start process to any time/date etc ...
    Regadrs.

  • How to schedule job for APDs?

    Hi All,
    Does anyone have an idea how to schedule a job for APDs? There is a program called "RSAN_PROCESS_EXECUTE" and it can be scheduled, but it needs to be run with the specific APD. I will appreciate any help with points,
    Thanks

    I don't know what you mean when you say " ....needs to be run with the specific APD", but you can use the program to execute your APD in process chain by creating a variant, if you want to manually schedule, you can do so as well, rsanbw-> display the APD and schedule Icon on the top menu bar, that will give you scheduling options.
    thanks.
    Wond

  • How to excute scripts for distributing SAPLOGON.ini file

    Hi Experts,
    Could you please tell the steps if I have to distirbute new SAPLOGON.ini file to all clients as existing one is having issue of empty entry for item1 for server details.
    I have got script code from the below mentioned link:
    Installation Server package event scripting for services file
    But I dont know how these scripts are to be executed?
    Thanks
    Depesh

    hello
    please read the installation server help.chm file carefully!
    There you find the information which you looking for.
    You need an Frontend Installation server and then you can use the exampleas in the
    installation serverhelp.chm file to deploy thesaplogon.ini with our nwsaspetup scripting
    included in the frontend installation server.
    In the Installationserverhelp.chm you find the chapter
    Administering an Installation Server ->
    Maintaining Installation Packages ->
    Configuring Packages and Scripting Events ->
    Package Event Scripting Samples ->
    Example 1: Copying a customized u201CSapLogon.iniu201D and u201Cservicesu201D-file  -->
    Also please red the Frontend Installation Guide.
    All Information which you need you can find in this 2 documentations!
    Best Regards, Sven

  • How to schedule RBDMIDOC for current date

    Hi Gurus
    Require your suggestion....
    In my system i have 2000 material but which is created few  month before.
    But i want to send Material using change pointer which i created today only not all
    How to schedule RBDMIDOC program as this report has no Data option.
    Pls suggest ....or i need to do some developlement
    rgd
    SA

    RBDMIDOC report will process all change pointers.
    If you do not want to process old change pointers, you can delete them using tcode BD22. You would need to uncheck test mode, and check "obsolete change pointers" option.
    After this, schedule the report to run daily so that new change pointers will get processed on same day.

  • How to shell script for noob? or Cryptography for someone who doesn't need.

    Hi, I've seen the need of automating some tasks in the Terminal and I believe using shell scripts is my solution, although I don't really even understand how they work.
    Instead of posting a full how-to here, I'd like to ask if anyone knows about good comprehensive guide for someone who never used any programming language, yet knows how to work a bit with the Terminal?
    I will figure out the command I will need to input in the Terminal myself, by testing. Once it's figured all I need is to make a shell script out of it, and perhaps make an application out of it. (Automator? ... or more Script Editor? Or?)
    Thanks
    After seing this page...
    http://www.askdavetaylor.com/howcan_i_secure_encrypt_folders_on_my_macs_usb_flashdrive.html
    ... I believed to have found a great solution for some heavy cryptography, to protect some folder and for learning pleasure. What I wanted to do is to automate the openssl task mostly like this:
    Open my flash drive (or a certain folder) containting a disk image (uncompressed, or compressed if necessary, doesn't matter) but uncrypted. Clicking on something I will name 'Lock' for the moment will run the shell script, encrypting the said image with pre-set parameters and a password I will input when prompted by the app.
    Re-running the app will prompt me a password and simply un-encrypt the image, making it useable for me.
    That's all. Perhaps if I can do it, I'll make it prompt me what cipher and all other parameter to use, but I don't understand openssl very well yet. *I just read and understood more or less informations on that page.*
    Who knows, I'll end up with a sweet GUI for encrypting files usable by the common mortals.

    The Advanced Bash Scripting Guide is a great resource for beginners thru advanced users- http://tldp.org/LDP/abs/html/index.html

  • Setup scheduled script for "dot_clean/volumes/"

    Hi,
    I'd like to create a script to run every evening that cleans our windows shares of the "._" files that appear. Can you tell me how to create a script like this, please:
    dot_clean /volumes/
    This is a script I've created so far, but it's saying 'permission denied'.
    do shell scripts"~/ desktop / dot_cleanscript.rtf" password "password" with administrator privileges
    Please help
    Thanks
    Chris

    You need to save the script as plain text, not RTF, include the following on the top line of the file:
    #!/bin/sh
    and set the executable bit on it. To do this, run:
    chmod +x
    on the file.
    (46290)

  • How to schedule script to automate backup of CAS/CAM

    Hi Team,
    I want to configure automate backup of CAS/CAM Device on any free server available in network.
    Is there any script or setting we can configure on these devices

    Hi Amir,
       You can take the Create SSAS database XMLA script and run the job to create the cube. The script contains the Metadata definition of the Database and it does not contain the actual data. 
    Pros: Since you are only creating an empty cube the script will run faster 
    Cons: You still need to process the created cube to use it for reports.
    Fastest option is to take the backup of the cube and restore wherever necessary.
    And you can also use TFS source control to deploy the cube and process it later.
    Regards,
    Venkata
    Venkata Koppula

  • How to schedule restart of Workflow notification mailer?

    We are facing this issue in all environments including production;
    Inbound IMAP Notification emails are pending in the INBOX folder of the mail box. These moves to PROCESS folder only after restart of the 'WORKFLOW NOTIFICATION MAILER' every 3 to 4 hours.
    I have raised an SR with Oracle support for a solution.
    For this temporary workaround of restarting the Notificaiton mailer, I want to know how can I schedule the automatic restart of the 'WORKFLOW NOTIFICATION MAILER', Please advice.

    Sami,
    See (Note: 466927.1 - How to Schedule Events for the Workflow Notification Mailer).
    Regards,
    Hussein

  • How to run scripts of sql

    Hi
    how run sql scripts for example see below,
    For Release 12+, i2471362.sql is delivered with the release with version 120.0
    The module can be found in $INV_TOP/patch/115/sql
    Run i2471362.sql periodically to clean-up orphaned rows in the MTL_DEMAND and MTL_RESERVATIONS tables.
    any idea
    thanks

    Hi,
    As applmgr/oracle user, login to SQL*Plus (as APPS user) and run the script.
    $ sqlplus apps/<apps password>
    SQL> @i2471362.sqlStandard Cleanup Scripts for INVDVDSD - SUPPLY/DEMAND in 11.5.10.2, 12.0 and 12.1 [ID 372170.1]
    11i/R12: Clean Up Scripts - Inventory Reservations Not Relieved for Closed Sales Orders [ID 199887.1]
    MRPRPROP - Reorder Point Report Shows Incorrect Data In Open Demand Qty [ID 300260.1]
    Thanks,
    Hussein

  • Fnd script for upload the ldt file

    Hi Expert,
       How to write script for upload the ldt file containing program ,value set ,lookup code and DFF ,for XXCUST schema?
    Thanks

    7f4a32e8-5494-4664-a2f3-632ede8de56c wrote:
    Hi Expert,
       How to write script for upload the ldt file containing program ,value set ,lookup code and DFF ,for XXCUST schema?
    Thanks
    FNDLOAD commands can be found in (Tips and Examples Using FNDLOAD (Doc ID 735338.1)).
    Thanks,
    Hussein

  • How to run script .sql

    Hi
    eBS
    DB: 11.1.7
    APS: R12.1.2
    Does anyone who can guide me how to run script for .sql
    I need command on how to execute this |
    Run the script poxrespo.sql in the PO_TOP/sql directory
    Thanks

    Does anyone who can guide me how to run script for .sql
    I need command on how to execute this |
    Run the script poxrespo.sql in the PO_TOP/sql directoryConnect as apps user to SQL*Plus as run the script.
    Make sure COMMIT is issued -- Release Notifications Error - ORA-20002 2018 Unable To Generate The Notification Content [ID 342734.1
    Thanks,
    Hussein                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to find the existing sql server backup plan/schedule is there a script for that?

    Friends,
    Is there a easy way to find out in SQLServer (for All DB's) what is the current backup plan/schedule ? is there a script for that?
    Thanks,
    Karthikeyan Jothi

    To check the database backup 
    Select
    SERVERPROPERTY('ServerName'),
    db.name,
    CONVERT(VARCHAR(10), b.backup_start_date, 103) + + convert(VARCHAR(8), b.backup_start_date, 14) backup_start_date,
    CONVERT(VARCHAR(10), b.backup_finish_date, 103) + + convert(VARCHAR(8), b.backup_finish_date, 14) backup_finish_date,
    case
    when (DATEDIFF(hour, b.backup_start_date, getdate())<24)then 'Success'
    when (DATEDIFF(hour, b.backup_start_date, getdate())>=24)then 'Failed'
    end Status,
    DATEDIFF(hh, b.backup_finish_date, GETDATE())BackupAgeInHours,
    (b.backup_size/1024/1024/1024 )BackupSize,
    case b.[type]
    WHEN 'D' THEN 'Full'
    WHEN 'I' THEN 'Differential'
    WHEN 'L' THEN 'Transaction Log'
    END Type,
    ISNULL(STR(ABS(DATEDIFF(day, GetDate(),(Backup_finish_date)))), 'NEVER')DaysSinceLastBackup
    FROM sys.sysdatabases db
    Left OUTER JOIN (SELECT * , ROW_NUMBER() OVER(PARTITION BY database_name ORDER BY backup_finish_date DESC) AS RNUM
    FROM msdb.dbo.backupset) b ON b.database_name = db.name AND RNUM = 1
    where dbid<>2
    OR
    SELECT
    DISTINCT
    a.Name AS DatabaseName ,
    CONVERT(SYSNAME, DATABASEPROPERTYEX(a.name, 'Recovery')) RecoveryModel ,
    COALESCE(( SELECT CONVERT(VARCHAR(12), MAX(backup_finish_date), 101)
    FROM msdb.dbo.backupset
    WHERE database_name = a.name
    AND type = 'd'
    AND is_copy_only = '0'
    ), 'No Full') AS 'Full' ,
    COALESCE(( SELECT CONVERT(VARCHAR(12), MAX(backup_finish_date), 101)
    FROM msdb.dbo.backupset
    WHERE database_name = a.name
    AND type = 'i'
    AND is_copy_only = '0'
    ), 'No Diff') AS 'Diff' ,
    COALESCE(( SELECT CONVERT(VARCHAR(20), MAX(backup_finish_date), 120)
    FROM msdb.dbo.backupset
    WHERE database_name = a.name
    AND type = 'l'
    ), 'No Log') AS 'LastLog' ,
    COALESCE(( SELECT CONVERT(VARCHAR(20), backup_finish_date, 120)
    FROM ( SELECT ROW_NUMBER() OVER ( ORDER BY backup_finish_date DESC ) AS 'rownum' ,
    backup_finish_date
    FROM msdb.dbo.backupset
    WHERE database_name = a.name
    AND type = 'l'
    ) withrownum
    WHERE rownum = 2
    ), 'No Log') AS 'LastLog2'
    FROM sys.databases a
    LEFT OUTER JOIN msdb.dbo.backupset b ON b.database_name = a.name
    WHERE a.name <> 'tempdb'
    AND a.state_desc = 'online'
    GROUP BY a.Name ,
    a.compatibility_level
    ORDER BY a.name
    To check the schedule you can try the below script
    https://gallery.technet.microsoft.com/SQL-Jobs-Complete-eabe0050
    --Prashanth

  • How to put schedule lines for one year  in a schedule line agreement

    dear all
    thanks for the support till now from the forum
    now i need some seetings by which the scheduling agreement will autoumatically take the schedule line for one year automatically
    in my client we are getting open PO so
    we have to make one agreement acording to that PO and thats for one year
    and this one yr will have same quantity to be produced everyday
    means 12nos of material every day for 12 month and this will be for every day
    and as per that it should generate a sales order.i need to put schedule line automatically not mannually one by one for each date.so wat is the settingand how to reffer this scheduling agreement we can produce sales order.
    please help
    subrat
    Message was edited by:
            subrat panda

    Dear Subrat,
    you cannot create a yearly schedule line in the scheduling agreement. It is not possible due to format restrictions of the date field. But what you can do is the follows (it is the modification, but it should work with the help of user-exits):
    1. You can split the year schedule line to the monthly schedule lines. There are two ways to do it. If you apply the DELINS IDOC, then you can do it already during transfer of the data to the application (itr is the best way). Here you can use, for example, user-exit USEREXIT_ZUORDNEN_IDOCS (include LVED4FZZ) or customer function EXIT_SAPLVED4_002, called from the subroutine USEREXIT_DYNPRO (Include LVED4F0U). Alternatively, you can use the user-exit USEREXIT_MOVE_FIELD_TO_VBEP (Include MV45AFZZ) within the call transaction, then it will work also in the dialog case.
    2. After getting the monthly schedule lines, you can create a planning delivery schedule, where you can split mothly schedule lines automatically to daily schedule lines according to the customer factory calender.The settings for generation of planning delivery schedules can be found under:
    Customizing SPRO: Sales and Distribution => Sales => Sales Documents => Scheduling Agreements with Delivery schedules => Maintain Planning Delivery Sched. Instruct./Splitting Rules
    It is the only ways, how you can reach your aim. I hope, this information will help you further.
    Kind Regards,
    Akmal Vakhidov
    Development Support SD, SAP, Walldorf/Germany

Maybe you are looking for

  • Adobe Drive and Alfresco Enterprise Fails to Check-in With Custom Content Types

    Hello all, I've been struggling with some drive limitations over the last few weeks as we try to utilize the CMIS connector to Alfresco.  I am currently testing with Adobe Drive 3.2.0.41 and Alfresco 4.0.1 Enterprise but have tested this behavior wit

  • Can not open iMovie files

    I have a strange problem. I just got a new Intel iMac. I moved all my files over tot he new system, no problem. On my old system, I kept some files out side of the users folder so my wife and I can both access them (iTunes, iDVD, iMove, etc) I have b

  • Different document restrictions in Acrobat and Reader for the same document

    When I create a PDF in Acrobat Professional 9 with no security, the document restrictions summary shows comments as allowed and I can add comments in Acrobat Professional, but when the same document is opened in Adobe Reader 7, 8 or 9, the document r

  • Why are all of my email passwords unrecognized?

    I went to the Atlanta Lenox store for help with my GF on Sunday. Michael could not have been more helpful. However, once I returned home each of my three email accounts started to "act up." Each time I tried to enter one of the accounts, I received a

  • Thread creation in c++

    Hi, all ! I am working on a c++ program. I have created a class called threads abnd now I want to know whether there is a function for creating threads.I am new to solaris.I don't have a idea about what function to use to create threads in c++. I als