Dblink Oracle to sql server, multiple database on the same server sql under a dblink

Hi, we managed to set up an Oracle dblink to sql server and retrieve data.

The user of sql server have been using via dblink has access to multiple databases on the same sql server

But the question is how in oracle (if possible) prepend you the SQL access to this?

For example:

Sqlserver_prod has the user sqlserver_user which seems to be set up as default database sqlserver_db1

But we have select access to sqlserver_db2

all work well as sqlserver_user

Select * from table_fromdb1

Select * from dbo.table_fromdb1

Select * from sqlserver_db1.dbo.table_fromdb1

as does

Select * from sqlserver_db2.dbo.table_fromdb2

more in Oracle

Oracle_db a dblink sqlserver_prod. World connection sqlserver_user

everything works fine

Select * from 'table_fromdb1"@sqlserver_prod '.

Select * from 'dbo '. "table_fromdb1"@sqlserver_prod

But how to (if possible) access from oracle

sqlserver_db2.dbo.table_fromdb2

without having to create a new sqlserver_db2_user referenced in a new dblink

If oracle for oracle would be

Select * from remote_oracle_schema.table@remote_oracle_db

Hello

You cannot select a table in a different SQL * database server from that to which the gateway instance connects.
As stated in the documentation-

Oracle® database gateway

Installation and Configuration Guide

11g Release 2 (11.2) for AIX 5 L Based Systems (64-bit), HP - UX

Itanium, Solaris (SPARC 64-Bit), Linux x 86 operating system,

and Linux x 86-64

In the section.

The example SQL Server multiple databases: Configuration of the modem router

A separate instance of the gateway that is required for each SQL Server database. Each

instance needs its own Gateway system ID (SID).

==========

You will need to create a new instance of the gateway for the SQL * Server DB2 as well as a link separate db.

Kind regards

Mike

Tags: Database

