Can't access an ORACLE db on Windows via setting %ORACLE_SID%

Hello!
I'm pretty new to ORACLE on Windows (I'm a UNIX person), so I would appreciate any help I can get! I have two ORACLE 11.2.0.1 databases on a Windows 2008 R2 server. One of the databases crashed due to too many archive logs in flash recovery area (the RMAN backup I put together was never scheduled by the sysadmin). I removed all old archive logs and am trying to log into the database to clean it up but I can't get in. Changing %ORACLE_SID% doesn't seem to work:
C:\Users\kcoachman>set %ORACLE_SID%=test <== this is the database which is up with no issues
C:\Users\kcoachman>set %ORACLE_SID%
%ORACLE_SID%=test
C:\Users\kcoachman>set %ORACLE_HOME%
%ORACLE_HOME%=F:\app\wcadmin\product\11.2.0\dbhome_1
C:\Users\kcoachman>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Feb 28 12:20:48 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
SQL> select name from v$database;
NAME
TEST
SQL> exit
Disconnected from Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
C:\Users\kcoachman>set %ORACLE_SID%=abat <== this is the database which crashed
C:\Users\kcoachman>set %ORACLE_SID%
%ORACLE_SID%=abat
C:\Users\kcoachman>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Feb 28 12:21:07 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
SQL> select name from v$database;
NAME
TEST <== what? I'm still in TEST!
SQL> exit
Disconnected from Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
Changing %ORACLE_SID% worked fine before the database crashed. Also I have another server with 3 ORACLE Databases, no problems going from one database to another via changing %ORACLE_SID%... Has anyone seen this before and how do I get into the database to fix it?
Thank you!
Katya

On Windows, you don't set ORACLE_HOME as environment variable directly. You set PATH and rest of env is setup via oracle.key file and Registry variables/values.
To "see" this, open a new command window, run sqlplus (found via PATH setting, or explicit path in command line), and check %oracle_home% and %oracle_sid% inside sqlplus. E.g. using @[[%oracle_sid%]].
For the attempt to set ORACLE_SID for the "second" instance, within the same Home. You actually set a variable named %ORACLE_SID%. Which can be tricky, if not dangerous (allowing % in variable names, that is).
C:\>set ora
Environment variable ora not defined
C:\>set %ora
Environment variable %ora not defined
C:\>set | findstr /i "ora"
C:\>set %ora%=test1
C:\>set ora=test2
C:\>set | findstr /i "ora"
%ora%=test1
ora=test2
C:\>set %ora%=test3
C:\>set | findstr /i "ora"
%ora%=test1
ora=test2
C:\>set | findstr /i "test"
%ora%=test1
ora=test2
test2=test3Edited by: orafad on Feb 28, 2013 10:41 PM
Edited by: orafad on Feb 28, 2013 10:47 PM

