How do I connect to a sql database through sql developer? [closed] - sql

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
So, I have a .sql file that I have downloaded and was wondering how I connect to it via sql developer which I have also downloaded. Do I need to create a connection with hostname and port etc? can I just connect to a file manually/directly or something?
Also, can anyone recommend a good database to practice/learn on for a beginner? Should I just download oracle 11g and play around with that?
Thanks.

You cannot connect to a .sql file because it is not a database. Oracle runs as a server in its own right. If you do not already have access to a server then you will need to get one.
Fortunately, Oracle publishes a server you can use free of charge that will help get you into the swing of things. Have a look at Oracle Lite
I think you might find it quite a challenge getting yourself set up with a development environment but if you are patient and determined you can get there. Once you have a server to play with you can start to experiment with Sql, which is the language you use to interrogate the database.
Best of luck.

You'll need the SID as well as the ip address and port number (typically 1521) that tns listener is listening on.
Once you've connected, you'll be able to run your sql file against that database.
And yes, it would be a good idea to have a good understanding of Oracle before wandering off blindly into the world of database access (.sql files, for example)

Related

IBM Worklight - How to connect to SQL server [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have a SQL server with 1 database and i want to connect to it from my Worklight app and get data.
How can I do that? I've tried with HTTP adapter but where to put userid and password to access the sql server?
HTTP adapters are not meant for connecting to a SQL backend server... for that purpose you should use SQL adapters. There is a training module for it. There is also a sample application. Please don't go straight to the sample - read the training module first.
You will find out that you need to place the database username and password as well as the URL to it, in the adapter's XML file, like the following.
Note that there are more configurations to do before this will work:
Create a database, its table(s) and set its user permissions
Place the SQL Connector driver (in Eclipse >> Worklight project\server\lib folder)
Make sure to read the training module, where this is all explained.
<dataSourceDefinition>
<driverClass>com.mysql.jdbc.Driver</driverClass>
<url>jdbc:mysql://localhost:3306/mydb</url>
<user>myUsername</user>
<password>myPassword</password>
</dataSourceDefinition>
To better understand Worklight, study the IBM-provided training materials.

Linking iOS application to database [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Needed some advice as i am writing my first iOS application,
1. what is the best way(simplest) to link an app to a database and does the database have to be SQLite (the databse will be external ie. linked via the internet)? i have used mySQL before in MAMP,
I have read up on other post and they suggest complicated methods like via JSON etc, please provide a simple way and a book/guide/web site that could teach me your suggested method would be much appreciated too :)
SQLite is one of them.
However if your requirement is to share the database, you can go with mySQL or even Oracle etc.
JSON, xml are the tools that will help you to make a client server application.
Useful link:
http://jainmarket.blogspot.in/2009/05/iphone-sdk-tutorial-reading-data-from.html
SQLite is generally used for a local database (aka, on the device itself) through CoreData. But it seems like you have a remote MySQL database you want to connect to.
You should build some API that your iOS app talks to to get data from a database. Typically this is done over http which generates JSON in whatever server language of your choice (eg - python, ruby, php, etc).
For the iOS side, you'll probably use Apple's builtin features: NSURLConnection and NSJSONSerialization.

Can I access my Oracle DataBase From Home? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I wanted to access my Oracle DataBase at home so that I could work weekends, etc. I talked to my database administrator and all he had to do was add my home IP to his records, and I was allowed access.
The OTN download license allows us to install the full suite of Oracle software, providing it is for the purposes of self-education.
So really it depends on what you mean by "play around with queries from home". If you're doing work you need a database licence; if you're teaching yourself about Oracle you don't.
The bigger issue is data security: the chances are you're not allowed to have the data on a laptop. Follow the news to understand why this is a bad idea. If you want to teach yourself Oracle there are lots of publicly available data sets we can download from the internet.
You can use exp or data pump export(10g onward) utility to unload data and metadata of your schema (user) into an OS file (dump file), bring it home and use imp or data pump import (10g onward) utility to import those unloaded previously data to a new schema.
If the database is small you can also use Oracle SQL Developer to export the scripts for the schema and the Insert statements for the data.
This is also possible in third-party tools such as TOAD.

The benefits of switching access BackEnd to sql express [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have an access DB, which is split into a Backend and Frontend, that has c.a 100000 records in 60 tables.
I have this idea, that I can switch my Backend to a MSSQL Server Express.
I would like to know if it is worth the effort to attempt this idea. And which advantage do I have if my Backend is SQL Express and Front End access.
Thank you for your ideas
Definitely worth swapping to a version of SQL Server or MySQL. It can take a while to get the hang of once you have migrated from Access but using MS Sql Server will allow you to import tables easily and you'll have a more future proof application. Worked well for us
It depends on how many users are concurrently using your database and if your backend is located on a LAN or is a local database.
The number of records (100000) are not so much for Access to handle.
If your database is on a LAN location or if you have concurrent users, you should get some advantages moving to SqlServer, but some plumbing and rechecking of your code will be required.
Remember, Access is fast and easy to build application with, but, at its core, is a personal database adapted to work for low concurrency situations. Sometime (and I tend to blame the programmer instead of Access itself) it is not suitable for concurrency use. If your application is critical then, as with every database solution, a good disaster recovery plan and quick maintenance intervention time are mandatory.

Online Chess by VB.net [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
as the topic header shows my question is about Coding an online chess by VB.net.
I coded the chess game with all rules , now I designed a login form for it, but I don't know how to connect to a Database and send query , to check the User and pass.
I searched about connecting to a DB and I found something. but i didn't found anything about sending query.
I need a code that contains connecting to a DB and sending query for example about checking username and password to DB.
thanks.
Well, the simplest answer is to use what's called ADO.NET. It's basically a set of classes within the .NET Framework which are used to access a database. Depending on the database you use, there may be a built-in driver (MS SQL, Access, etc.) or you may need to use a 3rd party one (MySQL, PostgreSQL, etc.).
Here are a couple of examples. There are many more.
You can also use LINQ to SQL, which internally uses ADO.NET but presents the data access to the developer is a more fluent way. Or take it another step and use Entity Framework. Etc.
Essentially the question itself is very broad. There are a number of ways you can access a database. But these are the places to get started. If/When you run into specific issues with code not working the way you expect, we'll be happy to help.