Why does it login to another database spontanously?

I got three databases created on the same machine under the single Ora9i.
And when I do below, it goes as you see.
And my question is, why it login me to PLM when I do 'connect /as sysdba'? I would expect to login GTP as well.
is it normal or it is due to wrong configuration?
Any opinions are welcomed!
C:\Documents and Settings\e501967>sqlplus system/[email protected]
SQL*Plus: Release 9.2.0.1.0 - Production on Thu Sep 24 11:49:03 2009
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Connected to:
Oracle9i Release 9.2.0.1.0 - Production
JServer Release 9.2.0.1.0 - Production
SQL> l
SP2-0223: No lines in SQL buffer.
SQL> select name from v$database;
NAME
GTP
SQL> disconnect
Disconnected from Oracle9i Release 9.2.0.1.0 - Production
JServer Release 9.2.0.1.0 - Production
SQL> connect /as sysdba
Connected.
SQL> l
  1* select name from v$database
SQL> /
NAME
PLM
SQL> disconnect
Disconnected from Oracle9i Release 9.2.0.1.0 - Production
JServer Release 9.2.0.1.0 - Production
SQL> connect /@GTP.CORP.STATESTR.COM as sysdba
Connected.
SQL> l
  1* select name from v$database
SQL> /
NAME
GTP
SQL>

Hi,
connect /as sysdbaDid you meant that if you use above command to connect to database you always login to PLM and not GTP.
If yes then its because your ORACLE_SID is set to PLM
You can get as well as set the value of ORACLE_SID using
set ORACLE_SID
set ORACLE_SID=GTPIf this is not what you intend to meant, then can you please explain your query once again.
Regards
Anurag Tibrewal

