Solved

Oracle 10g sqlplus login problems

Posted on 2007-04-07
1
713 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now