Solved

SQL Server Linked Server Using Oracle OPS$ Windows Authenticated Account

Posted on 2016-10-13
7
68 Views
Last Modified: 2016-10-14
I would like to create a Linked Server from a SQL Server 2008 Database to an Oracle 11g Database using my OPS$ Windows Authenticated account.

However, no matter what I try it doesn't want to work.  It seems to expect a password, but neither leaving the Password blank, nor setting it to slash (/) seems to work.

Is this not allowed?  If it is allowed, how do I go about establishing the link?

Thanks.
0
Comment
Question by:koughdur
  • 3
  • 2
  • 2
7 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 41842921
I'm strictly an Oracle guy and know nothing about SQL Server and how it all works.

I assume you can connect directly to Oracle from your Windows user using / using sqlplus or similar Oracle tool?

If so, that tells me that the SQL Server link uses some other user.  Likely the service owner running SQL Server.  It would probably need to be that user that needs an OPS$ account.

You can have the Oracle DBA check the listener's log file or v$session to see what user SQL Server is using to connect with.
0
 
LVL 47

Expert Comment

by:Vitor Montalvão
ID: 41843474
It is possible for an Oracle database having a Windows Login?
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 41843484
Oracle can use OS Authentication.  Basically if the user has been authenticated in the OS, Oracle doesn't challenge the connection.

It is a security issue but it has its place at times.  It can save people from hard-coding usernames and passwords in things like scripts.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 47

Expert Comment

by:Vitor Montalvão
ID: 41843490
Oracle can use OS Authentication.
Then it's only depending on the Linked Server configuration. In the Linked Server properties, go to Security and enable the option for "Be made using this security context" and provide the correct credentials.
0
 

Author Comment

by:koughdur
ID: 41844359
Vitor,

I tried all of the different ways to connect and everyone failed.  The SQL Server interface appears to support having a different user establish the connection other than the sys admin or the user who owns the schema.  However, it seems like Microsoft forgot to support Oracle Windows Authentication, because they don't understand a blank or '/' password entry.
0
 

Author Closing Comment

by:koughdur
ID: 41844377
It turns out I'm a complete idiot.  I use a different login for that computer which doesn't have a windows authenticated account on the Oracle database.

Duh.

Your answer got the light bulb to go off and make me realize that.

Thanks.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 41844403
Glad to help!

and we ALL have "duh" moments.....  ;)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server Generate Scripts Fails 5 34
query execution hang 5 28
Query Syntax 17 32
Alternative of IN Clause in SQL Server 3 18
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question