oracle initialization or shutdown in progress - oracle

I'm getting error: oracle initialization or shutdown in progress for a oracle database when connecting to it. I have oracle 11g installed in my machine. I cant even able to access my sql plus using "sys" account. Is there any way to know what is the sys account password in the oracle database?

In linux... kill oracle processes. pkill -9 -f oracle
Then sqlplus / as sysdba and run
SQL>startup force
Then exit and from shell run lsnrctl start
In Windows... Restart OracleService<SIDName> in Windows services. And follow the same.
Make sure path is set in both env.for commands to work.
Similar to How to resolve ORA-011033: ORACLE initialization or shutdown in progress

Related

Oracle XE 18c, on every connect attempt, Oracle listener OracleOraDB18Home1TNSListener stops, and I am unable to connect to any connection

For the purpose of learning, I have installed Oracle 18c XE v18.4.0.0 and Oracle SQL Developer v21.4.2. I have no previous experience with Oracle database.
Command LSNRCTL stat seems to show correct results:
LSNRCTL stat output
I am trying to connect to XEPDB1 Plugin database by using sqlplus command:
sqlplus system/oracle#192.168.1.102:1521/XEPDB1
(192.168.1.102 is my local IP)
but everytime I tried so, service OracleOraDB18Home1TNSListener (and listener also) stops.
Then I start it again manually and try again to connect to XEPDB1 but the same thing happen again.
Respond to connection command after few minutes is: ERROR: ORA-12537: TNS:connection closed.
Files listener.ora and tnsnames.ora are not modified after fresh installation of Oracle 18c XE.
Much appreciate if anybody can help me.

How to restart an oracle 11g database in windows 10 machine

Accidently killed the oracle 11g process via task manager.
Sql plus login throws error
ERROR:
ORA-12560: TNS:protocol adapter error
Log in with SQLPlus as sys using this command:
sqlplus / as sysdba
then shutdown the database using this command:
SHUTDOWN IMMEDIATE;
then startup the instance, mount the database, and open the database with this command:
STARTUP;

SQL> CONNECT / as SYSDBA ERROR: ORA-24314: service handle not initialized

I just installed Oracle 9i in my PC. For initial login I'm using following to unlock user.
Connect SQLPLUS using /nolog
Then when I use following command in SQLPLUS
SQL> CONNECT / as SYSDBA
I'm getting following error
ERROR: ORA-24314: service handle not initialized
Can anyone suggest where things are not going right?
Also I've noticed that SQLPLUS is not working from windows command prompt. I'm using windows 8.1 and oracle 9i (9.0.1.0.1)
Did you .oraenv to your database?
cat /etc/oratab
to get the dbname (if not already known).
edit: Also why not just issue:
sqlplus / as sysdba
?

How to connect to newly installed Oracle XE instance?

I have installed Oracle XE on Win7 x64 machine. Installation completed successfully without problem, or perhaps installer didn't tell about them. But after installation I can't connect to database; its web interface is not working. I have looked through list of open ports, and there is no 8080 port as was noted during installation. Also I can't connect via SQLPlus.
SQL> connect SYSTEM
Enter password:
ERROR:
ORA-12638: Credential retrieval failed
Somewhere in the web it was told to edit sqlnet.ora file, I have changed it in the following way:
# SQLNET.AUTHENTICATION_SERVICES = (NTS)
SQLNET.AUTHENTICATION_SERVICES = (NONE)
and now I get next error
SQL> connect SYSTEM
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
What do I need to change so that I can connect to it?
I figured out the issue.
I was using domain login to install Oracle XE. If you are using domain login to install Oracle XE then the database creation will fail (though you may not get any error messages on that regard).
Solution:
Install Oracle using a local admin user.
Change SQLNET.AUTHENTICATION_SERVICES to (NONE) in sqlnet.ora.
Now login with your domain user to use oracle XE.
Check the Oracle services are started
Did you set your ORACLE_SID environment variable to the name of the instance you're connecting to?
Make sure oracle service is started.
did to ran netca after installation? - if not you can ran it from cmd
You can't connect using system if the instacne is down only as sysdba (user sys)
Make sure your ORACLE_HOME,ORACLE_SID,PATH environment variables are ok
If everything was ok then you can try to start/connect to the instance manually
Sample:
C:\Documents and Settings\asafm>
C:\Documents and Settings\asafm>
C:\Documents and Settings\asafm>sqlplus "sys as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Fri May 11 16:21:42
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 535662592 bytes
Fixed Size 1375792 bytes
Variable Size 360710608 bytes
Database Buffers 167772160 bytes
Redo Buffers 5804032 bytes
Database mounted.
Database opened.
SQL>
SQL>
SQL>select status from v$instance;
As Rejeev Divakaran said, installing oracle XE with local windows user, and switching back to domain user account, started db, able to connect.
Config
Office Laptop
Windows 7 64 Bit
Oracle 11g XE
Can you connect this way from the command line:
sqlplus / as sysdba
if so at the SQL prompt enter
SQL>startup
If the command returns ok then try to connect with a username and password.
This error message usually occurs when the database could not be started. The windows service may be running, but still Oracle might not be able to spawn server threads and hand out client connections.
Have a Look into app\oracle\admin\xe\bdump\alert_xe.log for any error messages during the last start of the Oracle service.
Just in case someone is as "lucky" as me: I recently couldn't install Oracle with a local user (as suggested here before) because the target machine (Win2k8 x64) was also the Domain Controller of that network.
All users were in domain - no local users available :(
Here are the steps I performed:
Installed Oracle XE in my local machine (that works fine). Made a backup (using the built-in backup.bat);
Transferred the fast_recovery_area folder to my target machine;
Installed the Oracle XE in the target machine normally;
Edited the %ORA_HOME%\network\admin\sqlnet.ora file and performed this well-known edit:
SQLNET.AUTHENTICATION_SERVICES= (NONE)
Edited the %ORA_HOME%\bin\restore.bat file:
Replaced every entry rman target / (...) by rman target sys/MySysDbaPass (...)
Replaced every entry (...) connect / as sysdba^; by (...) connect sys/MySysDbaPass as sysdba^;
Runned restore.bat - when prompted, pointed to the fast_recovery_area I've transferred before.
Done! (pheew!)
Sorry for answering this YEARS old question, but I managed to make it work...
Make sqlnet.ora change.
Run StopDB.bat
Run MakeDB.bat
This will create a demo database, reset the password to 'oracle', and will also allow you to connect without error.

Oracle error on startup "another startup/shutdown operation of this instance in progress"

I made a mistake in starting my local oracle instance. I did not set the oracle_sid before issuing sqlplus "sys as sysdba" and SQL> startup. Now I am unable to startup my instance. Please help me know how to shutdown the erroneous instance. Thanks.
close all sessions for this instance, or connect as sysdba and execute
shutdown abort
and then startup normally
Rename the file $ORACLE_HOME/dbs/lkinst<instance_name>
.
Then try shutdown abort

Resources