Where should I issue this command

Hi all,
I'm configuring a logical standby database (Oracle 10g R2 on Linux 4.5). In the steps, I should convert to a Logical Standby Database and thus the following command should be issued:
ALTER DATABASE RECOVER TO LOGICAL STANDBY db_name;My question is: if I have db1 as the primary database and db2 as the standby one, on which database should I issue the command? what would be the value of db_name?
Thanks in advance.

I can sort of see why this section of the manual (http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#i92346) where it says:
This section describes how to prepare the physical standby database to transition to a logical standby database. It contains the following topics:
and
The redo logs contain the information necessary to convert your physical standby database to a logical standby database. To continue applying redo data to the physical standby database until it is ready to convert to a logical standby database, issue the following SQL statement:
was not clear enough to state definitely that you do the command on the Physical Standby.
The preceding section header says: 4.2.3 Prepare the Primary Database to Support a Logical Standby Database
And then it goes to: 4.2.4 Transition to a Logical Standby Database
I can see where it might look like we're still on the Primary database. I checked the 11.2 manual and it is pretty much the same so I'll file a doc bug to try and clean this up.
Thanks.
Larry

Similar Messages

  • Can I issue this command in PL/SQL: EXECUTE IMMEDIATE '@filename.sql';

    can I issue this command in PL/SQL: EXECUTE IMMEDIATE '@filename.sql';

    Hi,
    Rather the opening a new process (sqlplus), a new connection (need password) etc... I would rather read and execute the file in pl/sql.
    I do not know if someone wrote it already, but here is a quick and dirty code for doing that with UTL_FILE.GET_LINE
    Here, I am only processing some DML statements and no SELECT statements. Correct it as you like !
    CREATE OR REPLACE PROCEDURE run_script ( dir_name IN VARCHAR2,file_name IN VARCHAR2)
    IS
    vSFile UTL_FILE.FILE_TYPE;
    vCmd VARCHAR2(200);
    vNewLine VARCHAR2(200);
    BEGIN
        vSFile := UTL_FILE.FOPEN(dir_name, file_name,'r');
        vCmd := NULL;
        IF UTL_FILE.IS_OPEN(vSFile) THEN
        LOOP
            BEGIN
                UTL_FILE.GET_LINE(vSFile, vNewLine);
                if (vCmd is null) THEN
                    if (upper(vNewLine) like 'INSERT%' or upper(vNewLine) like 'UPDATE%' or upper(vNewLine) like 'DELETE%') THEN
                        if (vNewLine like '%;') THEN
                            /* we have a single line command, execute it now */
                            dbms_output.put_line(substr(vNewLine,1, length(vNewLine)-1));
                            execute immediate substr(vNewLine,1, length(vNewLine)-1);
                        else
                            /* we have a command over multiple line, set vCmd */
                            vCmd := vNewLine;
                        end if;
                    else
                        /* ignore the rest like spool, prompt, accept, errors, host, @, ... */
                        null;
                    end if;
                else
                    if (vNewLine like '%;') THEN
                        /* we have a the last line of the command, execute it now */
                        vCmd := vCmd || ' ' || substr(vNewLine,1, length(vNewLine)-1);
                        dbms_output.put_line(vCmd);
                        execute immediate vCmd;
                        vCmd := null;
                    else
                        /* keep concatenating to vCmd */
                        vCmd := vCmd ||' '|| vNewLine;
                    end if;
                end if;
            EXCEPTION
                WHEN NO_DATA_FOUND THEN
                    EXIT;
                END;
        END LOOP;
        COMMIT;
        END IF;
        UTL_FILE.FCLOSE(vSFile);
    EXCEPTION
        WHEN utl_file.invalid_path THEN
            RAISE_APPLICATION_ERROR (-20052, 'Invalid File Location');
        WHEN utl_file.read_error THEN
            RAISE_APPLICATION_ERROR (-20055, 'Read Error');
        WHEN others THEN
            RAISE_APPLICATION_ERROR (-20099, 'Unknown Error');
    END run_script;
    set serverout on
    create directory scriptdir as '/home/oracle';
    grant read,write on directory to scott;
    exec run_script('SCRIPTDIR', 'test.sql')

  • I'm getting this warning,but i dont know where is it located.please let me know,where should i rectify this? WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!Enab

    i'm getting this warning,but i dont know where is it located.please let me know,where should i rectify this?
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Hello,
    This seems not related to SQL Server but more related to Fusion or a missing DLL. The following resources may help you:
    http://blog.mediawhole.com/2010/08/enable-fusion-assembly-binding-logging.html
    http://jamesecampbell.blogspot.com/2011/11/how-to-enable-assembly-binding-logging.html
    http://www.codeproject.com/Tips/141281/WRN-Asssembly-binding-logging-is-turned-OFF
    http://stackoverflow.com/questions/5986930/assembly-binding-logging-is-turned-off
    Please verify if a missing DLL is specified before the "WRN: Assembly binding logging is turned OFF" message.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • When I issue the 'Force group Settings' command what effect will this have on existing flows? Do I need to disable WCCP prior to issuing this command on the affected WAE's?

    Hi WAAS Experts,
    I have a query, when I issue the 'Force group Settings' command what effect will this have on existing flows? Do I need to disable WCCP prior to issuing this command on the affected WAE's?
    Thanks,
    Shankar K

    Hi Shankar,
    A change of classifier/policy on the WAE is not affecting the existing flows so you shouldn't need to disable WCCP if you want to force group settings there.
    Regards,
    Nicolas

  • What happend if we issue this command.

    what happend if we issue this command.
    ALTER SYSTEM ARCHIVE LOG CURRENT

    It would enforce archiving of the current redo log.

  • Help! Where should I post this question, so I can get it answer?

    I'm with the greastest Apple communuty on earth, but know ones responds to my question, except once. Is it worded incorrectly or difficult to understand. I been at for 4-5 months. Any help is well appreciated.
    see below for my past adventures:
    Can you help? I have pot this problem on the discussion board times 3 with no response except this time. See below.
    down;oading podcast
    Posted: Jun 23, 2007 8:04 AM

    Reply

    Email
    Can Itune get too full whereas it will stop downloading podcast automatically or manually? I just exported my 2006 " bibleonradio" podcast to a folder on my harddrive. Immediately itune started downloading podast from that site. But for the last 4-5 months it would hit and miss with downloading and the last 2 weeks it quit altogether.I would go to the site and download the podcast to a selected itune folder as a mp3 for listening.
    Do I need to do some type of maintenance to prevent this from occurring? The site is simple reading of bible scriptures. Could itunes get confuse with 2006 podcasts, thinking I already have the podcast, even though the release date for the new podast are mark 2007?
    imacG5 , super drive   Mac OS X (10.4.7)  

    Diane Wordsmith


    Posts: 266
    From: Nashville
    Registered: Feb 20, 2007
    Re: down;oading podcast
    Posted: Jun 24, 2007 9:23 AM    in response to: Austin Smith2

    Reply

    Email
    Look at the Podcasts in your iTunes Library. Do you see a little exclamation point to the left of the listing? If so, click on that.
    iBook G4 (& an iMac running OS 9)   Mac OS X (10.3.9)   iPod Video

    Austin Smith2

    Posts: 114
    Registered: Oct 31, 2001
    Re: down;oading podcast
    Posted: Jun 25, 2007 3:35 PM    in response to: Diane Wordsmith

    Reply

    Email
    Thank you for your reply:
    I have that symbol on some of my other podacst sites, but not this one because I listen to it daily, sometimes 2-3 times a day. Could the exclamation symbol for the othe sites, which goes away if I start listening to them again affect this podcast? but these site with the exclamation also hit and miss when itunes downloads, as much as 2-3 weeks once I start it back up.
    imacG5 , super drive   Mac OS X (10.4.7)  

    Diane Wordsmith


    Posts: 266
    From: Nashville
    Registered: Feb 20, 2007
    Re: down;oading podcast
    Posted: Jun 25, 2007 3:49 PM    in response to: Austin Smith2

    Reply

    Email
    What's happened to me is that some Podcasts I subscribe to I might get lazy about listening to. Several of the Podcasts will pile up, and after a while iTunes will stop updating if you haven't listened to them. When I click on that little exclamation point in a circle, it will tell me that iTunes hasn't been updating that podcast because I haven't listened to it in a while. I think it asks if you want to continue (or maybe you have to click on subscribe again to get them started back).
    If you are listening to this particular podcast every day, that shouldn't be a problem. And not listening to the other ones shouldn't affect this one. Sorry I can't be of more help, but I'm not sure what is causing it.
    You might go to iTunes> Preferences and click on the tab for Podcasts and see what your settings are there.
    Diane Wordsmith
    iBook G4 (& an iMac running OS 9)   Mac OS X (10.3.9)   iPod Video

    Austin Smith2

    Posts: 114
    Registered: Oct 31, 2001
    Re: down;oading podcast
    Posted: Jun 25, 2007 8:07 PM    in response to: Diane Wordsmith

    Reply

    Email
    Thank you again for your reply.
    My settings in preference for podcast are::
    check for new episodes-every hour
    when new episodes are available-download all
    keep-all episodes
    does anyone else have this problem or any idea how to fix it?
    2nd post

    Converting
    Posted: Jun 13, 2007 8:49 AM

    Reply

    Email
    Trying to come up with an alternative to incomplete podcasts downloads from a website. What I'm trying to do is convert some the missing podcasts file from a website that itune don't download-reason unknown. I'm able to download a mp3 file of the podcast from the web site to my desktop, but I would like to add this to my podcast library under the same name of the podcast that I subscribed, then add to my playlist for continuous playing. Is this possible?
    Thank for any Help,
    Austin
    3rd post

    automatic podcast downloads incomplete
    Posted: Jun 9, 2007 10:54 AM

    Reply

    Email
    I was on the wrong forum. Hope someone might have an answer.
    Austin Smith2
    Posts: 102
    Registered: Oct 31, 2001
    automatic downloads incomplete
    Posted: Jun 4, 2007 7:54 AM
    Reply Email
    Some Podcasts have many episodes and when I subscribe, I get them all at once. But with some podcasts ( http://www.bibleonradio.com/ ), only a few episodes download, and I know there are many others available either because I can see them listed by going directly to the site or because they are numbered and some are clearly missing. I have tried setting my preferences both to download the latest edition of a podcast when I update or to download ALL editions. No difference either way.
    Strangely enough, if I am patience , sometimes the gaps will fill themselves in or all at once when I choose to click update. Anyone have any ideas why this might be happening? Any help would be greatly appreciated. I email the web administrator and they said they were able to go to the itune store and download all the recent episodes. Below is my email conversation.
    Thanks,
    Austin
    imacG5 , super drive Mac OS X (10.4.7) Report this post
    Austin Smith2
    Posts: 102
    Registered: Oct 31, 2001
    Re: automatic downloads incomplete
    Posted: Jun 7, 2007 4:07 PM in response to: Austin Smith2
    Reply Email
    Oops, I left off the dialog. Hope someone can Help.
    Austin
    From: Austin Smith [mailto:[email protected]]
    Sent: Monday, February 19, 2007 7:16 AM
    To: [email protected]
    Subject: podcast
    no podcast downloading after feb 17th. Can you help?
    On Feb 19, 2007, at 8:45 AM, MasterMedia wrote:
    Austin,
    If you mean podcasting of the One Year Audio Bible, then whenever the podcasting is behind you can always go out to the website and download from there. That’s usually been updated even when the podcast has not. Sorry for the inconvenience but the podcast should be brought up to date soon.
    MasterMedia
    From: Austin Smith [mailto:[email protected]]
    Sent: Tuesday, February 20, 2007 7:21 AM
    To: MasterMedia
    Subject: Re: podcast
    Thank you for your quick reply.
    I was able to get itunes to download all the updates except,
    Feb 18 New testament,
    Feb 20 New Testament,
    Feb 22 Old and New Testament.
    Is this a problem on my end?
    You wrote, "If you mean podcasting of the One Year Audio Bible, then whenever the podcasting is behind you can always go out to the website and download from there."
    If I manually download the mp3 from your website, can I put them into the postcast library?
    From: [email protected]
    Subject: RE: podcast
    Date: February 20, 2007 9:14:44 AM CST
    To: [email protected]
    Austin,
    I just went out to the iTunes store and tried to download those dates you had a problem with and I was able to download them without any problem. Maybe you should try again. And yes, you can manually download them from our website and store them into your podcast library. I’ve done that before and it works too.
    MasterMedia
    imacG5 , super drive Mac OS X (10.4.7) Report this post
    StarDeb55
    Posts: 6,134
    From: Chandler,Az.
    Registered: Jan 8, 2005
    Re: automatic downloads incomplete
    Posted: Jun 7, 2007 4:12 PM in response to: Austin Smith2
    Reply Email
    Just a suggestion, since this is a podcast issue, you might find more help in the podcast section of the Mac forum.
    iMac G5 2.0 Mac OS X (10.4.9) 60GB 5G iPod, 2G iPod shuffle, iTunes 7.2 Report this post
    Austin Smith2
    Posts: 102
    Registered: Oct 31, 2001
    Re: automatic downloads incomplete
    Posted: Jun 9, 2007 10:50 AM in response to: StarDeb55
    Reply Email
    Thanks.
    imacG5 , super drive Mac OS X (10.4.7)
    imacG5 , super drive   Mac OS X (10.4.7)  
    Report this post
    Austin Smith2

    Posts: 114
    Registered: Oct 31, 2001

    Re: seeking wisdom-please help-automatic podcast downloads incomplete-
    Posted: Jun 13, 2007 7:29 AM    in response to: Austin Smith2

    Reply

    Email
    Guys am I asking the wrong question? I have posted this question 3 times, but I don;t get a reply. Am I in the wrong section? Am I the only one experiencing this problem?
    imacG5 , super drive   Mac OS X (10.4.7)  

    Hi I found the answer from another post. So far everything is working find. I been trying to fix this since march,
    from
    Mike N. (nahyun...
    Posts: 2,814
    From: New York, NY
    Registered: Oct 1, 2003
    Re: itune application and itune folder
    Posted: Jun 27, 2007 7:16 AM in response to: Austin Smith2
    Solved
    Reply Email
    Deleting the application rarely solves anything on Macs. A better starting point is normally to delete the preference file for the application (in Users/~/Library/Preferences/com.apple.itunes.plist) or see if you have the same problem in another user account on the computer.
    PM MDD(1.25GHz 1.25G-RAM 320G-HD) Mac OS X (10.4.10) 20"ACD USB2Connect MacBook (2.0 White)-2GB Report this post
    Austin Smith2
    Posts: 118
    Registered: Oct 31, 2001
    Re: itune application and itune folder
    Posted: Jun 27, 2007 12:51 PM in response to: Mike N. (nahyun...
    Reply Email
    Mike, deleting the preferences did the trick, but I don't know why. Itunes downloaded 5 days of podcast! Hurray!! Thank you!!!!!!!!!

  • Is there an option for proximity result ranking in Preview? If there isn't where should I post this to request this feature?

    This would be really useful when searching for a term in a textbook that you know is close to where you are in the pdf.

    http://www.apple.com/feedback/macosx.html
    Pete

  • [SOLVED] Where should I put this sound script?

    I found a sound script so that when my tv outputs hdmi sound also does so automatically. Where do I put?
    #!/bin/sh
    if [[ $1 ]]
    then
    xrandr --output HDMI1 --off
    pactl set-card-profile 0 output:analog-stereo
    else
    xrandr --output HDMI1 --mode 1920x1080 --right-of LVDS1
    pactl set-card-profile 0 output:hdmi-stereo
    Last edited by quasifilmie (2012-01-30 00:56:33)

    Yeah, I was afraid of that. 
    How do you start your window manager, and which window manager / desktop environment are you using?
    If you are using startx, you could invoke it from your ~/.xinitrc.  You might create a second scipt, launch it in the background, and put a sleep at the beginning to ensure X is ready.
    KDE, Openbox and Xfce4 allow you to run scripts at start up.  Gnome might, I would not know.

  • I have a macbookpro 13 inch (2012) and the screen has started flickering, I'm in Florianopolis Brazil, where should I get this fixed?

    screen flickers and just trying to keep myslef calm. I have the applecare warranty and the store finder is only for US. Help!

    Few one in this, a peer's forum, will be able to provide you with the information you want. You will want to contact Apple Brazil:
    http://store.apple.com/br
    You'll find a contact number at the upper right hand side of the page.

  • Where should i direct this question about dashboard and widgets?

    i have a question about the dashboard and widgets, but i have no clue where to ask?
    thanks.

    Hi,
    I advise you to use http://discussions.apple.com/forum.jspa?forumID=751 which is the area for dashboard
    volker

  • Where should i issue my iphone warranty

    My Iphone has a minor hardware problem that i wish to get a replace from apple.
    I bought my iphone 3gs from apple online store and found that only Apple store are doing the warranty service and repair, other apple authorize store is not. there is no Apple store around Perth, what should i do? post it back to Apple store at Sydney or?

    Call them with the problem and they should let you send it to them to get fixed.

  • Com.sap.aii.adapter.file.ftp.FTPEx: 550 You are not allowed to issue this

    hi All,
    We are getting below error while connecting to an FTP location through File Adapter:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server XYZ. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 You are not allowed to issue this command'. For details, contact your FTP server vendor.
    Also when we tried to connect to this FTP location through PI server we able to connect, but when we connect to it through channel we are getting above error.
    Please Help!
    Thanks,
    Mayank

    hi All,
    The usedid we are using to connect to FTP location has appropriate access to write(we have an receiver file adapter) the files, when we connected to FTP location from PI server using same useid(as used in channel) we are able to connect to FTP location and also able to write the file there.
    Now error soming is:
    An error occurred while connecting to the FTP server XYZ. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 Operation is not supported under Connect:Enterprise FTP server.'. For details, contact your FTP server vendor.
    Thanks,
    Mayank

  • Where should I run Notification Mailer Service???

    Hi Friends,
    I have to configure a notificatio mailer for Oracle Workflow. I know that I have to configure Notificatio Mailer Service for it, and need to execute a wfmlf.exe. But can anyone tell me where should I run this file, ie. in Workflow database server or in the machine where I have installed Mail Server?
    I have a Mail Server (ie. MS Exchange Server) and a Workflow Database Server installed in my network.
    Thanks in advance..
    Best Regards,
    Ratheesh

    Hi,
    It can run in any machine.
    Check this post:
    Re: Notification Mailer - HELP
    Regards,
    Luiz Soares

  • Where should I place the web service client implementation?

    Hi,
    I created a web service client, and some java classes are automatically generated like stub, servicelocator, proxy...
    I wrote the client code to access and invoke a web service.Where should I place this code.
    Thanks.

    pls see Left outer join in Infoset

  • Where should i place the akarta-regexp-1.3.jar

    I'm coding on linux for jakarta-tomcat server..
    I'download jakarta-regexp-1.3.jar file from jakarta-apach site for validate a email adress..
    But i did not find any doc to telle me where put this file..
    I put it in the jre subdirectory of my sdk directory but the javac compiler
    do not recognize this part of my code import org.apache.regexp.* ..I try the lib directory of the tomcat and it was same..
    Where should i put this jar file ..
    Could some body help me ?

    DON'T CROSS POST, EEJIT:
    http://forum.java.sun.com/thread.jsp?thread=461653&forum=33&message=2116135
    http://forum.java.sun.com/thread.jsp?thread=461654&forum=45&message=2115945
    http://forum.java.sun.com/thread.jsp?thread=461653&forum=33&message=2115943
    http://forum.java.sun.com/thread.jsp?thread=461652&forum=1&message=2115941

Maybe you are looking for

  • Thumbnails do not display for some images

    I have a large library with over 65,000 images. In some albums and projects the images fail to display in the browser....see here for an screenshot http://picasaweb.google.be/lh/photo/tOj7FY4lclLxr8YMEBV8ZA?authkey=_Zrhrl8QDyA If I go into filmstrip

  • My 4s crashed while downloading ios8

    My 4s crashed while downloading ios8. Keeps asking to connect to itunes. Since it only charges when it's off, i'm not able to do so. tried rebooting using sleep/wake buttons but did not connect. Any suggestions on how to restore it

  • Migrating from Ingres 1.2 on VMS to Oracle 8i on Unix

    I need to convert an Ingres 1.2 database (VMS) to Oracle 8i (Unix). Does anybody know of a toolkit that would work for me?

  • RMI server double identity

    I have 2 PC in a small LAN, both with Windows XP professional. The machine acting as server has 2 IP adresses: the first one, static, from a permanent ADSL connection (213.155...), the second one from the LAN ethernet connection (192.168.0.1). The ma

  • I  am not able to remove messages from 1 mailbox

    I am on a BB and the felloe who owns it set me up with an email address on that website. I get notifications to that mailbox plus personal messages. I have tried everything to remove the old notifications."Unable to move message. the message could no