Cant compile proc with OWB created DB Links - appear to loopback ?!!

We're on Oracle 9.2 with OWB 9.2 and have the following scenario:
We have two databases: DB1, DB2
Both databases have a schema STAGING
Both schemas have a table ADDRESS.
The ADDRESS table on DB1 has columns CITY, STATE, ZIP while the ADDRESS table on DB2 just has CITY, STATE
We have a stored proc on DB2 that is trying to select the ZIP field on the DB1 across a database link called DB1@SERVER1. The exact code is:
select zip into v_zip from address@db1@server1;
The compiler fails because with the error that ZIP does not exist. If I change the column to STATE it compiles successfully, leading me to believe the compiler is verifying the code against the local db and not across the link....
Furthermore, if I run the offending sql via a sqlplus it crosses the link and works!... it appears to only be affecting compile time.
I believe this has something to do with loopback links, but I haven't been able to solve it...
Can anyone explain this behavior?!
Any help greatly appreciated...
-D

Hello, Dan
Actually I don’t understand why OWB generates so strange name for db link. After your post I’ve revisited my projects to see if there is any inconsistencies in generated db link name within mapping PLSQL code and db link name itself.
There is one at least for me – in PLSQL db link’s name is like “<db_instance_name>”@“owb_location_name”, but in DBLINKS db link name looks like:
db_instance_name.db_domain@owb_location_name. I must say it’s quite a trick for me how Oracle matches this two names, considering quotes and db_domain. Anyway, it works fine for me.
By the way, two databases of yours are result of “cloning” one of them? If you are sure that real symptom is db link loop back – look at Net configurations.
Try to have a look at DBLINKS – maybe you’ll find some mismatches. As a try – drop created db links and try to redeploy them, make additional tests via sqlplus, verify db_domain for both databases, check sqlnet.ora/tnsnames.ora on both databases.
Serhit.

