Why database link can't work?!

I have two machines: One with Oracle 8.1.5 Enterprise on NT
(Login user is test1/test1@nt),
the other with Oracle 8.1.5 standard edition on ScoUnixware 7.1.1
(Login user is test2/test2@unix).
I created a table named aa on NT, a table named bb on Unix.
Then, I created two database link:
connect test1/test1@nt;
create public database link link2
connect to test2 identified by test2 using 'unix';
connect test2/test2@unix;
create public database link link1
connect to test1 identified by test1 using 'nt';
After I successfully created two database links.
I run the following SQL script:
connect test1/test1@nt;
desc bb@link2
(This SQL return error:
ORA-02085: database link link2 connect to ora2
(ora2 is SID under unix)
connect test2/test2@unix;
desc aa@link1
(This SQL return correct result.)
Why?!
null

This does not appear to be related to sql server, so posting to an access forum would likely be more effective.

Similar Messages

  • Why badi HRPAD00INFTY can't work in t-code PTMW?

    hi:
    why badi HRPAD00INFTY can't work in t-code PTMW? if I want to do enhancement about PT infty in PTMW,what should i do?

    Please refer to help document for BAPI:HRPAD00INFTY which allows you to react to specific events in Personnel Administration. If you need logic in TMW, implement BADI  PT_BLP_USER. Further information can be found in section 6.a of SAP Note 447097.
    Regards
    Chetan

  • Why dbms_metadata.get_ddl can not work for db link?

    db: 10.2.4
    os: RH linux 5
    our problem is that we can not get ddl from dbms_metadata.get_ddl for database link, however the db link does exist here as below.
    SQL> select * from dba_db_links where owner='XXRPTH';
    OWNER DB_LINK USERNAME HOST CREATED
    XXR TO_DOPDB.XXR.COM TEST db_opdb 18-FEB-08
    XXR XXRPTH_OPDBC.XXR.COM TEST db_opdb 15-JUL-08
    XXR XXRPTH_BLIS.XXR.COM BLIS dbls 02-JUN-08
    SQL> select dbms_metadata.get_ddl('DB_LINK','XXRPTH_OPDBC.XXR.COM','XXR') from dual;
    ERROR:
    ORA-31603: object "XXRPTH_OPDBC.XXR.COM" of type DB_LINK not found in schema "XXR"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA", line 2806
    ORA-06512: at "SYS.DBMS_METADATA", line 4333
    ORA-06512: at line 1
    appreciate for any guides
    thanks

    I ran into this in a slightly different form, I can't remember all the rules and details, but to work around it I had to specify a fake name appendage in the db link creation in order to keep it from automatically appending the global domain.
    Something like
    create database link abcdef.remotealias connect to ... using 'remotealias'
    rather than
    create database link abcdef connect to... using 'remotealias'
    At least I think it was fake, I was flopping around trying things until I got it to work, and I wound up making it the same as the tnsnames alias. I think I decided I didn't have to, but left it as the lesser of two confusions, and was miffed that the creation scripts I had been using for years suddenly had to be fixed. Yeah, it was my own damned fault, but I still think the way this works is crazy. Now hopefully someone will explain this simply so I look foolish.

  • Why my PermissionsCommand can not work?

    Thers is a SAP standard command named "permissions" that you can find in "System Admin>System configuration>content management>user interface>commands".It is drived from the java class "com.sapportals.wcm.rendering.uicommand.cm.UIPermissionsCommand".
    I download the java class and decompile into java file.In netweaver development studio,I create a new project and copy the java code into a new class of the project and deploy it into my portal.In portal I link the class to a command named "permisssiontest",but unlucky the command doesnot work.
    Why my permission command can not work?

    Hi Shi,
        Could you give me more details about this issue ? After deploy, have you created a new command and assign it a group command in a layout set.
       Here:
       https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Knowledge%20Management%20and%20Collaboration%20Developers%20Guide.html
       You can find this example: SimpleOneStepScreenFlow. You can use it as template.
       We had to write a new permission command and it worked fine.
    Patricio.

  • OWB-Location for Sybase is defined through database link but not working.

    Hi,
    HS details are configured and database link from oracle to sybase database is working fine. In OWB, table list of sybase database is also displayed. Location defined for sybase database through connector which refers to database link created from oracle to sybase. While defining location on clicking of "Test" it gives result as successful. But when validation program is run for that location, it gives error that validation failed, specify correct host name, port number etc.. now, i am not able to solve this as database link is working fine and it is displaying list of table from sybase database. All the heterogeneous settings are done. I tried but sybase database doesn't allow direct connectivity so i define the location using connector which points to database link. Is there any thing missing in the setting of HS and do sybase allow connectivity direct from owb ?
    Please help.
    (If problem is not clear, please spare time to ask a question, i will reply immediately.)
    With Regards,
    Amit Shah.

    Amit - did you get anywhere on this?

  • Why Graphics.drawImage() can't work?

    Hi Veterans,
    I met some problems when I create an image by calling the Graphics.drawImage() method. Firstly, I created an off-screen image by calling the method frame.createImage(800, 640), then I was drawing some graphical elements on the the graphics acquired from the offscreen image, like drawString(), drawLine. And the most important step is as follows, I want to append another image from the file system to the current one by calling drawImage(Image img, int x, int y, ImageObserver frame), but it can't work, I got the appended image by calling Toolkit.getDefaultToolkit().createImage("D:\\abc.gif"). But I am not sure if it is a correct way to get an image from the file system. After that, I will use a 3rd party utitliy to generate new gif image. But when I view the new generated image, it only include the grahpical elements I drew by drawString(), drawLine, and the drawImage() seems can't work. Why?
    I post the code snippet for reference.
    Any help is appreciated!
                   frame=new Frame();
                   frame.addNotify();
                   Image offscreen = frame.createImage(800, 800);
                   g = (Graphics2D) offscreen.getGraphics();
                   g.setFont(new Font("Dialog",Font.PLAIN,12));
                   g.drawString("Owner ID:",10,10);
                   g.drawString("2238",90,10);
                   g.drawString("Order No.:",10,40);
                   Image image = Toolkit.getDefaultToolkit().createImage("D:\\barcode.gif");
                   System.out.println("[Image Width:] " + image.getWidth(frame)); //the output is -1, why?
    g.drawImage(image, 0, 0, frame); //seems can't work

    This isn't right. The Toolkit returned by getDefaultToolkit has an implementation for all these methods. The issue here is that you are calling getWidth on the Image before the Image has been loaded from your gif file. What you need to do is to call getWidth(ImageObserver) and then, if the width comes back as -1 wait for the ImageObserver to notify you that it has loaded the width attribute of the image. Take a look at
    http://java.sun.com/docs/books/tutorial/uiswing/painting/loadingImages.html
    Huw

  • Why browser link dashboard can't work on enable SSL in localhost ?

    Hi there developer
    I need to wrok on local host with enable SSL
    but when I enable SSL browser link can't working and I don't have it's option like as inspect mode and design mode any more .
    Help me if it has a way to fix it on enable SSL mode in localhost ?
    Thanks 
    Great Regards :
    Raha
    whit the best regard : Raha

    Unfortunately your post is off topic here, in the MSDN Subscriptions feedback forum, because it is not feedback regarding the MSDN Subscription. This is a standard response I’ve written up in advance to help many people (thousands, really.) who
    happen to post their question in my forum, but please don’t ignore it.  The links provided below I’ve collected to help with many issues we’ve seen.
    For technical issues with Microsoft products that you would run into as an end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products.   Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an IT professional (like more technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the MSDN Subscription, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots of the issue
    (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really have no idea where to post this question, then you shouldn’t have posted here, because we have a forum just for you!  It’s called the ‘Where is the forum for…?’ forum and its here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Please review the topic of the forum you’re posting in before posting your question.  Moving your post to the off topic forum.
    Thanks, Mike
    MSDN and TechNet Subscriptions Support <br/> Read the Subscriptions <a href="http://blogs.msdn.com/msdnsubscriptions">Blog! </a>

  • 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.

  • ORA-00022 with Database Link and Trigger

    Hello altogether,
    I got a very strange behaviour with my oracle 10.2.
    I have two nets N1 and N2, where N1 can access the servers in N2, but not the other way round. In both nets I have an Oracle database running (D1 and D2).
    In N1 I calculate some data, which must be replicated to the database in N2. I do this by using triggers on my tables in database D1 copying the inserted or changed data to D2 by using a shared public database link.
    This works fine most of the time. But sometimes I get the following error:
    ERROR [STDERR] Caused by: java.sql.SQLException: ORA-02068: following severe error from D2
    ORA-00022: invalid session ID; access denied
    ORA-06512: at "CUSTOMER", line 13
    ORA-04088: error during execution of trigger 'CUSTOMER'
    When I use the database links manually, they work.
    Any idea?
    Thank you!!
    Daniel

    The ORA-02068 message might be important
    02068, 00000, "following severe error from %s%s"
    // *Cause: A severe error (disconnect, fatal Oracle error) received from
    //         the indicated database link.  See following error text.
    // *Action: Contact the remote system administrator.Have you searched Oracle support for any bugs associated with the ORA-02068?
    Was the remote session killed, the remote database changed to restricted session, or bounced?
    I take it the distributed session is created using a dedicated session and not shared server?
    HTH -- Mark D Powell --

  • Unable to access table even after creating Database link

    Hi
    I have created a data base link.It was created properly.
    The Syantax that I have used is follows:
    create database link X_link connect to User1 identified by User1 using 'Other_Database'
    And on running the query:
    select count(*) from table1@X_link
    I am getting the error as follows:
    TNS could not resolve the connect identifier specified... TNS: could not resolve the connect identifier specified.
    Please tell me where is the problem?
    Thanks in Advance

    Your database link does not work because the entry you used does not exist in the tnsnames.ora in the database $ORACLE_HOME.
    Login to the database server, set the environment, and try to tnsping the entry you used for the database link, then fix the tnsnames.ora file (probably in $ORACLE_HOME/network/admin)
    You can test a database link using :-
    select sysdate from dual@link;

  • Clones and database links

    Hi,
    I have generally found that after an instance (E-Business Suite) is cloned, the database links do not work in the cloned instance, and have to be recreated.
    Is there a reason why the database links do not work, as the target instance (in the db link) and its credentials remain the same?
    Thanks
    Jai

    Hi Carlo,
    I am not the DBA, so will not be able to answer any of your questions.
    I am in the Development team and just found it odd that a DB link needs to be re-created after a clone, even though all the information remains the same. The DBA team was not able answer my question - they just said that it is a step that needs to be done. I do not know how the tnsnames entries look, but I assume that is somehow having an impact as mentioned in the prior posts.
    Thanks
    Jai

  • Itunes can't work because of old bonjour??

    i don't know why my itunes can't work
    sometimes it can, sometimes it can't
    i keep install and uninstall itunes almost everyday
    i tried to uninstall itunes before i install the new one, but i can't get rid of Bonjour. i remove all the programs and files as the Apple's instructions, but i can't remove the Bonjour folder.
    "mdnsNSP.dll" is the only thing left
    i tried to delete "mdnsNSP.dll", but everytime it says that "mdnsNSP.dll" is being used. then i opened the Task Manager, i can't find the name. so i can't either end the process or delete it.
    (i wonder if there's something wrong with my computer. virus?)
    *please help me !!! i need music=(*

    http://docs.info.apple.com/article.html?artnum=304424

  • PDF and MSWord links don't work once published

    Help,
    I have created a four module course and published it using aggregate, it looks great except none of the links to the pdf or msword docs work.  I have tried several suggestions, but nothing works when the course is launched on another computer.  I get a path error when you click on the link.
    Anyone have a helpful suggestion on how to get these to work. 
    One other note, when I go to publish the document Adobe tells me that I need to export the files...any idea how?
    tks.

    Adobe Captivate will show this warning message about needing to export the files any time that it detects you have linked to another file or document that is not one of those it normally exports automatically at publish time.  It's really just reminding you that it's YOUR job to ensure that the files you are linking to are going to be in the right place when the published content is accessed by end users.
    The best option is just to manually copy the files (in your case PDF etc) into the same publish folder location as the HTM and SWF files that Captivate creates.  Then all you need to use as a relative file path is the name of the file itself.
    One thing to check as to why the links are not working is that you have Flash Global Security set up to trust the publish folder location.  Alternatively, upload your content to a web server and view it via a HTTP URL link.  That usually means that Flash Global Security won't be an issue.

  • Database Link :variable substitution

    Hi.
    The application I have in mind will be used to monitor various databases, so I'm planning to use database links from a single database to reach the rest the rest.
    The user will come in select a DB from a drop down and that will set an application item and a generic variable with the appropriate database link value.
    I've noted various threads which highlight an issue with the database link variable not working in a select so:
    select * from emp@:P1_DBLINK says the database link is expected ...
    The most common solution seems to be:
    declare
    l_sql varchar2(2000);
    begin
    l_sql := 'select * from emp@' || :P1_DBLINK ;
    return l_sql;
    end;
    My problem is that I have a huge number of large complex SQL's that I wish to use which have formats and include a large number of ' characters. (which are tricky to set in the l_sql string)
    Assigning each bit of all these SQL's into a variable will take me for ever.
    Has there been any other solutions found to this problem?
    Here's hoping and thanks in advance

    jensotn,
    If you're using HTML DB on Oracle 10g, this will help:
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:::::P54_ID:1242
    Thanks,
    - Scott -

  • When I email a newsletter as a pdf, the links don't work

    I am creating a newsletter that I want to email out and I have some text linking to webpages. However, when I send it as a pdf, the links don't work. Do I need to send it as a Word document? I don't want to have to send a document that large. Is there anyway to keep my file size small (ie pdf) and have the links work?
    Thanks

    Ah that is different.
    It may be you are just seeing a preview of the pdf in the email, which is why the link is not working.
    I would certainly not rely on people seeing even that. Most PC users do not see pdfs embedded in their email, just an attachment. Even Mac users see various results depending on how many pages the pdf contains.
    I am working on newsletter emails for a client right now and the lack of standards and inconsistent results in email clients is extremely frustrating.
    Peter

Maybe you are looking for