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.
Related
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.
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
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 am currently having issues configuring Oracle DB 11g on Ubuntu 14.04. I have successfully installed Oracle but the problem comes when I start configuring it.
First it was a invalid listener issue, after some extensive searching I found out that I had to put my domain name on 127.0.0.1 which I did (my domain name also contains dashes). After I made those changes, I ran into another error:
ORA-01109 database not open
I have had no luck with this one. What causes the "database not open" error and how could I fix it?
Try
ALTER DATABASE OPEN
It should work I guess.
Or Give this a try
$ sqlplus sys/Change12345#orc01 as sysdba
SQL> shut immediate
SQL> startup
and check the status of the instance use
SQL> select status from v$instance;
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)