Strange problem with Database LInk

Hi Everyone,
I have strange problem with Database Link in Oracle 11g Express Edition;
There are two computers: computer-server and computer-client. Tnsnames.ora are the same on both computers ie.
CT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = XE)
I created database link :
Create database link zdalny
Connect to <user_id> identified by <password>
using ‘CT’;
Client can’t connect with server when I am using above command. But when I change “using” for using ‘krzysztof:1521’ or using ‘krzysztof’ or using ‘server IP:1521’ – everything is ok.
Why I am asking. Because in all materials which I am reading about Oracle command with using ‘CT’ should be working correct. But there is not. Do you know, why?
Thanks in advance and apologize for my English.
Rgds
Krzysztof

Krzysztof Szymaniak wrote:
Thanks for all replies.
Below is server's tnsnames.ora
CT =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
12154. 00000 - "TNS:could not resolve the connect identifier specifie
Rgds
Krzysztof
PS. I tried with using 'XE' - not working.Assuming that is the correct tnsnames, of course XE is not working. You don't have a tnsnames entry for 'XE'.
You need to be aware that when using a dblink, the client is the db in which the link is defined, not the desktop from which you connect to that database.
I think you need to start here:
http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/
http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ (Help! I can’t connect to my database )
http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ (Help! I can’t connect to my database (part duex) )
The fact that your client (db link) is a database doesn't change anything taught in the above.