Similar Questions

  • grid vs dbconsole for multiple databases on the same box

    Hello

    I need to start the control of several instances that are on the same server.

    Ideally I would be able to cover the case of 4-5.

    How dbconsole compare to the Grid Control in this case? I think the problems of memory - is it possible to have 4-5 dbconsole processes running on the same box?

    I hope that the answer is dbconsole and grid no, because we have put in place on grid.

    Thank you for your valuable answers.

    11.2.0.3

    Red Hat Linux 5

    EBS 11.5.10.2

    DA

    DanA says:

    Hello

    I need to start the control of several instances that are on the same server.

    Ideally I would be able to cover the case of 4-5.

    How dbconsole compare to the Grid Control in this case? I think the problems of memory - is it possible to have 4-5 dbconsole processes running on the same box?

    I hope that the answer is dbconsole and grid no, because we have put in place on grid.

    Thank you for your valuable answers.

    11.2.0.3

    Red Hat Linux 5

    EBS 11.5.10.2

    DA

    Dbconsole is the stand-alone version of grid. Of course it has limited the feature console grid.

    If you have enough memory you can start the console as much as you want.

    Consumption of memory can vary accordingly with the number of controls that you want to perform. (with the agents of the grid or dbconsole).

    Once again, the answer is depends.

    Regs,

    Drew

  • Multiple databases on the same Instance SQL vcenter

    I know that this is possible, my question is for the cumulative jobs created specfic (I think during the schema updates).

    I asked our DBA to create a vCenter Lab DB and a Lab DB update on our SQL2008 Server Manager using the scripts described in the ESX and vCenter Server Installation Guide (I'll use new unique Lab DB names and Lab DB SQL users). This SQL server instance already has a production DB, and DB Manager production update vCenter.

    My question is what is happening with the schema updates when I leave the installation of the laboratory to the schema updates.

    1. I should do something before installing vCenter to avoid potential conflicts on the side DB?
    2. Will be the schema updates are trying to recreate the jobs of rollup and fail, breaking existing jobs, or something else?


    I'm looking for good practices so that when I install the lab, the environment of existing production DB (including rollup jobs) are not affected and cumulative Lab new jobs are created to function properly.

    I'm not a DBA, so if I'm far away feel free to correct me.

    The installation creates the names.

  • Multiple vCenter on the same server database

    Hi all

    I'm migrating vCenter vCenter 5.5 5.1.

    Is it possible to use the same server SQL2008R2 for vCenter 5.5 database?

    Installation vCenter 5.5 database to the same server vCenter 5.1 will be will damage the 5.1 database? Use different database?

    What is the best way to secure the vcenter 5.1 during the installation of vcenter 5.5 database other than the database backup 5.1?

    Also does need seprate SSO database?

    Thank you...

    I used SQL dissferent account and vCenter was insalled on the new database without problems.

  • Start up problem when having multiple databases on the machine

    Start up problem when having multiple databases on the machine:

    I installed two databases.

    When I stop the database and try to start using

    Startup pfile ='... location... " ;

    I get ora-12514: TNS: listener is not currently know of service rquirest in connect descriptor

    When I try again after 3 seconds, I get a new error, ora-01041: internal error. Hostdef extension doesn't exist

    Stop and start gave no problems when I had a database. Why I get problems when I have two databases?

    I use: show the pfile parameter. SPFile; to make sure that I have the right parameter locations, the error should not be the location.

    I never installed two databases on a single machine, then perhaps that I make mistake of a first - timer.

    Anyone know how to get this working, i.e. start and stop DB without problems?

    The oracle 11 GR 2 on Windows 7 64 bit, everything works normally.

    Thank you
    Ayman

    Published by: aymanzone on June 15, 2011 09:27

    aymanzone wrote:
    My oracle_sid is set to the name of one of my databases

    echo % oracle_sid %

    shows me the name of my first database.

    Still does not.

    When I start the services of two databases by using Services, I can connect and run queries both the database.

    Published by: aymanzone on June 15, 2011 11:47

    First of all... the Oracle Service for the instance must be started for the DB that you try to connect or start.
    Next... from the command prompt:

    Set oracle_sid =

    sqlplus sys as sysdba

    Startup pfile = 'location of the pfile respective db.

    Now, if you want to start or connect to another DB, which is on the same server (again assuming that the Service is STARTED)...
    From the same command prompt or other session...

    Set oracle_sid =

    sqlplus sys as sysdba

    Startup pfile = 'location of the pfile respective db.

    Published by: Srikanth on June 16, 2011 12:27 AM

  • Installations of multiple Apex on the same server

    Hello

    We plan to spend some of the data in our Oracle database to another database on the same server.
    Now the problem is that there are a number of Apex applications that use these data.
    So I wonder if it is possible to create a second installation of Apex (and HTTP server?) on the same server, connect to the new database.

    We use the database with Oracle HTTP server and Apex 3.1.2 10.2.0.4.


    Thank you
    Matthias

    Hello

    a database can have only one installation of APEX active. But you can have several databases with an APEX in each database
    on the same server. You can even use the same HTTP server - you just neen an additional inscription of DADDY for the second database APEX
    in your dads.conf file, for example


    :
    Database configuration data 1
    :


    :
    Attributes for the second database here
    :

    Does that help?
    Carsten-

  • Firefox does not work for multiple instances of the SAME user account on Windows Multipoint Server 2011

    We have a PC HP of MulitSeat MS6200
    It runs Microsoft Windows MultiPoint Server 2011 (which seems to be a twisted version of Windows 7)
    It is implemented in a laboratory of computer science and students connect you using their account for shared room - IE multiple instances of the same user accounts are currently running on the PC at the same time.
    The first student to run Firefox can work with it without a problem.
    However, when another student try to start firefox they get the following message:
    Firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

    Cannot start Firefox using a profile that is already used by someone else.
    Each Firefox instance needs its own profile or you will get this error message.

    Use-no.-line switch remote control to open another instance of Firefox with its own profile and to different instances of Firefox running concurrently.

  • Clonning an ASM database on the same server with different names of sid.

    Hello people!

    I tried to clone an existing database on the same host with a different name with no luck.

    I tried what 415579,1 reccomends, but, when I reached the RESTORE CONTROLFILE from clause that it fails since this process the old and the new database must be the same. I don't want that. I want a separate copy, not a database of pending. There are other people in the company who will use this database, and I just want to replicate it.

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure to modify the order db at 26/05/2009 14:51:15
    ORA-01103: the name "OLD_DB_NAME" in the control of the database file is not "NEW_DB_NAME".

    I want to just clone a database with a different name, in the same way we used to do with ALTER DATBASE BACKUP CONTROLFILE to TRACE-> COPY DB_FILES-> RECREATING CONTROLFILES WITH a DIFFERENT NAME DATABASE.

    Exp/imp it's a possible solution, but I wonder if it is just another way to clone an existing database in the same node with a different namedo with RMAN? Just as we used to with BACKUP CONTROLFILE to TRACE-> DBF_FILES-> RECREATING CONTROLFILES WITH DB NAME DIFFERENT COPY.

    It's the links I tried to follow without success.

    http://www.Oracle.com/technology/deploy/availability/PDF/asm_cloning.PDF
    Duplicate by RMAN 10 g

    and many others...

    Thanks for your help.
    Alex.

    You'll need an auxiliary copy if you restore the database to a different name.
    Take a look at the following note:
    http://jhdba.WordPress.com/2009/04/02/cloning-a-database-ASM-to-ASM/

  • on the headphones for different databases in the same ORACLE_HOME

    Hello experts, I have a doubt

    I installed 3 different databases on the same server that OS is Suse Enterprise 10. Right now, I'm just a listener who registers all the services. The number of connections is great for two of the three databases, so I don't know what could be the best practices for this environment. I have a question I would like you suggestion for me:

    DB version: 11.1.0.7

    Should I have three listener, one for each database?

    Is advisable to have a single listener for multiple instances on the same server?

    Are there different between have only a single listener for the instance and have a port for listening, for example?

    What about performance?


    You in advance, I hope that you can guide me.

    Best practices is not not to have multiple databases on a server, based on resources.

    Should I have three listener, one for each database?
    N ° it is quite undesirable and requires more administration.

    Is advisable to have a single listener for multiple instances on the same server?
    Yes. Don't forget the listener is only a broker and there is no permanent connection between the client, listener and database.

    Are there different between have only a single listener for the instance and have a port for listening, for example?

    Yes. The latter is a nightmare of administration.

    What about performance?

    Who cares? The only factors are
    Listener.log becomes too large--> put in place the appropriate cleaning procedures
    The semaphore count is exceeded (Unix) or no more threads can be created (Microsoft Windows95), who will give birth to ora-12500.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • Loading multiple files using the same interface in ODI

    Hi all

    We load multiple files using the same interface and get the error "java.sql.SQLException: ORA-00942: table or view does not exist" while inserting record in the staging table. It looks like the same temporary table is used when loading multiple files and the error. Grateful if someone offers a solution to avoid this error.
    We use the following KMS:

    (1) LKM SQL file
    (2) IKM Oracle SQL COMMAND append.

    Receive a quick response.

    Thank you
    RP

    Hello

    See this http://odiexperts.com/interface-parallel-execution-a-new-solution

    Thank you
    Fati

  • Multiple copies of the same mail and "unresponsive".

    I have fought with Thunderbird for about a week now and have had no chance to solve my problems. Any help would be greatly appreciated! I tried all the suggestions on the FAQ page.

    Here are my symptoms:
    -Make multiple copies of the same email with the same time stamp.
    -Not pulling new e-mail messages.
    -Whenever I try to navigate upwards or downwards in the Inbox or open an email TB will does not.
    -J' got warnings from the following script:
    Script: resource://gre/modules/XPCOMUtils.jsm:323
    Script: chrome://messenger/content/mailWindow.js:179

    Here is what I tried:
    -J' completely removed and reinstalled TB (and recovered my profile).
    -J' have compressed files.
    -J' rebuilt the database world.
    -From TB in safe mode does not seem to make a big difference.

    Fortunately, I have access to webmail via my ISP and it works fine.

    Thank you!

    McAfee has released a faulty update, please contact them for support on changing the setting to something that actually works.

    I saw a poster here today who used their support chat and they 'fixed a few adjustment' and now all is good.

    Not good was not what I wanted to say

  • Multiple constraints on the same column

    Hello experts, we can use Multiple forced on the same column in oracle as creating table, I want to add a key single and forced to check on the same column is this possible? Thanks in advance,

    If you want, seems to be possible

    CREATE TABLE t1

    (col1 VARCHAR2 (50))

    CONSTRAINT ck1 CHECK (col1 IN ('A', 'B', 'C'))

    CONSTRAINT PRIMARY KEY (col1) pk1

    );

  • Constraints/General to keep PROD and databases on the same Machine TEST

    Hello

    Version: 12.1.1
    Database is 11.1.0.7
    2 node architecture (DB on a single Machine, applications on the same Machine)

    Client wants to keep PROD and databases on the same Machine TEST. Could you please let me know the issues and constraints that we can encounter this configuration in the future. While I can force the client to a machine more TEST.

    Thanks in advance...

    Hello

    My Client told me that I can provide more resources (CPU, memory, and disk), then why can't keep us as what he asks?

    There are other technical problems, that we can meet?

    I think the above should be enough :)

    Other proceedings continued would be impossible (as you said, because of human error, and in case the server restart is required). Even if they provide more resources it would be a conflict over shared resources (for example, what happens if a process on the test instance consuming all CPU/memory resources?).

    So, in futuere, we can improve the database to the new version and some environment variables in the registry may have affected it?

    Each instance will have its own entries in the registry and this shouldn't be a problem.

    Thank you
    Hussein

  • Download the image to the directory and database of the same form data

    Hi all

    I play to build a shopping cart (never done before) a tutorial of Gordon Knapp at www.webthang.com.

    I created the site and it works perfectly. Now, I want to extend it.

    There is a form that allows the user to add data to the database. I would also like to be able to transfer an image to a directory on the server and add the data to the database at the same time of the same shape. It would be good if the input field "< input name ="product_picture"type ="text"id ="product_picture"tabindex ="6"size ="50"/ >" could be filled automatically by the file name of the image being downloaded, but it's not a neccessity.

    I looked at different packages ASP Upload and I can upload a single image, but none of them clearly show how to download the image and add data to the database at the same time.

    It is a private project I need suggestions for free.

    The tutorial shows how to create Dev Ultra site but works perfectly well in DW. The page looks like this. It is named "admin_add.asp":

    "< %@LANGUAGE="VBSCRIPT "CODEPAGE ="65001"% >
    "" <!-#include = file '... / Connections/con_ecom.asp "-->
    < %
    Dim MM_editAction
    MM_editAction = CStr (Request.ServerVariables ("SCRIPT_NAME"))
    If (Request.QueryString <>"") then
    MM_editAction = MM_editAction & "?" & Server.HTMLEncode (Request.QueryString)
    End If

    'boolean to abandon a record edition.
    Dim MM_abortEdit
    MM_abortEdit = false
    % >
    < %
    "Implementation of the IIR.
    Function MM_IIf (condition, ifTrue or ifFalse)
    If condition = "" then
    IfFalse = MM_IIf
    On the other
    IfTrue = MM_IIf
    End If
    End Function
    % >
    < %
    If (CStr (Request ("MM_insert")) = "add_form") then
    If (not MM_abortEdit) then
    'execute the insert.
    Dim MM_editCmd

    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_con_ecom_STRING
    MM_editCmd.CommandText = "INSERT INTO products (product_category product_name, product_price, product_briefdesc, product_fulldesc, product_picture) VALUES (?,?,?,?,?,?)".
    MM_editCmd.prepared = true
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param1", 202, 1, 50, Request.Form ("product_category")) ' adVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param2", 202, 1, 50, Request.Form ("product_name")) ' adVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param3", 5, 1, -1, MM_IIF (Request.Form ("product_price"), Request.Form ("product_price"), null)) ' adDouble
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param4", 203, 1, 536870910, Request.Form ("product_briefdesc")) ' adLongVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param5", 203, 1, 536870910, Request.Form ("product_fulldesc")) ' adLongVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param6", 202, 1, 50, Request.Form ("product_picture")) ' adVarWChar
    MM_editCmd.execute
    MM_editCmd.ActiveConnection.close

    ' add the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "admin_control.asp".
    If (Request.QueryString <>"") then
    If (InStr (1, MM_editRedirectUrl, "?", vbTextCompare in) = 0) then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    On the other
    MM_editRedirectUrl = MM_editRedirectUrl & "" & Request.QueryString
    End If
    End If
    Response.Redirect (MM_editRedirectUrl)
    End If
    End If
    % >
    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN".
    " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ".
    "< html xmlns =" http://www.w3.org/1999/xhtml "> "
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > Administration - add a < /title > product
    "" < link href = "... / scripts/admin.css" rel = "stylesheet" type = "text/css" / >
    "< script type =" text/javascript"src ="... / scripts/ecom.js "> < / script >"
    < / head >

    < body onLoad = "adminTitle ()" >
    < div id = 'wrapper' >

    < div id = "pageHeading" > ADMINISTRATION - add a PRODUCT < / div >

    < div id = "navBar" > < a href = "admin_control.asp" > < /a > control | " Add | < a href = "admin_view.asp" > view < /a > | < a href = "admin_update1.asp" > update < /a > | < a href = "admin_delete1.asp" > delete < /a > | "" < a href = "... / Default.asp" > shop < /a > < / div >

    < br / >

    < name of the form = "add_form" id = "add_form" method = "POST" action = "< % = MM_editAction % >" >
    < table border = "1" align = "center" id = "tblArea" >
    < b >
    < class td = "tdLabel" > < table > product category
    < td colspan = "2" > < input name = "product_category" type = "text" id = "product_category" tabindex = "1" size = "50" / > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > Product Name < table >
    < td colspan = "2" > < input name = 'product_name' type = 'text' id = 'product_name' tabindex = "2" size = "50" / > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > < table > product price
    < class td = "tdContent" colspan = "2" > < input type = "text" name = "product_price" id = "product_price" tabindex = "3" size = "50" / > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > product short Description < table >
    < class td = "tdContent" colspan = "2" > < textarea name = "product_briefdesc" id = "product_briefdesc" cols = "47" lines = "4" tabindex = "4" > < / textarea > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > full < table > Product Description
    < class td = "tdContent" colspan = "2" > < textarea name = "product_fulldesc" id = "product_fulldesc" cols = "47" rows = "5" tabindex = "5" > < / textarea > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > < table > product Image file name
    < class td = "tdContent" colspan = "2" > < input name = "product_picture" type = "text" id = "product_picture" tabindex = "6" size = "50" / > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > < table >
    < td align = "center" > < input type = "reset" name = "Reset" id = "Reset" value = "Reset form" / > < table >
    < td align = "center" > < input type = "submit" name = "Submit" id = "Submit" value = "Add to the shop" / > < table >
    < /tr >
    < /table >
    < input type = "hidden" name = "MM_insert" value = "add_form" / >
    < / make >

    < / div >
    < / body >
    < / html >

    Hope you can help.

    Best regards

    Martin

    Have sorted it.

    Found an excellent tutorial to Webthang.

    http://www.webthang.co.UK/Tuts/tuts_dmx/rob15/rob15.asp

  • Multiple sites using the same instance of CF?

    Hi Gang-
    I have a client who has recently improved CF Pro to Enterprise and they use in a relatively simple way as an intranet. They would like to help me configure a second instance for the purpose of a staging server, but I noticed after they revealed they do not have the link of Enterprise Manager in their CF Admin screen.

    They need to reinstall CF using the MultiServer installation version to be able to deploy a second instance of CF? Need to uninstall and reinstall? Ugh...

    Can't they just create a second site under their web server, using a different port and you worry about the second instance of CF? Best practices for a moment, remember, they do not necessarily expand on this server, it is intended to be a staging server.

    Any ideas on the best and fastest way to handle this?

    Many thanks in advance,
    Rich

    Many questions, many answers. :-)

    Yes, rich, they would need to install the version multiserver for you to see this Enterprise Manager option in the CF Admin. But no, they would not need to uninstall the server deployment (what you did) to add to the MultiServer deployment. They can coexist (although it is not something most would do in general).

    The best news for you is that, Yes, they can indeed just set up a second site on their web server, and who also point to the deployment server CF one you have installed. It is, of course, assuming that they are running a web server that supports multiple sites. If it's Apache, you're good. If this is Windows, then as long as the Windows Server 2003 (or 2008 or Vista), you're good, too. (Just to be complete, for other readers, XP does not allow you run multiple sites at the same time.)

    If during the installation of the CF tells you that there all sites on the web server with CF, you need do nothing again create site. It should be immediately able to run pages CF. If you said that it is in CF link to a site, then you will need run the server web Configurator again. You can do it manually, even after installation. See the CF Admin and Config docs to learn more about it, as well as on this issue. (I know many like to just run things and hope that the interface is pretty clear, but as this issue shows, for some things anyone installing CF will be well served by looking at this collection of Miss often.)

    Hope that helps, Rich. It is not a RTFM response. :-) Suffice it to say that if you need more that what I said, it's in the manual. Yet, I am happy to answer follow up if I can.