Similar Messages

  • Why does my login screen when scrolling mouse over appear pixalated (has small squares wherver the mouse scrolls until the entire page has been scratched like a lotto ticket:) ?

    Why does my login screen when scrolling mouse over appear pixalated (has small squares wherver the mouse scrolls until the entire page has been scratched like a lotto ticket:) ?

    OS X Lion: Login window partially appears, cursor movement redraws screen

  • Why does my latest generation ipod nano spontaneously change songs

    Why does my latest generation ipod nano spontaneously change songs and what can I do to control or prevent it?

    Seems logical and likely to fix it.  Have 3 locations where it was happening and will test and get you your ten points if all tests well.  Thanks.

  • Why does a Login Error occur: "AFP Client wants to use Keychain Login"?

    I have three people in my house with separate logins. We are currently using two desktop G4s which are networked via 1000 Base T. When the users login to one of the Macs, they must enter their passwords twice. Once for the AppleShare login and then a second time for the KeyChain Login.
    If I attempt to unify the passwords, which are exactly the same, I will get a login error: "AFP Client wants to use Keychain Login". At this point, a dialogue box will appear looking for a password, but not accepting any kind of text at all. All I can do is reset the Mac, go into my admin login and remove the login.keychain file from the local Library folder to get back into the User account.
    In my attempts to fix this, I have removed every preference file with the word "login" in it and re-logged in without success. I have also used the Keychain Access software to administer Keychain First Aid without success. Finally, I have deleted the keychain login in Keychain Access without success. I have done all of these separately and together without success.
    This is only happening on one Mac. The Mac that has no files on it. All working files are stored on the other Mac and it does not have the same problem at all.
    This is not a huge problem, but it is annoying. I would appreciate it if anybody knows anything about this and could shine some light on the situation.

    Sorry about the delay from your last reply. I have been busy with work and studying for a licensing exam.
    Anyway I tried the AppleJack Utility you suggested. It looked like it tidied up some things. But as for my particular issue, it did absolutely nothing.
    Interestingly enough, you know when you aren't looking for something and that something just happens by accident? When I logged in the other day, I typed in the first login. The second dialogue came up immediately and I hit the cancel button instead of the OK button. When I was passed on to the Finder, the second login dialogue came up again. I typed in the password this time and checked the checkbox. When I relogged in, the problem vanished. I only waited this long to let you know to make sure the problem is gone and it is. I wish I would have thought of selecting the cancel button before. Sometimes solutions are simple like this one.
    Thanks for your help.

  • Why does my login panel resize?

    Hi,
    This is probably a basic problem. So please bear with me.
    I'm making an application and Applet, where the user needs to log in. I created a Frame, that scales to cover the whole screen.
         dimension = Toolkit.getDefaultToolkit().getScreenSize();
         setBounds (0, 0, dimension.width, dimension.height);After the Frame is created, I create a JPanel in it, where the user needs to enter username and password. And as users go, they will make errors, so I have to add functionality to check on
    1. Are username and password filled in
    2. Can username and password be used to authenticate
    So I need to draw that JPanel a few times. And there it goes wrong. So my question is, can you help me with my JPanel.
       // Constructor
       public LogInPanel () {
          width = 450;
          height = 350;
          // Create error label and set its colour
          errorLabel = new JLabel ("Fill in both fields", SwingConstants.LEFT);
          errorLabel.setForeground(Color.RED);
          setLayout(new GridLayout (4, 2)); // 4 rows, 2 columns
          setUp();
       public void actionPerformed(ActionEvent event) {
              command = event.getActionCommand();
              if (OK.equals(command)) {
                   //Process the user name and password.
                   userName = userNameField.getText();
                   password = passwordField.getPassword();
                   isError = ((userName.length() == 0) || (password.length ==0));
              if (!isError) {
                   // TODO: Authenticate with system
              else {
                   // Error condition, either user name or error not filled in. Do setUp() again.
                   setUp();
        private void setUp () {
            // Set the size and location of this panel
            setBounds (width, height, width, height);
             // User name label and text field
             add (unameLabel);
             add (userNameField);
             // Password label and text field
             add(passLabel);
             add(passwordField);
             // Create okButton and add it to the layout
             JComponent okButton = createButtonPanel();
             add(okButton);
             // An empty panel to fill up the empty spot after the button
             JPanel emptyPanel = new JPanel();
             emptyPanel.setBackground(Color.WHITE);
            if (isError) {
                add(errorLabel);
            setSize(dimension.width/3, dimension.height/3);
            setVisible (true);
        private JComponent createButtonPanel() {
            JPanel panel = new JPanel(new GridLayout(0,1));
            JButton okButton = new JButton("OK");
            okButton.setActionCommand(OK);
            okButton.addActionListener(this);
            panel.add(okButton);
            return panel;
        }When I run the code I get the following LoginPanel displayed
    |Username: | "userNameField"       |
    |Password: | "add(passwordField)"  |
    |OKbutton  |emptyPanel             |
    |Nothing yet                       |
    ------------------------------------And as I emulate a stupid user, I directly press the OK button. What happens now is that my LoginPanel moves up a few lines, and increases four times (2x in width, 2x in height), to something like:
    |Username: | "userNameField"                                           |
    |Password: | "add(passwordField)"                                      |
    |OKbutton  |emptyPanel                                                 |
    |No error message!                                                     |
    |                                                                      |
    |                                                                      |
    |                                                                      |
    |                                                                      |
    |                                                                      |
    ------------------------------------------------------------------------And I can't find the reason for that behaviour. So hopefully you see it. And if so, do tell.
    TIA,
    Abel

    without your code, I can't tell why you are having this behavior, however I can tell you that when I've done something like this, I've done it differently. For one, I don't recreate the JPanel but rather I show a JOptionPane.showMessage(....) error message over the panel, the erase the JPanel's fields and set focus where I want it after the JOptionPane has been dealt with. This is simpler than your current plan and thus less likely to blow-up.

  • Why does my ipod touch 5th generation spontaneously turn off

    My iPod touch 5th gen recently did the latest software update, just yesterday. Then this morning, while battery was fully charged, it spontaneously turned off. I had just looked at my email like 2 minutes previously, then when I picked it up again and hit the home butten, nothing. It had turn off and we had to do the reset by holdint the home button and power button at the same time to get it to turn on.  Is this a software update glitch?  It has never done this before. Or is there something wrong with my iPod?

    Things like that just happen some times.  If it recurs
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.

  • Re: Why does macbook air go to sleep spontaneously?

    THE PROBLEM IS BACK
    Two days ago, the Macbook Air went to sleep spontaneously while my hand was on the trackpad.
    Today, a Safari window spontaneously Zoomed In to where all the content could not be read. Zooming Out 5 times did reduce the content size, but it was still larger than before the Zoom In.
    I've made a note of the time. Perhaps Apple can find somthing in the log to figure it out.

    Which OS version are you running on your machine? When did this start?

  • Why does my login screen act funny

    When I turn on my macbook pro it goes to the log on screen. When I getto the logon screen it is blank but when i move my mouse around it erases the blank screen like on some paint program. I am running Lion.

    OS X Lion: Login window partially appears, cursor movement redraws screen

  • HT204380 why does the camera in my itouch spontaneously closes after a few seconds of opening it? there was this time that I used facetime and it became freakishly hot and then after that, I tried to open my camera but quickly closed by itself.

    there was this time that I tried to use my facetime for a long time. Then after using it, it became very hot all over from the back till front. Then when I tried to open the camera function, it only went to the part where it shows the gray spiral covers without actually going to the actual camera then it went completely black and it went to home. The camera closes on its own now and i cant use it.

    1. Double-click the Home button to reveal Task Bar at bottom
    2. Hold the FaceTime/Camera app down for a second or two until you see the minus sign
    3. Tap the minus sign to close app
    4. Re-launch the app and test
    Note: If necessary close all apps in the Task Bar

  • Why does macbook air go to sleep spontaneously?

    My Macbook Air 13" goes to sleep spontaneoully while I'm working on it.

    I read that placing an iPad on the right of a Macbook can cause the latter to sleep.
    "One notable area where Apple has made use of this technology is in its MacBook laptops, where magnets and magnetic sensors in the chassis and lid bezel activate when in close contact, so the system will automatically go to … "

  • Why does iPhone iTunes shuffle engage spontaneously

    Why does iPhone 4 iTunes shuffle engage spontaneously.  I change the position of the shuffle and it turns itslef back on in the middle of songs.

    Probably because you have Shake to Shuffle enabled in the Music settings.

  • Why does iMessage open when I"m chatting in google?

    Why does the login to iMessage window open up when I'm chatting through gmail?

    Hi,
    By default the first thing the Messages app asks you to do is enter an Apple ID to use for the iMessages account.
    You can ignore this and use the set up to add other accounts (or use the System Preferences > Internet Accounts to enable them).
    If it is not already, I would go to Messages Menu > Preferences > Accounts and in the iMessages account untick the box for "Enable this Account" even if it does not have an Apple ID.
    9:22 pm      Monday; February 3, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Why does my iMessage stop working

    Why does my login disappear when I try to enter my password?  I start entering then it just diappears

    Hi,
    iPhone or Mac ?
    You have posted in a Mac forum but only list an iPhone.
    Can you give us step by step details about where you are looking as I am not familiar with the actions you are reporting.
    9:21 PM      Wednesday; June 4, 2014
     iMac (Mavericks 10.9.x)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),

  • Why the account login list does not show up on menu bar?

    I see bunch of other icons including Bluetooth in Tiger on my Intel Mac mini, but somehow the list of accounts disseapared. I have that on my PowerMac Tiger and did exist from the the day I upgraded to Panther, but why it does not show up in Tiger?
    Any idea how to bring accounts so I could login to another and have that turning 3D screen and changing to another account?
    Thanks,
    Maciek

    Open the Accounts pane of System Preferences and turn
    on Fast User Switching if it isn't already on.
    (11071)
    It worked fine. Thanks a lot!
    One more note to the tip: it required to unlock the padlock as administrator and then select Login Options below list of users. Otherwise the option does not show anywhere.
    Maciek

  • When i login to yahoo, my first click results in the spinning wheel. Could i have a virus Or why does it only happen when i login to yahoo?

    When i login to yahoo, my first click results in the spinning wheel. Could i have a virus? Or why does it only happen when i login to yahoo?

    Firefox allows to select part of a word. You can select a word with a double click and use Shift + left click to set the end of the selection, so you need to click at the end of the last word instead of in it.

Maybe you are looking for

  • I have BIS but can't send/receive email, surf with internet browser

    i have BB Curve 8520. My BIS was running smoothly (sending and receiving emails real time and surfing the net through BIS), until i noticed when i tried to reply to an email that came in, it won't send. i noticed that it's fluctuating. i was able to

  • Urgent :ALV layout change not  working

    hi experts, i copied the tcode FBL5N into ztcode. added some more fields to the ALV output. using GUI STATUS 'ALV_ITEMS_AR' when i select the change layout from using application button, added some more columns. Data is picking correctly, but i dont

  • How do i install a brother printer on macbook

    How can i install a Brother Printer on a MacBook I do not know the IP address of the printer i have tried installing the Brother software but nothing seems to work

  • What exception should I use?

    Hi, all: I am trying to learn how to use Exceptions, and I'd like some advice: in the network I'm creating, each node should have 4 edges--one to each neighbor in the north, south, east, and west. I want to create an exception if a given node has mor

  • In the open item lists for deliveries they go out though are closed

    En las listas de partidas pendientes para las entregas que salen cuando están cerradas Deliveries closed but still show on the Open Item Lists, something would be wrong. It is this what happens to me can you solve it like?