• Blog
  • Get Help Now!
  • Customer Portal

BlueGecko Denmark

  • Why you need us
    • Why act now
    • Why are we unique
  • What we do
    • Products Supported 24/7
      • MySQL
      • Postgres
      • SQL Server
      • Open Source
      • OS & Storage
  • How we do it
    • Consulting
    • System Monitoring
    • Security
  • Support
    • Blog
      • Oracle
      • MySQL
      • News & Events
      • Oracle Applications
      • Amazon Web Services
      • Jeremiah Wilton’s Oradeblog
      • OurSQL Community Podcast
      • Remote DBA
    • Team viewer
    • Whitepapers
  • About Us
    • Philosophy
    • The Blue Gecko Teams
    • Employment Opportunities
    • Partners
    • News
    • Press
  • Contact Us

August 28, 2013 by jjjensen

12cR1 (12.1.0.1.0) SQL*Plus session switches instance without reconnecting

This blog is about my first installation of Oracle 12c(12.1.0.1.0) on Windows8 and a possible bug I was facing. I have created a Service Request at Oracle Support and they are trying to reproduce with different constallations of Oracle Database software and Windows OS versions.

SR 3-7725167161 : Installing 2nd database with connection to 1st database moves connection to 2nd database

I was installing 12c(12.1.0.1.0) on Windows8 and from the DBCA I created my first instance called ORCLPR.

After the database was created I opened a command prompt, started sqlplus and connected to the newly created database ORCLPR. I then did a shutdown immediate and kept the sqlplus connection running – leaving the command window open. I then started DBCA Again and created my second instance ORCLDR. It completed successfully. I went back to my sqlplus command window and did a startup MOUNT which gave me the error “ORA-01100: database already mounted”. An alter database OPEN resulted in the error “ORA-01531: a database already open by the instance”.

When I executed select * from v$instance the sqlplus session had, to my big surprise, switched over to my newly created ORCLDR instance.

Below a screenshot of my sqlplus session showing the behaviour:

You can reproduce the issue yourself, by folowing the steps 1-7 below.

1: Install 12cR1 (12.1.0.1.0) on Windows7/8 – software installation only
2: Create 1st instance using DBCA
3: Connect to 1st instance using sqlplus and shutdown immediate – leave sqlplus session connected
4: Create 2nd instance using DBCA
5: When 2nd instance is up and running go to the sqlplus session still running
6: Perform “startup mount” – you will then see the error “ORA-01100 database already mounted”
7: Select * from v$instance will show that you now are on the 2nd newly created instance

Filed Under: Oracle

Categories

  • Amazon Web Services
  • Configuration Management
  • downtime
  • Drizzle
  • ebs
  • Education
  • elastic block store
  • elastic compute cloud
  • hosting
  • hot backup
  • ignorance
  • Infrastructure
  • IOUG
  • Jeremiah Wilton's Oradeblog
  • misconception
  • misconceptions
  • Monocle
  • MySQL
  • MySQL Council
  • News
  • News & Events
  • Oracle
  • Oracle APEX
  • Oracle Applications
  • Oracle Data Guard
  • Oracle Database
  • Oracle Database Appliance
  • Oracle Linux
  • Our People
  • OurSQL Community Podcast
  • outage
  • parallel
  • performance
  • podcast
  • proof
  • Remote DBA
  • replication
  • S3
  • Security
  • SQL Server
  • System monitoring
  • Tomcat
  • Uncategorized

Contact Blue Gecko

  • This field is for validation purposes and should be left unchanged.

Get Our Newsletter

  • This field is for validation purposes and should be left unchanged.

The Fine Print

  • Privacy Policy
  • Terms of Use
  • When is remote DBA the right solution
  • What are remote DBA services
  • Get Help

Virtual runs

Blog Categories

  • 24/7 support
  • Blue Gecko 360° Services
  • Products Supported 24/7

Contact Blue Gecko

Blue Gecko A/S
Slotsgade 21
DK – 4200 Slagelse
Denmark
Phone: (DK) +45 70 60 51 20

Networks

  • Email
  • Twitter

© Blue Gecko Group