ORA-16000 [message #238474] |
Fri, 18 May 2007 04:08 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
babuknb
Messages: 1736 Registered: December 2005 Location: NJ
|
Senior Member |
![babu.knb@gmail.com](/forum/theme/orafaq/images/google.png) ![babudba](/forum/theme/orafaq/images/skype.png)
|
|
Hi Dear's
I have create phyical standby database using oracle r2 in windows env.
SQL> SELECT NAME,DATABASE_ROLE FROM V$DATABASE;
NAME DATABASE_ROLE
--------- ----------------
KEYSTONE PHYSICAL STANDBY
SQL> ALTER USER SCOTT ACCOUNT UNLOCK;
ALTER USER SCOTT ACCOUNT UNLOCK
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-16000: database open for read-only access
How to solve this problem. Also, here i need to work in DDL and DML cmd in this database.
And, I can't able configure EMCA. this is my log file
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-16000: database open for read-only access
ORA-06512: at line 1
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1467)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1708)
at oracle.sysman.emcp.EMReposConfig.unlockAccounts(EMReposConfig.java:566)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:235)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
May 18, 2007 2:40:55 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Failed to unlock all EM-related accounts
May 18, 2007 2:40:55 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to unlock all EM-related accounts
Refer to the log file at F:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\KEYSTONESTDY\emca_2007-05-18_02-39-22-PM.log for more details.
May 18, 2007 2:40:55 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Failed to unlock all EM-related accounts
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:239)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:124)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:46
Thanks for your advice.
Babu B
[Updated on: Fri, 18 May 2007 04:14] Report message to a moderator
|
|
|
Re: ORA-16000 [message #238594 is a reply to message #238474] |
Fri, 18 May 2007 11:58 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
Hi,
You using this query on primary or standby??
SQL> ALTER USER SCOTT ACCOUNT UNLOCK;
ALTER USER SCOTT ACCOUNT UNLOCK
*
|
|
|
|
Re: ORA-16000 [message #238936 is a reply to message #238927] |
Mon, 21 May 2007 01:02 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
ORA-00604: error occurred at recursive SQL level string
Cause: An error occurred while processing a recursive SQL statement (a
statement applying to internal dictionary tables).
Action: If the situation described in the next error on the stack can be corrected,
do so; otherwise contact Oracle Support.
|
|
|
|
Re: ORA-16000 [message #238940 is a reply to message #238936] |
Mon, 21 May 2007 01:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
ORA-16000
R u sure your database is not in readonly mode??
ORA-16000: database open for read-only access
Cause: The database has been opened for read-only access. Attempts to modify
the database using inappropriate DML or DDL statements generate this error.
Action: In order to modify the database, it must first be shut down and re-opened
for read-write access.
|
|
|
|
|
|
Re: ORA-16000 [message #239173 is a reply to message #238944] |
Mon, 21 May 2007 12:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
I am sorry i saw ur this message right now
SQL> select log_mode,open_mode , database_role from v$database;
LOG_MODE OPEN_MODE DATABASE_ROLE
------------ ---------- ----------------
ARCHIVELOG READ ONLY PHYSICAL STANDBY
this is ur physical standby and is in read only mode u cant issue any alter user and such kind of statements in ur physical standby what u can do is that issue
alter user scott account unlock;
in ur primary database which is in READ WRITE mode .
|
|
|
|
Re: ORA-16000 [message #239568 is a reply to message #239192] |
Tue, 22 May 2007 12:26 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
|
kindly check ur primary database it shuld be like this
see the open_mode field must be READ WRITE so u can issue the statements here.
SQL> select log_mode,open_mode , database_role from v$database;
LOG_MODE OPEN_MODE DATABASE_ROLE
------------ ---------- ----------------
ARCHIVELOG READ WRITE PRIMARY
but as standby is in read only mode u cannot issue any statement.
|
|
|
Re: ORA-16000 [message #239596 is a reply to message #239568] |
Tue, 22 May 2007 13:20 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
harshad.gohil
Messages: 157 Registered: April 2007 Location: USA
|
Senior Member |
|
|
Read only mean only for selecting purpose, if you wants to make any changes in your database, just change mode to read and write mode change your database than recreate your standby database. Else fire that command on primary node, that will reflect on stanby node.
|
|
|
|