Similar Messages

  • Ora-12154  problem with database link and transparent gateway

    Hello,
    I’m trying to make a communication between oracle and SQL server 2005.
    I use oracle 10g E.E Release 10.2.0.3.0 and the transparent gateway for SQL server 10201_gatway_win32.zip.
    Install:
    The oracle database is installed into a server named ss-serv. This server has two partition disk C and E. Oracle database is installed in E and the gateway in C. There is already a database (instance) running in the oracle home (in E).
    I configured the gateway as described into: http://download.oracle.com/docs/cd/B...3/conf_sql.htm.
    In sql server 2005, there is a database running named ClientTricks.
    I created a user named Avogadro with a login.
    In the partition C where the gateway is installed, the file inittg4msql.ora is like this:
    HS_FDS_CONNECT_INFO= ss-serv. ClientTricks
    The file sqlnet.ora where the gateway is installed is configured like this:
    SQLNET.AUTHENTIFICATION_SERVICES=(NTS)
    NAMES.DIRECTORY_PATH = (TNSNAMES, EZCONNECT)
    I configured the listener that is in the C partition where the gateway is installed, and the tnsnames that is in the oracle database in E partition disk like this:
    Listener :
    LISTENER=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=ss-serv)
    (PORT=1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=tg4msql)
    (ORACLE_HOME=C:\oracle\product\10.2.0\tg_1)
    (PROGRAM=tg4msql)
    tnsnames:
    mytg4msql=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=ss-serv)
    (PORT=1521)
    (CONNECT_DATA=
    (SID=tg4msql))
    (HS=OK))
    After edited the listener, I stop and start the listener for the transparent gateway from administrative tools in the services.
    Then, connected in oracle (in a database named fakeclient) I created a database link in sqlplus.The the dblink were created, but when I tried to querry some data from ClientTricks by executing the following instructions:
    select * from s_client@dblink
    i got this fatal and terrible error :
    ora-12154 TNS:could not resolve the connect identifier specified
    I verified all my procedure and stapes, all seems to be good. I did a tnsping of mytg4msql
    I got this error in the command prompt:TNS-03505 fail to resolve name
    Could someone help me ?
    Sorry for my English ,I’m French
    best regards

    Hi Mkirtley,
    i clarify you what i've done:
    Pease have a look in the link in my first post. Then, i said that in oracle database home the listener is in port 1521
    here is this listener:
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=PLSExtproc)
    (ORACLE_HOME=E:\oracle\production\10.2.0\db_1)
    (PROGRAM=extproc)
    LISTENER=
    (DESCRIPTION_LIST=
    (DESCRIPTION=
    (ADDRESS= (PROTOCOL=TCP)(HOST=ss-serv)(PORT=1521))
    (ADDRESS= (PROTOCOL=IPC)(KEY=EXTPROC0))
    Here is the tnsnames.ora in oracle database home:
    N.B in this ora file, there's already some descriptions for the database running, so i just add these lines under the description in ora file.Here is:
    Jest=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=TCP)(HOST=ss-serv)(PORT=2000))
    (CONNECT_DATA=
    (SID=tg4msql)
    (HS=OK)
    for the listener of the gateway (installed in C partition):
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=tg4msql)
    (ORACLE_HOME=C:\oracle\production\10.2.0\tg_1)
    (PROGRAM=tg4msql)
    LISTENER=
    (DESCRIPTION_LIST=
    (DESCRIPTION=
    (ADDRESS= (PROTOCOL=TCP)(HOST=ss-serv)(PORT=2000))
    (ADDRESS= (PROTOCOL=IPC)(KEY=EXTPROC1))
    here are all i did.
    Best regards

  • Problem with database links (naming) Windows/Linux

    Hi
    Windows xp SP3_
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Nov 21 10:28:21 2012
    Connected to:
    Oracle Database 11g Release 11.2.0.1.0 - Production
    name is PORCL30
    Linux (Ubuntu 12.04 LTS)_
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Nov 21 10:28:21 2012
    Connected to:
    Oracle Database 11g Release 11.2.0.1.0 - Production
    Name is GWORCL
    My domain is Initial-Surname.co.uk (I-Surname.co.uk)
    Tnsnames.ora
    PORCL30 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = home1.I-Surname.co.uk) (PORT = 1521) )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = PORCL30)
    (SERVICE_NAME = PORCL30.I-Surname.co.uk)
    GWORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = freds-server.I-Surname.co.uk) (PORT = 1521) )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = GWORCL)
    (SERVICE_NAME = GWORCL.I-Surname.co.uk)
    From Windows to Linux
    DROP DATABASE LINK "GWLINK4";
    CREATE DATABASE LINK "GWLINK4"
    CONNECT TO "SYSTEM" IDENTIFIED BY VALUES '051BDCE........D55BB704DA'
    USING 'GWORCL';
    results in a working database link named 'GWLINK4.I-Surname.co.uk'
    Where as
    Linux to Windows
    DROP DATABASE LINK "PLINK4";
    CREATE DATABASE LINK "PLINK4"
    CONNECT TO "SYSTEM" IDENTIFIED BY VALUES '0550AA0F39......AE5EF62220FE5A323'
    USING 'PORCL30';
    name is PLINK4 as determined by
    select DB_LINK from user_db_links;
    So what is different between the two databases other than the operating systems they run on? What should I examine?
    I should add that the linux PC is Internet facing and has a Public IP address (USB mobile broadband Modem) to which I-Surname.co.uk resolves via (ZoneEdit.com and ddclient). The ethernet lan port 10.10.1.35 connects to a switch where 10.10.1.30 (home1) is also connected (10.10.1.10 is the AD server)
    Thanks for your time
    Edited by: Neill_R on Nov 21, 2012 1:09 PM

    The problem is that the databases do not work in the same way. As I have said one produces DBLINK.i-surname.co.uk and the other DBLINK. Both machines are members of the i-surname.co.uk domain.
    In Sqldeveloper one can not alter the DBLINK since it has a "-" character (.I-Surname.co.uk)
    Why the difference?
    connect system@TNSGWORCL
    CREATE DATABASE LINK PLINK
    CONNECT TO SYSTEM IDENTIFIED BY
    USING 'TNSPORCL30';
    Connect system@tnsporcl30
    CREATE DATABASE LINK GWLINK
    CONNECT TO SYSTEM IDENTIFIED BY
    USING 'TNSGWORCL';
    connect system@tnsgworcl
    Enter password:
    Connected.
    select 1||' - '||db_link from sys.user_db_links
    union
    select 2||' - '||db_link from sys.user_db_links@PLINK
    DB_LINK
    1 - PLINK
    2 - GWLINK.I-SURNAME.CO.UK
    SQL> connect system@tnsporcl30
    Enter password:
    Connected.
    select 1||' - '||db_link from sys.user_db_links
    union
    select 2||' - '||db_link from sys.user_db_links@GWLINK
    DB_LINK
    1 - GWLINK.I-SURNAME.CO.UK
    2 - PLINK
    Tnsnames.ora
    # tnsnames.ora Network Configuration File: /opt/oracle/11g/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    TNSGWORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = freds-server.i-surname.co.uk)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = GWORCL)
    (SERVICE_NAME = GWORCL.i-surname.co.uk)
    TNSPORCL30 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = home1.i-surname.co.uk)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = PORCL30)
    (SERVICE_NAME = PORCL30.i-surname.co.uk)
    )

  • Problems with Database Link in query

    When I run this code:
    SELECT NVL2(wbs1.wbs1_seq, wbs1.wbs1, pcn.pron) AS pron
         , h.fy AS data_fy
    FROM pcn_list@THE_LINK pcn
         JOIN project@THE_LINK x
         ON x.pcn_seq = pcn.pcn_seq
         JOIN
           SELECT h.project_seq
                , EXTRACT(year FROM (h.data_dt + 92)) AS fy
           FROM pcn_data@THE_LINK h
                JOIN setup@THE_LINK
                ON (
                     setup.data_dt = h.data_dt
                     OR (
                          EXTRACT(year FROM h.data_dt) > DECODE(setup.site, 'TYAD', 2006, 2007)
                          AND h.data_dt < setup.data_dt
                          AND TO_CHAR(h.data_dt, 'MMDD') = '0930'
                     OR (
                          EXTRACT(year FROM h.data_dt) BETWEEN 2000 AND DECODE(setup.site, 'TYAD', 2006, 2007)
                          AND TO_CHAR(h.data_dt, 'MM') = '09'
                          AND h.data_dt = NEXT_DAY(LAST_DAY(h.data_dt) - 7, 'FRIDAY')
           WHERE h.data_dt BETWEEN '01-SEP-06' AND '31-OCT-08'
         ) h
         ON h.project_seq = x.project_seq
         LEFT JOIN wbs1_list@THE_LINK wbs1
         ON (
                wbs1.fiscal_yr = pcn.fiscal_yr
                AND (
                      wbs1.legacy_pron = pcn.pron
                      OR SUBSTR(wbs1.legacy_pron, 1, 2) || SUBSTR(wbs1.legacy_pron, 4) = pcn.pron
              OR (
                   TRIM(wbs1.legacy_pron) IS NULL
                   AND wbs1.wbs1 = SUBSTR(pcn.pron, 1, 2)
                                   || SUBSTR(TO_CHAR(wbs1.start_dt + 92, 'YY'), 1, 1)
                                   || SUBSTR(pcn.pron, 3, 1)
                                   || SUBSTR(pcn.mission, 1, 1)
                                   || SUBSTR(pcn.pron, 4, 5)
                                   || DECODE(
                                              SUBSTR(pcn.pron, 12, 1)
                                            , '0', SUBSTR(pcn.pron, 13, 2) || SUBSTR(pcn.pron, 13, 2)
                                            , SUBSTR(pcn.pron, 11, 4)
         LEFT JOIN xref_pron_command cmd1
         ON cmd1.command_cd = SUBSTR(pcn.pron, 11, 2)
         LEFT JOIN xref_pron_command cmd2
         ON cmd2.command_cd = SUBSTR(pcn.pron, 1, 2)
         LEFT JOIN mdms@THE_LINK mdms
         ON mdms.pron = SUBSTR(pcn.pron, 1, 8) || SUBSTR(pcn.pron, 11, 1)
         LEFT JOIN if_fedlog fedlog
         ON fedlog.fsc || fedlog.niin = SUBSTR(pcn.nsn, 1, 13)
         LEFT JOIN awpsammo@THE_LINK ammo
         ON ammo.pron = pcn.pron
         LEFT JOIN if_core_workload c
         ON (
              c.site = 'SITE'
              AND NVL2(wbs1.wbs1_seq, wbs1.wbs1, pcn.pron) = c.pron
              AND h.fy = c.data_fy
    WHERE pcn.mission != 'NOP'
    AND   x.pmc_cancel_fg = 'F'
    AND   NVL(wbs1.cancel_fg, 'F') = 'F'
    AND   NVL2(wbs1.wbs1_seq, wbs1.wpc, pcn.wpc) <> 'ZZ'I get:
    ORA-00904: "SETUP"."SITE": invalid identifier
    ORA-02063: preceding line from THE_LINK
    However, if I remove any of the cmd1, cmd2, fedlog, mdms, or ammo joins, it runs properly.
    It also runs properly if I remove both "WHERE h.data_dt BETWEEN '01-SEP-06' AND '31-OCT-08'" (line 25) and "AND x.pmc_cancel_fg = 'F'" (third line from the end).
    Also, there are three different external sites; the problems happen on two of them, but on a third, the code works as is.
    The query also works if:
    * I remove the links and run it directly on the external sites
    * I add something that makes it return no rows immediately (for example, "AND 0 = 1" as the last line)
    * "WHERE h.data_dt BETWEEN '01-SEP-06' AND '31-OCT-08'" is replaced by "WHERE h.data_dt = '30-SEP-09'" (which returns rows)
    * For that matter, at one of the problem sites, changing the first date in that WHERE clause to anything between '19-JUN-09' and '29-SEP-09' works, but '18-JUN-09' and earlier causes the error; at the other, the earliest working date is '02-NOV-08'.
    All three external databases, as well as the database on which this is run, are running 11.2.0.1.0 64-bit Production.
    Any ideas as to what is happening?

    sb92075 wrote:
    WHERE h.data_dt BETWEEN '01-SEP-06' AND '31-OCT-08'With Oracle characters between single quote marks are STRINGS!
    'This is a string, 2009-12-31, not a date'
    When a DATE datatype is desired, then use TO_DATE() function.Actually, usually I do (since there's no guarantee as to what the "default" date format will be - besides, the default tends to be 2-year dates). The one line where I don't is really just something I added to speed up the query when testing for the error.
    However changing that line to:
    WHERE h.data_dt BETWEEN TO_DATE('09/01/2006', 'MM/DD/YYYY') AND TO_DATE('10/31/2008', 'MM/DD/YYYY')causes the same results.

  • Strange problem with audio (link inside)

    Hello Community, please help me!
    So I started this project where I film everything I do in the year 2014 and stuff.
    Well, this week I began with doing the work in AE, so far so good.
    I'm not finished yet, but I just wanted to try to render and upload it, for testing reasons. (with bad quality though) here's the link: https://vimeo.com/113597439
    So... apparently there's every 11 seconds this clacking sound, I don't know how to get rid of it, it looks like it's a problem I have with AE rendering, because I tried to screencapture it and then convert it with the same software as I did with the AE outcome, it was fine. (but I obviously can't get a HD outcome by screencapturing my RAM-Preview). So it's not my converting tool!
    And I don't know what it is and additionally, the sound is getting delayed, I'm not sure if it's because of the same reason the clacking sound is, because in my RAM-Preview everything is perfectly fine.
    I'm using lossless with Audio checked on.
    I would be super thankful if anybody could help!
    Thanks in advance.

    So I'm not hearing anything funky on my phone when watching the video. I do have one question though, this looks like a bunch of clips strung together with nothing special added to the clips so I'm wondering why you are using AE to EDIT when AE is a compositing and motion graphics application specifically designed to create short shots or sequences. I would do something like this in Premiere Pro. It will take you about 1/10 the time and it will render much faster.

  • Strange problem with BB Link

    I use for months a Q10 and it worked wonderfully. Even sync with outlook was easy.
    Then few weeks ago, it was impossible to sync. I received these message: «Identifying d'application non valide» witch mean non valid ID application.
    So, I reset all the settings. And it works. But sadly, the next day, my sync problem was back. I reinstalled BBLink and I got the same result.
    I use windows 7 64bits, BBLINK 1.2.3.23
    Thank U for help, I wasted so many hours on this
    Solved!
    Go to Solution.

    It has been a few days since you posted and no replys, I am not sure why you are having this problem but the answer may be in the reset of settings.
    Seems that your computer is keeping something in memory and reset works but after a new power on you cannot sync again.
    Try deleting your temp files then reset the settings to see if it helps.
    In the Run box type:    temp    delete all files there.
    In the Run box type:    %temp%    delete all files found there.
    These are temporary files and are not needed and if any are needed the system will not delete them.

  • Strange problem with database log in...

    Hi all,
    I am doing a small interface which will contain the name and password textField for user to log in.
    The strange thing is, the program doesn't go through the line
           rec = st.executeQuery( "SELECT * FROM tbladmin WHERE Name ='"+nField.getText()+"' AND Password = '"+pField.getText()+"'" );If I try to display some message before this line, it showing properly but if after that line, nothing happen.
    import java.sql.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.util.*;
    import java.text.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import javax.swing.border.*;
    import java.text.DecimalFormat.*;
    public class admin extends JFrame implements ActionListener
        private Container cont;
        private GridBagLayout lay;
        private GridBagConstraints cons;
        private JLabel mainLabel = new JLabel(" Daddy Care Web Browser Administrator System ");
        private JLabel nLabel = new JLabel(" Name ");
        private JLabel pLabel = new JLabel(" Password ");
        private JTextField nField = new JTextField(20);
        private JTextField pField = new JTextField(20);
        private JButton vButtons[];
        private String vButtonnames[] = {" Log In ", "Exit"};
        private String data= "jdbc:odbc:admin";
        private String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
        private Connection conn;
        private Statement st;
        private ResultSet rec;
        private PreparedStatement ps;
       GridBagLayout gb = new GridBagLayout();
       Panel Pane1 = new Panel(gb);
       boolean option1 = false;
        /** Creates a new instance of dmp */
        int i =0;
      public void actionPerformed(ActionEvent e)
            int i =0;
            if(e.getSource() == vButtons[0])
                try{
                ps = conn.prepareStatement(" SELECT * FROM tbladmin  ");
               // st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
                rec = st.executeQuery( "SELECT * FROM tbladmin WHERE Name ='"+nField.getText()+"' AND Password = '"+pField.getText()+"'" );
                boolean more = rec.next();
                if(!more)
                    JOptionPane.showMessageDialog(null,"wrong ler....");
                    else
                    JOptionPane.showMessageDialog(null,"wahaha !!!");
               // dispose();
                catch(SQLException ex)
             if(e.getSource()== vButtons[1])
                System.exit(0);
        public admin ()
            super("Daddy Care Website Filter");
            setSize(500,200);
            int i;
            cont = getContentPane();
            lay = new GridBagLayout();
            cont.setLayout(lay);
            try
                 Class.forName(driver);
           catch(ClassNotFoundException c)
               { System.err.print("ClassNotFoundException: ");System.err.println(c.getMessage());}     
           catch (Exception s)
               {  s.printStackTrace();  } 
          /* Open Connection */  
           try
                conn = DriverManager.getConnection(data,"","");
                st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
                rec = null;
           catch(SQLException ex)
                       System.err.println("SQLException: " + ex.getMessage());
                   if (conn != null)
                        try
                             System.err.print("Transaction is being ");
                             System.err.println("rolled back");
                             conn.rollback();
                                    catch(SQLException excep)
                             System.err.print("SQLException: ");
                             System.err.println(excep.getMessage());
            cons = new GridBagConstraints();
            vButtons = new JButton[vButtonnames.length];
            for( i=0; i<vButtonnames.length;i++ )
                 vButtons= new JButton(vButtonnames[i]);
    vButtons[i].addActionListener(this);
    cons.weightx = 5;
    cons.weighty = 1;
    cons.gridwidth = GridBagConstraints.REMAINDER;
    addComponent(mainLabel);
    cons.gridwidth = GridBagConstraints.EAST;
    addComponent(nLabel);
    cons.gridwidth = GridBagConstraints.REMAINDER;
    addComponent(nField);
    cons.gridwidth = GridBagConstraints.EAST;
    addComponent(pLabel);
    cons.gridwidth = GridBagConstraints.REMAINDER;
    addComponent(pField);
    cons.gridwidth = GridBagConstraints.REMAINDER;
    addComponent(vButtons[0]);
    cons.gridwidth = GridBagConstraints.REMAINDER;
    addComponent(vButtons[1]);
    setSize(300,200);
    setVisible(true);
    private void addComponent(Component component)
    lay.setConstraints(component, cons);
    cont.add(component);
    public static void main(String args[])
    admin a = new admin();
    a.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    The name of the adatabase and the table for it is ' admin ' and that are only 2 field in the table "Name" and Password".
    Can somebody help me in this? THANKS !!!

    #As long as you put in statements like
    catch(SQLException ex)
                    { };you don't deserve any help. Sorry.

  • Problem connecting DataBase Link from windows oracle to oracle on Linux

    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?

    1005745 wrote:
    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?A database link is acting as a client to the target, remote database in exactly the same fashion and using exactly the same tns infrastructure as any other client trying to connect to that remote database. your ORA-12154 when querying a db link means exactly the same as if you had gotten it trying to connect with sqlplus, from the same server. Check the link SB provided. Keep in mind that the tnsnames file of concern is the one on the source database server.

  • Strange problem with linking to external vob-file

    I have a strange problem with linking to external vob-file. I
    have created a link using BudApi:
    on mouseup
    set OK = baOpenFile ( the pathname &
    "Files\General\Video\VTS_01_1.VOB", "normal")
    end
    This code opens mpg-videos correctly, but nothing happens
    when I try to open vob-files with the same code. The strangest
    thing is that when I change the default program for vob-files to
    WinDVD this code works and the file opens, but when I change the
    default program to Nero Showtime this code doesn't do anything
    (when I open the file 'manually' from the folder, it opens
    correctly on Nero Showtime). My client uses Nero Showtime, so I
    really would appreciate any help on this one.

    temes wrote:
    >
    quote:
    Originally posted by:
    Newsgroup User
    >> When using Nero Showtime as a default program, the
    error code is 31,
    >> "There is no application associated with the given
    filename".
    >
    > Which suggests that something has gone wrong with file
    associations.
    > If
    > you double-click one of these files in an Explorer
    window does it fire
    > up Showtime and open the file?
    >
    >
    > Yes, the file opens correctly in Nero Showtime when
    double-clicking
    > it in an Explorer. I tried the file associations and
    created a
    > html-page with a link to the vob-file, and the html-link
    opens the
    > vob-file correcly with Nero Showtime. My client reported
    this
    > problem, so it's not just my computer which is having
    this problem.
    If you open a command prompt, do you get an association
    listed like this
    example for .txt files:
    C:\>assoc .txt
    .txt=txtfile
    C:\>ftype txtfile
    txtfile="D:\Program Files\JGsoft\EditPadLite\EditPadLite.exe"
    "%1"
    Andrew

  • Interactive report performance problem over database link - Oracle Gateway

    Hello all;
    This is regarding a thread Interactive report performance problem over database link that was posted by Samo.
    The issue that I am facing is when I use Oracle function like (apex_item.check_box) the query slow down by 45 seconds.
    query like this: (due to sensitivity issue, I can not disclose real table name)
    SELECT apex_item.checkbox(1,b.col3)
    , a.col1
    , a.col2
    FROM table_one a
    , table_two b
    WHERE a.col3 = 12345
    AND a.col4 = 100
    AND b.col5 = a.col5
    table_one and table_two are remote tables (non-oracle) which are connected using Oracle Gateway.
    Now if I run above queries without apex_item.checkbox function the query return or response is less than a second but if I have apex_item.checkbox then the query run more than 30 seconds. I have resolved the issues by creating a collection but it’s not a good practice.
    I would like to get ideas from people how to resolve or speed-up the query?
    Any idea how to use sub-factoring for the above scenario? Or others method (creating view or materialized view are not an option).
    Thank you.
    Shaun S.

    Hi Shaun
    Okay, I have a million questions (could you tell me if both tables are from the same remote source, it looks like they're possibly not?), but let's just try some things first.
    By now you should understand the idea of what I termed 'sub-factoring' in a previous post. This is to do with using the WITH blah AS (SELECT... syntax. Now in most circumstances this 'materialises' the results of the inner select statement. This means that we 'get' the results then do something with them afterwards. It's a handy trick when dealing with remote sites as sometimes you want the remote database to do the work. The reason that I ask you to use the MATERIALIZE hint for testing is just to force this, in 99.99% of cases this can be removed later. Using the WITH statement is also handled differently to inline view like SELECT * FROM (SELECT... but the same result can be mimicked with a NO_MERGE hint.
    Looking at your case I would be interested to see what the explain plan and results would be for something like the following two statements (sorry - you're going have to check them, it's late!)
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two),
    sourceqry AS
    (SELECT  b.col3 x
           , a.col1 y
           , a.col2 z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5)
    SELECT apex_item.checkbox(1,x), y , z
    FROM sourceqry
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two)
    SELECT  apex_item.checkbox(1,x), y , z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5If the remote tables are at the same site, then you should have the same results. If they aren't you should get the same results but different to the original query.
    We aren't being told the real cardinality of the inners select here so the explain plan is distorted (this is normal for queries on remote and especially non-oracle sites). This hinders tuning normally but I don't think this is your problem at all. How many distinct values do you normally get of the column aliased 'x' and how many rows are normally returned in total? Also how are you testing response times, in APEX, SQL Developer, Toad SQLplus etc?
    Sorry for all the questions but it helps to answer the question, if I can.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Strange problem with ACLs

    Hi,
    I have just migrated an oracle database from 11.1.0.7 on Win Server 2003 to 11.2 on Linux 64 bit. I am having a strange problem with ACLs - I can create the ACL but when I perform either of the following two commands:
    SELECT * FROM DBA_NETWORK_ACLS
    or
    SELECT * FROM NET$_ACL
    I get no rows returned. The ACL exists somehow because if I try and create it again I get the error that it exists. Has anyone got any advice here? Something is out of sync and I need to know how to fix it up.
    Thanks
    Adam

    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    PL/SQL procedure successfully completed.
    select * from DBA_NETWORK_ACLS;
    (no rows)
    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    ORA-31003: Parent /sys/acls/ already contains child entry email_server_acl.xml
    ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 252
    ORA-06512: at line 2
    Edited by: Adam J. Sawyer on 15/04/2011 17:08

  • Strange problem with my build JAR

    Hiii everybody... I'm having a strange problem with my build (JAR file)... when I work with the Eclipse and I click in the table that returns the clients stored in my PostGre database it works fine, but when I build my application and it generates my JAR file and I open it and click in the same table to return the objects that I have.. it does not appears anymore.. just show when I work with eclipse... and the database is the same for both.
    I already checked the database path in my properties file... and the application recognize the database because I can login and there isn't any runtime exception...
    In that application I work with Hibernate and Spring... for me it is very strange because the application works fine when I run by eclipse... but does not return the database data when I click on my Jar file to open the application..
    Someone can help me with that?
    I dont know if the problem is in the Spring, Hibernate, Libraries...
    thanks in advance...

    So what's the error then? Are there any error messages? Have you checked the console? Or are you just clicking on the jar and you wouldn't even see the errors if there are any?
    What do the logs say?
    You're not giving a lot to work on here.

  • Strange problem with reminders when waking iMac

    I'm having a strange problem with reminders in Mountain Lion, and I thought someone might be able to help. If I have a reminder set, and it goes off when my iMac is asleep, after waking the iMac I can't dismiss the reminder. I can click on "Close" or "Snooze" once, and there is the puff of smoke like it has been dismissed, but the notice is still on the screen (even in the Dashboard view), and hover over it only gives the spinning beachball and I can't access notifications with the two finger swipe. So far, restarting my iMac is the only solution I have found to this situation.
    Is anyone else having this happen? Is there an easy solution? Thanks!

    user11000236 wrote:
    Thanks for the info.
    How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
    This is explainted in the above mentioned link:
    Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication.

  • Strange problem with purple-remote

    Hi, I experience a strange problem with purple-remote (program which allow to control Pidgin via D-Bus) :
    To get the current status message, you have to type
    $ purple-remote getstatusmessage
    This works, but when I type
    $ echo $(purple-remote getstatusmessage)
    this fails with the error
    Traceback (most recent call last):
    File "/usr/bin/purple-remote", line 238, in <module>
    print output
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)
    Why?
    How can this program work in the first case but not in the second?
    Thank you
    Edit: BTW, is there a workaround to put the output of `purple-remote getstatusmessage' in a variable? $(), redirections and piping doesn't work.
    Fractal
    Last edited by Fractal (2010-04-04 12:09:56)

    Hi Andyh,
    Welcome to the forum.  How annoying does that sound, if I had to get up every time I wanted to change channel or volume I would crack up.
    Drop me an email to [email protected], please include your BT account details and I will see what can be done to help.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Strange problem with IGS

    Dear Experts
    I have a strange problem with IGS
    My IGS server is running perfectly when I execute SIGS at my server system and also thrw Http link, and in GRC also
    But when I tried to execute the same tcode SIGS from internet thrw another system it is blank.
    Even risk terminator also blank due to that.

    Explain what you meant by internet thrw another system?
    IGS is integrated into the SAP kernel and make sure your kernel files are intact when compared to your server with another server you quoted.
    Check the program name is IGS.<SID of the SAP instance> in the RFC dest IGS_RFC_DEST & GFW_ITS_RFC_DEST.

Maybe you are looking for

  • Can we see Customer # in line item of accoutning doc for Rebate Correction

    Hi SD gurus, Now we have a requirement about rebate correction. In correction step, business want to see the customer number in line item of accounting document since it will be easy for them to do the reconciliation. I know there are allocation # an

  • Error with ARRAY- ArrayDescriptor

    Hi! I've a very weird error with an application built in JDeveloper 10G 10.1.2.2.0 (Build 1929). I need to call an store procedure and pass an ARRAY parameter. To do so, I just       Connection conn = callStoredProcPST.getConnection();           Arra

  • Secondry commission process.

    Hi, I am trying to configure the commission process. Company sells the product to the retailer (wholesaler) and pays the commission on that sale. That retailer sells that product to the shops and company pays the commission to those shops as well. Fo

  • How to create wrielesss vlan with diffrence configuration

    how to create wireless vlans with different configuration in network? device use only : laptop = 30 desktop = 40 linksys wirelesss router = 1 switch 2960 = 1 router 1841 = 1 vlan 10 = lecturer(1 desktop & 1 laptop) vlan 20 = student(29 laptop & 39 de

  • Fast PC yet still problems with memory optimisation on CS3

    I have a Dell 690 with eight 3GHZ processors and 3 Gig of RAM. I'm editing a half-hour documentary with lots of video audio and still files. Often when I create a new title caption, I receive a warning that memory is low. And now it's freezing up all