While I am trying to connect to my Oracle 11g DB, I am getting error "ORA-01033: oracle initialization or shutdown in progress error". To resolve this I am following following steps:
SQL> connect / as sysdba
SQL> shutdown abort
SQL> startup nomount
SQL> alter database mount;
SQL> alter database open;
But when I am executing "alter database open" command, I am getting another error - ORA-00333: redo log read error block 15472 count 3189.
I found out that we can resetlogs to fix this so I tried
ALTER DATABASE OPEN RESETLOGS; -- it gives an error that we can use RESETLOGS only after incomplete database recovery.
I am seeking help to resolve this issue and to find out where I am going wrong.
Seems that your redo log file is corrupted. It's required to clear redo log.....
You can follow following steps for the same:
Assuming that your database is on mount state and login as a sys with sysdba privilege:
alter system set "_allow_resetlogs_corruption"=true scope=spfile;
shutdown immediate;
Again, login as a sys with sysdba privileges(i.e. sqlplus sys as sysdba)
startup mount;
alter database open resentlogs;
recover database until cancel; --Here, you need to press when it prompts to specify a log.
alter database open resetlogs;
startup;
alter system set "_allow_resetlogs_corruption"=false scope=spfile; --Reverting back and bouncing the db for applying the changes.
shutdown immedaite;
startup;
try this pls:
connect /no log
(((connect with SYS user))
shutdown immediate
((start service in windows services))
alter database open
recover database using(logfile)
Related
I am new to Oracle. I had created a local Oracle database but I needed to drop it, so I dropped it using below commands.
sqlplus / as sysdba
SQL> shutdown immediate;
SQL> startup mount exclusive restrict
SQL> drop database;
Now I need to recreate local Oracle db so I tried below commands but I am getting errors now.
sqlplus / as sysdba
SQL> shutdown abort
SQL> startup
Getting errors on above command execution:
Also tried creating tablespace but getting below error:
Please help me.
I have an Oracle database that is running on Docker and a password from my user is going to be expired.
I tried alter profile <profile_name> limit password_life_time UNLIMITED; but got ORA-01031: insufficient privileges
AFAIK, in order to succesfully execute alter profile <profile_name> limit password_life_time UNLIMITED; I have to log in /as sysdba
Could you please give me a hint how can I workaround it in my case? Is it possible to connect /as sysdba in my case?
Just update their password.
ALTER USER EXPIRING_SOON IDENTIFIED BY NEW_PASSWORD;
This will reset the expiration window for the user.
To login as SYS w/o a password, open a terminal for your docker container, and run SQL*Plus from there.
Already read all the question related to this error, but couldnt resolve the issue.
As of yesterday, the oracle SMALLWORLD service has stopped working and the error is
ORA-12514 TNS:listener does not currently know of service requested in connect descriptor
the following are the system information to better understand the situation:
LISTENER.ORA content :Listener.ora
TNSNAMES.ORA content :TNSNAMES.ORA
SQLNET.ORA content :SQLNET.ORA CONTENT
the following is the result of
LSNRCTL SERVICES
command.
LSNRCTL.SERVICES result
as you can see the service name ATTACHMENTDB is recognisable, but service SMALLWORLD is not.
while trying to logon with sysdba, the result is
ORA-01017 invalid user name/password; logon denied
while trying to logon with SYSTEM user, the result is
ORA-01034 : ORACLE not available
and
ORA-27101 : shared memory realm does not exist
below image, is the result of SQLPLUS /NOLOG command
SQLPLUS /NOLOG
i already tried stopping and starting the ORACLE services and the Listener in the SERVICES.MSC, but nothing worked.
i don't understand why ATTACHMENTDB service works but not the SMALLWORLD service.
any hint appreciated.
I have this problem in windows 10 and Oracle19C.
You should try the following ways and one of them may work for you.
Way-1: In windows: use this video: restart services OracleOraDB19Home1TNSListener then OracleServiceORCL.
Way-2: connect with system user password to sql plus as shown as:
Enter user-name: system/ as sysdba
Enter password: your_password
SQL> shutdown
SQL> startup nomount
SQL> alter system set db_recovery_file_dest_size=4G scope=both;
SQL> alter database mount;
SQL> alter database open;
And now check your problem fixed? If no set below code then check again.
SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=127.0.0.1) (PORT=1521)))';
This work for me.
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;
I've recently installed Oracle 11g on an Ubuntu 12.04 machine.
I can't create a user; the following is the error I got
SQL> create user rachid identified by rachid;
create user rachid identified by rachid
*
ERROR at line 1:
ORA-01109: database not open
The instance is started :
SQL> select status from v$instance;
STATUS
------------------------------------
STARTED
Do you have any solution to overcome this issue ?
You can try to open it using
ALTER DATABASE OPEN
or you can try to shut it and start again and then try to create the user:
$ sqlplus sys/Change12345#orc01 as sysdba
SQL> shut immediate
SQL> startup