Log unsuccessful attemps connecting to database+Oracle error

Hi,
I've a simple trigger to log all user's unsuccessful attempts to connect to a database for the oracle error:ora-1017( invalid username/password when trying to login)
CREATE TABLE connection_audit (
login_date DATE,
username VARCHAR2(30));
-- trigger to trap unsuccessful logons
CREATE OR REPLACE TRIGGER T_LOGON_FAILURES
AFTER SERVERERROR
ON DATABASE
BEGIN
IF (IS_SERVERERROR(1017)) THEN
INSERT INTO connection_audit
(login_date, username)
VALUES
(SYSDATE, 'ORA-1017');
END IF;
END T_LOGON_FAILURES;
Now, I would've to log the unsuccessful attempts due to whatever Oracle error, along with the oracle error.
Can someone help me with the code changes?
Thanks,
Bhagat

I've created a trigger which inserts a record into table SERVERERROR_LOG for
every server error.
CREATE OR REPLACE TRIGGER T_LOG_SERVER_ERRORS
AFTER SERVERERROR ON DATABASE
** Purpose: T_LOG_SERVER_ERRORS TRIGGER -- THE SERVERERROR TRIGGER TAKES EVERY SERVER ERROR GENERATED
** FROM ORACLE PL/SQL AND PLACES IT INTO AN ORACLE TABLE.
** BY CAPTURING THE USER ID AND THE TIME OF THE ERROR, THE ORACLE ADMINISTRATOR WOULD BE
** IMMEDIATELY BE NOTIFIED VIA E-MAIL WHENEVER A SERVER ERROR OCCURS.
DECLARE
ls_user varchar2(30);
ls_osuser varchar2(30);
ls_machine varchar2(64);
ls_process varchar2(9);
ls_program varchar2(48);
BEGIN
SELECT username,osuser,machine,process,program
INTO ls_user,ls_osuser,ls_machine,ls_process,ls_program
FROM V$SESSION
WHERE audsid=userenv('sessionid');
INSERT INTO SERVERERROR_LOG
VALUES(
dbms_standard.server_error(1),
localtimestamp,
ls_user,
ls_osuser,
ls_machine,
ls_process,
ls_program);
END;
And My procedure below queries the table and notifies the Oracle Admin by
E-mail for every server error.(P_NOTIFY_SERVER_ERR is the procedure which does the job of sending mail to Admin).
PROCEDURE P_SERVER_ERRORS
AS
** Purpose: PROCEDURE FOR CHECK FOR SERVER ERRORS .
** INVOKE THE PROCEDURE P_NOTIFY_SERVER_ERR,WHICH NOTIFIES THE ORACLE ADMIN
** EVERYTIME SERVER ERROR OCCURS.
CURSOR C_SERVERERROR_LOG
IS
SELECT * FROM SERVERERROR_LOG;
BEGIN
FOR lc_servererror_log IN c_servererror_log
LOOP
P_NOTIFY_SERVER_ERR(lc_servererror_log.error,
lc_servererror_log.error_dt_time,
lc_servererror_log.username,
lc_servererror_log.osuser,
lc_servererror_log.machine,
lc_servererror_log.process,
lc_servererror_log.program);
END LOOP;
END P_SERVER_ERRORS;
An Oracle job executes procedure P_SERVER_ERRORS once every 5 minutes.
Thanks every one for your valuable suggestion.
Cheers!!!!
Regards,
Bhagat

