Query remote DB without DB Link

I have a nightly db job that runs to extract data from a remote DB. Due to a Change in the Security requirments at the remote location. DB Links are now prohibited. Is there a way to query the remote DB, without using a DB link? I have no say or control in doing anything on the remote DB other than inserting or querying records. No other types of objects can be created on that end. The package that runs Nightly, loops through a local configuration table, extracting data from the remote db based on conditions defined in the config table, and placing it in the local tables.

user502315 wrote:
I have a nightly db job that runs to extract data from a remote DB. Due to a Change in the Security requirments at the remote location. DB Links are now prohibited. Is there a way to query the remote DB, without using a DB link? I have no say or control in doing anything on the remote DB other than inserting or querying records. So..? What is different between a db link on your side or using SQL*Plus on your side? Nothing!
You still need a user name and password to connect to that remote database. You still need to use OCI. You still need to use TCP/IP.
Whether you use a db link, SQL*Plus, TOAD or shiny pink s/w, the fact is that all of these are clients and that remote database is the server.
So why treat a database link (a client) differently on the remote database than a SQL*Plus client? How is that remote database to know the difference? Why should it care when both need to use a user name and password for authentication, and both cannot do anything more than what that user's (Oracle schema) privs on that remote database allows?
In other words, a db link is still client-server and should not be treated differently on that remote database than any other client connection and resulting session.
If the remote database does not want to supply you with a username and password to use for authentication, then you cannot connect using the standard OCI (Oracle Call Interface) client. In which case SQL*Plus/TOAD/etc will be equally useless for connecting to that remote database.
Security on the remote database deals with that remote database's environment and settings. Security on a server does not and should not attempt to include the type of client into its security equation as it has no control whatsoever over the client and the client's environment. It could be a virtual machine. It could fake a SQL*Plus client or a TOAD client.. It could be anything written in anything.. Within client-server, it does not matter to server what the client is. What does matter (to the server) is authentication details supplied by the client and authorising the requests made by the client.
Thus the idea that security is an issue with a database link and that a database must be queried without using a database link, is just plain silly.
You deal with the client side. Which happens to be another Oracle database. They deal with the remote Oracle database. They need to concern themselves over that.. and not what client you use and how you select to use/code it. The border on their side starts with the SQL they receive and the Oracle Schema your client use.
This is how client-server works. And perhaps you should explain that to your colleagues...

