Error connecting to Sybase database through WSAD

In my jsp page I am trying to connect to Sybase database within WSAD.
Here is my code:
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/AimDB");
Connection con = ds.getConnection();
It is giving an error message:
Error 500: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.
On console below error message is coming:
E SRVE0026E: [Servlet Error]-[Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.]: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.Exception: Failed security check. Client is not permitted to create connection factory jdbc/AimDB
     at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.createMCFandPM(ConnectionFactoryBuilderImpl.java:1566)
     at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFactoryBuilderImpl.java:1188)
     at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
     at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
     at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1762)
     at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1615)
     at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1525)
     at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1225)
     at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
     at javax.naming.InitialContext.lookup(InitialContext.java:359)
     at org.apache.jsp._Test1._jspService(_Test1.java:89)
Thanks,
Vineet

Hi ,
Any body have this solution ??? I am using wsad -5.1.2 .When I try to access datasource from test server I got this same problems....
I tried whatever instructs in above link.But after that I got same problem ....
Sorry,for bad english
advance thanks

Similar Messages

  • Oracle Gateway Not Connecting to Sybase database

    Hi,
    I'm trying to setup an oracle gateway to connect to Sybase database. I followed in details the instructions but still can connect successfully. The Oracle database is in RAC environment. Below are the steps I took:
    The oracle gateway and oracle database are in the same server while Sybase is on a separate unix box.
    1. create an initdg4sybs.ora file
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Sybase
    # HS init parameters
    HS_FDS_CONNECT_INFO=[999.99.108.99]:4527/common ## IP address of sybase server
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    2. create a listener on the oracle gateway home
    # listener.ora Network Configuration File: /u03/app/oracle/gateway/11.2/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER_DG4SYSBS =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node A)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.24)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node B)
    SID_LIST_LISTENER_DG4SYSBS=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4sybs)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
    TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
    TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
    INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
    3. create tnsnames.ora in oracle database home
    dg4sybs =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)) #IP address of Node A
    (CONNECT_DATA =
    (SERVER = DEDICATED) #added for single node test
    (SID = dg4sybs)
    (HS=OK)
    4. create database link
    create database link dg4sybs connect to "user" identified by "password" using 'dg4sybs'
    5. when testing the connection; i'm getting below error message. tried all the setup based my research and couldn't make it work.
    SQL> select * from dual@dg4sybs
    2 /
    select * from dual@dg4sybs
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 7427
    Session ID: 495 Serial number: 787
    I perform above settings on a standalone database running in windows and successfully connect to the sybase. In UNIX setup, been unsuccessful. Can someone please help.
    Also, below is the trace file error message:
    Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.747
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.745
    Version 11.2.0.1.0
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
    ODBCINST set to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/dg4sybs.loc"
    RC=-1 from HOSGIP for "LD_LIBRARY_PATH_64"
    Setting LD_LIBRARY_PATH_64 to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib"
    HOSGIP for "HS_FDS_SHAREABLE_NAME_ICU" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libHGicu23.so"
    HOSGIP for "HS_FDS_SHAREABLE_NAME_INST" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbcinst.so"
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbc.so"
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using ro as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    SQL text from hgopars, id=1, len=20 ...
    00: 53454C45 4354202A 2046524F 4D202244 [SELECT * FROM "D]
    10: 55414C22 [UAL"]
    hgopars, line 526: calling SQLNumResultCols got sqlstate 42S02
    SQL text from hgopars, id=2, len=57 ...
    00: 53454C45 43542027 58272046 524F4D20 [SELECT 'X' FROM ]
    10: 2264626F 222E2273 79737573 65727322 ["dbo"."sysusers"]
    20: 20413120 57484552 45204131 2E226E61 [ A1 WHERE A1."na]
    30: 6D65223D 2764626F 27 [me"='dbo']
    Deferred open until first fetch.
    HS Agent received unexpected RPC disconnect
    Network error 1003:  NCR-01003: NCRS: Read error.
    Edited by: gonzroman on Oct 18, 2012 11:03 AM

    -=-=-=-=-=- tnsnames.ora on the UNIX side
    GTW_C100_COMN =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) #IP address of jrc1suvip01a
    #(ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) #IP address of jrc1sudb01a
    (CONNECT_DATA =
    (SERVER = DEDICATED) # added for single configuration
    (SID = dg4sybs_comn_c100)
    (HS=OK)
    -=-=-=-=-=- listener.ora of the GATEWAY
    LISTENER_DG4SYSBS =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)(IP = FIRST)) #IP address of jrc1suvip01a
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)(IP = FIRST)) #IP address of jrc1sudb01a
    #(ADDRESS = (PROTOCOL = TCP)(HOST = jrc1suvip01a)(PORT = 1543))
    SID_LIST_LISTENER_DG4SYSBS=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4sybs)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    (SID_DESC=
    (SID_NAME=dg4sybs_comn_c100)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
    TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
    TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
    INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
    -=-=-=-=- initdg4sybs_comn_c100.ora parameter
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Sybase
    # HS init parameters
    #HS_FDS_CONNECT_INFO=[glb0pod29.aexeo.citco.com]:4100/common
    HS_FDS_CONNECT_INFO=[209.87.108.99]:4527/common
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    -=-=-=-=- gateway listener status
    jrc1sudb01a:/u03/app/oracle/gateway/11.2/dg4sybs/admin $ lsnrctl status LISTENER_DG4SYSBS
    LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 20-OCT-2012 13:09:05
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1543)))
    STATUS of the LISTENER
    Alias LISTENER_DG4SYSBS
    Version TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
    Start Date 18-OCT-2012 13:16:24
    Uptime 1 days 23 hr. 52 min. 41 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u03/app/oracle/gateway/11.2/network/admin/listener.ora
    Listener Log File /u03/app/oracle/gateway/11.2/log/diag/tnslsnr/jrc1sudb01a/listener_dg4sysbs/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1543)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.26)(PORT=1543)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.24)(PORT=1543)))
    Services Summary...
    Service "dg4sybs" has 1 instance(s).
    Instance "dg4sybs", status UNKNOWN, has 1 handler(s) for this service...
    Service "dg4sybs_comn_c100" has 1 instance(s).
    Instance "dg4sybs_comn_c100", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    -=-=-=-=-=- tnsping output
    jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping dg4sybs
    TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:28
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs)) (HS=OK))
    OK (10 msec)
    jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping GTW_C100_COMN
    TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:35
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs_comn_c100)) (HS=OK))
    OK (0 msec)

  • Unable to connect to the database through OEM

    Hi,
    ORACLE VERSION: 10.2.0.1.0
    OPERATING SYSTEM:LINUX
    I was unable to connect to my database through OEM.It is showing error like this in my OEM .
    Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
    The below is the list of errors written in the trace file .
    2009-07-13 14:55:18,351 [EMUI_14_55_18_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
    java.lang.IllegalStateException: Response has already been committed
         at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
         at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
         at oracle.sysman.eml.app.Console.doGet(Console.java:135)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    2009-07-13 14:55:20,893 [HttpRequestHandler-25640626] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,925 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,926 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:20,959 [HttpRequestHandler-23946437] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,990 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,991 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:42,047 [OmsServiceDriver thread] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,030 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,062 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,063 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:51,096 [HttpRequestHandler-28346522] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,162 [HttpRequestHandler-32110028] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,193 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,194 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,227 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,258 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,259 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)

    Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    Don't say password is correct, if password is correct then tell us what last changes you did. did you change SYSMAN password throught alter user ...identified ... ?
    Regards,
    Taj

  • Avoiding concurrency errors when updating a database through AJAX

    What are some strategies for avoiding concurrency errors when updating a database through AJAX. That is, in cases where a given user could attempt to modify the same row in the database with simultaneous requests (say, that he updates one column with information with an AJAX call, then immediately submits a form that updates the same row), what are some good ways yo prevent the two updates from colliding? On the JavaScript side one might make the AJAX call synchronous, but I question whether that is the best way to do it. Has anyone else confronted this?

    Well, since no one seems to have any ideas so far, I'll throw in my two cents worth.
    I'm not too familiar with AJAX so my advice may be limited.
    I suggest you do a google search on Optimistic concurrency database to get some ideas on how to handle it.
    If your update/insert/delete query is thread safe, then even if the same user double clicks the button fast enough to immediately have another update to the same record, then the first update will complete before the second one is carried out. Therefore no harm is done since he is just updating the same record. Since a typical update/insert/delete takes only a few milliseconds (querying may take a lot more time), its not likely he can click the button that fast. (I assume your using connection pooling for speed).
    The trouble comes up when two people call up data from the same record in different browsers. The first one updates/inserts/deletes the record. Now the other user is looking at old data. When he updates/inserts/deletes, there is a problem. One way to handle this is to keep a copy of all the fields from that record in each user's session scope when they first fetch it from the database (example: oldName). Then when you go to update some time later, to this:
    sql= update person set name=newValue where personID=3344 and name=oldName
    Note oldName is from session scope.
    If name in the database has changed, the update will not occur and will return 0 records updated. If it didn't change, it will update.
    Note your update function should not throw an exception if it cant update, it should return false. Return true if it worked.
    Example: public boolean updateName(String name)
    Similiarly, your insert should not throw an exception if the record already exists, it should return false meaning it cant insert.
    Exaple: public bolean insertName(String name). Same thing with delete function.
    If a record cant be updated due to someone else updating the record while the user was looking at data, return a message that it wasn't updated due to that problem. Then show the user the new value in the database ask him if he wants to overwrite the new change.
    Note even if you show 100 records on the JSP, only update the ones that have changed and not all 100. This way, its not likely he has updated the same records someone else has altered. Less likely a colision compared to updating all 100.
    If your updating/inserting/deleting more than 1 record (say, 3), then you should look into setting up a transaction in addition to all the above and rolling back all of them if one fails.
    Reading the section on databases from http://www.javapractices.com/home/HomeAction.do may also help.

  • I want to connect Visual foxpro database through forms6i.

    Hi ,
    I want to connect Visual foxpro database through forms6i.
    actually i want to access Visual foxpro database in forms6i and retrive and update data from forms6i.
    please help me urgently how can i do this in forms6i.
    Thanks,
    Md.Muniruzzaman Khan
    Email : [email protected]

    do the following steps for hetrogenous service
    Step 1
    Create ODBC named Access1.
    Step 2
    Go to urs inithsodbc.ora file which reside at
    ORACLE_HOME\hs\admin\inithsodbc.ora
    and overrite by
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Access1
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Step 3
    Add the following entry to the tnsnames.ora file:
    ACCESS1.WORLD =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=ACCESS1))
    (HS=OK)
    Step 4
    Add the following entry into the listener.ora file:
    (SID_DESC=
    (SID_NAME=ACCESS1)
    (ORACLE_HOME=D:\Oracle)
    ---Define urs oracle home path in mine case it is at D:\Oracle--
    (PROGRAM=hsodbc)
    Step 5
    Reload the listener from contol panel services yours listener service
    Step 6
    Create a database link using:
    CREATE DATABASE LINK access1.world CONNECT TO "MyUser" IDENTIFIED BY "MyPassword" USING 'ACCESS1.WORLD';
    Step 7
    Connect to scott/tiger
    Query the table using:
    SELECT *
    FROM [email protected];
    Step 8
    Same you can connect to urs forms and write above sql in cursor
    Acknowledge me.
    Khurram Siddiqui

  • Can i connect to the database through the internet

    hi all
    i installed a database oracle 8i enterprise edition on a pc that exists in a town far from me . i wonder can i connect to this database through the internet from my house
    please i need a answer
    thanks in advance

    You can connect from an Oracle client to any Oracle database in the world that meets certain requirements.
    First you need an open network connection between the two points so either no firewall exists between the two stations or the firewall(s) have been configured to allow Oranet traffic. This means both databases must have access to the Internet and certain ports are open.
    Second you will need the IP address and port for the remote listener, which in turn must be up and running on the target server.
    Then you must have the Service Name or SID and a valid username/password combination for the target database. Plus the username must have create session privilege.
    That should be about it.
    HTH -- Mark D Powell --

  • Error while creating Auxiliary database through RMAN on the same host.

    I got the following error while cloning a stand by database through RMAN.
    I got the following error while cloning a stand by database through RMAN.
    [oracle@localhost admin]$ rman auxiliary sys/clonedb@clonedb
    Recovery Manager: Release 11.1.0.6.0 - Production on Mon Sep 19 10:51:48 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04006: error from auxiliary database: ORA-12154: TNS:could not resolve the connect identifier specified
    My LISTENER looks like this:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
    (SID_NAME = ora11g)
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
    (SID_NAME = CLONEDB)
    TNS Names:
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    CLONEDB=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = CLONEDB)
    And SQLNet.ora
    NAMES.DIRECTORY_PATH= (TNSNAMES,HOSTNAME, EZCONNECT)
    Any help would be highly appreciated.
    Thanks,
    -Revku.

    Hello,
    I think there is something wrong with the ")" in the listener.ora : the second SID_DESC is not part of the SID_LIST.
    Instead of
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
    (SID_NAME = ora11g)
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
    (SID_NAME = CLONEDB)
    )It should be :
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
    (SID_NAME = ora11g)
    (SID_DESC =
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
    (SID_NAME = CLONEDB)
    )Hope it will help.
    Regards,
    Sylvie

  • ORA-12547 error while creating new database through dbca

    i installed oracle 10g R2 on parallels virtuozzo container. (it is a product similar to openvz and solaris containers)
    added: oracle version is 10.2.0.1.0
    the installation goes off without too much fuss but when i try to create a general purpose database through dbca it throws up an error
    ORA-12547 : TNS lost contact
    my listener is up and runing and did stop and restart it. i also created a new listener after deleting the previous one.
    still the error persists.
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                19-MAY-2009 15:39:06
    Uptime                    0 days 0 hr. 55 min. 56 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /export/home/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File         /export/home/oracle/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfullyi am running dbca from oracle user only and i did ensure that the contents of the oracle home directory (on which oracle is installed) has permissions of oracle:oinstall.
    i am clueless as to what is causing this error.
    just to add to issues which i faced during installation on virtuozzo containers. containers does not allow me to create a swap space. but i had to ignore the error and go ahead with the installation with most of the steps followed from http://wiki.openvz.org/Oracle_10g_VE.
    please guide
    Edited by: iinfi on May 19, 2009 4:53 PM

    hi all
    virtuozzo during creation of containers doesnt install the following.
    sysstat-5.0.5-1
    libaio-0.3.103-3
    libaio-0.3.103-3 (i386)
    libaio-devel-0.3.103-3
    the oracle documentation tells us to install the following and so i didnt know i had to install other packages as well.
    make-3.79.1
    gcc-3.2.3-34
    glibc-2.3.2-95.20
    compat-db-4.0.14-5
    compat-gcc-7.3-2.96.128
    compat-gcc-c++-7.3-2.96.128
    compat-libstdc++-7.3-2.96.128
    compat-libstdc++-devel-7.3-2.96.128
    openmotif21-2.1.30-8
    setarch-1.3-1
    thanks for your time.

  • Connecting to sybase database

    Hi ,
    i have a requirement to connect to a sysbase database through DB adapter .. Can anybody tell me how can i configure sybase database in Oracle application server 10.1.3.4
    Regards ,
    Mohan

    Hi,
    I´m use Sybase AS Enterprise and in my physical conection is used:
    Driver:com.sybase.jdbc2.jdbc.SybDriver
    URL: jdbc:sybase:Tds:HOST:PORT
    Try this!
    Regards

  • Error connecting to open database in workflow.

    Hi all,
    I am getting following error while trying to open a database inside workflow.
    1700: Could not connect with username/password 'test/test@testENV' ('Error while trying to retrieve text for error ORA-01019
    I have oracle instantclient_10_2 installed and can connect to database through toad fine. I have set oracle_home, tns_admin etc.

    never mind. I got it fixed. It was windows registry I had to fix. Workflow created ORACLE_HOME in registry and it was referring to sqlnet.ora and tnsnames.ora through it. but my system variable ORACLE_HOME was pointing to my oracle instantclient_10_2. So I had to change my system variables to point to new oracle home which was in registry.

  • Unable to connect to SQL database through ODBC calls

    I have been looking around for an answer to this, but haven't found the exact issue I'm seeing.
    I have several Excel spreadsheets which have been working until recently, which use an ODBC call to a remote SQL database. The database is running, remote connections are allowed. The SQL server is in a domain which has no external trusts. Users with accounts
    in this domain can remotely access the SQl databases through ODBC just fine. Users who do not have domain accounts in this domain are being denied access by their domain account, and the SQL authentication is not passed through, even though remote access is
    set to allow "everyone", and the database is set to Windows authentication and SQL authentication. This worked until early this week (the spreadsheet was created in 2010), and I have been looking fruitlessly for a fix ever since. As far as I know,
    no changes were made to group policy on this domain, and no changes were made to the server or database recently, except Microsoft patches. None of the patches this month looked like they would affect this.

    It works locally on the server and remotely for users in the same domain. I am trying to use the SQL account and password to connect to the database, but users from outside this domain fail to reach the SQL database for authentication. It looks like Windows
    authentication is not passing the SQL credentials on if the windows authentication fails. I don't know how to resolve this. The only options in SQL are "Windows authentication and SQL authentication" or "Windows authentication only". The database is already
    set to the first option. Somehow, I need to set the server to allow the SQL authentication even if the Windows authentication fails.
    Hi pkuti01,
    SQL Server mixed mode is "Windows Authentication and SQL Server Authentication", we have to restart SQL Server service after change the authentication to mixed mode.
    In your case, have you got any error message/information if you faild connect to SQL Server via ODBC? If so, please post them to us for further investigation. Furthermore, here is an article regarding steps to troubleshooting SQL connectivity issues for
    your reference. Please see:
    http://blogs.msdn.com/b/sql_protocols/archive/2008/04/30/steps-to-troubleshoot-connectivity-issues.aspx
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • Unable to connect to Sybase databases in EPM V11

    Hello,
    I have installed EPM 11 on a linux rel 5 x64 machine and able to connect to Oracle dbs but having problems with sybase databases. Checked the odbc.ini that it is pointing to the right files. I have tried to start, stop and restart the Data access service, defined using ODBC and Sybase System but nothing seems to help.
    I get the folling error in html and the 2018 error in the IR web client.
    An Interactive Reporting Service error has occurred.-Failed to acquire requested service.
    Error Code: 2001
    The Oracle db connections seemed to be fine. Sybase connections using isql are fine.
    Any help would be greatly appreciated.
    Thanks,
    Shrinath

    I had that problem for almost a year, both with a Linksys router and with a Netgear router.  Finally purchased a Belkin router (the N1 Vision, which we absolutely love!) and have not had the problem one single time since - in over 3 months.  I did a lot of reading on the Linksys and Netgear forums and found that a lot of people were having the same problem.  I have a new problem though, about 2 months ago my TouchSmart began to tell me I don't have a wireless network adapter installed - I typically have to reboot it anywhere from 7-13 times before it will recognize it.  Any ideas or similar problems with that situation?

  • Error connection with a database in remote node

    When I try to start a dialog instance does not detect that the database is in a remote server is booted:
    "Checking SAP R/3 PAP Database
    Database is not available via /usr/sap/PAP/SYS/exe/run/R3trans -d -w
    Database PAP must be started on remote server"
    The output of R3trans -x is:
    "This is ./R3trans version 6.05 (release 46D - 28.03.01 - 11:30:00).
    2EETW169 no connect possible: "DBMS = ORACLE      --- dbs_ora_tnsname = 'PAP'"
    ./R3trans finished (0012)."
    The output of trans.log is:
    "4 ETW000  [developertrace,0] -->oci_logon(con_hdl=0, user='', dbname='PAP')
    4 ETW000                                                         88  0.035395
    4 ETW000  [dboci.c ,0] *** ERROR => OCI-call 'olog' failed: rc = 12705
    4 ETW000                                                      75859  0.111254
    4 ETW000  [dbsloci.,0] *** ERROR => CONNECT failed with sql error '12705'"
    Can anybody help me to solve this problem?

    Thank you for your help, RK.
    The problem was that sidadm was not the owner of ORA_NLS.
    Now I have another problem: when running startsap not boot disp + work.

  • Error connecting to MySQL database

    Well I am a beginner trying to get the basics of JDBC. I am following a simple connection tutorial and I cannot even make this work. I receive an error when I run the program. It is a nested error that begins with "java.io.EOFException". I'm thinking it has something to do with the URL I am using to connect to the database. Any ideas?
    Here is the code I am using if that helps at all.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class jdbctry {
      public static void main(String args[]) {
        Connection con = null;
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://url:port/database",
          if(!con.isClosed())
            System.out.println("Successfully connected to " +
              "MySQL server using TCP/IP...");
        } catch(Exception e) {
          System.err.println("Exception: " + e.getMessage());
        } finally {
          try {
            if(con != null)
              con.close();
          } catch(SQLException e) {}
    } edit- I think the problem was I had a bad port number assigned to the URL. This time I got a "java.net.SocketException" error. It says my connection timed out.
    Message was edited by:
    lw22

    I'll assume that you've substituted appropriate values into that connection URL, right?
    It s
    // host = IP address or name of machine where MySQL is listening
    // port = 3306 (default)
    // database = instance you wish to connect to
    // username, password have to be GRANTed access rights.
    String url = "jdbc:mysql://host:port/database";Can you connect using the MySQL client and see the database you want in Java? If the client can't connect, neither can JDBC.
    %

  • Error, connecting to the database!

    Hello!
    I have a problem connecting to the Oracle database.
    first it shows ORA-12705: Cannot access NLS data files or invalid environment specified
    but in the error log:
    oracle.dbtools.raptor.utils.TNSHelper
    Error:The system cannot find the file specified.
    What can it be?
    I had no problems with connecting to other databases, but with that one I have real problems.

    I have the same errors on SQL Developer 1.5.5:
    oracle.dbtools.raptor.utils.DBObject
    Could not read node:null
    However, the errors were fixed when I do the followings:
    In "Properties" of the connection, select the options:
    - Connection Type: TNS
    - Connection Identifier (instead of Network Alias)
    Hope that helps.
    Datma

Maybe you are looking for

  • My computer doesn't recognize my Zen Creative Vision:M (30 GB) anymore

    ? I still use XP and I have this mp3-player for a year now and it has been working fine until yesterday. I ripped Stefani's first album and tried to drag one of her songs on my mp3-player, but the player couldn't handle the file it seemed. So it fell

  • AVCHD Video in PE7

    I just recently purchased a Sony HDR-SR11 Camcorder which produces great HD quality video in the AVCHD format. Having just upgraded to Premiere Elements 7, I was really looking forward to editing my high-def videos but have run in to trouble. The cli

  • 2-Pass VBR behaving close to a CBR approach

    The latest mpeg-2 encoder in Premiere and Encore seems to be very limited in its ability to vary the bitrate, even though I typically set it to the 2-pass VBR setting and the quality slider to "5". I monitor the playback bitrate with PowerDVD ("Show

  • Universal Screen Protectors...

    Just an FYI. While I am with everyone still waiting for accessories, I put universal screen protectors on my nano, back and front. The semi sticky applicant didn't leave any residue, but took some of the color out of the apple logo and FCC logos on t

  • CS6 Which Preset to Use for Viewing on a Windows 7  Computer

    I'm using CS6 on Windows 7 and have .mts files that are approximately 35-40 minutes each. I need to get these to someone else so they can view them on a Windows 7 machine. The original files are 1440x1080. I thought if I exported them using the AVI p