1. 建立表空間 和 用戶,授予用戶表空間的權限。 操作清單如下:
以system身份進入sql*plus,
SQL> create tablespace SHENZHENDB
2 logging
3 datafile 'G:\oracle\product\10.2.0\oradata\ora10g\jzdb.dbf'
4 size 50m
5 autoextend on
6 next 50m maxsize 20480m
7 extent management local;
表空間已創建。
SQL> create user ZCUSER identified by ora10g
2 default tablespace SHENZHENDB;
用戶已創建。
SQL> grant connect,resource to ZCUSER;
授權成功。
//以後以該用戶登錄,創建的任何數據庫對象都屬於SHENZHENDB表空間,
2. ORA-28000: the account is locked-的解決辦法
a.以system的身份進入 sql*plus,然後SQL> alter user scott account unlock;
//b.修改密碼。 connect scott/tiger