Connect idle instance
Hi all,
I am using Oracle 10.2.0.
How to connect an idle instance from client system using SQL*Plus.
Thankx
Thanks Amardeep,
I opened sql*plus and typed in user field as /nolog.
And did as:
SQL> connect as sys@db as sysdba;
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon> ::= <username>[<password>][@<connect_identifier>] | /.
I am getting error.
Is the correct process what i did.
Thanks
Similar Messages
-
Connected to an idle instance after computer crash
I was inserting rows as following
begin
for i in 1..10000000
loop
insert into test values(i, dbms_random.string('U',50), dbms_random.string('U',50), dbms_random.string('U',50), dbms_random.string('U',50), dbms_random.string('U',50));
end loop;
end;
/All of a sudden my computer crashed after an hour.
I did a reboot and I am not able to use my database anymore. What did happen and how to repair it?
I started database instance ORCL and it's listener and all I can see is:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>set ORACLE_SID=ORCL
C:\Windows\system32>cd ..
C:\Windows>cd ..
C:\>cd app\INDREK\product\11.2.0\dbhome_1\BIN
C:\app\INDREK\product\11.2.0\dbhome_1\BIN>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on L Sept 1 15:38:24 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to an idle instance.
SQL> alter database mount;
alter database mount
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
SQL> startup
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
Total System Global Area 3340451840 bytes
Fixed Size 2180344 bytes
Variable Size 1979714312 bytes
Database Buffers 1342177280 bytes
Redo Buffers 16379904 bytes
Database mounted.
ORA-03113: end-of-file on communication channel
Process ID: 4940
Session ID: 191 Serial number: 3
SQL>As for OS and database versions: Windows 7 Pro 64 bit and
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - ProductionThere is a lot of information in this alert log. The latest records that seems suspicious in this XML alert log are following:
<txt>
LGWR: STARTING ARCH PROCESSES
</txt>
<txt>
ARC0 started with pid=21, OS id=2412
</txt>
<txt>
ARC0: Archival started
</txt>
<txt>
LGWR: STARTING ARCH PROCESSES COMPLETE
</txt>
<txt>
ARC0: STARTING ARCH PROCESSES
</txt>
<txt>
ARC1 started with pid=22, OS id=4932
</txt>
<txt>
ARC2 started with pid=23, OS id=2020
</txt>
<txt>
ARC1: Archival started
</txt>
<txt>
ARC3 started with pid=24, OS id=4244
</txt>
<txt>
ARC2: Archival started
</txt>
<txt>
ARC1: Becoming the 'no FAL' ARCH
</txt>
<txt>
ARC1: Becoming the 'no SRL' ARCH
</txt>
<txt>
ARC2: Becoming the heartbeat ARCH
</txt>
<txt>
Errors in file c:\app\indrek\diag\rdbms\orcl\orcl\trace\orcl_ora_4940.trc:ORA-19815:
WARNING: db_recovery_file_dest_size of 4102029312 bytes is 100.00% used, and has 0 remaining bytes available.
</txt>
<txt>
ARCH: Error 19809 Creating archive log file to 'C:\APP\INDREK\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_09_01\O1_MF_1_125_%U_.ARC'
</txt>
<txt>
Errors in file c:\app\indrek\diag\rdbms\orcl\orcl\trace\orcl_arc1_4932.trc:
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 34328064 bytes disk space from 4102029312 limit
</txt>
<txt>
Errors in file c:\app\indrek\diag\rdbms\orcl\orcl\trace\orcl_ora_4940.trc:
ORA-16038: log 1 sequence# 125 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 1 thread 1: 'C:\APP\INDREK\ORADATA\ORCL\REDO01.LOG'
</txt>Edited by: totalnewby on Sep 1, 2012 7:46 AM -
Connected to an idle instance; trouble creating DB
I tried to connect to my database and got Connected to an idle instance:
C:\>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on Mon Sep 22 19:07:34 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to an idle instance.
SQL> select status, database_status from v$instance;
select status, database_status from v$instance
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
Further, the Getting Started page cannot be found with Error code: ERR_CONNECTION_REFUSED: http://127.0.0.1:8080/apex/f?p=4950
What I did to try and resolve this issue
While digging in various forums, I found that maybe I needed to specify the initXE.ora file on startup:
SQL> startup pfile='C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora'
ORA-01565: error in identifying file 'C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
ORA-01078: failure in processing system parameters
No such spfileXE.ora file. OK, so create it?
SQL> create spfile='C:\oraclexe\app\oracle\product\11.2.0\server\dbs\spfileXE.ora' from pfile='C:\oraclexe\app\oracle\product\11.2.0\server\dbs\init.ora';
File created.
SQL> startup pfile='C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora'
ORA-48108: invalid value given for the diagnostic_dest init.ora parameter
ORA-48140: the specified ADR Base directory does not exist [C:\oraclexe\app\oracle\product\11.2.0\server\DATABASE\<ORACLE_BASE>]
ORA-48187: specified directory does not exist
OSD-00002: additional error information
O/S-Error: (OS 123) The filename, directory name, or volume label syntax is incorrect.
SQL>
Well, I guess I have no ADR Base directory..
C:\oraclexe\app\oracle\product\11.2.0\server\database>dir
Volume in drive C is Windows
Volume Serial Number is 8822-A545
Directory of C:\oraclexe\app\oracle\product\11.2.0\server\database
22/09/2014 06:06 PM <DIR> .
22/09/2014 06:06 PM <DIR> ..
22/09/2014 06:06 PM 2,048 hc_xe.dat
22/09/2014 02:44 PM 73 initXE.ora
27/08/2011 09:58 AM 31,744 oradba.exe
22/09/2014 05:07 PM 2,265 oradim.log
4 File(s) 36,130 bytes
2 Dir(s) 298,041,913,344 bytes free
I list as much supporting information as I know how to below.
Environment
Windows 7 Enterprise, SP1, 64-bit.
Oracle Database Express Edition 11g Release 2 for Windows x32
I have these environment variables set:
echo %ORACLE_SID% - %ORACLE_HOME%
XE - C:\oraclexe\app\oracle\product\11.2.0\server
Installation settings
These are the installation settings used by the installer:
Destination Folder: C:\oraclexe\
Oracle Home: C:\oraclexe\app\oracle\product\11.2.0\server\
Oracle Base:C:\oraclexe\
Port for 'Oracle Database Listener': 1521
Port for 'Oracle Services for Microsoft Transaction Server': 2030
Port for 'Oracle HTTP Listener': 8080
Output from lsnrctl stat
Some debugging information that may be useful:
C:\oraclexe\app\oracle\product\11.2.0\server\bin>lsnrctl stat
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 22-SEP-2014 19:05:52
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
Start Date 22-SEP-2014 17:07:02
Uptime 0 days 1 hr. 58 min. 49 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\ITS57151\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost.mycompany.local)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\oraclexe\app\oracle\product\11.2.0\server\bin>
Various config files
Here are the contents of other important files.
The initXE.ora file - C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora
SPFILE='C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora'
The listener.ora file - C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mycompany.local)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
The tnsnames.ora file - C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mycompany.local)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
Edited to restructure question to put the meat of the issue up front and supporting information below.Uninstall Oracle Database Express Edition 11g Release 2 for Windows x32
Download and install Oracle Database Express Edition 11g Release 2 for Windows x64
Take some time to de-stress. -
Connected to an idle instance in sun cluster nodes.
i have two sun cluster node sharing common storage.
Two schema's:
test1 for nodeA
test2 for nodeB.
My requirement is as below:
Login into b node.
export ORACLE_SID=test1.
sqlplus / as sysdba.
But i am getting as
"connected to an idle instance"
Is there any way to connect to node A schema from Node B.I found the answer..
sqlplus <sysdbauser>/<password>@test1 as sysdba -
Connecting to idle instance in Oracle 11g
SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 10 14:48:26 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to an idle instance.
SQL> connect ADIPNU
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Process ID: 0
Session ID: 0 Serial number: 0
Warning: You are no longer connected to ORACLE.
SQL>
Please give a solution..
Thans in advance..885756 wrote:
Enter user-name: sys as sysdba
Enter password:
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 8234233856 bytes
Fixed Size 2192096 bytes
Variable Size 4395633952 bytes
Database Buffers 3825205248 bytes
Redo Buffers 11202560 bytes
Database mounted.
ORA-03113: end-of-file on communication channel
Process ID: 3364
Session ID: 170 Serial number: 3
SQL>Post alert log please .
location for alertlog :$ORACLE_BASE/diag/rdbms/PROD/PROD/trace/al* -
Connected to an idle instance. Not able to connect
Hi,
I am working on Winodows XP.
I have installed Release 11.2.0.1.0 in my machine
I have multiple home in my machine.
I am trying to connect to oracle database using sqlplus but it is giving me following error.
D:\Documents and Settings\akoa>sqlplus sys@orcl2 as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 16 23:13:29 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
SQL>
Could you please tell me how can I resolve this problem?
my tnsname.ora is
# tnsnames.ora Network Configuration File: D:\app\akoa\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_ORCL2 =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
orcl2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = orcl2)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
My sqlnet.ora is
#NAMES.DEFAULT_DOMAIN = world
sqlnet.authentication_services = (NTS)
SQLNET.EXPIRE_TIME = 0
SQLNET.ENCRYPTION_SERVER = requested
SQLNET.ENCRYPTION_CLIENT = requested
NAMES.DIRECTORY_PATH= (TNSNAMES)
My listner.ora is
# listener.ora Network Configuration File: D:\app\akoa\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC=
(ORACLE_HOME=D:\app\akoa\product\11.2.0\dbhome_1)
(SID_NAME=orcl2))
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\akoa\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\akoa\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = D:\app\akoa
Regards,user576726 wrote:
Hi,
I am working on Winodows XP.
I have installed Release 11.2.0.1.0 in my machine
I have multiple home in my machine.
I am trying to connect to oracle database using sqlplus but it is giving me following error.
D:\Documents and Settings\akoa>sqlplus sys@orcl2 as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 16 23:13:29 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
SQL>
Could you please tell me how can I resolve this problem?
What is the problem ? What is the error message ?
HTH
Srini -
Help please! connected to an idle instance
Hello,
I am new to oracle administration. I instlled 11gR2 on windows 7 64 bit. It was working fine. Then I applied the patch DB 11.2.0.1 Patch 10: 10432045 . I can nolong connect. I tried a lot and ead lot of blogs. But now thoroughly confused! I am giving soem info that you may need. Please help!!!!
Thanks,
Badal
* All oracle related services are set to automatic start up and are all up
ORACLE_HOME=K:\app\badal\product\11.2.0\dbhome_1
ORACLE_SID=ORCL
When tried sqlplus i got
*>sqlplus myschema/password@ORCL*
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
As sysdba, I got this:
C:\windows\system32>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Sat Mar 3 11:08:44 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to an idle instance.
lsnrctl status gives me this
C:\windows\system32>lsnrctl status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 03-MAR-2012 11:11:08
Uptime 0 days 0 hr. 0 min. 20 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File K:\app\badal\product\11.2.0\dbhome_1\network\admin\list
ener.ora
Listener Log File k:\app\badal\diag\tnslsnr\HPC1\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HPC1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
My tnsnames.ora:
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = HPC1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
My listner.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = K:\app\badal\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:K:\app\badal\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = HPC1)(PORT = 1521))
ADR_BASE_LISTENER = K:\app\badalHello Sagar ! Here is the result after startup
C:\windows\system32>lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 03-MAR-2012 11:39
:28
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 03-MAR-2012 11:11:08
Uptime 0 days 0 hr. 28 min. 23 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File K:\app\badal\product\11.2.0\dbhome_1\network\admin\list
ener.ora
Listener Log File k:\app\badal\diag\tnslsnr\HPC1\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HPC1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\windows\system32>sqlplus system/password@ORCL
SQL*Plus: Release 11.2.0.1.0 Production on Sat Mar 3 11:41:03 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options -
Moved Oracle 11.2 XE Directory, Connected to Idle Instance
So I will start off by stating I have moved the regular install location of Oracle 11.2 XE to a logical volume (/oracle) I had created on my RHEL 6.6 server. After shutting down both the database and the Oracle listener, I performed...
$ cp -R /u01/app/* /oracle
$ rm -rf /u01/app/oracl
$ ln -s /oracle/oracle /u01/app/oracle
Then restarted the listener and the database. Now when I attempt to run the following as the user 'oracle' I get a message...
$ sqlplus
Enter user-name: sys / as sysdba
Enter password: ****
Connected to idle instance.
Further, when I attempt a startup I get an error.
> startup
ORA-45301: XE Edition single instance violation error
I have attempted the solutions found to no avail.
Here is the output for my listener controller:
bash-4.1$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 10-MAR-2015 10:26:25
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 10-MAR-2015 10:25:57
Uptime 0 days 0 hr. 0 min. 28 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/dev/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dev)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
I'm really quite lost as to what to attempt next. I know I could just reinstall and keep the directory in its proper location but I need it to be in it's own logical volume.
Some further information to help clarify my system...
bash-4.1$ env | grep ORA
ORACLE_SID=XE
ORACLE_BASE=/oracle/oracle
ORACLE_HOME=/oracle/oracle/product/11.2.0/xe
bash-4.1$ env | grep TNS
TNS_ADMIN=/oracle/oracle/product/11.2.0/xe/network/admin
bash-4.1$ ps -aux | grep pmon
oracle 2431 0.0 0.2 1265956 16652 ? Ss 11:43 0:00 xe_pmon_XE
EDIT
Attempting to sign in to sqlplus using the SYSTEM user returned an error:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
FURTHER EDIT
Output of the ipcs command
bash-4.1$ ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0xc0a59444 32768 oracle 660 4096 0
------ Semaphore Arrays --------
key semid owner perms nsems
0xd4a9963c 229378 oracle 660 104
0x884d8f34 491523 oracle 660 104
------ Message Queues --------
key msqid owner perms used-bytes messagesAlready solved this issue. The problem was due to incorrect set of env variables:
export ORACLE_BASE=/home/oracle/
export ORACLE_HOME=$ORACLE_BASE/11G
resulted:
ORACLE_HOME=/home/oracle//11G
Linux is capable of retrieving directory content if path is set with *"//"* but seems like oracle does not. Due to this I've got this error. After resetting ORACLE_HOME variable, everything worked. -
What is meant by the term 'IDLE Instance'?
Hi
Sometimes i get the following message when connecting to an Oracle10g database
'Connected to an idle instance'
Can some expalin what the term 'idle' means? My database is running according to the MMC
ThanksHi,
An idle instance is an instance which is not start.
E:\oracle\ora102>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Fri Apr 7 21:36:05 2006
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Pr
oduction
With the Partitioning, OLAP and Data Mining options
E:\oracle\ora102>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Fri Apr 7 21:36:44 2006
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL>
My database is running according to the MMCDon't understand what is MMC ?
Nicolas. -
Unable to Login to Idle Instance from SQL*Plus in windows
Hello,
I'm cloning the db from windows to windows enviornment. At auxilary instance after configuring the Listener and making Password file to right folder when I try to connect to Idle Instance through sql*plus by follwring connad
c:\sqlplus sys/password as sysdba
It gives me ORA-12518 Tns: Listener could not hand off client conenction error
Then I put the follwing parameter in listener.ora DIRECT_HANDOFF_TTC_LISTENER=OFF and restart listener and then try to connect it gives me Ora-12560: TNS protocol adapter error.
I try to connect through tnsnames but give me same error.
Kindly tell me how to resolve this issue as its not allowing me to connect to an idle instance so that I can go further.
I'm using 10gR2 on windows server 2003.
Regards,
Abbasifollow the steps to clone database:
# 1. Backup the source database.
To use RMAN duplicate an RMAN backup of the source database is required. If there is already one available, skip to step 2. If not, here is a quick example of how to produce an RMAN backup. This example assumes that there is no recovery catalog available:
rman target sys@<source database> nocatalog
RMAN>backup database plus archivelog ;
RMAN> backup archivelog all;
This will backup the database and archive logs.
# 2. Produce a pfile for the new database
This step assumes that the source database is using a spfile. If that is not the case, simply make a copy the existing pfile.
Connect to the source database as sysdba and run the following:
create pfile='init<new database sid>.ora' from spfile;
This will create a new pfile in the $ORACLE_HOME/database directory.
The new pfile will need to be edited immediately. If the cloned database is to have a different name to the source, this will need to be changed, as will any paths. Review the contents of the file and make alterations as necessary.
Because in this example the cloned database will reside on the same machine as the source, Oracle must be told how convert the filenames during the RMAN duplicate operation. This is achieved by adding the following lines to the newly created pfile:
db_file_name_convert=(<source_db_path>,<target_db_path>)
log_file_name_convert=(<source_db_path>,<target_db_path>)
# 3. Create bdump, udump & cdump directories
Create bdump, udump & cdump directories as specified in the pfile
# 4. Create a service
c:/>oradim –new –sid <clonedatabasename> –intpwd <pwd>
eg:
c:>oradim –new –sid clonedb –intpwd oracle
# 6. Duplicate the database
From sqlplus, start the instance up in nomount mode:
startup nomount
Exit sqlplus, start RMAN and duplicate the database. As in step 1, it is assumed that no recovery catalog is available. If one is available, simply amend the RMAN command to include it.
rman target sys@<source_database> nocatalog auxiliary /
duplicate target database to <clone database name>;
thats it
For RMAN Cloning refer:
follow the documentation replace the destinations/locations with your location/folder/destination in source and target database.
http://www.dba-oracle.com/t_copy_clone_windows_database.htm
http://www.shutdownabort.com/quickguides/clone_rman.php
http://www.akadia.com/services/ora_duplicate_database_rman.html
for manual cloning in windows refer the link below:
http://coskan.wordpress.com/2007/04/20/adding-new-database-to-windows-without-dbca-or-rman-clone-or-rman-restore/ -
ASM resource online and ASM idle instance
Hi all,
SO..........: CentOS 5.8 32bits (VM - VirtualBox)
Oracle...: 11gR2 (11.2.0.1.0)
On my test environment, i have a VM running Oracle Clusterware and 2 11g instances. The problem is: The ASM service appears online (through ./crsctl status resource -t, see below), but when a try to connect to the ASM instance as sysasm, it shows me that the instance is idle, and if i try to startup it, the message "ORA-15149: another ASM instance found running on the host" is shown to me.
--output of ./crsctl status resource -t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
ora.DATA.dg
ONLINE ONLINE vm-cent5
ora.DG_MANOBRA.dg
ONLINE ONLINE vm-cent5
ora.LISTENER.lsnr
ONLINE ONLINE vm-cent5
ora.asm
ONLINE OFFLINE vm-cent5 Instance Shutdown
Cluster Resources
ora.auxdb.db
1 ONLINE ONLINE vm-cent5 Open
ora.cssd
1 ONLINE ONLINE vm-cent5
ora.diskmon
1 ONLINE ONLINE vm-cent5 If i try to start the ora.asm resource through ./crtctl start, the following output is shown:
[root@VM-Cent5 bin]# ./crsctl start resource ora.asm
CRS-2672: Attempting to start 'ora.asm' on 'vm-cent5'
ORA-01012: not logged on
CRS-2674: Start of 'ora.asm' on 'vm-cent5' failed
CRS-2679: Attempting to clean 'ora.asm' on 'vm-cent5'
CRS-2681: Clean of 'ora.asm' on 'vm-cent5' succeeded
CRS-4000: Command Start failed, or completed with errors.I am probably doing something stupid, but i still could not see what i'm doing wrong.
Any help will be appreciated. Thanks in advance.Just one thing that i saw in my recent tests. I restarted CRS (crsctl stop | start resource -all), and the asm service (ora.asm) was back online, both target and state, as you can see below:
[root@VM-Cent5 bin]# ./crsctl status resource -t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
ora.DATA.dg
ONLINE ONLINE vm-cent5
ora.DG_MANOBRA.dg
ONLINE ONLINE vm-cent5
ora.LISTENER.lsnr
ONLINE ONLINE vm-cent5
ora.asm
ONLINE ONLINE vm-cent5 Started
Cluster Resources
ora.auxdb.db
1 ONLINE ONLINE vm-cent5 Open
ora.cssd
1 ONLINE ONLINE vm-cent5
ora.diskmon
1 ONLINE ONLINE vm-cent5 ... but when i connect as sysasm using user oracle (sid +ASM), i see again the idle instance. -
When I set oraenv to O10G and use sqlplus /nolog, connect / as sysdba, it always says Connected to an idle instance. However, when I do sqlplus sys/oracle@O10G as sysdba, I get connected to either O10G1. Is this normal or did I miss something?
ThanksI am learning how to install and run oracle on linux.I have installed it on centOS 4.2 together with a startup general purpose database.I want to log in and I'm giving $sqlplus / as sysdba .It does not show anything about being connected to Oracle 10g but instead it brings up only 3lines 1. SQL*Plus Release info 2. Copyright info and 3.Connected to an idle instance .Thereafter it brings the sql prompt. A command startup pops two lines of errors after that. 1. Ora-01078: Failure in processing system parameters
2. LRM-00109: could not open parameter file '/oracle/10g/dbs/initrpc.ora'
rpc in initrpc is my SID, oracle is my base and oracle/10g is my home. I have set the necessary variables in /home/oracle/.bash_profile and parameters in sysctl.conf and refreshed the settings with /sbin/sysctl -p command.
Help.I am following a tutorial on http://www.dizwell.com/prod/node/50?page=0%2C4 and that's the page I am stuck on. -
Revision: 14143
Revision: 14143
Author: [email protected]
Date: 2010-02-12 05:30:48 -0800 (Fri, 12 Feb 2010)
Log Message:
Should have happened long time ago but deprecated idle-timeout-minutes in Servlet-based streaming channels and introduced connection-idle-timeout-minutes. This way both Servlet-based and NIO-based channels have consistent timeout config.
QA: No - I already tested.
Doc: Yes - If we have references to idle-timeout-minutes in the doc, should be changed to connection-idle-timeout-minutes.
Checkintests: Pass
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java
blazeds/trunk/resources/config/services-config.xmlls -l /var/run/lighttpd/
And how are you spawning the php instances? I don't see that in the daemons array anywhere.
EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
You will note that with pre-spawned information, the config looks different[1].
You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
[1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change" -
Hi,
my database is running fine . But it is showing as idle instance while connection as sysdba. I am able to connect using tnsentry .
how to fix this?
DB version: 10.2.0.1 experess edition -- Linux
Log
$sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Sep 29 06:11:22 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> exit
Disconnected
$ echo $ORACLE_SID
XE
$sqlplus system@xe
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Sep 29 06:11:45 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL>user2017273 wrote:
Hi,
my database is running fine . But it is showing as idle instance while connection as sysdba. I am able to connect using tnsentry .
how to fix this?
DB version: 10.2.0.1 experess edition -- Linux
Log
$sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Sep 29 06:11:22 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> exit
Disconnected
$ echo $ORACLE_SID
XE
$sqlplus system@xe
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Sep 29 06:11:45 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL>with *NIX ORACLE_SID is CaseSensitive
"XE" does not equal "xe" -
Agent Connection to Instance error in Oracle Database 11G EM
Hi
I am getting the following error message when logging into EM on Oracle 11G Database.
Failed to connect to database instance: ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach).
Users can connect to the database no problem and it shows the Database Instance down, Agent Connection to Instance failed. The General tab shows green and the database is up.
I have checked the emctl status and lsnrctl commands and the listener is up and servicing the database. I checked the ORACLE_SID environment (in Windows Server 2003) and this is correct.
I have recently changed the passwords for SYSMAN and DBNSMP which were due to expire and since then the EM console has not loaded correctly.
As I said the database is up and can service users through their application.
Any help would be appreciated.
Respect.Hi
The listener is up and is handling the database and users are connecting succesfully. I think it is more to do with the Enterprise Manager.
Can anyone give me some further info to troubleshoot?
Regards
Spencer
Maybe you are looking for
-
Hello All - I'm new to Java and I'm attempting to connect a newly created MySQL database to a simple Java application as shown here. import java.sql.*; public class SimpleJDBC { public static void main(String[] args) throws SQLException, ClassNotFoun
-
If both the iphone and ipad are locatable with the same apple id, should I expect the books purchased on one will appear in the book shelf of the other?
-
I have data in multiple character sets, eg. ASCII, IBM850, Windows1252, UTF8 etc. I want to insert them into the database. How do I specify the character set of the data at bind time in ODBC. If this is not possible, what is an alternative?
-
Hello, I browsed through most sections in metalink support certification tab, but still I can't find the certification matrix for Oracle developer Suite and enterprise database. Any idea where it is located? Thx Pierre
-
I have implemented a JCo Server using Example 5 in Jco Documentation. The Server shuts down automatically every other day with no dumps leading no trails on how to debug.when we restart, it runs just fine. my hunch is that the threads are not properl