Similar Messages

  • I can't access iTunes store on my Windows desktop since yesterday.

    I got a new Windows 7 allienware desktop this week, and I installed iTunes at the first time. I can access iTunes store via the software at the first day I installed, but I can't access iTunes store on my Windows desktop since yesterday. It always says there is a problem and I need to close iTunes when I try to access iTunes store. I tried to uninst all the related files of iTunes and reinstalled, but it still donesn't work. Now I can't download anything via my new desktop. What should I do to fix it?

    Looks like we are not alone...... Must be some problem with the software! Hope it can be solved soon!

  • Can you access non-Oracle database with HTML DB?

    Can you access non-Oracle database with HTML DB? If not, will this be possible in the future?
    I realize HTML DB is not an open-source product. However, it is necessary sometimes to get non-Oracle database info. JDeveloper supports this. It does not appear to me that HTML DB does. This is a major drawback to it being a product for more potential applications that rely on other database technology such as MySQL, etc.
    If it is possible, is this brain surgery to do it. HTML DB offers fast simplified development and it would be good if it was built in. Does anyone know of an example of accessing non-Oracle database that is available?

    12282,
    In general, HTML DB gives you access to Oracle database facilities. These include heterogeneous services. Please search this forum for keyword "heterogeneous" and you can follow the threads that interest you.
    As for the comparison with brain surgery, I'd rank them about the same in terms of raw thrill.
    Scott

  • HT5610 I can't access the itunes store in windows 8.

    I can't access the itunes store in windows 8. An error message appears that syas itunes has stopped working and I should close the program. Has anyone experienced this issue and what can I do to resolve it.

    Hi dear's
    Here are some steps to resolve this issue:
    1) Sign out of your iTunes Store account
    2) Close iTunes
    3) Restart your computer
    4) Reset Cache*
    *From iTunes, look at the top of the page and select "iTunes", choose "Preferences", then select "Advanced" and click "Reset Cache".

  • How can I access the iphoto library using windows pc? Upgrading to aperture solves my problem?

    How can I access the iphoto library using windows pc? Upgrading to aperture solves my problem?
    My home network is used both by my macbook and my wife's windows pc. Considering that, I would like to know if we can share our pictures with each other (specially because I intend to store all of them into a NAS storage - WD My Cloud, probably).

    No you can not - neither iPhoto nor Aperture has any cross platform capability
    You can share photos with the PC using MyPhotoStream or Shared PhotoStreames
    You can not share the iPhoto library
    And you can not put the iPHoto library on a NAS - it MUST always be on a volume formatted Mac OS extended (journaled) and mube on a fast wired local connection - it can not be on a Network
    There are Digital Asset Managers that can do what you want - iPhoto and Aperture can not
    LN

  • My i phone is left somewhere,can i access my photo stream on windows pc

    My i phone is left somewhere,can i access my photo stream on windows pc.please help...

    Yes if you have Photo Stream enabled with your iCloud account settings on your PC.
    http://support.apple.com/kb/ht4486

  • Can't Access One of My Network Computers via Windows (File) Explorer

    I've just installed a new router (Linksys EA3500 Dual Band) to replace my old (Linksys WRT100), but can't imagine how that could cause this trouble, except that prior to installing the new router, all worked properly.  I have three Workgroup computers
    on my network, one running Win 7 Ultimate 64bit (call it Tower-755, an older laptop upstairs running Win 7 Pro 32bit (call it MommaDell), and a super laptop running Win 7 Pro 64bit (Call it M6600).  On Tower-755 I have a mirrored Raid1 drive - call
    it Z: - that I share over the net (i.e. Everyone = Read/Write).
    Since installing the new router, when I open File Explorer on M6600 or MommaDell, I can see - in the search pane (under Network) - all three computers, and when I click on MommaDell, its shared folder is accessible, but when I click on Tower-755
    I get an error saying, "Windows cannot access
    \\Tower-755, yet I can ping it successfully from a command prompt.
    However, when I open File Explorer on Tower-755, although I can see all three computers in the search pane (under Network), I can't access any of the three (including Tower-755 itself); I get the same error message, although I CAN ping them from a command
    prompt.
    Also, and I'm not sure if this related, in the search pane under HomeGroup on all three computers, I can only see MommaDell.
    I've checked and double checked all my router settings, including the IP Address range (192.168.1.2 - 51).  I also have a Domain Controller server with two joined workstations on the net, so I have a static IP in order to be able to access the server
    and/or workstations remotely when we travel.
    That's my story and I'm stuck with it, but I'd sure be grateful for any help with this mess.
    Capt. Dinosaur

    Hi Capt,
    In order to help you analyze your issue, we need confirm some situations.
    1. Did these 3 computers all join the same HomeGroup or Workgroup?
    Yes
    2. Domain Controller server with two joined workstations you mentioned, did it mean two of these 3 computer joined the domain environment?
    No.  Those are separate computers in their own domain, just using the same network.
    3. Did you ping via IP address or computer name?
    Both, but this morning something is different. 
      a.  MommaDell and M6600 can ping each other both by IP and Name, but can't ping Tower-755 either way.
      b.  Tower CAN ping both MommaDell and M6600 both ways.
    According to your description,
    Tower cannot ping MommaDell and M6600.
    No, Tower CAN ping both MommaDell AND M6600 both by ip and name.
    MommaDell can ping Tower.
    M6600 can ping Tower.
    Both of the above was true yesterday, but not this morning.
    Please check if MommaDell and M6600 could ping each other.
    Yes they can
    And make sure all of them turn on the network discovery and turn off the firewall temporarily for test:
    Network Discovery is ON in all three machines, and Windows firewall is always off because I have ZoneAlarm on all three machines.
    Enable or disable network discovery
    Which?
    http://windows.microsoft.com/en-in/windows/enable-disable-network-discovery#1TC=windows-7
    If it doesn't resolve, please post every computer's ipconfig /all output here for analysis.
    it's 7:30 and I have to be out until 2:30.  I'll do the posting then, and thanks for the help.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Capt. Dinosaur

  • Can't access iPod classic 160GB in Windows and iTunes

    Hello,
    after connecting my iPod classic 160GB to computer with Windows Vista I can see it in My Computer but can't access it. In iTunes 10 it not appear and every access via My Computer takes many time. After disconecting iPod is restarting by itself...
    But iPod itself is working - a little laggy, but working. One thing changes: about 80GB free space disappear and iPod tells me that only 153KB is free...
    I suppose disk failure - how can I access it and repair?

    Everything that was on your classic should also have been in your library, and that backed up to another drive. If you manually managed the device, and it was the only location holding your media, and it has become corrupted, there really isn't much hope. See Corrupt iPod classic. There may be a slim chance to recover media stored on it via disc mode if is isn't stored elsewhere, but if it won't mount, or has been reformatted, then the moment has probably passed.
    tt2

  • Can i access the Oracle Demand Planning Cubes using the AWM?

    Hi All,
    Is it possible to access the Oracle Demand planning data which is stored as Express server using the Analytic workspace manager?
    Any information regarding this is really appreciated.

    Abdul Hafeez,
    Is ODP using Express Server or Oracle OLAP Analytical workspaces?
    If Express Server is being used by ODP, then you cannot create sql views for OBIEE.
    If Oracle database is being used for ODP data, then it is storing the data in Analytical workspaces. In that case, you can manually create OLAP views using OLAP_TABLE function. To do that, you will first have to know all the required structures inside the Analytical workspaces. Without that knowledge, you will not know what olap structures to "expose" in the OLAP views.
    You can read about OLAP_TABLE function from Oracle 10g documentation http://download.oracle.com/docs/cd/B19306_01/olap.102/b14350/olap_table.htm
    If you are using 9i database for ODP, then read about OLAP_TABLE function from 9i documentation http://download.oracle.com/docs/cd/B10501_01/olap.920/a95295/olap_tab.htm
    - Nasar

  • Problem updating itunes, now I can not access, Runtime error R6034 using windows 7

    I need some assistance.
    I am trying to update itunes on my computer. I am getting a message which reads: errors occurred while installing the updates.
    I can not access itunes at all now.
    Also i am getting an error when I open windows which reads:
    Runtime Error!
    an application has made an attempt to load the C runtime library incorrectly.
    please contact the applications support team for more information.
    How do I fix this?

    Hello there, Duane Harris.
    The following Knowledge Base article provides in-depth troubleshooting steps for resolving your issue:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Can't access my iMac from a Windows 98 PC

    When I was prompted for password on the PC running Win 98, I simply clicked "OK" as I had not set any user password on my iMac. However, I got the "wrong password" message and therefore failed to access my iMac from that PC.
    On the PC, I could ping the iMac without problems. I can also access the PC from my iMac. I have the username on the PC that is exactly the same as the one I have enable "Windows Sharing".
    Any clues on this?

    Thanks James.
    I tried but without luck. The issue is, it prompts me for password and whatever I input, it says wrong password. In fact, I do not have any password set on my iMac and therefore I should be let through if I simply click the "OK" button on the password dialog without putting anything in the password field.

  • Can;t access Touchpad Settings - Just installed Windows 10 Pro

    I just installed Windows 10 Pro and can't access my touchpad settings to get the scolling feature back.  A short while ago, when I connected my basic Microsoft mouse, the system did install a new driver for the mouse - could this be the problem? Or is it Windows 10?  Thanks for any help you can give. Toshiba Laptop Satellite C55-B
    Windows 10 ProTouchpad Driver : 19.0.16.3 7/21/2015 SynapticsMouse Driver: Microsoft 9.5.172.0

    I had the same problem. The settings would crash. The synaptics driver update fixed that for me. However after adjusting some settings a new problem emerged. Three Finger Gestures have changed from the default Windows 10 ones to the old Synaptics gestures. There doesn't seem to be a way to change it back. I think the Synaptics driver needs another update.

  • Where can i get personal oracle 7 for windows

    Where can i get personal oracle 7 for windows

    Thanks.
    I tried password like system/manager, scott/tiger, or manager , tiger, oracle, but still can't log on.
    Xiaowei

  • Can not Access disk drive attached to WRT350N via an FTP client

    Background
     I have a WRT350N v1 running the most current firmware. I have a static IP address for the WRT350N and I can ping it over the internet.  I have a disk drive attached to the 350N with a FAT32 partition that has been set up for shared access for a selected group and user. I have worked with cicso/linksys support to verify the linksys350N is set up correctly (?).
    Problem
    I can not access the disk drive attached to the WRT350N via an FTP client. I have tried the following FTP Clients: Transmit and Filezilla.  I get a "Connection established, waiting for welcome message...' message on the FTP client. Then it says Connect timeout, Can not connect to server. I CAN connect to other FTP sites so its not the FTP client software.
    What I have done so far
    1. deleted the old  and added a new FTP group and user
    2.  unplugged and reconnected my WRT350N and my cable modem
    3. Contacted Cisco/linksys support on-line and they verified my setup and can ping my 350N but thats as far as they are willing to help
    I haven' a clue as to what to do next. Any and all help is greatly appreciated. 

    Access your router set-up and make sure you have :
    1. Enabled FTP Server and Internet Access under the FTP Server subtab under Storage...
    2. Reduced the MTU size to 1300 under SetUp...
    3. Unchecked Filter Anonymous Internet Requests...
    If you have done all this and nothing works, then, you need to upgrade your router's firmware and re-configure your router and then enter the settings...
    Download Firmware 3.23 MB...
    Follow these steps to upgrade the firmware on the device : -
    Open an Internet Explorer browser page on a computer hard wired to the router...
    In the address bar type - 192.168.1.1...Leave the username blank & in password use admin in lower case...
    Click on the 'Administration' tab- Then click on the 'Firmware Upgrade' sub tab- Here click on 'Browse' and browse the .bin firmware file and click on "Upgrade"...
    Wait for few seconds until it shows that "Upgrade is successful"  After the firmware upgrade, click on "Reboot" and you will be returned back to the same page OR it will say "Page cannot be displayed".
    Now reset your router :
    Press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router...
    1. Enable FTP Server and Internet Access under the FTP Server subtab under Storage...
    2. Reduce the MTU size to 1300 under SetUp...3. Uncheck Filter Anonymous Internet Requests...See if this works for you...

  • How can I access the oracle/sql server jdbc driver class files from my cust

    I have a war file in which I have custom DataSource i.e mypackage.Datasource class. Its basically the need of my application. In this class we connect to datasource and link some of our programming artifacts .
    I have deployed the oracle jdbc driver and deploy my application as ear with datasources.xml in the meta inf file. Inspite of that my code fails to load the jdbc driver classes.
    Here is the extract of the code :
            Class.forName("oracle.jdbc.OracleDriver").newInstance();
             String url = "jdbc:oracle:thin:@dataserver:1521:orcl";
            Connection conn = DriverManager.getConnection(url, "weblims3", "labware");
            if(conn != null){
              out.println("the connection to the database have been achieved");
            out.println("conn object achived= " + conn);
    Class.forname fails in this case. I can see the ojdbc5.jar the driver jar in usr\sap\CE1\J00\j2ee\cluster\bin\ext\ojdbc5  . I even put the ojdbc.jar in web-inf/lib and application lib but does not help at all. Hope I have explained my problem clearly.
    I deployed the jdbc driver in the name of ojdbc5 .
    I am stuck here. It will be great help if anyone can help me in this. Thanks in advance.

    Bent,
    You can access the database from your Java portlet, just like from any other Java/JSP environment. Yes, you can use JDBC, as well as BC4J.
    The Discussion Forum portlet was built using BC4J, take a look at it's source to see how it was done.
    Also, check out Re: BC4J Java portlet anyone?, it contains a lot of useful information too.
    Peter

Maybe you are looking for