- conn sys/123 as sysdba
- /*第1步:创建临时表空间 */
- create temporary tablespace ciming_temp
- tempfile 'D:\tst_temp.ora'
- size 300m
- autoextend on
- next 300m maxsize 30480m
- extent management local;
- /*第2步:创建表空间 */
- create tablespace test
- DATAFILE 'D:\test001.ora' size 300m REUSE autoextend on next 300m maxsize 20480m,
- 'D:\test002.ora' size 300m REUSE autoextend on next 300m maxsize 20480m,
- 'D:\test003.ora' size 300m REUSE autoextend on next 300m maxsize 20480m,
- /*第3步:创建用户并指定表空间 */
- create user username identified by userpass
- default tablespace test
- temporary tablespace test_temp;
- *第4步:给用户授予权限 */
- grant connect,resource,dba to username;
- 删除表空间
- drop tablespace test including contents and datafile;
- 删除用户
- drop user username cascade;
- 启动监听程序
- lsnrctl start
- bat语句
- sqlplus /nolog @user.sql
- OK 别再这方面浪费太多时间 留着时间研究程序。。。