How to write compilation variable for oracle and oracle wallet in .Net Core?
Example:
if (oracle)
{
oracle namespace
}
else if (oracle wallet)
{
oracle wallet namespace
}
Related
I am having an application which must support both a SQL Server DB and an Oracle DB.
I have configured a basic property:
public string MyProperty{ get; set; }
When my database is generated in SQL Server, the type of the column is nvarchar(MAX) (great!), but in Oracle 11g it is a NVARCHAR2(2000) which is limiting the size of my string if stored in Oracle.
The weird thing is that this Oracle article mentions that NCLOB should be the default type for strings...
Does that means that it depends of the version of Oracle used? Or the version of EF Core? Or am I missing something?
How can I achieve a full compatibility for this string between SQL Server (nvarchar(max)) and Oracle (NCLOB)?
Thanks for your help!
Is there a way to work with SQL Loader for a PostgreSQL database or is it for Oracle Databases only?
SQL*Loader is an Oracle utility that uses an oracle client/oracle call interface to talk to an Oracle Database ONLY.
We use Oracle DB as sonarqube database and found out that list of oracle components installed. What components can be safely removed?
List of components:
COMP_ID COMP_NAME
APEX Oracle Application Express
EM Oracle Enterprise Manager
ORDIM Oracle Multimedia
XDB Oracle XML Database
CONTEXT Oracle Text
EXF Oracle Expression Filter
RUL Oracle Rules Manager
OWM Oracle Workspace Manager
CATALOG Oracle Database Catalog Views
CATPROC Oracle Database Packages and Types
JAVAVM JServer JAVA Virtual Machine
XML Oracle XDK
CATJAVA Oracle Database Java Packages
SonarQube didn't install one or many Oracle components. They can be installed during the creation process of the database or after (but always explicitly).
SonarQube works perfectly with the minimum and mandatory Oracle components :
Oracle Database Catalog
Oracle Database packages and Types
Oracle XML Database
I have been trying to retrieve data from an Oracle 12g database using the following:
using (MyDbContext db = new MyDbContext())
{
var t = db.MyTable.ToList();
}
The underlying SQL is:
SELECT
"Extent1"."TOKEN" AS "TOKEN",
"Extent1"."FINGERPRINT" AS "FINGERPRINT",
"Extent1"."EXPIRES" AS "EXPIRES",
"Extent1"."ISSUED" AS "ISSUED"
FROM "MYSCHEMA"."MYTABLE" "Extent1
I run the SQL above within Oracle SQL Developer and it works just fine.
There is only 1 record in the MYSCHEMA.MYTABLE table but when calling the .ToList() I get zero results.
Am I missing some setting with Oracle's Entity Framework?
Using from nuget:
Oracle 11g (11.2.0.1.0 - 64bit)
Official Oracle ODP.NET, Managed Entity Framework Driver (12.1.021)
Microsoft Entity Framework (6.1.3)
Apparently when I inserted the new record into the MYSCHEMA.MYTABLE table I forgot to COMMIT it to the database.
Therefore, the Oracle SQL Developer tool was able to show me that the record was en route to becoming a record but until I committed it no other external process would be able to retrieve the record.
Lesson learned. Maybe this answer will be helpful to others.
We have Oracle database and need to create client with SQL compact, we will need synchronize data between them in future. How can we create SQL compact database from Oracle database(maybe somehow exporting schema etc.) ?
You could use the SQL Server Migration assistant to move to SQL Server, and then use Export2sqlce to create schema (or schema and data) - http://exportsqlce.codeplex.com