Change default Sid, new Connection Dialog, oracle sqldeveloper - oracle

Ist there a way to change the default Sid "xe" which is Always used when adding a new Connection for "Oracle Sqldeveloper" ?

No, there is not.
But you can use an existing connection as a template.
Create a connection with your defaults.
Then, when it's time to create a new connection, edit your template, then save it with a NEW NAME. Presto-changeo, you have what you need/want.

Related

How to connect to an Oracle database through VS Code using an SID instead of Service Name?

I'm trying to see if I can use VS Code to connect to the Oracle databases we use at my job. I installed the Oracle Developer tools extension for VS Code, but when I click to add a connection it is required that I use a service name.
VS Code Oracle Connection Form
Does anyone know of a way I can use SID instead of a Service Name? All of our connections use SID.
I've tried the different options for connection type, however they all ask for fields that are not required of me to connect to the db. I've also used the SID as the Service Name, but was still unsuccessful in connecting.
All of our connections use SID.
is something you should be looking at addressing as a side project. Services over SID became recommended in Oracle 8i (yeah you read that right...20 years ago)
But every database has an implicit service name equivalent to the SID so just entering the SID value should still get you connected without issue.
Of course, now that we're in the world of pluggable databases, this will pretty much force your organisation to move to services, because the SID is typically going to point to the root container whereas you will want to connect to the pluggable(s) that sit underneath it.

How to connect to an Oracle database with JDBC

I currently have a connection for MySQL database and connected as:
spring.datasource.url = jdbc:mysql://${mysql.service.host}:${mysql.service.port}/${mysql.service.database}
If I were to change the database and used Oracle database instead then how would the datasource URL change?
jdbc:oracle:thin:#//server:port/service
or
jdbc:oracle:thin:#//server:port:SID
The server entry would be the IP address or network name where your Oracle Listener is handling connection requests. The port would be the port number being used for said listener requests.
Service would be the database service name, if you're connecting to an Oracle Pluggable Database, you'll always need this.
The SID is a unique ID for your database, you could use that, but you're encouraged to use the service instead.
If you wish to make a THICK connection, that is, use an Oracle Client to make a connection to your database, then things get a bit more complicated. I would suggest using THIN until you can't.

SSIS - Oracle view not visible to import

I am new to SSIS. I do not have access to oracle DB. Oracle team has created a view and granted access to that view to a user which we are using to connect to DB through SSIS.
When I create a new ADO.NET connection and click on test connection ,it says connection is successful and when i try to retrieve the "tables or views" pop up box comes to enter password again and it throws error.Error : "Could not retrieve the table information for the connection manager.Object reference not set to an instance of an object"
Where as If i use the existing connection with same credentials it is working.What can be the possible reasons ?
However I used the existing connection and When I look for the view which is to be used as source, That view is not available.When I reached out to Oracle DB team who has created view , they say that the view exists and permission is granted to the user .They logged in to oracle using the same user and the user has access to the views.Now I am not sure that why is it not available to the user when I connect it through SSIS. I am using visual studio 2017
At first, you have to pick ".Net Providers\OracleClient Data Provider" from the Provider list in Connection manager for ADO.NET. Second, You should enter the name of your Oracle DB or the IP of it (The name is better) for "Server name:" drop down. Third you should enter your user and password in the textboxes below the "Log on to the database". After all of these, you can click on "Test Connection" and everything goes right. now you can click "yes" to shut the window.
Now you can add one ADO.NET source in your data flow task, pick your connection in its "ADO.NET connection manager" drop down, and finally see the tables or views list in the "Name of the table or the view" drop down.

What does Oracle call a SID?

I need to connect to a remote Oracle database using SQL Developer. I tried to create a new connection and I would like to know what exactly is A SID? Is it a parameter I need to check in my Oracle database?
SID (System ID) is the name of the database you are connecting to. A server can host multiple databases, so you need to specify the name.
See also: http://www.orafaq.com/wiki/ORACLE_SID
You can get it like this, once you're connected, but given the situation, that might not be very helpful. :D
select sys_context('userenv', 'instance_name') from dual
SID = Instance name as defined at instance creation on the database server.
On the database server, check the tnsnames.ora file:
SERVICE_NAME=
or
SID=

VB6: Customizable connection source/string in data environment

In the Data Environment, you can setup the connection via accessing the Properties of the connection.
From there, you can choose the provider, the server name, and the database (I am using SQL Server 2008, by the way).
However, I see a problem in this since the connection string cannot be altered anymore once deployed. Therefore, I set the connection string of the Data Environment Connection during log on.
With deMain.conn1
.ConnectionString = connString
End With
where connString is a global variable containing the connection string that is read from a .ini file.
I ran the program and encountered the following error:
I figured it out. In the Properties window of the Data Environment Connection, you must select first the correct Provider and click Next.
In the Connection tab, you don't have to fill-out the fields anymore.

Resources