Connect to SQL Server using Windows authentication

Allows us to connect to the SQLServer database via dblink using authentication SQL Server (Oracle 10 g DB on Windows server) HS, sqlserver db is moved to a new server and there it is configured to use Windows authentication only. Is it possible to use the dblink/HS with Windows authentication on the side of SQLServer? Oracle support answer is no, but I thought I'd ask around...

Thank you!

Published by: user11968137 on March 28, 2013 11:42

Gateway for ODBC 10 g or 11g is supported only with SQL Server, not Windows authentication authentication.

If your SQL Server is configured only for authentication on Windows, you have no other way to change the configuration of the SQL Server to support mixed Mode (Windows authentication and SQL Server authentication).

Kind regards

Mireille-

Tags: Database

Similar Questions

  • Connection to the SQL Server using Windows authentication

    I would use SQL Developer (v1.5) to connect to an instance of SQL Server 2005 uses windows authentication. I downloaded jtdw - 1.2.jar and set its e path as a preference in the TOOLS\Preferences Database\Third Party JDBC Driver dialog box.

    I was able to connect to SQL Server 2005 successfully if I use SQL authentication and provide a user_id and password.

    It is my preference to use windows for connection authentication. However, when I try to connect, I get the following error:

    Failure - i/o Error: library of native SSPI is not SSO unloaded. Check the system java library path property

    I have no idea what it means. I'm not a java programmer and I am very new to Oracle in general if someone can give me some guidance right ahead as to what lack me?

    Thank you

    After reading the thread referenced by Jim Smith (thanks!), I wanted to copy the information in this topic... and update to say that these same steps for SQLDeveloper 1.5.1 & SQL Server 2005. Don't miss step 5, if you want to enable NT authentication.

    {Of referenced post}

    SQL Developer for MS SQL SERVER 2000 Setup

    (1) install/extract SQL Developer 1.2.1 in C:\Program Files\Oracle
    Do {$sqldevhome} = C:\Program Files\Oracle\sqldeveloper

    (2) get the Pluggin JDBC SQL SERVER (jtds - 1.2.2 - dist.zip) of:
    http://sourceforge.NET/project/showfiles.php?group_id=33291&package_id=25350

    (3) unpack jtds - 1.2.2 - dist.zip
    Created: jtds - 1.2.2.jar
    \x86\SSO\ntlmauth.dll

    (4) copy the jtds - 1.2.2.jar in:
    {$sqldevhome} \jlib directory.

    (5) copy the dll in the \x86\SSO subdirectory ntlmauth.dll in:
    {$sqldevhome}\jdk\jre\bin\ntlmauth.dll

    (6) with SQL Developer:
    Go to the Menu 'tools '.
    -Preferences...
    Expand the "[+] database
    Choose "third-party JDBC Drivers.
    Click on 'add an entry '.
    Then locate your copy of '{$sqldevhome}\jlib\jtds-1.2.2.jar '.
    Note: Use the name of the jar file, not its parent for the input directory.

    7-restart SQL Developer and try your SQL Server 2000 (or SQL Server 2005) link

  • Developer SQL 4.1.2 uses Windows authentication to connect to SQL Server

    I'm using SQL Developer 4.1.2 and tries to connect to SQL Server through Windows authentication.  If I use SQL Server authentication, everything works so the jTDS driver appears to be installed and working properly (I use jTDS 1.2).  When I switch to Windows authentication, I get the error

    Status: Failure-Test failed: IO error: failure of the SSO: library Native SSPI has not loaded. Check the system java.library.path property.

    Of course, I googled the error and came up with dozens of people asking the same question and is told to move the ntlmauth.dll from the \SSO directory to the jTDS directory in various other directories.  That seems to work for others so for the last few hours, I was copying the DLL in each directory that I can find someone on the internet suggesting without success (I do restart SQL Developer each time).  In the Directory SQL Developer, I tried

    Developer c:\Oracle SQL 4.1.2.20.64\sqldeveloper

    Developer c:\Oracle SQL 4.1.2.20.64\sqldeveloper\sqldeveloper\bin

    Developer c:\Oracle SQL 4.1.2.20.64\sqldeveloper\jdk\jre\bin


    On the off chance that something was still making reference to a directory of a SQL Developer previous install, I put it in the same directories in the front THAT SQL Developer installed on this machine.  On the theory that she was using the FMV of the machine rather than that I downloaded and installed with SQL Developer, I advanced and dropped the DLL in the directory \bin for each installation of Java, that I could find on the system.


    c:\Program Files\Java\jrd1.8.0_45\bin

    C:\Program Files (x86)\Java\jre1.8.0_45\bin

    C:\Program Files (x86)\Java\jre1.8.0_60\bin


    Still no luck.  SQL Developer, I went to help. Everything | Properties and checked that the first way to java.library.path is what I expected and where I dropped the ntlmauth.dll first.  I even put it in c:\windows and c:\windows\system32 just to be sure.


    Java.Library.PathC:\Oracle SQL Developer 4.1.2.20.64\sqldeveloper\sqldeveloper\bin. C:\WINDOWS\Sun\Java\bin; C:\Windows\System32; C:\WINDOWS;


    Despite the DLL just about everywhere that I guess I would need to have it, I still get the same error.  I must be missing something obvious.  But at this point I was looking at it so long that I just can't see it.


    Justin



    I use SQL Developer 4.1.2 and tries to connect to SQL Server through Windows authentication using jTDS 1.2

    Not sure if this has anything to do with your problem, but according to jTDS - SQL Server and Sybase JDBC driver / newsand since SQL Developer 4.1.x requires Java 8, '' you should stick only to jTDS 1.2 If you need to use a version of Java before Java 7 '' . Perhaps using a version 1.3.x jTDS driver might help.

  • Connection to a SQL database with Windows authentication in a workflow?

    So far, I had a lot of chance to connect to and reading SQL DBS of workflows using SQL authentication (MS SQL). What I'm trying to do now is to connect to the databases same by using Windows authentication and I'm coming up with nothing.

    Someone at - it examples of correct connection URL and or the configuration tips to make this work? Can the vCO to connect using JDBC and Windows Auth at all in a workflow?

    Thank you!

    Colin J.

    Certainly, the best thing to do is to use the URL JDBC workflow Builder.

    It may take a little trial and error:

    If your stand-alone SQL Server, is not in the field, use the server for the Domain domain name.

    Field, use the domain for the domain domain

    If you have an instance, specify it, otherwise leave this field blank.

  • Error connecting to SQL Server Express using jTDS

    Hi all! It's my first time using JDBC, and I followed some examples online to establish a test to my internal DB SQL Server Express connection. Here's the Basic code that I use (with security identification information redacted, of course):
    public static Connection getConnection() throws Exception {
        Connection conn = null;
            
        try {
            Class.forName("net.sourceforge.jtds.jdbc.Driver");
            conn = DriverManager.getConnection("jdbc:jtds:sqlserver://WINSERVER/database", "username", "password");
        }
        catch(SQLException e) {
            throw new Exception("Error connecting to database: " + e.getMessage());
        }
        catch(ClassNotFoundException e) {
            throw new Exception(e.getMessage());
        }
    
        System.out.println("Connected to database");
        return conn;
      }
    I get this error after 20 seconds: "network error IOException: Connection timed out: connect. I understand this is usually caused by a bad port, username or password, but I can connect using the exact same credentials via SQL Management Studio Express. I tried to insert port number: 1433 after the name of the server and the name of the comic, but no joy. Can someone tell me what is the 'official' syntax, or how I would go about solving this problem? Thanks in advance.

    Zach

    I get this error after 20 seconds: "network error IOException: Connection timed out: connect. I understand that this is usually caused by a bad port, user name or password.

    Fairly certain that most of the last part of this is incorrect since your instance information.

    If you connect to a server using what anyone, even remotely, as a true lan so if the server is not listening you will get an immediate connection error - saying something to the topic "connection refused." And if your creds user do not match you will get a different error.

    A timeout after 20 seconds means that the network request is not being served at all, by the other other end.

    And that suggests a firewall problem.

    A simple test is the following
    -Log in as the same user that the application is running as. If you are working on the app, it's you. Is there a sort of JEE or service/cron, then it is very likely that you.
    -Open a console window.
    -Use telnet to connect using EXACTLY the same hostname and port that you expect. An example

    Telnet 1433 WINSERVER

    If telnet is successful it will give you a white screen (or something similar). Failure will give an error.

    The above process verifies that your box and the credentials of the user of the process (no connection) can successfully access the db box. Until it works your java code is not.

    Common default for SQL Server ports 1433 and 1434. It can be configured to use anything else.

  • OLEDB connection to sql server 2005 using ssis 2008 problem

    Hello

    I'm trying to create the oledb connection to sql server 2005 to help using ssis 2008.

    But I get an error message "cannot generate SSPI context".

    More information: -.

    Using SSMS, I can connect to sql server 2005 and the network protocol option, I have to choose is "NamedPipes".

    Are there special properties that I need to put everything in creating some oleb connection via ssis 2008.

    Please help as I am not able to find a solution on technical Web sites.

    I changed the connection oledb connection string.

    Name additional SPN, which is the same as the name of the server and it worked.

  • Windows 7 64 bit Pro connects to SQL Server on the Windows Server 2008 R2 Standard domain

    I put upgraded to Windows 7 Professional computers to Windows XP Professional, but I have a problem with getting one of software programs management of stock that allows us to connect to our SQL Server 2008 R2 Standard Windows on new Windows 7 computers.

    Our computers are connected to a domain, and therefore SQL Server. Computers Windows XP allows each user to standard domain to connect and to connect to SQL Server via the stock management software.

    But on the standard domain of Windows 7 Pro computer users unable to connect to SQL Server, but administrator accounts of area on the same Windows 7 Pro computers can connect to SQL Server through the inventory control program.

    I have set up the alias of the server, the server name and port number via the SQL Server Client Network utility ( cliconfg.exe ) so I know this isn't the problem because it works when I'm logged on as a domain administrator.

    There seems to be something to do with permissions of user domain and Windows 7 Pro. There seems to be a change from Windows XP Pro to Windows 7 Pro that does not allow standard domain users to connect to a SQL Server. But I can't find anything about and cannot practice how to solve this problem, except to make all users, domain administrators that is obviously not a good thing to do. So basically I think I need to create a group policy that allows users to connect to SQL Server, but I have no experience in doing this and don't know where to start.

    Thank you for all that you guys help and I hope someone can give me the solution to this problem.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • KB2760411, KB2760588, but now "can NOT CONNECT to" SQL Server!

    Today I faced with the same Windows Update problems as many people - with KB2760411 and KB2760588 constantly reinstall - and try to resolve which included several reboots - system
    ())

    BUT now... a serious problem on one of these machines: cannot access SQL Server!
    Fortunately, I did not run these updates on any * production * machines (I do updates on development machines, first) - this is a development machine - but I still need to get working SQL Server of this machine!

    I tried to use a Windows login to connect and tried to use a SQL Server to connect user, and what it in either, looks like the same message:
    "Cannot connect to ."
    A network-related or instance-specific error all by establishing a connection to SQL Server. The server is not found or inaccessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - could not open a connection to SQL Server) (Microsoft SQL Server, error: 2)

    Note that for windows, this server running Server 2003 (this is why I chose the value of the drop down menu 'windows xp', below).
    and for sql server, run SQL Server 2005.

    Help!?

    ALSO NOTE: I KNOW THIS ISN'T A "NETWORK ERROR."
    because I get the same message when I remote desktop on the server and try it.
    I did try to look in the windows Server 2003 event viewer, but saw nothing relevant under the security, system or Application.

    When I tried it with a sql server login, I clicked on "Show technical details" and got the below (blank lines removed and replaced with the name of the server):

    ===================================
    Unable to connect to .
    ===================================
    A network-related or instance-specific error all by establishing a connection to SQL Server. The server is not found or inaccessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - could not open a connection to SQL Server) (.Net SqlClient data provider)
    ------------------------------
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
    ------------------------------
    Error number: 2
    Severity: 20
    State: 0
    ------------------------------
    Location of the program:
    at System.Data.SqlClient.SqlInternalConnection.OnError (SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning (TdsParserStateObject stateObj)
    to System.Data.SqlClient.TdsParser.Connect (ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean ignoreSniOpenTimeout, encrypt Boolean trustServerCert, Boolean, Boolean integratedSecurity, SqlConnection owningObject)
    to System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin (ServerInfo serverInfo, String newPassword, ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject, Boolean)
    at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover (String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
    at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist (SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
    to System.Data.SqlClient.SqlInternalConnectionTds... ctor (DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
    at System.Data.SqlClient.SqlConnectionFactory.CreateConnection (DbConnectionOptions options Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)

    at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection (DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
    at System.Data.ProviderBase.DbConnectionFactory.GetConnection (DbConnection owningConnection)
    at System.Data.ProviderBase.DbConnectionClosed.OpenConnection (DbConnection outerConnection, DbConnectionFactory connectionFactory)
    at System.Data.SqlClient.SqlConnection.Open)
    to Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection (UIConnectionInfo above, IServerType server)
    at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser)

    Thanks Nirmal for the acknowledgement of receipt.

    As you can see, we ended up find us the answer.
    (BOWL is not same document how to grant "Log on as a service", under Server 2008 R2, WHEN ON THE DOMAIN CONTROLLER.)  BOWL documents which fully Server 2003, but only partially for Server 2008 R2.)

    But we are not given the opportunity to "mark as answer" on our own solution.
    If YOU think that the INFORMATION we posted had value, YOU may mark as answer.

    The TechNet link:
    Unable to connect to SQL Server... (includes advice in response: measures to grant permissions in Active Directory, the domain server * RUNNING SERVER 2008 R2 *).

    Thanks again.

  • Access DB in SQL Server using SQL Dev 3.2.2

    Could someone tell me how to set up SQL Dev 3.2.2 to access a SQL Server database. I am trying to connect to SQL Server 2005
    I tried to install the driver, JTDS JDBC of updates, but apparently not have installed anything.
    I have donwloaded a driver JTDS directly and tried a few statements used on the old version of SQL Dev, but when I copy the JAR files and ddl to the bottom of my window no longer works, once I have delete the connections I get it back.

    Any help would be greatly appreciated

    Paul

    Published by: Trotty on December 10, 2012 11:22

    I often have problems to install third party JDBC drivers use check for updates. The downloaded files are of length zero.

    To manually install...

    Download jtds 1.2. Later versions are not supported.

    Place the jar somewhere.
    In sqldeveloper, go to tools | Preferences | Database | Third of JDBC drivers
    Click Add entry...
    Navigate to which you've placed the jar file and select it. Click OK and close the Preferences dialog box.

    The new connection dialog box should now include tabs for SQL Server and Sybase.

  • Access to SQL Server on Windows Server 2008 guest of Windows 7 comments

    I am to evaluate VMWare workstation, and so far it looks pretty nice.  However, I cannot access SQL Server and hope someone can help out me.  Here is my configuration:

    -Windows SBS 2003 Standard physical server acting as my domain controller

    -Windows 7 Ultimate 64-bit physical acting as my host

    -Windows 7 Ultimate 64 bit comments development machine that needs to access SQL Server

    -Windows 2008 R2 Enterprise with SQL Server 2008 R2 Developer comments

    I connect on all computers with the same domain account that is a local and domain admin on all machines.  I use the same connection of brideged to the network adapter that connects to my domain name on the two guest computers.  The Guest Windows 7 can see files in actions on Win2008 guest.  However, in sending SMS on reviews of Win7, I can't connect to the instance of SQL Server on the guest Win2008.  I tried to disable the firewall on the Win7 host and guest Win2008 and it does not help (I tried initially just add the exceptions recommended Win2008 firewall but does so as a test, I have completely disabled the firewall, but still no dice).  Since the guest of Win7 can see the actions on the guest Win2008 I know there is some sort of communication here, but something is missing for SQL Server.

    Thank you.

    If you have connectivity between VM then basic network isn't really a matter of VMware itself.

    I had Google troubleshoot the connection to SQL Server 2008 or have a look at measures to resolve SQL connectivity issues.

  • Cannot connect to pop server of windows Messaging.

    Cannot connect to pop server of windows Messaging. Download the following error msg.:Account: 'pop.att.yahoo.com', server: 'pop.att.yahoo.com', Protocol: POP3, server response: '-ERR [AUTH] username/password invalid ', Port: 995, secure (SSL): Yes, Server error: 0x800CCC90, error number: 0x800CCC92

    Hello

    I suggest you to refer to these links and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-mail-setting-up-an-account-from-start-to-finish

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Windows-Mail

    It will be useful.

  • connection between sql server and java

    someone please tell me how to connect to sql server with java

    Welcome to the forums.

    The forums are a research tool very useful - by using the search box you will see near the top right.  You will find that most of the questions that ask you, which, have already been asked on the forum, so it pays to research frist - that way you get a faster response and you can find other interesting things.

    In this case, I did a quick search using SQL Server and found these threads that will probably help:

    http://supportforums.BlackBerry.com/T5/Java-development/database-connectivity-SQL-Server-2008/m-p/60...

    http://supportforums.BlackBerry.com/T5/Java-development/SQL-Server-connection-in-BB/m-p/416391#M8239...

  • Installation of SQL server on Windows 8

    How to install SQL server 2008R2 on windows 8?

    Please give me the step by step procedure.

    There are special considerations for installation of MS SQL Server on a computer desktop/workstation. Please see the following,

    Please post back with specific questions you have after trying the suggestions and requirements that lying to the breast.
  • How sqlcl can connect to sql server

    Sqlcl can be used to connect to sql server?

    If so, are there references?

    No, Oracle database only.

  • Connection to SQL server 2012 (with Alwayson) of BI Publisher

    How to connect to SQL Server BI publisher 2012 using a headset and connect to a readonly database. I need to know if we can use the 'ApplicationIntent ReadOnly ="parameter. Also, can I install Microsoft SQL Server jdbc 4 on WLS? Please let me know

    I am able to do this work by installing the MS sqljdbc4 on weblogic and specifying the readonly parameter.

Maybe you are looking for

  • How can I scan more than a specific folder?

    For example, I want to scan in a document to the printer, but want him to be in the Outbox folder. Then I want to scan another document, but I want him to be in the B file. I know how to create a permanent destination for my scans, what I want to kno

  • Call dynamic sub question vi

    Using the vi in the attached photo, I try to call the sub vi several times, each time should open another instance. But I can only open an instance during the first use. The 2nd time will give the error as below. LabVIEW: The VI isn't in a State comp

  • left mouse Botton does not not on my laptop

    The botton by clicking left on my laptop suddenly stop working. It does absolutely nothing when I click nothing happens I tried to go to the control panel-other currencies-mouse... but then mouse that everything seems fine so I know not what happened

  • can not find the drivers for my notebook

    Hi all I use a HP note book computer but cannot find any driver softwhere using the official website of hp has used my product number and serial number but not show it please help me for that.i m using windows 7. Product number: E4X76PA #UUF Serial n

  • HP C4780 unable to see WIFI

    I have the printer for a little over a year now and has always worked well.  All of a sudden, it does not connect to the WiFi at home.  Any suggestions?  I ran the test on the touchscreen and he does not see a wifi available.  I have 2 different wifi