sqlplus connects well with SID on the command line, but not with setora

I can connect to my database using sqlplus if I specify the SID on the command line; However, I get an error if I try to connect after using setora to set the SID. Any ideas on why this is happening?

Oracle version is 10.2.4.0
OS is SunOS 5.9 Generic_122300-46 sun4u sparc SUNW, Sun-Fire-V490
MYDB resides on a host machine that is different from the one where I'm under sqlplus. We'll call this REMOTEHOST machine.
I am sure that MYDB is running on REMOTEHOST
MYUSER@MYHOST% setora MYDB
MYUSER@MYHOST% sqlplus MYUSER

SQL*Plus: Release 10.2.0.4.0 - Production on Mon Mar 8 09:38:58 2010

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory


Enter user-name: ^C^C
MYUSER@MYHOST% sqlplus MYUSER@MYDB

SQL*Plus: Release 10.2.0.4.0 - Production on Mon Mar 8 09:39:10 2010

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Enter password:

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Oracle environment variables:
MYUSER@MYHOST% env | grep -i ora
PATH=/u01/home/bin:/u01/app/oracle/product/10.2.0/OPatch:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/lib/cobol/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/banvol/uncg/bin:/etc:/usr/openwin/bin:/opt/hsqr/ora/bin:/opt/hsqr/jre/jre141/bin:/u01/app/oracle/product/10.2.0/bin
SQRDIR=/opt/hsqr/ora/bin
LD_LIBRARY_PATH=/usr/ccs/lib:/opt/lib/cobol/lib:/opt/SUNWspro/lib/v9:/opt/SUNWspro/lib/v9:/opt/SUNWspro/lib:/u01/app/oracle/product/10.2.0/lib:/opt/hsqr/ora/bin:/opt/hsqr/jre/jre141/lib/sparce/native_threads:/opt/hsqr/jre/jre141/lib/sparc/client:/opt/hsqr/jre/jre141/lib/sparc:/u01/app/oracle/product/10.2.0/lib32
ORACLE_BASE=/u01/app/oracle
ORABIN=/u01/home/bin
OWB_HOME=/u01/app/oracle/product/owb102
ORACLE_SID=MYDB
ORACLE_HOME=/u01/app/oracle/product/10.2.0
TNSNAMES entry:
MYDB =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = REMOTEHOST)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = MYDB.MYDOMAIN.COM)
    )
  )

TWO_TASK = MYDB
Export TWO_TASK

Tags: Database

