![]() |
|||||||
![]() |
|||||||
|
Admin/Install >> Oracle/JDBC
How can I determine who is consuming the database connections? A JDBC SQLException with the message, "java.sql.SQLException: ORA-00020: maximum number of processes (nn) exceeded" means that the Oracle database has reached the maximum number of connections allowed by the instance. There is no easy way to determine who is taking up all of the connections, but there are a few tables in the database that help to investigate the problem. These are system views/tables. They are V$SESSION, V$PROCESS, V$ACCESS, V$SQLTEXT. The table V$PRCESS lists all of the processes in the instance and there may be more than one session per process in the instance. The relationship between the V$PROCESS and V$SESSION tables is based on the column PADDR in the session table and the column ADDR in the process table. Here are a few helpful SQL statements that will give you an idea as to what is going on:
Consult the Oracle Database Administrator reference to get more details on these tables. If the DBA didn't grant public select privilege on these tables/views, you have to log on as a DBA to run the select statements.
How can I increase the number of concurrent connections to an Oracle Database instance? There are database processess and a parameter that can be set in the Oracle init.ora file. Edit the proper init.ora file that is usually under the $ORACLE_HOME/dbs directory. Set the parameter processes to the desired number. The entry and processes = 100, and will set the limit to 100 concurrent connections. Shutdown the database and restart. If the database fails to restart properly, then it could be that the processes number exceeds the Unix system parameter. You may need to update the semaphores of the database machine. Refer to your Oracle database installation and administration guide for the system parameter requirements.
What does the message "ERROR: ORA-12154:TNS:could not resolve service name" mean? Oracle must know the location of some administration files in order to work properly. One of the most important files is tnsnames.ora. This file defines the TWO_TASK, ORACLE_SID, and PORT. These variables are very important. If you supplied a TNS_ADMIN directory that is not correct, you will get errors related to TNS. Make sure the TNS_ADMIN directories entered during installation and configuration are the correct directories and that they contain a valid tnsnames.ora file. You can refer to some hints in the Troubleshooting Guide for further information.
This SQLException is thrown when the process fails to use the JDBC driver in connecting to the database using the given instance information. Check the host name, port number, Oracle SID, userid, and password entered during the installation of the OpenFusion. This information can be found in the file openfusion.properties in the OpenFusion classes directory. If all the information is correct, the problem may be because the network or OpenFusion database is down.
How can I find out how much space is being used in the ADS with the OSP persistence objects? You can find out how much space is used by the OSP persistence objects by each user with the following sql statement. First log onto sqlplus as the owner of the persistence object tables. SELECT USER_ID, COUNT(*), SUM(BYTES), Count(*) returns the number of persisted objects for the user. Here is an example result: USER_ID COUNT(*) SUM(BYTES) AVG(BYTES) ------- --------- -------- ---------- abc 1693 18743226 11071.0136 def 3 7769 2589.66667 ghi 139 867660 6242.15827 jkl 10 48800 4880 mno 985 5316588 5397.55127 pqr 2 2246 1123 stu 2471 98325903 39791.9478
How can I find out how big my ADS database is and where the data files are? You can find out the amount of space allocated to the ADS database by using the following sql statements. The views used in the statement are system views. If your DBA hasn't granted the public select privileges to these views, you will have to log onto sqlplus as a DBA to use the views. SELECT FILE_NAME, BYTES FROM This statement will return the list of files used to store database objects such as, tables, indices, etc, that are created by the owner 'OSP2001'. Replace OSP2001 with your ADS oracle username. Here is a result of the above statement: FILE_NAME BYTES --------------------------------- -------- /usr/local/oracle/dbs/OSP2001 398458880
What does it mean if I get an Oracle 1033 error message? Cause: Oracle Database is not running or is in the process of starting up. Solution: If the problem persists, it may be caused by the deletion of an Oracle table space file prior to dropping the table space within Oracle. You can usually ascertain whether this is the problem by observing the problem data file during the Oracle startup logs. First, NEVER delete an Oracle Tablespace file prior to dropping it from Oracle. However, if this occurs, the following procedure will repair the database, allowing it to startup properly. Log in as your oracle user account. This needs to be the account that owns the installation. Get into a proper Oracle environment. You can usually find a file in the Oracle installation directory called Oracle_Runtime.csh. Source this file and then check to be sure that ORACLE_SID is set to the instance name of the instance you want to repair. % Run svrmgrl SVRMGR> connect internal Now you must do the following commands, maybe several times, before you can start successfully. When you do a startup at first it should complain about the deleted data file. This is the data file that needs to be dropped in the alter command below: SVRMGR> shutdown abort SVRMGR> startup SVRMGR> alter database datafile '' offline drop; Sometimes you need to perform the three above commands several times before it takes properly.
The installer is looking for the existence of an empty table named OPENSPIRIT To verify that the oracle account's default table space is a table space dedicated to the OpenSpirit installation. If you create the table space through our installer it will create this table. We also provide a script on our web site that can be used to create the table space outside of our installer: If you already have a table space, you can go into sqlplus and issue the following command. CREATE TABLE openspirit (id NUMBER PRIMARY KEY);
|
|
|||||||||||||||||||||||||||||||||||||||||||