Problem with address names in tnsnames.ora

ORACLE 9.2.0.7 (Sun Solaris 9, server host name is sol09 & c-name is sol10.xyz.com)
ORACLE 11g (Sun Solaris 10, server host name is sol10 & c-name is sol10.xyz.com)
Don't know why some address names from tnsnames.ora are working and some are not working,for all the below i have given the same host name , port, and sid
<addressname> =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = <hostname>)(Port = <port>))
(CONNECT_DATA =
(SERVICE_NAME = <sid>)
tnsnames.ora
sol10.xyz.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
(CONNECT_DATA = DEDICATED)
(SERVICE_NAME = ora11g)
ora11g =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
(CONNECT_DATA = DEDICATED)
(SERVICE_NAME = ora11g)
ora11g.sol10 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
(CONNECT_DATA = DEDICATED)
(SERVICE_NAME = ora11g)
rajesh =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
(CONNECT_DATA = DEDICATED)
(SERVICE_NAME = ora11g)
sol10.rajesh =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
(CONNECT_DATA = DEDICATED)
(SERVICE_NAME = ora11g)
sqlnet.ora
NAMES.DEFAULT_DOMAIN = xyz.com
NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)
TNS PING results on the server sol09 where oracle client 9.2.0.7 is installed in
tnsping sol10.xyz.com -> success
tnsping ora11g -> Fail (TNS-03505: Failed to resolve name)
tnsping ora11g.sol10 -> success
tnsping rajesh -> Fail (TNS-03505: Failed to resolve name)
tnsping rajesh.sol10 -> successFrom above results, the following names for address names are working -> sol10.xyz.com, ora11g.sol10, sol10.rajesh, (anything that has the host name sol10),
if i give the address names as ora11g, or rajesh , its not working, the tnsping is failing. getting TNS-03505: Failed to resolve name error.
Its a strange behavior, not able to figure it our why this is behaving like this. did not found a reason for it. Am I missing anything? Can Any one help me please.....
Edited by: user567722 on Feb 11, 2011 9:07 AM

It usually boils down to this:
When, on the server, you type 'lsnrctl status', you get a list of service names.
The service name must be the thing found in the (SERVICE_NAME = ?????) clause.
When you type "tnsping abc", the system notices there is no 'domain' to the 'abc' so it checks in sqlnet.ora - if there is a default_domain, it appends that to the abc to get abc.domain. It then looks up the result as the left side of an entry in tnsnames.ora.
So in your case, since sqlnet.ora appends 'xyz.com' to any alias that does not include a period. Your comment was:
From above results, the following names for address names are working -> sol10.xyz.com, ora11g.sol10, sol10.rajesh,(anything that has the host name sol10),
if i give the address names as ora11g, or rajesh , its not working, the tnsping is failing. getting TNS-03505: Failed to resolve name error.
and, lo and behold, the ones that pass have a 'domain'. But ora11g and rajesh do not have a domain and the system is attempting to look up ora11g.xyz.com and rajesh.xyz.com, neither of which I see in the tnsnames.ora
Edited by: Hans Forbrich on Feb 11, 2011 10:47 AM

