Db link creation in same db.

I am trying to create dblink in the same db between schemas . One schema name is clidev2 and other is dbmig. But when i am creating getting below error.
Please some one tell me that how can i create db links between the scheams .I have to create dbling from clidev2 to dbming and dbming to clidev2
SQL> create public database link BFIP.BIGFOOTINTERACTIVE.COM connect to clidev2 identified by clidev2 using bfip;
create public database link BFIP.BIGFOOTINTERACTIVE.COM connect to clidev2 identified by clidev2 using bfip
ERROR at line 1:
ORA-02082: a loopback database link must have a connection qualifier

I would like to create a loopback link having the same
name as the ORACLE_SID. Is this possible?
Reason: We want to be able to move code between our
development, QA and production instances without changing
the SQL in any way.
In particular some of our materialized views fetch data between
instances using dblinks. I hope to avoid having to edit any
materialized view during development and testing.
We have GLOBAL_NAMES set to FALSE
On our OMCETLP instance, I have found that this fails
with an ORA-02082 error:
create public database link OMCETLP
connect to user identified by <pw>
using 'OMCETLP'
but that this succeeds
create public database link ETLP
connect to user identified by <pw>
using 'OMCETLP'
Also, we cloned our Production instance to create a QA instance and found that
the db links on Production which pointed to QA still worked(!) on QA as loopback
links.
Obviously I'm NOT going to rely upon this especially since Oracle doesn't
support it. But I would like to understand it.
-- Chris Curzon

