TNSNames file problems....

Hi,
We have Oracle 9i running on a Win NT network. There is a tnsnames.ora file in the default directory with the other Oracle program files. However, we would like to have OEM pointing to a different local tnsnames file (so that we can automatically see all our local databases listed, instead of seeing all the existing databases on the network). We have tried several methods to get this to work (added tns_admin values to the registry; added tns_admin environmental variable), but we cannot get the local values to show up as selectable values in OEM. Can anyone help?
Thanks!

Justin:
<quote>
But that's where the global tnsnames.ora file is located. Can't have two files named the same thing in the same directory.
</quote>
I meant put a tnsnames.ora file in $ORACLE_HOME\bin … I was hoping OEM would pick the file from the directory where it got started rather than from $ORACLE_HOME\network\admin
I was hoping it will behave like SQL*Plus … if you start SQL*Plus from a directory having a tnsnames.ora file then this file will take precedence over the tnsnames.ora from $ORACLE_HOME\network\admin
Meanwhile, I did get access to an OEM installation and tried it … doesn’t work for OEM. OEM starting connected to a Management Server will get the database list from the OEM repository; when starting OEM as a Standalone Console one can use “Add Database To Tree” to get service names from the local tnsnames.ora file or to manually enter them … but it will always go to $ORACLE_HOME\network\admin (or maybe to whatever some environment variable points to).
Now, going back to 422328:
<quote>
But I would like to be able to get to my local databases without having to type in the names (in the fields at the top of the "Add Database" screen) every day.
</quote>
The thing is, with a Standalone Console, once you manually add a database, the entry goes into $ORACLE_HOME\network\admin\tnsnames.ora … so I don’t see why it would have to be entered every day … unless the file is somewhere in the network and refreshed/replaced daily by the DBAs (which is what happens in lots of places). My question to you is … once you manually add a new database, verify you can connect with SQL*Plus Worksheet … than get out of OEM and connect back right away … do you still see the database you have just added?

