Database link TCP ports

We installed database link between two Oracle databases. Does anybody know on whitch TCP port it communicate ? I know only about port 1521. Problem is that we have firewall between computers and we need to enable Oracle communication between them.

avalanche333 wrote:
I am attempting to create a database link from a very locked down server (Database A) to Database B which is on my internal network.
Can someone tell me what ports I need to open in the firewall for a database link to work correctly? My Database B instance is a XE instance running on the default port 1521.
Thanks,Hans and Devotee have given you the best info so far. I'd like to expand and clarify slightly on their comments.
There is really nothing special about a db-link. It is just another client process, being used by the 'client' database. It uses exactly the same networking pieces as does sqlplus on the same machine. All of the same considerations are there ... tnsnames.ora on the client machine matching up with the listener configuration on the target machine, listener ports, port redirection for establishing the actual server process, etc. I would start by getting a sqlplus connection working. When you have that, you know you have all of your network configuration issues resolved. At that point any issues you have with the dblink will be in the link definition itself.
And as Hans pointed out, databases don't run on port 1521. It is a conceptual mistake to think of the database as "running" on any port. By default the listener uses port 1521 to listen for connection requests. The database knows nothing about that. It is also very easy, and not that uncommon, to configure the listener to use another port instead of or in addition to 1521, so it is also a mistake to treat port 1521 as if it were some immutable value.

