Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data Definition Language Using sqldeveloper. To create connection Create new connection (any name) Username: sys Password: oracle11 Tick on Save password.

Similar presentations


Presentation on theme: "Data Definition Language Using sqldeveloper. To create connection Create new connection (any name) Username: sys Password: oracle11 Tick on Save password."— Presentation transcript:

1 Data Definition Language Using sqldeveloper

2 To create connection Create new connection (any name) Username: sys Password: oracle11 Tick on Save password Connection type: Basic; Role: SysDBA Hostname: localhost Port:1521 SID: xe Click on Test button When status is successful; click on connect button

3 Create user 1.Look for Other user in your connection 2.Right click on other user 3.Click create user 1.User name: yourname (do not put any space) 2.Password: (anything) 3.New password: 4.Click on Roles tab – grant all, admin all, default all 5.Click on system privileges – grant all, admin all 6.Click on Apply button 7.Click on Close button

4 Create table create table yourname.dept (ID number(7), Dname varchar2(25)); ** check table yourname.dept created ****

5 To confirm the table exists DESCRIBE yourname.dept

6 Populate the table insert into yourname.dept values (101, 'Info Sys'); insert into yourname.dept values (102, 'Marketing'); insert into yourname.dept values (103, ‘Finance');

7 Create another table create table yourname.department (deptID number(7), Deptname varchar2(25)); ** check table yourname.department created *

8 Insert the following record in Department table deptIDDeptname 100Human Resource 120Network 130Retail

9 Copy data from Department into Dept insert into yourname.dept select deptID, deptname from yourname.department;

10 Create new table (copydept) and populate using data from dept table create table yourname.copydept as select id, dname from yourname.dept;

11 Do exercise 1 from metalab


Download ppt "Data Definition Language Using sqldeveloper. To create connection Create new connection (any name) Username: sys Password: oracle11 Tick on Save password."

Similar presentations


Ads by Google