Similar Messages

  • Please help, probleme de connection to database oracle and  java

    Ihave a problem to make connection to database Oracle when I use a simple code of java
    ======================
    import java.sql.*;
    public class Exemple1 {
    public static void main (String args[]) {
    Statement stmt = null;
    Connection con=null;
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:GB","scott","tiger");
    catch (Exception e) { System.out.println(e);        }
    =================
    I have :
    * Linux (Fedora core3).
    * Oracle 10g
    My var. environ.:
    * ORACLE_HOME=/u01/app/oracle/product/10.1.0/Db_1
    * PATH=$ORACLE_HOME/bin
    * CLASSPATH=$ORACLE_HOME/jdbc/lib/ojdbc14.jar
    the error is:
    Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: oracle.sql.CharacterSet
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at JvResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at oracle.jdbc.driver.DBConversion.DBConversion(short, short, short) (Unknown Source)
    at oracle.jdbc.driver.T4CConnection.connect(java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.T4CConnection.logon() (Unknown Source)
    I don't know what's heppen exactly?

    If
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    is replaced
    with
    Class.forName("oracle.jdbc.driver.OracleDriver");does the java.lang.NoClassDefFoundError: while resolving class: oracle.sql.CharacterSet get generated?

  • I want to connect a DataBase(oracle) through Tomcat5.

    i want to connect a DataBase(oracle) through Tomcat5.
    pls tell me the steps how can i do this .or pls give me any link
    thanks previously

    The bottom line is. If you can't figure this part out on your own then you have no business doing any JDBC programming anyway. Think of it as a minimal competency test to make sure it's safe for you to proceed. It isn't safe yet.

  • Cannot connect to database: TNS error

    Hello,
    Please can anyone help? <br><BR>
    I'm running a 10g database on a vmware image. <BR>
    In the same image i installed OBIEE 10.1.3.3.1. <br>
    When i do not start the BI server, i can update the row count in the repository.<BR>
    However, as soon as i start the BI server i get the following error message: <br><BR>
    ++++++++++++++++++++++++++++++++++++++++++++ <BR>
    Query Status: Query Failed: [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement.<BR>
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach. <BR>
    [nQSError: 17014] Could not connect to Oracle database.
    <br>
    ++++++++++++++++++++++++++++++++++++++++++++<br><BR>
    I get the same error message in when trying to run a query in dashboards.
    This is what i checked:
    <UL>
    <LI>connection pool uses OCI10g/11g </LI>
    <LI> data source name in the connection pool is exactly as in the tnsnames ora </LI>
    <LI>path variable in XP points to the database: <br>C:\oracle\o10g\bin;C:\oracle\o10gclient;C:\Oracle\OracleBI\server\Bin;C:\Oracle\OracleBI\web\bin;C:\Oracle\OracleBI\web\catalogmanager </LI>
    <LI> can tnsping the database: <br>tnsping o10g --> uses parameter files: c:\oracle\o10g\network\admin\sqlnet.ora </LI>
    </UL>
    Has anyone another idea how to find the problem?<BR>
    Thanx 4 help!<BR>
    Sandra

    Hi Ripley,
    thanx for your reply.
    I do have 2 oracle homes, because i have the database and the client tools installed.
    I have the directory in front of the path variable that describes the database oracle home (o10g). I also tried to put the path in front from BI ... but it didn't work either.
    The listener and database are up and running.
    I checked the thread you described, but am not sure which part you want me to check. The one about the listener?
    But isn't it strange that i can update rowcount when the bi server is not running but it does not work when the bi server IS running?
    Thanks for your help
    Sandra

  • Connect between database oracle and jdeveloper

    i want a simple example to connct database oracle and jdeveloper
    to insert record or update or delete or query

    The easy way: http://www.oracle.com/technology/obe/obe1013jdev/10131/masterdetail_adf_bc/master-detail_pagewith_adf_bc.htm
    Or if you want to hand code JDBC then:
    http://www.oracle.com/pls/db111/to_toc?pathname=appdev.111%2Fb28765%2Ftoc.htm&remark=portal+%28Books%29

  • [b]How can i connect with database(oracle 9i) from form developer at runtim

    Hi Friends,
    My problem is as follows, please show me a way.
    Let's asume, I have form (developed in 6i) which has database data block. Now, at form level a have assigned on_logon trigger and I have written the following PL/SQL statement in that trigger:
    begin
    null;
    end;
    So, when I run this form without connecting to database It does not prompt for a connection. Now I have button lebeled as "Connect" in this form, when user will click on it it will display a window having text boxes to enter user name, password and database name; once the user fill those text boxes and click on a button lebeled as "Ok" then the form runtime environment should be connected with database as per information provided by user. Here to mention that the user already been created, only the connection will be stablished. For example: I want to connect the form with database as "scott/tiger@oradata9i".
    To do this, what PL/SQL command statement should i write in that "OK" button's "when_button_pressed" trigger?
    If any of you know about this please help me.

    Hi
    I've answered this question already. If I understand you right, you can use 'LOGON' built-in of Forms. Take a look into documentation.

  • 1016: Could not connect to database - Oracle returned ORA-00257: archiver e

    Dear buddies,
    Receiving the above stated error.
    Removed my old arch files to a different drive and now still getting the error.
    How can I go about this.
    Please advice.
    Thanks!
    Note: I am using Oracle 10g on a Windows platform
    Edited by: user645399 on Jul 26, 2012 6:36 PM

    After 1000+ posts you must understand that 10g is not a version number but a marketing label. This is what the error message says,
    ORA-00257: archiver error. Connect internal only, until freed.
    Cause: The archiver process received an error while trying to archive a redo log. If the problem is not resolved soon, the database will stop executing transactions. The most likely cause of this message is the destination device is out of space to store the redo log file.
    Action: Check the archiver trace file for a detailed description of the problem. Also, verify that the device specified in the initialization parameter archive_log_dest is set up properly for archiving.If you have merely deleted the files using the o/s command, it won't update the Control File that those files are not available any more and the space mapped by them must be released. So you must use the RMAN's command crosscheck to confirm the deletion and mark the file's status as expired and then you would have to issue delete expired . Other than this, the only option would be to add more space to the destination where you are storing the archive logs.
    HTH
    Aman....

  • MySQL Connection - Select Database - HTTP Error Code 405 Method Not Allowed?

    We've set up a MySQL database with our host and can connect to that, and create, edit, delete tables using HeidiSQL, without a problem.
    However when we attempt to set up the connection in the Databases tab of our Applications panel in Dreamweaver we receive the following error:
    HTTP Error Code 405 Method Not Allowed
    We have entered the following in the MySQL Connection box:
    Name: <name of our connection>
    Server: <IP address of our database>
    Username: <our database username>
    Password: <our database password>
    Database:
    When we click the "Select" option next to the Database field, that's when we receive the above mentioned error.
    We noticed that there was a fix posted by Adobe at:
    http://www.macromedia.com/support/dreamweaver/ts/documents/err405.htm
    ...but that link is long since dead, however it does seem to indicate that Adobe are/were aware of this issue.
    Can anyone help?  We're trying to move from Classic ASP / MSSQL to PHP / MySQL but have hit a barrier right from the off, which isn't very encouraging.  Hope someone can ease our concerns with PHP and MySQL.
    Much appreciated.
    NJ

    Thank you SnakEyez02.
    I had the Testing Server set to Local/Network but didn't have MySQL installed locally.  Changed that setting to FTP and it picked up on the database correctly.
    When using MSSQL it doesn't matter whether you choose Local/Network or FTP it just picks up the online database regardless.  I guess this must just be a difference between it and MySQL.
    Thanks for the advice.  Much appreciated.
    NJ

  • Help: FORMS SERVER cannot connect to database (forms patch9)

    Hi:
    I've installed oracle 9i database and oracle 9ias 1.0.2.2.2a.
    I configured FormsServlet and it's working very well as i suceed my test in http://machina.domain/servlet/oracle.forms.servlet.ListenerServlet!
    The problem is that i cannot connect to the database and i got the error ORA-12203 TNS: Unable to connect to destination!
    I've changed jserv.properties as recommended in 9ias 10222 release notes by commenting the wrapper.env=ORACLE_HOME in OJSP because it conflicts with forms server home.
    I've read all about this, and i still cannot connect to the database.
    I'm using a forms servlet configuration with IE JVM.
    If anyone can help me... i apreciate it!
    By the way in my jserv.properties forms server config i have:
    # Oracle Forms and Reports Servers
    wrapper.classpath=C:\ORACLE\806\forms60\java\f60srv.jar
    wrapper.classpath=C:\ORACLE\806\forms60\java
    If i have this the Test native method call (JNI) fails, but forms server keeps running. The error is:
    Calling RunformProcess.nInitLib()...
    RunformProcess.nInitLib() failed:
    java.lang.NoClassDefFoundError: oracle/forms/servlet/RunformProcess
    Your server configuration needs correcting. Please refer to the Forms documentation for details
    If i comment the f60srv.jar as showed here i suceed the test
    # Oracle Forms and Reports Servers
    # wrapper.classpath=C:\ORACLE\806\forms60\java\f60srv.jar
    wrapper.classpath=C:\ORACLE\806\forms60\java
    So... anyone help ?
    Ricardo
    PS: I can't understand why oracle keep sending huge amounts of releases of products and everytime they send a new release, that new release keeps coming with new bugs.

    Hi:
    This just connection problem just happen if i use formsservlet http connect mode. if i use normal HTTP (without servlet)connect mode with Jinitiator (1.1.8.16) i successfully connect to database (oracle 9i).
    Anyone there using 9ias 1.0.2.2.2a with forms server servlet and oracle database 9i ?
    thankx

  • Oracle Error :: ORA-12637 Packet receive failed

    Hi buddies,
    One of my staff's PC is receiving this error sometimes when she is trying to connect to the database and she is able to connect sometimes.
    Oracle Error :: ORA-12637 Packet receive failed What could be the cause.
    I tried replacing her tnsadmin with my tnsadmin and it didn't make a change, still able to connnect sometimes and sometimes not.
    Able to connect using PL/SQL developer, but not using our customized application. (Everyone else are able to connect)
    Is it network problem?
    Please advice.
    Thank You very much.
    Alagu
    Edited by: user645399 on Sep 16, 2009 8:37 PM

    And from this cut-and-paste the OP is supposed to take what actions to solve the problem? Please don't just post that which is one google away every time someone posts an ORA- exception. You make some valuable contributions here but just posting expanded text doesn't give someone a list of actions to take that will help them resolve the issue. Better the question is left unanswered so others will be more likely to offer help.
    To the OP:
    It is highly likely you have a network issue and the fact that it is isolated to a single machine makes it reasonably easy to fix. First try to figure out which component is failing. Go to the router or switch and swap wires between that client machine and another one that is working properly. Does the problem move? If not then swap the wires. Again does the problem move? Next the NIC card? What if you put another machine on the desk and put the original hard disk in it?
    Sometimes it just isn't worth the effort so you just swap out the machine.
    Intermittent problems are always hard to identify and fix. What is on your side is that this is only affecting a single user.

  • APP-00988 ORACLE ERROR 1632 IN GLXFJ1 APP-00988

    제품 : FIN_GL
    작성날짜 : 2005-11-28
    APP-00988 ORACLE ERROR 1632 IN GLXFJ1 APP-00988
    ===============================================
    PURPOSE
    GL Transfer시 에러 발생
    Problem Description
    GL transfer시 위 에러 메시지 발생
    Workaround
    N/A
    Solution Description
    alert.log에 특정 index에 대한 Index full에러를 찾는다
    APP-00988 ORACLE ERROR 1632 IN GLXFJ1 APP-00988
    GL.GL_BC_PACKETS_N2 Index를 Max extent를 늘려서 재생성
    Reference Documents
    4848290.993

    Pl see if this MOS Doc can help
    Defaulting Condition Validation Templates APP-FND-01564: ORACLE Error 24345 In Fdlget [ID 1452149.1]     
    HTH
    Srini

  • What protocol do i use to direct connect my DATABASE? instead of TCP/IP

    I read there's a protocol (or commmand or something) to directly connect my DATABASE (in a stand alone computer).
    how do i do that?
    because Since I have no network card installed in my computer and since i have a DHCP ADSL connection (thru usb modem), i cannot connect my DATABASE (ORACLE 9.2) and Developer 6I (both in my computer). WINDOWS XP (SP2).
    is there something to fix that?
    also when i start my LISTENER as soon as i connect thru sqlplus or make 1 test with TNSPING it crashes. :(
    is that because I dont have a fixed IP?
    i 've tried using 127.0.0.1 my Internet's IP, my host, LOCALHOST, and nothing fixes it.
    HELP

    Hi,
    Try using IPC. for example something like this:
    tnsnames.ora
    TESTDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = testdb)
    Listener.ora would have something like this:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    you may also have to change your init.ora if there are references to MTS/SHARED SERVER stuff.
    cheers,
    john

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • (Cisco Historical Reporting / HRC ) All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054

    Hi All,
    I am getting an error message "All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054"  when trying to log into HRC (This user has the reporting capabilities) . I checked the log files this is what i found out 
    The log file stated that there were ongoing connections of HRC with the CCX  (I am sure there isn't any active login to HRC)
    || When you tried to login the following error was being displayed because the maximum number of connections were reached for the server .  We can see that a total number of 5 connections have been configured . ||
    1: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Current number of connections (5) from historical Clients/Scheduler to 'CRA_DATABASE' database exceeded the maximum number of possible connections (5).Check with your administrator about changing this limit on server (wfengine.properties), however this might impact server performance.
    || Below we can see all 5 connections being used up . ||
    2: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:[DB Connections From Clients (count=5)]|[(#1) 'username'='uccxhrc','hostname'='3SK5FS1.ucsfmedicalcenter.org']|[(#2) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#3) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#4) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#5) 'username'='uccxhrc','hostname'='47BMMM1.ucsfmedicalcenter.org']
    || Once the maximum number of connection was reached it threw an error . ||
    3: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Number of max connection to 'CRA_DATABASE' database was reached! Connection could not be established.
    4: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Database connection to 'CRA_DATABASE' failed due to (All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054.)
    Current exact UCCX Version 9.0.2.11001-24
    Current CUCM Version 8.6.2.23900-10
    Business impact  Not Critical
    Exact error message  All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054
    What is the OS version of the PC you are running  and is it physical machine or virtual machine that is running the HRC client ..
    OS Version Windows 7 Home Premium  64 bit and it’s a physical machine.
    . The Max DB Connections for Report Client Sessions is set to 5 for each servers (There are two servers). The no of HR Sessions is set to 10.
    I wanted to know if there is a way to find the HRC sessions active now and terminate the one or more or all of that sessions from the server end ? 

    We have had this "PRX5" problem with Exchange 2013 since the RTM version.  We recently applied CU3, and it did not correct the problem.  We have seen this problem on every Exchange 2013 we manage.  They are all installations where all roles
    are installed on the same Windows server, and in our case, they are all Windows virtual machines using Windows 2012 Hyper-V.
    We have tried all the "this fixed it for me" solutions regarding DNS, network cards, host file entries and so forth.  None of those "solutions" made any difference whatsoever.  The occurrence of the temporary error PRX5 seems totally random. 
    About 2 out of 20 incoming mail test by Microsoft Connectivity Analyzer fail with this PRX5 error.
    Most people don't ever notice the issue because remote mail servers retry the connection later.  However, telephone voice mail systems that forward voice message files to email, or other such applications such as your scanner, often don't retry and
    simply fail.  Our phone system actually disables all further attempts to send voice mail to a particular user if the PRX5 error is returned when the email is sent by the phone system.
    Is Microsoft totally oblivious to this problem?
    PRX5 is a serious issue that needs an Exchange team resolution, or at least an acknowledgement that the problem actually does exist and has negative consequences for proper mail flow.
    JSB

  • Error while trying to connect to Database using Oracle instantclient

    I have a linux box where i have downloaded"instantclient-basic-linux.x64-11.2.0.3.0.zip". I have unzipped in /opt/instantclient_11_2.
    I am using this as a client in my code for connecting to the oracle 11g database which is in a different server. I have set the below env variables.
    LD_LIBRARY_PATH=/opt/instantclient_11_2
    CLASSPATH=/opt/instantclient_11_2:...
    PATH=/opt/instantclient_11_2:...
    When i run my program i am getting the below error.
    java.sql.SQLException: ORA-12154: TNS:could not resolve the connect identifier specified
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:765)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:414)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
    I am trying to connect through a thick client as below.
    Class.forName ("oracle.jdbc.OracleDriver");
                   Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@hostname_orcl", userid, pwd);
    I have seen in some forums that we need to set $ORACLE_HOME and $TNS_ADMIN env variables as well. But, here i am trying to connect to a remote database. what should i set these variables to as i don't have oracle in my machine??
    Thanks

    looks like you didnt complete the install of the instant client. the ORACLE_HOME and TNS_ADMIN points to the location of the tnsnames if you dont have the full tns string in your jdbc connection string
    https://kb.berkeley.edu/jivekb/entry.jspa?externalID=1826

Maybe you are looking for

  • Implement History, Back & Forward in custom code

    Hi All We have our custom developed Header Code, where we have controling Personalize, Logout, Favorite & Top level navigation code. I want to implement the SAP oup of box history, Back Forward functionality in custom developed code. Please help me h

  • How can I find exact username if I connected with sysdba privilege?

    I granted sysdba privilge to a database user. I can connect that user as sysdba. From that users session, 'show user' command showing "SYS" and also username from v$session is also showing "SYS". How can I find actual username used for connecting the

  • Editing Menus and Bottons in Photoshop

    I'm using the Tryout version 2.0 (my first experience with Encore). Whenever I try to edit a menu or button (Control+Shift+M), I get an error message stating that "Could not edit in Photoshop. Does not appear to be installed." I am currentlly running

  • 500 error while connecting to MySQL

    Hello, I am trying to execute a ASP script which connects to a MySQL database and creates an object. But the problem is, am getting 500 error when I try to execute the ASP page. Server error! The server encountered an internal error and was unable to

  • Multiple service policies on ASA

    I created a service policy that uses REGEX expressions to limit access to certain websites on my ASA firewall. I then applied this policy to the interface However, the global policy still exists on the firewall (the default), which, by design affects