Similar Messages

  • Database Link - What ports are used?

    I am attempting to create a database link from a very locked down server (Database A) to Database B which is on my internal network.
    Can someone tell me what ports I need to open in the firewall for a database link to work correctly? My Database B instance is a XE instance running on the default port 1521.
    Thanks,

    avalanche333 wrote:
    I am attempting to create a database link from a very locked down server (Database A) to Database B which is on my internal network.
    Can someone tell me what ports I need to open in the firewall for a database link to work correctly? My Database B instance is a XE instance running on the default port 1521.
    Thanks,Hans and Devotee have given you the best info so far. I'd like to expand and clarify slightly on their comments.
    There is really nothing special about a db-link. It is just another client process, being used by the 'client' database. It uses exactly the same networking pieces as does sqlplus on the same machine. All of the same considerations are there ... tnsnames.ora on the client machine matching up with the listener configuration on the target machine, listener ports, port redirection for establishing the actual server process, etc. I would start by getting a sqlplus connection working. When you have that, you know you have all of your network configuration issues resolved. At that point any issues you have with the dblink will be in the link definition itself.
    And as Hans pointed out, databases don't run on port 1521. It is a conceptual mistake to think of the database as "running" on any port. By default the listener uses port 1521 to listen for connection requests. The database knows nothing about that. It is also very easy, and not that uncommon, to configure the listener to use another port instead of or in addition to 1521, so it is also a mistake to treat port 1521 as if it were some immutable value.

  • P6 Web Access connection to MS SQL Server database using TCP Dynamic Ports

    Hi,
    I am attempting to install P6 Web Access. When I run the installation and do the database configuration I am required to input a port number into the Database Host Port field. I do this and no error is displayed graphically, but I get a connection refused error when I look in the web access log.
    "com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect "
    The dba is running the database on an sql server farm and does not want to apply a static tcp port to the Primavera database as this will interfere with his other databases.
    The fact that it appears to be mandatory to input a host database port during database configuration, has me thinking that P6 Web Access requires that the database be set up with a static TCP port? Is this correct?
    I searched the documentation about this but came away with nothing...
    any help would be truly appreciated.
    Andy

    At my previous company we experienced a similar issue with P6 Web. Our P6 database was hosted on an Oracle RAC and when configuring the Web connection I was forced to point it to a single RAC server rather then allow it to utilize the cluster. If you have found a resolution to this I would be interested in hearing about it.

  • Using database-link in view to get around ORA-01031 error

    I have been granted select rights on a users table. I am therefore able to select from his table. If however I try create a view against his table I run into the ORA-01031 problem. I have worked around this problem by creating a database-link to myself and then adding that to the view creation and it works. What are the downsides of using the database-link in this way?

    The only down side I have been able to identify is that a extra session is created and that the CPU has a little extra work due to the LOOP BACK that takes place. I need to ensure the network is not unnessesarly used and therefore will need to ensure that 127.0.0.1 (local host) is used in the database connection discription. e.g.
    create database link my_db_link connect to scott identified by tiger using '(description=(address=(protocol=tcp)(host=127.0.0.1) (Port = 1521) ) (connect_data= (sid=ora10g)))';

  • Not able to create a database link using the database gateway of oracle 11g

    HI,
    While trying to create a database link to SQL server from Oracle ,using the database gateway provided with 11g, i am getting the following error while making use of it in selecting columns from tables :
    Error starting at line 1 in command:
    select * from test1@dblink
    Error at Command Line:1 Column:20
    Error report:
    SQL Error: ORA-28513: internal error in heterogeneous remote agent
    ORA-02063: preceding line from DBLINK
    These are the steps i have followed for setting up:
    1.Ran the set up for the Database gateway.and mentioned the SQL server name and database .ALos set up a listener.
    2. Added the following in the Listener.ora of Oraclehome 11/NETWORK/ADMIN:
    LISTENER_SQL_FCD =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost) (PORT = 1541)
    SID_LIST_LISTENER_SQL_FCD =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=dg4msql)
    (ORACLE_HOME= D:\app\20537\product\11.1.0\db_3)
    (PROGRAM=dg4msql)
    3.Added the following in tnsnames.ora inOracle home/NETWORK/ADMIN:
    dg4msql=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1541))
    (CONNECT_DATA=(SID=dg4msql))
    (HS=OK)
    4. Following is the entry in initdg4msql.ora in C:\product\11.1.0\tg_5\dg4msql\admin:
    HS_FDS_CONNECT_INFO=10.148.45.242:1433//SalesDemo
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    5. Created the database link :
    create database link dblink
    connect to "sa" identified by "<pswd>"
    using 'dg4msql'
    On running :select * from test1@dblink i get the following error:
    Error starting at line 1 in command:
    select * from test1@dblink
    Error at Command Line:1 Column:20
    Error report:
    SQL Error: ORA-28513: internal error in heterogeneous remote agent
    ORA-02063: preceding line from DBLINK
    Is there any issue with the set or definition that I get the above error?

    What is the version of the Oracle database in which you have specified/and use the database link?
    If it is for example 10.2.0.3.0 you need to apply the mandatory patch for RDBMS bug 5965763 first before being able to use an 11g gateway. Have a look at MetaLink note 457808.1 for details about this patch.
    Regards,
    Ed

  • Failed to create Database Link in OWB 9.2 for remote SQL Server

    Hi,
    I have to create Database link for connecting to SQL server in a different machine.I am using OWB 9.2 and XP.
    Dataserver is the machine name which is running SQL Server
    I included follwing lines in TNSNAMES.ORA file
    hsodbc.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
    (CONNECT_DATA = (SID=hsodbc.world)
    (HS =OK)
    I included follwing lines in Listener.ORA file
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dataserver)(PORT = 1433)
    (SID_DESC=
    (SID_NAME=hsodbc.world)
    (ORACLE_HOME=C:\ora92)
    (PROGRAM=hsodbc)
    I included follwing lines in inithsodbc.ORA file
    HS_FDS_CONNECT_INFO = testdsn
    HS_FDS_TRACE_LEVEL = 0
    While creating new database link I gave the follwing values
    DB Link Name : Mylink
    SQL * Net Connect String: hsodbc
    User Name: sa
    password:<my password>
    Then clicked "Create and Test" button to get the follwing error message
    Testing...
    Failed.
    ORA-12154 TNS:could not resolve service name
    *Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file
    *Action: Make the following checks and correct the error:
    - Verify that a TNSNAMES.ORA file exists on your repository server
    in the proper place and is accessible. See the operating
    system specific manual for details on the required name and location.
    - Check to see that the service name exists in one of the
    TNSNAMES.ORA files and add it if necessary.
    - Make sure there are no syntax errors in the file.
    Particularly look for unmatched parentheses or stray characters.
    Any error in a TNSNAMES.ORA file makes it unusable. See
    Chapter 4 in the SQL*Net V2 Administrator's Guide. If possible,
    regenerate the configuration files using the Oracle Network Manager.
    Is there anything wrong in my configuration. Please help me in getting out of this problem.
    Thanks in advance
    Andy

    Hi Mark,
    Thanks Mark.I did the changes in the specified .ora file but now it shows a different error message.
    The error is
    Testing...
    Failed.
    Cwm Error Message: SQL Exception
    Cwm Error: SQL Exception
    Class Name: CacheMediator
    Method Name: getDDEntryFromDB
    Repository Error Message: ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYLINK
    Query: select 1 from dual@MyLink
    I got the same error when i tried manually in sql plus.
    Please help me in getting out of thid problem
    Thanks in advance
    Andy

  • Timeout when using database link connecting to a remote database

    Hi,
    I have another strange problem. I have two computers A and B. Both have an Oracle database server instance. I manage the one in B (which is my local computer) but not the one in A (which is a computer where I have a user account and an Oracle account but I don't own or manage).
    I tried to establish a database link on the database in B pointing to the one in A. This works.
    When I try the opposite, that is, establish a database link on the database in A pointing to the one in B I cannot get it work. I can create the database link but then when I try to use it (e.g., by submitting a "SELECT") it blocks for a long time and finally returns "ORA-12535: TNS:operation timed out". I tried to execute telnet from A to B using the port of the Oracle database server in B and it seems that the connection is established. I tried something similar with tnsping but this does not work, as I get again the timeout. I tried deactivating the firewall on my computer B, but it does not work either (besides, the telnet passes through even if I have the firewall activated).
    Any idea?
    My TNSPING looks like this:
    tnsping '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <the-target-ip>)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = XE)
    I also tried with:
    tnsping '(ADDRESS = (PROTOCOL = TCP)(HOST = <the-target-ip>)(PORT = 1521))';
    I'm lost... Any ideas are very much appreciated.
    Thanks!

    From A to B and from B to A can you ping ... post the output surrounded by tags for formatting.
    Do the same thing for TNSPING.
    What do these computers have in the way of firewalls and antivirus products installed and how are they configured?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problems in using database link

    Hi all,
    I have problems in using the following created database link:
    Name: fzanalyze
    User: fzanalyze
    PWD: xxx
    Host: fz.domain.com
    I get the following error message, if I try to start this select:
    select * from tab@fzanalyze;
    FEHLER in Zeile 1:
    ORA-12154: TNS:Couldn't resolve service name
    The problem, the TNS is correct, because I copied the hoststring from the tnsnames.ora. Also I can connect to the database by using the given hostname as follows:
    connect fzanalyze/[email protected]
    connected
    What could be the problem, the I get the tns-Error, although I can connect normal to the database??
    Thanks for helping
    Dana

    Dana,
    Unlike Kamal, I don't use SQLNET anymore (isn't it obsolete from 8i+?), so I don't have any sqlnet.ora on my client or server.
    I'm not really a sysop, so no clever thoughts behind the following ideas, I just use these for development purposes at home:
    IP range at home = 192.168.x.x segment (another router server connects to the internet)
    Oracle server computer name = dbserver.seinpost.nl (local address = 192.168.1.110)
    instance entry in $TNS_ADMIN/listener.ora @ server:
        (SID_DESC =
          (GLOBAL_DBNAME = inst04.seinpost.nl)
          (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
          (SID_NAME = inst04)
        )instance entry in $TNS_ADMIN/tnsnames.ora @ server:
    INST04.SEINPOST.NL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.seinpost.nl)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = inst04.seinpost.nl)
      )instance entry in tnsnames.ora @ client:
    INST04 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (PROTOCOL = TCP)
              (HOST = 192.168.1.110)
                (PORT = 1521)
        (CONNECT_DATA =
          (SERVICE_NAME = inst04.seinpost.nl)
      )So again, no sqlnet.ora and as you can see only on my client I use local IP addresses to prevent my client for searching the internet for the non-existing dbserver.seinpost.nl address
    Hope this helps,
    Michiel

  • Database link from 11g to 10g

    I am trying to create a database link from the 11g database to the 10g database using:
    create database link ORCL10R2 connect to <username10g> identified by <password10g> using <db10g>;
    It Returns
    Database link created.
    select sysdate from dual@ORCL10R2 returns error:
    ERROR at line 1:
    ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    Please let me know what changes I need to make to tnsnames and listener at both servers.

    11g database: 10.1.1.10
    10g database: 10.1.1.12
    TNSNAMES.ORA at 10.1.1.10
    XYZ =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.10)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XYZ)
    LISTENER.ORA at 10.1.1.10
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.10)(PORT = 1521))
    what needs to be modified here?
    Edited by: 944558 on 5 Jul, 2012 12:27 AM

  • Database link from Oracle to MySQL with the use of unixODBC

    Hi,
    I have 2 servers.
    Server A:
    - CentOS_5.1 x386
    - MySQL 5.1
    - unixODBC
    - mysql-connector-odbc
    Server B:
    - CentOS_5.1 x86_64
    - Oracle 11g
    - unixODBC
    - mysql-connector-odbc
    I've configured ODBC, so I am able to do "isql <DSN> oracle oracle -v" sucessfully with "root" and "oracle" user on Oracle server. I've configured listener.ora and tnsnames.ora
    I added below lines to listener.ora
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=mysqlware)
    (ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1)
    (PROGRAM=dg4odbc)
    (ENVS=LD_LIBRARY_PATH=/u01/app/oracle/product/11.1.0/db_1/hs/lib:/usr/lib64/:$ORACLE_HOME/lib)
    and lines below to tnsnames.ora
    mysqlware=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=<server's FQDN>)
    (PORT=1521)
    (CONNECT_DATA=
    (SID=mysqlware))
    (HS=OK))
    The content of $ORACLE_HOME/hs/admin/initmysqlware.ora is
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = mysqlware
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc3.so
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/.odbc.ini
    # Environment variables required for the non-Oracle system
    set <envvar>=<value>
    tnsping mysqlware returns.....
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=<server's FQDN>)) (PORT=1521)) (CONNECT_DATA= (SID=mysqlware)) (HS=OK))
    OK (10 msec)
    when I login to oracle and create PUBLIC DATABASE LINK with command....
    create public database link link2mysqlware connect to
    2 "oracle" identified by "oracle" using 'mysqlware';
    Database link created.
    THIS IS WHAT I GET.....
    SQL> select * from "emp"@link2mysqlware;
    select * from "emp"@link2mysqlware
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from LINK2MYSQLWARE
    There is "emp" table in MySQL, from where I can even select with the use of isql command and from this Oracle server.
    I would really appreciate some help here.
    Thanks in advance.
    Tomaz Bracic

    Evening Ed,
    I changed to debug and repeated the select ....... The output below is for one select that I did. (select * from "emp"@link1)
    Oracle Corporation --- WEDNESDAY MAR 19 2008 21:50:51.371
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "mysqlware"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.1.0.6.0_0006, Instance:mysqlware
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=110000
    Entered hgolofn at 2008/03/19-21:50:51
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libodbc.so"
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2082a0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a208330
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a208af0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a209d60
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2117d0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a211c70
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a214480
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a215930
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a216130
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a217b50
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a217b70
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a219270
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21c410
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21c7b0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21e250
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21eea0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a21f1a0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a220fd0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2213a0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a222ee0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a222d30
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a227dc0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2295b0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a229be0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22b030
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22b8f0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22d550
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22daa0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a22e2f0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a230c30
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a231770
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a232190
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a232c20
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a233110
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a233a10
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a233f20
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2344c0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a234b10
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2350a0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a236640
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a236380
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2374e0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Entered hgolofns at 2008/03/19-21:50:51
    symbol_peflctx=0x6a2380b0
    hoaerr:0
    Exiting hgolofns at 2008/03/19-21:50:51
    Exiting hgolofn, rc=0 at 2008/03/19-21:50:51
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2008/03/19-21:50:51
    Entered hgolgon at 2008/03/19-21:50:51
    reco:0, name:oracle, tflag:0
    Entered hgosuec at 2008/03/19-21:50:51
    Exiting hgosuec, rc=0 at 2008/03/19-21:50:51
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using oracle as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2008/03/19-21:50:51
    HS_FDS_CONNECT_INFO = "mysqlware"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2008/03/19-21:50:51
    dsn:mysqlware, name:oracle
    optn:
    ##>Connect Parameters (len=35)<##
    ## DSN=mysqlware;
    #! UID=oracle;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2008/03/19-21:50:51
    Entered hgopoer at 2008/03/19-21:50:51
    hgopoer, line 159: got native error 0 and sqlstate I; message follows...
    Exiting hgopoer, rc=0 at 2008/03/19-21:50:51
    hgocont, line 1903: calling SqlDriverConnect got sqlstate I
    Exiting hgocont, rc=28500 at 2008/03/19-21:50:51 with error ptr FILE:hgocont.c LINE:1923 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2008/03/19-21:50:51 with error ptr FILE:hgolgon.c LINE:612 FUNCTION:hgolgon() ID:Calling hgocont
    Entered hgoexit at 2008/03/19-21:50:51
    Kind regards,
    Tomaz

  • Database link from Oracle to MySQL

    I tried and googled an tried again...but I can't get this to work. So if you can spare a moment, please help me out (or try to ;-) ).
    Environment:
    The Oracle Developer Days Virtual Box image, so that's 11gR2 EE on OEL. MySQL 5.1.51-community + mysql-connector-odbc-5.1.7-0.i386.rpm
    1. Created a database called test in MySQL, with a user "oracle" and a password "123".
    2. Created the file /home/oracle/.odbc.ini with as contents:
    [ODBC Data Sources]
    myodbc5 = MySQL ODBC 5.1.7 Driver DSN
    [myodbc5]
    DRIVER      = /usr/lib/libmyodbc5.so
    DESCRIPTION = MySQL ODBC 5.1.7 Driver DSN
    SERVER      = 127.0.0.1
    PORT        = 3306
    USER        = oracle
    PASSWORD    = 123
    DATABASE    = test
    CHARSET     = latin13. Created the file /home/oracle/app/oracle/product/11.2.0/dbhome_1/hs/admin/initmyodbc5.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO=myodbc5
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_SHAREABLE_NAME=/usr/lib/libmyodbc5.so
    HS_LANGUAGE=AMERICAN.AMERICA.WE8ISO8859P15
    HS_FDS_SUPPORT_STATISTICS=FALSE
    # HS_NLS_NCHAR=AL32UTF8
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/.odbc.ini
    set ODBCINSTINI=/home/oracle/.odbc.ini
    set LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/hs/lib:/usr/lib
    # Environment variables required for the non-Oracle system
    set HOME=/home/oracle4. Added to tnsnames.ora :
    dg4odbc =
      (DESCRIPTION =
        (ADDRESS_LIST =
           (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA = (SID=myodbc5))
        (HS=OK)
      )5. Added to listener.ora (and restarted it) :
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME = myodbc5)
          (PROGRAM = dg4odbc)
          (ENVS ="LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/hs/lib:/usr/lib:/lib")
      )6. Ran some tests:
    a. isql dg4odbc -> Connected!
    b. tnsping dg4odbc -> OK
    c. lsnrctl status -> Service "myodbc5" has 1 instance(s). Instance "myodbc5", status UNKNOWN, has 1 handler(s) for this service...
    d. in SQLPLUS (as system): create public database link mysql connect to "oracle" identified by "123" using 'dg4odbc';
    e. select * from test@mysql ("test" is a simple table I created in the MySQL DB) returns
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from MYSQL
    When I look in the trace file (in $ORACLE_HOME/hs/log) I see at the bottom of the file:
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib/libmyodbc5.so"
    Entered hgolofns at 2010/11/02-14:10:54
    hoaerr:28500
    Exiting hgolofns at 2010/11/02-14:10:54
    Failed to load ODBC library symbol: /usr/lib/libmyodbc5.so(SQLAllocHandle)
    Exiting hgolofn, rc=28500 at 2010/11/02-14:10:54
    Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 FUNCTION:hgoinit() ID:Loading ODBC aray of function ptrs
    Entered hgoexit
    HS Gateway:  NULL connection context at exit
    Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 FUNCTION:hgoexit() ID:Connection contextAfter Googling around I found out that all files are 32-bit (was on issue somewhere else)...and now I am stuck!
    Any ideas, tips etc on how to proceed???
    TIA
    Roel

    The ODBC Trace contains:
    [ODBC][3331][1288788738.867244][__handles.c][459]
                    Exit:[SQL_SUCCESS]
                            Environment = 0x92b0d08
    [ODBC][3331][1288788738.869179][SQLSetEnvAttr.c][189]
                    Entry:
                            Environment = 0x92b0d08
                            Attribute = SQL_ATTR_ODBC_VERSION
                            Value = 0x3
                            StrLen = -6
    [ODBC][3331][1288788738.869204][SQLSetEnvAttr.c][356]
                    Exit:[SQL_SUCCESS]
    [ODBC][3331][1288788738.879396][SQLAllocHandle.c][375]
                    Entry:
                            Handle Type = 2
                            Input Handle = 0x92b0d08
    [ODBC][3331][1288788738.879422][SQLAllocHandle.c][493]
                    Exit:[SQL_SUCCESS]
                            Output Handle = 0x92c2940
    [ODBC][3331][1288788738.879449][SQLSetConnectAttrW.c][332]
                    Entry:
                            Connection = 0x92c2940
                            Attribute = SQL_ATTR_AUTOCOMMIT
                            Value = (nil)
                            StrLen = -5
    [ODBC][3331][1288788738.879467][SQLSetConnectAttrW.c][616]
                    Exit:[SQL_SUCCESS]
    [ODBC][3331][1288788738.879694][SQLDriverConnectW.c][290]
                    Entry:
                            Connection = 0x92c2940
                            Window Hdl = (nil)
                            Str In = [DNdm;I=eoPDdm][length = 26]
                            Str Out = 0x92b1cf8
                            Str Out Max = 1024
                            Str Out Ptr = 0xbfe66270
                            Completion = 0
    [ODBC][3331][1288788738.879718][SQLDriverConnectW.c][500]Error: IM002
    [ODBC][3331][1288788738.879810][SQLGetDiagRecW.c][508]
                    Entry:
                            Connection = 0x92c2940
                            Rec Number = 1
                            SQLState = 0xbfe65f70
                            Native = 0xbfe65f90
                            Message Text = 0xbfe65d38her
                            Buffer Length = 510
                            Text Len Ptr = 0xbfe65fa8
    [ODBC][3331][1288788738.879835][SQLGetDiagRecW.c][550]
                    Exit:[SQL_SUCCESS]
                            SQLState = IM002
                            Native = 0xbfe65f90 -> 0
                            Message Text = [[unixODBC][Driver Manager]Data source name not found, and no default driver specified]
    [ODBC][3331][1288788738.879865][SQLGetDiagRecW.c][508]
                    Entry:
                            Connection = 0x92c2940
                            Rec Number = 2
                            SQLState = 0xbfe65f70
                            Native = 0xbfe65f90
                            Message Text = 0xbfe65d38
                            Buffer Length = 510
                            Text Len Ptr = 0xbfe65fa8
    [ODBC][3331][1288788738.879882][SQLGetDiagRecW.c][550]
                    Exit:[SQL_NO_DATA]
    [ODBC][3331][1288788738.879942][SQLDisconnect.c][208]
                    Entry:
                            Connection = 0x92c2940
    [ODBC][3331][1288788738.879958][SQLDisconnect.c][237]Error: 08003
    [ODBC][3331][1288788738.880005][SQLFreeHandle.c][286]
                    Entry:
                            Handle Type = 2
                            Input Handle = 0x92c2940
    [ODBC][3331][1288788738.880023][SQLFreeHandle.c][337]
                    Exit:[SQL_SUCCESS]
    [ODBC][3331][1288788738.903716][SQLFreeHandle.c][219]
                    Entry:
                            Handle Type = 1
                            Input Handle = 0x92b0d08So there is an error (IM002) in there, saying it can't find the Data Source Name..
    Some addtional tests I ran:
    dltest /usr/local/lib/libodbc.so returns SUCCESS: Loaded /usr/local/lib/libodbc.so
    ldd /usr/local/lib/libodbc.so returns
    linux-gate.so.1 => (0x00a44000)
    libdl.so.2 => /lib/libdl.so.2 (0x00a22000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00110000)
    libc.so.6 => /lib/libc.so.6 (0x005b1000)
    /lib/ld-linux.so.2 (0x00736000)
    So it can find and load the necessary libraries (afaik)..
    So any ideas left??

  • Error using database link

    Before creating the link, I went into my init.ora file and made sure the GLOBAL_NAMES entry was false.
    I then created a database link using the following:
    create public database link cindy_link
    connect to system identified by syspswd
    using 'PRECISEI';
    My link was created, but when I attempt to use it, I get the error:
    ORA-02085:database link CINDY_LINK.WORLD connects to PRECISEI.WORLD
    Here is the entry from my tnsnames.ora file:
    PRECISEI =
    (DESCRIPTION =
    (ADDRESS_LINK =
    (ADDRESS =(PROTOCOL = TCP)(HOST = taurus)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = precisei.world)
    Here is the entry from my listener.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = precisei.world)
    (ORACLE_HOME = E:|oracle\ora81)
    (SID_NAME = precisei)
    (I must admit to not having a full understanding of SID_NAME vs SERVICE_NAME.) I looked in dba_db_links, and my db_link is named CINDY_LINK.WORLD instead of CINDY_LINK.
    Do I have a problem in one of my files?
    I would really appreciate any help.
    Thanks.

    Well, I was facing the same problem but corrected it later on. Let me describe the solution is little detail.
    You need to check few things before creating db link.
    1) db_name and db_domain in init.ora file
    2) global_name in listener.ora file
    3) service name in tnsnames.ora file.
    It seems to me that you have not specified the db_domain in init.ora file. And in that case, you need to follow these steps.
    I am considering here that you have database A on server X and database B on server Y.
    Go to the first server (server X).
    set the global name in init.ora file by following
    Global_name=true
    db_domain=usa.com
    Start and open the database.
    connect as system user.
    (if your oracle sid is orcl then)
    svrmgr30>alter database rename global_name
    to orcl.usa.com;
    this will set the global_name as specified in init.ora file. Here, your SID is orcl and db_domain is usa.com so global_name will be orcl.usa.com.
    svrmgr30>Select * from global_name;
    You get the answer like this.
    Orcl.usa.com
    Now, go to Listener.ora file and change global_name to the new name (orcl.usa.com)
    restart the listener.
    WE WILL SEE ABOUT THE CHANGES OF TNSNAMES.ORA LITTLE LATER.
    Now, go to second server(server Y) and perform the same operation as defined above. i.e. Specify the db_name, db_domain in init.ora file, execute "alter database.." command for setting global_name and edit listener.ora file for new global name.
    Once you do all these you need to create service on server 1 to connect to server 2 and on server2 to connect to server1.
    Go to server X.
    Open tnsnames.ora file and create an entry like this.
    P =
    (DESCRIPTION =
    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = IP address of B)(Port= 1521)))
    (CONNECT_DATA = (SID = P))
    Here, P is global name of P ( at both the places).
    Now, go to server Y.
    Open tnsnames.ora file and create an entry like this.
    Q =
    (DESCRIPTION =
    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = IP address of A)(Port= 1521)))
    (CONNECT_DATA = (SID = Q))
    Here, Q is global name of Q ( at both the places).
    you are all set now.
    Create database link between 2 servers now.
    Say these are all your settings..
    Server X is having database A with global_name orcl.usa.com and server Y is having database B with global_name orcl2.us.com
    Now go to server X and create db link to server Y
    Create public database link orcl2.us.com using 'orcl2.us.com'
    (Note. don't miss to create a service 'orcl2.us.com' in server X's tnsnames.ora file)
    And go to server Y and create db link there.
    Create public database link orcl.usa.com using 'orcl.usa.com'
    (Note. don't miss to create a service 'orcl.usa.com' in server Y's tnsnames.ora file)
    hope this helps,
    If this doesn't work, feel free to contact me.
    Kalpen
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by cindy spearman ([email protected]):
    Before creating the link, I went into my init.ora file and made sure the GLOBAL_NAMES entry was false.
    I then created a database link using the following:
    create public database link cindy_link
    connect to system identified by syspswd
    using 'PRECISEI';
    My link was created, but when I attempt to use it, I get the error:
    ORA-02085:database link CINDY_LINK.WORLD connects to PRECISEI.WORLD
    Here is the entry from my tnsnames.ora file:
    PRECISEI =
    (DESCRIPTION =
    (ADDRESS_LINK =
    (ADDRESS =(PROTOCOL = TCP)(HOST = taurus)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = precisei.world)
    Here is the entry from my listener.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = precisei.world)
    (ORACLE_HOME = E:|oracle\ora81)
    (SID_NAME = precisei)
    (I must admit to not having a full understanding of SID_NAME vs SERVICE_NAME.) I looked in dba_db_links, and my db_link is named CINDY_LINK.WORLD instead of CINDY_LINK.
    Do I have a problem in one of my files?
    I would really appreciate any help.
    Thanks.<HR></BLOCKQUOTE>
    null

  • ORA-01017 error while using a database link

    Hi all,
    I have a TNS entry as below
    HOME=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=10.66.205.110)(PORT=1521))
    (CONNECT_DATA=(SID=HOME))
    I have created a database link as
    create public database link link92.com using 'HOME'.
    This was created successfully and an entry was made in all_db_links table.
    However if i try connecting to a table in the remote database...for example
    select * from emp@link92;
    I am receiving an error ORA-01017(Invalid username passwd).
    Would appreciate if somebody could help me out.
    Thank you

    It is not that the Database Link is "PUBLIC" that makes it use the current username/password.
    It is that the Database Link has been created without specifying a " CONNECT TO username IDENTIFIED BY password " that makes the DBLink behave as a "current user database link" using the current username/password to connect to the remote database.
    You can have a PUBLIC database link that uses a "CONNECT TO username IDENTIFIED BY password" such that all connections use the same remote username and password.
    You can also have "private" (ie not PUBLIC) database link that does not specify a "CONNECT TO username IDENTIFIED BY password" which becomes a "current user [owner] database link".

  • Database link to SQL Server Init error

    Hi all,
    i´m tryng to create a dblink between Oracle 10.2.0 in a RHEL4 and a SQL Server.
    I can connect using isql but when i try using sqlplus i obtain this error:
    SQL> CREATE DATABASE LINK dbl
    CONNECT TO "user"
    IDENTIFIED BY "pwd"
    USING 'hsodbc'; 2 3 4
    Enlace con la base de datos creado.
    SQL> SELECT * FROM Table_1@dbl;
    SELECT * FROM Table_1@dbl
    ERROR en línea 1:
    ORA-28545: error diagnosticado por Net8 al conectar a un agente (error in Net8 while connecting an agent)
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: 2 lines precediendo a DBL
    This is the error explanantion in Oracle Docs:
    I think the problem is the ini file inithsodbc.ora.
    inithsodbc.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    # AAB - Parametros para asociar un agente ODBC al HS
    HS_FDS_CONNECT_INFO = MSQLS
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_SHAREABLE_NAME =/usr/local/freetds/lib/libtdsodbc.so
    HS_AUTOREGISTER = true
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/.odbc.ini
    listener.ora
    # listener.ora Network Configuration File: /app/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = STA2)
    (ORACLE_HOME = /app/oracle/oracle/product/10.2.0/db_1)
         (SID_DESC = (SID_NAME=hsodbc)
    (ORACLE_HOME=/app/oracle/oracle/product/10.2.0/db_1)
    (PROGRAM=hsodbc)
                             (ENVS=LD_LIBRARY_PATH=/app/oracle/oracle/product/10.2.0/db_1/lib:/usr/local/lib)
    LISTENER =
         (DESCRIPTION =
         (ADDRESS_LIST =
              (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /app/oracle/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DEVSTA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr.hi.inet)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = devSTA)
    STA2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = STA2)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    STA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = STA)
    #AAB - Descripcion de servicio para conectar con SQLServer
    HSODBC = (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)
    (HOST=nemesisgr2.hi.inet)
    (PORT=1521)
    (CONNECT_DATA = (SID=hsodbc)
    (HS = OK)
    ODBC Files
    odbc.ini
    [ODBC Data Sources]
    MSQLS = Microsoft SQL Server
    [MSQLS]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    Description = Microsoft SQL Server
    Trace = No
    Servername = sqlserver
    Database = master
    [Default]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    odbcinst.ini
    [PostgreSQL]
    Description          = ODBC for PostgreSQL
    Driver          = /usr/lib/libodbcpsql.so
    Setup          = /usr/lib/libodbcpsqlS.so
    FileUsage          = 1
    [MSQLSDRIVER]
    Description          = Driver for MS SQL Server
    Driver          = /usr/local/freetds/lib/libtdsodbc.so
    Setup          = /usr/lib64/libtdsS.so
    FileUsage          = 1
    UsageCount          = 5
    freetds.conf
    # $Id: freetds.conf,v 1.12 2007/12/25 06:02:36 jklowden Exp $
    # This file is installed by FreeTDS if no file by the same
    # name is found in the installation directory.
    # For information about the layout of this file and its settings,
    # see the freetds.conf manpage "man freetds.conf".
    # Global settings are overridden by those in a database
    # server specific section
    [global]
    # TDS protocol version
    ;     tds version = 4.2
         # Whether to write a TDSDUMP file for diagnostic purposes
         # (setting this to /tmp is insecure on a multi-user system)
    ;     dump file = /tmp/freetds.log
    ;     debug flags = 0xffff
         # Command and connection timeouts
    ;     timeout = 10
    ;     connect timeout = 10
         # If you get out-of-memory errors, it may mean that your client
         # is trying to allocate a huge buffer for a TEXT field.
         # Try setting 'text size' to a more reasonable limit
         text size = 64512
    # A typical Sybase server
    [egServer50]
         host = symachine.domain.com
         port = 5000
         tds version = 5.0
    # A typical Microsoft server
    [egServer70]
         host = ntmachine.domain.com
         port = 1433
         tds version = 7.0
    # Test MS SQl Server
    [sqlserver]
         Database = master
         host = pruebas.hi.inet
         port = 1433
         tds version = 7.0
    Any ideas??
    Thanks in advance.
    Alex

    I have changed the inithsodbc.ora file including:
    HS_FDS_SHAREABLE_NAME =/usr/lib/libodbc.so (I have ODBC installed)
    Here you are the other information:
    lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-OCT-2008 09:29:52
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Bienvenido a LSNRCTL, escriba "help" para obtener información.
    LSNRCTL> status
    Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=nemesisgr2.hi.inet)(PORT=1521)))
    ESTADO del LISTENER
    Alias LISTENER
    Versión TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Fecha de Inicio 22-OCT-2008 19:31:34
    Tiempo Actividad 0 días 13 hr. 58 min. 29 seg.
    Nivel de Rastreo off
    Seguridad ON: Local OS Authentication
    SNMP OFF
    Parámetros del Listener /app/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log del Listener /app/oracle/oracle/product/10.2.0/db_1/network/log/listener.log
    Recibiendo Resumen de Puntos Finales...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=nemesisgr2)(PORT=1521)))
    Resumen de Servicios...
    El servicio "STA" tiene 1 instancia(s).
    La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA2" tiene 2 instancia(s).
    La instancia "STA2", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA2XDB" tiene 1 instancia(s).
    La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA2_XPT" tiene 1 instancia(s).
    La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STAXDB" tiene 1 instancia(s).
    La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA_XPT" tiene 1 instancia(s).
    La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "hsodbc" tiene 1 instancia(s).
    La instancia "hsodbc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    El comando ha terminado correctamente
    LSNRCTL>
    hsodbc
    There is no output executing this command.
    [oracle@nemesisgr2 ~]$ /app/oracle/oracle/product/10.2.0/db_1/bin/hsodbc
    [oracle@nemesisgr2 ~]$
    tnsping hsodbc
    [oracle@nemesisgr2 ~]$ tnsping hsodbc
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 23-OCT-2008 09:35:58
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Archivos de parámetros utilizados:
    /app/oracle/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Adaptador TNSNAMES utilizado para resolver el alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp) (HOST=nemesisgr2.hi.inet) (PORT=1521)) (CONNECT_DATA = (SID=hsodbc)) (HS = OK))
    Realizado correctamente (40 mseg)
    Rgds,
    Alex

  • The Database Link is not active

    try to be more clear, i'm in lack of ideas in this problem.
    I am following guide Oracle Database 2 Day + Data Replication and Integration Guide.
    I defined global_names parameter of remote database as true.In the step of "creation database link" i am getting error.(oracle enterprise manager 11g-->schema-->database links-->create)
    When i query on remote database(select * from global_name), I got orcl.
    So,In "Name" and "Net service name" field i specified orcl.Check radio button "Fixed user." and Username and password of remote database, and i got message "Database Link STRMADMIN.ORCL has been created successfully."
    But when i clicked on database link Name i got error, saying that
    "The Database Link is not active.ORA-02084: database name is missing a component "
    (Both dbs are oracle 11g.)
    Please reply.

    I think I am confused, "what should be Name and Net Service Name" while creating database link in context of "Database Replication." when global_names parameter is true in both database. I read somewhere "If the value of the GLOBAL_NAMES initialization parameter is TRUE, then the database link must have the same name as the database to which it connects." so what should database link name " should it be remote database name? db_domain?( or outtput of select * from global_name).......
    my tnsnames.ora on source db is
    ORCL.a.ernet.in =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = a.b.c.d)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL.a.ernet.in)
    when i connect user of remote database(a.b.c.d) from sqlpuls then it is connected.
    command which i give : sqlplus remoteUser/[email protected]

