Unable to connect to SQL database through ODBC calls

I have been looking around for an answer to this, but haven't found the exact issue I'm seeing.
I have several Excel spreadsheets which have been working until recently, which use an ODBC call to a remote SQL database. The database is running, remote connections are allowed. The SQL server is in a domain which has no external trusts. Users with accounts
in this domain can remotely access the SQl databases through ODBC just fine. Users who do not have domain accounts in this domain are being denied access by their domain account, and the SQL authentication is not passed through, even though remote access is
set to allow "everyone", and the database is set to Windows authentication and SQL authentication. This worked until early this week (the spreadsheet was created in 2010), and I have been looking fruitlessly for a fix ever since. As far as I know,
no changes were made to group policy on this domain, and no changes were made to the server or database recently, except Microsoft patches. None of the patches this month looked like they would affect this.

It works locally on the server and remotely for users in the same domain. I am trying to use the SQL account and password to connect to the database, but users from outside this domain fail to reach the SQL database for authentication. It looks like Windows
authentication is not passing the SQL credentials on if the windows authentication fails. I don't know how to resolve this. The only options in SQL are "Windows authentication and SQL authentication" or "Windows authentication only". The database is already
set to the first option. Somehow, I need to set the server to allow the SQL authentication even if the Windows authentication fails.
Hi pkuti01,
SQL Server mixed mode is "Windows Authentication and SQL Server Authentication", we have to restart SQL Server service after change the authentication to mixed mode.
In your case, have you got any error message/information if you faild connect to SQL Server via ODBC? If so, please post them to us for further investigation. Furthermore, here is an article regarding steps to troubleshooting SQL connectivity issues for
your reference. Please see:
http://blogs.msdn.com/b/sql_protocols/archive/2008/04/30/steps-to-troubleshoot-connectivity-issues.aspx
If you have any feedback on our support, please click
here.
Regards,
Elvis Long
TechNet Community Support

