SQL*Plus: Release 11.2.0.1.0 Production on Mon Feb 6 23:49:30 2017
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn /as sysdba Connected. SQL> show user USER is "SYS" SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> start mount SP2-0310: unable to open file "mount.sql" SQL> startup mount ORACLE instance started.
Total System Global Area 830930944 bytes Fixed Size 2217912 bytes Variable Size 478152776 bytes Database Buffers 348127232 bytes Redo Buffers 2433024 bytes Database mounted. SQL> alter database noarchivelog;
Database altered.
2.创建测试表空间hltest:
create tablespace hltest datafile "hltest.ora" size 5M AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED default storage (initial 128K next 1M pctincrease 0); 3.创建测试用户与测试表: drop user hl cascade; create user hl identified by hl default tablespace hltest; grant connect,resource to hl; conn hl/hl; ----创建表并填充数据 create table a(a number); begin for i in 1..100000 loop insert into a values(i); end loop; end;