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;
Related
Hi I want a to build Duplicate Database server in oracle 11g with rman duplicate feature I install software only not full database during installation.
Listner is started but when connecting sqlplus / as sysdba get this error ORA-12560: TNS:protocol adaptor error
OS is Windows Server 2012 R2
So I'm trying to configure debezium on a Oracle database inside this docker image, according to the documentation described here.
At the "Preparing the Database" the first config I have to do is:
ORACLE_SID=ORACLCDB dbz_oracle sqlplus /nolog
CONNECT sys/top_secret AS SYSDBA
alter system set db_recovery_file_dest_size = 10G;
alter system set db_recovery_file_dest = '/opt/oracle/oradata/recovery_area' scope=spfile;
shutdown immediate
startup mount
alter database archivelog;
alter database open;
-- Should now "Database log mode: Archive Mode"
archive log list
exit;
The problem is that when I run shutdown immediate, the database dies and never returns. When I try to run:
docker exec -ti oracle sqlplus sys/top_secret#localhost:1521/ORCLCDB as SYSDBA
I get the error:
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 10 07:44:23 2021
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
I tried running this script inside the container, but still nothing. Anyone knows how could I start the database again?
There are 2 solutions for this
create a static listener configuration that has the database defined in the listener. Doing so enables startup through sqlnet like you tried.
run the script on the server using an account that is member of the local dba group. For startup use something like: ORAENV_ASK=NO; ORACLE_SID=ORCLCDB; source oraenv; “echo startup”| sqlplus / as sysdba.
This asumes that ORCLCDB is listed in /etc/oratab
I have installed Oracle 11g XE successfully. I have applied the bash profile from the the oracle user (source ~/.bash_profile). It applied successfully. SQL*plus can also connect connected.
But whenever I type the command lsnrctl status, it shows no listener listening.
I am getting following ORA errors. I tried it every single solution from Google
ORA-12546: TNS: permission denied
TNS -12537: TNS connection closed
TNS -12560: TNS Adapter Error
TNS-00507: connection closed
Linux Error :29(Illegal Seek)
0RA- 27369 - Operation not Permitted
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
?
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