Similar Messages

  • Unable to connect to the database through OEM

    Hi,
    ORACLE VERSION: 10.2.0.1.0
    OPERATING SYSTEM:LINUX
    I was unable to connect to my database through OEM.It is showing error like this in my OEM .
    Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
    The below is the list of errors written in the trace file .
    2009-07-13 14:55:18,351 [EMUI_14_55_18_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
    java.lang.IllegalStateException: Response has already been committed
         at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
         at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
         at oracle.sysman.eml.app.Console.doGet(Console.java:135)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    2009-07-13 14:55:20,893 [HttpRequestHandler-25640626] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,925 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,926 [HttpRequestHandler-25640626] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:20,959 [HttpRequestHandler-23946437] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,990 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:20,991 [HttpRequestHandler-23946437] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:42,047 [OmsServiceDriver thread] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,030 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,062 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,063 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:55:51,096 [HttpRequestHandler-28346522] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:55:51,127 [HttpRequestHandler-28346522] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,162 [HttpRequestHandler-32110028] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,193 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,194 [HttpRequestHandler-32110028] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)
    2009-07-13 14:56:21,227 [HttpRequestHandler-12767107] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,258 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-01017: invalid username/password; logon denied
    2009-07-13 14:56:21,259 [HttpRequestHandler-12767107] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://VTL3200DB:3938/emd/main)(ERROR = INTERNAL_ERROR)

    Invalid Connection Pool. ERROR = ORA-01017: invalid username/password; logon denied
    Don't say password is correct, if password is correct then tell us what last changes you did. did you change SYSMAN password throught alter user ...identified ... ?
    Regards,
    Taj

  • Unable to connect to DPM Database through Remote Admin Console

    Hello all,
    I have a fresh install of DPM 2012 server.  I am able to locally start the Admin Console and work with the DPM server, however when I attempt this remotely, I get the following error:
    Unable to connect to the DPM database on <database instances name> (ID: 33210).
    I have verified this is a firewall issue by disabling the firewall and connecting.  I would, however, like to create firewall rules for just the ports that are necessary, and have not been able to find the correct ports by following tutorials online.
     Any help is appreciated.
    I have attempted the tutorial here: http://blog.patricknielsen.net/2011/10/dpm-2010unable-to-connect-to-dpm.html which seemed on the spot, but brings no
    joy.
    Much appreciated,
    J

    Hi,
    The blog should have worked, but add the program exceptions in windows firewall on the DPM server, again but don't restrict the port usage.
    1. %ProgramFiles%\Microsoft System Center 2012\DPM\SQL\MSSQL10_50.<DPM SQL Instance>\MSSQL\Binn\sqlservr.exe
    2. %ProgramFiles% (x86)\Microsoft SQL Server\90\Shared\sqlbrowser.exe
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Windows 7 clients suddenly unable to connect to SQL database

    Our environment in a nutshell:
    Server1: Small Business Server 2003 R2 (Active Directory domain, it is the sole domain controller [DC])
    Server2: Dedicated to SQL Server 2005 and the SAP Business One database
    Server3: Windows Server 2003 R2 Standard Terminal Server. This provides user sessions that are the equivalent of Windows XP SP3.
    Two Windows 7 workstations: 1x 64-bit, 1x 32-bit. Both are domain joined.
    All above computers on a gigabit LAN.
    Client product is SAP Business One 2007 A (8.00.181) SP:00 PL:49
    SQL Native Client is 9.00.5000.00
    SQL Server is mixed-mode authentication, however all users use trusted Windows connections. All users with access to the product are members of an "SAP Users" domain security group.
    Normal operation is:
    Local Win7 workstations have client installed and connect over the LAN to the SQL Server instance on Server2
    Remote users log on to the Server3 Terminal Server, fire up sessions and connect to the SQL Server instance
    Up to and including Thursday, March 12 everything was working fine for all users. As of Friday, March 13 the Terminal Server users/sessions are still working perfectly but the Windows 7 workstations can no longer connect to the SQL Server instance with trusted connections. They are still able to connect if they switch to a SQL Server logon and use the "sa" user account and its password.
    Also, the users normally using the Win7 workstations can log on to the Terminal Server with their usual domain accounts, and run SAP from there, which works perfectly.
    The error the Windows 7 users are seeing:
    Connection failed:
    SQL State: 28000
    SQL Server Error: 18452
    [Microsoft][SQL Native Client][SQL Server]Login failed for user ". The user is not associated with a trusted SQL Server connection.
    Prior to each logon attempt above, the Server2 SQL Server machine logs another event to its Application Event Log:
    SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: xx.xx.xx.xx]
    Source: SQL Server instance, event 17806. From SQL Server log, Severity 20, State 2
    What I've tried so far:
    All servers have been restarted in correct order
    Running the client in Windows XP SP3 compatibility mode. No difference
    Running the client as Administrator. No difference
    Upgrading to SQL Server Native Client 11.0 via:
    Uninstall B1 client
    Uninstall v9.00 Native Client
    Install v11.00 Native Client
    Install B1 client
    Net effect is no difference
    Googling the event IDs that are being logged seems to point to:
    Expired domain account. Manually checked that the 2 users accounts are not expired and they belong to the "SAP Users" group. Furthermore, the domain accounts are still working when used in Terminal Server sessions.
    Problem with Service Primary Names (SPNs). This seems to be Active Directory-related. Again, the domain accounts normally used on the Win7 workstations work fine on the Terminal Server so I'm inclined to think AD is OK
    Other information that may be useful:
    No Windows updates applied between March 12 and 13 on either Win7 workstation
    Both Win7 workstations running Microsoft Security Essentials and the native Windows 7 firewall
    All servers running Trend Worry Free Business Security suite
    Sorry about the length of the post but hopefully it will reduce wild goose chases. Any troubleshooting ideas greatly appreciated.

    Problem found!
    It turns out it was some sort of subtle problem with Trend antivirus running on the servers.
    On all 3 servers there are 3 main protection components that are enabled by default:
    Antivirus/Anti-spyware
    Web Reputation
    URL Filtering
    What I did was to turn off all 3 components for all the servers. With Trend this can be done from the central management console. SAP then worked on one of the Win7 clients using Trusted Connection (i.e. Windows Authentication).
    Then I turned the Trend components back on, on all servers, one at a time (to try to find which component was the culprit). Here’s the funny part: I turned all 3 back on, and SAP still works on the Win7 client using Windows Authentication! I even restarted it to make sure that state of affairs persists across a restart, and it’s still OK.
    It's worth noting the problem was not solved shortly after it appeared by restarting all 3 servers. There was even a scheduled installation of Windows updates a couple of hours ago, which restarted all 3 servers again, and the problem still persisted. It was not fixed until the Trend components were globally disabled (on all 3 servers), then re-enabled.
    Trend WBFS is version 9.0, pre SP1.

  • Unable to connect the SQL database from servlet

    Hi!
    My servlet connects with an SQL server on some other machine.
    I have create the servlet and deploy it on tomcat.
    I first create this servlet on eclipse that I deploy it on tomcat manually.
    While using it form eclipse it gave no error in connecting with the server.
    But when I deploy the same code on tomcat manually and access the page it gave me an error saying
    [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
    I used the following code for cenneting the server
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   out.println("Calling For Class Name success Now calling database <br>");
                   jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=MyServerName;Database=MyDatabaseName","","");
    Message was edited by:
    nitin403

    Hi!
    Sorry for not formating my previous message properly.
    My servlet connects with an SQL server on some remote machine.
    I have create the servlet and deploy it on tomcat.
    I first create this servlet on eclipse that I deploy it on tomcat manually.
    While using it form eclipse it gave no error in connecting with the server.
    But when I deploy the same code on tomcat manually and access the page it gave me an error saying
    [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
    I used the following code for connecting the server
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    jdbcConnection = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=MyServerName;Database=MyDatabaseName","","");
    Thanx for your help in advance
    Message was edited by:
    nitin403

  • Connect to oracle database through ODBC

    Hi,
    I have oracle installed on my linux machine. I need to establish connection to the oracle database from windows.
    Regards
    Bobs

    user12119634(bobs) wrote:
    Hi,
    I have oracle installed on my linux machine. I need to establish connection to the oracle database from windows.
    Regards
    BobsNeeding to connect from a windows client does NOT automatically mean you need odbc. It depends on what app you are using.
    And please note that ODBC is NOT a substitution for the Oracle client software, it is in addition to it.

  • Unable to connect to sql server database

    i run on CMD:
    aspnet_regsql -C "Data Source  =Davidchamoun/sqlexpress : intergrated security= true" -ssadd -sstype p
    i got 
    a network-related or instance-specific error occurred while establishing a connection to sql server. the server
    was not found or was not accessible. verify that the instance name is correct and that sql server is configured to allow remote connections. (provider: SQL Network interfaces . error: 25 – connection string is not valid
    unable to connect to sql server database.
    im using sql sever 2012 express, microsoft visual studio web 2008 express.
    please help me.

    i run it as :
    aspnet_regsql -C "Data Source =Davidchamoun\sqlexpress : integrated security= true" -ssadd -sstype p
    i got the same error :
    an error has occurred . details of the exception:
    a
    network-related or instance-specific error occurred while establishing a connection to sql server. the server was not found or was not accessible. verify that the instance name is correct and that sql server is configured to allow remote connections. (provider:
    SQL Network interfaces . error: 25 – connection string is not valid
    unable to connect to sql server database.
    im using also windows 8.1
    pls help me
    ty for ur reply

  • Unable to connect to SQL Server 2008 from OBIEE 11G(on 64 bit Linux box)

    We are unable to connect to connect to SQL Server 2008 from OBIEE 11G which is on 64 bit Red Hat Enterprise Linux.
    Infrastructure: OBIEE 11.1.1.5 64bit, on 64 bit Red Hat Linux Enterprise Linux 5.6 , MS SQL Server 2008 on 64 bit Microsoft Windows Server
    Issue Description: Unable to connect to SQL Server 2008 from OBIEE11G RPD
    Details: We are unable to connect to SQL Server 2008 from OBIEE which is on a 64 bit Linux box. We created the ODBC connection on Linux box to the SQL server. Whenever we try to import metadata it throws an error that says ‘Connection Failed’.
    Here are the steps we followed to setup the ODBC connection on Linux box.
    1) We updated the user.sh file with the LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 values that point to $ORACLE_HOME/bifoundation/odbc/lib
    This is where we found the driver for SQL server SEmsss23.so.
    2) We updated the odbc.ini file with the entry for SQL server with the connection details
    SI_SQL_Server_DEV = SQL Server
    [SI_SQL_Server_DEV]
    Driver=/u001_OAS/Oracle/Middleware/Oracle_BI1/bifoundation/odbc/lib/SEmsss23.so
    Description=DataDirect 5.1 SQL Server Wire Protocol
    Address=10.230.216.52,54970
    AlternateServers=
    AnsiNPW=Yes
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    Database=SVBDW_NEW
    LoadBalancing=0
    LogonID=SIDatavalidation
    Password=~~~Password123
    QuoteID=No
    ReportCodePageConversionErrors=0
    3) We updated the IDENTIFIER_QUOTE_CHAR with single quotes instead of double quotes in the DB features of the RPD
    4) We updated the bash_profile file to point the ODBCINI variable to the path where the OBIEE odbc.ini file is present.
    Export ODBCINI=/u001_OAS/Oracle/Middleware/instances/instance1/bifoundation/OracleBIApplication/coreapplication/setup/odbc.ini
    The error in nqsserver.log file says “[nQSError: 16001] ODBC error state: IM002 code: 0 message: [DataDirect][ODBC lib] Data source name not found and no default driver specified.”

    Hi,
    Make sure SQL Configuration Manager make sure the TCP/IP enabled. please try below method
    Method 1
    Re Create a new ODBC & Oracle Bi Server DSN Configuration test it and use it in the connection pools.
    define your ODBC data source in your server where the BI Server is installed. Check your DB connections in your physical layer and make they are defined on your BI Server as well.
    Method 2:
    try using the complete TNS in below format in the datasource name section:
    (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST =DB IP)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = ORCL) ) and provide the credentials.
    Method 3:
    To use the OCI call interface you need to have oracle client DB to be installed so that you can establish a connection using that DB credentials and connect to the remote dB and then import the tables.....this is the rule of thumb.
    hope helps you.
    Thanks
    Deva

  • Error: 1021001 Failed to Establish Connection With SQL Database Server

    Hello,
    Someone you already MEETS it the following error during an essbase retrieve DLR.
    My client oracle essbase on my server is 64bit, Essbase 11.1.2.2 x64
    I run the odbc located in% windir% \ system32 \ odbcad32.exe
    "Error: 1021001 Failed to ESTABLISH Connection With SQL Database Server. See log for more information"
    Here is the log:
    Received Command [SQLListDsn] from user [admin]
    [2:50:33 p.m. Fri 28 September 2012] Local / CAS_TEST / / / 8168/Info (1042059)
    Connected from [10.100.50.2]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1013091)
    Received Command [SQLRetrieve] from user [admin]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021004)
    Connection String is generated
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021041)
    Connection String is [DSN = TEST_ORACLE; UID = ...; PWD = ...]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021006)
    SELECT Statement [SELECT from dual;] is generated
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021013)
    ODBC Layer Error: [IM004] ==> [[Microsoft] [ODBC Driver Manager] Driver's SQLAllocHandle we failed SQL_HANDLE_ENV]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021014)
    ODBC Layer Error: Native Error code [0]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Error (1021001)
    Failed to ESTABLISH Connection With SQL Database Server. See log for more information
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Warning (1080014)
    Transaction [0x780001 (0x50659d19.0xc9e78)] aborted due to status [1021001].
    When I try to go through OCI service name:
    dbServerName: port / service_name
    I have the following error message:
    Solutions2: List of members 1423.CAS_TEST.CAS_TEST September 28, 2012 2:50:15 PM CEST Succeeded
    Read SQL record September 28, 2012 2:50:35 PM CEST Failed
    thank you in advance
    Edited by: 851398 on 28 sept. 2012 06:31

    In essbase logs there is nothing special, same for windows log.
    Everything I like is log in log view eas
    [Fri Sep 28 17:52:11 2012]Local/CAS_TEST///4020/Info(1013205)
    Received Command [Get Database Info]
    [Fri Sep 28 17:52:11 2012]Local/CAS_TEST///4020/Info(1013205)
    Received Command [Get Database State]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7580/Info(1013210)
    User [admin] set active on database [CAS_TEST]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///6720/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/6720/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7304/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7304/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7572/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7572/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///8116/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/8116/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7384/Info(1013210)
    User [admin] set active on database [CAS_TEST]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///6592/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/6592/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7972/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7972/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///216/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/216/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3104/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3104/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3472/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3472/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///8112/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/8112/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///4020/Info(1013205)
    Received Command [Get Database Info]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3840/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3840/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7760/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7760/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7300/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7300/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7904/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7904/Info(1013091)
    Received Command [OtlQuerySmartLists] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3612/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3612/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///6732/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/6732/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7576/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7576/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7268/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7268/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:27 2012]Local/CAS_TEST///7556/Info(1013210)
    User [admin] set active on database [CAS_TEST]
    [Fri Sep 28 17:52:29 2012]Local/CAS_TEST///8168/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:29 2012]Local/CAS_TEST/CAS_TEST/admin/8168/Info(1013091)
    Received Command [SQLListDsn] from user [admin]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST///7564/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1013091)
    Received Command [SQLRetrieve] from user [admin]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021004)
    Connection String is generated
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021041)
    Connection String is [DSN=TEST_ORACLE;UID=...;PWD=...;]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021006)
    SELECT Statement [SELECT * from dual ] is generated
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021013)
    ODBC Layer Error: [IM004] ==> [[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021014)
    ODBC Layer Error: Native Error code [0]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Warning(1080014)
    Transaction [ 0xb50001( 0x5065c7d7.0x31ce0 ) ] aborted due to status [1021001].
    Have you an idea about the Merant driver to essbase?
    Thank

  • Essbase Studio - Failed to Establish Connection With SQL Database Server

    Hi all,
    I am new to Hyperion and am having trouble deploying what seems a simple cube in Essbase Studio.
    My environment is Windows 2003, EPM 11.1.1.2, SQL Server 2000.
    I have the following two issues which may be related.
    1. The EPM System Diagnostic tool says that Hyperion Foundation cannot connect to the SQL database.
    Error:
    Failed: Connection to database
    Error: java.net.UnknownHostException: <server name: <server name>
    Recommended Action:
    Every other EPM application is able to connect to the database. I have tried re-configuring Foundation Services and checking the config files and nothing looks wrong. I would appreciate advice on how to fix this.
    2 In Essbase Studio, I was able to connect to the database where the source data is, build the minischema and create dimensions and measures. But when I run the cube deployment wizard I get the error:
    Message: Failed to deploy Essbase cube
    Caused By: Failed to build Essbase cube dimension: (Time)
    Caused By: Cannot incremental build. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server. See log for more information
    …ODBC Layer Error: [08001] ==> [[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied.]
    I have checked the DSN as well as the connections set up within Studio, and they are all able to connect to the database. I am using the admin user for the Essbase server and have created a different user for the databases where the data resides and the shared services database. I tried using the same user all the way through and this didn’t help.
    Can you please advise what else I can check or change to resolve this issue.
    Also, can you work in EAS with cubes that are created in Studio? I tried looking at it and I got an error that the rule file couldn’t be accessed because it was created in Studio.
    After the above failures, I tried creating a cube in EIS, with mixed success. I have been able to load the members and data without errors. But when I try to view the data in the cube, I am seeing field names for the measures instead of the data itself.
    ...Definitely more questions than answers at this stage of my learning.
    Regards
    Michelle

    Michelle,
    I don't know if you found an answer to you question after so many months but I was hoping I could be helpful.
    The issue you are experience happens often when the dimension that you are getting an error on, in this case TIME, is built from a snowflake lineage and there is a bad foreign key reference. This dimension is most like high-up in your outline build process for Essbase Studio and this prevents the build from happening usually early on.
    Check your logs also. They are in Hyperion > Products > logs > essbase > essbasestudio.
    You can also make your logs more verbose by setting a configuration variable in the essbase studio server.properties file but that should only be used for debugging as it really saps performance.
    And, yes, you can of course edit an Essbase Studio deployed cube in EAS. However, any changes you make to the cube in EAS are subject to being wiped-out upon the next Essbase Studio deployment of that Applicaion/Database combo.
    If you want to provide more detail, screenshots, etc. I would be glad to help where I can.
    Cheers,
    Christian
    http://www.artofbi.com

  • I want to connect Visual foxpro database through forms6i.

    Hi ,
    I want to connect Visual foxpro database through forms6i.
    actually i want to access Visual foxpro database in forms6i and retrive and update data from forms6i.
    please help me urgently how can i do this in forms6i.
    Thanks,
    Md.Muniruzzaman Khan
    Email : [email protected]

    do the following steps for hetrogenous service
    Step 1
    Create ODBC named Access1.
    Step 2
    Go to urs inithsodbc.ora file which reside at
    ORACLE_HOME\hs\admin\inithsodbc.ora
    and overrite by
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Access1
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Step 3
    Add the following entry to the tnsnames.ora file:
    ACCESS1.WORLD =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=ACCESS1))
    (HS=OK)
    Step 4
    Add the following entry into the listener.ora file:
    (SID_DESC=
    (SID_NAME=ACCESS1)
    (ORACLE_HOME=D:\Oracle)
    ---Define urs oracle home path in mine case it is at D:\Oracle--
    (PROGRAM=hsodbc)
    Step 5
    Reload the listener from contol panel services yours listener service
    Step 6
    Create a database link using:
    CREATE DATABASE LINK access1.world CONNECT TO "MyUser" IDENTIFIED BY "MyPassword" USING 'ACCESS1.WORLD';
    Step 7
    Connect to scott/tiger
    Query the table using:
    SELECT *
    FROM [email protected];
    Step 8
    Same you can connect to urs forms and write above sql in cursor
    Acknowledge me.
    Khurram Siddiqui

  • Unable to connect to a database

    Hello
    I am trying to connect to a database, but it comes up with an error message. the code is shown below.
    Error is as shown below
    init:
    deps-jar:
    Compiling 1 source file to C:\Documents and Settings\prozario\AssetManage\build\classes
    compile-single:
    run-single:
    Exception in thread "main" java.lang.NullPointerException
    at assetmanage.DBConnectionManager.createStatement(DBConnectionManager.java:37)
    at assetmanage.Main.main(Main.java:36)
    Unable to connect to database java.sql.SQLException: No suitable driver
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)
    //////////////////////////////////////////////////THE CODE////////////////////////
    package assetmanage;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class DBConnectionManager {
    Connection dbConnect;
    Statement dbStatement;
    public void loadDriver(){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch (ClassNotFoundException e){System.out.print("Unable to load driver" + e);
    public void connectDB(){
    try{
    String dbName = "userInfo.mdb";
    String url = "jdbc:odbc" + dbName;
    Connection dbConnect = DriverManager.getConnection(url);
    } catch (Exception e){System.out.print("Unable to connect to database " + e);
    public void createStatement(){
    try{
    Statement dbStatement = dbConnect.createStatement();
    }catch (SQLException sqle){System.out.println("Unable to create statement" + sqle);
    public void createTable(){
    String creaTable = "CREATE TABLE tblPINCODE (PINCODE INT NOT NULL)";
    try{
    dbStatement.executeUpdate(creaTable);
    }catch (Exception e){System.out.print("Unable to create table " + e);
    Can anyone help please?

A: Unable to connect to a database

This works well for me to connect to a Microsoft Access Database. Perhaps it will help. I always appreciated getting some actual help rather than cryptic "don't you know what you're doing, go look" comments. If I knew what I was doing wrong I wouldn't be posting. Therefore, I hope this is helpful and not cryptic!!
This works well for an MS Access Database.
import java.sql.*;
import java.io.*;
public class DBConnection
private static Connection con = null;
public static void setConnection(String path) throws SQLException
DriverManager.registerDriver (new sun.jdbc.odbc.JdbcOdbcDriver());
String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
database+= path.trim() + ";DriverID=22;READONLY=true}"; // add on to the end
File file = new File(path);
if (!file.exists())
throw new SQLException ("\nFile \"" + path + "\" not found");
con = DriverManager.getConnection(database);
public static Connection getConnection()
return con;
public static void closeConnection()
try
con.close();
catch (SQLException x)
System.out.println("Error: " + x);
// This now is a call from any class to the DBConnection class above.
String filename = "F:/Your own Path.mdb";
DBConnection.setConnection(filename);
Connection conn = DBConnection.getConnection();
// Somewhere in your code, close the conn connection

This works well for me to connect to a Microsoft Access Database. Perhaps it will help. I always appreciated getting some actual help rather than cryptic "don't you know what you're doing, go look" comments. If I knew what I was doing wrong I wouldn't be posting. Therefore, I hope this is helpful and not cryptic!!
This works well for an MS Access Database.
import java.sql.*;
import java.io.*;
public class DBConnection
private static Connection con = null;
public static void setConnection(String path) throws SQLException
DriverManager.registerDriver (new sun.jdbc.odbc.JdbcOdbcDriver());
String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
database+= path.trim() + ";DriverID=22;READONLY=true}"; // add on to the end
File file = new File(path);
if (!file.exists())
throw new SQLException ("\nFile \"" + path + "\" not found");
con = DriverManager.getConnection(database);
public static Connection getConnection()
return con;
public static void closeConnection()
try
con.close();
catch (SQLException x)
System.out.println("Error: " + x);
// This now is a call from any class to the DBConnection class above.
String filename = "F:/Your own Path.mdb";
DBConnection.setConnection(filename);
Connection conn = DBConnection.getConnection();
// Somewhere in your code, close the conn connection

  • Unable to connect to datasource:(database not running)

    I was running this example Car Application.
    I downloaded SQL Studio and wanted to check if the db tables are created or not.
    Tried to open through SQL studio but got the following exception as a pop-up:
    <b>
    [SAP-AG][SQLOD32 DLL][SAP DB]unable to connect to datasource:(database not running).return-code:SQL_ERROR(-709)</b><i></i>
    I believe my J2EE engine is running fine with all the three boxes in green.
    Does anyone went through this kind of situation?
    Please help me in this regards.
    Thanks
    -Sudheer

    Nitzan,
    Thanks for the reply.
    To be honest, I didnt understand what u meant.Iam a beginner trying to learn N/W though Iam in J2EE for a long while.
    Here is what I have done so far:
    Installled WAS with developer studio ran this Car rental application.While doing this I installed SQL studio to check if the tables r created or not.
    I dont have any back end database like oracle or SQL server installed.The car application example documentation doesnt say so.
    This is what I have given in persistant.xml:
    Datasource Name:CAR_RENTAL_POOL
    Database Vendor: SAPDB
    I dont have visual admin installed.
    Please let me know if this makes any sense.
    And also there is another problem with car reservation application:
    The application seems to running fine except withe the saving part:
    when I tried to add a car reservation, there is no response , it's not getting added to the DB.There are no error messages on screen. The screen is same before and after.
    Any help would be greatly greatly appreciated.
    Thanks

  • How can I connect to the database using ODBC within excel.

    Hi,
    How can I connect to the database using ODBC within excel and just refresh the data when needed.
    Thanks,
    Priyanka
    Edited by: user554934 on Jun 9, 2009 2:53 AM

    This is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
    Thank you,
    Tony Miller
    Webster, TX

  • Unable to Connect to the database in RCU, Oracle11g XE on Laptop/Windows

    Software downloaded unzipped and installed from OTN
    OBIEE foundation 11.1.1.5
    Repository Creation Utility 11.1.1.5
    Oracle Database Express Edition 11.2
    Issues
    1. I installed Oracle 11g express edition. I am able to start/stop and run sql against the database however the homepage ("get started " accessed from Start > Programs > Oracle Database 11g XE > Get Started) does not work. This i will post in a separate thread but I am writing this anyway just in case it has some relevance.
    2, This is the one I need help with. Can you confirm that these are the parameters when I hit the "create" option in RCU because I get the error message saying I cannot connect.
    Hostname:This is the same as the hostname, when I go to cmd prompt like below
    C:>hostname<enter> That is what I am using.
    Port and Service :Can you confirm, Port = "1521" and Service = "XE". 1521 is the Database listener port when I installed Oracle 11g Database Express Edition. I am not putting the quotes in the boxes in the RCU.
    Should the service be OracleServiceXE - i have tried it but does not work.
    Anyway I get this message:
    Unable to connect to the database using the provided details.
    Please enter a valid hostname and port or check if the listener is up and running.
    Any ideas appreciated.
    By the way My lsnrctl status returns the following: (meaning the listeners are up!0
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\dir>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 13-MAR-2012 13:44
    :03
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Start Date 13-MAR-2012 10:55:11
    Uptime 0 days 2 hr. 48 min. 51 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\a
    dmin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\myspecifichostname\listene
    r\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myspecifichostname)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myspecifichostname)(PORT=8080)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Edited by: ideakat on Mar 13, 2012 1:57 PM

    Hi,
    Like Abhi said, check your tnsnames.ora file to check the port number and service name is correct or not for the Express Edition database you have installed.
    and when you are running RCU installer, Please give system adminstrator account of OracleXE like 'sys' or 'system' account with confirmed port number and service name.
    Hope this helps.
    Regards,
    Bose
    Edited by: Bose on Mar 16, 2012 11:42 AM
    Edited by: Bose on Mar 16, 2012 5:35 PM

  • Maybe you are looking for

    • How do I stop automatic downloads of entire HD TV seasons on EVERY computer?

      When I purchase an HD TV season on my iPad, it automatically unavoidably downloads every single episode on all four of my Macs with the same iTunes account. This has resulted in multiple warnings from my ISP about my bandwidth limit. I have no desire

    • Time Machine has stopped backing up to my Seagate Backup Plus.

      My external drive is formatted for Mac OS and has worked since January with no problem.  Now, all of a sudden, it will not backup and I cannot see any of my backups for the last 30 days.  I have tried using disk utility to verify the disk, but keep g

    • SQLFORMS/REPORTS 6i  still supported on DB version 10.1.0.5?

      hi, do you know if Oracle is still supporting SQLFORMS/REPORTS 6i on an Oracle DB version 10.1.0.5? What is the latest working version of the DB that can be used with SQLFGRMS/REPORTS 6i thank you, Cami

    • Clearing of foreign vendors

      Dear all, We have certain foreign vendors for which transaction  is already completed.Balance is laying zero in their accounts.Now when we are clearing those  open items the system takes  the exchange rate of  current date. In which we are not able t

    • About XPATH ARRAY expressions

      Invoking "capescience.GlobalWeather" I have to compose 2 services in two different port Type of the same partnerLink. First One to retrieve the local CODE of an Airport, second one to use thise code to invoke Weather Report of the Weather Station of