Maybe you are looking for

  • Satellite Pro L300 some FN keys do not work on XP

    I bought a L300-164 on Monday. However, there is no preinstalled opsys. I installed a Win XPSP2 (HUN) on it and downloaded the drivers from www.toshiba-europe.com. First I have installed chipset and video drivers, then I installed "common Modules". A

  • Satellite L300 will not charge upward

    Hi all I have a L300 ve won t open upward, I tried doing auto repair, but he gets to half way through and it freezes everything. I tried the re-boot s disk but I ve had no joy.Now I've taken to a computer repair shop who said that the hard drive is f

  • Cannot read the contents of the phone

    My husband iPhone 6 has attracted 13 GB of data.  I use my phone more it does and I only use 6. Something has been bad for months, we have both called Verizon and nothing has helped. I'm trying to upgrade his phone now and iTunes tell if cannot read

  • Adding a Variable Terminal

    Hello I want to count the number of times that that an event occurs, and using this indictment I've reproduced the data I need. In other words, the counter is used a variable 'intermediate '. How to add and initialize a variable without having to add

  • Video not showing after upgrade yesterday, audio only

    Hello I have a few files that plays where bute well after the update since the appstore yesterday, only the audio track. Here is the Media Infosa: GeneralFormat                                   : AVIFormat/Info: Audio Video InterleaveTouch: 175 MiBL