Similar Messages

  • Problem with reserved names

    hi everyboody
    i have a problem with reserved names
    i have a table t
    drop table t;
    create table t
    t_id int,
    "DATE" date
    then i insert it
    insert into t values(1,'15.04.10');
    insert into t values(2,'16.04.10');
    select * from t;
    it'sw work correct
    T_ID DATE
    1 15.04.10
    2 16.04.10
    but when i try to create procedure for insert, like this
    create or replace procedure my_proc(p1 int,p2 date)
    as begin
    insert into t values(p1,p2);
    end;
    i receive error message
    i know that the problem is with the name of the second column called "DATE"
    and if we changed this name (for example "tDATE") the procedure will be work
    but i can't change this name
    if anybody knows the solution please help me

    Karthik:
    No, it is not a bug, it is just the way that Oracle works. The list of reserved words can be found in the view v$reserved_words. There is a column in that view called reserved. A word that is in the view and has Y in the reserved column is "really" reserved, that is you will get an error if you use it in an inappropriate place (like a column name) without quoting it. Words with N in the reserved column should not be used as object names, but because they either became special later in Oracle history or for other reasons can be used unquoted but shouldn't be.
    Although I don't know the exact internal mechanism, from experience, it appears to work this way. When Oracle stores the name of a table or column, it always makes it upper case, unless it is double quoted in which case the case is preserved. When it retireves the names, it does not make any changes to the name as it is stored, so always retieves the name as it was stored.
    In the OP's case, by using double quotes he got around the reserved word issue, but by using all upper case within the double quotes what ended up stored in the data dictionary was a reserved word. The sql statement probably worked in sql because it is just doing a string match to see if the specified column names are right, and in the absence of a column list, may even be just looking to see if the type and number is correct without actually looking at the name. I suspect this because it works even if you explicitly list the columns as long as DATE is double quoted.
    SQL> INSERT INTO t (id, "DATE") VALUES (1, sysdate);
    1 row created.
    SQL> roll
    Rollback complete.However, if you do not double quote the column, you get:
    SQL> INSERT INTO t (id, DATE) VALUES (1, sysdate);
    INSERT INTO t (id, DATE) VALUES (1, sysdate)
    ERROR at line 1:
    ORA-01747: invalid user.table.column, table.column, or column specificationIn the case of the PL/SQL, my quess would be that the compiler is retrieving the column names form the data dictionary, then barfing on something similar to the ORA-1747 error above in the compilation process.
    John

  • 3 Problems with Address Book-- now considering Bento

    I have 3 problems with Apple Address Book that make it close to unusable for me, so I'm considering buying Bento 3:
    1. *Can't un-do accidentally deleted text*- When you click in the "Notes" section, it will select all the text there by default (instead of merely inserting the cursor). If you are not paying attention, and hit any other key when it is selected, it deletes everything in there. UN-DO will not un-do this. I've verified and reported this issue to Apple, but it has still never been fixed or formally addressed (aside from many complaints in the Apple forums).
    2. *Search doesn't always work*- Yesterday I searched for one of my entries, Harbor Freight, by typing in the search "harbor". Nothing came up. I thought that maybe I never actually added this business and started with a new one. After I created the new one, I noticed that now, along with the new entry, the old contact suddenly showed up in the left column.
    3. *Cards disappear*- Many complaints on the web about this. I do not do any syncing with MobileMe or any device. Occasionally, cards just seem to vanish. Sometimes the card is actually still there, but changes in the Notes field or other fields I made on a previous day were evidently not saved and gone. Very frustrating.
    Here's my concern with using Filemaker Pro's Bento: if it's using and accessing the same database as Address Book, all these problems might end up also existing in Bento. I use Address Book for business and personal and heavily rely on the Notes section. I can't keep wasting my time with this.
    I don't mind paying the $50 for Bento if it resolves these issues, but the shared database worries me. I guess that I could create an independent Bento database that is completely separate from Address Book, but then I don't know how well it would integrate with Apple Mail.
    Any thoughts?
    Thanks,
    Dave

    DON'T DO IT. DO NOT INSTALL BENTO. I bought & installed it on 01/20/10 and it destroyed my address book. Gone forever. If you are having problems with Address Book now, wait until you see the damage created by Bento! Bento does not replace Address Book. It is a 'supplement' (at best) and uses and updates every file in your Address Book without you even knowing it! Well, you notice it when your database is destroyed and you find all of your contacts under 'No Name'. I am so serious. Bento is just a shell. None of your addresses are actually stored in Bento. They remain in Address Book. Every time you open Bento, it accesses your address book database, and starts re-formatting and re-working every entry along with any 'changes' you make. And who do you call for help? Apple says 'not our program'. Filemaker says 'we don't know anything about Mac's'.....I lost four years of addresses for all of my customers. Gone. In seconds! Just don't do it. Don't install Bento. And be sure to remove any 'smart groups' you have created as it seems to be at the root of most problems one encounters with address book.

  • Problem with variable name in ZXRSRTOP include (virtual KF)

    Hi all,
    I am coding a routine to use a virtual key figure in the BEx.
    I have just a little problem with the name of a variable:
    as explained in the documentation, I created the variable with the prefix G_POS_, the name of the infocube and the name of the infoobject all together:
    DATA: G_POS_BC_ST_003_C_DIV__C_COMPAR   type i.
    The problem is that this variable name is longer than 30 characters, so the system doesn't accept it.
    Is there a workaround, other than changing the name of the infoobject (which is a navigational attribute)?
    Any help would be appreciated.
    Loï

    Hello Marc,
    I understand that I have to use a concatenate function and a dynamic call of the variable with (variable) instruction, but i do not understand how to implement it.
    the infocube name is BC_ST_003
    the characterisdtic name is C_DIV__COMPAR
    So, in the include ZXRSRTOP the statement
    DATA : G_POS_BC_ST_003_C_DIV__COMPAR
    does not work due a length problem (see first post)
    But in the same include the statement
    +DATA: l_global_name type c.
    concatenate 'GPOS' 'BC_ST_003' 'C_DIV__C_COMPAR' into l_global_name separated by '_'.+
    drives to the following error : statement is not accessible.
    Could u please provide me with an example of the code in the include ZXRSRTOP, and in the include ZXRSRZZZ for the use of this variable.
    Thanks in advance.
    Loï

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

  • Problem with song names

    Hey, I'm having this problem with song names. For example, instead of the song title being "Song Title" it will be like "Artist Name - Song Title". It's like this for half my files. I'm trying to organize my music files and every time I fix it, it keeps going back.
    This has happened to me before and usually if I double click it, it will automatically change. This time, nothing seems to work except doing it manually ("Get Info)" and that would take too long since I have 7,000 files like this. I posted this on another board and somebody said to right click the songs and click Update ID3 v2.4 which originally worked, but now nothing but manually doing it works.
    This is like this when I open it for other programs, but I know iTunes caused. I think it has something to do with the "Keep my iTunes Folder Organized" check because iTunes renames the file. I also tried reinstalling itunes and readding my files.
    Thanks for any help!

    I don't completely understand what you are trying to say, but iTunes doesn't automatically change your tag information.
    iTunes stores a copy of the tag information in the library database. When you play a track, iTunes re-reads the tag information from the song file and updates the library data. This produces the efferct that iTunes appears to change tag information but it isn't, it is meerly reflecting a change that already happend.
    Do you have any other software on your PC that can automatically change tag information? For example Windows Media player can do it if you select an option to retrieve data from the internet and overwrite existing info. But other software may do it too.
    If you want to force iTunes to re-read all tags, go to your Music view and go to Edit>>Select All. Then right click in the selection and choose Get Info. Don't change anything, just exit by clicking OK. iTunes will update the library with the tag information from the song files.

  • Problem with Address Book and Exchange

    Hello,
    I have a little problem with Address Book and Microsoft Exchange 2003. I am able to connect to Outlook Web Access via Safari without problem. I see my contacts. Unfortunately when I setup everything needed in Address Book preferences (Synchronize with Exchange) the contacts didn't show in my Address Book. Strange thing is that no error is generated. can someone please help me what I am doing wrong ? Thanks in advance.

    My suggestion is that you consider using Microsoft Entourage. For Exchange users on a Mac, Entourage is by far the best option. The down side is, you need to buy Microsoft Office 2004 to get Entourage, but your employer might own a site license, in which case, Office 2004 might not cost you anything.

  • Connect to database with SQL*Plus: is TNSNAMES.ORA used?

    Hi ,
    we have a local database called DEV01 and a duplicate of this database in a datacenter. To be able to connect to both databases the TNSNAMES.ORA
    on the local database server (not the one in the datacenter) has the following entries:
    /* Entry for local database */
    DEV01_local, DEV01_local.WORLD =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = server01)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SID= DEV01)
    /* Entry for database in datacenter */
    DEV01,DEV01.WORLD =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = server02)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SID = DEV01)
    When I connect to the local database server I set the Oracle-environment as follows:
    export ORACLE_SID=DEV01
    export PATH=/opt/oracle/app/oracle/product/9.2.0/bin:$PATH
    export ORACLE_HOME=/opt/oracle/app/oracle/product/9.2.0
    Now I start SQL*Plus as follows:
    oracle#> sqlplus user/user
    SQL> select instance_name, host_name from v$instance;
    INSTANCE_NAME    HOST_NAME
    DEV01            server01
    Since the SID is on both databases the same (DEV01) I really do not understand how Oracle decides to which database SQL*Plus connects to.
    Is it a matter of the entries in the TNSNAMES.ORA?
    But when I start SQL*Plus as follows:
    oracle#> sqlplus user/user@DEV01_local
    SQL> select instance_name, host_name from v$instance;
    INSTANCE_NAME    HOST_NAME
    DEV01            server01
    or
    oracle#> sqlplus user/user@DEV01
    SQL> select instance_name, host_name from v$instance;
    INSTANCE_NAME    HOST_NAME
    DEV01            server02
    everything is as expected.
    Does anybody know which database gets chosen when just connect with "sqlplus user/user" (without @DEV01 or @DEV01_local)?
    Any help will be appriciated!
    Rgds
    Jan

    Both databases have the SID=DEV01.
    The ORACLE_SID is set to DEV01 - but when connecting I end up at
    oracle#> sqlplus user/user
    SQL> select instance_name, host_name from v$instance;
    INSTANCE_NAME    HOST_NAME
    DEV01            server01
    which is the database with the TNSNAMES.ORA entry "DEV01_local, DEV01_local.WORLD = ..."
    In your case the one defined by ORACLE_SID environment variable => but which from both is it?

  • MacBook will not reboot after problem with Address Book

    I was using AB today.... I tried to go into preferences and it quit on me. The option came up for me to send a message to Apple but that disappeared too. I relaunched AB again - same thing. The next time I tried to go into preferences the application would not respond - force quitting would not work. I had to shut machine off and now it will not reboot at all.... Any suggestions?

    I am having a problem with getting the data on want on the address label and only that data.
    ie. I just want the name of the husband and wife along with their last name and mailing address.
    IF I have the spouse listed in the contact, and children listed in the contact I get an odd label printed.
    ie. instead of John and Mary Smith 1234 Hope Street Seattle, WA 98101 what ends up printing is:
    John and Mary Smith, Mary, Bill, Susan, Tom 1234 Hope Street SEattle, WA 98101.
    All those extra names makes the label font print smaller for those kinds of contacts. Is there a way to only put the information on the address label that I want?

  • Problem With Image Names

    When I enter new images into iPhoto I name them using a set scheme. It goes something like this D108R218 - 14 - 1. The number following D is for the DVD disk on which the backup for this image is stored, the number following R is for the number of the roll, and the number following the first - is the number of the image on the roll. The final number following the last - is the number of prints made from this image.
    This system has worked well for me in terms of letting me track my thousands of images but I currently have a problem with it. As so often happens when I was applying these numbers I made some changes in the way I entered them. Early on I used the # sign following the Roll number but several months ago I stopped using it. Early on I would make a space before and after the -. Trouble is now when I conduct image searches there is no way for me to know whether to include the # or the spaces before and after the -. Is there any way I can fix this mess without having to go through thousands of images making the system uniform?
    Thanks,
    Win

    Terence,
    How would you be able to do this using the Batch command? Wouldn't that destroy the number sequence entered into each file name?
    All best,
    Win

  • Problem with truncate table in procedure ora -00054

    hi do anybody know where is mistake ???
    the procedure has problem with truncate table
    ora - 00054: resource busy and acquire with NOWAIT specified
    ora - 06512 at "POVAPSYS.HMAN_P_REFRESH", line 6
    ora - 06512 at "POVAPSYS.POVAPSYS", line 6
    ora - 06512 at line 1
    this is my procedure....
    AS
    BEGIN
    execute immediate 'TRUNCATE TABLE hman_t_max';
    INSERT INTO hman_t_max SELECT * FROM hman_v_max;
    COMMIT;
    END;

    2.MAKE SURE THAT OTHER THAN YOU ANYBODY IS TRYING TO
    COMPILE AND RUN THE PROCEDUREShould he make sure that anybody is running the procedure?
    3.MAKE SURE THAT ANY PARALLEL QUERY IS RUNNING IN THE
    SERVER SIDE,THATS KEEPS THE RESOURCE BUSYShould he make sure any parallel query is running in the server side to keep the resource busy?
    Gita,
    I COULDN'T RESIST HAVING ONE SUGGESTION FOR YOU. Please look at the impact of your English in the reply before posting. Check if that sends reverse message!
    Cheers
    Sarma.

  • Problem with table name lengths.

    Has anyone experienced with table name length problem?
    When tables are created with schema registration, and the name is longer than 14 characters, the table is created. But when I "select * from xxxx_xxxx_xxxx_xxxx" it says that the table doesn't exist.
    What's the max length of a table name? Or is this a problem with XDB?
    Thanks,
    Benjamin

    Found the problem.
    All table names must be all capitalized and seperated with underscore.
    Is there something I need to set in oracle? or is this a bug? The tables are created but can't be accessed because of the case of table name... that doesn't make sense.

  • Problem with constraint names

    Hi to all, I have a problem with the constraint names. I need to delete the table name that is used like prefix in the constraint name.
    Example:
    - Actual : DBO_MYDATABASE_FK_Ho_Ka
    - Desired : FK_Ho_Ka
    The constraint names are FK_Ho_Ka in the creation database script, but if I import the database schema, I have DBO_MYDATABASE_FK_Ho_Ka, but I only need the constraint name.
    Thanks so much :)

    Thanks for your time :)
    I did a migration from Microsoft SQL Server 2005 to Oracle 11g database. Then, I need to use the same Entity Framework model to use with Sql Server and Oracle. Then, I need that the constraint names must be the same in the two databases.
    I did the migration with Oracle Sql Developer and all works fine. The resulted migration script has the constraint name like FK_UJ_UK (that it's OK) but when I import the database schema or do the Entity Framework model, I have this constraint name DBO_MYDATABASE_FK_UJ_UK.
    Edited by: Bluegene on Dec 11, 2008 9:35 AM

  • All sorts of problems with Address Book

    I am having a lot of problems with my Address Book all of a sudden. It started last Friday when out of nowhere my address book was empty. I used Time Machine to restore it and all was good, but then the next day, the same thing happened. Thankfully I had a backup of the archive and re-imported it and it worked well for a while then the same thing happened.
    In total, it has erased itself about 3 or 4 times, and today a new issue has arisen: my groups have all disappeared. The contacts remain, just the groups are all gone. Smart Groups however have remained.
    Any idea what could be going on here and how to fix it? I've also noticed a huge slowdown in my computer and see that "ADDRESSBOOKMANAG"is running often and taking up a ton of RAM.
    Thanks for any help.

    Well thankfully my address book has stopped deleting itself <knock wood>, but I'm STILL having the problem with AddressBookManag running all the time taking up tons of memory. Anyone know how to fix that?

  • Problems with address book after upgrading to Lion.

    I have lost all my contacts and if I try to add a new contact it's gone after I close and reopen the address book.
    Same thing if I import for example my gmail contacts.
    But there is more. If I add a new group I can't edit the new, so it's stuck as 'untitled group' (and gone if I quit the address book and reopen it).
    ..and If I add a new contact I can't edit it once it's added. I simply don't have the edit button.
    Someone having the same trouble? Or any suggestions how to solve it?
    Thanks!
    (So this is after upgrading to Lion and with the new address book 6.0)

    I'm a super loyal Apple customer for over 20 years. But I have to say, even though Apple has unparalleled  customer service, their responsiveness to software issues is non-existent.
    I had a problem with iMovie a couple of years back that involved 40 hours of hard work for a client, only to have all my work lost due to a software bug. Many, many others had the same issue. Apple never acknowledged the issue. I doubt that they will acknowledge this issue.
    That's shameful.
    I email to various groups, including a local residential group to which I add or subtract residents that move in and out of the neighborhood. AddressBook is now totally useless because I can't a new resident to the existing group! AddressBook 6 has been out how many months now? Not a peep from Apple with this issue!

Maybe you are looking for

  • REPORT PERFORMANCE TUNING:Array FETCH SIZE

    Hi Folks, DOES any one has an idea about   array fetch size  in CRYSTAL REPORTS XI connected to oracle database.    I have two basic questions here            1.   What is the default array fetch size in CRYSTAL XI             2.   how to change this

  • Workflow step is not getting executed

    Hi all,      I have designed a workflow in which I have a Decision step. after taking the a decision then it is taking so much time to execute the next step which is a background step. The waiting time is varying from time to time some times it is ge

  • Net_write_timeout parameter for Oracle

    HI, "net_write_timeout" is parameter for MySQL. I need to know what is the name of this parameter in Oracle and PostgreSQL thanks vlad

  • Trully need help folks......

    import java.awt.*; import java.awt.event.*; import javax.swing.*; class VideoStoreMainFrame extends JFrame      private JButton managerButton, cashierButton, customerButton;      private JLabel note;      public VideoStoreMainFrame()           super(

  • DNS install issues

    I cannot get SMF to start up my dns install. Iam running solaris 10. It is stuck in maintenance adn there is not enough information in the log files for me to pinpoint the error. here is the output of svcs -l /network/dns/server fmri svc:/network/dns