9 ORA-12315 to ORA-12354

ORA-12315: database link type is invalid for the ALTER DATABASE statement
Cause: The database link name you specified on the ALTER DATABASE statement is not an ROM: link. You must specify an ROM: link when using the ALTER DATABASE statement to mount or open a secondary database.
Action: Re-issue the ALTER DATABASE statement using a valid ROM: link to the database you want to mount or open. If a valid ROM: link does not exist, create one using the CREATE DATABASE LINK command. See the Trusted ORACLE RDBMS Guide to Security Features for more information about creating database links using the ROM: link type.
ORA-12316: syntax error in database link's connect string
Cause: The connect string in the CREATE DATABASE LINK statement has a syntactical error.
Action: Drop the database link and recreate it using valid syntax. See the SQL Language Reference Manual for more information about the connect string portion of the CREATE DATABASE LINK statement.
ORA-12317: logon to database (link name string) denied
Cause: There are several possible causes for this error. First, you can get this error if your username (and password, if you are using database instead of operating system authentication) in the secondary database are not identical to your username (and password) in the primary database. Second, you can get this error if your username in the secondary database is invalid (has not been created). Third, you can get this error if the username/password combination specified in the connect string of the database link definition is invalid (either not created or has an invalid password).
Action: In the first case, ensure that the secondary database contains a username (and password, if you are using database authentication) identical to the one you are using in the primary database. In general, you should always use operating system authentication in Trusted ORACLE (see the Trusted ORACLE RDBMS Guide to Security Features for more information about the advantages of OS authentication). In the second case, ensure that your username in the secondary database has been created. In the third case, ensure that the username specified in the connect string has been created in the secondary database.
ORA-12318: database (link name string) is already mounted
Cause: You are attempting to mount a secondary database that has already been mounted by your instance.
Action: to mount it. To establish access, use the ALTER DATABASE <linkname> OPEN command to open the database.
ORA-12319: database (link name string) is already open
Cause: You are attempting to open a secondary database that is already open.
Action: The database is open and you need not take additional action to establish access.
ORA-12321: database (link name string) is not open and AUTO_MOUNTING=FALSE
Cause: The secondary database that your instance is attempting to mount is not open and automatic mounting has not been enabled.
Action: Manually mount and open the secondary database using ALTER DATABASE <linkname> with the OPEN and MOUNT options. Alternately, to allow your instance to automatically mount and open secondary databases, set the AUTO_MOUNTING parameter in the parameter file to TRUE.
ORA-12322: unable to mount database (link name string)
Cause: This message should be accompanied by additional error messages that indicate the cause of the problem.
Action: Follow the steps outlined in the accompanying error messages to resolve the problem.
ORA-12323: unable to open database (link name string)
Cause: This message should be accompanied by additional error messages that indicate the cause of the problem.
Action: Follow the steps outlined in the accompanying error messages to resolve the problem.
ORA-12324: cannot use the ROM: link type on a private database link
Cause: You can only specify the ROM: link type on a public, not a private, database link.
Action: Determine if there is an existing public database link to the secondary database. If not, and if you wish to establish public access to the secondary database, create a public database link to the secondary database using the CREATE DATABASE LINK command.
ORA-12326: database string is closing immediately; no operations are permitted
Cause: The database you attempted to access is closing, so your operation has been terminated.
Action: Wait until the database has been reopened, or contact the database adminstrator.
ORA-12329: database string is closed; no operations are permitted
Cause: The database you attempted to access is closed, so your operation has been terminated.
Action: Wait until the database is reopened, or contact the database administrator.
ORA-12333: database (link name string) is not mounted
Cause: You attempted to open a database that has not been mounted.
Action: Mount the database with the ALTER DATABASE <linkname> MOUNT command, then re-attempt to open the database.
ORA-12334: database (link name string) is still open
Cause: You attempted to dismount a database that is still open.
Action: Close the database with the ALTER DATABASE <linkname> CLOSE command, then re-attempt to dismount the database.
ORA-12335: database (link name string) is not open
Cause: You attempted to close a database that is not open.
Action: The database is closed; you can proceed with dismounting it.
ORA-12336: cannot login to database (link name string)
Cause: You are tyring to login while another user is mounting or dismounting the same database.
Action: Check to see if the database is in the middle of being mounted or opened and try your login again once the database is accessible.
ORA-12341: maximum number of open mounts exceeded
Cause: The number specified on the OPEN_MOUNTS parameter in the parameter file exceeds the maximum allowed (255).
Action: Change the value of this parameter so that it reflects the actual number of possible open mounts to secondary databases. This must be less than 255.
ORA-12342: open mounts exceeds limit set on the OPEN_MOUNTS parameter
Cause: The number of currently open mounts exceeds the value you specified on the OPEN_MOUNTS parameter.
Action: Increase the value of the OPEN_MOUNTS parameter so that it accommodates the maximum possible number of open mounts to secondary databases.
ORA-12345: user string lacks CREATE SESSION privilege in database link (linkname string)
Cause: There are several possible causes for this message: First, you will get this message if your username in the second database specified was not granted the CREATE SESSION system privilege. Second, you will get this message if the username specified in the connect string of the database link definition was not granted the CREATE SESSION system privilege.
Action: The action you take depends upon the cause of the message: In the first case, ensure that your username in the secondary database was granted the CREATE SESSION system privilege. In the second case, ensure the username specified in the connect string of the database link definition was granted the CREATE SESSION system privilege in the secondary database.
ORA-12350: database link being dropped is still mounted
Cause: An attempt was made to drop a ROM: database link that was still mounted and/or opened.
Action: Close and dismount the database and then re-issue the drop statement.
ORA-12351: cannot create view using a remote object which has a remote object reference
Cause: You tried to create a view which references a remote object which, in turn, references an object on another database. Since the view that you tried to create references a remote object, that object cannot reference an object on another database.
Action: Choose a different object to reference in your view or change the remote object so that it does not reference another database.
ORA-12352: object string.string@string is invalid
Cause: An attempt was made to reference (compile against) an object of a secondary database but the object is invalid and the system cannot validate or recompile it because it is in a secondary database.
Action: Manually recompile the invalid object in the secondary database.
ORA-12353: secondary stored object cannot reference remote object
Cause: You tried to either select from a remote view or execute a remote procedure which references an object on another database. Since the remote view or procedure is on a secondary database, an additional reference to another database cannot be done.
Action: Choose a different object to reference or change the remote view or procedure so that it does not reference another database.
ORA-12354: secondary object being dropped
Cause: You tried to access a object (for example, a table or view) on a secondary database that was in the process of being dropped.
Action: Repeat the operation. If you receive this message again, try to access the object from the secondary database. If you receive an internal error or a trace file, contact Oracle WorldWide Technical Support.