Sqlplus on the command line.
Log in as system, password is the system you set up
C:\users\administrator>sqlplus
Sql*plus:release 10.2.0.1.0-production on Tuesday October 14 21:29:23 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Please enter Username:system
Enter Password:
Connect to:
Oracle Database 10g Express Edition Release 10.2.0.1.0-production
Create user Scottpassword to Tiger after
Sql> create user Scott identified by Tiger;
The user has created.
Granting logon rights
Sql> Grant create session to Scott;
Authorization is successful.
Grant permission to create a table
Sql> Grant CREATE table to Scott;
Authorization is successful.
assigning quotas
sql> Alter user Scott quota 10m on users;
The user has changed.
change user Password
Alter user username identified by new password
Unlocking the user
Alter user Scott account unlock
Log on PL/SQL
Scott/tiger
Build table
CREATE TABLE UserInfo (
ID number,
Name varchar (20),
Age Number
)
ora-01950: No permissions on tablespace ' SYSTEM '
C:\users\administrator>sqlplus
Sql*plus:release 10.2.0.1.0-production on Wednesday October 15 07:53:13 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Please enter Username:system
Enter Password:
Connect to:
Oracle Database 10g Express Edition Release 10.2.0.1.0-production
Sql> Grant Connect,resource to Scott;
Authorization is successful.
Sql>
Create user for Oracle created by the identified by Tiger;