How to make a physical standby DB mounted automatically on startup of a PC?

Hi,
I have a physical standby DB 10.2 on a PC under windows XP. This is a Data Guard configuation. If the PC reboot, I would like the DB to start mount automatically. After that, the Data guard will automatically pout the DB in recovery mode.
I have tried this approach :
start automatically the DB (using ORADIM to configure the service).
Unfortunately when this happens, the database is OPEN which is not the right mode. It should be "mounted".
How to do ?
Thank you for your kind help.
Christian

These solutions only work until the database fails over or switches over. To properly implement this you need to find out the database role:
select database_role from v$database;
If it is a PRIMARY then you want to open the database otherwise you want to mount it. Oracle recommends (Doc ID 883196.1) using Data Guard Broker to accomplish this. DGMGRL starts the database according to the database_role.
On Windows:
1. Set ORA_SID_AUTOSTART to false in the Windows registry.
2. Schedule a batch job to perform the following when the server is started:
set ORACLE_SID=<sid of database>
dgmgrl / "startup"

Similar Messages

  • How to make a physical standby database in the read_only state in 11g?

    In 10g, we can make a physical standby database in the read_only state. But in 11g, no a read_only state for a physical standby database. How to make a physical standby database in the read_only state in 11g?

    Hi
    read-only mode (for 11g physical standby)
    A mode in which a database can be opened that allows queries, but disallows modifications.
    A physical standby database can be opened read-only so that queries may be performed. If a license for the Oracle Active Data Guard option has been purchased, a physical satndby database can be open while redo apply is active. This capability is known as Real-time Query.
    For more details have a look at:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/manage_ps.htm#SBYDB00706
    Hipe this Helps
    Regards

  • How To Check Whether Physical Standby is in Sync with the Primary

    hi All,
    I'm new in data guard. In our current production, my boss is asking me to write a shell scripts monitoring physical standby and primary archive is sync (archive gap)
    I'm referring metalink [ID 861595.1], but when i ran the first query in Primary node, the screen hang.
    On primary
    ========
    SQL> SELECT THREAD# "Thread",SEQUENCE# "Last Sequence Generated"
    FROM V$ARCHIVED_LOG
    WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)
    ORDER BY 1;
    I tried to turn on 10046 SQL trace, the SQL consume a lot of CPU, and it full table scan in X$KCCAL table.
    TKPROF result look like below:
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1     88.29     115.59          0          0          0           0
    total        3     88.30     115.60          0          0          0           0
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1 Optimizer mode: ALL_ROWS Parsing user id: 80 
    Rows     Row Source Operation
          0  SORT ORDER BY (cr=0 pr=0 pw=0 time=21 us)
          0   FILTER  (cr=0 pr=0 pw=0 time=19 us)
       1124    FIXED TABLE FULL X$KCCAL (cr=0 pr=0 pw=0 time=40537 us)
          0    FILTER  (cr=0 pr=0 pw=0 time=115538625 us)
       1122     HASH GROUP BY (cr=0 pr=0 pw=0 time=115530193 us)
    7465972      FIXED TABLE FULL X$KCCAL (cr=0 pr=0 pw=0 time=94648975 us)
    Elapsed times include waiting on following events:
      Event waited on                        Times   Max. Wait  Total Waited
      -----------------------------------   Waited  ----------  ------------
      SQL*Net message to client               1        0.00          0.00
      control file sequential read        16841        0.05         30.88
      SQL*Net break/reset to client           1        0.00          0.00Due to this is production environment, thus i had terminated the session, can anyone teach me or share with me any scripts to monitor physical standby is sync with primary or not? Or do you encounter the above issue when running the SQL?
    My db version is Oracle 11.2.0.1.0
    Thanks in advance.
    Regards,
    Klnghau

    Hello;
    Note 861595.1 has not been subject to an independent technical review. Not sure if that make it bad or not.
    This is what I'm using: ( I spool this to a file and have it e-mailed to me daily)
    PROMPT
    PROMPT Checking last sequence in v$archived_log
    PROMPT
    clear screen
    set linesize 100
    column STANDBY format a20
    column applied format a10
    SELECT name as STANDBY, SEQUENCE#, applied, completion_time from v$archived_log WHERE DEST_ID = 2 AND NEXT_TIME > SYSDATE -1;
    prompt
    prompt----------------Last log on Primary--------------------------------------|
    prompt
    select max(sequence#) from v$archived_log where NEXT_TIME > sysdate -1;
    Best Regards
    mseberg

  • How to make iMovie 09 recognize a mounted disk image?

    I'm trying to store video clips in a disk image (Mac OS Extended - Journaled, single Apple Partition Map). Previously in iMovie 08 all I had to do was mount the image, start iMovie and it would recognize it as an additional drive. Then I could drag events to it and store them there. In 09 this does not work. It sees the image but has the yellow triangle/exclamation point in it. I cannot for the life of me figure out how to make it recognize the image! I've tried all variations in disk utility to create the image to no avail. Is iMovie 09 looking for a certain file on the disk image to recognize it? Maybe something in the DS_Store file or the .localized? Very frustrating.
    Hoping someone can help. Thanks.

    jsd2 wrote:
    Try the following:
    Mount the disk image so that there is a disk icon on the Desktop, and then launch Terminal (in /Applications/Utilities).  Copy-paste the following line into the Terminal window, and then type a single space. Do not type <Return> yet:
    sudo mdutil -i on
    After typing the single space, drag the mounted disk image icon from the Desktop into the Terminal window, click inside the Terminal window, and then type <Return>.  Enter your admin password at the prompt (it will not echo on the screen),  and again type <Return>.
    Hopefully that will enable Spotlght indexing on the mounted image. It might take some time to complete depending on the contents.
    The result for this for me, three times, was "Indexing disabled."

  • How to make a physical copy of database when using ASM

    I used to make a physical copy of production database
    every night to create test environment. I have
    simply physically copied files, recreated control file,
    ... to create it.
    But on 10g I want to use ASM, is there some way
    to do physical copy of the database similar way?

    You can not directly to duplicate a regular database that does not use ASM into new one that does not use ASM. The problem with ASM is that you can not see the files directly at the disk level.
    If you use RMAN you could use the command duplicate and all would be easier.
    Joel Pérez
    http://www.oracle.com/technology/experts

  • How to set kernel parameter max-shm-memory automatically at startup

    Hi,
    We have a 11.1.0.7 Database on Solaris Sparc 10 64-bit server. We have settings of max-shm-memory as below;
    -bash-3.00# prctl -n project.max-shm-memory -i project default
    project: 3: default
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      50.0GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    -bash-3.00# prctl -n project.max-shm-memory -i project system
    project: 0: system
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      50.0GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    Whenever we restart the db the second one is lost;
    bash-3.00$ prctl -n project.max-shm-memory -i project default
    project: 3: default
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      50.0GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    bash-3.00$ prctl -n project.max-shm-memory -i project system
    prctl: system: No controllable process found in task, project, or zone.
    So our sys admin has to configure them again whenever we restart our db. How could I do this automatically at startup without counfiguring again from command prompt?
    Thanks,
    Hatice

    Ok it is clear now. I have one more question.  When I check system I get below error;
    # prctl -n project.max-shm-memory -i project system
    prctl: system: No controllable process found in task, project, or zone.
    Document says; The reason for the message reported above is because there is no active process(es) belong to the project.
    But it is impossible for us because according to our project settings its for root user;
    bash-3.00$ cat /etc/project
    system:0::root::project.max-shm-memory=(priv,53687091200,deny)
    user.root:1::::
    noproject:2::::
    default:3::oracle::project.max-shm-memory=(priv,53687091200,deny)
    group.staff:10::::
    oracle:100::::project.max-shm-memory=(priv,53687091200,deny)
    Is it because I check with oracle user and I don't have sufficient privileges or there is something wrong with it?
    Thanks.

  • [SOLVED] How to make pendrive be available to mount by nonroot user?

    Hello,
    So I'm 2 days old arch linux user. I've managed to install everything I wanted so fat without much problem (basic tools, xmonad), so far I like it. It's fun.
    Since arch doesn't automatically mounts pendrives like I'm used to in Ubuntu so I decided to be able to mount as normal user and added:
    /dev/sdb /media/pendrive vfat defaults,user 0 1
    Everything worked fine until I installed dosfstools (so as to have mkfs.vfat). After that my system wouldn't start without pendrive in USB slot. (Probably because dosfsck couldn't check it). So I tried changing that fstab line to:
    /dev/sdb /media/pendrive vfat rw,suid,dev,exec,noauto,user,async 0 1
    (Same as defaults but with noauto instead auto).
    It didn't work. So I have commented the fail entry. Is there any solution to my problem (mounting as non-root user)?
    Last edited by gregorias (2011-09-09 17:56:58)

    This is what I have in my fstab:
    $ grep TOMLAD /etc/fstab
    /dev/disk/by-label/TOMLAD /media/TOMLAD auto rw,user,noauto,async 0 0
    The mount point has the following permissions:
    $ ls -l /media/ | grep TOMLAD
    drwxrwx--- 2 root storage 4.0K May 25 19:56 TOMLAD/
    That is, it is owned by root, but anyone in the group 'storage' has rwx access. Any user in the storage group can now just type:
    $ mount /media/TOMLAD
    Simple. I actually have a whole bunch of mount points so I can mount any external disks whenever.
    Auto means that it will auto mount the device during boot. If the OS doesn't find it then it won't boot because there must be a problem. Remember, this was invented for servers were the storage doesn't just disappear.
    Also, it's a good idea to give your pendrive a name so that you can refer to it by name instead of /dev/sdb since this changes as you plug in more devices.
    Last edited by BaconPie (2011-09-08 17:49:22)

  • How to monitor 8i physical standby databases ?

    Hi guys,
    It seems easy to create and monitor standby databases for 9i and 10g instances through OEM 10, but what about 8i standby db ?
    Has everything to be done manually : creation, monitoring, maintenance ?
    It is at least possible to monitor redo transport and applying for example with an older version of OEM ?
    thanks for your help
    Antoine

    10g EM is the first version, which really monitors (almost) the whole landscape. Previous versions don't deal with Dataguard configurations. 10g EM still can monitor an 8i (must be at least 8.1.7.4) database, but on a very basic level. Remember 8i is desupported for a long time now. 9i is also desupported, but many sites still use it, that can't be ignored by Oracle.
    Werner

  • How to make early payments via transaction F110 (automatic payment progr)?

    Hi expert,
    I am trying to make an early payment for vendor invoices which are not yet due.
    How can they be included in the payment run of transaction F110?
    I have made the payment run on 16.10.2009 with "documents entered up to" 01.11.2009.
    2 invoices were already overdue (due date: 10.10.2009)
    1 invoice is only due on 25.10.2009, but I want to pay it today.
    I have chosen 26.10.2009 as "next payment date".
    The payment program cannot find any data, not even the 2 invoices which are already overdue.
    Do you have any experience in this matter?
    Thank you.
    Kind regards,
    Linda

    Dear Belinda,
    To make early payment for the invoices which not due yet then just calculate their due dates and make sure "next payment run" is after these due dates then program will make payment for those invoices.
    Problem you are facing is system is not considering any invoice for payment. Please enter the payment date in the "documents entered up to".
    There might be many causes for this particular problem like documents have payment block, they are not due, no valid payment method found.
    So, please analyze the log given on F110 screen and identify the problem. You will probably solve it.....
    Regards,
    Chintan Joshi.

  • How to make 3rd party products (ie. firefox) run on startup?

    Hi Support
    I'm a newbie to MAC. I have a few questions around 3rd party softwares that I use on my windows machine
    # firefox - i downloaded and installed and it runs fine but when i log out and log back in or restart its no longer there ... i again have to run the DMG installer. Is there anyway to make it run on startup? Also, if i click on the DMG file again will that overwrite all my preferences of the product?
    # VLC media - also installed fine and runs fine but cannot get it to run on startup.
    # The last question is the mounted disk images for VLC and firefox ... when i run them it shows up on the desktop. Anyway to hide them?
    Any help or pointers will be appreciated.
    Thanks

    You need to drag the application out of the dmg file and put the application into your applications folder which is on your hard drive. The dmg file is just a compressed way for the application to be downloaded in. To keep and use any application you need to drag the app to your hard drive so that it remains there for your use. Once you have done this you can delete the dmg file.

  • How to make the scroll bar in flex automate to focus on the new ui component added in the canvas?

    Hi all ,
    There is a canvas container where am adding charts in separate windows.
    So whenever a new chart is added the scroll bar needs to set the focus on the present chart window.
    For this i made the functionality for the canvas container to scroll whenever a new chart is added using the below code
    canvasContainer.verticalScrollPosition = canvasContainer.maxVerticalScrollPosition;
    But the calculations for the vertical position are not precise...
    Is there anything else I should do to make the scroll happen automatically as the chart windows get added in the container ??
    Any suggestions pls
    Regards,
    Ajantha

    Many many thanks to Frank,
    In the css,use the follwing style settings to hide the scroll bar
    af|carousel::spin-bar{    
    visibility: hidden;
    af|carousel::spin-h-previous-icon-style{
    visibility: hidden;
    af|carousel::spin-h-next-icon-style{
    visibility: hidden;
    af|carousel::spin-info{
    visibility: hidden;
    }

  • How to make 'manu date' in CORK filled automatically?

    Hi Experts,
    When using CORK, after hitting 'Goods movements', a window will pop up requeiring to enter expiration date/manu.date of the material.
    My customer has a rule to convert the batch number into a date, they want the concerted date to be filled in to manu.date when the window pop up.
    Or after they enter a manu.date in the pop up window, after hitting the 'OK' button in the pop up, a valiadation work is carried on.
    I had tried many user exit in the system but none of them could be used for the requirement.
    Could anyone please help on which user exit could I use? or how could I fullfill the user's requirement?
    Please help me on this.
    THank you very much.
    Ying

    Hi Experts,
    Please help on this.
    Thanks for your time.
    Ying

  • How to make a handling unit object (packing) automatically generate from inbound

    Hi guru,
    I just have a question which I am sure sure and puzzle, and hope you can give me an accurate information.
    Background:
    We are using EDI communication so that vendor can send us advance shipping notification and will lead to inbound delivery creation automatically.
    Question:
    We would like the vendor, when deliver the shipment for us to be packed base on our instruction, and we want the handling unit object to be created automatically upon inbound delivery creation from the EDI. How to do this in SAP?
    Thanks.
    Daniel

    if you are using message type DESADV / SHPCON then vendor needs to send the HU information in the E1EDL37(HU Header)  / E1EDL44 (HU Item) segment and during Inbound delivery creation system will update the IBD with HU . Have a look on the below standard Link to get more detail
    Delivery Interface - Shipping (LE-SHP) - SAP Library

  • How to make a table to be partitioned automatically in 10.1.0.2.0 ?

    Hi
    I am using Oracle database 10.1.0.2.0.
    I created a table. I have done partition on Date column.
    Initially I created partitions for 2007 year.
    Now I should create partitions for 2008 year. So every year, I have to add partitions manually.
    Could any one help me, how can I automate this process.?
    Thank you,
    Regards,
    Gowtham sen.

    I don't know.. how much it would effect.
    In my case, I am having around 100 tables which are partitioned using date column.
    I am loading a table with 5 crore records on an average for its load frequence.
    If I use trigger, it would verify..whether the value in the coumn is new value or not.
    So I am thinking.. it would effect.
    Thank you,
    Regards,
    Gowtham Sen.

  • How do I get an app to launch automatically on startup?

    I downloaded an app (*.wcz) file that links to a clock on the desktop background.
    Clicking the app displays the background from http://www.vladstudio.com/wallpaperclocks/ and the clock and date work.
    When I shut down and start up again, the screen reverts to the previously selected background.
    Is there any way to launch this wallpaper + clock automatically on startup?

    Hi, if the App is in the Dock, right click, choose Options>Open at login.
    Or System Preferences>Accounts>Login Items window, drag the App there or click on the tiny plus icon to add it.

Maybe you are looking for

  • Legend behavior when switching between plots in graph.

    I am trying to plot two plots on a single XY graph. The user should be able to switch between the individual plots as well as showing them together. I do not use the Plot.Visible property but instead change Plot.Color to transparent to make sure the

  • Unable to access facetime in ios6

      Facetime and iMessage have no on/off activation slider in settings.  Unable to use these apps.  First/top command on both looking for Apple i.d. 

  • CS3 action: refuses to save to listed directory

    I've got a few simple actions built that pop up the save window dialog and should automatically point to the listed directory. However, the dialog insists on pointing to whatever directory was saved to last. e.g. Save   As: TIFF   Byte Order: IBM PC

  • Deleting specific row (dynamically) in a subform with multiple pages

    I am going crazy trying to delete a row in a subform.  So for I can only get it to delete the second row, and (this.parent.index) deletes the first row... which is also not desired.  I want the user to be able to delete the particular row that s/he c

  • Printer showing MFG mode - unable to get it out of MFG mode

    I have a HP 3545 all in one printer On switching on the power inlet, MFG mode comes up on the display in printer. I cannot get it out of MFG mode by using Home, Back, Double Home .   Please let me know what needs to be done to get it out of MFG mode