Win2012,oracle11g,sqlplus How to switch instances

Source: Internet
Author: User
Tags sqlplus

Problem Environment : Windows R2 64-bit , Oracle 11.2.0.4, multiple instances .

In this case,

Sqlplus "/as sysdba"

The default login is the one that is installed behind the system, and theoracle_sid configuration is the registry:

Windows default oracle_sid location:

Hkey_local_machine\software\oracle\key_oradb11g_home1

Oracle_sid

If you want to switch to another Oracle switch instance,

Most of the methods found online are: Reset the oracle_sid in the cmd window ,

Set Oracle_sid=xxx

Sqlplus "/as sysdba"

This method is available under Win2003. But not in my environment, still into the default instance.

Workaround: In Sqlplus specified in the command Oracle_sid .

Sqlplus "/as sysdba" into the default Windows default oracle_sid instance

Sqlplus "/@dbsch as SYSDBA", enter the specified oracle_sid instance

Sqlplus "/@ldj as SYSDBA"

<<<<<<<<<<<<<<

Win2012,oracle11g,sqlplus How to switch instances

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.