I have downloaded Oracle SQL Developer from Oracle website. I have extracted the files in C: drive and executing the program from there. I am trying to connect to a database using TNS which is successful when using SYS login. I then created a user as per my AD login "DOMAIN\USERNAME" and given proper roles , access etc. When I try to create a new Connection in SQL Developer using OS Authentication, I get the Ora 01017 error. This login is set to "identified externally"
However, if I use the SQL Developer that comes with Oracle 11G Client then it works well for OS Authent. I want to use the latest SQL Developer with OS Authen I downloaded but stuck as it gives the ora01017 error.
has anyone seen issue like this? also what would be the recommended setting for remote_os_authent and sec_case_sensitive_logon in case these are causing the issue?
Related
Hi i am trying to install oracle, i installed completed but while is open the database control- orcl , error is coming in browser that " Your connection is not private".
First of All Oracle doesn't provide web interface so don't try to open on browser. and if don't know how to create DataBase than you should watch this video
https://www.youtube.com/watch?v=hoMiy5vlhU4
I know web interface for MySQL and MSSQL but i don't know any web interface for Oracle 11g.
I setup a small asp.net site with CrytsalReportViewer web component (V13). The display of reports works well and now I would like to refresh the data in the report.
The report was created with Oracle ODBC connection and works on my PC. When I try to refresh data on the asp.net web site, which runs on WinXP (32Bit), CR shows me always a dialog to enter/verify db values like server name, user and password.
The DB values are correct and the Oracle ODBC Client (10.2.0.1) 32Bit is installed and configured. I can tnsping my database and the ODBC connections works well too. It looks like CrystalReports cannot find the ODBC which is specified in the report although the ODBC connection with this name exists.
Any idea what I can check to make it work?
Is there any logfile of CrystalReportViewer component to see why CR cannot connect?
Thanks in advance,
AlexS
I Got it. After installing another Oracle client (11g R2) it works perfectly. It seems that old Oracle client 10.2.0.1 is not full comapatible with the current CrystalReportViewer version.
My challenge is exactly as described here: Why is the SQLite provider missing from the Server Explorer Add Connection dialogue? albeit mine is for VS 11 Beta. An excerpt is as follows:
"I am following the article Using SQLite Embedded Database with Entity Framework and Linq-to-SQL, and have tried installing the SQLite provider, first using the System.Data.SQLite NuGet package, and then by installing the provider via the Setups for 32-bit Windows (.NET /Framework 4.0) installer package (for v1.0.79). After both installs, and a system restart, I still see no SQLite Database File provider in the Add Connection dialogue from Server Explorer.
I can proceed by manually creating a connection string and using external tools to create my SQLite database file, but I still would like to know what is wrong why I do not have the advertised design time support for SQLite despite having installed the latest provider. What could be wrong here?"
Please can anybody help with VS11 SQL Lite Integration?
Today is my first day trying to use Oracle databases in Asp.NET so I have no idea of what I need to do.
I have added this code
Dim oOracleConn As OracleConnection = New OracleConnection()
oOracleConn.ConnectionString = "Data Source=xxxxx;User Id=yyy;Password=psw;"
oOracleConn.Open()
Response.write("Connected to Oracle.")
oOracleConn.Close()
oOracleConn.Dispose()
End Sub
But it gives me the error
Type 'OracleConnection' is not defined.
Now i've had a look on the internet and it says that it may be the reference to the DLL that is missing?
I know I have got a DLL reference in my page and I don't think I even have the DLL anywhere on my server.
Where do I get this DLL from?
I've downloaded the ODBC .NET data provider but this didn't seem to help.
I've tried to add a reference in Visual Studio but I can't find the Oracle client reference in the list.
Any ideas?
Thanks
The Oracle recommended method is to use the Oracle Data Provider for .NET
You'll need an Oracle Client that is compatible with the version of the database you are using installed on your dev machine and the web sever machine.
There are some quirks with how you have to specify the database connection string. Some kind internet soul has documented the database connection strings for the oracle providers.
The oracle client has a file, called TNSNAMES.ORA, which is typically located in the /NETWORK/ADMIN folder under the oracle home where the client was installed (the installation location varies by version and installation settings).
This file contains a list of databases with the Port Number, Hostname, and Oracle SID which allows the oracle client to make a connection to a server.
Once all of this is configured (or you decide to use the "TNS-less" connection string), you should be able to make database connections to oracle.
The ODP.NET provider documentation also provides some sample code which is very helpful when getting started with it.
Per this, this OracleConnection is an obsolete API, however the DLL being used is:
System.Data.OracleClient.dll
EDIT: This article provides some data on different API's to connect to Oracle with .NET
The real problem is data type mapping,but not connection or provider .
I tried to install Amplifeeder today with the Web Platform Installer.
When I arrived at the database setup I had to fill out some informations like "db admin user/password" and user username/password.
Using SQL Express I do not have any username/password (neither admin or user). How should I be able to install applications with the WPI and SQL Express 2008 ?
Basically I had this error while trying to install in the logs :
DownloadManager Error: 0 : MS Deploy exception: Microsoft.Web.Deployment.DeploymentClientServerException: The database 'AmpliFeederDB' could not be created. ---> System.Data.SqlClient.SqlException: Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection.
I finally achieved this by command line and reg fixes.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQLServer
LoginMode must be 2
restart SQL Server Express service.
Then :
In command line :
sqlcmd -E -S .\SQLEXPRESS (will login with windows authentication mode)
1) ALTER LOGIN sa WITH PASSWORD = '<new_password>'
2) GO
1) ALTER LOGIN sa ENABLE
2) GO
It should do the trick to install the applications after.
As far as I know the only way I could make it work was by using the command line utility 'WebPICmd.exe' located in the application folder.
You do need a strong password because it uses a regular expression to verify.
All seemed OK, I was able to access the DB thru OSQL and also Management Studio, had no problems with logons, had both authentications enabled, TCP/IP and named pipes. yet nothing worked... It seems to be some kind of a bug....
Thry it like his:
WebPICmd.exe /Install /Application:"Joomla"
When you install SQL Server Express for the first time, you would have had option to select authentication mode, where you would select MIXED mode authentication and provide admin authentication details.
Well, the SQL Server Management Studio Express provides a more sustainable solution. See this link, without having to fiddle with registry keys & running commands:
http://www.knowledgesutra.com/forums/topic/61695-resolving-cant-login-to-sqlexpress-using-sa-account/