Create databse link

hi all,
i want to get the data from a remote oracle database table into my local oracle database. i heard of the "database link" but unable to interpret it
can you help me how to get the data from tat remote db table..
thanks.

CREATE DATABASE LINK "<REMOTE_DB_NAME>" CONNECT TO <REMOTE_USERNAME> identified by <REMOTE_PASSWORD> USING '<REMOTE_DB_NAME>';
Select * from <REMOTE_TABLE_NAME>@<REMOTE_DB_NAME>;
Create <LOCAL_TABLE_NAME> as select * from <REMOTE_TABLE_NAME>@<REMOTE_DB_NAME>;
Desc <LOCAL_TABLE_NAME>
Desc <REMOTE_TABLE_NAME>@<REMOTE_DB_NAME>
Should be the same for both Local and Remote Database
Select * from <LOCAL_TABLE_NAME>;

Similar Messages

  • Databse link creation from 9i to 10g

    hii all
    i just want to create databse link as below"create databse link linkname connect to remoteuserid identified by remote password using "........"
    thats where iam getting confused what should we place if my tnsnames looks like "orcl.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ip address)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    well after puting db name as using in statement i am getin error when i execute any table in remote db.
    1.tns -nolistener
    2.ORA-12545-Connect failed becos target host or object does not exit
    above r some of errors i get while iam trying to create databse link
    please put on some thoughts on this kindly..
    thanks

    copy, paste and post here for db link creation and the error returned. you can replace the username/password/host with dummy ones.
    Sean

  • Databse link not work

    I have created database link to access remote data.
    Also added TNSNAME entry for remote databse into tnsname.ora
    but while firing select query using DB link gives error
    ORA-12154: TNS:could not resolve the connect identifier specified
    Plz let me know hw to solve this problem
    Thanks in adavance

    Did you add the entry to the tnsnames file on your client machine? Or the tnsnames file on the database server? A database link will use the TNS configuration of the database server, not your client.
    Justin

  • 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

  • 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

  • Is it possible to create a link on the content of a text annotation??

    Is it possible to create a link on the content of a annotation??? Like the content of an annotation is some notes as well as a link...
    content -
    this is my first annotation(notes)
    http://www.google.co.in/(link)
    is it possible to create a link for the url given in the content of an annotation??? On click on the url...it should get opened...
    please reply its really urgent....

    How/where do you want to accomplish it?
    Within the document? Using Acrobat? Using another application?
    Using Acrobat within the document would be possible using Acrobat JavaScript. You can access the annotation objects of your document, and you then can evaluate the properties of each of these objects. Have a closer look at the Annotation Object section in the Acrobat JavaScript documentation.
    You will look for the contents property, and evaluate its content. When you have found something looking like a URL, you can create a link (using the rect property of the annotation), and you have what you want; you might then think to destroy the annotation, as it may overlay the link.
    Hope this can help.
    Max Wyss.

  • Create a link to movies stores on external hard drive for itunes

    I seem to have an issue with creating a link to movies stored on my external top be played on itunes. Im NOT trying to move my itunes music library. I had to resetablish my links. Previously I had all of my movies stored on an external, would just highlight and drag to Itunes movies, an icon and a shortcut would quickly copy ans all was good. Now when I drag the movie icon to itunes it begins a "copying" process that takes a very long time.
    ??

    What I do is this:
    I keep the 'Keep iTunes folder Organised' option check (on). So that When I buy music or rip a CD, the music goes into my iTunes folder on my iMac's internal drive (in my home folder - default location).
    However, I have elected to keep all my movies on an external drive, effectively meaning that I only want iTunes to partially organise my folder.
    How do I get around this?
    Simple. To add a movie to iTunes from my external drive, I simply OPTION-DRAG the file into iTunes. ie. select the file in the Finder, hold down the option key and drag it onto iTunes' open window. It will add the movie to the library, but WILL NOT copy it to the iTunes folder - the file will be referenced from its original location.
    Simples.

  • Creating a link to specific view in a submitted InfoPath form via C#

     
    Hello,
    I have an InfoPath form that is submitted by a user, then the c# executes logic on a button click which is to send approver a link to a approver view within the submitted form(my company is
    not allowing use of Work flows).
    I have a problem creating this link namely because SharePoint changes the patter of a string that is used in creating a form name(Username and now() function characters change
    in URL).
    Is there an easy way to reference an url to a view in Infopath form via C#
    Thank you.
    Nemanja
    Nemnaja Sovic

    Brian,
    You can use the following javascript syntax to open a document on local drive:
    xfa.host.gotoURL("file:///C:/yourdocument.pdf",1);

  • Creating a link to external website

    Hello all,
    Could anyone confirm if its possible to create a link to mobile me gallery without creating a photo page with the mobile me gallery link on it?
    EG: I have the pages: Home, About me, Photos. I would like to link the photos page so it goes directly to my mobile me gallery instead of open the photo page.
    Is this possible?
    Thanks,
    Rob

    Rob ~ Yes, it's possible...
    In your empty Photos page add an HTML Snippet with the following code:
    <script type="text/javascript">
    parent.window.location = "http://gallery.me.com/wintersgrass"; // change this to your own URL
    </script>
    ...Once published, clicking on "Photos" in the navbar will immediately redirect to your MobileMe Gallery page. (Thanks to Cyclosaurus for the code).

  • Creating a link to a word doc

    I'm having trouble creating a link to a word doc on my computer.
    I select "enable as hyperlink" and then "Link to file".
    I select the the word doc on my computer. It didn't create a link to the file.
    Hmmmm... then I tried it with a pdf. Still no link.
    Do I need to have a pdf ? The document was created with microsoft word.
    However I also tried it with an old Adobe pdf file.. still no go.
    Any thoughts? I'm using an old version of iWeb 1.1.2
    Thanks.

    arf arf wrote:
    Do I need to have a pdf ?
    No.
    arf arf wrote:
    The document was created with microsoft word.
    That should work too.
    NOTE: Links to files aren't testable within iWeb — they become active when published and viewed in a browser.
    An alternative approach is to post MS Word docs (or PDFs) to the free Posterous where they'll be automatically presented in a convenient viewer, e.g.
    http://dont-panic.posterous.com/pdf-document-example
    ...Then in iWeb set up a simple text or image hyperlink to that particular Posterous blog entry.

  • 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 to a file on a Windows server?

    I am trying to create a link to a file located on a Windows server that I can email to users and they can click on the link and it will open the actual file.
    Here is what I have done so far:
    smb://server/sharedfolder/document.doc
    The user can click on the link but it just opnes up the "sharedfolder" and then you have to find the file you want and then open it and that works.
    I need the link to be able to just open the actual file.
    Is there a way to do this??
    Thanks

    Since it's a file download, there's no reason to add the target="_blank", I'm guessing your file is 404 for some reason which would give you a blank window per the target.
    Make sure the case structure of the file and link are identical. Servers are case sensitive, a server sees CheckIPApp.zip and checkIPApp.zip as totally different files. Your local OS sees them as the same thing so during local testing it will work, when uploaded, it won't.
    Make sure you've loaded the file onto the server at the exact location specified by the link. It should be in a folder called "Zip Files" that resides on the same directory level as the page that the link is on.
    You may also want to normalize your file names. They should be all lower case alpha-numerics without any spaces (use hyphens or underscores instead) and without special characters ($%&*). You can use DW's Files window to change names and DW will fix the links automatically.

  • Creating Ejb link to another Weblogic server

    I am trying to create a EJB jndi link to another weblogic server from a weblogic
    server.
    Basically I have a web application that uses an EJB that is deploed on another
    weblogic server and I would like to connect to it.
    One way I can do is the remote lookup using the Hashtable and the context factory,
    something like this
    Hashtable props = new Hashtable();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://localhost:7001/");
    Context context = new InitialContext(props);
    I used a jndi-link in resin previously, that did not require me to do a remote
    lookup and rather created a link at the server level and allowed me to do a direct
    InitialContext() lookup.
    <jndi-link>
    <jndi-name>java:comp/env/ejb/test</jndi-name>
    <jndi-factory>weblogic.jndi.WLInitialContextFactory</jndi-factory>
    <init-param java.naming.provider.url="t3://xx.x.x.x:7001"/>
    <jndi-lookup>ejb.test</jndi-lookup>
    </jndi-link>
    Can I do something similar in Weblogic? If yes, how can I do it.
    Appreciate your help.
    Thanks,
    Varun

    "Varun Garg" <[email protected]> wrote:
    >
    I am trying to create a EJB jndi link to another weblogic server from
    a weblogic
    server.
    Basically I have a web application that uses an EJB that is deploed on
    another
    weblogic server and I would like to connect to it.
    One way I can do is the remote lookup using the Hashtable and the context
    factory,
    something like this
    Hashtable props = new Hashtable();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://localhost:7001/");
    Context context = new InitialContext(props);
    I used a jndi-link in resin previously, that did not require me to do
    a remote
    lookup and rather created a link at the server level and allowed me to
    do a direct
    InitialContext() lookup.
    <jndi-link>
    <jndi-name>java:comp/env/ejb/test</jndi-name>
    <jndi-factory>weblogic.jndi.WLInitialContextFactory</jndi-factory>
    <init-param java.naming.provider.url="t3://xx.x.x.x:7001"/>
    <jndi-lookup>ejb.test</jndi-lookup>
    </jndi-link>
    Can I do something similar in Weblogic? If yes, how can I do it.
    Appreciate your help.
    Thanks,
    Varun
    hi,
    Yes, it is possible in weblogic for more info visit this url,
    http://e-docs.bea.com/wls/docs70/ejb/reference.html#1221067
    u have the description of how to use the below tags
    <initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
    <provider-url>WeblogicURL:Port</provider-url>
    <indi-name>jndiweb</jndi-name>
    hope it help u
    regards,
    Elango TR

  • Creating a link in a PDF form to open into a new window

    I have created the PDF form and every thing seems to be working fine. But I would like to set a link in the form that would open into a separate page. I have tried target="_blank" and onclick="window.open(this.href, 'child', 'scrollbars,width=650,height=600'); return false" with no success. Can someone give me some direction on how to create a link within a PDF form that will open into a new window?

    Try this, using JavaScript:
    app.launchURL("http://www.adobe.com",true);

  • Creating a link for external users to view my project

    Hi -
    I want to share my RoboHelp project with external users that do not have access to my company's internal server if I publish there. Is there a way to create a link to my project that I can just share with other people?
    Thanks!

    Hello again
    Are you clicking the "view result" link? If so, the CHM should simply open. However, there are a host of things that can go wrong along the way and to figure out what may be happening we need to ask all sorts of questions.
    Did you click View Result after it finished? If so, what happened? An error? Nothing? What?
    Where are you attempting to compile the help? When you look at the properties of your Single Source Layout recipe, where are you pointing the output folder to? What is the file name?
    Are you able to open and view other CHM files? Do you know what a CHM file is?
    As you can see, there are many questions to answer. And probably others I failted to think of.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

