JDBC Connection on Current Primary Database After Switchover: ORA-01033 encounteredConnection to an oracle db...

Why does a Star of David appear at a rally with Francisco Franco?

Do I need life insurance if I can cover my own funeral costs?

What options are left, if Britain cannot decide?

Shortcut for setting origin to vertex

Is it insecure to send a password in a `curl` command?

How do I change two letters closest to a string and one letter immediately after a string using Notepad++?

Passing arguments from one script to another

Book about superhumans hiding among normal humans

How do you talk to someone whose loved one is dying?

Problem with FindRoot

I am confused as to how the inverse of a certain function is found.

What is the Japanese sound word for the clinking of money?

Why Choose Less Effective Armour Types?

How to write cleanly even if my character uses expletive language?

Simplify an interface for flexibly applying rules to periods of time

Welcoming 2019 Pi day: How to draw the letter π?

How to terminate ping <dest> &

Knife as defense against stray dogs

Why do tuner card drivers fail to build after kernel update to 4.4.0-143-generic?

How do I hide Chekhov's Gun?

Can I use USB data pins as power source

Why does energy conservation give me the wrong answer in this inelastic collision problem?

How to plot polar formed complex numbers?

Violin - Can double stops be played when the strings are not next to each other?



JDBC Connection on Current Primary Database After Switchover: ORA-01033 encountered


Connection to an oracle db from another computerHow can I change the connection descriptor used by Oracle Enterprise Manager?Difference between oracle database desktop and server classOracle connection suddenly refused on windows 8How to make dataguard switchover seamlesslyListener listening without listener.oraOracle Developers guide 10g is not connecting to serverConnect Oracle Database 12c via SQL Developer when it is in restricted modeORACLE Client connection errorTNS-12560: TNS:protocol adapter error













0















We are using Oracle Data Guard and currently testing Disaster Recovery scenarios, which is starting the application after switching over from the Primary Database to the Secondary Database.



I am using the following connection string as per Oracle Documentation:



(DESCRIPTION_LIST=
(LOAD_BALANCE=off)
(FAILOVER=on)

(DESCRIPTION=
(ADDRESS_LIST=
(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_1)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_2)(PORT=1521))
)
(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PROD_DB))
)

(DESCRIPTION=
(ADDRESS_LIST=
(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_1)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_2)(PORT=1521))
)
(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=DR_DB))
)

)


The scenario is that we are now switched over to the secondary database, so the application should now connect to DR_DB. However, when we try to connect, it still connects to the PROD_DB, because we're getting the following exception:



ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0


This may be answered already in some threads, and I may not have searched hard enough, but I also do not know if I am expecting the correct result.



I do not expect the application's database connection to stay alive after a switch over; I only want to avoid reconfiguring the application whenever we do DR, and I expect that the above connection string will connect to whichever is the primary database. Is this correct?



Thank you guys for your help.