Similar Messages

  • Cant compile ProC code on linux

    I try to do a
    make -f demo_proc.mk sample1
    to test the sample files and I get the following error:
    unable to open include file stddef.h
    and then a whole bunch of other include files.
    Any ideas whats going on?

    hello and excuse my english.
    ok you have diferents errors.
    first. When you compliling like superuser you didn't find the libclntsh..
    first error.*****
    ok .. this is a dinamic library needed from your proc code. you dont find it problably because the enviroment for root hasn4t the correct variables.
    this library is found using the LD_LIBRARY_PATH and this variable usually allocate this path '$ORACLACLE_HOME/lib:/usr/dt/lib'
    Second ****
    make -f demo_proc.mk sample1
    unable to open include file stddef.h
    i had the same problem and I can correct it configuring the pcscfg.cfg file in $ORACLE_HOME/precomp/admin
    this is the content of my file:
    sys_include=(/**/precomp/public,/usr/include,/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include,/usr/include,./usr/src/linux-2.2.14/include/linux/stddef.h)
    include=(/**/precomp/public)
    include=/**/precomp/hdrs
    include=/**/tpcc2x_2/src
    include=/**/precomp/include
    include=/**/oracore/include
    include=/**/oracore/public
    include=/**/rdbms/include
    include=/**/rdbms/public
    include=/**/rdbms/demo
    include=/**/nlsrtl/include
    include=/**/nlsrtl/public
    include=/**/network_src/include
    include=/**/network_src/public
    include=/**/network/include
    include=/**/network/public
    include=/**/plsql/public
    ltype=short
    you must replace the '**' with the path to ORACLE_HOME. And other path if your linux is diferent form mine (redhat 6.2)
    when I did that, the command
    make -f demo_proc.mk sample1 found all libraries but....
    Now I have another problem when I launch the command. this report me a lot of Syntax errors find in the libraries in /usr/include
    So I have one problem too. If you havent this error,please send me one email with your linux version or another ideas.
    thatks

  • OWB 10g -- Can't Create Database Links for Data Source and Target

    We installed OWB 10g server components on a Unix box running Oracle 10g (R2) database. The Designer Repository is in one instance. The Runtime Repository and the Target are in another instance. The OWB client component was installed on Windows XP. We create a data source module and a target module in OWB. The data source is on another Unix box running Oracle 9i (R2) database. We try to create database links for data source module and target module, respective. But when we created and tested the DB links, the DB links were failed.
    For the database link of data source, we got the following error message:
    Testing...
    Failed.
    SQL Exception
    Repository Error:SQL Exception..
    Class Name: CacheMediator.
    Method Name: getDDEntryFromDB.
    Repository Error Message: ORA-12170: TNS:Connect timeout occurred
    For the database link of target , we got the following error message:
    Testing...
    Failed.
    API2215: Cannot create database link. Please contact Oracle Support with the stack trace and the details on how to reproduce it.
    Repository Error:SQL Exception..
    Class Name: oracle.wh.ui.integrator.common.RepositoryUtils.
    Method Name: createDBLink(String, String, String, String).
    Method Name: -1.
    Repository Error Message: java.sql.SQLException: ORA-00933: SQL command not properly ended.
    However, we could connect to the two databases (data source and target) using the OWB’s utility SQL Plus.
    Please help us to solve this problem. Thank you.

    As I said prior the database link creation should work from within the OWB client (also in 10).
    Regarding your issue when deploying, have you registered your target locations in the deployment manager and did you first deployed your target location's connector which points out to your source?
    I myself had some problems with database link creations in the past and I can't remember exactly what they were but it had something to do with
    - the use of abnormal characters in the database link name
    - long domain name used in as names.default_domain in my sqlnet.ora file
    What you can do is check the actual script created when deploying the database link so see if there's something strange and check if executing the created script manually works or not.

  • OWB can not create database link

    Hello!
    We use OWB 10.1. We are unable to create database link in the owb as a source for metadata information. The database user we use to connect to the owb have got the right to create database links and the same user can create database links outside the owb. we get the error message
    Testing...
    Failed.
    API2215: Cannot create database link. Please contact Oracle Support with the stack trace and the details on how to reproduce it.
    the database user is not the owner of the repository. if we use the repository owner to create the database link it works.
    it is also impossible to use a database link, that is created outside the owb, if we use an user that is not the repository owner.
    the error message is:
    java.sql.SQLException: ORA-02019: connection description for remote database not found
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:158) ....
    with the owner everything works fine.
    Regards Alex

    hi,
    If public dblink is a problem then u can create the table with PUBLIC SYNONYM and create a synonym of the table in ur DB so that u can access the table in ur DB and still make I/U/D in the table in the other DB. We just have to grant previlege for the synonym created for DML statements.
    Regards
    Bharath

  • Creating a Link to a Folder on a Server with Sharepoint Foundation 2013

    Hi All,
    I am looking to create a link from a page on my Sharepoint site to a folder on one of the companies servers. I have had a lot of trouble with this.
    Is there a piece of code I can use to do this?
    Thanks in advance.

    Ahh. You are using SharePoint Foundation. Yes in that case you would not have that feature.
    That makes your requirements bit tricky given I verified creating this link without Publishing feature activated and it did not work and hence I tend to believe that it would not work in your case without that feature.
    What you can try is drop the page viewer web part and try configuring it to open your file share and see if that helps. I do not have Foundation otherwise I would have verified this before posting but give it a try and see if it helps.
    http://neelb.wordpress.com/2011/09/16/displaying-a-web-site-or-file-or-a-folder-in-the-page-viewer-web-part/
    Amit

  • Creating a link to a Multibyte file with PDF 1.4

    I am trying to create a link to a file that contains multibyte characters (specifically Japanese) - unfortunately, I need to conform to the PDF 1.4 standard (I can make things work fine using PDF 1.7 and /UF).
    The 1.7 standard says that as of PDF 1.2, a file specification can contain multibyte character codes if you represent them in hexadecimal format. I cannot get this to work, and wonder if someone has any insight into why this might be.
    My multibyte file spec is UTF-8 encoded, and this is how I write it (in hex) to the document (without thr UTF-8 BOM). When I later click on that link, I get an error that the specified document does not exist - the part of the filespec that is English characters are displayed correctly, but the Japanese characters show up incorrectly.
    Does Acrobat expect these characters to be UTF-8 encoded, or otherwise? I've tried prepended the UTF-8 BOM, but that didn't make a difference. Do I need to UTF-16BE encode them (like with /UF)?
    Additional info: I've tried using Acrobat 5 to create a new PDF and inserted a link to a file whose name contains Japanese characters - when clicking on the link in this, I also get the 'file does not exist' error. Also, looking in the PDF, the filespec is NOT hex encoded, and the Japanese characters have been replaced by ???.

    Hmm... so, what does it mean when the 1.7 spec says 'In PDF 1.2 or higher, a file specification may contain multiple-byte character
    codes, represented in hexadecimal form between angle brackets (< and >).'? If Acrobat 5 supports PDF 1.4, I would have thought this would mean that Acrobat 5 would support multibyte character codes...
    I would guess that this puts the final nail in the coffin of creating links to filenames with non Roman characters from Acrobat 5.
    Just so I can report this upwards, I see that you are an Adobe employee - are you a support person?

  • Creating a link with the Link Tool

    I used the Link Tool to create a Link in my pdf file.  The link is set to open a website file.  I created 2, one with just a little text and the other was a picture that was 200 X 300 px.  When I follow the links, each is opening a full web page.  I expected that with the Text link because I put the text on an html page but the picture I sized to the 200X300 but that opened a full web page also.  When setting up the link to the Web File I did not see an additional settings as far as how to open the web page such as _parent or _child etc.  I believe it is normally the Target.
    Does anyone know how I would either do this with the link tool or know of a better way to do it overall?
    Thanks
    Bob

    Hi,
    You may be confusing HTML markup for links with PDF links.
    In PDF, HTML markup is not applicable.
    So "target_xxxx" or any other HTML 'stuff' cannot be used.
    For the graphic file (JPG, PNG, whatever), make a web page file that is configured to display the graphic file in a manner you desire.
    The web link you set in the PDF, with Acrobat, will result in this web page file opening.
    This is the file that will control how the graphic is rendered.
    If needed, a resource for HTML "how to" is W3 Schools.
    Be well...

  • How to create a linked data source with document libraries based on the same template?

    I use SharePoint Foundation 2013, SP Designer and Visual Studio 2013 to my needs. But there are several things which i don't get.
    I have a number of libraries which use the same template. I want to create a linked data source, that would contain them all, and if I add a library based on this template, the library would be added to the data sorce. Is it possible?
    I tried creating linked data souces, but the view that it brings by default is limited(no sorting, etc.). How can it be modified?

    I am planning to do my project on Linux with J2EE,Oracle technologies.You don't need to set up a DSN. Just use a JDBC connect string such as jdbc:oracle:thin:@localhost:1521:xe
    ~Jer

  • Problem to create a link with parameters using a PL/SQL function body

    Hi everybody,
    I need some help to create a link on a SELECT statement.
    I have a region report with type "PL/SQL function body return SQL query".
    I would like to use a link using HTML tag <a href>.
    I know how to do the link, but I don't know to pass a parameters in <a href> statement.
    Always I tried it doesn't work well.
    My PL/SQL anonimous block is, (just with link) :
    DECLARE
    q vARCHAR2(4000);
    BEGIN
    q:='select     "INDICADOR"."NRINDICADOR" as "NRINDICADOR",';
    q:=q||'     "INDICADOR"."DSINDICADOR" as "DSINDICADOR",';
    q:=q||'''<span style="font-weight:bold;">';
    q:=q||'''||TO_CHAR("TOTAL_INDICADOR"."VL_INDICADOR", ''999G999G999G990D00'')||''</span>''';
    q:=q||' as "VL_INDICADOR",';
    q:=q||'     "TOTAL_INDICADOR"."VL_META" as "VL_META" ';
    q:=q||' from     "TOTAL_INDICADOR" "TOTAL_INDICADOR",';
    q:=q||'     "INDICADOR" "INDICADOR" ';
    q:=q||' where "INDICADOR"."NRINDICADOR"="TOTAL_INDICADOR"."NR_INDICADOR"';
    RETURN q;
    END;
    Thanks for any help,
    Alessandra

    Your code is in a default value for an item, right?
    You need to make sure :P33_YEAR is not null and handle the error in the PL/SQL if it is.
    How is P33_YEAR populated? do you pass it in? check to see if it is making it there..
    Message was edited by:
    Bill Carlisle

  • Creating a Linked Report in SC 2012 - Operations Manager fails with Error

    Hello everyone,
    I was trying to create a linked report based on an availability report recently. I found Emre Guclu's scom linked report creation guide here:
    http://blogs.technet.com/b/emreguclu/archive/2011/10/13/using-linked-reports-in-scom-to-create-custom-availability-reports-for-specified-monitors.aspx
    I go to SSRS web console and select a report (Which is Microsoft.SystemCenter.DataWarehouse.Availability in Microsoft.SystemCenter.Datawarehouse.Reports), select "Create a Linked Report" from context menu, select another location for storing the
    report just like on this guide but i get an error rsWrongItemType with exact text:
    "The operation you are attempting on item ' Microsoft.SystemCenter.Datawarehouse.Reports/ Microsoft.SystemCenter.Datawarehouse.Availability' is not allowed for this item type. rsWrongItemType"
    Does anyone know why is this error happening and better how to fix this?
    Below is the screenshot of SSRS.

    Hi,
    Please check the report path you have set, the location must specify the full report path, such as
    /custom report folder/MyReport.
    Alex Zhao
    TechNet Community Support

  • How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can"t find in any of the tutorials.

    How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can't find in any of the tutorials.

    The steps would be :
    - Add files from file menu > select pdf > add to site
    - Select the content (rectangle,text etc) and click on hyperlink dropdown > it should show you the added files list
    - Select the file you want to link
    Thanks,
    Sanjit

  • 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

  • When i use view as list in finder and open a folder with many files i cant right click with mouse without selecting or highlighting a file....i just want to right click to paste an item or create a new folder...what can i do?

    When i use view as list in finder and open a folder with many files i cant right click with mouse without selecting or highlighting a file....i just want to right click to paste an item or create a new folder...what can i do?

    Thx for that im gonna try it....but is there a way to do it without using toolbar or cmd-c...? i mean using only the mouse?why does it have to highlight the file even though i click a bit next to it....?using icon view i can right click next to the folder and i wont have a problem but with list view that i prefer using it will highlight the whole row.....and i dont find free space to right click cause i got many files

  • How to create a link with an anchor outside of the edge animation ?

    Hello
    I want to know if it's possible to create a link with an anchor that is placed outside of the edge animation , on the same page ?
    Tanks

    Is it... very likely..., javascript is javascript...Has anyone yet? Maybe i haven't looked.
    You only need 3 files... not including "Edge Includes" and "External Art Assets"
    NAME_edge.js
    NAME_edgeActions.js
    NAME_edgePreload.js
    The advantage of Edge being that u have the "power" to do whatever you like, but as with new things it takes awhile to figure it all out.

  • Problem Creating Partner Link for Adapter Integrating with Tuxedo using JCA

    Hi All,
    This is the first time that I am working on integration tools. I will explain in brief the problem.
    There will be a legacy system (Tuxedo) running which connect to legacy database for requests. I am able to connect to that legacy system using Attunity Studio for getting the response back. Which is working fine.
    Now I want that to integrate with BPEL PM 10.1.2 using JCA. For this I followed this URL (http://www.oracle.com/technology/tech/java/oc4j/904/how_to/oc4j-jca-tux/onjava-jca.html). What happens here is, a simple servlet invokes a Session Bean that interacts the Attunity Server using the JCA. For that I am using oc4j container of BPEL PM 10.1.2. I could able to work it fine.
    For working with BPEL, I have created synchronous process, when try to create Partner link using Adapter service from WSIL browser, it is not coming in.
    Am I missed any important configuration at BPEL PM end.
    For doing this a followed the "tutorial 2" @ http://www.oracle.com/technology/products/integration/adapters/dev_support.html
    In exact way, above provided tutorial 2 PDF, I failed at step "Configuring a BPEL Service to invoke the above Adapter Service" on page 11.
    Your help is highly appreciated
    Thanks
    Venkata

    Something to note. I tried adding the same BPEL services as partner links to a new application and new project on two other developer's workstations, and the creation of the partner links were successful.

Maybe you are looking for

  • Calendars not showing on iPad

    I'm trying to set up a shared Gmail calendar on a non tehcy friend's iPad - problem is he's 200 miles away so having to do this over the phone... If he enters his Gmail account in Mail, Contacts, Calendars and turns everything off except the calendar

  • Creating the XML file from Resultset object

    I need that code that does the thing

  • Messages problem with ios 6

    Hi I have problem with messages related to bank or groups or unviersity . I can see the preview of last message but when I enter for example Bank I can't see any Previous messages . Some messages contain imp information . Can u fix this problem soon

  • ABAP List - Printing problem

    Hi,    We have a Z format Z_65_1023 assigned to the LOCL printer.  When the output is displayed using the SPOOL the format is fine.  But when the output is sent to the printer, the SAPLPD window has the following message: SAPLPD: job xxx sent to prin

  • Pin a folder in SSD Tier?

    Can pinning happen at the folder level?  Instead of just pinning one file at a time to an SSD tier, would I be able to pin a folder so that any file inside of the folder would inherit the pinning to the SSD?