Similar Messages

  • SQL Developer 1.1.3 refuses to acknowledge TNSNAMES file

    I can't figure out what I'm missing.
    I've created the system variable TNS_ADMIN and pointed it to "C:\orant\NET80\ADMIN".
    I've created the folder "C:\orant\NETWORK\ADMIN" (which should correspond to "$ORACLE_HOME\NETWORK\ADMIN") and placed a duplicate copy of my TNSNAMES.ORA file there.
    My other tools (Benthic's Golden Retriever, SQL*Plus, Oracle Reports 6i, etc.) can all see that my TNSNAMES file is in the right place and can use the connection data it contains, but SQL Developer refuses to acknowlegde its existence.
    What more can I do?
    I'm using Windows XP Pro with SQL Developer 1.1.3. Our database is Oracle 10g.

    I just had the very same problem on linux.
    I had these exports:
    declare -x ORACLE_HOME="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client"
    declare -x TNS_ADMIN="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/network/admin"
    declare -x TWO_TASK="ORACLEXE"
    My tnsnames.ora file was in the TNS_ADMIN directory.
    After reading your tip I copied the tnsnames.ora-file to /etc and now SQL-Developer suddenly reads the file. I'm happy that I now have a workaround, but this sure is irritating.

  • Can multiple tnsname file exist in a server?

    hi guys,
    not too sure about this. the apps mentioning they have a problem connecting to our database. So i requested him to send me the server tnsname.ora it is using. He sent me 2 file which i am questioning can a server actually use more then 1 tnsname files? In that case how do i know which one the application is using?
    Edited by: flaskvacuum on Mar 19, 2012 11:05 AM

    flaskvacuum wrote:
    hi guys,
    not too sure about this. the apps mentioning they have a problem connecting to our database. So i requested him to send me the server tnsname.ora it is using. He sent me 2 file which i am questioning can a server actually use more then 1 tnsname files? In that case how do i know which one the application is using?
    I shall ask the same question which Rp asked-what do you mean by server tnsnanmes.ora file and why did you ask for it? If the client was not able to connect, isn't it that you should ask for the client-side tnsnames.ora? About multiple files being present, yes its possible.
    Aman....

  • Linux instant client  tnsnames file

    My db is on a windows box (don't ask why, please), I'm trying to connect to it from a RH9.0 machine with the Linux InstantClient SQLPLUS. I keep getting:
    "ORA-12162: TNS:net service name is incorrectly specified"
    I do have a TNS_ADMIN set to my tnsnames file.
    Any suggestions?
    Thanks

    at Linux machine go into network configuration menu then go host tab and add host name and IP address of your windown server . it will solve your problem Inshallah.

  • DW CS5 Missing Related Files Problem

    Hello
    Hoping somebody may be able to help me with a missing related files problem in CS5. I've tried Adobe phone support but they couldn't solve the problem.
    *Some* of my sites (but not all) are not showing all the files related to that page. My pages are typically in .asp vb server model and contain .asp virtual includes (header, nav etc) plus .js and .css linked files
    However DW is only showing the .asp includes as related files and not css or js ones. In design view the CSS is displaying correctly, and all styles appear in the CSS inspector but not showing as a related file in the bar. In CS4 it works fine.
    I've tried deleting the site and recreating it, copying the files to a new folder and setting up a fresh site, creating a new folder and downloading all files from the remote server but no joy. I've also tried refreshing related files. if I click on the filter in the bar it only shows the asp includes and nothing else.
    Any help would be gratefully appreciated, this is a great feature when it works
    Cheers
    MB

    UPDATE:
    Managed to solve this problem, this is a new issue to DW CS5, previous versions do not seem to exhibit this problem
    It occurs when you use site root rather than document relative paths for js/css etc files AND don't have the remote site url (web url) specified in the site setup | local info dialog, or do not have it fully qualified with http://
    ie. ../js/file.js works fine without a remote web url but /js/file.js does not show the related file in the bar unless a remote url is defined.
    Hope that helps anyone else that encounters the same issue!
    MB

  • With conversion to Leopard, file problems with networked Windows computer

    Last night I did an Archive & Install from Tiger to Leopard on my Intel MacBook Pro. Today, I had trouble finding the other computers at my office. Once I finally got them to show up, I opened a Word file found on another computer, made some changes, and when I tried to save it, I got this message: "This is not a valid file name. Try one or more of the following: *Check the path to make sure it was typed correctly. *Select a file from the list of files and folders." Since this file already existed and I wasn't changing the name, I thought this was odd, but I changed the name from "Seating Chart 3-8-08" to "SeatingChart3-8-08" in case Leopard didn't like spaces when talking to Windows, but I got the same error message. Finally I gave up, not knowing what to do, then discovered that it had in fact saved my file. Still, every time I try to save ANY Word document from the shared folder of the Windows computer, I get the same error message endlessly until I choose "Don't Save."
    When I try to open an Excel file from that computer, it won't even open; it says " 'File Name.xls' cannot be accessed. This file may be Read-Only, or you may be trying to access a Read-Only location. Or, the server the document is stored on may not be responding." As with the Word file problem above, I did not have any problem accessing the files until I converted to Leopard.
    The Windows machine is Windows XP using Microsoft Office 2003; I have Microsoft Office 2004 on my machine.

    See if this Link, by Pondini, offers any insight to your issue...
    Transfer from Old  to New
    http://pondini.org/OSX/Setup.html
    Also, See here if you haven't already...
    http://www.apple.com/support/switch101/     Switching from PC

  • I have problem in quicklook for mp4 files in my mountain lion os 10.8.2 so please help me what i need to do? but i can view mov,3gp,jpeg files problem is only with mp4 files.... any one help me...

    I have problem in quicklook for mp4 files in my mountain lion os 10.8.2 so please help me what i need to do? but i can view mov,3gp,jpeg files problem is only with mp4 files.... any one help me...

    I have problem in quicklook for mp4 files in my mountain lion os 10.8.2 so please help me what i need to do? but i can view mov,3gp,jpeg files problem is only with mp4 files.... any one help me...

  • Anyone know if the long standing duplicate files problem with File History has been fixed yet?

    There are loads of public threads about the duplicate files problem
    with Windows 8/8.1 File History backup system.
    From all the threads I've looked at, there seems to be no solution,
    and no acknowledgement from MS that they can even repro the problem
    (which surprises me considerably as there are so many people who
    notice the problem).
    Is anyone aware of whether MS (may) have fixed this for Win10?
    Are MS aware of the problem and if they're able to fix it?
    Dave - with many GB of duplicated files in File History :)

    Hmm, is that the attitude MS would recommend? :)
    Why would I care what Microsoft would recommend?
    Clearly you don't, and you appear to have missed my smiley. Calm down
    Noel, many of us are as annoyed by aspects of modern Windows as you
    are. :)
    I'm all about making Windows actually WORK/./
    Aren't we all? Windows is software I use too many hours every day, I
    along with many millions of others need it to work really well. You
    are not alone.
    When they implement something that doesn't work, and even if it did work doesn't do what's needed - and/beyond that/ they remove features people DO need (such as the GUI for Windows Backup), I see no wrong in advising people of the way things
    really are.
    File History essentially does work - it's saved me a couple of times
    in the past couple of weeks. It just has a highly annoying habit of
    creating 100% duplicates of some files for no apparent reason. If MS
    have fixed that I won't have any known complaints about it.
    If you don't like it, you don't have to use it. I generally like it, I
    just want to see that its fixed.
    Dave

  • Idoc to file problem.......... IDOC lost

    i have a idoc to file problem,
    the idoc is sent from R/3 to XI,
    the problem is IDOC is sent from R/3,
    it didnt reach to XI.....
    i have checked.......we05 in R/3, it gives a status 3,
    then i checked SM58 in R/3, it shows nothing,
    when i check in idx5 in XI, theres no trace of that idoc....and no trace of the scenario run in SXMB_MONI
    pls help, where can i trace the idoc.....
    pls help

    Hi sudeer,
    Did You Check It In WE19.(Test Tool For Idoc Processing)
    If Not Do The Following Steps:
    <u><b>Step1:</b></u>
      >>      Give Your Existing Idoc Number.
    <u><b>Step 2:</b></u>
      >>      Basic Type is Your Message type.
            Ex: MATMAS05 or CREMAS05.
    <u><b>Step 3:</b></u>
      >>      In Your Existing MATMAS05 or CREMAS05 Structure say EDIDC,
      >>      You Should Fill  Your Mapped Entries In Data Structure of EDIDC.
      >>      So that Those Fields Gets Framed as Segments.
    <u><b>Step 4:</b></u>
      >>      After Doing It goto  Menu Bar and Click Idoc And Goto  Edit Control Record.
    <u><b>Step 5:</b></u>
      >>      Now You Give Your Sender And Receiver Port Number Along With Your 
            Logical System And Message Type again its Your MATMAS05  or
           CREMAS05 .
    <u><b>Step 6:</b></u>
      >>      After Doing It Click Standard Outbound Processing.
    <u><b>Step 7:</b></u>
      >>      It Will Say what Happened To your Idoc.
    <u><b>Step 8:</b></u>
      >>     It Is For Sure That if This Processing Fails It Wont Go To XI..
    Regards,
    Dhayanandh .S
    Dont forget To Provide Points If Found Helpful...
    Message was edited by:
            DHAYANANDH SIVASANKARAN

  • TS5179 I've been bitten by the "Missing MSVCR.dll file" problem when downloading the latest iTunes update (PC w/ Win-7 & Outlook-2007#. 'Have followed Apple's instructions of un-installing all Apple software, and re-installing it. #out of space...??)

    I've been bitten by the "Missing MSVCR.dll file" problem when downloading the latest iTunes update, 11.4.62 (on a PC w/ Win-7 & Outlook-2007#. 'Have followed Apple's instructions of un-installing all Apple software, and re-installing it (Ugh).  First result Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there.  Second result, upon installing iCloud again, I have two iCloud contact files shown in outlook - "iCloud" & iCloud, within iCloud".  1,332 & 1,385 contacts respectively. 
    Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  This is NOT fun at 72-yrs old...!!
    So, how do I make sure I haven't lost anythying from Outlook?   Russ-AZ

    Interesting response, Kappy  -  Back to original post: "First result: Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there (therefore, initially I had lost my contact file from Outlook).  Second result, upon installing iCloud again, I now have two iCloud contact files shown in Outlook - "iCloud" & iCloud, within iCloud".  W/ 1,332 & 1,385 contacts respectively.  
    Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  This is NOT fun at 72-yrs old...!!
    So, how do I make sure I haven't lost anythying from Outlook?   Russ-AZ"
    You can safely assume that I have tried using it!   So, to make things a little clearer:
         1)  I now have two iCloud "contacts files", w/ a different total count. What's the difference?  Why the different toatl count?
         2)  Since re-installing the Apple software (part of the MSVCR" recovery instructions) "couldn't possible affected Outlook", why am I getting an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  What's in those files? And where are they?
    Probably more important questions get down to:
         3)  Why is a basic Apple product upgrade "screwing-up Outlook"?  This iTunes upgrade, failing to install properly forced Outlook 2007 into a 2-min start-up cycle.  Which was fixed with this "Goat-Rpdeo" of re-installing MSVCR80.dll.
         4)  And under the latest release of iOS-7.0.4 on our iPhones, why is Apple now forcing us to use the iCloud to back-up our contacts, calendars & tasks, vs. allowing these files to be backed-up directly on our PC's via the USB cable?
    Thanks again for your interest and comments.  - Russ-AZ

  • RMI class file problem

    I have already write a RMI example for self-study successfully, but there are a little class file problem that I'm not able fix it.
    In my RMI example there are 3 .java files (RMIServer.java, RMIClient.java and a MethodImpl.java)
    After I have javac and rmic them, I got RMIServer_Skel.class, RMIServer_Stub.class, RMIClient.class and the MethodImpl.class
    In order to run the RMI in a local envirnment, I divide them into 2 folders as listed below:
    Server - RMIServer_Skel.class, RMIServer_Stub.class and the MethodImpl.class
    Client - RMIServer_Stub.class, RMIClient.class and the MethodImpl.class
    Then when I start to run them in a DOC envirnment...
    start rmiregistry........(run successful and another rmiregistry DOC window created)
    java RMIServer.........Exception in thread "main" java.lang.NoClassDefFoundError: RMIServer
    Oops? Class not found? How can that be? And after that, I tried something.......to add the RMIServer.class into the Server folder.
    Again, I start to run them in a DOC envirnment...
    start rmiregistry........(run successful and another rmiregistry DOC window created)
    java RMIServer.........The server is instantiated(run successful and print out a String)
    Um...is the RMI have to run with a RMIServer.class file? But the RMI notes I refered from is not seems to be telling me to do this, are there any one can give me a helping hand?

    please, go here, read thoroughly
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

  • Locked file problem with WebDAV

    I am using DreamWeaver CS3 on my Macintosh at home and on a
    PC at work. I am connecting to my website via WebDAV, and for some
    reason Dreamweaver cannot edit the files on the site. When I try to
    check out any file I get an error stating: "file.html is locked and
    can be viewed but not edited" I then have the option to check it
    out or view or cancel. Regardless of what I do, if I continue and
    open the file and make changes the file will not get updated on the
    remote server even though Dreamweaver reports a successful "put" or
    "check in" command in the log file. This happens on both the
    Macintosh and the Windows PC. Both are also updated to the latest
    versions of Dreamweaver.
    The strange thing is, if I mount the WebDAV server as a
    filesystem on my macintosh and authenticate with the same
    login/password that entered in Dreamweaver's WebDAV settings, I can
    edit the html files using a text editor and they save perfectly
    fine. Additionally, while the web server is mounted on the desktop,
    if I change Dreamweaver's site settings to "local/network" and
    enter the locally mounted WebDAV share path instead of using
    Dreamweaver's built-in WebDAV client, then everything works
    properly in Dreamweaver. Reverting back to using WebDAV in
    dreamweaver (as opposed to through the OS) brings about the same
    "locked file" problem as before.
    There appears to be a problem with Dreamweaver's WebDAV
    access to the site, and I'm wondering if there's an easy fix or if
    this has been experienced by others?
    Thanks,
    -Topher

    Have a look at FileUtils::DecomposeUnicode and NormalizeUnComposedUnicodeChars. Use the first to convert before using i.e. FileUtils::PMStringToSysFile() and the later afetr i.e. FileUtils::IDFileToPMString().
    HTH

  • Tnsnames file

    Can anyone explain why some entries in my tnsnames file I have to actually
    specify SID = %Database Name%
    and for others I have to specify Service_Name = %Database Name%
    For 1 of them, if i use Service_Name = %Database Name%, I won't be able to connect to the Database via any means!
    However, if I use SID = %Database Name%, I will be able to connect via Enterprise Manager, applications etc.

    So should I use SID as the standard?Not necessarily, both 8i and 9i support dynamic registration, but it depends on how they are configured. As I said before, with "lsnrctl services" you can see the situation of your DBs with the listener : you should see something like the following :
    Service "db102.world" has 1 instance(s).
      Instance "db102", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVERIn this case tnsnames.ora entry should have SERVICE_NAME=db102.world or SID=db102, that is SERVICE_NAME must match Service name, and SID must match Instance name.

  • Bat file problems with 5.2(3)

    I'm having bat file problems with CCM 4.2(3) with bat version 5.2(3). When adding phone/users getting an error number -2146828279 with this message "Description -Subscript Out of range".

    Hi Denis,
    Just wanted to know if the description contained a comma? There was a bug in a previous BAT version that would affect phone/user inserts if there was a comma.
    CSCsb61425 Bug Details
    Headline BAT insert fails if phone description contains comma
    This was in BAT 5.1.4
    Hope this helps!
    Rob

  • Configuring tnsnames file to conenct to the remote srever

    I have forms 6i installed in my windows(XP) machine.
    I have oracle 9i installed in my linux machine.
    I have to connect to the database from forms6i.
    This is the tnsnames.ora file of forms 6i
    Beq-local.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = beq.world)
              (PROTOCOL = BEQ)
              (PROGRAM = oracle80)
              (ARGV0 = oracle80ORCL)
              (ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')
        (CONNECT_DATA = (SID = ORCL)
    Tcp-loopback.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = 127.0.0.1)
              (Port = 1521)
        (CONNECT_DATA = (SID = ORCL)
    tftp.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = hostname)
              (Port = 1521)
        (CONNECT_DATA = (SID = tftp)
    sfinger.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = hostname)
              (Port = 1521)
        (CONNECT_DATA = (SID = sfinger)
      )I don't know how to configure it to make the connection to the database from windows.
    The service name of oracle database is orcl and host name is linux7.
    Thanks

    Yes i was missing one right parenthesis.
    BUt even then its not working.
    The listener is started.The port is the default one.
    How could i know whether the connection is making use of tnsnames file.?
    This is the modified tnsnames.ora file
    orcl=
        (description=
          (address_list=
                (address=
                    (protocol=tcp)
                    (host=10.129.11.119)
                    (port=1521)
       (connect_data=(sid=orcl)
    Beq-local.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = beq.world)
              (PROTOCOL = BEQ)
              (PROGRAM = oracle80)
              (ARGV0 = oracle80ORCL)
              (ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')
        (CONNECT_DATA = (SID = ORCL)
    Tcp-loopback.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = 127.0.0.1)
              (Port = 1521)
        (CONNECT_DATA = (SID = ORCL)
    tftp.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = hostname)
              (Port = 1521)
        (CONNECT_DATA = (SID = tftp)
    sfinger.world =
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = tcp.world)
              (PROTOCOL = TCP)
              (Host = hostname)
              (Port = 1521)
        (CONNECT_DATA = (SID = sfinger)
      )

Maybe you are looking for

  • Process for return of Components after sales

    Dear Gurus, Plz inform regarding the following process: We require a process for return of the components ( part of the Finished goods that is sent to the customer) after the same is being returned by the customer  and then that needs to be replaced

  • How to set file names?

    Using TCS 5, RH11, FM12, all patched up, if I set a marker, such as "Filename" in FrameMaker, can RoboHelp use the contents of that marker to set the file name of the HTML file it creates? How? Thoughts? Cheers, Sean

  • ALL in page item

    Hi, I am trying to make ALL to appear as the default on page items (i.e., after rearranging crosstab layout, I want the users to see ALL appearing in page items before they select from LOV). Thanks for your help.

  • How to design a Phone in java????

    Is it possible to design a phone in java? i am looking for some ideas and tips. please help!!! Regards!!

  • Create CName as an existing name of A record

    Hello all, Is there a way that I can create a Cname as an existing A record name? I got this following error message if I tried to create a cname. A new record cannot be created. An alias (CNAME) record cannot be added to this DNS name. The DNS name