I Am using oracle 11g and SQL developer tool. When i tried to retrieve rows from db i am getting error message as :-
ORA-01219: database not open: queries allowed on fixed tables/views only)
I looked for sgadef.dbf file and it was missing in home directory.. Can someone help me to make it working.
ORA-01219 means that the data dictionary is not allowable to be queried at MOUNT state. To solve the error, you should do either of the following ways: Open the database from MOUNT state, then query it again. Query the dynamic dictionaries V$TABLESPACE instead, which is allowable to be queried at mount state.
To resolve this issue, involve the DBA and make the databases to Read-Write mode instead of Read-only so that the users will able to connect and fetch data.
To solve ORA-01507, you need to open it to MOUNT state. SQL> alter database mount; Database altered. Then issue your RMAN commands again.
Opening a Closed Database To open a mounted database, use the ALTER DATABASE statement with the OPEN clause: ALTER DATABASE OPEN; After executing this statement, any valid Oracle Database user with the CREATE SESSION system privilege can connect to the database.
First of all check the status of the instance you work with (this may need to connect under administrator account):
select status from v$instance;
Probably you will get
STATUS
------------
MOUNTED
Under sys account try to complete
ALTER DATABASE OPEN;
and check that it's completed successfuly. If not - please share the result of output and alert log in your question.
If the problem is related to a pluggable database then you can do the following:
> SELECT name, open_mode FROM v$pdbs ORDER BY name; NAME OPEN_MODE ------------------- ORCLPDB MOUNTED
ALTER PLUGGABLE DATABASE orclpdb OPEN READ WRITE;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With