Similar Messages

  • Database link to the same database

    I'm trying to create a database link to the same database.
    It doesn't seem to be working ...
    basically, the target system will have 2 separate database instances.
    I need to emulate this in a single instance database (actually, I don't want to try running 2 oracle instances on my laptop...).
    so I want to do select * from fred@MYOTHERDB
    when I try and create the alias it succeeds, but then selects don't work.
    Lets say my current logon / schema is JOHN (in ORCL) and the other SCHEMA (in ORCL) is JIM
    I tried
    create public database link MYOTHERDB connect to JIM identified by "Password";
    creation worked, couldn't access it.
    Thanks in advance
    Iain

    The machine with the database has tnsnames.ora as
    # tnsnames.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    INVMAN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xplaptop)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xplaptop.mshome.net)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    and the local (TOAD) machine has
    # TNSNAMES.ORA Network Configuration File: S:\Oracle\product\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    INVMAN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = idc-server)(PORT = 1521))
    (CONNECT_DATA =
    (SID = INVMAN)
    INVMANLAP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xplaptop)(PORT = 1521))
    (CONNECT_DATA =
    (SID = ORCL)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = idc-server)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    Now I've tried this both from TOAD and from iSQL on the machine with the database.
    It's INVMANLAP which I'm using from the TOAD machine, of course!
    I appreciate your help. It has been the only bright spark in a DREADFUL day (among other things the IDC-SERVER mentioned above has a trashed system disk which has taken out email and my main oracle server). And I have to install this system tomorrow!
    Iain

  • Problem in DB Link creation ( Oracle warehouse builder 3i  )

    I am facing a problem in DB Link creation.
    Backend: Oracle 8i Server on my machine
    DW Software: Oracle warehouse builder 3i ( client , repository asistant.....)
    Operating system: Windows NT 4 SERVICE PACK 6
    I wants to use the scott database( default database given by oracle ) as my input source.
    How can I create the DB LINK ( for scott database) ?
    How can I create the DB LINK ( for any other database) ?
    Should I need to add anything in Setting of"ODBC DATASOURCE ADMINISTRATION"
    ==================
    Settings done:
    ==================
    DB Link Name :scott
    Host name
    Host name: my machine's ip address
    port number: 1521
    oracle sid: prashant ( my oracle sid)
    user name:scott
    password:tiger
    ==================
    Gives error:
    ==================
    Testing...
    Failed.
    ORA-02085 Database link %s connects to %s
    *Cause:   a database link connected to a database with a different name.
    The connection is rejected.
    *Action:   create a database link with the same name as the database it
    connects to, or set global_names=false.
    Please change it to false by doing :
    first option:
    Log in the database with DBA privilege and use the command:
    alter system set GLOBAL_NAMES = false
    second option:
    Change the GLOBAL_NAMES to false in database system parameter file, init.ora
    ==================
    Options tried:
    ==================
    1. I tried to change GLOBAL_NAMES = false but still not able to create the DB LINK.
    2. As per suggestion of one the friend
    "A file named "Logon.Properties" under the directory $OWB_HOME/wbapp
    in this file please set the property
    OWBSingleUserLockUsage = false"
    I tried the same but it is still not working.
    How should I proceed further.
    I am expecting URGENT FEEDBACK.
    Reply me on : [email protected]
    From
    Prashant

    I solved the problem.
    Procedure I followed :
    UNINSTALL ORACLE WRAEHOUSE BUILDER SOFTAWARE.
    'GLOBAL_NAMES = FALSE' in init.ora file.
    RESTARTED MY MACHINE.
    INSTALL THE ORACLE WRAEHOUSE BUILDER SOFTAWARE.

  • DB link creation

    Dear
    please explain me the process of database link creation and making entry into tnsnames.ora.
    I have two databases PCDB and IASDB on same server KSPCB.ORG, I want to access the IASDB database from PCDB database.what is the entry that i should make into the tnsnames.ora file before creating the db link.
    I 'll be very thankfull to you if you can write down the process.
    thanks

    hi
    the following script will create a dblink in first database whose name is local and it will be able to connect a database seconddb. you should be able to connect to second db on the first place. Donot forget to set initialization parameter global_names=false before using the dblink.
    create database link LOCAL.WORLD
    connect to SCOTT
    using 'secondDB';
    you will extract data from second db like this.
    select * from scott.emp@secondDB;

  • Can someone please tell me why when I order an Itunes app. , do I always get charged twice for the same thing.  It has happened on two different occasions.  Does it have anything to do with having 2 different ipods linked to the same account?

    Can someone please tell me why when  i order an app on my sons ipod, do I get charged twice for it?   When I tried do report a problem with the charge, it said that I can not get a refund on that item.   This is the second time this has happened to me.   Does it have anything to do with having more then one ipod linked to the same account?   Thanks for any help you can give me!!!

    It has nothing to do with have more than one device using that account.
    After you purchase it once, you redownload it on other devices by the following, not like purchasing a new app.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    If you really got charged twice for purchases the same app twice with the same account contact iTunes again by:
    Apple - Support - iTunes - Contact Us
    Make sure that they are really the same app first.

  • How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0, How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0

    In Lion, the default of pressing a link on a web page, is to open the page in a new tab. In itself, I do like this because this is what I did for 19 out of any 20 links, which I command+clicked in previous Safari versions.
    However, there is a snag to this behaviour. Most (all?) secure site do not like links to be opened in a new tab. For example, when I am doing Web banking, The the linked page doesn’t open in new tab. Rather I get a page telling me my login session is expired. Probably a security measure instituted by my bank.
    I since found out, that a command-click opens lings in the same window. Theoretically that solves the problem, if I would think about this all the time. I don't. Old habits die slowly.
    Is there a terminal command to make links open in same window the default behaviour, as it was in Safari 5.0.

    Hi Eric,
    I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
    Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
    I used a 2 element array going into a four loop
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
    Defining the working director C:\altera\12.1sp1\qprogrammer\bin
    And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
    To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
    Thanks for the interest though
    Best regards John

  • Image map (Open a link in the same place not a new Window)

    Image map (Open a link in the same place not a new Window)
    I'm using image map From KM a made a Image and I put the link like this "documents/images/image.jpg" okay, its works, but when I click on the link open other page, How to open on the same page ???????

    Hi Marcus,
    Try out this link. It may be helpful to you.
    Opening of IView in New Window
    Regards
    gEorgE

  • JEditorPane HTML link in the same page

    Hi,
    I want to show an HTML page in JEditorPane.
    The HTML page have <a> tags that link to a bookmark in
    the same page, but I can�t show this because I get an error
    like this:
    MalformedURL or similiar.
    I try to do somethig like this:
    public void hyperlinkUpdate(HyperlinkEvent ev)
    ...Editor.setPage(ev.getURL());
    or
    ...Editor.setPage(ev.getDescription());
    without results.
    How can I listen for hyperlinksEvents than link in the same page.
    Thanks

    they dont want to see the first report.
    Is there a way in which the Prompts are also display along with the second report?Then create the same prompt on the second report also.
    Cheers
    Nawneet

  • I started with one itunes account for my iphone and ipad, and now have a second ipad linked to the same itunes.  Can I set up a new itunes account for one ipad without losing what has already been downloaded on it?

    I started with one itunes account for my iphone and ipad, and now have a second ipad linked to the same itunes.  Can I set up a new itunes account for one ipad without losing what has already been downloaded on it?  I want to stop my husbands downloads appearing on my ipad, and vice versa.

    A much simpler solution would be to go into Settings > Store and turn off Automatic Downloads

  • If two iPhones are linked to the same Apple ID can the other phone see the iMessages I'm sending, received or both?

    If two iPhones are linked to the same Apple ID can the other phone see the iMessages I'm sending, received or both?

    Yes, if both devices is using the same apple id for imessage.

  • Two iPhones linked to the same Apple ID

    Is there any way to have separate iMessage services for two iPhones linked to the same Apple ID? I share Apple ID with my wife for convenience of buying apps only once and sharing photo and music from one Mac. However, the my iMessages to other people seem to appear on my wife's iPhone.  The phone number is used as a Caller ID.

    Use separate Apple IDs for iMessage (Settings>Messages>Receive At>tap the Apple ID at the top, sign out, sign in with a different ID).  You can still keep the same ID for iCloud (if you want to share contacts, calendars, photostream, etc.) and for store purchases (in Settings>Store).

  • I have an iPhone 4 and an iPod 4th gen linked to the same email address and apple ID. I am trying to set up a new email address for the iPod so a family member can use it but it doesn't want to recognize the new email account. Where am I going wrong?

    I have an iPhone 4 and a 4th gen iPod linked to the same email address and apple ID. I am trying to change the email address on the iPod so a family member can use it but when I do it says it doesn't recognize the email address. Where am I going wrong ? I just want them to be able to iMessage and email without having to use my email address.

    The procedure is Settings>Messages>Send & Receive at>You can be reached by iMessages at>Add another email address. The email address has to be a valid working email address, obviously. Apple should verify the email address and you have to go to the inbox of that email account, read the verification email from Apple and follow the inductions in the email in order to complete the verification. Then you go back to the settings, uncheck your email address and check the new email address to be used as the contact email address.

  • Can I create multiple links to the same file without duplicating file?

    does anyone know if it is possible to create multiple links to the same file using iWeb without the program automatically making multiple copies of that file in the published output? It seems that one file is created for each link.
    Thanks!

    Hi Franz,
    have a look at the second method on this page
    http://alyeska.altervista.org/en/iWeb_Downloads.html
    see if you understand how it works (if you don't, please ask me)
    Regards,
    Cédric

  • HT204053 2 iPhone 5's one Apple ID - Can I have 2 linked to the same itunes account?

    My partner and I use the same itunes account. We have both just upgraded to iPhone 5 and have had the odd problem using the same Apple ID. Can anyone tell me if I can or how to get 2 Apple ID's linked to the same itunes account. If we have two have 2 itunes accounts my partner won't have access to all my music etc.
    Can anyone give me the best course of action?
    Regards

    You can have as many iPhone and other iDevices as you want associated with your iTunes account.

  • How do i turn off the option that sends all the messages i receive to all other linked to the same computer? on this

    how do you turn off the option that sends all the messages i send, when i send them who ever is linked to the same comuter is also getting all the messages. help

    don't share apple id or the email address linked to imessages. see in settings/messages.

Maybe you are looking for

  • Identical code but different in browser

    Using the same code produces slight shifts when moving from page to page.  Any explanation?

  • In which table scripts and smartforms are stored

    in which tables scripts and smartforms are stored eg scripts in tadir.

  • Can't do video calls now

    See your family come together over a free group video call. Flase advertising as video calls are not working in the new 7.0.0.102. Settings are ok but the "Turn on video" button is greyed out. (Using Windows 7 Home Premium)

  • IPhoto burned DVD backup won't work

    Hi, I just installed iLife 09 and decided to do burn a DVD in iPhoto 09 to backup some old photos. I chose a folder full of albums to burn to DVD and selected 'burn' and everything seemed to work fine. But when I load the finished DVD into iphoto 09,

  • Show image at certain points during embedded video?

    Hi all, Just before deployment, we have had a change request :-) I have slides with embedded videos, and these videos pause the slide until the video ends, the moves onto the next slide.  During the videos, we want certain images to appear in the sli