Maybe you are looking for

  • How could it happen that there was a wrong FIRMWARE on the HP side?

    Hey, I've bought a HP LaserJet Pro 200 color MFP M276nw. I checked for a new firmware 1. downloaded the latest one: M270_colorMFP_Series_FW_Update-20140718.exe 2. I started the exe file while working in a WiFi NETWORK    2.1 - chose the printer    2.

  • Has anyone highlighted a word in online text, and it defined the word automatically?

    i accidently clicked some buttons while reading online text, and the next thing i know, the word "meeting" is highlighted and being defined in a dictionary window that popped up.  id like to know how to replicate the mistake i made because this is a

  • Late 2011 MacBook Pro 15 - Slow and Freezes

    Good Morning. This is MBP is running slowly and freezes, particularly if watching video, but is sluggish even opening applications from finder. The MBP was taken to a apple service provider with the complaint of very sluggish and a strange graphic is

  • Photoshop Elements 9 Downloader crash with video clips on memory card

    I have a Canon SX30IS. When I use PSE9 to download from memory card, if there are any videos present on the card, the Photo Downloader crashes. I believe that it is something to do with Apple Quicktime. When I uninstall Quicktime , PSE downloader doe

  • Help with hp dv7 2233cl

    So I bought this great laptop couple months ago, the problem is that I never noticed that since day 1 it was missing one of the corner screws that holds the computer's screen (pretty good btw). Just a week ago the screen went off, so I just used anot