oracle sql developer connection - java

I tried to install oracle sql developer in windows 7 32 bit for this first i install jdk 8 and then i install this file sqldeveloper-4.1.3.20.78-no-jre from oracle website .. then when i run sqldeveloper application it shows this
check image
then this shows create new connection now when i create connection it shows error
check image
how to solve this error?

You need to install Oracle Express Edition (XE) and set it up to run on your computer, on port 1521 - for your connection to work.
SQL Developer is just a client - there's no database there, unless you've put it there.

Apart the suggestions of #Nikita and #thatjeffsmith, I highly suspect the matter is that you are using the pre-existing user hr that you didn't create by yourself but that was created during installing your Oracle Express instance.
This user is by default locked. It must be unlocked by an administrator (for example SYSTEM user).
After unlocking hr user, don't forget to grant to it CONNECT and RESOURCE roles.
Find more details on this page.

You need to have a running database to use with SQL Developer. If you haven't installed it yet follow the official documentation. If you do have the database but can't connect to it, make sure that
The listener is up and running on the machine you're trying to connect to (in your case it's localhost)
You've provided the correct port number and SID

Related

How to download and install IBM AS/400 database on window?

My requirement is to download and install db2/400 database on windows but I am unable to find the download option which can install db2/400 database on my window laptop. I can find drivers to connect with the db2/400 database but please help me get db2/400 database to be downloaded?
It will be very helpful if I can get a freeware/trial version/sand-box env or a free virtual image of db2/400?
Edited:
I found this link: IBM Db2 for i. It has an option to download for windows 64-bit machine.
Is that what I am looking for?
No way.
There are no working IBM i emulators on x86 at the moment.
The original question has already been answered , in that at present there are no working free emulators for IBM-i for x86 architectures. But the question did not explain the real end goal.
The motiviation behind the question appears to be a request for a driver to access the i-series via jdbc without needing to purchase additional IBM licenses.
That requirement may be met by the open source jt400 driver available at http://jt400.sourceforge.net/
Additional clarification is that while the jt400 jdbc driver lets you access i-series database, it is not for accessing Db2-LUW databases (e.g. on MS-Windows). To access Db2-LUW databases you need the (cost free) IBM jdbc drivers. Other jdbc drivers are also available from third parties, with different requirements for licensing.
For additional awareness, you need to know that the SQL used for accessing i-series database can be different from the SQL used to access either Db2-LUW databases or Db2-for-Z/OS databases. It's possible to use standard SQL that will work on all variants of Db2 but you will then be unable to harness the additional platform-specific power offered by each Db2-variant to properly exploit the platform.
If you want to use a single jdbc driver that can connect to any of Db2-LUW or Db2-for-iseries, or Db2-for-Z/OS then you can use an IBM-supplied driver. With that IBM driver for accessing either i-series or z/os then you must either supply a license file, (i.e. purchase the license) or use a pre-existing Db2-connect-gateway at your site (which is separately licensed and does not require per-workstation licensing). You don't need licenses just for connecting to Db2-LUW databases.

Pass own made Windows Credentials to SQL Server using JDBC

I'm trying to write a program that connects to SQL Server at work, which I have done and works perfectly. However, this program only works on the desktop at my workplace because it is connected to the SQL Server that I wanted it connect local. This means if I were to work on this program at home, I won't be able to do anything as it can't connect to it.
What I've found out is that the server uses windows auth to authenticate the users who connects to SQL Server. From what I found out is that windows authentication on SQL Server gets the credentials for the security. So I was wondering is there a way where I can get the credentials using Java, then pass that to SQL Server using JDBC to login to the database?? Or is this not really realistic to do? If so, is there any way around this?
Thanks
When you install MS SQL Server you are asked about the type of authentication that you want.
I personally cannot think of a Scenario where pure "Windows Authentication" makes sense. I always choose "Mixed Mode" as with pure Windows Authentication to much can go wrong. (Server-Admin gets fired, Company merges with another AD-Domain, spontaneous SID-corruptions etc...)
That said, you'll Need to Change Authentication Mode to Mixed Mode.

MySQL Java application works when URL is uses `localhost` but not `127.0.0.1`

I'm creating a Java application that uses MySQL for its database.
The program wasn't working and after some trial and error, I found that it worked perfectly when I changed the database address from
jdbc:mysql://127.0.0.1:3306/caches
to
jdbc:mysql://localhost:3306/caches
But aren't these two the same thing? Why would one work but not the other?
A likely reason is how MySQL grants are set up. Log in using localhost and look at the grant tables using SHOW GRANTS, as well as database permissions.
It is very likely that different permissions are set for clients from 127.0.0.1 than localhost.
If this isn't the issue, there are miscellaneous local networking fixes available.

Configuring Informix database for JDBC Connection

I'm writing my first android app via Eclipse. I am trying to make a connection to my informix database. I have installed informix's client-side drivers on my system and the program picks them up when I run the Class.forName() method. However, my connection URL fails everytime. I have looked at many examples online as well as read much of IBM's documentation on this. I'm convinced there is some type of driver I need to install on my server??
Any insight would be great, thanks!

SQLITE manager on a server

I was wondering if it was possible to get an SQLITE manager database onto a server? What i mean by this is so that when i complete my program in a java project and make an installer for that project. Anyone who downloads it from any computer running on any operating system who has administration rights can access the database without having connection issues. In addition anyone who logs in to the program can do so with full database connection.
Is there a way to do this? I also don't want the user who is going to install the program to install any additional programs for the database. In addition i would like this program to work on any computer who might not have the SQLITEManager plugin on there firefox web browser or even have firefox installed on there computer.
I would also like the admin to be able to edit anything on the online server the database should be on.
If this is not possible on SQLITE Manager could you recommend a database which can do this but also use and work on the code already made for the sqlite programs?
SQLite databases are just flat-files. What this means in layman's terms:
I download your database as a file.
I can modify it as I please.
I'm not forced to synchronize to the newer version of the flat-file.
You have a choice: You either write your code to force periodic synchronization of the SQLite flat-file to your clients, or you use a dedicated DBMS on your server, such as MySQL, and force your clients to connect to that.

Categories