Download presentation
Presentation is loading. Please wait.
Published byLeo Holland Modified over 8 years ago
1
IS232 Lab 9
2
CREATE USER Purpose: Use the CREATE USER statement to create and configure a database user, which is an account through which you can log in to the database, and to establish the means by which Oracle Database permits access by the user.
3
Let’s create a user =)
4
1- Connect to database !
5
create user with password CREATE USER > IDENTIFIED BY >;
6
GRANT CONNECT,RESOURCE,DBA TO >; grant DBA,Connect and Resource permission to this user * (not sure this is necessary if you give admin option)
7
Give admin option to user! GRANT CREATE SESSION TO > WITH ADMIN OPTION;
8
give unlimited tablespace grant GRANT UNLIMITED TABLESPACE TO >;
9
Grant some privileges: grant create session to >;
10
Grant some privileges: grant create table to >;
11
check what privileges the user has? select * from session_privs;
12
Let’s try the user privileges create table Table_name ( id int not null, text varchar2(1000), primary key (id) ); create table Table_name ( id int not null, text varchar2(1000), primary key (id) );
13
Insert data insert into table_name(id, text) values (1, ‘Hello there.'); insert into table_name(id, text) values (1, ‘Hello there.');
14
Select select * from Table_name;
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.