Connecting databases without database link

Hi,
I have net80 configuration for 2 different database in desktop with oracle client.
I can login either of the two database using connect strings.
I need to get some data to store in in database 1 from database 2. But for some inevitable reason creation of link between two database is not possible.
Is there any way out.
Regards.
Soumen.

It could be that Soumen only has access to the client machine, and not to the servers.
Another solution is to use Access, and create links to the source and destination tables. This is obviously much less efficient than a direct dblink.

Similar Messages

  • Problem connecting DataBase Link from windows oracle to oracle on Linux

    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?

    1005745 wrote:
    I'm facing a problem with database links from windows oracle to Oracle hosted on Linux server.
    I'm able to successfully create the Database Link using the following query on oracle database hosted on a windows server
    CREATE DATABASE LINK SampleDB
    CONNECT TO myuser IDENTIFIED BY password
    USING 'sample';
    The tns names entry on windows for database in Linux server is as follows
    DSOFT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = sample)
    But while executing the query "select count(*) from doctor@SampleDB;" in sql developer on windows, I'm getting the following error
    SQL Error: ORA-12154: TNS:could not resolve the connect identifier specified
    12154. 00000 - "TNS:could not resolve the connect identifier specified"
    *Cause:    A connection to a database or other service was requested using
    a connect identifier, and the connect identifier specified could not
    be resolved into a connect descriptor using one of the naming methods
    configured. For example, if the type of connect identifier used was a
    net service name then the net service name could not be found in a
    naming method repository, or the repository could not be
    located or reached.
    Using the above tns entries, i'm successfully able to connect to the database in Linux server through sql developer installed on the windows machine. Then why i'm getting this error while executing the query on Database Link?. Can any one help me?A database link is acting as a client to the target, remote database in exactly the same fashion and using exactly the same tns infrastructure as any other client trying to connect to that remote database. your ORA-12154 when querying a db link means exactly the same as if you had gotten it trying to connect with sqlplus, from the same server. Check the link SB provided. Keep in mind that the tnsnames file of concern is the one on the source database server.

  • Database Link Password Security

    When using sqldeveloper it is possible to view passwords associated with database links. This is not possible to view when querying db_links or using Toad. How to view database link passwords do the following.
    connections>your-connection>database links> click on a defined db_link > view the "sql tab" to see the source that creates the db_link
    The database user can only view the database links that user owns. This is an issue if a production database is cloned to a test/dev instance and the db_links are not dropped or changed.
    Listed below is an example of a user named 'APPS' and a db_link that user owns.
    REM APPS APPS_TO_APPS.SOMEWHERE.COM
    CREATE DATABASE LINK "APPS_TO_APPS.SOMEWHERE.COM"
    CONNECT TO "APPS" IDENTIFIED BY "SOMEPASSWORD"
    USING 'SOMEDATABASE';
    ------------

    While it is a security hole, it doesn't mean it is a bug. It is documented behaviour that existed in prior versions. It also goes down to the data files, so it isn't a matter of just patching the server software but changing (upgrading) the database (and in such a way that an unpatched set of software -maybe- couldn't work with a patched database).
    This change is definately in the realms of UPGRADE rather than PATCH. While it probably could have been done as part of a dot release (eg 9.2.0.7 to 9.2.0.8) I think 9.2.0.8 is the terminal release for 9iR2 so if you want this, you're going to have to go a full version upgrade.

  • To create Database LINK, is it necessary to enter connection in TNSNAME...?

    Hi all,
    To create a Database Link, is it necessary to enter the connection in TNSNAMES.ORA....?
    create database link linkname connect to ORA_USER identified by pwd using 'Connection name in TNSNAMES';
    In Place of Connection name, if i gave IP Address OR Computer name also, without entering connection in TNSNAMES.ORA, it is creating database LINK.
    Thanks in advance,
    Pal

    You can bypass the tnsnames.ora file by specifying the description in the create statement;
    SQL> select distinct username from user_sys_privs
    USERNAME                     
    MSCALLION                    
    1 row selected.
    SQL> create database link dblink1
    connect to user1
    identified by "user1"
    using  '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME = XE)))'
    External database created.
    SQL> select distinct username from user_sys_privs@dblink1
    USERNAME                     
    USER1 

  • Timeout when using database link connecting to a remote database

    Hi,
    I have another strange problem. I have two computers A and B. Both have an Oracle database server instance. I manage the one in B (which is my local computer) but not the one in A (which is a computer where I have a user account and an Oracle account but I don't own or manage).
    I tried to establish a database link on the database in B pointing to the one in A. This works.
    When I try the opposite, that is, establish a database link on the database in A pointing to the one in B I cannot get it work. I can create the database link but then when I try to use it (e.g., by submitting a "SELECT") it blocks for a long time and finally returns "ORA-12535: TNS:operation timed out". I tried to execute telnet from A to B using the port of the Oracle database server in B and it seems that the connection is established. I tried something similar with tnsping but this does not work, as I get again the timeout. I tried deactivating the firewall on my computer B, but it does not work either (besides, the telnet passes through even if I have the firewall activated).
    Any idea?
    My TNSPING looks like this:
    tnsping '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <the-target-ip>)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = XE)
    I also tried with:
    tnsping '(ADDRESS = (PROTOCOL = TCP)(HOST = <the-target-ip>)(PORT = 1521))';
    I'm lost... Any ideas are very much appreciated.
    Thanks!

    From A to B and from B to A can you ping ... post the output surrounded by tags for formatting.
    Do the same thing for TNSPING.
    What do these computers have in the way of firewalls and antivirus products installed and how are they configured?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • To create database link to connect to remote database

    Hi all
    I am using 10g with apex4.
    My apex application is running on our server.
    I need to connect to a remote server to get data from there.for that i need to create a database link from apex.
    When i tried to create a database link from apex sql commands window it is showing insufficient privilages.
    So i created one database link from back end but it is not accessible from apex...
    can some one help me in this...
    its urgent.....
    thanks in advance

    Hi,
    You need create database link to schema that is assigned to your workspace (application parsing schema)
    Schema need have CREATE DATABASE LINK system privilege.
    Regards,
    Jari
    Edited by: jarola on Aug 1, 2011 3:34 PM
    See documentation
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/advnc.htm#BABBFICH

  • Using database link to connect to two databases

    Hi guys,
    Here's my question. I need to give a contractor Select rights on tables located in two schemas located on two different servers. One server is dev and one is prod. Let's say we have schema user: EMPLOYEE on dev and schema user: DEPARTMENT on prod. The outside contractor needs select rights on all tables in DEPARTMENT schema but only needs select on a few tables ( 4 to be exact) from EMPLOYEE schema.
    My initial train of thougth is: CREATE a user named: TEST (random name of course, just used for an example) for contractor on prod. Give user TEST select rights on all tables in DEPARTMENT schema.
    Create database link to dev server so user TEST can access EMPLOYEE schema.
    How do i go about limiting the user TEST via the database link to only view the 4 tables from EMPLOYEE instead of all teh tables?
    Should I also consider doing this scenario in reverse? Creating user TEST on dev, giving TEST rights to the 4 tables in EMPLOYEE, then creating the database link to connect to department schema on prod database??
    Any help will be appreciated. Thanks in advance.

    zephyr223 wrote:
    Hi guys,
    Here's my question. I need to give a contractor Select rights on tables located in two schemas located on two different servers. One server is dev and one is prod. Let's say we have schema user: EMPLOYEE on dev and schema user: DEPARTMENT on prod. The outside contractor needs select rights on all tables in DEPARTMENT schema but only needs select on a few tables ( 4 to be exact) from EMPLOYEE schema.
    My initial train of thougth is: CREATE a user named: TEST (random name of course, just used for an example) for contractor on prod. Give user TEST select rights on all tables in DEPARTMENT schema.
    Create database link to dev server so user TEST can access EMPLOYEE schema.
    How do i go about limiting the user TEST via the database link to only view the 4 tables from EMPLOYEE instead of all teh tables? Only grant them access to those four tables from EMPLOYEE. You have to explicitly grant privileges anyways, and since there is no GRANT SELECT ON <SCHEMA> ability it should not be that difficult.
    Should I also consider doing this scenario in reverse? Creating user TEST on dev, giving TEST rights to the 4 tables in EMPLOYEE, then creating the database link to connect to department schema on prod database?? Are you creating database links as the EMPLOYEE and DEPARTMENT users? If so, I would caution against that. Create a "current user" database link for TEST. I think you can manage privileges better that way.
    HTH!
    HTH!

  • ORA-02018: database link of same name has an open connection

    Hi All,
    Am getting the above error msg from a procedure (packaged or not, doesn't seem to matter), run from a .SQL script through sqlPlus, where I've created a DB link, fired off a bunch of queries against it using dynamic SQL, and then tried to drop the database link. Have tried both through dynamic SQL as well as via as a straight statement in the SQL script and in both cases, get this statement. However, if I then open another connection/session to the DB, am able to drop the link fine. So - it seems related to the session life-cycle? Perhaps some sort of caching going on at the DB level is locking the DB link? Anyone else hit this, and if so, any clues on workarounds?
    Pretty sure this is "new" (10g) behavior as this script used to work fine in older (9i) DBs...
    Thanks,
    Jim

    Check this link. It explains exactly what you are facing.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1253651449550
    Regards
    Raj

  • Database link with the alias and full description in the connect string

    Hi,
    i have created database link with alias in tnsentry and full description
    and suppose i have removed the tnsnames.ora file what will be the impact on the database link that is whether database link will work or not i am sure db link created with alias won't work and how about db link created with full description and which one you prefer
    Thanks

    # Parameter file initora for Database prd
    ### Global database name is db_name.db_domain
    global_names = TRUE
    db_name = prd
    db_domain = world
    # TNSNAMES.ORA for prd ###############################
    prd.world = (DESCRIPTION = (ADDRESS = (COMMUNITY = tcp.world)
    (PROTOCOL = TCP) (Host = 100.10.100.1) (Port = 1521))
    (CONNECT_DATA = (SID = prd) (GLOBAL_NAME = prd.world)
    (SERVER = DEDICATED)))
    Our database link points from the local database test to the remote database prd. Therefore we need the global database name for prd. Ask the remote database administrator for these information or connect to prd and execute the following query on prd:
    SQL> select GLOBAL_NAME from GLOBAL_NAME;
    GLOBAL_NAME
    prd.WORLD
    CREATE DATABASE LINK prd
    CONNECT TO system IDENTIFIED BY system_passwd
    USING 'prd';--- alias
    so the connection description will be ---select ename from [email protected]
    useful link
    http://www.akadia.com/services/ora_dblinks.html

  • Need help/info on "database link of same name has an open connection"

    Hello,
    I am trying to create an application on html db (new in html db) to see if I can move data from one database (oracle 9i) say dbdev to another one called dbtest. I want to be able to select the data from html db app and by clicking on a button move them to dbtest ( right now only looking at data from one table ). This is what I have done so far:
    1. created a duplicated table of dbdev into html db with no data.
    2. created package with procedures to
    A. create a database link
    B. delete if there is a record on html db table
    C. go trough a loop (cursor) and get the data from dbdev
    D. drop the database link
    Now, when I do all of the above steps I get an error “database link of same name has an open connection" but when I don’t do the step C. I don’t get this error. So something is wrong in my step C. On my step C, I just open the cursor, do a for loop and insert the records into my html db table.
    Any idea!!!
    Thanks
    More questions to come…..

    never mind, I should not drop the database link with in the procedure.
    thx

  • How to connect APEX with MYSQL via Apex's Database link

    How do i connect APEX with MYSQL via Apex's Database link? The OBE doesn't go into specific detail about how to link the two.
    can someone please elaborate on what these are and where i can find them in mysql:
    Database Link Name      
    Connect To Schema      
    Password      
    Remote Hostname or IP      
    Remote Host Port      
    SID or Service Name      
    I need to link to mysql database so I can set up a 3D pie chart in apex

    Hi jononioo
    A database link is a device for connecting between Oracle database instances only. Oracle does have a method for connecting to other database systems (Transparent Gateway) but this is restricted to other commercial databases and I don't believe there is a gateway for Mysql. (I could be wrong)
    I don't know Mysql but maybe there is some way to push data to the Oracle instance. Other than that, is there any reason why the data has to reside in the Mysql database?
    Regards
    Andre

  • How do we connect two databases in Oracle other than Database Link?

    Good Morning,
    How do we connect two databases in Oracle other than Database Link?
    I am using Oracle 10g, I heard that we can connect two database in Oracle through ODBC. Is it possible? How?
    Thanks
    Nihar

    See if this helps.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206#18830681837358

  • 8.1.7 connectivity using database link

    I can't get my database link to work. It fails with ORA-12154: TNS:count not resolve service name
    I have set up an entry in tnsnames that allows me to successfully tnsping the target database and I can connect via SQL*Plus using user/password@service_name.
    I have successfully created a fixed user database link. The database link has the same name as the service name, although global_names is false in both Oracle instances.
    Here's the tnsnames entry:
    service_name =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 000.000.000.000) -- can't reveal the IP address
    (Port = 1521))
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 000.000.000.000) -- can't reveal the IP address
    (Port = 1576))
    (CONNECT_DATA = (SID = sid)))
    and here's the database link definition:
    create database link service_name
    connect to user identified by password
    using 'service_name';
    Am I missing something???

    Is this tnsnames.ora that you sent is from the server or from your computer ? Because you need to set up an entry in the tnsnames from the server where the database link is created.

  • How to release FSG reports without using Program - FSG Transfer across a database link

    Hi,
    Our project development team have built some reports to meet the requirements of the business customer using Financials Statement Generator (FSG) as part of an implementation of Oracle E-Business Suite (EBS) release 12.1.3.
    We know we can use the Program - FSG Transfer across a database link to move the reports from development to another environment.
    Oracle General Ledger User's Guide
    Copying Report Objects From Another database (FSG Transfer Program)
    http://docs.oracle.com/cd/E18727_01/doc.121/e13627/T312864T313620.htm#I_tx2Dfsgx2Dimpex78
    However our production environment is on a different network. Therefore this solution will not work since a database link cannot be created from production to the non production databases. Obviously I am asking the network solution architects to consider how to join the networks but do'nt hold out much hope. Has anyone got an alternative solution?
    FYI We have considered extracting the report definition, row sets, column sets etc from the back end database tables then transforming that into end user key strokes to simulate what someone would do to create such a report from scratch using the front end forms using a tool such as data loader which I believe has no licence cost implications. We dont have a lot of time so would be interested to know if anyone had any success with an alternative method such as this.
    P.S. I had found this question asked already by someone else but without an answer so i am trying again today.
    Transfer FSG Report without using FSG Transfer program.

    Look here for a potential way: Re: Calling table function on remote server - possible?

  • Databases link name required without  global_name

    Hi,
    My global_name is "ORCL.REGRESS.RDBMS.DEV.US.ORACLE.COM" when i create any database link the name create like "U_NET_LINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    How i eliminate global_name without edit my initora file using SQL .
    Regards
    Faheem

    You need to check parameter global_names
    alter system set global_names=true scope=both;
    System altered.http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams077.htm#CHDGEHBB
    Also what's your DB_NAME and DB_DOMAIN set at?
    Your global name looks rather erratic.

  • Printing Reports without connect  database

    May I do a reports without connect database ?

    In 2.5/6i you need a database connection to run a report.
    In 9i there are some pluggable datasources (text, XML, JDBC) with their own connections. Since the Text/XML pluggable datasources don't require a connection you can now create a report that runs without a connection but still reports on data.

