DeInstall DataGuard db_role and dg_broker_config_file n parameters

Oracle 11.1.0.7 RAC with DataGurad
We used DG to migrate our dev and acc environments to another location and are now ready to "un-DataGuard". I have a checklist to follow with these two outstanding questions:
1) srvctl config database -d <primary> -a shows DB_ROLE: PRIMARY. Non-DataGuarded databases show this as null. I've tried srvctl modify database -d <primary> -r "" but receive the error: PRKO-2003 : Invalid command line option value: How can I change the role to NULL.
2) We use ASM and have the parameters dg_broker_config_file1 and dg_broker_config_file2 set to +ASM_DATA/play/dataguard/dr1play.dat (also the dr2play.dat file for file2).  .  We manually created the DATAGUARD folder, turning on the broker creates a DATAGUARDCONFIG folder.  What should we do about these files? 
Sherrie

I think you have a bug, your version is 11.1.0.7
I tested your steps, following results
[oracle@oel62-rac2 Desktop]$ srvctl config database -d racdb
Database unique name: racdb
Database name:
Oracle home: /u01/app/oracle/product/11.2.0/dbhome
Oracle user: oracle
Spfile:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: racdb
Database instances: racdb1,racdb2
Disk Groups: DATA,FRA
Mount point paths:
Services:
Type: RAC
Database is administrator managed
[oracle@oel62-rac2 Desktop]$ srvctl  stop database -d racdb
[oracle@oel62-rac2 Desktop]$ srvctl remove database -d racdb
Remove the database racdb? (y/[n]) y
[oracle@oel62-rac2 Desktop]$ srvctl add database -d racdb -o $ORACLE_HOME
[oracle@oel62-rac2 Desktop]$ srvctl add instance -d racdb -i racdb1 -n oel62-rac1
[oracle@oel62-rac2 Desktop]$ srvctl add instance -d racdb -i racdb2 -n oel62-rac2
[oracle@oel62-rac2 Desktop]$ srvctl config database -d racdb
Database unique name: racdb
Database name:
Oracle home: /u01/app/oracle/product/11.2.0/dbhome
Oracle user: oracle
Spfile:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: racdb
Database instances: racdb1,racdb2
Disk Groups:
Mount point paths:
Services:
Type: RAC
Database is administrator managed
[oracle@oel62-rac2 Desktop]$ srvctl  start database -d racdb
[oracle@oel62-rac2 Desktop]$ srvctl  status database -d racdb
Instance racdb1 is running on node oel62-rac1
Instance racdb2 is running on node oel62-rac2
[oracle@oel62-rac2 Desktop]$ srvctl config database -d racdb
Database unique name: racdb
Database name:
Oracle home: /u01/app/oracle/product/11.2.0/dbhome
Oracle user: oracle
Spfile:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: racdb
Database instances: racdb1,racdb2
Disk Groups: DATA,FRA
Mount point paths:
Services:
Type: RAC
Database is administrator managed
[oracle@oel62-rac2 Desktop]$

