Test Database Connection "Unable to connect to DB" using Oracle 10g Express

DB is up and running fine pls help
Connection test failed.
Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:538)
oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280)
oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:482)
oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:156)
oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:101)
com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:745)
com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:458)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
...

After installing the JDBC driver and selecting the test configuration i am getting the below erro:
Connection test failed.
Message icon - Error Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:538)
oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280)
oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:482)
oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:156)
oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:101)
com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:745)
com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:458)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
The Steps i followed to install the JDBC Driver are mentioned below:
1. JDBC Data Source Properties:
Name: testSample
JNDI Name: abc.xyz.testSample
Database Type: Oracle
Database Driver: Oracle’s (Thin XA) for Instance
connections; Versions: ... 11
Database Name: orcl
Host Name: wls-sysadm
Port: 1521
Database User Name: weblogic
Password and Confirm Password: Welcome1
Before that i started the database from start menu
and both the services
ORACLE service XE
and ORACLELISTNERSERVICE is up and running fine.
C:\Users\satish>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 04-JUN-2013 10:18
:51
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 04-JUN-2013 09:35:25
Uptime 0 days 0 hr. 43 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\a
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\l
og\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SATISH-PC)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=
HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Can anyone pls help...urgent

Similar Messages

  • How do I connect from Crystal Report version XI to Oracle 10G express?

    I'm new to oracle 10G express and I'm developing an application that needs reports to preview some data from oracle tables.
    The oracle database is installed on the server and I installed the client on my machine. I need to use the crystal report 11 to report the output. Thus, I designed a crystal report that should simply read a table on oracle and though I need to be able to connect to the oracle 10G Express Edition database. I tried to create a connection from the crystal report using the Database Expert >> Create New Connection >> Oracle Server and I include the following parameters.:
    - Service: host:1521/XE
    - Username: username
    - Password: password
    Then when I tried to connect the crystal report crashes always.
    Is there any way to create a connection to the Oracle Database 10G express from Crystal Report 11?
    Please advise...

    Thank you bala,
    First, How I should start the Listener on the database server?
    Listener.ora content:
    SID_LIST_LISTENER =
    +(SID_LIST =+
    +(SID_DESC =+
    +(SID_NAME = PLSExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +(SID_DESC =+
    +(SID_NAME = CLRExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +)+
    LISTENER =
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +)+
    +)+
    DEFAULT_SERVICE_LISTENER = (XE)
    How to configure the tnsnames.ora on the client side?
    tnsnames.ora content:
    XE =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = XE)+
    +)+
    +)+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    ORACLR_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = CLRExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    Now I`m trying to initialize this on one machine (database & client) and so the crystal report will be on the same machine where the database exist; Additionally, this machine has OS Windows 7 Ultimate 64bit and include the Oracle 10g Express Database & Oracle 10g Express Client software.
    Please check the files content I included above and give me the way on how to establish a connection from the crystal report to the database where both are installed on the same machine.
    Thanks in advance...

  • How to create a new DataBase using Oracle 10g Express Edition???

    Hello, I am new to Oracle, I am used to Microsoft SQL Server (Enterprise Manager).
    Here in Oracle I do not get how do I create a DataBase, and then create tables on it.
    could anyone please explain to me how to do it?

    A SQL Server database is roughly equivalent to an Oracle schema.
    You should rarely need to create a new database. If you do need to create a database, get a 'for fee' edition of Oracle and use the dbca tool (Database Configuration Assistant) to do that. In fact, you are only allowed to have one XE database on the machine.
    However, you can create as many schemas in an existing Oracle database as you need. (One schema, owned by userid SYS, is roughly equal to your 'master catalog'.)
    You can create other schemas simply by
    1) creating a userid that will own the schema (one designated for maintenance of the schema);
    2) grant that userid appropriate privileges, such as 'CREATE TABLE', 'CREATE VIEW' as shown in the SQL Reference manual under the GRANT section;
    3) provide that userid with a quota in one or more tablespaces (see the CREATE USER command in the SQL Reference manual);
    4) create the objects, such as tabels, views, sequences, stored procs and functions, etc. (as in the SQL Reference manual);
    5) create the users who will access the objects, and grant them the CREATE SESSION capability (as in the SQL Reference manual);
    6) grant access (select, update, execute, etc.) on the schema objects to these users (as in the SQL Reference manual);
    7) if desired, create synonyms on the schema objects so the users do not need to use fully qualified syntax such as "SELECT col FROM schema.table;" (as in the SQL Reference manual).
    In case you are interested in looking at the SQL Reference manual, it can be found at http://www.oracle.com/pls/db102/portal.portal_db?selected=1 ;-)

  • How can i create a new database instance in oracle 10g express edition?

    hello everybody
    i'm a student
    i am developing a database application
    i'm using oracle 10g express edition
    to run my application i need to create another database instance
    but i didn't find any option for doing so in that product
    if there is pls tell me where it is?
    if not pls tell me how to manually create it?
    regards,
    Chaitanya

    Chaitanya Babu M wrote:
    yaa i'm sure about that .
    i want one more instance of database.Can you perhaps explain why? I have a fair share of production and development servers - and not a single one of them needs to run more than one database instance.
    So I'm interested in what requirement you are trying to satisfy by using two database instances on a single platform.
    Oh yeah - if you want to create a custom XE instance (different SID, different tablespace sizes, more/less PL/SQL stuff installed, hack standard), make a copy of your XE db creation script (in your XE's +$ORACLE_HOME/bin+ and called createdb.sh ) and modify that for your needs.
    PS. even with a different SID, only a single XE instance can be run at a time - you can however have 2 different ones defined and then use one at a time (e.g. testing international settings, init param differences, etc.)

  • Oracle 10g express Edition Database

    We are using oracle 10g express edition with a temporary storage space for a class using SQL. When creating and using the database, the data is being deleted after 1 or 2 days and students are having to start over, creating tables and inserting data. Any suggestions?

    suggestions?Backups?
    Or, as long as the DDLs and DMLs don't take long, rerunning table create and insert SQLs would probably be much faster than setting up the database(s) in archivelog mode and copying datafile/archivelog files or rman backup files someplace that won't get reimaged every other day.

  • BO 4.0 - Database error: Unable to connect to SAP BW Incomplete logon data

    Hello Experts,
    I have enabled a 'SSO to database' between SAP BW and Business objects by referencing to the documents related to below link.
    [http://wiki.sdn.sap.com/wiki/display/BOBJ/HowtosetupSSOagainstSAPBWinSBOBI4.0forLDAPusers]
    I have created a universe connection with option 'use single sign on when refreshing reports at view time' and have created a universe on top of my BEx query by log-in to the universe designer tools using my LDAP account.
    Now when I run the report with either SAP account or LDAP - I am able to run a adhoc webi report on this universe and get data either through the webi rich client or via BO 4.0 Info-view/Launch Pad.
    But the issue is that when other users are trying to run webi queries on this universe either through Info-view/launch pad or rich client by log-in via LDAP Authentication - they get the below error: I have given SAP_ALL to this user for time being and also have done the necessary configuration for 'simple user format' in CMC so these user has 1 account with 3 alias definitions: Enterprise, SAP, R/3.
    Database error: Unable to connect to SAP BW server Incomplete logon data -
    If the user logs on into the BO 4.0 Info-view/launch pad or webi rich client using his SAP authentication than he is able to run and retrieve data.
    I also get a dump in the SAP BW system - I analyzed the dump in SAP BW using st22 tcode and it gives the error short text as - Incomplete logon data and run-time error -  CALL_FUNCTION_SIGNON_INCOMPL
    Desired outcome:
    I want the users to log-in to webi rich client or BO 4.0 Launch pad/Info-view using their 'LDAP'  authentication and run reports against the universe on SAP BW/BEx query without any errors or additional username/password requirements.
    Can someone please tell me if I am missing any steps/configuration and guide me to achieve the above mentioned desired result ?
    Any help in this matter would be greatly appreciated.
    Thanks & regards,
    CD.

    Hi Simone,
    Thank you for the reply.
    Here are the things done by me.
    1. Generated the keystore file and imported it in BI 4.0 CMC on  SAP Authentication Option tab
        ([http://wiki.sdn.sap.com/wiki/display/BOBJ/GeneratekeystoreandcertificateforSAPBO+BI4.0])
        ([http://wiki.sdn.sap.com/wiki/display/BOBJ/SetupofSAPSSOServiceinSAPBOBI4.0+CMC])
    2. Generate the certificate file cert.der and this cert is imported in SAP BW with STRUSTSSO2 transaction.
        ([http://wiki.sdn.sap.com/wiki/display/BOBJ/ImportSAPBOBI4.0certificateintoSAP+BW])
    3. BW Roles/Users have been imported into CMC.
    4. SAP Users and LDAP users are mapped/aliased with each other using the registry key method
        ([http://wiki.sdn.sap.com/wiki/display/BOBJ/HowtomapSAPusersandLDAPusersinSBOBI4.0+CMC])
    I haven't explicitly configured STS (Security token service) as STS is a part of Adaptive processing server (APS) and I have verified that by going to servers in CMC and then to analysis services.
    I have searched for SAP OSS notes related to my issue but couldn't find any note related to SAP BW SSO with Business objects 4.0. Most of the notes are relevant for BO XI 3.1 environments.
    Thanks & regards,
    CD.

  • BO 4.0: Database error:Unable to connect to SAP BW server Incomplete logon

    Hello Experts,
    I have enabled a 'SSO to database' between SAP BW and Business objects by referencing to the documents related to below link.
    http://wiki.sdn.sap.com/wiki/display/BOBJ/HowtosetupSSOagainstSAPBWinSBOBI4.0forLDAPusers
    I have created a universe connection with option 'use single sign on when refreshing reports at view time' and have created a universe on top of my BEx query by log-in to the universe designer tools using my LDAP account.
    Now when I run the report with either SAP account or LDAP - I am able to run a adhoc webi report on this universe and get data either through the webi rich client or via BO 4.0 Info-view/Launch Pad.
    But the issue is that when other users are trying to run webi queries on this universe either through Info-view/launch pad or rich client by log-in via LDAP Authentication - they get the below error: I have given SAP_ALL to this user for time being and also have done the necessary configuration for 'simple user format' in CMC so these user has 1 account with 3 alias definitions: Enterprise, SAP, R/3.
    Database error: Unable to connect to SAP BW server Incomplete logon data -
    If the user logs on into the BO 4.0 Info-view/launch pad or webi rich client using his SAP authentication than he is able to run and retrieve data.
    I also get a dump in the SAP BW system - I analyzed the dump in SAP BW using st22 tcode and it gives the error short text as - Incomplete logon data and run-time error - CALL_FUNCTION_SIGNON_INCOMPL
    Desired outcome:
    I want the users to log-in to webi rich client or BO 4.0 Launch pad/Info-view using their 'LDAP' authentication and run reports against the universe on SAP BW/BEx query without any errors or additional username/password requirements.
    Can someone please tell me if I am missing any steps/configuration and guide me to achieve the above mentioned desired result ?
    Any help in this matter would be greatly appreciated.
    Thanks & regards,
    CD.

    Whether your problem is solved?
    We have the same problem in BO Mobile.
    Two users from one BW-role, BO-groups; one user report is executed, another user - error incomplete logon data. In Web Intelligence both users reports succeeds.

  • Lost Connection - Unable to Connect to Server

    PS Touch 1.7.0 on an iPad running iOS 8.1 with a paid CC subscription. PS Touch will not sync, will not show my storage level on Creative Cloud, and when attempting to load a photo from my CC, I get "Lost Connection - Unable to Connect to Server". I tried all the suggested fixes (clearing sync databases all over the place, multiple uninstall/reinstall cycles, etc.) on this board to no avail.
    Since all my other CC-enabled mobile apps work, as do the desktop apps on my Windows desktop and MacBook Pro laptop, I have to believe this is on the server side at Adobe. Of course, this being Adobe, nothing but silence. Completely unacceptable - the app may only be $10, but the connected service is $600/yr.

    It is morning on November 15 and I started the Photoshop touch app to see what it's current status was. I was pleased to see that the storage level usage indicator was no longer blank. Then I turned on the sync function and watched to my horror as every project of which there are many was removed from the app. Next to my surprise all the projects were loaded into the app. Just when I began to think everything was fixed all the projects were deleted from the app. I logged on to my creative cloud account and discovered that all the projects were still in the cloud. These projects represent several years and hours and hours of work. While the creative cloud continues to contain all of the projects the app is now stuck in a mode where the app deletes all the projects and then downloads all the projects and then deletes all the projects and then downloads all the projects etc. in a continuous and never ending cycle. Needless to say this is quite nerve-racking and frustrating. Adobe support are you out there? What is going on with the Photoshop touch app and the creative cloud sync function? I thought the situation was bad before today. But Adobe somehow managed a new element in providing an unreliable service. Please, please resolve this problem.

  • Unable to connect Oracle 10g Express from Visual Studio Server Explorer

    Hello,
    Please help me out here. I am connecting from Visual Studio 2008 to Oracle 10g Express Edition and the I have installed the ODAC 11 and the ODP.NET as well for Visual Studio(Both include Oracle Developer tools). But whenever I tried to connect from my Visual Studio 2008 server explorer so that I can have the database and its object there, I do get this error : "ORA-12560 : TNS: protocol adapter error."
    The following is what I specified in my connection box:
    DataSource Name: (Local Database)
    Username : HR
    Password: the password for it.
    My OS is : Windows Vista Ultimate.
    Please anyone who has solved such error should just help out here.
    Thanks all

    Thank you for your reply. I will like to know if you can use Visual Studio. In visual studio there is what we called Server Explorer and from there you can create connection and access all the database server from there. I am able to connect to the Oracle XE through the browser and I was able to crete table and other stuffs like that but when I tried to connect from Visual Studio 2008, I get the 12560 Error. I checked my TNSNAMES and found this:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = OLAMMIE)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    Look at what I have in my Sqlnet.Ora file,
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    Please kindly help me out of this as it is very urgent. I can connect from browser using http://127.0.0.1:8080/apex but cannot connect from my C# code and Server Explorer. What is likely to cause this error.
    Thank you for helping me in advance.

  • Connecting oracle 10g express edition to jdeveloper

    I am having all kinds of problems connecting oracle 10g express edition with my jdeveloper 10.1.3.3. I can query the database from my command line so I know it is set up, but for whatever reason jdeveloper will not connect with it. When I try to connect with the database through jdeveloper here is the error I keep getting:
    Listener refused the connection with the following error:
    ORA-12518, TNS:listener could not hand off client connection
    The Connection descriptor used by the client was:
    localhost:1521:ORCL
    I have been all through the google results looking for an answer and have come to the conclusion that it is something with either the listerner file or the tns file, but as of yet have been unable to locate them. here are both of those files too.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = ##########)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = #########)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    Please any help would be appreciated I have been at this for days, thanks.

    This has to be some kind of bug with 10g express because I see lots of people having similar problems. I'm in the process of uninstalling 10g, and I will re-install it see if that makes a difference. Again if anyone has any other ideas please keep them coming because this is utter BS it shouldn't be this hard.

  • Slow first connection using Oracle 10g xe and Visual Studio 2008

    {noformat}
    Good day,
    I'm slightly unaccustomed to using forums, so bear with me.
    My initial connection to the Oracle database takes approximately 30 seconds. It seems to be waiting for a connection before timing out and trying another connection which works, as all subsequent connections work immediately. I'm unsure how other people's responses in forums can help me due to the plethora of configurations, so here's mine. My comprehension of the oracle world is still growing, you'll have to explain the terms you're using for me, Hoping you can help.
    I'm using Visual Studio 2008, set to use 32 bit debug mode, on a Windows 7 Pro platform. Also using Oracle 10g Xe, and have installed the 32 bit version of ODAC 11.2 (11.2.0.1) to aid making a connection from Visual Studio to Oracle.
    I have a database set up and a user with system admin rights. This is all local for a programming project and will never see the light of day outside of my personal machine.
    I am using code to connect, not the GUI. I wish to code this project completely without the aid of the GUI. so my connection string within Visual Studio C# is (pw/id hidden)...
    string xe = "Data Source=xe;User Id=xxxxx;Password=xxxxx;";
    OracleConnection conn = new OracleConnection(xe);
    My c:\devsuitehome\network\admin\sqlnet.ora file is this:
    # sqlnet.ora Network Configuration File: C:\DevSuiteHome\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
    And my c:\devsuitehome\network\admin\TNSNames.ora file is this:
    tnsnames.ora Network Configuration File: C:\DevSuiteHome\network\admin\tnsnames.ora
    Generated by Oracle configuration tools.
    XE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = xe)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <machine name)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
    Just for good measure, my tnsping xe shows:
    "Used paramter files:<br/>
    c:\devsuitehome\network\admin\sqlnet.ora<br/><br/>
    Used TNSNAMES adapter to resolve the alias<br/>
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA = (SERVICE_NAME = xe)))
    OK (0 msec)"
    So, how can I make that initial connection faster so I don't spend 15 years testing my application due to slow start-ups? :)
    Thank you.
    Kevin.
    {noformat}
    Edited by: 832285 on Jan 29, 2011 10:08 AM
    Edited by: 832285 on Jan 29, 2011 10:10 AM

    I have formatted my hard drive since my first post. I was running window 64 bit with a higher version of the ODAC and that proved to crash my machine with faulty error messages about memory. I have reverted to a previous version of the ODAC tools and everything works very smooth now. Still the connection time is consistently 20 seconds or longer on the first attempt.
    Just a little more information.. I am currently taking a college course with 15 other students, as you can tell by the impersonal machine name, where programming using visual studio 2008, and Oracle 10g xe is expected. All of us are using a 64 bit environment and we all have difficulties cutting down the load time of making the first connection to Oracle. Some people are longer making the connection, but none are shorter.
    One other note. After the first connection is made, taking 20 or more seconds, and is closed, all subsequent openings of the connection are instantaneous, for all of us.
    If there is ANYTHING more I can get for you, please let me know. With my environment stable as it is, I will not need to format or change any information for the foreseeable future.
    Here is the information you requested
    1 The connection method I am using, I have chosen the manual connection for you, however the delay exists if the connection is made through the GUI as well.
    Historically, I am getting slow connection speeds through adding the connection through the GUI or by a manual connection. Here is how I am doing it manually. I have the connection being created in 20 seconds, which is the best I can get.
    Imports Oracle.DataAccess.Client
    Also included project reference: oracle.dataaccess / version 2.111.6.20
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim connString As String = "Data Source=XE;User Id=abc;Password=abc;"
            Dim con As OracleConnection = New OracleConnection()
            con.ConnectionString = connString
            Try
                con.Open()
                MessageBox.Show("Connected!")
                con.Close()
                con.Dispose()
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
        End SubMy current TNS Ping results
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-FEB-2011 01:02:36
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (0 msec)2 Connection to SQL plus is instantaneous.
    I fought for weeks about the ODAC version 11.2.0.1 that you see in the previous post, and that would be a whole new thread. Suffice it to say I have a reliable environment to program in with this 10.2.0.1.0 version that I am running now, and the connection time has not changed, it is still minimum 20 seconds load time, sometimes up to 25.
    3 Ram usage in my typical environment
    I am running this laptop with 4 gigs of ram. This is a typical environment I would be running my application in.
    Physical memory
    total 4090
    cached 1753
    available 2345
    free 656
    system
    handles 27141
    threads 911
    processes 70
    commit megs 2860/8179
    kernel memory megs
    paged 201
    nonpaged 52
    4 I formatted my machine and reinstalled the Windows 7 professional operating system as of a few nights ago. The Oracle software on my machine is
    Oracle Database 10g express edition
    ODAC 11.1.0
    I amm not sure what filename you would need in addition to the product names that I have installed.
    5 The information from the SET command is
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\stepheke\AppData\Roaming
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=STEKEV0908
    ComSpec=C:\Windows\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\stepheke
    LOCALAPPDATA=C:\Users\stepheke\AppData\Local
    LOGONSERVER=\\STEKEV0908
    NUMBER_OF_PROCESSORS=2
    oracle_sid=xe
    OS=Windows_NT
    Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Oracleapp\stepheke\product\11.1.0\client_1;C:\Oracleapp\stepheke\product\11.1.0\client_1\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Windows Live\Shared
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=170a
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC=C:\Users\Public
    SystemDrive=C:
    SystemRoot=C:\Windows
    TEMP=C:\Users\stepheke\AppData\Local\Temp
    TMP=C:\Users\stepheke\AppData\Local\Temp
    USERDOMAIN=stekev0908
    USERNAME=stepheke
    USERPROFILE=C:\Users\stepheke
    VS90COMNTOOLS=c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\
    windir=C:\Windows

  • Max connections in Oracle 10g Express

    Hi,
    How much connections are possible in Oracle 10g Express ?

    I do the following test:
    I format the test PC, install the O.S. and install Oracle 10g Express and run the following code:
    package testedb;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    public class TesteDB {
         * @param args
         public static void main(String[] args) {
              List<Connection> connections = new ArrayList<Connection>();
              try
         Class.forName ("oracle.jdbc.driver.OracleDriver");
         while(true)
              connections.add(DriverManager.getConnection("jdbc:oracle:thin:@albatroz:1521:XE", "system", "xxx"));
              //connections.add(DriverManager.getConnection("jdbc:oracle:thin:@albatroz:1521:MYDB", "system", "xxx"));
              System.out.println("connections: "+connections.size());
         catch (ClassNotFoundException e)
         System.out.println ("Could not load the driver");
         e.printStackTrace ();
         } catch (SQLException e) {
              System.out.println("----------------------------------------------------------");
                   System.out.println("Qtd of connections: "+connections.size());
                   System.out.println("----------------------------------------------------------");
                   e.printStackTrace();
    After the first test I format again the PC, install the O.S. and install Oracle 10g Standard and run the same code, changing only the database name.
    Well, I get the following results:
    - Oracle 10g Express: I get 19 connections;
    - Oracle 10g Standard: I get 181 connection;
    Final report:
    With the same hardware (1GB RAM) and O.S. (Windows XP Professional) test, the Oracle 10g Express has any restrictions at the question max connections.
    Message was edited by: Hugo Haas
    Hugo Haas

  • Oracle 10g Express Edition - number of simultaneous connections

    Goodmorning,
    I'm goingo to test Oracle 10g Express Edition but I ned to know the max numbers of simultaneous connections it supports.
    Many thanks to all.

    Hi,
    >>Can you tel me how to increase this number in oracle 10g express???
    Just modifying the processes parameter is sufficient. The sessions parameter will be adjusted automatically.
    SQL> alter system set processes=200 scope=spfile;
    SQL> shutdown immediate
    SQL> startupFor more information, take a look at this [url http://forums.oracle.com/forums/thread.jspa?messageID=1672879&#1672879]thread
    Cheers
    Legatti

  • Java Connection Pooling issue with Oracle 10g Express Edition

    Hello
    I have a Java based web application that uses the Oracle 10g Express Edition database. I am using a connection pool to get connections to the database.
    I use the NetBeans IDE and run my web application on the bundled Tomcat server(5.5.7) that comes with the IDE. Though when I initially run the application from the IDE, the connection pool is set up fine, when I recompile my java code and try to run the application again, I get the following error each time:
    Listener refused the connection with the following error:
    ORA-12516, TNS:listener could not find available handler with the
    matching protocol stack.
    The logs before the error shows up, indicate that the connection pool object is fine and gives me the number of available connections and the number of active connections and so on, which I have printed from the constructor of the Connection Pool class:
    For e.g.:
    Cache size = 17
    Available Connections = 17
    Cache Limit = 1000
    Active size = 0
    However, if I kill my Tomcat server process and run the application again, it works fine with no error.
    I looked around for possible causes and solutions and all I could find
    was increasing the processes parameter value in the init.ora file. I have increased the parameter value to from 100 to 20000 now, in increments of 500/1000 each time but it hasnt worked so far.
    Someone else suggested that I increase the size of my connection pool; I initially had it set to a minimum limit of 5, an initial limit of 10 and a maximum limit of 1000. However if I set the Initial Limit to anything above 17 connections, I see the following log on the Bundled Tomcat log and my application doesn't run at all:
    Log: Loading JDBC Driver : class=oracle.jdbc.driver.OracleDriver ...
    Log: Loaded JDBC Driver
    Log: Connection with URL=jdbc:oracle:thin:@localhost:1521:xe as username/password
    Error code not handled : 0
    Exception Message :java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12519, TNS: no appropriate service handler found
    The Connection descriptor used by the client was:
    localhost:1521:xe
    // End of log
    And the Bundled Tomcat server automatically shuts down.
    Again the System.out statements from the Connection Pool class constructor show that the cache has been initialized and that currently there are free connections available in the pool.
    E.g.
    Cache size = 18
    Available Connections = 18
    Cache Limit = 1000
    Active size = 0
    Has anyone faced anything similar? Could someone please suggest what I'm doing wrong here and what I should do to set right this problem?
    Swetha

    hello, please pardon me, my english is basic. i do of my best. i had the same problem until reading the pdf documentation 2 days for java devvelloper.it is simple, follow this way.
    try {OracleDataSource ds;
         Connection conn;
      ds = new OracleDataSource();
      ds.setURL("jdbc:oracle:thin:@localhost");
      conn = ds.getConnection("userid","password");
    Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    don't forget to Dowload the user client of oracle Express Edition. do the rest of your program and it will work. take a look to the documentation pdf for java develloper. all it is explained.  good look                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Can not connect Oracle 10g express edition from report builder.

    I have newly installed report builder . Different home was selected for Report builder and oracle. Oracle database server is also in the same machine. But i am not able to connect my oracle 10g express edition database. It throws error ORA-12154 : TNS could not resolve service name.( same error displayed while trying to connect from SQL Plus).But from toad i am able to access the database. May be because here I am able to select the proper home.
    Here i am adding my tns entry
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 1ECA66A679AB494)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    can any one suggest what the actual problem is?
    Thanks ..........

    Hello,
    Oracle 10g XE is rather specific and, I'm not sure that you can upgrade it to 10.2.0.4 .
    However, Oracle published an Upgrade Guide for Oracle Express Edition but, it's limited to *10.2.0.3*:
    http://download.oracle.com/docs/cd/B25329_01/doc/server.102/b32391/toc.htm
    But be careful:
    Once you have upgraded to Oracle Database 10g, you cannot downgrade back to Oracle Database Express Edition.Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on May 22, 2010 12:06 AM

Maybe you are looking for