Similar Messages

  • Connecting to remote database without using db links

    Referred Thread:
    Re: Remote DB connection without DB link
    In reference to the thread above, my question goes like this:
    Let's say I want to run a query from a database and use data from another database. I have the user, password, SID and port number of the other database but do not want to create a separate connection using sqlplus or connect commands.
    Something like this:
    SQL> show user
    USER is "A"
    SQL> select a.col1, b.col2 from tab1 a, tab2@????? where <some condition>;
    Can this connection be done on the fly ?? I agree that a DB link will do the trick, but let's say I am not supposed to create objects on the other database.

    You need two sets of privs on the remote database to view data in that database schema:
    - create session (the schema must allow client connections to create schema sessions)
    - select on other schema tables whose contents to view
    You need a single priv on the local database, to connect to that remote schema on the other database:
    - create database link
    You also need the following in order to create the db link:
    - the remote schema name and password
    - IP address or hostname of the remote db server
    - the remote Listener's tcp endpoint port
    - the name of the remote database (SID, instance or service name)
    If you do not have these privs, you cannot use/access the remote database from the local database session via a database link.
    Other alternative methods needs additional privileges and objects on both the remote and local database sides - and are more complex (e.g. using web services, using web-enabled procedures, etc).

  • Help! Save to remote server has broken links to all images

    Okay, I (now) know this was a stupid thing to do - but surely there must be an easy way to rectify it...!?
    I usually 'PUT' the html files to the remote server, once they have been saved locally. But I keep getting frustrated with the uploading of all the dependency files, so... I 'discovered' the command 'SAVE TO REMOTE SERVER' and used this to save my html file directly to the server. I was asked if I wanted to update all the links - and I clicked YES (doh!)
    Now all my images and links are broken.
    I know it is just a single page - but it contains quite a number of links and images. Also, this page used a template and the image/links from the template within this one file are also broken. (The actual template file and all the other pages in the site are okay)
    'Undo' did not work
    Does anybody know a quick way to fix this?
    I am using Macromedia Dreamweaver MX 2004
    MANY thanks in advance,
    Rich

    I 'discovered' the command 'SAVE TO REMOTE SERVER' and used this to save my html file directly to the server. I was asked if I wanted to update all the links - and I clicked YES ...
    Sorry to say you've learn a valuable lesson the hard way.  Never, never save to remote server without first checking your work locally.
    You'll need to fix the links. Working locally and in code view, identify the path problem.  Do a Find & Replace (Ctrl+F) in the source code.  Test in browsers.  THEN when everything works properly upload to server.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How to access the remote Objects Without Db_links?

    Hi ,
    I want to know how to access the remote objects without db_link.That is i want to access a object in some other server which has different database.

    SanjayBala, just so you know that it is possible to create a database link in Oracle to non-Oracle databases in some circumstances. Look up Generic Connectivity aslo know as Heterogenous Services. With 11g Oracle has basically renamed the feature and replaced it with somethinkg named ike DG4ODBC.
    I have not spent time studying the details for DB4ODBC but with HS Oracle provided the interface and you had to obtain the necessary ODBC driver on your own. I had Oracle on AIX reading and writing to SQL Server on Windows but the developers chose to write a java program and connect to both via it. On Windows and Linux platforms the necessary ODBC drivers might be available without the requirement to go out and purchase one.
    The Oracle Open Gateway product is an advanced version of the above features with drivers for specific non-Oracle databases included like DB2 or Informix.
    HTH -- Mark D Powell --

  • How to make query base delivery monthly report  link with delivery return

    Hi,
    I have facing some problem in Sales delivery report monthly. Problem is:
    1) When i make Monthly query delivery report without any delivery return and AR Credit memo, it is Fine.
    2) When i make Monthly query delivery report with any delivery return and AR Credit memo, it is not showing proper. Its showing in report including return quantity or AR Credit memo quantity.
    So, How to make query base delivery monthly report  link with delivery return and AR Credit Memo?
    Please help me regarding this.
    Mizan
    Edited by: mizan700 on Dec 18, 2010 2:50 PM
    Edited by: mizan700 on Dec 18, 2010 2:50 PM

    Hi,
    try this.
    SELECT DISTINCt T1.CARDCODE, T1.CARDNAME , T1.DOCNUM DELIVERY#,T1.DocStatus 'DELIVERY STATUS', T1.DOCDATE 'DELIVERY Date', T1.DocTotal 'DELIVERY Total', T3.DOCNUM Return#,T3.DocStatus 'Return Status', T3.DOCDATE 'Return Date', T3.DocTotal 'Return Total',T5.DOCNUM Invoice#,T5.DocStatus 'Invoice Status', T5.DOCDATE 'Invoice Date', (T5.DocTotal-T5.VatSum-T5.TotalExpns-T5.DiscSum) 'Total Before Discount', T5.VatSum 'Tax', T5.TotalExpns 'Freight', (T5.DocTotal - T5.PaidToDate) 'Total Payment Due', T7.DOCNUM AS 'CREDIT MEMO#', T7.DOCDATE
    FROM DBO.DLN1 T0
    INNER JOIN DBO.ODLN T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN DBO.RDN1 T2 ON T2.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.ORDN T3 ON T2.DOCENTRY = T3.DOCENTRY
    LEFT JOIN DBO.INV1 T4 ON T4.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.OINV T5 ON T5.DOCENTRY = T4.DOCENTRY
    LEFT JOIN DBO.RIN1 T6 ON T6.BASEENTRY = T5.DOCENTRY
    LEFT JOIN DBO.ORIN T7 ON T7.DOCENTRY = T6.DOCENTRY
    WHERE  T1.DOCDATE >= [%0] AND  T1.DOCDATE <= [%1]
    Thanks,
    Joseph

  • ? how do I create a 'Search' system without being linked to a server ?

    Hello,
    I have a project which I am trying to make simple and would like your help.
    I need to create a 'navigation system' which at the moment is a series of Flash .swf files uploaded to a Dreamweaver HTML page.
    Now I need to get them working together like a 'tag' or a search system, but I don't want to get a server involved.
    Is it possible to create something that operates like a website but without being linked to a server?
    I'm already greatful

    you can populate your data into an html table or xml syntax and then use srpy to create a search without the need for a database.
    Herre's an example. View and study source code to create your own.
    http://labs.adobe.com/technologies/spry/samples/data_region/SuggestSample.html
    http://labs.adobe.com/technologies/spry/samples/autosuggest/SuggestSample.html

  • How can I print a Safari page without the links being printed and cover other text?

    How can I print a Safari page without the links being printed and covering other text?

    Try printing the page as PDF.
    From your Safari menu bar click File > Print > Save As PDF then print the PDF file.
    If you don't want to do it that way, reset the print system.
    Mac OS X: How to reset the printing system

  • Report/query result acting as a link to a PO document

    Hi,
    Is it possible to have T0.[U_z1] (which is always the PO docnum) from the query below to act as link (i.e: orange arrow) so by clicking it the PO would open ?
    SELECT T0.[DocNum], T0.[DocDate], T0.[U_z1] as 'nr.ZZtrans', T0.[U_Transport_nr_rej],
    T0.[DocStatus] as 'status', T0.[U_Wysylka_data], T0.[U_Wysylka_godzina],
    T0.[U_Awizacja_data], T0.[U_Awizacja_godzina]
    FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
    Any help would be appreciated.
    Thank you,
    Tomasz

    Hi Tomasz,
    Try:
    SELECT T0.DocNum, T0.DocDate,T1.DocNum as 'nr.ZZtrans', T0.U_Transport_nr_rej,
    T0.DocStatus as 'status', T0.U_Wysylka_data, T0.U_Wysylka_godzina,
    T0.U_Awizacja_data, T0.U_Awizacja_godzina
    FROM OPOR T0
    LEFT JOIN OPOR T1 ON T1.DocNum=T0.U_z1
    Thanks,
    Gordon

  • How to Query remote PC's registry by OU for 2 values and export to CSV file.

    I'm new to scripting and to Powershell but this is what I have managed to put together so far. Of course it fails. We have two custom entries in the registry that I want to query remote workstations for these values, Monitor 1 and Monitor 2. Output to a
    CSV along with the workstations name. Because of our AD structure I figured its just easier to input the OU individually as seen in the script. That portion of the script seems to work. I get the following error in bold when I run the script: I've Google'd
    and tinkered with this for a week now with no resolution and seem to be going in circles.  And yes, I had help to get this far.
    Exception calling "OpenRemoteBaseKey" with "2" argument(s): "The network path was not found.
    At C:\utils\RegMonitor2.ps1:33 char:5
    +     $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.pro ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : IOException
    Exception calling "OpenRemoteBaseKey" with "2" argument(s): "The network path was not found.
    At C:\utils\RegMonitor2.ps1:33 char:5
    +     $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.pro ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : IOException
    # 1) Searches Active Directory for all Computers under said OU
    # 2) Searches remote registry of those machines for the mentioned Monitor and Monitor2 subkeys.
    # 3) Exports CSV (Can be opened and saved as excel format later) with ordered columns Computername, Monitor1 value, monitor2 value.
    # ================================================================
    $SearchPath = "OU=XXX,OU=XXX,OU=XXX,DC=XXX,DC=XXX,DC=XXX"
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry("LDAP://$SearchPATH")
    $objSearcher.PageSize = 1000
    $objSearcher.Filter = "(objectClass=computer)"
    $objSearcher.SearchScope = "Subtree"
    $colProplist = "name"
    $colResults = $objSearcher.FindAll()
    $Store = @()
    $Hive = [Microsoft.Win32.RegistryHive]"LocalMachine";
    foreach ($result in $colResults)
    # Use $result.properties.name to retreive ComputerName
    $obj = New-Object PsObject
    $obj | Add-member -type noteproperty -name "Computername" -Value $result.properties.name
    $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.properties.name);
    $ref = $regKey.OpenSubKey("SYSTEM\CurrentcontrolSet\control\Session Manager\Environment");
    $obj | Add-member -type Noteproperty -name "Monitor1" -value $ref.OpenSubKey("Monitor")
    $obj | Add-member -type Noteproperty -name "Monitor2" -value $ref.OpenSubKey("Monitor2")
    $store += $obj
    $store | Select-Object Computername,Monitor1,Monitor2 | Export-CSV -noTypeInformation -Path "Pathtosave.csv"
    People are always promising the apocalypse. They never deliver.
    Ok, I have modified the end of the script a bit, and no more error: Instead I get an unexpected output.
    foreach ($result in $colResults)
        # Use $result.properties.name to retreive ComputerName
        $obj = New-Object PsObject
        $obj | Add-member -type noteproperty -name "Computername" -Value $result.properties.name
        $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.properties.name);
        $ref = $regKey.OpenSubKey("SYSTEM\CurrentcontrolSet\control\Session Manager\Environment");
        $obj | Add-member -type Noteproperty -name "Monitor1" -value $ref.OpenSubKey("Monitor")
        $obj | Add-member -type Noteproperty -name "Monitor2" -value $ref.OpenSubKey("Monitor2")
        $store += $obj
    $store | Select-Object Computername,Monitor1,Monitor2 | Export-CSV -noTypeInformation -Path "C:\Utils\Data.csv"
    Unexpected output:
    "Computername","Monitor1","Monitor2"
    "System.DirectoryServices.ResultPropertyValueCollection",,
    "System.DirectoryServices.ResultPropertyValueCollection",,
    "System.DirectoryServices.ResultPropertyValueCollection",,

    Hi,
    What do your registry values look like in the Monitor and Monitor2 subkeys?
    EDIT: This might help:
    # Retrieve list of computers using Get-ADComputer and process each
    Get-ADComputer -Filter * -SearchBase 'OU=Test PCs,DC=domain,DC=com' | ForEach {
    # Verify PC is alive
    If (Test-Connection $_.Name -Quiet -Count 1) {
    # Connect to registry
    $remoteHive = [Microsoft.Win32.RegistryHive]“LocalMachine”;
    $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($remoteHive,$($_.Name))
    # Open the Environment key
    $ref = $regKey.OpenSubKey('SYSTEM\CurrentcontrolSet\control\Session Manager\Environment')
    # Create an ordered hashtable with the data from string values named 'String Value One/Two' in Monitor and Monitor2 subkeys
    # You'll need to adjust these values based on your actual data
    # If you are running v2, remove [ordered] below (so the line reads $props = @{)
    $props = [ordered]@{
    Computer=$_.Name
    Monitor =$ref.OpenSubKey('Monitor').GetValue('String Value One')
    Monitor2=$ref.OpenSubKey('Monitor2').GetValue('String Value Two')
    # Create a custom object based on the hashtable above
    New-Object PsObject -Property $props
    } | Sort-Object Computer | Export-Csv .\MonitorRegistryCheck.csv -NoTypeInformation
    # The line above sorts the output object by the computer name and then exports the object to a CSV file
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • How to find DMS documents without object links in ABAP?

    How can I find DMS documents without object links,  in ABAP language?
    thank you

    Hi,
    this functionality is not available as on till date with sap dms and it's current version.
    Hope this will help.
    Regards,
    Ravindra

  • Oracle BAM without Enterprise Link?

    Is it possible to install Oracle BAM without Enterprise Link? Make it sense?
    Which cases are Enterprise Link necessary and which cases not?
    Thanks in advance
    Ana

    Yes definitely, you can very well install BAM without the enterprise link. The BAM installation asks you the components you want to install.
    Enterprise link is used to push data into ADC(for the corresponding data objects). You can utilise this component for feeding data to BAM from n number of sources. The only way to send data to BAM ADC w/o using enterprise link is through BPEL sensors. So, in case you are planning to use BAM only with BPEL sensors and nothing else. You can very well skip Enterprise Link installation.
    Regards,
    Varun R

  • How can i recover my security questions without the link to send the answers to my email?

    how can i recover my security questions without the link to send the answers to my email?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (125931)

  • How to get query execution time without running...?

    Hi ,
    I had one requirement .... as follows ......
    i had 3 sql statements . I need to execute only one sql which execution time is very less.
    Can any one help me , how to get query execution time without running that query and without using explain plan..?
    Thanks,
    Rajesh

    Kim Berg Hansen wrote:
    But you have ruled out explain plan for some reason, so I cannot help you.OP might get some answers if query was executed before - but since restart. Check V$SQL dynamic performance view for SQL_TEXT = your query. Then ROUND(ELAPSED_TIME / EXECUTIONS / 1000000) will give you average elapsed time.
    SY.
    Edited by: Solomon Yakobson on Apr 3, 2012 8:44 AM

  • JDBC Thin driver doesn't support writing data into remote database via database link

    Dear Oracle Guru:
    Please confirm: Oracle JDBC thin driver does not support writing data to remote database via database link.
    The following errors occur when trying to write data into a remote database via database link through jdbc thin driver:
    ORA-03106: fatal two-task communication protocol error
    ORA-02063: preceding line from FDBE.PAPDSRAS1
    ORA-02063: preceding 2 lines from PA
    SQL statement is a prepared statement using a SQL like: insert into mytable@pa (col1,col2) values (?,?).
    Thanks.
    null

    Thanks, Dan.
    I still think it is a driver problem, because I can do similar things in a stored procedure or in PL/SQL Developer to copy records from a local database table to a remote database table via database link (insert into mytable@pa select * from mytable). The value for distributed_transactions of our database is 10.

  • How to upgrade Robohelp X5 files to Robohelp 7 without broken links ?

    How to upgrade Robohelp X5 files to Robohelp 7 without broken links ? And also i need proper procedure for migrating Robohelp X5 to Robohelp 7 that does not affect the system performance due to .cpd file.

    Upgrading from 5 to 7 should be as simple as opening the project and I don't recall it giving any broken link problems. Is your project on your local drive rather than a network drive? Is source control involved?
    What's the basis for thinking the CPD will cause performance issues?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for