Maybe you are looking for

  • Calculaction in Bex Query Designer

    Hi Experts, Please update how should i achieve this in Bex Calculaction My requirment is to calculacte Average Monthly YTD Sales ( Closed Months) With the below exit i am able to create a Ristricted KF that will give me YTD Sales Volume 'when' variab

  • XSL mapping in ESB flow

    I created an ESB flow that uses a file adapter service to read a simple xml file in and map required data to a Soap service. I was forced to map all fields for the input to the soap service, either by "hard coding" values in the xsl or modifying the

  • Problem in FTAM put

    I am using FTAM version 9.0 (OSI 9.0, x.25 9.1) on Solaris 8. Working with responder FTAM on Nokia DX220 (a PSTN switch). The FTAM remote database settings are : APT 1 3 9999 1 7 AEQ 1 PSEL (hex) 0201 SSEL (hex) 0201 TSEL (hex) 0201 I have to put one

  • Dynamic User Input

    Hello, my collegue and I are working with Oracle Application Server 10g Release 2 (10.1.2). We want to create an inputmask, that let's the user choose from a Combobox. We create a 'simple inputmask' from the portlet repository. Now we want to to have

  • Cannot open embedded font

    Have pdf on website, tried to open with Adobe Reader, get error "Cannot open embedded font CGOmega". So, I tried to open the file with Acrobat Pro 9 - same error. Client doesn't have original Word document to recreated the pdf. Any way possible to op