Intermedia search through a database link.

Has anyone been able to do a search through a database link on an intermedia index in another database?
My sql is:
select title
from [email protected]
where contains (title,'test')>0;
I get the following errors:
ORA-20000:
ORA-02063:
null

I guess you cannot do this. I read somewhere (not on top of my head where) that this is not supported.
null

Similar Messages

  • Accessing an API through a Database Link

    Hi,
    I am using Jdeveloper 11.1.2.2.0
    My use case is that, I need to access an API through a DB Link and pass some parameters/data using this DB link into the API and commit it into the remote database.
    I will be having a page from where I will passing the parameters, which should be committed into the database of the API provider.
    For this I have created a DB link and tried to query data from the remote database tables, its working.
    How to pass the parameters into the API using DB link and commit it into the remote database ?
    Thanks,
    Nigel.

    Hi Frank,
    Thanks for the suggestion.
    But in my case I need to call the external API using a DB Link.
    I am able to call the API and it is returning me the statements that the new row is being created successfully and returns the ID of the newly created row.
    But when I try again to access the Database through a query it is showing all the Rows with theirs ID's and data inside them, before and after the Row which I entered.
    The rows which has the ID which I entered is having no values in their columns. Is it because the data is not getting committed ?
    What is the reason for this ?
    Thanks,
    Nigel.
    Edited by: Nigel Thomas on Jun 14, 2012 2:52 AM

  • Greek Data becomes Question Marks when passed through a Database Link

    Hi All,
    We have a 10gR2 sharing a Win32 Server with an MSSQL 2005.
    Data transfers between these are set up using an HS Database Link.
    All latin data is passing well, however we have some Greek in there and its transformed to question marks on the way.
    Measures attempted so far:
    1. I've set the NLS_CHARACTERSET of the 10g to AL32UTF8 . Entered non-Latin data manually to the 10g - works fine.
    2. I've edited the relevant init.ora file to include the following:
    HS_LANGUAGE = AMERICAN.AL32UTF8
    HS_NLS_NCHAR = AL32UTF8
    3. Restarted the DB and Listener.
    Still question marks
    Ideas?
    Thanks
    Tomer

    HSODBC was never certified with NVARCHAR data types. Have a look at the Generic Connectivity Administrator's Guide. It list all supported data types and nchar/nvarchar/ntext is not listed. You can select from those data types, but there is no guarantee the content of those datatypes will be fetched correctly. There are no conversation routines that properly convert unicode content.
    HSODBC has been desupported 15th of March. I strongly recommend you to use DG4ODBC 11.1.0.7. In addition in DG4ODBC the NVARCHAR/NCHAR functionality has improved a lot.
    DG4ODBC V11.1.0.7 needs to be installed into its own Oracle_Home and it can be used with older Oracle database releases like 10.2.0.4 right out of the box; or you have to apply a compatibility patch to your Oracle database releas 9.2.0.8, 10.1.0.5, 10.2.0.3
    Edited by: kgronau on Dec 10, 2008 8:42 PM
    One thing I forgot to mention is the advantage of using DG4ODBC is it maps the nvarchar to Oracle nvarchar and thus there is no codepage translation required.
    But please pay attention; use 11.1.0.7 not the base release 11.1.0.6 as on Windows based operating systems a high/low byte issue was fixed in 11.1.0.7 which is mandatory for NLS support.

  • Searching through a database table from a java GUI

    i've created a java GUI using Netbeans which connects to a derby database. a table from this database is placed in my GUI, containing some text in all its rows. Now, i want to create a search function that will look for a given string of text through this table and output the results somewhere. can anyone please give me some tips on how i might go about doing this?
    thanks,
    Karan

    You may put a radio button or check box next to the column name.
    You can also put a drop down list contains option "start by", "end by", "contains" matched to SQL like statement, '%XX', 'XX%' and '%XX' respectively.
    You may also make the column name as a button which user can selected the ordering preference - ascending, descending, default.

  • Browsing and selecting through database link to fill in a form item

    Hi
    I have created a database link named in my application
    dblink_3
    I have a form and report in my application. On the from I have an item called P6_USER_ for which I would like to access a table (trk_user) through the database link I created so that I can fill in the text field or select list with a user from the table.
    can I browse by a select list somehow? or do I need to create a button that takes me to a report with a list of the data in the table and select that way.
    Please steer me in the right direction,
    Thanks,
    Kirk

    Hi Kirk,
    The fact that the data is on an external table shouldn't make any difference. You can do:
    SELECT field1 d, field2 r FROM trk_user@dblink_3 ORDER BY 1
    and that will give you your select list

  • Spatial Indexes Through Database Links

    Has anyone tried to "use" a Spatial Index through a Database Link? Meaning you try take advantage of the spatial index on column TABLE_A.GEOM through a database link? An example is:
    SELECT rownum, SHAPE FROM GDT_WATER_POLYGON WHERE AND SDO_FILTER( GDT_WATER_POLYGON.SHAPE SDO_CS.VIEWPORT_TRANSFORM(MDSYS.SDO_GEOMETRY(2003, 0, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(-105.06685,39.7744332,-104.981869,39.8338768) ), 8265),'querytype=window') = 'TRUE'
    where GDT_WATER_POLYGON is a public synonym to WATER_POLYGON@DBLINK
    When I try this in the linked table, it works fine, but when I try it using the link, I get the following error:
    ORA-13226: interface not supported without a spatial index
    Am I forgetting to grant something or is it just not possible?
    Thanks!

    Hi,
    Currently, using a spatial index through a database link is not possible.
    Dan

  • Database Link ORA-04054

    Hi
    I try send data from DB1 to DB2 via dblink.
    I created link
    CREATE DATABASE LINK MED
    CONNECT TO user IDENTIFIED BY pass
    USING
    '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.255.134.30)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = med)
    and I can select data from remote table without errors.
    When I try Insert data to remote table (with PLSQL)
    for xx in (select u.*, sm.nr_gm, sm.nazwa nazwa_miejsc from adresy u ,sl_miejscow@med sm where u.miasto=sm.ident and
    not exists
    (select * from PAC@med pk where pk.ident_pac=u.identyfikator and pk.jednoraz='K' )
    and u.data_zap is not null)
    loop
    insert into PAC@MED
    (ident_pac, od_daty, do_daty, adr_ulica, adr_kod, nr_domu, nr_lokalu, telefon, jednoraz,z_kim_mieszka,ident_miejsc,ident_poczty,ident_kraj, adr_gmina, WOJEW_KOD, ADR_MIEJSC)
    values
    ( xx.identyfikator, sysdate, to_date('31/12/2099','dd/mm/yyyy'),xx.ULICA, xx.KOD,xx.DOM,xx.LOKAL,
    xx.TELEFON,'K',82, xx.MIASTO, xx.MIASTO, xx.kraj, xx.nr_gm,99, xx.nazwa_miejsc);
    end loop;
    I have error ORA-04054: database link string does not exist.
    Can you help me ??
    Message was edited by:
    AndyPol

    I found solution.
    Main problem was in GLOBAL_NAMES parameter.
    This description help me:
    Problem Description:
    ====================
    You receive an ORA-02069 error during an insert to a remote database through a
    database link when the insert contained a local sequence.
    ORA-02069: global_names parameter must be set to TRUE for this operation
    Cause: A remote mapping of the statement is required but cannot be
    achieved because global_names should be set to TRUE for it to
    be achieved.
    Action: Issue alter session set global_names = true if possible
    Problem Explanation:
    ====================
    This is expected behaviour.
    The insert statement is transformed so that it can be executed at the remote
    end of the dblink. The reference to the local sequence has to be qualified so
    that the remote end knows to call back to the local instance. The qualification
    is made by appending @local_dbname.domain to the sequence reference if
    global_names=true. When global_names=false, the code cannot make the assumption
    that the qualifier will be valid and reports the error ORA-02069 'global_names
    parameter must be set to TRUE for this operation'.
    Search Words:
    =============
    DBLINK SEQUENCE GLOBAL_NAMES ORA-2069
    Solution Description:
    =====================
    Use the following workaround:
    1. Create a 'temporary' table on the local database for holding the inserts.
    2. Insert the entire row into this table.
    3. Insert the 'temporary' row from the temporary table to the remote table.
    4. Delete the 'temporary' row from the temporary table.
    This is slower but it will get around the problem. It help me
    OR
    Set GLOBAL_NAMES=TRUE in the init<SID>.ora - not work for me
    Solution Explanation:
    =====================
    The first workaround bypasses the remote node having to make a
    call back to the local instance to reference the local sequence.

  • Database Links - Objects Unviewable

    Oracle SQL Developer 1.1 Patch 2
    When I connect to a database with my schema, I can see all my objects in the database, however, when I try looking at objects that I have access to in a different database through a database link...no objects show up. The database links are present in the database that I am connecting too, but I am unable to view other objects that I have access to through the database link? Is this a bug or do I not have the connection setup correctly?

    The best that you can get with the current functionality is to list the synonyms you have for the objects across the database link, assuming that you have created synonyms.

  • Database link works for OS user "oracle" but not for other clients

    My DBA connects as user1 to db1 and successfully queries over database link db2.
    [oracle@linux19 ODA]$ sqlplus user1/****@db1
    SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 12 07:39:49 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> SELECT * FROM DUAL@db2;
    D
    XI log in from a Windows XP client and test the same database link with a ORA-12154 result.
    C:\>sqlplus user1/****@db1
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 11:18:18 2013
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> SELECT * FROM DUAL@db2;
    SELECT * FROM [email protected]
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specifiedI can create and successfully use database links by including the full TNS entry in the USING string.
    What are some possible causes for the different results?
    What additional information might I supply to help troubleshoot?
    Thanks very much.
    - Doug
    Edited by: enquad on Apr 12, 2013 2:56 PM
    changed "database link db1" to "database link db2" per comments by SB
    Edited by: enquad on Apr 12, 2013 3:00 PM
    Changed "user" to "OS user" in subject for clarity

    enquad wrote:
    Sorry gentlemen and SB, but my question is still not answered. It is a new question, which I have not found answered elsewhere.
    To summarize:
    SB97025 informs me that db1 is not a database link, but I never said that it was. It is the second database (anonymized as "db2") that is connected to through the database link "db2.mycompany.net".
    SB97025 also wonders intriguingly if my DBA and I are we really connecting to the same database when we each connect to user1 on db1. Perhaps the Oracle server and my PC have TNSNAMES.ORA files that lead us to different databases for the same TNS alias? I do not believe this is the case, because my DBA created that user1 and that database link in the db1 database specifically for the purpose of doing this test and I see that same link when I connect to user1 on db1. Unless my DBA is spoofing me by creating user1 in two different databases - only one of which contains a working dblink named db2.mycompany.net - just for the purpose of throwing me off, I would have to conclude that he and I are actually connecting to the same database.There is no reason to "believe" (or not) that "this is the case". The entire point of SB's comment on that was to get you to verify. President Reagan famously said "trust but verify". He never worked as a DBA. I say "don't trust, just verify".
    Obviously something is different. And at this point the most likely and easiest to confirm is that you and your DBA really are connecting to the same database, on the same host server, using the same link. And at this point all we really have is to trust your DBAs statement.
    >
    Ed Stevens reminds me that db1 is acting as a client to db2 and so the solutions to the ORA-12154 are the same as for any client connection as listed on his blog (which I had already read), none of which solve my problem. Rembember, the DBA can use the database link, so by whatever means the TNS lookup is happening when he uses it, the correct connection description is being found. The question is not "why does this stinkin' database link not work"? It does work for the DBA.
    Pierre wants to make sure I know that it is the Oracle server's TNSNAMES file that is the important thing, not my client's TNSNAMES file, which is true but not relevant to my problem and I was never so naive. He also says that I could try creating a database link by including the full TNS entry in the USING string, which does work as I had already mentioned in my original post.
    Amar asks if my DBA can: sqlplus username/password@db2.
    The answer is yes. The dba can use SQL*Plus to connect to db2 from the server hosting db1 and can connect to db1 from the server hosting db2. There is almost nothing my DBA cannot do.
    None of the posters addressed the key information in my post, which was the different result my DBA and I get when using the same database link in the same schema on the same database. That AND the fact that my DBA is logged on to Linux Oracle serve as user "oracle" and I am logged in to my PC. Why should it matter to a database link which computer is running SQL*Plus or who the OS user is?
    Also the GLOBAL_NAMES parameter is set to FALSE.
    - Doug

  • Weblogic 5.1, Distributed Transaction and Oracle Database Link

    We are planning to add a new functionality to run in Weblogic server and it
    needs to update tables in two different Oracle databases. Since we are using
    Weblogic 5.1 and it is unrealistic to upgrade to 6.1 in short term, we have
    to deal with the fact that distributed transaction is not supported by JTS
    on 5.1.
    One workaround we can think of is to utilize Oracle database link. Instead
    of having two connection pools, the application talks to only one database
    and access the tables on the other ones through Oracle database link.
    Therefore, when a session bean tries to update two tables on database 1 in
    one transaction, one of the tables is just a link to the other database. We
    hope that even though distributed transaction is not supported by JTS in
    Weblogic 5.1, but since it is supported by Orable, it would work.
    Do you think the above workaround would work? Does anyone have experience on
    something like that?
    Thanks in advance,
    David Chen
    [email protected]

    Hi. You should be able to use any JDBC driver with WebLogic 5.1.
    It may be the JVM that complains, if you use too old a JVM...
    Joe Weinstein at BEA Systems

  • OWA_UTIL and HTP across database link

    Has anyone figured out how to use the features of OWA_UTIL, such as listprint, across a database link? I can create a drop list on data that is in the portal instance. But if I try to create a list based on a table in a back-end database through a database link, it generates errors.
    Also, I create a procedure to generate a dynamic page portlet using htp calls and it works fine if the procedure is located in the portal instance. But move the code to the back-end database and access via a synonym and database link and it generates errors out of the owa_util package.

    Create a view on your local db using tables over the db link and base your list on that view.

  • ODP AND DATABASE LINKS ???

    Hi, some very weird stuff going on here:
    When I bind data to my datagrid, if it comes through a database link in any way (either I code to access via a database link or I create a view with the link in it) I get only the first two chars of every field. Really weird, any ideas:
    You can see four sql lines below- The only one that works is one that is a view on the local database(not the data i need), all the others only return first two chars of every item via the db link. In case two I created the view with the link in it.
    Code in my DAL:
    Public Function returnTissues(ByVal inFrom As String, ByVal inTo As String) As DataTable
    Dim tissues As New DataTable
    Dim command As New OracleCommand
    Dim adapter As New OracleDataAdapter
    Try
    Dim sql As String = "select specimenid, status, sampletype, form, species from [email protected] where specimenid between '" & inFrom & "' and '" & inTo & "'"
    'FAIL-Dim sql As String = "select specimenid, status, sampletype, form, species from specimen_view_sbat where specimenid = 'ONC000100'"
    'PASS-Dim sql As String = "select * from request_view"
    'FAIL-Dim sql As String = "select s_sampleid from [email protected] where s_sampleid = 'MGH000167'"
    command.CommandText = sql
    command.Connection = Me.globaldal.msdb
    adapter.SelectCommand = command
    adapter.Fill(tissues)
    Return tissues
    Catch ex As OracleException
    Throw ex
    Finally
    End Try
    End Function
    Here is the page code:
    Private Sub ButtonSearchByRange_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonSearchByRange.Click
    Dim fromvalue As String
    Dim tovalue As String
    fromvalue = TextboxFrom.Text
    tovalue = TextBoxTo.Text
    DataGridTissues.DataSource = tissuedal.returnTissues(fromvalue, tovalue)
    DataGridTissues.DataBind()
    End Sub
    Also, I will materialize the view and try it, but it has got to be the ODP, the sql executes fine via slqplus, toad, etc, and It's not the grid, I bound the first column to a dropdown and got the same result.
    My ENV:
    Local DB 8.1.7.3 - I think
    Remote DB 9 release 2
    OPD: 9.2.0.4.01

    Further testing has revealed:
    The database link works fine when connected to another 8.1.7.4 instance as opposed to the 9.2.0.3.0 instance.
    It makes no difference if the link is public or private.
    Creating a materialized view with the database link in it to the 9.2.0.3.0 instance also works fine.
    However none of the above is a solution.

  • Database Link without disturbing each other

    Hai All,
    I have two database DB1 and DB2. I want to continous updating one table from DB2 database into DB1 database in online. But don't see and access the data between the two databases.
    I think the datbase link is the solution for this. But how to achieve the security restrictions through the database link.We want the database servers IP and SID names are trying to keep secret. How to manage this situation?
    Please help,
    Shiju

    First of all, I believe you full knowledge of how Database Links work. how they are created and the different parameters and options when spcifying the user and database?

  • Can you access packages or sequences via a database link

    I am trying to access a sequence through a database link.
    Does anyone know if this is possible ?

    Hi,
    Thanks very much and I apology for the lack of information in the post.
    I was trying to select from the sequence using
    select myseq@my_link.nextval
    from dual;
    because of this i started looking at web site documentation and could not find any examples or any references to plsql packages or sequences using database links and the oracle documentation on links only specified selecting from tables or views.
    this lead to my post whereas as you described it is my syntax that is the problem.
    thanks again

  • HELP! FOR LOOP TO SCROLL THROUGH TABLE AND CREATE DATABASE LINK

    Hi,
    Here's the scenario, not much of a PL programmer, just basic SQL so really need some help people!
    I have 2 tables. 1 contains list of DB's and the other contains rules to follow.
    I need to create a loop that goes through the table containing the DB's and on each row a DB link is created (Only 1 link allowed!)
    Once created, the schema currently logged in with also has an account on the linked DB in order to run scripts- The scripts are stored centrally hence the requirement for the link to the target DB.
    There are numerous scripts that need to be executed and can all be called from 1 script, once executed the loop exists and the database link needs to be dropped.
    Once dropped, the first loop continues, creating a DB link for the next DB listed in the table (and all the scripts are fired again)
    This continues against all the DB's listed in the table.

    Hi BlueShadow,
    Thanks again for the response, you've hit the nail on the head. SQL scripts on a unix server, a loop goes through a table 1 at a time. Each row gets a link created and then all the scripts stored on the server are executed against the db linked to. So I'm assuming this is a loop within a loop.
    1 loop to go through the table to create the link and then another loop within once connected to execute all the scripts against the connected DB. Once the scripts are run, the loop exits and moves onto the next server and so on until all the servers have the scripts are run.
    It's PL/SQL scripts we're after and not shell scripts as this would free us from the OS constraints.
    We have to drop the links due to security. Any idea on o

Maybe you are looking for