Similar Questions

  • Windows 7 network drive displayed in the command window, but not in Explorer!

    Hi all

    I have several problems with mapping network drives between W7 x 64 business computers. All computers entirely patches, are part of the same network and home group (which is not part of a domain) and I'm looking in the file share on the shares created on the primary computer.

    Share 'Backup' (for example) on the primary computer has all necessary for the 'Me' user access rights, which exists on both computers and is active. When I try to map a drive to the action using the Explorer, I get the error "the folder you specified is currently mapped using a different user name and password... "even if nothing is currently connected to this computer and the command" net use * / d "returns no entries.

    Using an admin command window, I can not able to map any drive sharing using "net use x: \\mainPC\Backup/user: me mypassword" command. The disc is available in this order, but DO NOT SHOW IN EXPLORER window! (Sorry, I am really angry now). Dir command shows all the files, I can create folders and copy things under the command window, but the command 'Start x:' returns the error "x: refers to a location that is not available...". "(pull the hair!)

    Your help with this problem is greatly appreciated.

    Ray!

    What you observe is by design. Mapped network resources are visible only in the session that created them, but not in other sessions. What makes them universally visible would be a breach of security.

  • Drive (USB key) cleaned using the command line. Not able to use the USB.

    I had downloaded Chrome OS vanilla http://chromeos.hexxeh.net/ and writes to a 8 GB USB key. After that I checked, I tried to remove it. I plugged my USB and it asked me to format it. There was only one option of 1 GB. After formatting, I just had 1 GB on my USB key. Then, I tried http://erlern.wordpress.com/2010/04/02/repair-unallocated-space-from-usb-flash-drive/ and followed the procedure in the comments.

    Step 1: Start-> CommandPrompt->
    Step 2: Type diskpart-> Enter
    Step 3: Type list disk-> Enter
    Note: (find the allocated number of the disk)
    Step 4: Type select disk X-> Enter
    Note: (If X is the number of your drive)
    Step 5: Type clean-> Enter

    After that when I plug my camera he asks me to format the drive. It shows unknown capacity. After clicking on start it says Windows could not complete the format. Then when I close it, it says Windows can not format H. check that the drive and the drive are connected correctly, make sure that the disc is not dead, and then try again. For more information, search the help of read-only files and how to change them. Now I can't use it and it has no memory. Please help me.

    I got it. I HAD to PLUG IN ANOTHER PORT USB (IT DOESN'T WORK ON OTHER TWO) AND USE the TOOL in http://erlern.wordpress.com/2010/04/02/repair-unallocated-space-from-usb-flash-drive/ (in the tool, that the device will not be detected in the tool in the other 2 ports) Thank YOU

  • How can I enter in the start page of the command line "firefox.exe"?

    I want to write a script to use firefox to download information about a series of addresses on a street. For example: 101 State St, 102, 103 State St State St,... etc. The script will travel addresses and streets, on interest. Firefox.exe accepts command line parameters that define a web page specific and data to be filled in this page?

    You can start Firefox to open a specific web page or a local file by adding the url to the command line, but you cannot specify the data to display, unless these data does not appear in the page source.

  • serial in WPF instead of command line does not work

    Need help, solve a problem of serial communication. I have a serial communication prog which works fine when the command line, but behaves sporatically when run from a WPF form. It's like I need to put something in the program with the serial port. It worked for a while without problem and works reliably from the command line. Is there something that I can put to open the serial port and let it free?

    Hi Paul,.

    Thanks for posting your question in the Microsoft Community!

    I suggest you for this post in the Forums Windows Presentation Foundation (WPF) to better help.

    http://social.msdn.Microsoft.com/forums/en-us/WPF/threads/

    I hope this helps.

  • VMWare Player startup with the command line command does not work!

    Hello everyone,

    I'm new to the community and it will probably show. So, I say sorry in advance for the flaws, I'll do. Since I am of German native language I need to translate it into English. So, I could use special terms wrong, but I'll certainly try to avoid this. Just keep in mind. And now my question:

    I was running VMware Player 3.0 with VMware Tools installed and VMware VIX 1.8.0 installed on a host of Win7 Ultimate 64-bit. The Useraccount on the host has administrator rights. Guest operating system is WinXP SP3. Since I need two softwares of different recording/Dictation on my workstation and I could only one of them simultaneously open (which is very uncomfortable, when you need to change frequently), because those two were always challenging who got to use the microphone, I installed a second microphone (that only the application for the two contest) and then created a virtual machine to run the software second with one of the two microphones connected only to the prompt. (Directly/comfortably) to start the second software I created a. LNK shortcut file (and attached to the startmenu) who run the command

    Departure of player "C:\Program Files (x 86) \VMware\VMware" t "C:\Users\USERPROFILE\Eigene virtual Computer\Recorder Windows XP Pro Windows XP Pro SP3.vmx VM SP3\Recorder VM.

    with the recorder VM "VM Windows XP Pro SP3" opening the second software automatically (autostart).

    This worked well, until I updated my VMware Player to 3.0.1. Since the update however, my shortcut file simply is unable to start the virtual machine. However, starting the virtual machine of VMWare Player normal window still works. By running the command mentioned above constitute the command line prompt, I got the information, this vmrun.exe could not connect to the host, due to an error, the specified version is not found, which probably means that the VMware Player.

    P:\ & gt; "" Player t C:\Program Files (x 86) \VMware\VMware VIX\vmrun.exe "start"C:\Use ".

    virtual rs\USERPROFILE\Eigene Computer\Recorder VM Windows XP Pro SP3\Record

    ER VM Windows XP Pro SP3.vmx"

    Unable to connect to the host.

    Error: The specified version is not found

    P:\ & gt;

    I tried the VMware VIX update (from 1.8.0 to 1.8.1) without success. The errormessage even remains.

    The three relevant paths for VMware Player, VMware Vix and the VM are spezified in the systemvariable path as follows:

    % SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; "" C:\Program Files (x 86) \VMware\VMware VIX ". "" C:\Program Files (x 86) \VMware\VMware Player. " "' Virtual C:\Users\USERPROFILE\Eigene computer; C:\Program Files (x 86) \QuickTime\QTSystem\

    Today suddenly wrong?

    Any help would be greatly appreciated.

    Thanks in advance to one that solves the Enigma.

    Hello

    Meine VMs starte ICH mit dem VMplayer so:

    vmplayer.exe _

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • The application has failed to start because its side-by-side configuration is incorrect. See the application event log or use the command-line sxstrace.exe for more details

    Hello

    I can t open Google Earth or Microsoft Office programs because I get this message - the application could not start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe for more details.

    A few days ago I could open all what programs. I put t know what is the problem.

    I did sxstrace and that's what I have-

    =================
    Launch the activation context generation.
    Input parameter:
    Flags = 0
    ProcessorArchitecture = Wow32
    CultureFallBacks = en-US; en
    ManifestPath = C:\Program Files (x 86) \Google\Google Earth\client\googleearth.exe
    AssemblyDirectory = C:\Program Files (x 86) \Google\Google Earth\client\
    Application configuration file =
    -----------------
    INFO: File analysis shows C:\Program Files (x 86) \Google\Google Earth\client\googleearth.exe.
    INFO: Manifest definition identity is (null).
    INFO: Reference: Microsoft.VC80.CRT, processorArchitecture = "x 86" publicKeyToken = "1fc8b3b9a1e18e3b", type = "win32", version = "8.0.50727.4053"
    INFO: Resolving reference Microsoft.VC80.CRT, processorArchitecture = "x 86" publicKeyToken = "1fc8b3b9a1e18e3b", type = "win32", version = "8.0.50727.4053".
    INFO: Resolving reference for ProcessorArchitecture WOW64.
    INFO: Resolving reference for the neutral culture.
    INFO: Application binding policy.
    INFO: No found publisher policy.
    INFO: No redirect political connection is found.
    INFO: Start the detection of assembly.
    INFO: Can't find the assembly in WinSxS.
    NEWS: Try to detect manifest to C:\Windows\assembly\GAC_32\Microsoft.VC80.CRT\8.0.50727.4053__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL.
    INFO: Found no manifesto for the neutral culture.
    INFO: End detection of assembly.
    INFO: Resolving reference for ProcessorArchitecture x 86.
    INFO: Resolving reference for the neutral culture.
    INFO: Application binding policy.
    NEWS: Control strategy of the Publisher C:\Windows\WinSxS\manifests\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.5592_none_517247830f45081d.manifest
    INFO: Start the detection of assembly.
    INFO: End detection of assembly.
    ERROR: Activation context generation failed.
    End activation context generation.

    Help, please!

    This type of error can be caused if the Visual C++ library runtime components are missing or because of a third-party software.

    Follow the steps below:
     
    Method 1:
    If the problem is caused by the lack of Visual C++ libraries, you can download and install the Runtime components of Visual C++ libraries from the link below:
     
    This error can occur when the Microsoft .NET Framework installation on the computer is damaged or is missing.

    Try it out below step to reinstall and repair installation of Microsoft .NET Framework on the computer, then check if you can install the software.

    (a) click the Start button, select Control Panel, click programs and then click on 'Turn Windows has or not.' If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    (b) search for Microsoft .NET framework 3.5.1 uncheck, click OK and restart the computer.

    (c) after the reboot, open again "Turn Windows features on or off" and place a check next to Microsoft .NET framework 3.5.1 and restart the computer.

    Step 2

    If the previous step fails, then I suggest that you manually download and install Microsoft Visual C++ 2005 and 2008 Redistributable Package and check to see if you can install the software.

    In programs and features, you do not show that you have installed Microsoft Visual C++ 2005 Redistributable and Microsoft Visual C++ 2008 Redistributable? If this is not the case, download the links here.
     
    Package redistributable Visual C++ 2005 (X 86)
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en
     
    Visual C++ 2005 (x 64) redistributable package manager
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=eb4ebe2d-33c0-4A47-9dd4-b9a6d7bd44da&displaylang=en

    Package redistributable Microsoft Visual C++ 2008 (x 86)

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

    Package redistributable Visual C++ 2008 SP1 (x 64)
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en

    I hope this helps.

  • "Error: the application failed to start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for more details.

    I have QQ (an international chat program) installed on the laptop. Then my hard drive crashed. Now when I try to reinstall it on my new hard drive I get the following message:

    "Error: the application failed to start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for details" -how can I solve this problem? I have Windows 7.

    Hello

    Thanks for choosing Microsoft Community to post your question.

    It seems that you can not install application QQ, you get an error: "the application could not start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for more details.

    We're here to help and guide you in the right direction. This problem could be caused when the computer is missing the correct C++ run time for your type of system components. (x 86 or x 64).

    Here are a few troubleshooting steps that you can try to solve this problem.

    Method 1: we will install Microsoft Visual C++ for your computer package.

    Note: If you use the 32-bit operating system, download and install 32-bit edition(X86).

    If you use the 64-bit operating system, download and install edition(X64) 64-bit.

    Microsoft Visual C++ 2008 SP1 Redistributable Package (x 86)
    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en

    Microsoft Visual C++ 2008 SP1 Redistributable Package (x 64)
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en

    Package redistributable Microsoft Visual C++ 2010 (x 86)

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=a7b7a05e-6de6-4D3A-A423-37bf0912db84

    Package redistributable Microsoft Visual C++ 2010 (x 64)

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=bd512d9e-43c8-4655-81bf-9350143d5867

    Method 2: Run the fixit available at the following link.

    Solve problems with programs that cannot be installed or uninstalled

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    Also, check the event log using Event Viewer.

    Please see the link below for more information on how to use Event Viewer to check the error message or information,

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    If you have additional problems, please reply to this post and we will be happy to help you further.

  • WINDOWS 7 error the application failed to start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for more details.

    «WINDOWS 7 error the application failed to start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for more details.»

    This cams almost for all the applications that I try to open. I read all kinds of things to solve problems, but I can't install anything because it is constantly on the screen.

    I think it's like that because my computer shuts off when I was doing the system restore, because he has not started.

    I don't know what to do.

    Hello

     
    You can view the event log by using Event Viewer. See the link below for more information about how to use Event Viewer to check the error message or information,
     
    Please check the information in Event Viewer and let us know the problem more briefly for a better solution.
     

    Method 1:
    However, try the SFC (System File Checker) scan on the computer. Check out the following link to do the same thing:
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833
     
    Method 2:
    You try to run the fixit given in the following link and check if it works:
  • Is there a problem with Adobe Reader DC using the command line to open a file?

    Hello

    I am a developer and we use Adobe Reader to view our PDF help files in our application.  For years, we used WinExec() to open Adobe Reader, by specifying the file to open on the command line and it has been working perfectly.  In other words, upward until our users began to load Adobe Acrobat Reader DC.  Despite this work very well when you type a command using CMD.exe, it simply does not help WinExec() from another application programmatically.  Also, I modified the code to try using CreateProcess() or ShellExecute() and these functions do not work either.

    It may have to do with the fact that there is a switch or a parameter now within the DC, but I don't know what it is, or why it happens.  If anyone can shed some light on this it would be much appreciated because it severely hampers our latest version of the software.

    Kind regards

    Leigh.

    A common cause is not to put quotes on the command line, so instead of

    "c:\program files...\acrord32.exe" "c:\documents and settings\...my file.pdf.

    You write

    "c:\program files...\acrord32.exe" c:\documents and settings\...my file.PDF

    This has always been bad, but older versions it would accept anyway. (It was a recent change but not in DC).

    I would recommend using ShellExecute instead of the command line, however. That simulates a double-click and executes everything the user has created for PDFs (perhaps Reader, Acrobat maybe, maybe something else).

  • Is it possible to make Internet connection sharing by the command line rather than the GUI on Windows Server 2008?

    Hello world!

    I need program/reset sharing Internet connection by the command line rather than GUI tools under Windows 2008 Server (could be a .cmd to run startup script or the programmer). Is this possible? Or there is some registry keys I need to set/restore and restart some services?

    Thank you very much.

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the Server on TechNet. Please post your question in the TechNet forums. You can follow the link to your question:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • Deployment of final application with the command line Question

    OK so I have my finished application.

    on a folder in my office called "CODBOUG".

    So I tried different methods to run the application and complete the test on the Simulator with the command line. But it's just too much. So I need your help community!

    I tried:

    BlackBerry-deploy-installApp-package CallofDutyBlackOpsUltimateG

    uide.bar - device 192.168.18.128

    I'm a little lost with the help of the command line, if someone could guide me on the right lane.

    I'm on windows, btw.

    Thank you.

    When you run a command, Windows will search in a series of directories for this program to run. The list of directories is stored in what is called an environment variable. You must add the path to the bin of the sdk at this variable directory (e.g. C:\Program Files (x 86) \Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-0.9.3\bin).

    You can access the path variable by right-clicking on my computer > properties. Select the Advanced tab and click on approx. Variables.

    Under System Variables, search PATH and edit it. Add the path to the sdk bin directory (make sure that there is a semicolon, that separates the directories).

    Open a command line window in the directory where your .bar file. When you run the command, Windows will look for blackberry - deploy and can be found in the directory that you have added to your PATH variable so to run it.

  • When you try to add a network route with the "route add" command in the command line, I get the message "the requested operation requires a rise."

    Elevation required to route add command

    When you try to add a network route with the "route add" command in the command line, I get the message "the requested operation requires a rise."  What is the correct syntax to use?

    You can watch using the PowerShell...

    http://TechNet.Microsoft.com/en-us/library/bb978526.aspx

    http://TechNet.Microsoft.com/en-us/scriptcenter/dd742419.aspx

    .. .and post questions about Windows PowerShell forum...

    http://social.technet.Microsoft.com/forums/en/winserverpowershell/threads

  • with the command line remote reboot

    I know not how to remote shutdown of a pc on our network using the command-line using this...

    Shutdown - r f t 0 - m ComputerName

    But how to do it with my mac to pc?

    Again, you can not. The commands only work with the same OS.

    Yes Mac to Mac, Windows, Windows, etc.

    You will need to find some kind of package of administration remote cross-platform.

Maybe you are looking for