Error connecting to portal database using alias

i am using Connector framework api to connect to portal database.
in <b>visual administrator -> JDBC connector</b>. I click on <b>runtime</b> tab
Under <b>Resources</b> i find <b>Data Sources</b> and <b>Drivers</b>.
Under Data sources I see SAPSR3DB. In Main tab on right hand pane I find many other aliases called SAP/BC_UME and SAP/BC_WDDR etc. Which one do I use in creating a connection.
IConnectorGatewayService cgService = (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService("com.sap.portal.ivs.connectorservice.connector");
ConnectionProperties cp = new ConnectionProperties(request.getLocale(),request.getUser());
IConnection connection = cgService.getConnection("SAPSR3DB",cp);
No system found for alias SAPSR3DB.

Hi,
If you want to use the PortalService IConnectorGatewayService you will have to create a JDBC System in the System Landscape of the Portal and create a System Alias with usermapping.
You can then create a c connection to this JDBC System with the IConnectorGatewayServcie using the specified System alias.
But if you want to directly connect to the System Database you can also use OpenSQL in your Portalapplication and lookup the Connection using JNDI:
      InitialContext ctx= new InitialContext();
      ds= (DataSource) ctx.lookup("jdbc/SAPSR3DB");
      java.sql.Connection conn= ds.getConnection();
// user your connection here and close all jdbc objects finally!
Best regards,
Stefan Brauneis

Similar Messages

  • Error connecting to MySQL database using JNDI

    Hi,
    I'm trying to do a simple connection to a MySQL database using the JNDI look-up
    method.
    Have tried this with the PointBase database that came with WebLogic and got it
    to work successfully.
    However got the attached error message when I tried it on MySQL database. I tried
    this with both the WebLogic's driver for MySQL and also the one I downloaded from
    MySQL (com.mysql.jdbc.Driver), and both failed with the same error message.
    Offhand, it doesn't look like the connection pool is failing. Tested it with WebLogic's
    "Test Pool" function and it was alright.
    Also MySQL database is working properly. Test this by doing simple connection
    and retrieval with simple JDBC connections and it works.
    Any ideas what else I can check with regards to this problem?
    Thanks!
    [att1.html]

    Hi Joe,
    Attached is the config.xml for the domain that I'm working with. There are 3 connection
    pools set-up.
    The problematic Connection Pools are "MySQLCP" and "My JDBC Connection Pool"
    Thanks for your help in this!
    Joe Weinstein <[email protected]> wrote:
    show us the pool definition, as it is in the config.xml file.
    thanks
    joe
    Everbright wrote:
    Hi,
    I'm trying to do a simple connection to a MySQL database using theJNDI look-up
    method.
    Have tried this with the PointBase database that came with WebLogicand got it
    to work successfully.
    However got the attached error message when I tried it on MySQL database.I tried
    this with both the WebLogic's driver for MySQL and also the one I downloadedfrom
    MySQL (com.mysql.jdbc.Driver), and both failed with the same errormessage.
    Offhand, it doesn't look like the connection pool is failing. Testedit with WebLogic's
    "Test Pool" function and it was alright.
    Also MySQL database is working properly. Test this by doing simpleconnection
    and retrieval with simple JDBC connections and it works.
    Any ideas what else I can check with regards to this problem?
    Thanks!
    Error 500--Internal Server Error
    java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:MyJDBCConnection Pool, props = {enableTwoPhaseCommit=false, jdbcTxDataSource=true,
    connectionPoolID=MyJDBC Connection Pool, dataSourceName=MyJDBC Data
    Source}.
    Nested Exception: java.lang.RuntimeException: Failed to Generate WrapperClass
         at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
         at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
         at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:242)
         at weblogic.jdbc.pool.Driver.connect(Driver.java:158)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:444)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
         at jsp_servlet.__index._jspService(__index.java:142)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
         at weblogic.jdbc.jts.Driver.wrapAndThrowSQLException(Driver.java:395)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:448)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
         at jsp_servlet.__index._jspService(__index.java:142)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    [config.xml]

  • Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64

    Hi Everyone,
    I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
    An error was encountered performing the required operation  Got a minus one from read call .Vendor code 0
    However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
    My TNSNAMES .ora file is as follows:
    ORACLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORACLE)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    My Listener.ora file is as follows:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (SID_NAME = Oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    ADR_BASE_LISTENER = D:\app
    My Sqlnet.ora file is as follows:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
    ORA 12537 : TNS Connection closed
    Thanks for your patience and help in advance.
    ---Prashant

    Hello Irian and Sue,
    I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
    Used parameter files:
    D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
    *)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
    TNS-12537: TNS:connection closed
    Thanks for your response to my initial post.Do u have any other methods to resolve this?

  • How can I connect to the database using ODBC within excel.

    Hi,
    How can I connect to the database using ODBC within excel and just refresh the data when needed.
    Thanks,
    Priyanka
    Edited by: user554934 on Jun 9, 2009 2:53 AM

    This is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
    Thank you,
    Tony Miller
    Webster, TX

  • Connection to multiple databases using a single EJB

    How can I connect to multiple Databases (using @PersistenceContext) using an EJB?
    Did I need to connect various Entity Managers corresponding to the each database and simply send my Queries?
    I am using Glassfish Application Server
    Netbeans IDE
    Java Derby Database
    Oracle Database
    Java Persistence API
    Thanks in Advance

    Yes, you need a persistence context and thus entity manager per database. Depending on what you want to achieve you may also need to go to the next level in your skill set and learn all about distributed transactions.

  • Connect to oracle database using c program

    I am using AIX environment and i want to connect to oracle database using c program.

    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10825/pc_03dbc.htm#i5880

  • How to connect to 9i database using 8i sqlplus?

    Hello,
    My Oracle server is running 9.2.0.1
    My Oracle client processes run on the same machine using Oracle 8i (ORACLE_HOME is set to 8i home).
    I cannot connect to 9i database using 8i sqlplus.
    My ORACLE_HOME for client environment is set to 8i home.
    How can I access 9i database using 8i sqlplus?
    Thanks in advance!

    I saw this answered in another thread:
    8i sqlplus not working on 9i
    Please try not to cross post.
    Alison

  • How to connect to oracle10g Database using oracle11g Enterprise Manager.

    Hi,
    please suggest me how to connect to oracle10g Database using oracle11g Enterprise Manager.
    i did setting in tnsnames.ora file of oracle11g database but when i am trying to connect sys@testvsr and password
    using oracle11g Enterprise manager its not connecting but from command prompt its connecting.
    its not acccepting hostname its simply telling invalid username and password ,if i remove and try to connect its connecting.
    so please suggest its very urgent my manager is nagging.
    Regards,
    Srinu.

    you cant attach a database 10g instance with
    Enterprise manager of 11g as enterprise manager is
    meant for a single database only .. your problem cant be solved
    enterprise manager it can be solved by using GRID CONTROL
    For more details visit oracle documentation..
    Hope This helps..
    BI TC

  • ORA-12514 when trying to connect to the database using SERVICE

    Hi,
    Version 10204
    In a single instance database i would like to create new SERVICEs in order to use them later with Resource Manager.
    The instance name is DWH.
    I run the following commands:
    I added to the tnsnames.ora file the following input:
    XYZ =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XYZ)
    As SYSDBA i execute:
    > exec DBMS_SERVICE.CREATE_SERVICE('xyz','xyz');
    PL/SQL procedure successfully completed.
    > exec DBMS_SERVICE.START_SERVICE('xyz');
    PL/SQL procedure successfully completed.
    But when i tried to connect to the instance:
    sqlplus ac/ac@xyzSQL*Plus: Release 10.2.0.4.0 - Production on Sat Nov 1 14:44:43 2008
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    When i am trying to connect , not via the service , its successed:
    sqlplus ac/ac@dwh
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Nov 1 14:45:07 2008
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Could you please help to understand why its failed to connect via SERVICE ?
    Thanks

    You told us.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.
    I ask some questions, you set alias for listener port (no default) + local_listener parameter, don't you?
    If you did....
    Please check by .....
    lsnrctl status
    lsnrctl service
    Let me show my example:
    About 1522 (no default port)
    SQL> show parameter local_listener
    NAME TYPE VALUE
    local_listener string ALIASLISTENER
    - check tnsnames.ora file in the same location listener.ora file.
    $ cat tnsnames.ora
    ALIASLISTENER=
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost )(PORT = 1522))
    - About create new service
    SQL> show parameter service_names
    NAME TYPE VALUE
    service_names string db
    SQL> exec DBMS_SERVICE.CREATE_SERVICE('xyz','xyz');
    PL/SQL procedure successfully completed.
    SQL> exec DBMS_SERVICE.START_SERVICE('xyz');
    PL/SQL procedure successfully completed.
    SQL> show parameter service_names
    NAME TYPE VALUE
    service_names string xyz
    $ lsnrctl status
    LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 02-NOV-2008 03:29:21
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
    Start Date 02-NOV-2008 03:28:45
    Uptime 0 days 0 hr. 0 min. 36 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File ORACLE_HOME/network/admin/listener.ora
    Listener Log File ORACLE_HOME/log/diag/tnslsnr/hostname/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1522)))
    Services Summary...
    Service "db" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Service "db2XDB" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Service "db_XPT" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Service "xyz" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    $ lsnrctl service
    LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 02-NOV-2008 03:29:40
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1522)))
    Services Summary...
    Service "db" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "db2XDB" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:972 state:ready
    DISPATCHER <machine: hostname, pid: 30200>
    (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=45572))
    Service "db_XPT" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "xyz" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully

  • Cant connect to Oracle database using oracle db client

    Hi All,
    I recently created a virtual machine running windows server 2008 on my windows 7 host. Oracle database 11g is already installed on host OS(windows 7) and I have installed oracle 11g client on the guest OS(windows server 2008) and trying to connect to oracle database from remote server using oracle client but getting this error:
    ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATAI am trying to connect using oracle client as below:
    C:\Users\Administrator>SET ORACLE_SID = HR84DEV
    C:\Users\Administrator>SQLPLUS /NOLOG
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 10 06:16:34 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> CONNECT SYSADM/[email protected]
    ERROR:
    ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    I have created database with name - HR84DEV
    HOST ip address is - 192.168.56.1
    I googled this error and as most of resources/blogs talked about having correct entry on listner.ora and tnsnames.ora file, I did the changes on both of these files accordingly.
    PFB the cotent of both of these files:
    tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\MyApps\Oracle\product\11.2.0\dbhome_\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    HR84DEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = HR84DEV)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    listner.ora
    # listener.ora Network Configuration File: C:\MyApps\Oracle\product\11.2.0\dbhome_\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\MyApps\Oracle\product\11.2.0\dbhome_)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\MyApps\Oracle\product\11.2.0\dbhome_\bin\oraclr11.dll")
    (SID_DESC =
    (SID_NAME = HR84DEV)
    (ORACLE_HOME = C:\MyApps\Oracle\product\11.2.0\dbhome_)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\MyApps\Oracle\product\11.2.0\dbhome_\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    ADR_BASE_LISTENER = C:\MyApps\Oracle
    Please not that I dont have any problem in connect to database locally.

    Thanks Nicolas,
    Actually, there was a problem with my oracle client installation. I uninstalled it and then installed back again but still, even after following your instructions I get some error.
    Here what I did:
    Created tnsnames.ora file as below:
    HR84DEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = HR84DEV)
    Placed it under appropriate directory and then checked the connection with database using the command shown below:
    C:\Users\Administrator>tnsping HR84DEV
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-FEB-2
    012 08:42:03
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\MyApps\Administrator\product\11.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.56.1)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = HR84DEV)))
    OK (20 msec)
    Then tried to connect to database as below:
    C:\Users\Administrator>SET ORACLE_SID=HR84DEV
    C:\Users\Administrator>SQLPLUS /NOLOG
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 10 08:25:56 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> CONNECT SYSADM/SYSADM@HR84DEV
    ERROR:
    ORA-28547: connection to server failed, probable Oracle Net admin error
    But still getting error.
    I Googled this error and tried to figure out what the problem is and came across the possible cause which is because I haven't specify that the service should run as a user who is in domain admin group.
    well, I am not really sure about this and dont know what user name and password I should enter in OracleserviceHR84DEV-properties-log on-this account.
    do I really need to set this?

  • Error connecting WLS Portal to ORACLE 8.17

    Following is the error I get when trying to start weblogic portal. I am trying
    to connect to an Oracle database. (Also attaching my config.xml file).
    Thanks
    Neeta
    using the Oracle Thin database driver
    using LD_LIBRARY_PATH of /export/home/wlp/bea/weblogic700/server/lib/solaris
    using PATH of /export/home/wlp/bea/weblogic700/server/bin:/export/home/wlp/bea/jdk131_03/jre/bin:/export/home/wlp/bea/jdk131_03/bin:/usr/bin:/usr/ucb:/etc:.:/home/oracle/OraHome1/bin
    + /export/home/wlp/bea/jdk131_03/bin/java -server -Xms128m -Xmx128m -XX:MaxPermSize=128m
    -Dcommerce.properties=/export/home/wlp/bea/weblogic700/portal/weblogiccommerce.properties
    -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic
    -classpath /export/home/wlp/bea/weblogic700/server/lib/weblogic.jar:/export/home/wlp/bea/weblogic700/server/lib/webservices.jar:/export/home/wlp/bea/weblogic700/portal/lib/p13n_system.jar:/export/home/wlp/bea/weblogic700/portal/lib/ext/jdom.jar:/export/home/wlp/bea/weblogic700/portal/lib/ext/HTTPClient.jar:/export/home/wlp/bea/weblogic700/portal/lib/ext/wlcsparsers.jar:/export/home/wlp/bea/weblogic700/server/lib/jdom.jar:/export/home/wlp/bea/weblogic700/portal/lib/portal_system.jar:/export/home/wlp/bea/jdk131_03/lib/tools.jar:/export/home/wlp/bea:/export/home/wlp/bea/weblogic700/portal/lib/commerce_system.jar:/export/home/wlp/bea/weblogic700/portal/lib/campaign_system.jar
    -Dweblogic.Name=portalServer -Dbea.home=/export/home/wlp/bea -Dweblogic.management.username=weblogic
    -Dweblogic.management.password=weblogic -Dweblogic.ProductionModeEnabled=true
    -Djava.security.policy=/export/home/wlp/bea/weblogic700/server/lib/weblogic.policy
    weblogic.Server
    Starting WebLogic Server...
    <Dec 5, 2002 6:54:17 PM GMT-06:00> <Notice> <Management> <140005> <Loading configuration
    /export/home/wlp/bea/user_projects/portalDomain/./config.xml>
    <Dec 5, 2002 6:54:30 PM GMT-06:00> <Error> <RDBMSRealm> <000000> <An error occured
    creating a database connection for the realm.
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135294976)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:141)
         at com.bea.p13n.security.realm.RDBMSDelegate.<init>(RDBMSDelegate.java:178)
         at com.bea.p13n.security.realm.RDBMSDelegate$DFactory.getInstance(RDBMSDelegate.java:971)
         at com.bea.p13n.security.realm.internal.Pool.<init>(Pool.java:53)
         at com.bea.p13n.security.realm.RDBMSRealm.createPool(RDBMSRealm.java:153)
         at com.bea.p13n.security.realm.RDBMSRealm.<init>(RDBMSRealm.java:140)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:232)
         at weblogic.security.acl.Realm.getRealm(Realm.java:87)
         at weblogic.security.acl.Realm.getRealm(Realm.java:65)
         at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
         at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
         at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
         at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
         at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
         at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
         at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
         at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
         at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
         at weblogic.Server.main(Server.java:32)
    >
    <Dec 5, 2002 6:54:31 PM GMT-06:00> <Emergency> <WebLogicServer> <000342> <Unable
    to initialize the server: Fatal initialization exception
    Throwable: java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
    java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
         at weblogic.security.acl.Realm.getRealm(Realm.java:94)
         at weblogic.security.acl.Realm.getRealm(Realm.java:65)
         at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
         at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
         at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
         at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
         at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
         at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
         at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
         at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
         at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
         at weblogic.Server.main(Server.java:32)
    >
    The WebLogic Server did not start up properly.
    Exception raised:
    java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
         at weblogic.security.acl.Realm.getRealm(Realm.java:94)
         at weblogic.security.acl.Realm.getRealm(Realm.java:65)
         at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
         at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
         at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
         at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
         at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
         at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
         at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
         at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
         at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
         at weblogic.Server.main(Server.java:32)
    Reason: Fatal initialization exception
    Throwable: java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
    java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
         at weblogic.security.acl.Realm.getRealm(Realm.java:94)
         at weblogic.security.acl.Realm.getRealm(Realm.java:65)
         at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
         at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
         at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
         at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
         at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
         at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
         at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
         at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
         at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
         at weblogic.Server.main(Server.java:32)
    + set +x
    [config.xml]

    Neeta -
    You need the @ sign in the config.xml file where you mention the URL.
    Kunal
    "Neeta Mittal" <[email protected]> wrote:
    >
    >
    >
    Following is the error I get when trying to start weblogic portal. I
    am trying
    to connect to an Oracle database. (Also attaching my config.xml file).
    Thanks
    Neeta
    using the Oracle Thin database driver
    using LD_LIBRARY_PATH of /export/home/wlp/bea/weblogic700/server/lib/solaris
    using PATH of /export/home/wlp/bea/weblogic700/server/bin:/export/home/wlp/bea/jdk131_03/jre/bin:/export/home/wlp/bea/jdk131_03/bin:/usr/bin:/usr/ucb:/etc:.:/home/oracle/OraHome1/bin
    + /export/home/wlp/bea/jdk131_03/bin/java -server -Xms128m -Xmx128m -XX:MaxPermSize=128m
    -Dcommerce.properties=/export/home/wlp/bea/weblogic700/portal/weblogiccommerce.properties
    -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic
    -classpath /export/home/wlp/bea/weblogic700/server/lib/weblogic.jar:/export/home/wlp/bea/weblogic700/server/lib/webservices.jar:/export/home/wlp/bea/weblogic700/portal/lib/p13n_system.jar:/export/home/wlp/bea/weblogic700/portal/lib/ext/jdom.jar:/export/home/wlp/bea/weblogic700/portal/lib/ext/HTTPClient.jar:/export/home/wlp/bea/weblogic700/portal/lib/ext/wlcsparsers.jar:/export/home/wlp/bea/weblogic700/server/lib/jdom.jar:/export/home/wlp/bea/weblogic700/portal/lib/portal_system.jar:/export/home/
    wlp/bea/jdk131_03/lib/tools.jar:/export/home/wlp/bea:/export/home/wlp/bea/weblogic700/portal/lib/commerce_system.jar:/export/home/wlp/bea/weblogic700/portal/lib/campaign_system.jar
    -Dweblogic.Name=portalServer -Dbea.home=/export/home/wlp/bea -Dweblogic.management.username=weblogic
    -Dweblogic.management.password=weblogic -Dweblogic.ProductionModeEnabled=true
    -Djava.security.policy=/export/home/wlp/bea/weblogic700/server/lib/weblogic.policy
    weblogic.Server
    Starting WebLogic Server...
    <Dec 5, 2002 6:54:17 PM GMT-06:00> <Notice> <Management> <140005> <Loading
    configuration
    /export/home/wlp/bea/user_projects/portalDomain/./config.xml>
    <Dec 5, 2002 6:54:30 PM GMT-06:00> <Error> <RDBMSRealm> <000000> <An
    error occured
    creating a database connection for the realm.
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135294976)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:141)
         at com.bea.p13n.security.realm.RDBMSDelegate.<init>(RDBMSDelegate.java:178)
         at com.bea.p13n.security.realm.RDBMSDelegate$DFactory.getInstance(RDBMSDelegate.java:971)
         at com.bea.p13n.security.realm.internal.Pool.<init>(Pool.java:53)
         at com.bea.p13n.security.realm.RDBMSRealm.createPool(RDBMSRealm.java:153)
         at com.bea.p13n.security.realm.RDBMSRealm.<init>(RDBMSRealm.java:140)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:232)
         at weblogic.security.acl.Realm.getRealm(Realm.java:87)
         at weblogic.security.acl.Realm.getRealm(Realm.java:65)
         at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
         at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
         at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
         at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
         at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
         at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
         at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
         at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
         at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
         at weblogic.Server.main(Server.java:32)
    >
    <Dec 5, 2002 6:54:31 PM GMT-06:00> <Emergency> <WebLogicServer> <000342>
    <Unable
    to initialize the server: Fatal initialization exception
    Throwable: java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
    java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
         at weblogic.security.acl.Realm.getRealm(Realm.java:94)
         at weblogic.security.acl.Realm.getRealm(Realm.java:65)
         at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
         at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
         at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
         at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
         at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
         at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
         at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
         at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
         at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
         at weblogic.Server.main(Server.java:32)
    >
    The WebLogic Server did not start up properly.
    Exception raised:
    java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
         at weblogic.security.acl.Realm.getRealm(Realm.java:94)
         at weblogic.security.acl.Realm.getRealm(Realm.java:65)
         at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
         at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
         at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
         at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
         at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
         at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
         at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
         at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
         at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
         at weblogic.Server.main(Server.java:32)
    Reason: Fatal initialization exception
    Throwable: java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
    java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
    An error occured creating a database connection for the realm.]
         at weblogic.security.acl.Realm.getRealm(Realm.java:94)
         at weblogic.security.acl.Realm.getRealm(Realm.java:65)
         at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
         at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
         at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
         at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
         at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
         at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
         at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
         at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
         at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
         at weblogic.Server.main(Server.java:32)
    + set +x

  • Connecting to Remote Database using Debian w/Oracle XE

    Hello.
    I have managed to install Oracle XE on a Debian box.
    I am trying to connect to a remote server located on my network.
    I am using the following connection string:
    # sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
    However, I was given both a SID and a Service_name.
    I tried connecting with both.
    Is it possible to parametrize both? I checked and the remote server is up, and that is the existing port.
    Thanks a lot!

    user603592 wrote:
    Hello.
    I have managed to install Oracle XE on a Debian box.
    I am trying to connect to a remote server located on my network.
    I am using the following connection string:
    # sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
    However, I was given both a SID and a Service_name.
    I tried connecting with both.
    Is it possible to parametrize both? yes, see below
    bcm@bcm-laptop:~$ sqlplus -h
    SQL*Plus: Release 11.2.0.1.0 Production
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
    Usage 1: sqlplus -H | -V
        -H             Displays the SQL*Plus version and the
                 usage help.
        -V             Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
      <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
        -C <version>   Sets the compatibility of affected commands to the
                 version specified by <version>.  The version has
                 the form "x.y[.z]".     For example, -C 10.2.0
        -L             Attempts to log on just once, instead of
                 reprompting on error.
        -M "<options>" Sets automatic HTML markup of output.  The options
                 have the form:
                 HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
                 [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
        -R <level>        Sets restricted mode to disable SQL*Plus commands
                 that interact with the file system.     The level can
                 be 1, 2 or 3.  The most restrictive is -R 3 which
                 disables all user commands interacting with the
                 file system.
        -S             Sets silent mode which suppresses the display of
                 the SQL*Plus banner, prompts, and echoing of
                 commands.
      <logon> is: {<username>[/<password>][@<connect_identifier>] | / }
               [AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
        Specifies the database account username, password and connect
        identifier for the database connection.  Without a connect
        identifier, SQL*Plus connects to the default database.
        The AS SYSDBA, AS SYSOPER and AS SYSASM  options are database
        administration privileges.
        <connect_identifier> can be in the form of Net Service Name
        or Easy Connect.
          @[<net_service_name> | [//]Host[:Port]/<service_name>]
         <net_service_name> is a simple name for a service that resolves
         to a connect descriptor.
         Example: Connect to database using Net Service Name and the
               database net service name is ORCL.
            sqlplus myusername/mypassword@ORCL
         Host specifies the host name or IP address of the database
         server computer.
         Port specifies the listening port on the database server.
         <service_name> specifies the service name of the database you
         want to access.
         Example: Connect to database using Easy Connect and the
               Service name is ORCL.
            sqlplus myusername/mypassword@Host/ORCL
        The /NOLOG option starts SQL*Plus without connecting to a
        database.
        The EDITION specifies the value for Session Edition.
      <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
        Runs the specified SQL*Plus script from a web server (URL) or the
        local file system (filename.ext) with specified parameters that
        will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run.  The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.
    bcm@bcm-laptop:~$

  • Error connecting to oracle DB using SAS 8.1

    Hi,
    I am using SAS 8.1(2005 Q1) and the oracle server is 9.2.0.1. I am trying to run a sample application given in the app server (jdbc-simple) and it's not connecting to the database.
    I am using oracle thin driver.
    I have created the jdbc connection pool named jdbc-pool too. Is there anything else I shud do? I am able to ping to the database using this connection pool but not able to run the application and getting http status 500 error with the following message:
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key exception
    This is the server.log file:
    [#|2005-08-22T13:04:45.356+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=11;|WEB0783: Error commiting response
    java.io.IOException: An existing connection was forcibly closed by the remote host
         at sun.nio.ch.SocketDispatcher.write0(Native Method)
         at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
         at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
         at sun.nio.ch.IOUtil.write(IOUtil.java:75)
         at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:302)
         at java.nio.channels.Channels.write(Channels.java:60)
         at java.nio.channels.Channels.access$000(Channels.java:47)
         at java.nio.channels.Channels$1.write(Channels.java:134)
         at org.apache.coyote.http11.InternalOutputBuffer.commit(InternalOutputBuffer.java:602)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.action(ProcessorTask.java:749)
         at org.apache.coyote.Response.action(Response.java:188)
         at org.apache.coyote.Response.sendHeaders(Response.java:380)
         at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:357)
         at org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:318)
         at org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse.java:496)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:188)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    |#]
    [#|2005-08-22T13:05:34.432+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=12;|RAR6017 : Failed to get connection pool object via JNDI lookup : jdbc-pool|#]
    [#|2005-08-22T13:07:39.704+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5109: EJBC - START of EJBC for [jdbc-simple]|#]
    [#|2005-08-22T13:07:39.724+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|Processing beans ...|#]
    [#|2005-08-22T13:07:39.814+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5110: EJBC - END of EJBC for [jdbc-simple]|#]
    [#|2005-08-22T13:07:41.707+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|Total Deployment Time: 10042 msec, Total EJB Compiler Module Time: 110 msec, Portion spent EJB Compiling: 1%
    Breakdown of EJBC Module Time: Total Time for EJBC: 110 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 50 msec (45%),
    |#]
    [#|2005-08-22T13:07:42.568+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|deployed with moduleid = jdbc-simple|#]
    [#|2005-08-22T13:07:43.459+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- reference-added jdbc-simple]|#]
    [#|2005-08-22T13:07:43.669+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]
    [#|2005-08-22T13:07:43.759+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- deploy jdbc-simple]|#]
    [#|2005-08-22T13:07:44.159+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb|_ThreadID=14;|Instantiated container for: ejbName: jdbc-simpleEJB; containerId: 73708094084546560|#]
    [#|2005-08-22T13:07:44.430+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core.classloading|_ThreadID=14;|LDR5010: All ejb(s) of [jdbc-simple] loaded successfully!|#]
    [#|2005-08-22T13:07:44.440+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=14;|WEB0100: Loading web module [jdbc-simple:jdbc-simple.war] in virtual server [server] at [/jdbc-simple]|#]
    [#|2005-08-22T13:07:45.982+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]
    [#|2005-08-22T13:10:48.029+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBServlet is executing ...|#]
    [#|2005-08-22T13:10:48.029+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Retrieving JNDI initial context...|#]
    [#|2005-08-22T13:10:48.049+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Retrieved initial context successfully|#]
    [#|2005-08-22T13:10:48.049+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Looking up dbGreeter bean home interface...|#]
    [#|2005-08-22T13:10:48.049+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Looking up: java:comp/env/ejb/jdbc-simple|#]
    [#|2005-08-22T13:10:48.169+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Looked up the EJB successfully|#]
    [#|2005-08-22T13:10:48.179+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Creating the dbGreeter bean...|#]
    [#|2005-08-22T13:10:48.189+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Created EJB successfully  |#]
    [#|2005-08-22T13:10:48.189+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting the message from the dbGreeter bean ...|#]
    [#|2005-08-22T13:10:48.229+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1cce278|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@2848b1|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@bc9c25|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@af5e3c|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@153e9cf|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1b16bd|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@7210ec|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@b4fa48|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@19bcae1|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1249338|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@3d787c|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1b12c9b|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@e797db|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@a2e5cc|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1a7a525|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@52732d|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@107939f|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@6cdb70|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@baa4a4|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@18f22f3|#]
    [#|2005-08-22T13:10:48.259+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@15ec870|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDB EJB is determining message...|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Message determined successfully|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Got this message from greeter bean: afternoon|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting the name input to this servlet...|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Got name: gmfgmf|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Recording the greeting in the database...|#]
    [#|2005-08-22T13:10:48.279+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting datasource...|#]
    [#|2005-08-22T13:10:48.279+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Got datasource successfully|#]
    [#|2005-08-22T13:10:48.279+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting connection...|#]
    [#|2005-08-22T13:10:48.870+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5038:Unexpected exception while creating resource|#]
    [#|2005-08-22T13:10:48.870+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5117 : Failed to obtain/create connection. Reason : Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    |#]
    [#|2005-08-22T13:10:48.870+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    ]|#]
    [#|2005-08-22T13:10:48.870+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Could not interact with the database|#]
    [#|2005-08-22T13:10:48.880+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    |#]
    [#|2005-08-22T13:10:48.880+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Storing the message in request object for the JSP...|#]
    [#|2005-08-22T13:10:48.880+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Stored message successfully|#]
    [#|2005-08-22T13:10:48.880+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Dispatching JSP for output...|#]
    [#|2005-08-22T13:11:48.408+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBView JSP is executing...|#]
    [#|2005-08-22T13:11:48.408+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBView JSP is all done|#]
    [#|2005-08-22T13:11:48.418+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Dispatched JSP successfully|#]
    [#|2005-08-22T13:11:48.418+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBServlet is all done
    |#]
    [#|2005-08-22T13:11:53.283+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBServlet is executing ...|#]
    [#|2005-08-22T13:11:53.283+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Retrieving JNDI initial context|#]
    [#|2005-08-22T13:11:53.293+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Retrieved initial context successfully|#]
    [#|2005-08-22T13:11:53.293+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting datasource...|#]
    [#|2005-08-22T13:11:53.293+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Got datasource successfully|#]
    [#|2005-08-22T13:11:53.293+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting connection|#]
    [#|2005-08-22T13:11:53.644+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5038:Unexpected exception while creating resource|#]
    [#|2005-08-22T13:11:53.644+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5117 : Failed to obtain/create connection. Reason : Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    |#]
    [#|2005-08-22T13:11:53.664+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    ]|#]
    [#|2005-08-22T13:11:53.664+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Could not interact with the database|#]
    [#|2005-08-22T13:11:53.674+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=15;|StandardWrapperValve[GreeterDBLogDisplayServlet]: Servlet.service() for servlet GreeterDBLogDisplayServlet threw exception
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key exception
         at java.util.ResourceBundle.getObject(ResourceBundle.java:326)
         at java.util.ResourceBundle.getString(ResourceBundle.java:286)
         at samples.jdbc.simple.servlet.GreeterDBLogDisplayServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    |#]
    [#|2005-08-22T13:14:00.758+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop.  Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components.  |#]
    [#|2005-08-22T13:14:00.948+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.tools.launcher|_ThreadID=10;|
    D:/j2eesdk-1_4_02/jdk\bin\java
    -client
    -Xmx512m
    -XX:NewRatio=2
    -Dcom.sun.aas.defaultLogFile=D:/j2eesdk-1_4_02/domains/domain1/logs/server.log
    -Dcom.sun.aas.verboseMode=true
    -Djava.endorsed.dirs=D:/j2eesdk-1_4_02/lib/endorsed
    -Djava.security.policy=D:/j2eesdk-1_4_02/domains/domain1/config/server.policy
    -Djava.security.auth.login.config=D:/j2eesdk-1_4_02/domains/domain1/config/login.conf
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Djavax.net.ssl.keyStore=D:/j2eesdk-1_4_02/domains/domain1/config/keystore.jks
    -Djavax.net.ssl.trustStore=D:/j2eesdk-1_4_02/domains/domain1/config/cacerts.jks
    -Djava.ext.dirs=D:/j2eesdk-1_4_02/jdk/jre/lib/ext;D:/j2eesdk-1_4_02/domains/domain1/lib/ext
    -Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    -Dcom.sun.aas.configName=server-config
    -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
    -Ddomain.name=
    -Djmx.invoke.getters=true
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
    -Dcom.sun.aas.promptForIdentity=true
    -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
    -Dcom.sun.aas.instanceRoot=D:/j2eesdk-1_4_02/domains/domain1
    -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    -Dcom.sun.aas.domainName=
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Dproduct.name=Sun-Java-System/Application-Server
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help
    -Dcom.sun.aas.configRoot=D:/j2eesdk-1_4_02/config
    -Djava.library.path=D:\j2eesdk-1_4_02\lib;D:\j2eesdk-1_4_02\lib;D:\j2eesdk-1_4_02\jdk\bin;.;C:\WINNT\system32;C:\WINNT;D:\j2eesdk-1_4_02\lib;D:\j2eesdk-1_4_02\bin;D:\j2eesdk-1_4_02\bin;D:\j2eesdk-1_4_02\bin;D:\oracle\ora81\lib;C:\j2sdk1.4.2_08\bin;D:\oracle\ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Program Files\Oracle\jre\bin;c:\winnt;c:\winnt\system32;D:/j2eesdk-1_4_02/jdk/bin;D:/j2eesdk-1_4_02/lib;D:/j2eesdk-1_4_02/lib/locale;D:/JBuilder7/lib/bes;D:/j2eesdk-1_4_02/imq/lib/imqxm.jar;D:\j2eesdk-1_4_02\bin;D:/j2eesdk-1_4_02/bin
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -cp
    D:/j2eesdk-1_4_02/jdk/lib/tools.jar;D:/j2eesdk-1_4_02/lib/appserv-rt.jar;D:/j2eesdk-1_4_02/lib\activation.jar;D:/j2eesdk-1_4_02/lib\admin-cli.jar;D:/j2eesdk-1_4_02/lib\appserv-admin.jar;D:/j2eesdk-1_4_02/lib\appserv-cmp.jar;D:/j2eesdk-1_4_02/lib\appserv-ext.jar;D:/j2eesdk-1_4_02/lib\appserv-jstl.jar;D:/j2eesdk-1_4_02/lib\appserv-upgrade.jar;D:/j2eesdk-1_4_02/lib\commons-launcher.jar;D:/j2eesdk-1_4_02/lib\commons-logging.jar;D:/j2eesdk-1_4_02/lib\dom.jar;D:/j2eesdk-1_4_02/lib\j2ee-svc.jar;D:/j2eesdk-1_4_02/lib\j2ee.jar;D:/j2eesdk-1_4_02/lib\jax-qname.jar;D:/j2eesdk-1_4_02/lib\jaxr-api.jar;D:/j2eesdk-1_4_02/lib\jaxr-impl.jar;D:/j2eesdk-1_4_02/lib\jaxrpc-api.jar;D:/j2eesdk-1_4_02/lib\jaxrpc-impl.jar;D:/j2eesdk-1_4_02/lib\jmxremote.jar;D:/j2eesdk-1_4_02/lib\jmxremote_optional.jar;D:/j2eesdk-1_4_02/lib\jsf-api.jar;D:/j2eesdk-1_4_02/lib\jsf-impl.jar;D:/j2eesdk-1_4_02/lib\mail.jar;D:/j2eesdk-1_4_02/lib\relaxngDatatype.jar;D:/j2eesdk-1_4_02/lib\rmissl.jar;D:/j2eesdk-1_4_02/lib\saaj-api.jar;D:/j2eesdk-1_4_02/lib\saaj-impl.jar;D:/j2eesdk-1_4_02/lib\xalan.jar;D:/j2eesdk-1_4_02/lib\xercesImpl.jar;D:/j2eesdk-1_4_02/lib\xsdlib.jar;D:/j2eesdk-1_4_02/lib/install/applications/jmsra/imqjmsra.jar;D:/j2eesdk-1_4_02/imq/lib/jaxm-api.jar;D:/j2eesdk-1_4_02/imq/lib/fscontext.jar;D:/j2eesdk-1_4_02/lib/ant/lib/ant.jar;D:/j2eesdk-1_4_02/pointbase/lib/pbclient.jar;D:/j2eesdk-1_4_02/pointbase/lib/pbembedded.jar;${oracle.jdbc.lib.class.path}/ojdbc14.jar;${oracle.jdbc.lib.class.path}/ojdbc14_g.jar;${oracle.jdbc.lib.class.path}/ocrs12.zip
    com.sun.enterprise.server.PEMain
    stop
    verbose|#]Cud someone tell me why am I getting this error?
    Regards,
    shipf1

    Other solution:
    on refresh period, default value is 1 minute, force this value at 0 and your connection
    is ok.
    Eric
    Joseph Weinstein <[email protected]> wrote:
    Redo the pool definition, and set 'test connection on reserve'. Don't
    set 'test connections on release', and leave refresh minutes alone.
    add a test table. DUAL is perfect for that. Everything else seems
    fine.
    Joe
    Rafid wrote:
    I am getting this error when I try to make a connection to an Oracle817DB.
    I am using Oracles drviers (classes12.zip)
    <Nov 2, 2001 2:05:18 PM EST> <Error> <JDBC> <Cannot startup connectionpool
    "genPool" Test table must be specifed for genPool with 'test connectionon
    reserve' or 'test connection on release' or 'refresh minutes' set higher
    than 0.>
    <Nov 2, 2001 2:05:18 PM EST> <Info> <JDBC> <Creating TX Data Sourcenamed
    weblogic.jdbc.jts.genPool for pool genPool>
    <Nov 2, 2001 2:05:18 PM EST> <Info> <JDBC> <Checking existence of connection
    pool genPool requested by user system>
    <Nov 2, 2001 2:05:18 PM EST> <Error> <JDBC> <Error during Data Source
    creation: weblogic.common.ResourceException:
    DataSource(weblogic.jdbc.jts.genPool) can't be created with non-existent
    Pool (connection or multi) (genPool)>
    I have created a connction pool called genPool,
    set the URL :jdbc:oracle:thin:@genoracle:1521:GENORANY
    driver class name = oracle.jdbc.driver.OracleDriver
    Properties:
    user=name ** where name is user
    password=xx **where xx is password
    dll=ocijdbc8
    protocol=thin
    I created the Tx Data Sources with
    name = weblogic.jdbc.jts.genPool
    jndi = weblogic.jdbc.jts.genPool
    poolname = genPool
    Can anyone help me through this, it would be a great help
    Rafid Wahab

  • Can't connect to SQL Database using new login

    I can connect to Azure SQL Database using the admin ID created when I set up the Azure account.  Now I want to set up a different login that has only regular read/write privileges.  I have followed the instructions on several web posts, to create
    a login at the server level, then create a user at the database level from the login.  When I try to connect, though, the connection fails.  I get an error message, and a GUID that I am supposed to supply to MS tech support, except that all I have
    is a standard Azure subscription, which does not include tech support.
    Here is what I have done so far:
    Logging in to the server with the admin account with SQL Mgmt Studio, I go to the master database on my Azure server, and create the login:
    CREATE LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
    This appears to work (password supplied is a "strong" password), or at least it doesn't show any error response.
    Then, connecting to the production database in Azure, I set up a user and set permissions as follow:
    CREATE USER clouduser1 FROM LOGIN clouduser@gxw8x04nlb;
    EXEC sp_addrolemember 'db_datareader', 'clouduser1'
    EXEC sp_addrolemember 'db_datawriter', 'clouduser1'
    When I attempt to connect to Azure using the new login, however, I get an error message (from SQL Mgmt Studio as well as from MS Access).  I am using the SQL Server Native Client 10.0.
    The message is:
    Connection failed:
    SQLState '28000'
    SQL Server Error 18456
    [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'clouduser'.
    Connection failed:
    SQLState: '01000'
    SQL Server Error: 40608
    [Microsoft][SQL Server Native Client 10.0][SQL Server]This session has been assigned a tracing ID of
    '271851d5-8e94-497c-a332-d9d40682bb7a'.  Provide this tracing ID to customer support when you need assistance.
    Is there some missing step I need to do, to permit the login to see the database?  I have looked for such in the various discussions about connection problems, but have not been able to find such a thing.   Or extend more permissions to the new
    user? Or specify a default user ID for a given login ?  (as they do not have the same names, in the examples I have seen).  I tried making the user ID the same as the login (w/o the server name), but that didn't seem to help, either.
    I have done numerous web searches, and tried about every variation of login or user ID, password, etc. that I can think of, and all of them encounter the same error.  It's got to be something very simple - clearly Azure supports more than one login
    per database.  But's that's all I have at the moment.  That login connects just fine, but others won't, using the same PC, middleware, IP address, etc.
    Any help would be much appreciated -
    Thanks,
         Doug

    Olaf -
    I noticed that, but all of the examples I have seen have Users named slightly differently from the Logins.  I did try logging in with the Login name instead.  No good.  I tried making the Login and the User name the same (clouduser).  Also
    no good - same symptoms.
    I think the problem is that the initial creation of the Login needs to be done WITHOUT the server name on the end.  
    Logged in to the master DB, I tried:  Create LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
    That didn't give me an error message, but I think it created a LOGIN of 'clouduser@gxw8x04nlb'.  When
    referenced from the outside world, I would need to specify 'clouduser@gxw8x04nlb@gxw8x04nlb'.
    I tried deleting the logins, and then creating the login 'clouduser' in the Master DB.  Then in
    the application DB, I created User clouduser from LOGIN clouduser, and then assigned a role.  That seems to work!
    In my connection string, File DSN, etc. I still need to supply the login as 'clouduser@gxw8x04nlb'.
     But when I am logged in to the server, and working in the Master DB or the application DB, I just refer to the Login as 'clouduser'.  
    Seems a little more complicated than it really should be, but at least I now have something that works.
    Doug
    Doug Hudson

  • Connecting to mysql database using DBLOGIN

    I am trying to connect to a mysql database through GG command interface and am unable to get the DBLOGIN to work correctly. Here is what I am getting:-
    mysql world -u root -p<password> (as user OS user mysql- works!)
    GGSCI (rac1) 5> DBLOGIN SOURCEDB world, USERID root, PASSWORD <password>
    2010-11-08 16:29:17 WARNING OGG-00769 MySQL Login failed: . SQL error (2002). Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
    ERROR: Failed to connect to MySQL database engine for HOST localhost, DATABASE world, USER root, PORT 0.
    I am not too familiar with mysql and will appreciate help and also pointer to documents that walk through setting up and testing Golden Gate with mysql.
    Thanks,
    Satish

    hi.
    i have same problem can't connect to mysql using dblogin on ggsci, please helpme
    this my.cnf configuration
    # Example MySQL config file for small systems.
    # This is for a system with little memory (<= 64M) where MySQL is only used
    # from time to time and it's important that the mysqld daemon
    # doesn't use much resources.
    # You can copy this file to
    # /etc/my.cnf to set global options,
    # mysql-data-dir/my.cnf to set server-specific options (in this
    # installation this directory is /var/lib/mysql) or
    # ~/.my.cnf to set user-specific options.
    # In this file, you can use all long options that a program supports.
    # If you want to know which options a program supports, run the program
    # with the "--help" option.
    # The following options will be passed to all MySQL clients
    [client]
    #password     = your_password
    port          = 3306
    socket          = /tmp/mysql.sock
    #socket = /var/run/mysqld/mysqld.sock
    # Here follows entries for some specific programs
    # The MySQL server
    [mysqld]
    port          = 3306
    socket = /tmp/mysql.sock
    #socket          = /var/run/mysqld/mysqld.sock
    skip-locking
    key_buffer_size = 16K
    max_allowed_packet = 1M
    table_open_cache = 4
    sort_buffer_size = 64K
    read_buffer_size = 256K
    read_rnd_buffer_size = 256K
    net_buffer_length = 2K
    thread_stack = 128K
    # Don't listen on a TCP/IP port at all. This can be a security enhancement,
    # if all processes that need to connect to mysqld run on the same host.
    # All interaction with mysqld must be made via Unix sockets or named pipes.
    # Note that using this option without enabling named pipes on Windows
    # (using the "enable-named-pipe" option) will render mysqld useless!
    #skip-networking
    server-id     = 1
    # Uncomment the following if you want to log updates
    #log-bin=mysql-bin
    # binary logging format - mixed recommended
    #binlog_format=mixed
    # Uncomment the following if you are using InnoDB tables
    #innodb_data_home_dir = /var/lib/mysql/
    #innodb_data_file_path = ibdata1:10M:autoextend
    #innodb_log_group_home_dir = /var/lib/mysql/
    # You can set .._buffer_pool_size up to 50 - 80 %
    # of RAM but beware of setting memory usage too high
    #innodb_buffer_pool_size = 16M
    #innodb_additional_mem_pool_size = 2M
    # Set .._log_file_size to 25 % of buffer pool size
    #innodb_log_file_size = 5M
    #innodb_log_buffer_size = 8M
    #innodb_flush_log_at_trx_commit = 1
    #innodb_lock_wait_timeout = 50
    [mysqldump]
    quick
    max_allowed_packet = 16M
    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates
    [myisamchk]
    key_buffer_size = 8M
    sort_buffer_size = 8M
    [mysqlhotcopy]
    interactive-timeout

Maybe you are looking for