Solved

Oracle 10g sqlplus login problems

Posted on 2007-04-07
1
717 Views
Last Modified: 2013-12-18
I am running a server which I am connected to remotely.  The server OS is Red Hat Linux Enterprise 5 and the software giving me the problems is Oracle 10g version 10.2.0

I was originally getting this error when trying to enter sqlplus:

ERROR:
ORA-12162: TNS:net service name is incorrectly specified

However, I fixed that by running this command:
     export ORACLE_SID="system"

and now I get these problems when I try to sign into sqlplus:

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

I have tried restarting the server and this has not corrected any problems.  Does anyone have any ideas?
0
Comment
Question by:spitfire0010
1 Comment
 
LVL 1

Accepted Solution

by:
Blue5Wing earned 50 total points
ID: 18871693
1. Check if your Oracle database is started.

2. Check the ORACLE_HOME environment variable if it matches the ORACLE_HOME used to start the database, as it is defined in /var/opt/oracle/oratab. In oratab you will find entries like this:

DEMO:/u01/app/oracle/product/10g:Y

In this case /u01/app/oracle/product/10g is ORACLE_HOME, DEMO is the SID, Y means it is started automatically at system boot.
You also need to set ORACLE_BASE.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question