Similar Messages

  • How to pass Multi and Singlr value Parameters to DB2 query, which is using in SSRS report for ODBC connection

    Hi Guys,
    I am using DB2 database in SSRS. I have to pass Single Value and Multi Value Parameters. I tried with Select * From DB2Table Where
    Column=@PRM_Name Or Select * From DB2Table Where
    Column=:PRM_Name . It is not working and throwing error. Please help me out.
    Connection Details: ODBC
    Thanks Shiven:)

    Hi SKM,
    So you mean to say that Go to DataSource->Add Dataset-> Query Type-Text-> Under Query:
    click on fx (Expression)-> Write this expression
    For Single Value Parameter:
    ="SELECT customer_name, telephone_number, address1, address2, city from MyTable
    WHERE city = '" + Parameters!City.Value + "'"
    OR
    ="SELECT customer_name, telephone_number, address1, address2, city from MyTable
    WHERE city =  '" & Parameters!City.Value & "'"
    Keep it in mind if Parameter is String then
    It should be in Single quote ''.
     Like
    ="SELECT customer_name, telephone_number, address1, address2, city from MyTable WHERE city
    ='Hyderabad' "
    For Multivalu Parameter:
    ="SELECT EmployeeID, FirstName, LastName, LoginID FROM SHIVEN.AUDIT Where FirstName
    in ('" + REPLACE(JOIN(Parameters!City.Value,","),",","','") + "')"
    NOTE:
    If your Parameter is Single Value Parameter and You want to enter string values with Coma (,)
    separated (Like Hyderabad, Chennai, Delhi).
    In this case, you have to use below expression.
    ="SELECT customer_name, telephone_number, address1, address2, city from MyTable
    WHERE city IN ('" + REPLACE(Parameters!City.Value ,",","','") + "')"
    OR
    ="SELECT customer_name, telephone_number, address1, address2, city from MyTable
    WHERE city IN  ('" & REPLACE(Parameters!City.Value ,",","','") & "')"
    In above expression: Replace will replace all , with ‘,’ and city IN (‘Hyderabad’, ‘Chennai’,
    ‘Delhi’) will not throw any error.
     Note: You have to write expression in one line in Expression editor for dataset
    query
    Thanks It is working fine but it is tough job if query is big.
    Hi S kumar,
    The above approach we use when we have source like DB2, becasue DB2 has some syntactical differences to pass multivalue paramaeter. I tested and it works good, if i am mentioning the query in above format by using Fx button while creating dataset.
    but if we want fetch data from view which exist in DB2 and we need to call db2 view in SSRS and pass multivalue parameter in a way we did above then could you please mention the steps and way to achieve this.
    Thanks in advance!

  • Sender and receiver channel parameters

    Hi Experts,
    I am working on a flat file to flat file scnario. I need to remove the first two lines and last two lines from the flat file and send it to ECC via PI
    The flat file looks like this
    %802 750285 7502857 7502
    %JHKJ UYOU 99 9090
    dfafds 2255425 4545 sdfs fsdfsdf dsffs fsfda sfsf
    rewre ewrewr wetwt wtwtw
    %iuoi iuipo
    %7878 8787
    so i need to remove the first two lines (starts with % symbol) and last two lines (starts with % symbol) and convert back to flat file and send it to ECC.
    I have created the data types as
    Source Data type
    DT_Source
    Header 1..1
      Header1
      Header2
    Recordset 1.. Unbounded
      Record 1.1
    Trailer 1...1
      Trailer1
      Trailer2
    Target Data type
    DT_Target
    Recordset 1.. unbounded
      Record 1.1
    Could you plz let me know the sender and receiver channel parameters
    Regards,
    Vai

    Hi Vaigai,
    Grzegorz is right.
    You can read all the flat file and remove the first two and last two lines using a mapping.
    Check this link. There are some content conversion parameters in the sender file adapter that can be helpful
    [http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm]
    Regards,
    Diego Estanguini Gabriel

  • How to record who run a runbook and with some parameters?

    Hello,
    I would like to record who run the runbook and with some parameters.
    There is some option build in at Orchestrator that will give me that info?
    Thanks!

    Hi,
    Logging is not really the best Choice, like Stefan mentioned, SQL Database will grow very fast.
    For the Input Parameters, you can add a Textfile Activity to write your own Lofgile.
    To get the User, which has startet teh Runbook, you Need to query the SQL Server, but i created a Runbook for that, so you Need to Invoke my Runbook in your Runbook, and you will receive the User which started the Runbook
    RB can be found here:
    https://gallery.technet.microsoft.com/Get-User-Informations-c3e64d6e
    Seidl Michael | http://www.techguy.at | twitter.com/techguyat |
    facebook.com/techguyat |
    youtube.com/techguyat

  • How EM invokes the concurrent users and list of parameters scripts in EM ?

    Hi,
    How to check if EM is invoking the concurrent users and list of parameters scripts for a db instance target or not ?
    And how EM invokes these in EM ?
    Thanks in Advance.

    Not sure what you mean with this question, could you be a bit more specific?
    Regards
    Rob
    http://oemgc.wordpress.com

  • How to draw an arc of a circle in flash pro cc,considering center and radius as parameters?

    Please help  to draw curves in flash pro cc,considering center and radius as parameters...

    function drawArcF(sp:Sprite,centerX:int,centerY:int,radius:int,startA:int,endA:int,color:uint):voi d{
        if(startA>endA){
            var tempA:int=startA;
            startA=endA
            endA=tempA;
        var degToRad:Number = Math.PI/180;
        with(sp.graphics){
            lineStyle(0,color);
            moveTo(centerX+radius*Math.cos(degToRad*startA),centerY+radius*Math.sin(degToRad*startA)) ;
            for(var i:int=startA+1;i<=endA;i++){
                lineTo(centerX+radius*Math.cos(degToRad*i),centerY+radius*Math.sin(degToRad*i));

  • How can I change the Approver and HR Consultant parameters?

    Hi Everyone,
    I’ve created a Time-Off Process using the tutorial downloaded from SDN site.
    When I try to start the Runtime project (Employee side) I find the “Processors Table” in "Create Time-off Request" screen.
    The Approver name is not correct… is not what I expected!
    1) How can I change (in the Design Time project/area) the Approver and HR Consultant parameters?
    2) How can I hide (in the Runtime area) the “Processors Table”? 
    Furthermore, I would like to have more information about the “Parameters Consolidation” meaning. Could you help me to catch this meaning?
    Thanks in advance,
    Enrico

    Do you mean "how can I modify the processor of first and second Approval and the processor of HR consultant" for the time-off process?
    I' ve the same problem, but unfortunately I can't help you...hoping someone is going to reply.
    Bye
    Nicola

  • "Formal OUT and IN OUT parameters can be returned in any order"

    Hi,
    From the PL/SQL Language Reference (11.2):
    Formal OUT and IN OUT parameters can be returned in any order. In this example, the final values of x and y are undefined:
    CREATE OR REPLACE PROCEDURE p (x OUT INTEGER, y OUT INTEGER) AS
    BEGIN
    x := 17; y := 93;
    END;
    What does this mean?  How are the values of x and y in any doubt here? I tested it and x and y were set to 17 and 93 respectively.
    Thanks in advance,
    Jason

    FrankKulash wrote:
    I wouldn't count on variable a being 93 after running this (though it has been 93 every time I've tried it).
    Right, even though it is quite logical OUT parameters are assigned in parameter number order (which is what Oracle is using in 10G & 11G - can't test on older versions), I didn't see it in documentation, so we can't assume it.
    SQL> CREATE OR REPLACE PROCEDURE p (x OUT INTEGER, y OUT INTEGER) AS
      2  BEGIN
      3  x := 17;
      4  y := 93;
      5  END;
      6  /
    Procedure created.
    SQL> DECLARE
      2      a   INTEGER;
      3  BEGIN
      4      p (a, a);
      5      dbms_output.put_line (a || ' = a aftr calling p (a, a)');
      6  END;
      7  /
    93 = a aftr calling p (a, a)
    PL/SQL procedure successfully completed.
    SQL> CREATE OR REPLACE PROCEDURE p (x OUT INTEGER, y OUT INTEGER) AS
      2  BEGIN
      3  y := 93;
      4  x := 17;
      5  END;
      6  /
    Procedure created.
    SQL> DECLARE
      2      a   INTEGER;
      3  BEGIN
      4      p (a, a);
      5      dbms_output.put_line (a || ' = a aftr calling p (a, a)');
      6  END;
      7  /
    93 = a aftr calling p (a, a)
    PL/SQL procedure successfully completed.
    SQL> CREATE OR REPLACE PROCEDURE p (y OUT INTEGER, x OUT INTEGER) AS
      2  BEGIN
      3  x := 17;
      4  y := 93;
      5  END;
      6  /
    Procedure created.
    SQL> DECLARE
      2      a   INTEGER;
      3  BEGIN
      4      p (a, a);
      5      dbms_output.put_line (a || ' = a aftr calling p (a, a)');
      6  END;
      7  /
    17 = a aftr calling p (a, a)
    PL/SQL procedure successfully completed.
    SQL> CREATE OR REPLACE PROCEDURE p (y OUT INTEGER, x OUT INTEGER) AS
      2  BEGIN
      3  y := 93;
      4  x := 17;
      5  END;
      6  /
    Procedure created.
    SQL> DECLARE
      2      a   INTEGER;
      3  BEGIN
      4      p (a, a);
      5      dbms_output.put_line (a || ' = a aftr calling p (a, a)');
      6  END;
      7  /
    17 = a aftr calling p (a, a)
    PL/SQL procedure successfully completed.
    SQL>
    SY.

  • DEFAULT values for OUT and IN/OUT parameters in PL/SQL

    Why are OUT and IN OUT parameters not allowed to have DEFAULT values assigned to them? Or is there a way around this?
    thank u

    For IN parameters this makes sense. For OUT parameters... hm... when you don't get anything out you also don't need a default value. I think the cases where you want to overload can't be compared with default values.
    For IN a default value would be like:
    If I don't add this parameter it should use 'DEFAULT' as INPUT value.
    For an out parameter:
    If I don't use a variable for this parameter the output value should be 'DEFAULT'.
    and written into nirvana? it does not make sense to say I output something but I don't output something.
    Message was edited by:
    Sven W.

  • Keep dll running and waiting for parameters

    Hello!
    I am for the first time in this forum, sorry if something wrong.
    My problem:
    I have a labview aplication, which needs to pass several parameters during the run to a  .dll(c++). The .dll has to remember all the values sent in different time moments,execute some calculations and answer to the VI every time parameters arrive. All the values passed are integers.
    I know how to run the .dll from vi, pass parameters and receive answer, but every time i pass the parameters, the .dll starts again and does not remember parameters sent before.
    I use next line to get parameters from vi to .dll:
    extern "C" __declspec(dllexport)int Myfunction( int a, int b, int c );
    The other way I thought of would be to save the values to a .txt file, but this isn't certainly optimal solution.
    It would be best, if the .dll would run simultaneously with the vi and listen for parameters and answer, when needed.
    Please help, thanks.
    Message Edited by redblue on 10-19-2009 01:50 PM

    Hi there,
    Ironically, I just posted a very similar query here - today as well! (didn't find this one during my initial search...):
    http://forums.ni.com/ni/board/message?board.id=170&message.id=449082#M449082
    If you just want single strings/values, then the event posting definitely works okay (I don't know how many events per second it can handle though, if you need high data rates).
    Anyhow, I suggest you have a look at:
    http://zone.ni.com/devzone/cda/epd/p/id/1480
    and
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=332674
    (I don't know why I failed with passing 1D arrays, given that strings work... )
    Regards, MT

  • Tomcat single sign-on and reloading session parameters

    Hello,
    I am planning to write three web applications that will run under tomcat 5.5. I am planning to implement single signon capability by using Realms and Form-based login.
    Right after a user log's in, I want to query the database and load some frequently used information into Session as parameters, so that I don't have to query the database over and over again to get the same information.
    All three webapplication are going to put the same information in Session for each user, so I was wondering if there is a way to share this information across the three web applications? Do I need to query the database everytime the user moves from one application to another or is there a better/easier way?

    yeah, create a class to put it all in then put it in the session.
    session.setAttribute("myobject", object);
    use the web.xml to point the applications to a welcome page, that will check if this value in the session is null, and if it is gets the information, and if it isn't doens't do anything with it.

  • SQL and Multiple Values Parameters

    Hi,
    I've pretty much exhausted my search (google and in this forum) with finding a solution to my problem... So now I'm hoping that any of you will be able to help me out.
    I am writing an Oracle SQL query to get the data for a Crystal Report (Product Ver. 11.5.8.826).
    What I am trying to do is to allow a parameter to be entered by the user based on three possibilities:
    1. user enters a single value (eg. '66200')
    2. user enters multiple values (eg. '66200, 66201')
    or
    3. user leaves the parameter alone (eg. '' )
    The query works up to when I try do the following...
    Select
    From
    Where
    and ({?param_id} IS NULL OR table1.ID IN ({?param_id}))
    {?param_id} settings:
    'List of Values' = Static
    'Allow multiple values' = False
    'Value Type' = String
    with no Default Value
    table1.ID is of type Integer
    Using the above query, it works when I enter a single value such as '66200', but I get the following error when I leave the param_id blank:
    "Failed to retrieve data from the database.
    Details: HY000:(Oracle)(ODBC)(Ora)ORA-00936: missing expression
    (Database Vendor Code: 936 )"
    When I try to enter the value '66200, 66201' (yes, I know I have Allow multiple values set to False, and I do want the user to be able to enter more than one ID by using comma as a separator), I get the following error:
    "Failed to retrieve data from the database.
    Details: HY000:(Oracle)(ODBC)(Ora) ORA-00920: invalid relational operator
    (Database Vendor Code: 920 )"
    But when I have the following query:
    Select
    From
    Where
    and (table1.ID IN ({?param_id}))
    and enter the value '66200' it works, or if I enter the value '66200, 66201' this works too ('66200, 66201' will return the correct data result).
    However, if I leave the param_id to be blank, I get the error:
    "Failed to retrieve data from the database.
    Details: HY000:(Oracle)(ODBC)(Ora)ORA-00936: missing expression
    (Database Vendor Code: 936 )"
    What I want to try and do is to allow the user to leave the param_id empty and have the SQL query return all ID values by checking if that param_id is empty.
    I understand that I can just add a Value to the param_id to have "ALL" and just let the user select it, but the problem with that is then I will need to have the SQL Query potentially return thousands of data before I can even do the Record Selection - obviously not good on report performance and all.  I do have four (4) other parameters that I am using for the report, with two of them being required Date parameters:
    {?param_startdate}
    {?param_enddate}
    {?param_title}
    {?param_refnum}
    These four parameters are also in the SQL query, and returns with no problem at all:
    WHERE
    and ( {?param_startdate} IS NULL OR {?param_startdate}='' OR table.startdate >= {?param_startdate} )
    and ( {?param_enddate} IS NULL OR {?param_enddate}='' OR table.enddate <= {?param_enddate} +1)
    and ( '{?param_refnum}' IS NULL OR table.refnum= TO_NUMBER('{?param_refnum}') )
    and ( '{?param_title}' IS NULL OR UPPER(table.title) = UPPER('{?param_title}) )
    So, my question is:
    Is there a way to have the param_id be left blank thus allowing the SQL query to return all the ids?
    Any help would be much appreciated... thanks in advance.
    Edited by: Suolon Hu on Oct 16, 2008 6:13 PM
    Edited by: Suolon Hu on Oct 16, 2008 7:28 PM

    Hi Mohamed,
    Thanks again!  This does the job, but I find that it runs much slower than if I were to have it in the SQL query instead.  I guess there isn't a way to have a check condition in the SQL query instead of having it in the Record Selection?
    I was trying the CASE WHEN in the WHERE clause of the SQL query, but not being a SQL expert, I wasn't successful with this method - I was able to get it to work with one entry, but not multiple values '66200, 66201' or blank (all values))
    WHERE
    and table.ID IN
    (CASE
    WHEN {?param_ID} IS NULL THEN table.ID
    ELSE {?param_ID}
    END)

  • Opening a PDF and passing open parameters...

    I currently can open a pdf file using JSF 1.2 but I cannot figure out how to send in the adobe open parameters. I tried to append the open parameters #search=blah to the end of the File but am having no luck. Is it possible? Any ideas or can anyone point me in the right direction? I followed this example
    File file = new File("C:\\blah.pdf");
    response.setContentType("application/pdf");
    response.setContentLength(file.length());
    response.setHeader("Content-disposition", "inline; filename=\"" + file.getName() + "\"");
    BufferedInputStream input = null;
    BufferedOutputStream output = null;
    view plaincopy to clipboardprint?
    try
    input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
    output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
    byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
    int length;
    while ((length = input.read(buffer)) > 0)
    output.write(buffer, 0, length);
    finally
    close(output);
    close(input);
    Appreciate any comments! Thanks!

    Re: Opening a PDF and I get a blank dialog box with a ? in it.
    As an update the work around is to have Adobe open in the background and you wont get the error.
    The software in question calls the registry to launch adobe calling  HKEY_CLASSES_ROOT > .pdf > AcroExch.Document

  • Use hyperlink to open another page , and pass some parameters to that page

    Hi
    Thank you for reading my post.
    How i can use hyperlink to open another jsp file in a new window meanwhile pass some parameters to it.
    for example i need something like this :
    http://127.0.0.1:8080/myProj/faces/Viewmessage.jsp?messageID=10
    i can not use session bean because i must open that in a new window and use hyperlink not Action
    Thank you

    I tried the following in the equivalent of your Viewmessage (page bean):
            ExternalContext eContext = FacesContext.getCurrentInstance().getExternalContext();
            String text = "Parameters: ";
            Iterator it = eContext.getRequestParameterNames();
            Map requestParams = eContext.getRequestParameterMap();
            while (it.hasNext()) {
                String key = (String)it.next();
                String value = (String)requestParams.get(key);
                text += "; " + key + " = " + value;
            staticText1.setText(text);That works as expected when you reach that new page via a hyper link.
    The session object is also the same as in your `old' window. So be careful about synchronization!
    I hope this helps.
    -- Marco

  • Passing portal username and password as parameters in URL iview.

    Hi Gurus,
    i Have Created URL iView. i want to send the Username and password of portal to this url ,
    how can i access the portal username and password.
    Note: tried with j_user and j_password
    Regards
    K Naveen Kishore

    Hi,
    Jigar Oza
    Thanks for u r reply, i have tried with application integrator but there is a problem with usermapping.
    now what i have done is created HTTP System based on this system created URL iView,in application parameters username and password as MappedUser and MappedPassword every thing is working fine. user  logged in automatically when he logged into portal.
    there are tabs ,links in application .when i click on tabs or links it is assking to enter username and password of the application.
    did i do any thing wrong in creating HTTP system or URL iView,
    what are the necessary properties should be given.
    replys are highly appreciated.
    Regards
    K Naveen Kishore

Maybe you are looking for

  • Show the document path in a search

    Hello, I´m doing many test serching documents and I want to display the differents paths of the folders or documents of the search (like we can do with the Tooltip setting option = path that displays the resouce path as a tooltip). How can I do this?

  • How do I reset my shape tools in CS5?

    All of my shapes look like I skewed them. I can't draw a perfect circle or square using my tools. They look like this. Additionally, my cursor has a vertical line with an arrow to the side of it whenever I'm about to draw a shape. Did I accidentally

  • PROBLEM SOLVED--CS5 WIN7 X64 INSTALL ERROR DEPENDENCY FAILURE

    PROBLEM SOLVED!!!!!!!!!!!! I just spent 9  hours straight on this, but will was stronger than "its". Now I have  both cs4 and cs5, but hopefully it will work if you just have cs5 as  well. I also did not try runnning cs5 installer first after impleme

  • Places feature in 09 version

    I don't know much about this to begin with but here it goes. I don't currently have any geo tagged photos. There are some photos that I would like to put on a map in places. My question: By assigning a photo to a place in Iphoto 09, does that change

  • What does an 'x' mean on the battery icon?

    what does an 'x' mean on the battery icon?