Unable to use "easy connect" method to XE database

All,
I have an XE database running on Oracle Enterprise Linux. If I create a tnsnames.ora entry I can connect to the server fine. However, if I try to connect via the easy connect method
sqlplus user@host:port:sid it fails with
Enter password:
ERROR:
ORA-12545: Connect failed because target host or object does not exist
the hostname I am using is definitely correct and I've also tried with ip address and get same error message. If I change from SID to SERVICE_NAME
sqlplus user@host:port/service
I get the following error message
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
I've used both XE and xe as service name. The service name in my tnsnames.ora entry that works uses lower case xe for service name.
Any help out there would be appreciated.

Maybe this is more significant for you ?
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\User1>sqlplus test/test@xe
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Feb 3 14:05:49 2007
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name: test/[email protected]/xe
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL>

Similar Messages

  • Try to use easy connect to connect from isqlplus but to no avail

    Using the Easy Connect Naming Method
    from http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/naming.htm#sthref783
    I want to connect from isqlplus remotely.
    pardon me if I ask this stupid question,
    do I need to install oracle client to use isqlplus. if yes, then no need to answer the above question.
    I mean with browser no doubt I can reach the url, but when it prompt for the connect string, i try to substitute the
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = globalro-417667)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = tomkyte)
    so I wonder if I'm doing the right thing or not.
    thanks!

    Hi,
    See the link care fully, the page which you reffered it self says "This chapter describes how to configure connectivity information for client connections to the database server." So Client is required.
    Clients can connect to a database server using easy connect naming if the following conditions are met:
    - Oracle Database 10g Net Services software installed on the client.
    - Oracle TCP/IP protocol support on both the client and database server
    - No features requiring a more advanced connect descriptor are required
    Every thing is there in ORACLE Document.
    - Pavan Kumar N

  • Oci_connect using easy connect naming method needs listener??

    Hi,
    I was thinking that using the easy connect naming method in oci_connect does not require a running local tnslsnr!? Am I wrong?
    I tried:
    $db = '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = my-ora-host.example.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = my-service.example.com)))';
    // $db = '//my-ora-host.example.com:1521/my-service.example.com';
    $ora_conn = oci_connect('test', 'test', $db);
    Using both versions of the 'db' I receive the error:
    mod_fcgid: stderr: PHP Warning: oci_connect(): ORA-12541: TNS:no listener in ....
    I am using a self compiled PHP 5.3.8 using Oracles instantclient 11.2.0.3.0 (on Linux, 32bit).
    There are NO special environment variables ( like ORACLE_HOME or TNS_ADMIN), because I was thinking that I don't need them...
    Am I wrong? Is a running tnslsnr always required? Or am I doing wrong in specifying the connection string?
    Any help is appreciated!
    chuan

    The connection strings are fine. They only control how PHP attempts to connect to the DB. The DB will need a listener started so that those incoming requests are handled. Use: 'lsnrctl start' on the DB machine.

  • Does PB 12.6 support to use other connection method (e.g. OLEDB) MS SQL server 2012 ?

    Hi
    I checked following page and I understood that PB 12.6 supports native connection for connecting to MS SQL Server 2012.
      Latest database native drivers supported by PowerBuilder 12.6
      http://wiki.scn.sap.com/wiki/display/SYBPB/Latest+database+native+drivers+supported+by+PowerBuilder+12.6
    But there is no info about other connecting methods (e.g. OLEDB).
    Does PB 12.6 support to use them ?
    And is there a info of it ?
    Thanks.
    Tsuyoshi Yagi

    Hi Tsuyoshi;
    1) FYI: OLE-DB and ODBC are examples of "middle-ware" and are not a direct connection to any DBMS vendor!
    2) The true native client connection to SS is SNC (SQLServer Native Client). That connection mechanism is supported in PB.
    Note: You could also use JDBC or ADO.Net as well from PB. Personally, I always use SNC for the best performance and supported DML functionality.
    HTH
    Regards ... Chris

  • Unable to use Internet Connect with my new wireless device

    I just received a new wireless device for my macbook pro. Normally I sign on with Internet Connect, but after setting up the new card, I can only connect using Verizon Manager, which usually doesn't give me good connection, I don't know why.
    I called the Verizon people, they mostly are clueless as to how I was able to sign on using both Internet Connect and Verizon Manager before with my old card. I remember there's a way of setting up manually if you want to use Internet Connect. Problem is, when I went to Systems Preferences and clicked on Network, a pop up prompt saying "your network setting have been changed by another application" keeps popping up even as I keep closing it. ***?!!! How can I get rid of it so I can change network setting manually?
    I just want the option of connecting with Internet Connect with my new wireless device. BTW, when I try connecting with it using my old setting National access/ Broadband access , I get a message saying "the selected communication device does not exist".

    "I just received a new wireless device"
    If not from Verizon, then who? Did it come w/a manual? If not, have you contacted the vendor/manufacturer for instructions?
    ==========
    "A Fix for "Your network preferences have been changed by another application" Error
    In the Library/Preferences/SystemConfiguration/ folder delete the following:
    com.apple.airport.preferences.plist
    NetworkInterfaces.plist
    preferences.plist
    com.apple.nat.plist
    You will have to re-configure all your network settings since deleting"
    !http://i50.tinypic.com/izvwo1.gif!

  • Unable to use Cache connect to oracle

    Hi Friends,
    I am using TimesTen Cache connect to oracle to connect to Oracle 9i. When I tried to
    Command> call ttCacheUidPwdSet('testuser','mypsswrd'); it gave me an error saying
    "con1: Command> call ttCacheUidPwdSet('TestUser', 'prashant');
    Warning 5105: OCI initialization failed: Error due to failure of ttOCIEnvNlsCre
    ate (called from ttBDbEnvAlloc/ttBDbInit).
    Warning 5109: Cache Connect general error: BDB connections not open."
    can anybody tell me what could be the problem.
    And to use cache connect is there a separate installation ? or setting ?
    Thanks,
    Prashant

    What exact version of Oracle client is installed on the TimesTen machine? Are the permissions for the Oracle client directory and files set correctly? Do you have your Oracle environment properly setup (i.e. can you connect to Oracle using SQL*PLUS)? When you installed TimesTen, did the user you used to install it have a valid Oracle environment?
    This type of error is almost always due to an unsupported version of the client or an incorrect environment either at runtime or at installation time.
    Chris

  • Error when extracting data using DB Connect from an Oracle database

    Hi All,
    We are on BI 3.5 and loading data from a non-SAP (Oracle 10g) database using DB Connect.
    I received the following error messages when trying to perform "Check DataSource" using the DB Connect setup in RSA1.
    Event with errors RSDL_META_UPLOAD in DataSource
    Message no. R8287
    Warning Messages;
    Message no. RSDL053
    Field name ReceiptID contains non-alpha-numeric characters
    Field name ActivityDate contains non-alpha-numeric characters
    Field name ReceiptDate contains non-alpha-numeric characters
    Field name ReceiptLineNumber must have between 000001 and 000016 digits
    etc...
    Views are created under the owner's user name. I have checked with DB personnel and they confirm that all the authorization and security access privileges have been correctly granted to the views.
    We are also able to extract the data by running a sql query statement from the views using SQL Plus
    Currently we also have a similar extraction process set up with an Oracle 9 database, which extracts the information without any issues.
    Thanks,
    Anthony

    Hi Mr Loh.
    I know that this thread has over a year ago but i was looking for something similar for over 2 weeks ago and i ialways found this thread...I want to share my experience even that maybe you already found the same solution or something similar (i saw that you check your own post as answered):
    I made a similar connection from BI 7 SP 18, but in my case was to a Microsoft SQL database 2005. When i "check the datasource" i receive like almost 150 warnings and 1 error and all the warnings and errors are the same ones as you describe above. What i did is create a custom view in the MSSQL database and convert all the column names to uppercase and the column names i limited to 16 characters at most. after doing that all the warnings and the error described disappear and i can view the database content when you made click in the "view content table" button.
    I hope that this will help somebody and best regards
    Martin Olmos

  • Connection method to relational database

    Does anyone know if Hyperion uses ODBC connection or native connection to the relational database?
    Technology question being asked by IT department

    Hi,
    It is possible to configure native drivers through jdbc. Here is how:
    http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/ch02s07s01.html
    Cheers,
    Alp

  • Unable to use session.setAttribute() method in oracle application server

    i am creating a simple jsp page for two lines of code as
    <%@ page language="java" session="true" %>
    <% session.setAttribute("sam","sam"); %>
    and deploying it in oracle 10g application server. when i am accessing that page, getting an error as
    oracle.jsp.provider.JspCompileException:
    Errors compiling: page url
    Method setAttribute(java.lang.String, java.lang.String) not found in interface
    javax.servlet.http.HttpSession. session.setAttribute("sam","sam");
    can anybody give the solution???

    Here is a diagnostic page which will tell you what version of JSP/Java etc you are using, the session Id, and where the session comes from.
    The standard approach for session tracking is to use a browser "session cookie", using the standard name JSESSIONID.
    Session cookies are different from standard cookies as they just remain in memory, and do not get stored to your hard drive. As such, They are not so easy to monitor. This page also uses javascript to show any cookies.
    <h2> Server Info </h2>
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    JSP version = <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion()  %> <br>
    Java version = <%= System.getProperty("java.vm.version") %><br>
    Session id = <%= session.getId() %><br>
    From cookie = <%= request.isRequestedSessionIdFromCookie() %> <br>
    <h3>javascript cookies</h3>
      <script>
        document.write(document.cookie);
      </script><br>What you described with the IE browsers sharing sessions when you start one from the other with "File:New Window" is the expected behaviour. All "child" windows of a browser share the same session. No, there is nothing you can do to stop this or affect this functionality.
    Cheers,
    evnafets

  • Unable to use camera connection kit

    I downloaded IOS5 to my ipad2 and lost my pictures when I try to redownload them using my ipad camera connection kit it tells me it doesn't recogize the device any suggestions?

    Which part of the kit are you using, the cable to camera connection or the SD card reader ? If the SD reader then how are the photos getting onto the card, direct from the camera or from your computer ? If you are adding them to the card then you need to create a DCIM directory off the root of the card, with the photos underneath it, and the photo filenames need to be exactly 8 characters long (no spaces) plus the file extension i.e. in a similar format as if a camera had created/written them

  • Unable to establish a connection to Oracle 9I database from Developer Forms

    I've installed the Oracle 9I database in the Windoes NT server with SID = ORA9i. Using the SQL*plus coming with oracle 9I database, I can connect to the database. I've also installed the Developer with Forms 6I and Reports 6I in the same computer. I tried to establish a connection to the Oracle 9I from Developer through "Oracle Net8 Easy Config". After giving the settings, when I do a connection test, it is giving the error "TNS Could not resolve the Service Name".
    the following is the entry in the 'tnsnames.ora' file
    TEST9I.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST = ((PROTOCOL = TCP)(Host = ntserver)(Port = 1521))
    (CONNECT_DATA = (SID = ORA9i))
    Can somebody tell me how to make a connection from Developer (Forms6I and Reports 6I) to Oracle 9I database.
    Thank you.

    hi matz,
    i tried this one too, but it is not working. giving the same error. if i've making a connection thru the 'Oracle Net8 easy config', it is giving the following error at time of connection test.
    The test did not succeed.
    ORA-03106: fatal two-task communication protocol error
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    this is the message i'm getting. but i couldn't find any error in the fields i entered.
    if i'm editing the 'tnsnames.ora' file and make the connection, and when i open the Form builder and try to connect to the database, it is giving a memory error.
    the instruction at "0x67614f04" referenced memory at "0x000000160". The memory could not br "written".
    i don't know why it is happening. i can connect from the same forms to Oracle 8i database. is there any additional settings we need for Oracle 9i on windows platform?
    regards
    george

  • Windows "Easy Connect" does not reply with the password / "Easy Connect is not Available"

    Hello,
    I have posted a related question some time ago, which was eventually resolved. However, after some time a problem with Easy Connect (used for MSRA) came back:
    Whenever I arrive at the point in setting up a MSRA session where Easy Connect is needed, I get the reply: "Easy Connect is not Available". Here is an example of the problem:
    Start MSRA
    --> as expected, a window with "invite someone to help you" and " Help some who has invited you" appears
    Select "invite someone to help you"
    --> as expected, a window with "Who do you want to get help from" appears 
    Select "Invite someone to help you"
    --> as expected, a windows with "How do you want to invite your trusted helper?" appears
    Select "Use Easy Connect"
    --> as expected, the temporary "Create invitation window / checking network capabilities" window appears
    Next, I would expect this windows to close a new window to provide me with the Easy Connect password. However, instead I get the window "Easy Connect is not available".
    I cannot continue. (I have screenshots so can repost with them if that would clarity my question)
    Any suggestion how to resolve would be appreciated.
    (Please do not reply with the 3 suggestions from the FAQ (both computers must run windows 7 / Access to internet is limited / your router does not support Easy Connect - doesn't help)
    More background information and things I have tried:
    The "Easy Connect is not available" window offers the "Tell me more about how to fix this problem" which I have tried, but those suggestions do not help
    If I use the other MSRA option: "Help someone who has invited you" (this would be my typical use case), followed by "help someone new" and than select "Use Easy Connect", I also get the "Easy Connect is not available"
    window instead of the expected option to enter the Easy Connect password. I believe this is that same problem.
    This happed with both the 32 as well as the 64 MSRA versions
    I'm using Window 7 Ultimate, 64 bit with all the latest updates
    This desktop PC is wired to the internet via an Edimax gigabit switch, a Dlink DIR-855 wireless router and a fiber modem in bridge mode
    The W7 desktop has a single active network connection only
    I'm using Windows Firewall and Windows Security Essentials
    Disabling the firewall on the PC did not help
    Network discovery is enabled in Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings (that’s UPnP – right?)
    The Internet Connectivity Evaluation Tool does not seem to be available anymore from MSFT sites
    Restarting "Peer Name Resolution Protocol" did not help
    Restarting "Peer Networking Identity Manager Properties" did not help
    Starting up with a "Clean Boot" (disabled all non-Microsoft services using MSConfig) did not help
    I would also be interested to understand how I can check on the status of the "Easy Connect" service. Is this a service hosted somewhere, or??
    Thanks!

    Dear Andy,
    Thanks a lot for your reply. Let me answer your questions:
    Q: Could you use the other methods: save this invitation as a file and use e-mail to send invitation?
    A: yes, that way I can establish a MSRA connection
    Q: Have you disable other network connections, including disable all virtual network card?
    A: if I check with ‘Device Manager/Network Adapters’ (or Control Panel/Network and Internet/Network Connections) I see two network adapters (my Asus motherboard has two network connectors). Both are available, but only one is used. I have
    disabled one. Unfortunately, this does not solve the problem. I will leave it disable for now.
    Q: To find detailed information about this issue, please locate to event view and find the logs about remote assistance.
    A: I have to admit that the Event Viewer is unfamiliar territory for me. So, I’m not sure where and what to look for. However, as suggested, I found "Event Viewer (local)/Applications and Services Logs/Microsoft/Windows/Remote assistance/Operational".
    Each time, I attempt to use MSRA/Easy Connect, it seems two entries are added. As I cannot seem to upload files with this post, here are just the two entries:
    “Diagnosis Repro Attempt resulted in a failure.”
    “Remote Assistance troubleshooting has confirmed the problem: Remote Assistance Easy Connect isn't available.”
    If you need more details, please suggest what to forward or check. I'm eager to find a solution!
    W.

  • SQL - Database access using Oracle.connect(getCLass(), "connect.properties")..IM LOST

    Hi,
    I use Oracle.connect(getClass(),"connect.properties") before all of my #sql statements. If there are a bunch of methods with #sql statements, I use the connection method. I think this is my problem and Id like some feedback from other people.
    1) Should i be using an Oracle.connect statement before every #sql?
    2) If so, does it create new connections all the time or does it just know there is a current connection so it doesnt keep adding new connections?
    3) Is there a way to get one connection and then test to see if there is a connection so that i dont keep getting new connections?
    4) Do I have to close the connections? I tried Oracle.close(); but got some wierd errors. I read somewhere that If autocommit is true, you dont have to close jdbc connections.
    Thanks for your time and I appreciate any feedback that anyone has to offer.

    Hi Adam,
    Please find the answers inline.
    I use Oracle.connect(getClass(),"connect.properties") before all of my #sql statements. If there are a bunch of methods with #sql statements, I use the connection method. I think this is my problem and Id like some feedback from other people.
    1) Should i be using an Oracle.connect statement before every #sql?No, you don't have to call this each time, just call this once to intialize your DefaultContext and from then on, whenever
    #sql is used, it would fetch the connection from the DefaultContext.
    2) If so, does it create new connections all the time or does it just know there is a current connection so it doesnt keep adding new connections?No, it doesn't create connections each time.
    3) Is there a way to get one connection and then test to see if there is a connection so that i dont keep getting new connections?There would be only one connection
    4) Do I have to close the connections? I tried Oracle.close(); but got some wierd errors. I read somewhere that If autocommit is true, you dont have to close jdbc connections.The connection has to be closed explicitly using Oracle.close();
    For samples on using connect.properties refer to,
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_sqlj/9i_sqlj.html#BatchingAndREFCursorSample
    Regards
    Elango.

  • Oracle Package using JDBC Connection

    Post Author: pramodib
    CA Forum: Data Connectivity and SQL
    Hi
    I am using crystal report XI. I want to use JDBC connection and Oracle 10G database package.But when i connect to the database and choose that package it shows that the package not exists...Is it not possible to connect to the package????Can anyone plz give a comment
    Pramod P

    Post Author: yangster
    CA Forum: Data Connectivity and SQL
    no the only thing you can connect directly to in crystal are tables/views/stored proceduresto access the package you can write it into a store procedure so it can be executed that way

  • Connecting to an oracle database with SQLPlus

    I'm trying to connect from one CentOS server with SQLPlus installed to another CentOS server with Oracle installed.
    I've installed
    oracle-instantclient-basic-11.1.0.1-1.i386.rpm
    and
    oracle-instantclient-sqlplus-11.1.0.1-1.i386.rpm
    on the first server.
    I'm able to connect to the oracle server via SQL Developer without difficulties.
    When I try to connect to it via the command line with SQLPlus, I'm running the following:
    sqlplus savantdb@//192.168.100.37:1521/orcl
    But all I'm getting back is something that reads like help documentation.
    I've exported the LD_LIBRARY_PATH to point at /usr/lib/oracle/11.1.0.1/client/lib/:/lib
    I've created a tnsnames.ora file in my home directory containing the following:
    orcl=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=tcp)
    (HOST=drax)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVICE_NAME=orcl)
    Then I tried moving to my home directory and running
    sqlplus savantdb@orcl
    This prompts for a password, then throws the following error:
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Then asks for a username/password, after which it throws the following error:
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified
    What I want to do is allow my unit tests written in Selenium and PHPUnit to make shell_exec calls to execute sql files to recreate the database from scratch before putting the application through its paces. So I need to make it totally non-interactive.
    Can anyone give me a clue where I'm going wrong here?

    You are mixing up the various naming methods. Try to stick to one!
    Your first attempt sqlplus savantdb@//192.168.100.37:1521/orcl uses the so-called "easy connect" method.
    That's actually not a bad idea, as it is fairly short and does not require a "tnsnames.ora" file, which is a pain in the somewhere or else.
    sqlplus has a parsing problem if you don't enclose part of the string in double quotes. You cannot find that in the documentation, but in Metalink Note 274757.1.
    The syntax is like this:
    sqlplus savantdb@\"//192.168.100.37:1521/orcl\"
    Your second attempt tries to use the TNS (local) naming method, but for that you need to have an environment variable TNS_ADMIN pointing to the directory containing "tnsnames.ora". It does not matter if that directory is your current directory or not. You don't need that if you use the method described above.
    The last error message is because of the annoying behaviour of sqlplus to ask for username and password (for a local connection!) again if the first attempt failed.
    You can avoid that by giving sqlplus the -L flag.
    Yours,
    Laurenz Albe
    PS: If you want to "make it totally non-interactive" you should add a password, like
    sqlplus savantdb/password@//192.168.100.37:1521/orcl
    In that case, you don't need to add the \"

Maybe you are looking for