Presentation is loading. Please wait.

Presentation is loading. Please wait.

Aqua Data Studio.

Similar presentations


Presentation on theme: "Aqua Data Studio."— Presentation transcript:

1 Aqua Data Studio

2 Access Aqua Data Studio
Aqua Data Studio is available on iMac in ILS Mac Lab (LI002A) Download the latest version from official website (14 days free trial) ( For MS Windows user, you can download a free version (V4.7) from IU Ware. (

3 Enabling Semi-colon (;) as Statement Separator

4 Aqua Data Studio has a default setting which prefers / and GO as statement separators for SQL statements. When working on your own with ADS, you have the option to either conform with this syntax requirement, or change the options in ADS to accept a semi-colon ( ; ) as a statement separator. For this class, we are using prewritten SQL files that use a semi-colon as a statement separator. Different statement separators have different pros and cons; the semi-colon is the standard statement separator for command line and GUI interfaces with many SQL languages, so we have opted for the semi-colon. In order for ADS to understand semi-colon separators , we must change some options inside the program.

5 File → Options Under General subcategory, check ‘;’ Statement separator

6 Register Database Server (PostgreSQL, MySQL, Oracle)

7 PostgreSQL Steps to register PostgreSQL server 5 2 3 4 1
Select “PostgreSQL” Name your database Login name: your IU username Password: your PostgreSQL* Host: db.ils.Indiana.edu Port: 5433 Database: your IU username (Not yet to press OK) Switch to “Driver” tab *See the instruction about getting PostgreSQL password 2 3 4 1

8 Steps to register PostgreSQL server
Enter “?ssl=true” in Parameters box Then press OK 6 7

9 Get your username and password
Oracle Get your username and password Login Canvas → Go to course Scrolling down in the left panel to find “WebDB” section Click “WebDB” to find your username and password

10 Oracle Steps to register Oracle server 2 3 4 1
Select “Oracle 9i/10g/11g” Name your database Login name: your username Password: your password Uncheck “Save password” Host: esdbd110.uits.indiana.edu Port: 1521 (default) SID: oed1prd 2 3 4 1

11 MySQL Steps to register MySQL server 2 3 4 1 Select “MySQL”
Name your database Login name: Your IU username Password: Your PostgreSQL password* Host: db.ils.Indiana.edu Port: 3306 (default) Database: Your IU username *The password is the same as your password for PostgreSQL server 2 3 4 1

12 Start writing queries

13 Queries 1.Click on database you are interested in (in this example MySQL) 2.Click on icon Query Analyzer 3.Write statements in window 4.Click on icon Execute

14 Import Data in Tables Tools > Import

15 Import Data in Tables 1. Choose Server 2. Click OK

16 Import Data in Tables 3. Click on browse to find your Comma Separated File (.csv) – if the file extension doesn’t show up, make sure you add it at the end. 4. If your file has column names in the first line, make sure to click this option. 5. Click Next

17 Import Data in Tables 6. Choose the option “Import into Database”
7. Click Next

18 Import Data in Tables 8. Click Next
If your import is successful, you should get this message.

19 Tips for Importing Data into Tables
Always back up your database before making any changes. It is a good idea to create the table in your database first and then import the data. Make sure the .cvs file with the data you want to import has exactly the same structure as your table (same columns)

20 Export Data from Aqua Data Studio
1. Right click on the database you want to export data 2. Select “Tools → Export Data”

21 Export Data from Aqua Data Studio
1. Choose the schema to export 2. Select object to export 3. Select tables to export 4. Click Next

22 Export Data from Aqua Data Studio
1. Select a folder to save data 2. Select the data format to export. “INSERT Statements” will export SQL query files for each table 3. Select “;” as statement separator 4. Click Next to export data


Download ppt "Aqua Data Studio."

Similar presentations


Ads by Google