Question about "Easy Connect Naming"

Good evening,
My installation consists of 11gR2 where both host and client are on the same machine.
I wanted to test the "Easy Connect Naming" functionality, to that end, I renamed tnsnames.ora and proceeded to connect using the following command:
sqlplus sys/abc123@"Oracle2Day1.john.local/orcl.john.local:1521" as sysdbaas expected, the command was successful in connecting to the orcl instance.
To ensure that everything was as expected, I also tried:
sqlplus sys/abc123 as sysdbaUnexpectedly, this command also connected to the orcl instance.
I expected it to fail since there is no tnsnames.ora and I did not specify the host and service names.
The question is: why was the command sqlplus sys/abc123 as sysdba" successful given that there is no tnsnames.ora ?
Thank you for your help,
John.

The question is: why was the command sqlplus sys/abc123 as sysdba" successful given that there is no tnsnames.ora ?Above only works when logged directly on to DB server, because this flavor of connection does not use SQL*Net; but uses BEQ protocol.

Similar Messages

  • TIP 02: Easy Connect Naming Method in 10g by Joel Pèrez

    Hi OTN Readers!
    Everyday I get connection on Internet and one of the first issues that
    I do is to open the OTN main page to look for any new article or any
    new news about the Oracle Technology. After I open the main page of
    OTN Forums and I check what answers I can write to help some people
    to work with the Oracle Technology and I decided to begin to write some
    threads to help DBAs and Developers to learn the new features of 10g.
    I hope you can take advantage of them which will be published here in
    this forum. For any comment you can write to me directly to : [email protected]
    Please do not replay this thread, if you have any question related to
    this I recommend you to open a new post. Thanks!
    The tip of this thread is: Easy Connect Naming Method
    Joel Pérez
    http://otn.oracle.com/experts

    Let's go to test it removing the BASE1 service of the listener.ora file
    # listener.ora Network Configuration File: C:\oracle\product\10.1.0\db_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = BASE2)
          (ORACLE_HOME = C:\oracle\product\10.1.0\db_1)
          (SID_NAME = BASE2)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = oracle10g)(PORT = 1521))
      )and Now, I am going to reload the listener service in order to
    apply the change to the enviroment.
    Microsoft Windows 2000 [Version 5.00.2195]
    (C) Copyright 1985-2000 Microsoft Corp.
    C:\>
    C:\>lsnrctl stop
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 20-APR-2004 13:20
    :35
    Copyright (c) 1991, 2004, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g)(PORT=1521)))
    The command completed successfully
    C:\>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 20-APR-2004 13:20
    :39
    Copyright (c) 1991, 2004, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    System parameter file is C:\oracle\product\10.1.0\db_1\network\admin\listener.or
    a
    Log messages written to C:\oracle\product\10.1.0\db_1\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10g)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
    ction
    Start Date                20-APR-2004 13:20:41
    Uptime                    0 days 0 hr. 0 min. 2 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\oracle\product\10.1.0\db_1\network\admin\listener.o
    ra
    Listener Log File         C:\oracle\product\10.1.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "BASE2" has 1 instance(s).
      Instance "BASE2", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\>Joel Pérez
    http://otn.oracle.com/experts

  • Multiple Data Source (for FAILOVER) in Easy Connect Naming method

    Hi All,
    I was wondering if there is a way to specify multiple addresses as part of data source property in the connection string when trying to connect to Oracle with Easy Connect Naming method? this is basically for failover scenario.
    I know its straight forward, if i use Connect Descriptor. But not sure how to do it with EZConnect
    For ex. this is what I want to achieve with EZConnect
    sales.us.example.com=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (LOAD_BALANCE=off)
    (FAILOVER=ON)
    *(ADDRESS=(PROTOCOL=tcp)(HOST=sales1-server)(PORT=1521))*
    *(ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))*
    (CONNECT_DATA=(SERVICE_NAME=sales.us.example.com)))
    I appreciate your suggestions...
    Thanks

    You might get better answers in one of the DB forums from a generic fail-over perspective as EZconnect isn't specific to ODP.NET.
    I don't know if there's a way to do it or not with EZConnect version of the connect string, but you can certainly provide the fully qualified connect string without using tnsnames.ora..
    constring = "data source=(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=off)(FAILOVER=ON)(ADDRESS=(PROTOCOL=tcp)(HOST=sales1-server)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=sales.us.example.com))); user id=scott;password=tiger"
    Hope it helps,
    Gres

  • 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.

  • Audigy 2 ZS: questions about TAD connect

    <SPAN>The drivers for my motherboard?s onboard sound were causing problems, so I replaced the onboard sound with an Audigy 2 ZS card.<SPAN> It is fantastic!<SPAN> I am not having any problems, but there are some questions about its use the answers to which I have not been able to glean from the manual or the online knowledge base.<SPAN> Since my questions involve three different issues, I am making three different posts.<SPAN> I hope this doesn?t violate some kind of posting rule.<SPAN> If it does, I apologize.<SPAN> I certainly will appreciate any help anyone can give me.
    <SPAN><FONT color=#000000 size=3>I have a USR 2976 voice modem in a PCI slot next to my new Audigy 2 ZS card.<SPAN> The 2976 modem is very common; but since it is OEM, US Robotics? support consists essentially of acknowledging its existence.<SPAN> I would like to make a TAD connection between the sound card and modem in order to use the sound card in a speakerphone setup.<SPAN> The modem has only one side connector and it looks identical to the TAD connector on my Audigy 2ZS, but I don?t know its pinouts.<SPAN> (I found the Audigy card?s TAD pinouts online.) Since my optical dri'ves use digital audio extraction, I don?t need the CD audio cable that went from one optical dri've to the motherboard?s CD sound in connector; and I disconnected it.<SPAN> The CD audio cable fits only one way into both the sound card TAD connector and the modem?s similar 4-pin connector.<SPAN> Would I be safe in connecting the modem and sound card together using the CD audio cable even though I don?t know the modem?s pinouts for its connector?<SPAN> Are most modems consistent in this?
    <SPAN><FONT color=#000000 size=3>The CD cable is fairly long.<SPAN> I would need only a very sort cable to connect the two adjacent cards, but I have not been able to find a short one.<SPAN> Does anyone know a source or if there is a specific name for a short cable for this purpose?<SPAN> (I have had no luck googling ?TAD cable?.)

    BigBen,
    I'll answer your questions here point by point (for clarity).
    ) No, that won't be possible. A line input is only stereo, so all you'll receive signal-wise is just a stereo stream. You'll need a coaxial or optical input to get that signal to the card (only available on the Platinum dri'ves).
    2) In theory that could work, yes, the connections are there. That isn't something we would have tested (or support), though.
    Cat

  • Question about router connections

    Does a wireless router need to be connected to an external modem?  My modem is essentially a card in a box on the outside of my house, so connecting to it, other than through a wall outlet, is pretty much out of the question. 
    My connection goes from wall outlet directly to the ethernet port on my pc...am I even able to connect a wireless router?

    The wire that runs from your modem outside, to the outlet on your wall, apparently allows you to connect directly to your modem.
    Probably you can simply run a wire from your wall outlet to a wireless router.  However, before investing in a wireless router, I would suggest that you verify that this setup will work with your ISP (internet service provider).  Also, check your ISP's web site.  They have probably already posted directions on how to set up wireless with their system.

  • Questions About Losing Connection

    Like other people I've noticed here, my WRTG45 v5 wireless router has recently started losing connection to the net multiple times a day. At first, we thought it was because our modem was old, so we bought a new one, but it didn't fix anything. So here are my questions:
    1. My dad seems to think that a configuration or setup CD (that we lost) is required to make the router work with the new modem. Is this true? I don't think so, but I have to ask just so I can get him to move on.
    2. I noticed in other posts here that programs like Bittorrent can cause the router to be overworked or whatever. This might explain our problem, as I use Bittorrent a lot (but not everytime the connection has dropped). If this is indeed the problem (or contributing to it), is there anyway to deal with it while still being able to use the program?
    For the first couple months, the router was working fine. Even with Bittorrent running a lot, and all the computers (2 wired, 1 wireless, and 1 wired X-Box) engaging in various activities on the net. So this is very puzzling to me.
    One more bit of information, I have given every computer a unique, static IP address. However, I noticed recently that when I look at the router configution after typing in its IP address in a web browser, that it is set to DHCP Enabled.
    Also, in the advanced TCP/IP settings for this connection, under the WNS tab, the NetBIOS setting is set to the default of using NetBIOS from the DCHP server.
    Since I am using static IP addresses, could these DHCP centered settings be causing problems? Although, even if they are, it still doesn't explain why the router was working fine months ago (unless someone changed stuff without my knowing).
    Anyway, any help at all would be appreciated.

    I assume you meant that you had a WRT54G v5 router.
    First of all, the setup CD is not required.  All router settings can be made by going to the router's web pages at 192.168.1.1
    It is possible that the static LAN IP addresses are causing your problem, if they were not set up correctly.  Linksys has a strict set of rules to follow regarding static LAN IP addresses.
    With Linksys routers, a fixed (static) LAN IP addresses must be assigned in the device that is using the address.  So you need to enter the fixed address in the computer or printer, not in the router.
    When using a Linksys router, any fixed LAN IP address must be outside the DHCP server range (typically 192.168.1.100 thru 192.168.1.149), and it cannot end in 0, 1,  or 255.
    Therefore any fixed LAN IP address would normally need to be in the range of
    192.168.1.2       thru 192.168.1.99  or
    192.168.1.150   thru 192.168.1.254
    assuming you are still using the default DHCP server range.
    Also, in the computer, when you set up a static LAN IP address, you would need to set the "Subnet mask" to 255.255.255.0  and the "Default Gateway" to 192.168.1.1
    It is also important that no two devices on your network be set to the same static LAN IP address.
    Check all of your static LAN IP addresses.  If you have violated any of the above rules for static LAN IP addresses, it could be the cause for your problem, and you should fix it before attempting any other router repairs or changes.
    You should leave the DHCP server turned on.  This way, if you have a visiting friend who you want to connect to your system, it will be easy to do.   Leaving the DHCP server turned on should not cause any problems, even if all your addresses are fixed.   In general, you should let the DHCP server assign all addresses, unless there is a specific reason to use a static address.  You can mix static and DHCP assigned addresses on the same LAN, as long as you follow the above rules for static addresses.
    Linksys routers have had problems when BitTorrent is used.  Your router has new firmware posted that should improve compatibility with BitTorrent.  It is firmware version 1.02.0   You will need to download and install this firmware (after fixing the static address problem, if any).  (Note:  When you update your firmware, you should use a computer that is wired to the router.  Also, when you do a firmware upgrade, turn off all other computers on your system, and unplug all other wires from the router.)   After you have installed the firmware, and powercycled the router, you will need to reset your router to factory defaults, then setup the router again from scratch.
    Message Edited by toomanydonuts on 04-12-200712:54 AM

  • Question about Business Rule Naming

    Hi,
    As we know that there is a restriction on number of characters you can enter to name a BR - is there a way that I can have two different names assigned to the same BR in EAS and Planning? Something like an alias? Or if that's something that cant be done then is there a way to make the description show up in the left pane when the Business Rule is associated with the dataform?
    We have rules/scripts that have short names but since the users might not be able to understand them by just looking at those names, was just wondering if we could make it a little simpler for them but either giving it another name (alias) or atleast show up the description?
    Please let me know your thoughts on this.
    ~ Adella

    Hello John,
    The naming restriction on BR is 50 characters. Honestly I didn't try it before until I saw your response and the question you asked me. :)
    I think you pretty much answered my question. Since I can enter upto 50 characters to name a BR I can give longer names which will be easier for the users to understand as well. I just hope that it should not create any other problems.
    I am glad you asked me the question. I always thought that the same restrictions apply on the BR too as with calc scripts.
    Thanks a lot John !
    ~ Adella

  • A question about direct connect and getting emails on BB curve 8350i

    can someone please help me....I'm new to BB and I just purchased a curve 8350i. First question when I direct connect to someone after i'm done with the call, i always get a message about the call i just did. How do I stop from getting those annoying messages. Second question I have an email set up in my BB. Now everytime I get a email I get a copy in my message icon and my email icon, how do I stop from getting a copy of my email messages. I would appreciate if anyone can anwer my questions...Thank You

    1. no idea
    2. you can find answers for this all over the forums, it gets asked atleast once a day.
    the messages icon is a general incoming icon, all incoming messages go there, only item you can seperate from it are sms & mms texts.
    if you use txting, you can seperate sms from the msgs, then hide msgs. use email and sms icons
    when you delete your email from email icon it will automatically delete from msgs as well. its not actually 2 emails in 2 locations, its 2 locations pointing to the same email

  • Question about secuting connection to the database

    Hi.
    I need to fix an Oracle Consulting custom solution that became incompatible with the new version of the application.
    What's the catch:
    this solution is basically a SQL*Plus script that resides on the filesystem and performs a bunch of commands to generate and load data from Views.
    My difficulty with this is that one of those commands is a CONNECT.
    I'm concerned about the security implications of performing an "open connect" via SQL*Plus command like this.
    My questions are:
    1) Is there a way to secure the SQL*Plus session so that its commands are not visible via a Trace or something else?
    2) What's the best way for me to perform that CONNECT command in a secure way, so that the user and password do not become visible?
    Thank you.

    I do not see the problem.. SQL*Plus is a client like any other client. VB. Java. Delphi.
    Such clients will also make use of a connect string to Oracle. In some cases they will prompt for username and password from the end-user - assuming Oracle schema authentication is used. In many cases they will automatically (via an internal hardcoded connect string) connect to an app schema and then use a USERS table to authenticate the end-user (and thus not use Oracle security).
    The biggest concern in this case is making this connect string visible. EXEs and DDLs can be dumped and ASCII strings extracted - and with it, potentially hardcoded username and passwords.
    In case of a SQL*PLus script, this is in clear text in the actual script itself. But unlike a VB EXE that runs in the wild (on some client PC somewhere), I would assume that in your case this maintenance process runs from a secure o/s account on a server.
    In that case, all that is needed to revoke read/write access to that script from all other o/s users on that server.
    Of course, this assumes that the actual SQL*Plus script uses the CONNECT command and not the sqlplus command line - as command line switches are visible via process monitors.
    Another option is not to use Oracle schema authentication for that maintenance process, but o/s authentication. In which case only that o/s user can logon to that schema and execute code. Thus no username and password to protect as the o/s account itself provides the protection.

  • WiSM Switch - Questions about Client Connections

    Hello!
    i?m planning a worst case scenario for a customer site. They got a couple of 6500?s with WiSM Modules installed. Now I?m sitting over a instruction of what to do when a WiSM breaks down and I got a few questions regarding the clients.
    In the case a Controller stops responding, the AP?s are automatically switched to the secondary Controllers. What happens when the Primary Controller returns - they automatically switch back, right? Is this automatic switch combined with a loss of wireless connectivity? (LWAPP tunnel gets torn down, and a new LWAPP connection must be established - that is basically the same if I restarted the AP, isn?t it? ) If so, how long does it take for the connectivity to return? Is it possible to manually do the switch to a later time (late in the evening..) to minimize the effects for the clients? The Goal is to keep the clients up and running, without termination of the wireless connection - if this is possible.

    Also, after checking my WLC's Controller->General config screen, you will find a parameter called "AP Fallback".
    It can be either "Enabled" or "disabled" and determines whether or not an access point that lost a primary controller connection automatically returns to service when the primary controller becomes functional again.
    I suppose that if you set this parameter to "Disabled" in the secondary controller, before activating the repaired/replaced primary controller that this would also accomplish what you want.
    It is not clear if the same setting would also need to be applied to the primary controller. You may need to test this aspect first to be sure.
    Presumably, you could then re-enable "AP fallback" when you are ready to force the LWAPs back to the primary.
    I hope this helps,
    - John

  • Uk Mac user. Questions about internet connection please!

    I own a Mac G4 800 Mhz tower.
    At present connect to the internet via ethernet to router.
    The past few days it has been running very slowly.
    Checked the Netgear router page where it states the incoming strength is approx 4MB.
    *+What can be done to help utillise the incoming speed please?+*
    *+What do I need to make the G4 cable free please?+*
    *+Is there a 3rd party version of the Airport card (if that is needed) please?+*
    Any help and advice gratefully received!

    What can be done to help utillise the incoming speed please?
    That depends where the slowdown is. The quickest way to cut this problem down to size is to find an Interactive Internet Speed Test online, and run it.
    If the measured speed (which is essentially download speed) is way too slow -- you need to complain to your ISP about it, and follow their suggestions.
    If the measured speed is reasonable, but your perception is that it is too slow, post information about what situations, using what browsers, are the worst offenders, and readers will take a run at advising you.
    I suggest you start a different thread with your inquiry about wireless equipment.

  • Questions about Monthly Connect Subscription

    Adobe's offices are closed for a few more days, so I thought I'd try here and see if anyone has some answers to these questions. I'm planning on purchasing a monthly subscription.
    How long can the recordings be?
    How long will I have access to recorded meetings if I decide to discontinue my subscription?
    Thanks for your time, folks.

    I'm not sure about how long the recordings can be, but I did one tonight that was an hour 33 minutes.
    Caution about the monthly subscription.  You have a cap of 5 people if you go monthly.  To get the "up to 100 people" and all you might think you'd be getting, you'll need to get a yearly subscription ($500) and you will have to go through a sales rep.  Personally, I think it's kind of misleading.  It's still a good deal and it works well, but the advertising they put out there makes it sound different than it really is.
    How long do you have access to them if you discontinue?  I'm not sure, but you can do an offline version of it that basically downloads the flv file to your hard drive so you could keep it forever.
    Hope that helps.

  • Question about VPN connections on a E2500 router

    Hello,
    I am working with vpn setups for the first time, so I have some questions I would really appriciate some help with. I would like to be able to connect to a computer on a home network through a linksys E2500 router. I have found alot of documentation on connecting to an external vpn from a computer on the lan side of the router, but nothing on connecting from the outside in. The router does have a static ip address with my internet provider, so I can contact the router from the outside. But makeing the connection to the computer on the other side of the router is where I am missing something or I dont realize that it is not possible. On the lan side I am using DHCP to assign the address to the computer I want to connect to. Perhaps I need to make it have a static address also? I realize that when I configure the connection from the outside that I need to direct the connection to the remote computer in some way, unless vpn connections are fully passed through the router and the connection issue I am haveing is with the "inside" computer.
    Other info:
    I am using windows 7 for the vpn access
    Thank you in advance for your help.

    ChicagoGuy72 wrote:
    Hello,
    I am working with vpn setups for the first time, so I have some questions I would really appriciate some help with. I would like to be able to connect to a computer on a home network through a linksys E2500 router. I have found alot of documentation on connecting to an external vpn from a computer on the lan side of the router, but nothing on connecting from the outside in. The router does have a static ip address with my internet provider, so I can contact the router from the outside. But makeing the connection to the computer on the other side of the router is where I am missing something or I dont realize that it is not possible. On the lan side I am using DHCP to assign the address to the computer I want to connect to. Perhaps I need to make it have a static address also? I realize that when I configure the connection from the outside that I need to direct the connection to the remote computer in some way, unless vpn connections are fully passed through the router and the connection issue I am haveing is with the "inside" computer.
    Other info:
    I am using windows 7 for the vpn access
    Thank you in advance for your help.
    Kindly check these links:
    http://www.cisco.com/en/US/tech/tk827/tk369/technologies_configuration_example09186a00801e51e2.shtml
    http://www.cisco.com/en/US/products/sw/secursw/ps2086/products_configuration_example09186a008009436a...

  • Generally questions about Wireless connection

    I have a Toshiba notebook, and it has wireless lan card. It pops up says it has found a connection, then it says to connect but when I connect and its finding the connection it pops up and asks for a network key?
    What is this?
    It also comes with blue tooth.
    Any help on this please!

    Hello crazyanimal,
    it seems like you are trying to connect to your neighbours wireless network.
    Networks usualy are protected by a personal code (passphrase) to prevent the FREE use by unauthorized people.
    If you want, you can also go and buy a wireless device for your home and start to explore the internet or your other
    computer wireless.
    I am sure you will enjoy the wireless experience this way.
    Regards
    electrochain

Maybe you are looking for

  • Sales order creation, standard event trigger is taking long time .

    We have a requirement where we are sending data to CRM system using RFC function module. This data is sent while sales order creation or change. We have used standard event BUS2032.CREATED to trigger CRM FM in sales order creation mode. In sales orde

  • How do i install a self signed server certificate

    After using the admin tool to generate a request CSR, how do I sign this myself for testing purposes so I can install it and therefore run using https? I have keytool and certutil both available on the system. My most recent solution was to cut and p

  • Digital Audio Output - Mac Pro and New OS/CS5.5 Install

    Hello all... I hope I can word this properly - had a hard time with a search. For my audio setup with Production Premium I use an external DAC/Amp which connects to the computer via the optical digital output. I have used this setup for years with no

  • Improve the Performance of Loops

    Has anyone read "Improve the Performance of Loops" on http://archive.devx.com/free/tips/tipview.asp?content_id=3945 ? If so, would you agree that what's written there is absolute b.....t? He claims that decreasing the counter improves the performance

  • Change the font of an application in just one place

    Hello! The default style for the default java font in a Swing application is bold. I'd like not to have the bold style in the font of my entire application. So, is there a way for me to set this in only one place (change the bold style) and that all