How to add tns entry in names server

Hi,
Can anyone tell us, How to add tns entry in names server
Thanks

In the Net Manager utility, in the left-hand pane left click Oracle Names Servers, left click on your nameserver.
Click the "+" button in the upper left, that should be enough to get you started- sorry, all our 9i installs have gone away, can't exactly recall the nix X gui version of client program, but I think* its netmgr, should be in OH/bin.
If you're running a java OEM console that cames with 9i clients, Net Manager is available on that little Butler tab.
And for the command line version, running the namesctl utility- you can save a tns entry with the connect string and run it in a file, just like sqlplus, with an @filename:
vi newtns.txt
register newtns -d (DESCRIPTION=(ADDRESS_LIST=...(SERVICE_NAME=NEWTNS.MYCO)))
$ namesctl
@newtns.txt
query newtns *
reload -- nameserver sync
query newtns *
exit
$ Edited by: clcarter on Jul 7, 2011 3:26 PM
added cmdline version

Similar Messages

  • How to Add multiple entry to the group policy security filtering

    How to Add multiple entry to the group policy security filtering
    Is there any way we can add multiple entry to the Domain group policy Security filtering tab.Currently its not allowing to add more then one entry at a time.
    Getting Error like "only one name can be entered,and the name cannot contain a semicolon.Enter a valid name"

    Hi
    Are you trying to add more users or groups through Group Policy Management Security Filtering tab?
    Try right clicking on the policy and then edit
    Then in Editor Right click on the name of the policy and Properties
    Security tab and add user or group from this tab. Just make sure if you are adding user or groups "Select this object type" has
    the correct option also "From this Location" is set to your entire directory not the local server.
    Update us with the above.
    Thanks

  • How to add the entries and how to delete the entries from custom Z-table?

    Hi Experts,
    My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
    Here how to add the entries from program to Z-table.???
    And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
    Could you please guide me the logic how to crack this???
    Let me know if you need more Info
    Thanks
    Sanju

    Hi Sanjana,
    What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
    *Insert Statement
    INSERT dbtab
    Syntax
    INSERT { {INTO target VALUES source }
           | {     target FROM   source } }.
    Effect
    The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
    System Fields
    The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Meaning
    0 At least one row was inserted.
    4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
    The INSERT statement sets sy-dbcnt to the number of rows inserted.
    Note
    The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
    *Modify Statement
    MODIFY dbtab
    Syntax
    MODIFY target FROM source.
    Effect
    The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
    System fields
    The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
    sy-subrc Meaning
    0 At least one line is inserted or changed.
    4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
    The MODIFY statement sets sy-dbcnt to the number of processed lines.
    Note
    The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
    Hope it helps...
    P.S. Please award points if it helps...

  • How to create TNS entry for db2 database?

    hi,
    I want to create a db2 database tns entry in tnsname.ora file. How do i create?
    thanks

    There seem to be several related threads about this concern.
    Creating dblink for db2 database
    How to create TNS entry for db2 database?
    How to create TNS entry for db2 database?

  • I have imac 10.6.8 how to add it to my domain server windows 2003

    i have imac 10.6.8 how to add it to my domain server windows 2003
    and .
    i cant find the directory access any

    One option is to create a new partition (~30- 50 GB), install the new OS, and ‘test drive’ it. If you like/don’t like it it, you can then remove the partition. Do a backup before you do anything. By doing this, if you don’t like it you won’t have to go though the revert process.
    Check to make sure your applications are compatible.
    Application Compatibility
    Applications Compatibility (2)

  • How to add get the field name for a newly added site column.

    I have the following:-
    Enterprise wiki site collection inside SharePoint server 2013.
    I added a new site column of type managed metadata.
    I opened the enterprisewiki.aspx page layout using the SP designer, to add the newly added site column to it.
    But I have noted that to add any site column I need to know the field name , for example the default wiki category column is referenced inside the page layout as follow:-
    <Taxonomy:TaxonomyFieldControl FieldName="Wiki_x0020_Page_x0020_Categories" EmptyValueDescriptionForTargetTemplate="<%$Resources:cms,enterwiki_nocategories_assigned%>" DisableInputFieldLabel="true" runat="server"/>
    <b>
    So my question is how I can know the field name for my newly added site column?
    Thanks in advance for any help.
    Regards

    Hi,
    The “FieldName” should be the internal name of the column, you will find it at the address bar at the “Site Columns”->”Edit Column” page:
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to create tns entry

    hi member
    i have installled oracle 9i database and 10 g forms at my system in different drives of computer . but when i try to connect my forms with database i could not create connection between tables and forms.the error which displayed as tns could not resolve connection identifer i provide same username and password when it ask for database connection so plz help me in this regard .......thanks in advance

    Database Connecting string can be your DB Name or Net Service name.
    For example, in my tnsnames.ora, I have the following tns entries.
    TESTDB=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = XXX.XXX.XXX.XXX)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TESTDB)
    In the above entry, first line is the database connecting string i.e. TESTDB.
    First you need to try connecting to sqlplus for successful connection.
    C:\> tnsping testdb
    If you see the success message means you can easily connect to the Database.
    C:\> sqlplus scott/tiger@testdb
    Here your scott user will be connected to the TESTDB database.
    Regards,
    Sabdar Syed.
    http://sabdarsyed.blogspot.com

  • How to add root entry

    Hi folks
    I'm trying to simulate an LDIF file into JNDI attribute set but cant make it
    dn: dc=fifa,dc=com
    objectclass: dcObject
    objectclass: organization
    o: Football Org
    dc: fifa
    dn: cn=Manager,dc=fifa,dc=com
    objectclass: organizationalRole
    cn: Manager
    This LDIF works fine on the command line ldapadd. Highly appreciate your help if anyone can tell me how to simulate these LDIF entries in JNDI way. I'm using openldap on solaris. I can add other entries if this entry is already created using command line ldapadd.
    Thanks in advance

    Ok i made it... there we go...
    import javax.naming.directory.*;
    import javax.naming.*;
    import java.util.*;
    public class AddEntry {
         final static String ldapServerName = "localhost";
         final static String rootdn = "cn=Manager,dc=fifa,dc=com";
         final static String rootpass = "secret";
         final static String rootContext = "dc=fifa,dc=com";
         // obtain initial directory context using the environment
         public DirContext createContext(String name)
              Properties env = new Properties();
              DirContext ctx = null;
              env.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory" );
              env.put( Context.PROVIDER_URL, "ldap://" + ldapServerName + "/" + name);
              env.put(Context.SECURITY_AUTHENTICATION, "simple");
              env.put( Context.SECURITY_PRINCIPAL, rootdn );
              env.put( Context.SECURITY_CREDENTIALS, rootpass );
              try
                   ctx = new InitialDirContext( env );
              catch(Exception ex)
                   ex.printStackTrace();
              return ctx;
        public static void main( String[] args )
              AddEntry ae = new AddEntry();
              try
                   DirContext ctx = ae.createContext(rootContext);
                   Attributes root_Dn = null;
                   Attributes cn_Dn = null;
                   Attribute root_objclass = null;
                   Attribute oAttr = null;
                   Attribute cn_objclass = null;
                   Attribute cnAttr = null;
                   root_Dn = new BasicAttributes();
                   root_objclass = new BasicAttribute("objectclass");
                   root_objclass.add("dcObject");
                   root_objclass.add("organization");
                   root_Dn.put(root_objclass);
                   oAttr = new BasicAttribute("o");
                   oAttr.add("Fifa Company");
                   root_Dn.put(oAttr);
                   ctx.createSubcontext("", root_Dn);
                   cn_Dn = new BasicAttributes();
                   cn_objclass = new BasicAttribute("objectclass");
                   cn_objclass.add("organizationalRole");
                   cn_Dn.put(cn_objclass);
                   cnAttr = new BasicAttribute("cn");
                   cnAttr.add("Manager");
                   cn_Dn.put(cnAttr);
                   DirContext ctx1 = ae.createContext(rootdn);
                   ctx1.createSubcontext("", cn_Dn);
           catch ( NameAlreadyBoundException nabe )
                   System.err.println( rootContext + " has already been bound!" );
              } catch ( Exception e )
                   System.err.println( e );
    }

  • How to add manual entry?

    Hi,
    Can anybody tell me how to add the manual to solaris , what`s the name of the packege.
    Thanks a lot.

    Hi Matt,
    if you speak about CLASSPATH you mean the environment-parameter PATH?
    If yes,
    D:\oracle\MIM\102\BIN>set PATH
    Path=D:\oracle\MIM\102\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wb
    em;C:\j2sdk1.4.2_17-x64\bin;C:\j2sdk1.4.2_17-x64;C:\j2sdk1.4.2_17-x64\jre;C:\j2s
    dk1.4.2_17-x64\lib;D:\usr\sap\MIM\SYS\exe\uc\NTAMD64
    In D:\oracle\MIM\102\BIN i see the follow files:
    06.01.2009  23:27           539.648 OraOLEDB10.dll
    06.01.2009  23:27             1.712 OraOLEDB10.tlb
    06.01.2009  23:27            24.576 OraOLEDB10d.dll
    06.01.2009  23:27             7.168 OraOLEDB10us.dll
    06.01.2009  23:27           146.944 OraOLEDBgmr10.dll
    06.01.2009  23:27            12.800 OraOLEDBpus10.dll
    06.01.2009  23:27             9.216 OraOLEDBrfc10.dll
    06.01.2009  23:27             7.168 OraOLEDBrmc10.dll
    06.01.2009  23:27           187.904 OraOLEDBrst10.dll
    06.01.2009  23:27            17.408 OraOLEDButl10.dll
    Mfg
    Rainer

  • How to add environment entry in EJB3 ejb-jar.xml

    Hi,
    Is that a build in way of add environment entries in JDev for EJB 3 beans? For EJB 2 beans you can do that using properties. But the bean properties is not available in EJB 3. Please help.
    Thanks
    Kenny

    Thank you for the reply. But I need a way to enter env-entry value in ejb-jar.xml for EJB 3 in Jdev. In EJB 2, Jdev generate ejb-jar.xml for the bean and also let you add env-entry through bean's properties menu. But in there in no properties menu for EJB 3, also generated ejb-jar.xml is only a empty file doesn't contain any EJB depolyment information. That means you have to code ejb-jar.xml all manually.
    If I am wrong, can someone show me how to do this right?

  • How to add users/entry in the oracle internet directory using XML file

    hi friends,
    i need to know how to add entries, attributes in the oracle internet directory using the XML file.

    I could able to execute the ldapadd command with out error as
    ldapadd -h islch-532.i-flex.com -p 389 -D "cn=orcladmin" -w password -X mypath/filename.xml
    but the data entry is not added in OID. can any one help me out.

  • How to manage TNS entry in the OID ?

    Hello,
    We are in our way to implement OID to replace multiple TNSNAME.ora files.
    We are looking for the adequate tool to manage TNS entries in the OID.
    Does anybody use a Web interface to manage such entry ? or the mandatory tool is Oracle Directory Manager ?
    Is there another tool ?
    Thank in Advance.
    Jerome.

    The tool you use to manage the tns entries in the OID is Net Manager.
    Once you have ldap defined in your sqlnet.ora
    NAMES.DIRECTORY_PATH = (LDAP, TNSNAMES)
    And a valid ldap.ora file
    DIRECTORY_SERVERS=(oidhost:389:636)
    DEFAULT_ADMIN_CONTEXT = "dc=company,dc=com"
    DIRECTORY_SERVER_TYPE = OID
    You will then see that the directory and it's service names are available for management in the same way that the local tnsnames.ora entries.
    Alan...

  • How to add sites to a SharePoint server on port 80 without using the host header?

    Hello,
    I have a SharePoint 2013 server with 5 sites on it.  2 are using port 80 and the 3 are using other ports.  I like to add 2 more sites to the server.  If I was going to add 2 sites with different ports that are not port 80, what do I need to
    do?  I noticed the host header file on the server has no sites configure in it. 
    How would I add 2 sites to the server that has 5 other sites?
    Thanks
    Paul

    Where is the Calendar hosted at the moment?   If it's within SharePoint, there is a "Connect to Outlook" button, which will export the calendar as a shared calendar to your Outlook instance.  I'm never tried the reverse, so if you're using
    a shared calendar, you may need to consider moving it.  When they are linked, they'll be a two way synch (updates from one end will push to the other).  On top of this, you and your team will be able to set-up differnet alerts.
    Additionally, within the product you can create an overlay, calendar, which allows you to merge different calendars.  Each source calendar can have a different colour picked for it.
    In regards to running PS scripts as an end-user, not much if anything can be done here.  All I can think of is adding a codeplex workflow extension, work that into a workflow and then plug a script into that.  Your IT guys might not let that fly.
    Hope that helps
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to add backdated entry to calender

    I am trying to add an entry in the past and it just disappear from the screen after a couple of seconds, i have just updated my ipad and iphone could the new update have caused this clich!!
    thank you
    Simone

    Settings>Mail, Contacts, Calendar>Calendars>Sync>All Events

  • How to add an entry to TNSNAMES.ORA?

    Hello,
    if I add the following entry to the TNSNAMES.ORA:
    test1_10.121.34.56 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.34.56)(PORT = 1521))
    (CONNECT_DATA =
    (SID = test1)
    (SERVER = DEDICATED)
    how could I activate it please without rebooting?
    I'm using Oracle 9i Release 9.2.0.8.0 at CentOS 4.7
    Linux machine (which is compatible to RHEL 4.7).
    Thank you
    Alex

    Hello all, thank you for your support.
    Could we please start from the beginning?
    (and I'll use the real IP addresses this time, sorry)
    {color:#0000ff}oracle@ablora01:admin&gt; <strong>host ablora01.internal.XXX.com</strong>
    ablora01.internal.XXX.com has address 10.121.42.100
    {color}
    I have neither sqlnet.ora nor listener.ora and
    I have the following 2 entries in my tnsnames.ora:
    {color:#0000ff}oracle@ablora01:admin&gt; <strong>ll /abl/apps/oracle/9.2/network/admin/</strong>
    -rw-r--r-- 1 oracle oinstall 825 Jul 26 2003 libnk59.def
    drwxr-xr-x 2 oracle oinstall 4096 Nov 5 16:25 samples
    -rw-r--r-- 1 oracle oinstall 130 Mar 18 2002 shrept.lst
    -rw-r--r-- 1 oracle oinstall 24 Aug 7 2000 snmp_ro.ora
    -rw-r--r-- 1 oracle oinstall 717 Nov 5 17:15 sqlnet.log
    -rw-r--r-- 1 oracle oinstall 756 Nov 5 17:08 tnsnames.ora
    oracle@ablora01:admin&gt; <strong>cat /abl/apps/oracle/9.2/network/admin/tnsnames.ora</strong>
    # TNSNAMES.ORA Network Configuration File: /abl/apps/oracle/9.2/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    TEST1_10.121.42.81 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.42.81)(PORT = 1521))
    (CONNECT_DATA =
    (SID = test1)
    (SERVER = DEDICATED)
    BOCHUM_10.121.42.100 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.42.100)(PORT = 1521))
    (CONNECT_DATA =
    (SID = BOCHUM)
    (SERVER = DEDICATED)
    {color}
    When I try to tnsping the first entry it works:
    {color:#339966}oracle@ablora01:admin&gt;<strong> tnsping BOCHUM_10.121.42.100</strong>
    TNS Ping Utility for Linux: Version 9.2.0.8.0 - Production on 05-NOV-2008 17:19:34
    Copyright (c) 1997, 2006, Oracle Corporation. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.42.100)(PORT = 1521))) (CONNECT_DATA = (SID = BOCHUM) (SERVER = DEDICATED)))
    <strong>OK (0 msec)</strong>
    {color}
    When I try to tnsping the 2nd entry it fails:
    {color:#ff0000}oracle@ablora01:admin&gt; <strong>tnsping TEST1_10.121.42.81</strong>
    TNS Ping Utility for Linux: Version 9.2.0.8.0 - Production on 05-NOV-2008 17:20:21
    Copyright (c) 1997, 2006, Oracle Corporation. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.42.81)(PORT = 1521))) (CONNECT_DATA = (SID = test1) (SERVER = DEDICATED)))
    <strong>TNS-12541: TNS:no listener</strong>{color}
    When I look at the listener I get:
    {color:#339966}oracle@ablora01:admin&gt; <strong>lsnrctl status</strong>
    LSNRCTL for Linux: Version 9.2.0.8.0 - Production on 05-NOV-2008 17:21:55
    Copyright (c) 1991, 2006, Oracle Corporation. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 9.2.0.8.0 - Production
    Start Date 04-NOV-2008 17:35:04
    Uptime 0 days 23 hr. 46 min. 50 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Log File /abl/apps/oracle/9.2/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ablora01.internal.XXX.com)(PORT=1521)))
    Services Summary...
    Service "BOCHUM" has 1 instance(s).
    Instance "BOCHUM", status READY, has 1 handler(s) for this service...
    Service "test1" has 1 instance(s).
    <strong>Instance "test1", status READY, has 1 handler(s) for this service...</strong>
    Service "test1XDB" has 1 instance(s).
    Instance "test1", status READY, has 1 handler(s) for this service...
    The command completed successfully{color}
    When I try sqlnet it first fails and I have to reenter password:
    {color:#339966}{color:#ff0000}oracle@ablora01:admin&gt; <strong>sqlplus scott/tiger@TEST1_10.121.42.81</strong>
    SQL*Plus: Release 9.2.0.8.0 - Production on Wed Nov 5 17:10:42 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    {color:#ff0000}ERROR:
    {color}<strong>{color:#ff0000}ORA-12541: TNS:no listener
    {color}</strong>{color}
    {color:#ff0000}{color:#ff0000}Enter user-name: scott
    Enter password:{color}
    Connected to:
    Oracle9i Release 9.2.0.8.0 - Production
    JServer Release 9.2.0.8.0 - Production
    SQL&gt; select * from tab;
    TNAME TABTYPE CLUSTERID
    BONUS TABLE
    DEPT TABLE
    EMP TABLE
    SALGRADE TABLE
    {color}
    Do you please know, why it complains about the missing listener?
    And my actual target is to allow a program from 10.121.42.81
    to connect to the "test1" instance.
    Regards
    Alex
    Edited by: user10507116 on Nov 5, 2008 12:29 PM

Maybe you are looking for

  • Apple Application Support was not found. Error 2 (Windows Error 5)

    I've had Apple call me twice, I've called them 4 times. The last tech told me he needed to research whether we would need to edit the Registry, but he hasn't called me back in 3 days and I'm stumped. I have Windows Vista 32 bit. I just bought an iPho

  • How to know the specific size of a field in oracle table

    Hello, oracle 11.2.0.3 on redhat i have three tables with same structure, table0, table50, table100: create table table0 (id number, shipment RAW(2000), options RAW(2000)); i inserted 10000 rows in each but with some differences: table0 has 10000 id,

  • Error during install

    I downloaded the trial version of dreamweaver and every time I try to install I get the following error--The system administrator has set policies to prevent this installation-- I have xp home sp2 only one user the defalut one setup during windows in

  • No sound via mini display to HDMI connector

    Hi all, I have the i7 8G ram version of the X1 Carbon (UK version) and love it.  The only issue I have with it is in relation to the mini display port.  I use a lot of HDMI equipment so immediately bought the mini display to HDMI connector from Grifi

  • Newbie, what to with the project after it's finished?

    total newbie here... I just finished my first DVD using FCE. Once you're done, what do you do with the project file and all the associated files? Is there a way to have everything archived into one folder (i.e., like InDesign's "Pre Flight" and "Pack