LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-06-2010, 11:13 AM   #1
mvaknine
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 0
Oracle environmet problem


hello,

i am not sure if this is the place for my question.
i am running oracle 11G on linux ent 5 and have an environment problem.

there are some options to start a database

1.
export ORACLE_SID=dbname
sqlplus / as sysdba
startup

2.
sqlplus /nolog
connct sys/admin@dbname as sysdba
startup

no mather which option i start the database when i try the oposite on i get connected to an idle instance even though the database is started.

i aprichiate any help i can get
thanks
Michael
 
Old 04-06-2010, 11:33 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by mvaknine View Post
hello,

i am not sure if this is the place for my question.
i am running oracle 11G on linux ent 5 and have an environment problem.

there are some options to start a database

1.
export ORACLE_SID=dbname
sqlplus / as sysdba
startup

2.
sqlplus /nolog
connct sys/admin@dbname as sysdba
startup

no mather which option i start the database when i try the oposite on i get connected to an idle instance even though the database is started.

i aprichiate any help i can get
thanks
Michael
Best place for you to start, would be to call Oracle support. You're in a supported environment, and are paying for support from both Oracle and RedHat, so I'd use those resources. Much quicker to solve a problem through them.
 
Old 04-06-2010, 01:03 PM   #3
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
Quote:
Originally Posted by mvaknine View Post
hello,

i am not sure if this is the place for my question.
i am running oracle 11G on linux ent 5 and have an environment problem.

there are some options to start a database

1.
export ORACLE_SID=dbname
sqlplus / as sysdba
startup

2.
sqlplus /nolog
connct sys/admin@dbname as sysdba
startup

no mather which option i start the database when i try the oposite on i get connected to an idle instance even though the database is started.

i aprichiate any help i can get
thanks
Michael
When does it give you the 'idle instance' notification? Is it following the connect but before you enter 'startup' into sqlplus?

From what I can gather, that would be normal as the database is not started at that point - the database server is, however the database instance is not.

Have you successfully created a database? did you create it yourself or was it created by the Oracle installer? is this the first time you are trying to connect to it or have you connected successfully before?

It is about 10 years since I last used Oracle and that was 8i, so I am not very familiar with it. The following may be useful http://www.orafaq.com/node/2015

TBOne, I don't think he is a paying Oracle customer, if he were working in an organization that could afford to pay for Oracle, they wouldn't give any who wasn't a qualified Oracle DBA access to it. More likely he is using one of their 'free for educational purposes' versions from the Oracle Technology Network (perhaps in the hope of becoming a qualified DBA). BTW, if you are just playing with Oracle for your own interest, you might do better to post in the general server forum rather than the enterprise Linux forum (take a look at the sticky at the top of the forum).

Last edited by nonamenobody; 04-06-2010 at 01:08 PM. Reason: Note about the forum topic
 
Old 04-06-2010, 01:40 PM   #4
mvaknine
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Original Poster
Rep: Reputation: 0
[oracle@linuxent51 log]$ export ORACLE_SID=michaels
[oracle@linuxent51 log]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 6 21:37:56 2010

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to an idle instance.

SQL> exit
Disconnected
[oracle@linuxent51 log]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 6 21:38:08 2010

Copyright (c) 1982, 2009, Oracle. All rights reserved.

SQL> conn sys/admin@michaels as sysdba
Connected.
SQL> select name from v$database;

NAME
---------
MICHAEL1

SQL>


you can see that the instance is up but when i try to connect / as sysdba it does not recognize that it is connected.
 
Old 04-06-2010, 08:33 PM   #5
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
Quote:
Originally Posted by mvaknine View Post
[oracle@linuxent51 log]$ export ORACLE_SID=michaels
[oracle@linuxent51 log]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 6 21:37:56 2010

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to an idle instance.

SQL> exit
Disconnected
[oracle@linuxent51 log]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 6 21:38:08 2010

Copyright (c) 1982, 2009, Oracle. All rights reserved.

SQL> conn sys/admin@michaels as sysdba
Connected.
SQL> select name from v$database;

NAME
---------
MICHAEL1

SQL>


you can see that the instance is up but when i try to connect / as sysdba it does not recognize that it is connected.
Sorry I thought you were getting "Connected to an idle instance" no matter what you tried. It's long while since I used Oracle and even then I was only playing with it really. I will have a think about your problem and hopefully someone who knows better will advise you in the meantime.
 
Old 04-07-2010, 12:37 AM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Look here:
Quote:
http://stackoverflow.com/questions/3...-idle-instance

Make sure you have your ORACLE_HOME setup exactly the same as when the server was started, I've seen this problem with oracle 9.2.0.5.0 on solaris,

Quote:
ORACLE_HOME=/opt/oracle
ORACLE_HOME=/opt/oracle/
is two different things, and will result in issues connecting locally.
Also check your $ORACLE_SID: make sure all the characters match *exactly* (case-sensitive).

'Hope that helps .. PSM
 
1 members found this post helpful.
Old 04-16-2010, 09:00 AM   #7
mvaknine
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you this solved my problem.
there was a problem with my variable definitions.

Michael
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
login as oracle user but prompt show [root@ablnx oracle] how come? sathyguy Linux - Newbie 12 08-23-2008 02:52 AM
LXer: Oracle and Symantec Certify Veritas Data Center Solutions on Oracle(R) Enterprise Linux LXer Syndicated Linux News 0 07-18-2007 06:31 AM
programing environmet for PHP vahid_p Programming 3 03-08-2007 03:47 AM
LXer: Oracle Enhances Oracle Validated Configurations With More Solutions and New Partners to Help Deploy Linux Faster LXer Syndicated Linux News 0 08-16-2006 06:54 PM
getting message to set environmet variable mr.moto Linux - General 2 01-15-2002 09:48 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration