Accessing db using DB link

Hi,
I am trying to access one remote Oracle database from another using database link. I have created dB link and started TNS listener in both systems as told in forums. Database link is created but on testing I get the following error “ The Database Link is not active.ORA-12541: TNS:no listener”
Can anyone help me to resolve this? I am new to Oracle. Any pointers to this is appreciated.

I have a development and production env.
I created a public DB link in Development say mylink .
Trying to access the developement table from production using the following command say to access table x
From PROD accessing DEV table x using dblink
select * from x@mylink ;You are trying to execute the query in PROD database. This query uses a DB link which points to the DEV database.
Very simple to understand : Since you are using the DB LINK in PROD database, obviously it should be in PROD area... right?
Just imagine you are using an object (the 'DBLINK') in PROD and it doesn't exist here. Got it?
SELECT * FROM x@mylink;
Here,
x -- table in DEV database
mylink -- DB LINK in PROD database (pointing to DEV)
Please try this.
HTH
Edited by: ranit B on Dec 25, 2012 12:24 AM

Similar Messages

  • Error while trying to access table using DB Link

    Hi All,
    I had to access a table in another instance using a DB link. As there was no DB link, I was asked to create one and then access the table.
    The below query was used to create DB link on my current instance FDEV:
    CREATE PUBLIC DATABASE LINK to_link CONNECT TO apps IDENTIFIED BY appsdev USING 'ABCD';
    The DB link gets created successfully and when I query select * from all_db_links on my current instance FDEV, I see the DB link name.
    However, when I try to access the table, select * from x_stg@to_link on my current instance FDEV, this is resulting in an error as shown below:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from TO_LINK
    The TNS entry looks something like this:
    ABCD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc.xx.com)(PORT = 1234))
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc.xyz.com)(PORT = 1234))
    (CONNECT_DATA =
    (SID = ABCD)
    Can someone help me in this regard?
    Thanks in Advance!!
    Regards,
    AB

    You are trying to get 2 databases connected... so, you need to insure that FDEV can find and connect to ABCD.
    So, from your FDEV database server, you can do 2 things (from command prompt):
    1* tnsping ABCD (this will validate that the entry exists in your tnsnames.ora on your FDEV server, and that a valid listener can be found on remote server)
    when above command succeeds:
    2* sqlplus apps/appsdev@ABCD;
    when you have established the connection, then you are SURE that your can connect ABCD database from FDEV database server. It will also validate the username / password combination, create session privilige, account not locked, etc.....
    Please check the above, and post here the results.
    HTH,
    Thierry

  • Accessing Tables using DB link .

    Hello Friends,
    I have a development and production env.
    I created a public DB link in Development say mylink .
    Trying to access the developement table from production using the following command say to access table x
    From PROD accessing DEV table x using dblink
    select * from x@mylink ;
    Got the error as :
    ORA-02019: connection description for remote database not found
    02019. 00000 - "connection description for remote database not found"
    Any idea on this why this error is coming ..
    thanks/kumar

    I have a development and production env.
    I created a public DB link in Development say mylink .
    Trying to access the developement table from production using the following command say to access table x
    From PROD accessing DEV table x using dblink
    select * from x@mylink ;You are trying to execute the query in PROD database. This query uses a DB link which points to the DEV database.
    Very simple to understand : Since you are using the DB LINK in PROD database, obviously it should be in PROD area... right?
    Just imagine you are using an object (the 'DBLINK') in PROD and it doesn't exist here. Got it?
    SELECT * FROM x@mylink;
    Here,
    x -- table in DEV database
    mylink -- DB LINK in PROD database (pointing to DEV)
    Please try this.
    HTH
    Edited by: ranit B on Dec 25, 2012 12:24 AM

  • Table access using DB link

    Hi all,
    I have database A and database B. I have a table in A that I want to grant insert access to B. I have a DB link(Blink) created on B. I executed the following statement with errors though. Can someone please advise.
    GRANT INSERT, SELECT ON A.table1 TO scott@Blink;

    Hi,
    SunS wrote:
    I have user userB in database B who connects to A. When I execute the following statement, I get an error "user or role userB does not exist"
    GRANT INSERT, SELECT ON A.table1 TO userB;Exactly.
    Now the question is: What user on database A is associated with that link? When someone on database B uses a link to database A, they connect as some particular user on database A. Who is that user on database A?
    Say userB on database B is supposed to do things like this
    SELECT ... FROM table1@alink;What did you say after "CONNECT TO" when you created the link? If you don't remember, then, on database B, say
    SELECT  username
    FROM    all_db_links
    WHERE   dblink  = 'ALINK';That's the user on database A that needs privileges.

  • Access the detailed navigation link using webdynpro

    Hi,
    I have a requirement where we have two different DC's of which one is a standard DC and the other one is custom DC with one application in each of them.My requirement is to navigate to the other application in the second DC directly on clik of a link or button from the current application.Also since these applications are displayed in detailed navigation i want to access the detailed navigation link location and activate the other Application instead of using WDPortalNaviagtion.
    The steps are:
    Development Component - DC1 - This is custom DC
    with application APP1
    Development Component -DC2 - This is standard
    with application APP2
    I have APP1 & APP2 in the detailed navigation.
    If i have a link or button in APP1 to navigate to APP2 i have to be able to activate the link on the detailed Navigation of APP2 to open up its content.

    Hi Swathi,
    Check the following threads:--
    Replace an iView dynamically by another one by portal navigating service
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1aa4d188-0e01-0010-2382-c5c65202c433
    http://help.sap.com/saphelp_nw04/helpdata/en/43/d1233b4c1d0a85e10000000a1553f6/frameset.htm
    Hope This Will Help
    Regards,
    Siddharth

  • Creating a document & making it accessable on the web using a link.

    There is an issue I want to address to the forum. I don't want to clutter up my posted topic with an entire page of information that is rellevent to my topic. How can I create a document that other Apple Discussion members can view it using a link? Where can I "put" it so that it's accessible?
    iMac G4 (snowcone)   Mac OS X (10.4.7)  

    Most any ISP you have will give you storage space, then it's easiest to ftp it to your storage, then post the URL like this...
    http://web3.ehost-services.com/bdaqua/
    I use TransmitX, but other free ftp APPs exist like Cyberduck. If you vist your ISP's site it should tell you jow to do it... if not post back with your ISP and I'll help further!

  • Unable to access oracle 10g DB package from 8i using DB link

    Hi,
    We have two oracle 8174 database A and B. One of the package in A calls an package in B using db link. The database B was upgraded to 10g (10.2.0.4). After the upgrade, the package in A got invalid. When tried to compile system hangs. No error is encountered.
    In UAT there was no issues. But only in production we face above problem. Can you please advise what went wrong. Is it due to incompatibiity?

    Can You logon that user an recompile?
    I hope you will see error something...
    Pacakages on B(10g) database.. invalid or not???
    Anyway Can you recreate your packages? ... (create or replace...)
    By the way, you might check something from Oracle Support
    Good Luck

  • How do I use mobile link to view documents on more than one device?

    I have documents on my iPhone and want to send them to my iPad using Mobile Link. How do I do this?

    Hi bephys,
    For this you can simply upload the doc to files.acrobat.com and send the link to the recipient via Adobe Send.
    Anyone having the link would be able to access the doc.
    Alternatives would be Google Drive or One Drive.
    These links might be helpful to you:
    https://support.google.com/drive/answer/2498081?hl=en
    http://windows.microsoft.com/en-in/onedrive/ios-faq
    Regards,
    Rave

  • How to backup files to ensure future access and use using a different mac

    I recently attempted access backed up data on my LaCie drive from a different Mac notebook. I was blocked. I didn't write down the message, but it essentially advised that the data was locked and I wasn't allowed access. I wasn't given a chance to enter any kind of system password to bypass the lock.
    Here is my problem: I recently spilled some wine into my keyboard. Since then, the system has slowed to a crawl and occasionally weird things begin to happen, regardless of which software I am using [eg iPhoto, Quickbooks, idvd, Photoshop, email, and even dashboard]. I know I am very lucky to have any access to my files at all. While I do, I need to back everything up so that I can have access to my files later on. I plan to have my Mac serviced this week. I don't know if it needs to be replaced, or whether it can be repaired.
    *+If it can't be repaired, how do I back up my files to ensure future access and use using a different mac?+*

    I'll check the example you linked. I appreciate you responding.
    I was not trying to boot another system at all. Actually, I was working on a newer mac laptop. I attempted to load a dvd I had created in my idvd on the other mac from the LaCie. I was using a mac because I knew it had all the iLife software I needed in order to work with my idvd components. Honestly though, I don't know if the mac I was using is intel based. I hadn't considered it. Does Apple sell macbooks with intel? No matter.
    So, let's see -- I was using the other powerbook to read the LaCie via firewire -- and yes, the LaCie has its own power supply.
    If I remember correctly, the denial I received [when attempting to load the idvd file] knew that I had created it. I got the feeling that it wasn't allowing me into the file for security reasons. I just don't remember setting security. Incidentally, I just checked and I do not have a master password set nor do I have FileVault protection turned on.
    I'll check that link you sent. Thx again, M~

  • How to query a distant database without using db link in pl/sql

    Hi
    I have two different distantly located databases say d1,d2
    There is a table dept which had deptno (primary key),department name as columns .
    I need to query database d2 on the basis of the deptno present in database d1.
    In database d2 , there are some tables which have columns as deptno.
    I cannot use DB link .
    Is there any other method that I can use from Pl/sql ?
    Is it possible thru XML ?
    PLs let me know in details .
    regards
    SHUBH

    You need to have an Oracle Apache Server installed. It can be on any platform that has connectivity to the Oracle Server. Preferably on the same server as Oracle itself.
    The Apache Server is installed in its ORACLE_HOME/Apache/Apache. It should have been configured by the installer. All you need to do is to create a DaD (Database Access Descriptor) for MOD_PLSQL. This is a custom Apache Module that provides direct access to PL/SQL via OCI. DaDs are defined in the ORACLE_HOME/Apache/modplsql/conf directory. There are README files, sample files and a dads.conf file in which you need to define a URL to assign as the service for your database, the Oracle username and password to use to logon, and the database connection details (e.g. TNS alias).
    The Apache Server needs to be restarted for the changes to take effect (using either opmnctl or apachectl).
    Let's say the URL path defined is /mydatabase. When Apache receives a URL that starts with /mydatabase, it passes it to MOD_PLSQL. MOD_PLSQL looks in the dads.conf for the database to connect to. The rest of the URL contains the PL/SQL package or function to call, e.g.
    /mydocuments/scott.p123.procABC&emp_id=123
    Where procedure procABC is called in packahe p123 in the Scott Schema. The variable EMP_ID is passed with value 123. Thus the procABC definition will look as follows in the package:
    procedure procABC( emp_id number ) is
    begin
      .. code..
    end.;This proc can write HTML data - i.e. dynamically create a HTML response page. Or it can create an image or any other Mime type that the browser can handle.
    Oracle provides a bunch of PL/SQL packages for that. E.g. HTP and OWA packages.
    This in a nutshell is how MOD_PLSQL is used to allow a web browser URL to be passed directly to a PL/SQL procedure.
    The details are under Oracle Application Server PL/SQL (http://download-west.oracle.com/docs/cd/B14099_12/web.htm). Two manuals are applicable:
    * mod_plsql User's Guide
    * Web Toolkit Reference
    It is not complex to use. In fact, the easiest to get all this going is to install HTMLDB 2. Download the Oracle 10G Companion CD for your platform (even if you're running 9.2). Install HTMLDB (this will be in a seperate ORACLE_HOME and will not touch your existing Oracle installation). This will install the latest Apache and MOD_PLSQL software from Oracle. Also HTMLDB is built entirely on MOD_PLSQL and with PL/SQL procedures - and serves as Microsof Access type web interface for developing and deploying web applications on Oracle using PL/SQL. Very powerful and flexible and very easy to use.

  • Does my macbook air have a built in virus scan?  how can I access and use it? also any recommendations of what software if this is not avail ?

    does my macbook air have a built in virus scan?  how can I access and use it? also any recommendations of what software if this is not avail ?

    Contrary to what Geeks on Hugs is telling you, Mac OS X does indeed have a basic malware scanner. It is not a feature that is directly accessible to the user, and works a bit differently than every other malware scanner out there. Gatekeeper, which has been mentioned here, is entirely separate, and provides a different method for helping to protect you against malware.
    The anti-malware scanner in Mac OS X is called XProtect. When you download an application (or any other kind of executable code), it is automatically "quarantined," so that when you open it you're asked if you really want to do that. I'm sure you're very familiar with this aspect of Mac OS X if you have ever downloaded any apps from outside the App Store. What you don't know, though, is that each time you try to open a new app, that app is checked by XProtect. If it is identified as malware, you will not be allowed to open it, and will be warned that it's malware.
    At this time, there is no known malware that can infect a properly up-to-date Mac. All current malware will be blocked by one or more methods.
    For more information, see my Mac Malware Guide.
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com.)

  • Upload images or use direct link to theme directory ?

    Hello,
    I work with APEX 3.2 and Oracle 10g r2, on Windows XP.
    I use my own CSS file, uploaded using Shared Components > Cascading Style Sheets > Create+, I added the link in the header section of the desired templates.
    I want to define an image as "background-image" in my CSS file, but my images were uploaded using Shared Components > Images > Create+, so I have to use #WORKSPACE_IMAGES# but it's impossible in the CSS file !
    Do i have to modify the template directly like that :
    *<div style="background-image:url(#WORKSPACE_IMAGES#header.png)\></div\>*
    or should I use direct links to my theme directory in my CSS file like that :
    *#headerstyle{background-image:url(header.png)}*
    For the moment I use the first solution, both work but I want to know which one is better, for me it would be better to have a separate file with all the CSS, whithout any CSS in the code. Nevertheless I think it's better to upload images instead of store them in the theme directory, no ?
    Thanks.
    Yann.

    Hope it will be fixed in next versions ![It seems unlikely|http://forums.oracle.com/forums/thread.jspa?messageID=3932244]
    If you are making extensive use of CSS, creating custom themes etc and you have access to the web server file system then the best approach is to move all CSS and images there (but using a different directory structure from that supplied by APEX).
    If just making minor customisations, or you are restricted to workspace repository storage, then CSS rules referencing #WORKSPACE_IMAGES# or #APP_IMAGES# need to go into the page HTML Header or page template.

  • No authentication prompt using DFS links to fileserver into another domain with no trusts between both domains

    Users  , Fileservers  and DFS root with DFS links in Domain A all work fine.
    each users from Domain A have also credentials and passwords from Domain B
    There is NO trust between Domain A and Domain B, both Domains are in different site connected with VPN-tunnel.
    Projectdata is stored at fileservers in both Domains. Now DFS links are added in the Domain A to a fileserver from Domain B
    When users from Domain A connects to fileserver in Domain B  first he/she gets a prompt to authenticated, then DFS link to the fileserver in  Domain B work.
    When users just use DFS link they get a prompt "not accessible" + "Logon failure unknown user or bad password"
    No prompt is given to users from Domain A to enter the credential for Domain B.
    We cannot created a trust between these 2 Domains due other policy's

    Hi,
    According to your description, there is no trust between domain A and domain B, right?
    Based on my research, if there is no trust between domains/forests, then it is not possible
    to share information across domain boundaries, because without trust, no authentication traffic can be passed across domain/forest.
    That is why the user cannot access the file he has rights to access across domain.
    Here is an article below for your references:
    Trust Technologies
    http://technet.microsoft.com/en-us/library/cc759554(v=WS.10).aspx
    I hope this helps.
    Amy Wang

  • Reverse Engineer Models Using DB Links ?

    Hi,
    I have tables that reside in database A.
    I can access those tables from Database B using db link.
    Is it possible to reverse engineer the tables belonging to database A in a model. If yes How?
    Please reply.
    Urgent Requirement
    Regards,
    Prerna

    Hi Prerna Vij,
    Yes you will.
    - In topology, create a physical schema in your dataserver B. Put the name of the source schema on A and enter the dblink name you want to use.
    - Create a logical schema and map it to the physical schema through contexts
    - In Designer, create a new model using the logical schema you just created and build all the datastore manually
    - Use these datastore as source in your interfaces and choose LKM Oracle to Oracle (DBLINK)
    Hope it helps.
    Regards,
    Jerome

  • Fetching the data using Db link through cursor

    Hi ,
    I created the cursor in which i want to access the data using Db link , can u tell the way to access the data
    Code Which gives error
    for rec in (
         SELECT ac_no as ac_code,drcr_ind as dr_cr,lcy_amount as amt
              FROM actb //"Public Synonym Of Db Link "
              Where period_code <> 'FIN'
              And AC_NO = '100130000'
              AND AC_BRANCH = '254'
    Its Urgent.
    With Regards,
    Anand

    An ORA-00600 error indicates an internal Oracle error. There are literally thousands of possible reasons that you might get one of these, but it generally boils down to Oracle bugs (you should never get this sort of error).
    - You'll need to log a support request with Oracle Support
    - There should be a number of parameters (generally rather cryptic) that come with the ORA-00600 error. You should look up those particular parameters in the Metalink ORA-00600 lookup tool
    - Hopefully, that tool will point you at a patch or a workaround. If not, you'll need to get support to figure out what's going on behind the scenes.
    Justin

Maybe you are looking for

  • Purchase Requisition Transfers from SCM 5.0 APO to R/3

    I am working on SCM 5.0 -- transferring Purchase Requisitions from APO to R/3 from SNP heurristic run. I am wondering if there is any documented procedure of available options and the steps involved in setting up. Can you transfer only certain Purcha

  • Time machine broke my Events an Projects on my external drive, help?

    So, for reasons I'm not going to get into (or debate), I had to start using my scratch disk as a time machine backup today.  When I set the computer to do the backup, it made it so that all of my events and projects on that disk no longer show up in

  • Help with installation of Adobe Acrobat 10

    I installed the adobe cs5.5 premium on my laptop and it was fine, I got a virus lost everything and had to restore my computer back to factory settings.  I reloaded Cs5.5 and everything loaded except Acrobat.  I have tried to do it in safe mode, take

  • Retry when No HTTP 200, Do not retry when WaitACK

    Hi, I have following requirement for RNIF Implementation. {color:#333333} {color:#008000}1. Host will re-send the order 3 times if it receives a status message other then the HTTP 200. After 3 re-tries, if 200 is not received then an exception is sen

  • Creating PDF from Word or Publisher

    When I try to convert a word or publisher document to a PDF (Acrobat X) it makes the document smaller.  This is a problem when I am creating a ad and it has to be a certain size.  What do I need to do to retain the original document size?