share|improve this question





























    0















    We are using Oracle Data Guard and currently testing Disaster Recovery scenarios, which is starting the application after switching over from the Primary Database to the Secondary Database.



    I am using the following connection string as per Oracle Documentation:



    (DESCRIPTION_LIST=
    (LOAD_BALANCE=off)
    (FAILOVER=on)

    (DESCRIPTION=
    (ADDRESS_LIST=
    (LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_1)(PORT=1521))
    (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_2)(PORT=1521))
    )
    (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PROD_DB))
    )

    (DESCRIPTION=
    (ADDRESS_LIST=
    (LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_1)(PORT=1521))
    (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_2)(PORT=1521))
    )
    (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=DR_DB))
    )

    )


    The scenario is that we are now switched over to the secondary database, so the application should now connect to DR_DB. However, when we try to connect, it still connects to the PROD_DB, because we're getting the following exception:



    ORA-01033: ORACLE initialization or shutdown in progress
    Process ID: 0
    Session ID: 0 Serial number: 0


    This may be answered already in some threads, and I may not have searched hard enough, but I also do not know if I am expecting the correct result.



    I do not expect the application's database connection to stay alive after a switch over; I only want to avoid reconfiguring the application whenever we do DR, and I expect that the above connection string will connect to whichever is the primary database. Is this correct?



    Thank you guys for your help.










    share|improve this question



























      0












      0








      0








      We are using Oracle Data Guard and currently testing Disaster Recovery scenarios, which is starting the application after switching over from the Primary Database to the Secondary Database.



      I am using the following connection string as per Oracle Documentation:



      (DESCRIPTION_LIST=
      (LOAD_BALANCE=off)
      (FAILOVER=on)

      (DESCRIPTION=
      (ADDRESS_LIST=
      (LOAD_BALANCE=on)
      (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_1)(PORT=1521))
      (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_2)(PORT=1521))
      )
      (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PROD_DB))
      )

      (DESCRIPTION=
      (ADDRESS_LIST=
      (LOAD_BALANCE=on)
      (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_1)(PORT=1521))
      (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_2)(PORT=1521))
      )
      (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=DR_DB))
      )

      )


      The scenario is that we are now switched over to the secondary database, so the application should now connect to DR_DB. However, when we try to connect, it still connects to the PROD_DB, because we're getting the following exception:



      ORA-01033: ORACLE initialization or shutdown in progress
      Process ID: 0
      Session ID: 0 Serial number: 0


      This may be answered already in some threads, and I may not have searched hard enough, but I also do not know if I am expecting the correct result.



      I do not expect the application's database connection to stay alive after a switch over; I only want to avoid reconfiguring the application whenever we do DR, and I expect that the above connection string will connect to whichever is the primary database. Is this correct?



      Thank you guys for your help.










      share|improve this question
















      We are using Oracle Data Guard and currently testing Disaster Recovery scenarios, which is starting the application after switching over from the Primary Database to the Secondary Database.



      I am using the following connection string as per Oracle Documentation:



      (DESCRIPTION_LIST=
      (LOAD_BALANCE=off)
      (FAILOVER=on)

      (DESCRIPTION=
      (ADDRESS_LIST=
      (LOAD_BALANCE=on)
      (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_1)(PORT=1521))
      (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_2)(PORT=1521))
      )
      (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PROD_DB))
      )

      (DESCRIPTION=
      (ADDRESS_LIST=
      (LOAD_BALANCE=on)
      (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_1)(PORT=1521))
      (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_2)(PORT=1521))
      )
      (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=DR_DB))
      )

      )


      The scenario is that we are now switched over to the secondary database, so the application should now connect to DR_DB. However, when we try to connect, it still connects to the PROD_DB, because we're getting the following exception:



      ORA-01033: ORACLE initialization or shutdown in progress
      Process ID: 0
      Session ID: 0 Serial number: 0


      This may be answered already in some threads, and I may not have searched hard enough, but I also do not know if I am expecting the correct result.



      I do not expect the application's database connection to stay alive after a switch over; I only want to avoid reconfiguring the application whenever we do DR, and I expect that the above connection string will connect to whichever is the primary database. Is this correct?



      Thank you guys for your help.







      oracle high-availability jdbc dataguard






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 5 '17 at 6:12









      joanolo

      9,81342153




      9,81342153










      asked Jun 4 '17 at 23:27









      Derek CarlosDerek Carlos

      31




      31






















          3 Answers
          3






          active

          oldest

          votes


















          0














          And that is why we use role-based services instead of the default service derived from instance_name and db_unique_name.



          If your primary database is called PROD_DB (db_unique_name), there will be service with that name at the primary site, and that service will be available even after a failover or switchover. The listener receives your request, sees that you are requesting to connect using the service PROD_DB, and forwards your request to the instance(s) that provide that service. The instance is in MOUNT stage, and you receive ORA-01033.



          Create the role based service at both sites (replace -db and -service values with your current ones):



          srvctl add service -db ORCL -service myservice -role primary
          srvctl start service -db ORCL -service myservice -role primary


          The start step will fail at the standby site, and the service remains in INTERMEDIATE state, but that is normal.



          With this, the service is automatically relocated (stopped at old primary and started at new primary) when you perform a role transition with Data Guard broker.



          And use this service for connecting:



          (DESCRIPTION_LIST=
          (LOAD_BALANCE=off)
          (FAILOVER=on)

          (DESCRIPTION=
          (ADDRESS_LIST=
          (LOAD_BALANCE=on)
          (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_1)(PORT=1521))
          (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_2)(PORT=1521))
          )
          (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
          )

          (DESCRIPTION=
          (ADDRESS_LIST=
          (LOAD_BALANCE=on)
          (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_1)(PORT=1521))
          (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_2)(PORT=1521))
          )
          (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
          )

          )


          When you try to connect using the service myservice, and your client tries the first entry (old primary, currently standby), the listener refuses the connection as there will be no myservice service running at that site, and your client tries the next available address.






          share|improve this answer


























          • I wanted to mark this as the answer, but I want to test it first. However, our customer doesn't want to have the same service name for the primary and standby databases. I may be able to use this on my next project, but for now I will settle with application reconfiguration during DR (which is what they want). Thank you for your answer.

            – Derek Carlos
            Jul 4 '17 at 23:38



















          0














          Below is the sample Oracle net alias configuration for rac db on both in primary and in DR site. I don't see any issues on your netalias configuration but i wonder why don't you use SCAN names/VIP instead using hostname.



          can you try with below configuration and update us.



          SALES=
          (DESCRIPTION_LIST=
          (LOAD_BALANCE=off)
          (FAILOVER=on)
          (DESCRIPTION= (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
          (ADDRESS_LIST=
          (LOAD_BALANCE=on)
          (ADDRESS=(PROTOCOL=TCP)(HOST=prmy-scan)(PORT=1521)))
          (CONNECT_DATA=(SERVICE_NAME=oltpworkload)))
          (DESCRIPTION=
          (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
          (ADDRESS_LIST=
          (LOAD_BALANCE=on)
          (ADDRESS=(PROTOCOL=TCP)(HOST=stby-scan)(PORT=1521)))
          (CONNECT_DATA=(SERVICE_NAME=oltpworkload))))





          share|improve this answer


























          • Thanks for your reply. I tried your recommendation, but it returns the same error (ORA-01033). Could it be a problem with the Listener configuration?

            – Derek Carlos
            Jun 5 '17 at 6:14













          • can you provide us the below details, 1. lsnrctl services (from DR) 2. tnsping <service_name>

            – Dineshkumar Natarajan
            Jun 5 '17 at 7:18





















          0














          I have the exact same issue. We have OIM 11gr2PS3 app and 2 node rac DB cluster. When I switchover from primary to sandby and then try to bring up Admin server it throws error "ORA-01033: ORACLE initialization or shutdown in progress" because admin server is still trying to old primary and current/new standby.



          I have tried so many different things but no luck so far. I am wondering if someone resolved this and can give me a clue or direction to resolve it.



          We are approaching to Go-Live dead line and it is becoming very critical now. So it would really be a great help if someone can provide some assistance here please.





          share








          New contributor




          jawad hafeez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "182"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f175391%2fjdbc-connection-on-current-primary-database-after-switchover-ora-01033-encounte%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            And that is why we use role-based services instead of the default service derived from instance_name and db_unique_name.



            If your primary database is called PROD_DB (db_unique_name), there will be service with that name at the primary site, and that service will be available even after a failover or switchover. The listener receives your request, sees that you are requesting to connect using the service PROD_DB, and forwards your request to the instance(s) that provide that service. The instance is in MOUNT stage, and you receive ORA-01033.



            Create the role based service at both sites (replace -db and -service values with your current ones):



            srvctl add service -db ORCL -service myservice -role primary
            srvctl start service -db ORCL -service myservice -role primary


            The start step will fail at the standby site, and the service remains in INTERMEDIATE state, but that is normal.



            With this, the service is automatically relocated (stopped at old primary and started at new primary) when you perform a role transition with Data Guard broker.



            And use this service for connecting:



            (DESCRIPTION_LIST=
            (LOAD_BALANCE=off)
            (FAILOVER=on)

            (DESCRIPTION=
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_1)(PORT=1521))
            (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_2)(PORT=1521))
            )
            (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
            )

            (DESCRIPTION=
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_1)(PORT=1521))
            (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_2)(PORT=1521))
            )
            (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
            )

            )


            When you try to connect using the service myservice, and your client tries the first entry (old primary, currently standby), the listener refuses the connection as there will be no myservice service running at that site, and your client tries the next available address.






            share|improve this answer


























            • I wanted to mark this as the answer, but I want to test it first. However, our customer doesn't want to have the same service name for the primary and standby databases. I may be able to use this on my next project, but for now I will settle with application reconfiguration during DR (which is what they want). Thank you for your answer.

              – Derek Carlos
              Jul 4 '17 at 23:38
















            0














            And that is why we use role-based services instead of the default service derived from instance_name and db_unique_name.



            If your primary database is called PROD_DB (db_unique_name), there will be service with that name at the primary site, and that service will be available even after a failover or switchover. The listener receives your request, sees that you are requesting to connect using the service PROD_DB, and forwards your request to the instance(s) that provide that service. The instance is in MOUNT stage, and you receive ORA-01033.



            Create the role based service at both sites (replace -db and -service values with your current ones):



            srvctl add service -db ORCL -service myservice -role primary
            srvctl start service -db ORCL -service myservice -role primary


            The start step will fail at the standby site, and the service remains in INTERMEDIATE state, but that is normal.



            With this, the service is automatically relocated (stopped at old primary and started at new primary) when you perform a role transition with Data Guard broker.



            And use this service for connecting:



            (DESCRIPTION_LIST=
            (LOAD_BALANCE=off)
            (FAILOVER=on)

            (DESCRIPTION=
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_1)(PORT=1521))
            (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_2)(PORT=1521))
            )
            (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
            )

            (DESCRIPTION=
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_1)(PORT=1521))
            (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_2)(PORT=1521))
            )
            (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
            )

            )


            When you try to connect using the service myservice, and your client tries the first entry (old primary, currently standby), the listener refuses the connection as there will be no myservice service running at that site, and your client tries the next available address.






            share|improve this answer


























            • I wanted to mark this as the answer, but I want to test it first. However, our customer doesn't want to have the same service name for the primary and standby databases. I may be able to use this on my next project, but for now I will settle with application reconfiguration during DR (which is what they want). Thank you for your answer.

              – Derek Carlos
              Jul 4 '17 at 23:38














            0












            0








            0







            And that is why we use role-based services instead of the default service derived from instance_name and db_unique_name.



            If your primary database is called PROD_DB (db_unique_name), there will be service with that name at the primary site, and that service will be available even after a failover or switchover. The listener receives your request, sees that you are requesting to connect using the service PROD_DB, and forwards your request to the instance(s) that provide that service. The instance is in MOUNT stage, and you receive ORA-01033.



            Create the role based service at both sites (replace -db and -service values with your current ones):



            srvctl add service -db ORCL -service myservice -role primary
            srvctl start service -db ORCL -service myservice -role primary


            The start step will fail at the standby site, and the service remains in INTERMEDIATE state, but that is normal.



            With this, the service is automatically relocated (stopped at old primary and started at new primary) when you perform a role transition with Data Guard broker.



            And use this service for connecting:



            (DESCRIPTION_LIST=
            (LOAD_BALANCE=off)
            (FAILOVER=on)

            (DESCRIPTION=
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_1)(PORT=1521))
            (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_2)(PORT=1521))
            )
            (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
            )

            (DESCRIPTION=
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_1)(PORT=1521))
            (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_2)(PORT=1521))
            )
            (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
            )

            )


            When you try to connect using the service myservice, and your client tries the first entry (old primary, currently standby), the listener refuses the connection as there will be no myservice service running at that site, and your client tries the next available address.






            share|improve this answer















            And that is why we use role-based services instead of the default service derived from instance_name and db_unique_name.



            If your primary database is called PROD_DB (db_unique_name), there will be service with that name at the primary site, and that service will be available even after a failover or switchover. The listener receives your request, sees that you are requesting to connect using the service PROD_DB, and forwards your request to the instance(s) that provide that service. The instance is in MOUNT stage, and you receive ORA-01033.



            Create the role based service at both sites (replace -db and -service values with your current ones):



            srvctl add service -db ORCL -service myservice -role primary
            srvctl start service -db ORCL -service myservice -role primary


            The start step will fail at the standby site, and the service remains in INTERMEDIATE state, but that is normal.



            With this, the service is automatically relocated (stopped at old primary and started at new primary) when you perform a role transition with Data Guard broker.



            And use this service for connecting:



            (DESCRIPTION_LIST=
            (LOAD_BALANCE=off)
            (FAILOVER=on)

            (DESCRIPTION=
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_1)(PORT=1521))
            (ADDRESS=(PROTOCOL=tcp)(HOST=PROD_DB_2)(PORT=1521))
            )
            (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
            )

            (DESCRIPTION=
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_1)(PORT=1521))
            (ADDRESS=(PROTOCOL=tcp)(HOST=DR_DB_2)(PORT=1521))
            )
            (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice))
            )

            )


            When you try to connect using the service myservice, and your client tries the first entry (old primary, currently standby), the listener refuses the connection as there will be no myservice service running at that site, and your client tries the next available address.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jun 5 '17 at 8:36

























            answered Jun 5 '17 at 8:09









            Balazs PappBalazs Papp

            26.6k2931




            26.6k2931













            • I wanted to mark this as the answer, but I want to test it first. However, our customer doesn't want to have the same service name for the primary and standby databases. I may be able to use this on my next project, but for now I will settle with application reconfiguration during DR (which is what they want). Thank you for your answer.

              – Derek Carlos
              Jul 4 '17 at 23:38



















            • I wanted to mark this as the answer, but I want to test it first. However, our customer doesn't want to have the same service name for the primary and standby databases. I may be able to use this on my next project, but for now I will settle with application reconfiguration during DR (which is what they want). Thank you for your answer.

              – Derek Carlos
              Jul 4 '17 at 23:38

















            I wanted to mark this as the answer, but I want to test it first. However, our customer doesn't want to have the same service name for the primary and standby databases. I may be able to use this on my next project, but for now I will settle with application reconfiguration during DR (which is what they want). Thank you for your answer.

            – Derek Carlos
            Jul 4 '17 at 23:38





            I wanted to mark this as the answer, but I want to test it first. However, our customer doesn't want to have the same service name for the primary and standby databases. I may be able to use this on my next project, but for now I will settle with application reconfiguration during DR (which is what they want). Thank you for your answer.

            – Derek Carlos
            Jul 4 '17 at 23:38













            0














            Below is the sample Oracle net alias configuration for rac db on both in primary and in DR site. I don't see any issues on your netalias configuration but i wonder why don't you use SCAN names/VIP instead using hostname.



            can you try with below configuration and update us.



            SALES=
            (DESCRIPTION_LIST=
            (LOAD_BALANCE=off)
            (FAILOVER=on)
            (DESCRIPTION= (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=TCP)(HOST=prmy-scan)(PORT=1521)))
            (CONNECT_DATA=(SERVICE_NAME=oltpworkload)))
            (DESCRIPTION=
            (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=TCP)(HOST=stby-scan)(PORT=1521)))
            (CONNECT_DATA=(SERVICE_NAME=oltpworkload))))





            share|improve this answer


























            • Thanks for your reply. I tried your recommendation, but it returns the same error (ORA-01033). Could it be a problem with the Listener configuration?

              – Derek Carlos
              Jun 5 '17 at 6:14













            • can you provide us the below details, 1. lsnrctl services (from DR) 2. tnsping <service_name>

              – Dineshkumar Natarajan
              Jun 5 '17 at 7:18


















            0














            Below is the sample Oracle net alias configuration for rac db on both in primary and in DR site. I don't see any issues on your netalias configuration but i wonder why don't you use SCAN names/VIP instead using hostname.



            can you try with below configuration and update us.



            SALES=
            (DESCRIPTION_LIST=
            (LOAD_BALANCE=off)
            (FAILOVER=on)
            (DESCRIPTION= (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=TCP)(HOST=prmy-scan)(PORT=1521)))
            (CONNECT_DATA=(SERVICE_NAME=oltpworkload)))
            (DESCRIPTION=
            (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=TCP)(HOST=stby-scan)(PORT=1521)))
            (CONNECT_DATA=(SERVICE_NAME=oltpworkload))))





            share|improve this answer


























            • Thanks for your reply. I tried your recommendation, but it returns the same error (ORA-01033). Could it be a problem with the Listener configuration?

              – Derek Carlos
              Jun 5 '17 at 6:14













            • can you provide us the below details, 1. lsnrctl services (from DR) 2. tnsping <service_name>

              – Dineshkumar Natarajan
              Jun 5 '17 at 7:18
















            0












            0








            0







            Below is the sample Oracle net alias configuration for rac db on both in primary and in DR site. I don't see any issues on your netalias configuration but i wonder why don't you use SCAN names/VIP instead using hostname.



            can you try with below configuration and update us.



            SALES=
            (DESCRIPTION_LIST=
            (LOAD_BALANCE=off)
            (FAILOVER=on)
            (DESCRIPTION= (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=TCP)(HOST=prmy-scan)(PORT=1521)))
            (CONNECT_DATA=(SERVICE_NAME=oltpworkload)))
            (DESCRIPTION=
            (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=TCP)(HOST=stby-scan)(PORT=1521)))
            (CONNECT_DATA=(SERVICE_NAME=oltpworkload))))





            share|improve this answer















            Below is the sample Oracle net alias configuration for rac db on both in primary and in DR site. I don't see any issues on your netalias configuration but i wonder why don't you use SCAN names/VIP instead using hostname.



            can you try with below configuration and update us.



            SALES=
            (DESCRIPTION_LIST=
            (LOAD_BALANCE=off)
            (FAILOVER=on)
            (DESCRIPTION= (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=TCP)(HOST=prmy-scan)(PORT=1521)))
            (CONNECT_DATA=(SERVICE_NAME=oltpworkload)))
            (DESCRIPTION=
            (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)
            (ADDRESS_LIST=
            (LOAD_BALANCE=on)
            (ADDRESS=(PROTOCOL=TCP)(HOST=stby-scan)(PORT=1521)))
            (CONNECT_DATA=(SERVICE_NAME=oltpworkload))))






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jun 5 '17 at 6:15









            joanolo

            9,81342153




            9,81342153










            answered Jun 5 '17 at 3:35









            Dineshkumar NatarajanDineshkumar Natarajan

            111




            111













            • Thanks for your reply. I tried your recommendation, but it returns the same error (ORA-01033). Could it be a problem with the Listener configuration?

              – Derek Carlos
              Jun 5 '17 at 6:14













            • can you provide us the below details, 1. lsnrctl services (from DR) 2. tnsping <service_name>

              – Dineshkumar Natarajan
              Jun 5 '17 at 7:18





















            • Thanks for your reply. I tried your recommendation, but it returns the same error (ORA-01033). Could it be a problem with the Listener configuration?

              – Derek Carlos
              Jun 5 '17 at 6:14













            • can you provide us the below details, 1. lsnrctl services (from DR) 2. tnsping <service_name>

              – Dineshkumar Natarajan
              Jun 5 '17 at 7:18



















            Thanks for your reply. I tried your recommendation, but it returns the same error (ORA-01033). Could it be a problem with the Listener configuration?

            – Derek Carlos
            Jun 5 '17 at 6:14







            Thanks for your reply. I tried your recommendation, but it returns the same error (ORA-01033). Could it be a problem with the Listener configuration?

            – Derek Carlos
            Jun 5 '17 at 6:14















            can you provide us the below details, 1. lsnrctl services (from DR) 2. tnsping <service_name>

            – Dineshkumar Natarajan
            Jun 5 '17 at 7:18







            can you provide us the below details, 1. lsnrctl services (from DR) 2. tnsping <service_name>

            – Dineshkumar Natarajan
            Jun 5 '17 at 7:18













            0














            I have the exact same issue. We have OIM 11gr2PS3 app and 2 node rac DB cluster. When I switchover from primary to sandby and then try to bring up Admin server it throws error "ORA-01033: ORACLE initialization or shutdown in progress" because admin server is still trying to old primary and current/new standby.



            I have tried so many different things but no luck so far. I am wondering if someone resolved this and can give me a clue or direction to resolve it.



            We are approaching to Go-Live dead line and it is becoming very critical now. So it would really be a great help if someone can provide some assistance here please.





            share








            New contributor




            jawad hafeez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              I have the exact same issue. We have OIM 11gr2PS3 app and 2 node rac DB cluster. When I switchover from primary to sandby and then try to bring up Admin server it throws error "ORA-01033: ORACLE initialization or shutdown in progress" because admin server is still trying to old primary and current/new standby.



              I have tried so many different things but no luck so far. I am wondering if someone resolved this and can give me a clue or direction to resolve it.



              We are approaching to Go-Live dead line and it is becoming very critical now. So it would really be a great help if someone can provide some assistance here please.





              share








              New contributor




              jawad hafeez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                I have the exact same issue. We have OIM 11gr2PS3 app and 2 node rac DB cluster. When I switchover from primary to sandby and then try to bring up Admin server it throws error "ORA-01033: ORACLE initialization or shutdown in progress" because admin server is still trying to old primary and current/new standby.



                I have tried so many different things but no luck so far. I am wondering if someone resolved this and can give me a clue or direction to resolve it.



                We are approaching to Go-Live dead line and it is becoming very critical now. So it would really be a great help if someone can provide some assistance here please.





                share








                New contributor




                jawad hafeez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                I have the exact same issue. We have OIM 11gr2PS3 app and 2 node rac DB cluster. When I switchover from primary to sandby and then try to bring up Admin server it throws error "ORA-01033: ORACLE initialization or shutdown in progress" because admin server is still trying to old primary and current/new standby.



                I have tried so many different things but no luck so far. I am wondering if someone resolved this and can give me a clue or direction to resolve it.



                We are approaching to Go-Live dead line and it is becoming very critical now. So it would really be a great help if someone can provide some assistance here please.






                share








                New contributor




                jawad hafeez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                share


                share






                New contributor




                jawad hafeez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 1 min ago









                jawad hafeezjawad hafeez

                1




                1




                New contributor




                jawad hafeez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                jawad hafeez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                jawad hafeez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Database Administrators Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f175391%2fjdbc-connection-on-current-primary-database-after-switchover-ora-01033-encounte%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Parapolítica Índice Antecedentes El escándalo Proceso judicial Consecuencias Véase...

                    How to remove border from elements in the last row?Targeting flex items on the last rowHow to vertically wrap...

                    Tecnologías entrañables Índice Antecedentes Desarrollo Tecnologías Entrañables en la...