Discussions
Categories
- 197K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.8K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 556 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.4K Development
- 17 Developer Projects
- 139 Programming Languages
- 293.1K Development Tools
- 111 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 161 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 475 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
Oracle 11g R2 installation, sqlplus only connects to idle instance??

836483
Member Posts: 8
Hello, I have just downloaded and installed OR11G R2 on a VM (linux Redhat 8). I tried sqlplus connection to oracle but it only connects to an idle instance. I am very new to both Linux and Oracle so I have not been able to figure it out even after reading a lot of threads online. I followed the link below for installation guide from beginning to end, and only changed the host from viper to localhost (is that the problem??).
http://www.oramoss.com/wiki/index.php/Install_OBIEE_11.1.1.3.0_on_Oracle_Enterprise_Linux_5.5_with_Oracle_11gR2_RDBMS.
I didn't what more information to post here, but please tell me how and what information you need, to may be try and fix this issue.
Thanks alot
[[email protected] ~]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 15 16:09:03 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
SQL> selct * from v$version
SP2-0734: unknown command beginning "selct * fr..." - rest of line ignored.
SQL> select * from v$version;
select * from v$version
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/initDB11G.ora'
http://www.oramoss.com/wiki/index.php/Install_OBIEE_11.1.1.3.0_on_Oracle_Enterprise_Linux_5.5_with_Oracle_11gR2_RDBMS.
I didn't what more information to post here, but please tell me how and what information you need, to may be try and fix this issue.
Thanks alot
[[email protected] ~]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 15 16:09:03 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
SQL> selct * from v$version
SP2-0734: unknown command beginning "selct * fr..." - rest of line ignored.
SQL> select * from v$version;
select * from v$version
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/initDB11G.ora'
Best Answer
-
Hello,
Start your database and monitor alert.log in another terminal window to see if your database opens up without any problem. Address any issue reported during manual startup or automated startup(alert.log). Then follow direction provided in the oracle 11g documentation to startup listener and oracle database after system reboot.
http://download.oracle.com/docs/cd/E11882_01/server.112/e10839/strt_stp.htm#sthref129$> sqlplus '/as sysdba' SQL> startup;
Regards
OrionNet
Answers
-
It is, from my experience, impossible for your situation to be as you describe.
Has a previous installation of Oracle been made on this machine? Is it pointed to by environment variables such as ORACLE_HOME and/or ORACLE_SID? -
user13543219 wrote:That's probably not the cause of your current problem ... but even in a vm on your laptop ( I have a whole computer lab in vm's on my laptop) you wouldn't want to name your server 'localhost'. "localhost" is practically a reserved word. By default, your local 'hosts' file (used to resolve a name to an IP address) will have an entry like this:
Hello, I have just downloaded and installed OR11G R2 on a VM (linux Redhat 8). I tried sqlplus connection to oracle but it only connects to an idle instance. I am very new to both Linux and Oracle so I have not been able to figure it out even after reading a lot of threads online. I followed the link below for installation guide from beginning to end, and only changed the host from viper to localhost (is that the problem??).127.0.0.1 localhost.localdomain localhost
You would want to add another line:192.168.160.101 vmlnx01.vmdomain vmlnx01
of course, using your own static ip of the machine, and its real name and domain.
>http://www.oramoss.com/wiki/index.php/Install_OBIEE_11.1.1.3.0_on_Oracle_Enterprise_Linux_5.5_with_Oracle_11gR2_RDBMS.The only way I can see that happening is to have a bad value for ORACLE_SID. In fact, I just reproduced your error exactly, by deliberately setting ORACLE_SID to a bogus value.
I didn't what more information to post here, but please tell me how and what information you need, to may be try and fix this issue.
Thanks alot
[[email protected] ~]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 15 16:09:03 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
SQL> selct * from v$version
SP2-0734: unknown command beginning "selct * fr..." - rest of line ignored.
SQL> select * from v$version;
select * from v$version
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/initDB11G.ora'[[email protected] ~]$ export ORACLE_SID=foobar [[email protected] ~]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.4.0 - Production on Tue Feb 15 17:26:35 2011 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to an idle instance. SQL> startup ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file '/ora00/app/oracle/product/10.2.0/db_1/dbs/initfoobar.ora' SQL>
Do the above again, only this time, just before starting sqlplus, enter these commands exactly as you see them here (cut and paste is your friend)env|grep ORA|sort cat /etc/oratab ps -ef|grep pmon
Copy the entire session -- commands and results -- and paste back here. -
I have Oracle 10G installed on another VM (Win XP) on the same machine and also on the main original machine (Win 7).
-
This is what I got as a result of the commands you listed above, I am starting to see your point, though. Hope this gives you the information you are asking for.
[[email protected] ~]$ env|grep ORA|sort
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
ORACLE_HOSTNAME=localhost
ORACLE_SID=DB11G
ORACLE_TERM=xterm
ORACLE_UNQNAME=DB11G
[[email protected] ~]$ cat /etc/oratab
#
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
T112:/u01/app/oracle/product/11.2.0/db_1:Y
[[email protected] ~]$ ps -ef|grep pmon
oracle 4519 4485 0 20:40 pts/1 00:00:00 grep pmon
[[email protected] ~]$ -
user13543219 wrote:Exactly the info we needed.
This is what I got as a result of the commands you listed above, I am starting to see your point, though. Hope this gives you the information you are asking for.[[email protected] ~]$ env|grep ORA|sortSo your ORACLE_SID is set to DB11G. How did you arrive at that value? Because ...
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
ORACLE_HOSTNAME=localhost
ORACLE_SID=DB11G
ORACLE_TERM=xterm
ORACLE_UNQNAME=DB11G[[email protected] ~]$ cat /etc/oratab... there is no entry for DB11G in your oratab. Instead you have T112. In addition ....
#
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
T112:/u01/app/oracle/product/11.2.0/db_1:Y[[email protected] ~]$ ps -ef|grep pmon... you have NO database running on the machine at all. That last command should have returned something like this:
oracle 4519 4485 0 20:40 pts/1 00:00:00 grep pmon[[email protected] ~]$ ps -ef|grep pmon oracle 2318 16623 0 21:11 pts/0 00:00:00 grep pmon oracle 5277 1 0 Feb14 ? 00:00:23 ora_pmon_vlnxora1
Only in your case, instead of 'vlnxora1' you should have seen the name of your instance.[[email protected] ~]$ -
So, I should change T112 to DB11G while running oracle networking creation and database configuration?? I did that because I followed an online oracle installation guide. Forgive me if I sound like a rookie...since I am one.
-
Hello,
Start your database and monitor alert.log in another terminal window to see if your database opens up without any problem. Address any issue reported during manual startup or automated startup(alert.log). Then follow direction provided in the oracle 11g documentation to startup listener and oracle database after system reboot.
http://download.oracle.com/docs/cd/E11882_01/server.112/e10839/strt_stp.htm#sthref129$> sqlplus '/as sysdba' SQL> startup;
Regards
OrionNet -
user13543219 wrote:I have no idea where you got either value, but I'd guess the value in oratab is correct. You should get a better clue by looking at the file names in the directory $ORACLE_HOME/dbs
So, I should change T112 to DB11G while running oracle networking creation and database configuration?? I did that because I followed an online oracle installation guide. Forgive me if I sound like a rookie...since I am one.
This discussion has been closed.