Maybe you are looking for

  • Multiple Lines Header and Records in ALV List

    Dear All, I am faced with a wierd user requirement to print multiple line header in ALV. Currently we have a classical report where we are displaying a huge text for example 400 characters in a single cell of a column of the report. Now we will have

  • Enable Cuda on 7.2.2 - Greyed out won't let me select

    I just moved over to the CC from CS6. I have been doing EVERYTHING on the forums and for some reason it still won't load. My specs: OSX 10.9.2 GeForce GT 650M 16gb RAM 2.3 GHz INtel Core i7 Premiere 7.2.2 Cuda Driver: 5.5.28 (but I've tried most rece

  • How to create table of results

    Hi, I am using a database in director and after a search I will end up with multiple record results. How do I present these to the user in a table which is then selectable per row?? I thought using a Flash DataGrid would be a good idea but I don't kn

  • How do I pull out a portion of a string?

    I have over 2,000 emails in mySQL database with company names as well. Unfortunately, these subscribers do not enter the company name the same. So I came up with the idea to pull the company name from the right side of the @ symbol, ie: [email protec

  • Does my iphone need a new battery?

    I bought an iPhone for £130 + £4.10 P&P from Ebay. I have just downloaded ibackupbot and it says this: CycleCount: 416 DesignCapacity: 1430 FullChargeCapacity: 1223 Status: Success is that bad? good? how can I make the full charge do what's it's desi