用户创建: create user identified by
default tablespace users
temporary tablespace temp;
新用户权限设定:grant connect,resource,unlimited tablespace to ;
用户丢弃: drop user cascade;
取消权限: revoke from ;
查询用户: select * from dba_users;
查询已创建用户:select username from dba_users;
查询空间: select * from dba_tablespaces;
数据导入: imp / file=文件名.dmp full=y
数据导出: eXP / file=文件名.dmp full=y
提交: commit;
添加数据库文件:alter tablespace users add datafile '路径\users2.ora' size 500M;
alter tablespace rbs add datafile '路径\rbs2.ora' size 200M;
alter tablespace temp add datafile '路径\tmp2.ora' size 200M;
开启表: alter rollback segment rb* online;
关闭表: alter rollback segment rb* offline;
添加回滚段: alter rollback segment rb* storage (next 2M optimal 10M);
创建回滚段: create public rollback segment rb* storage (next 2M optimal 10M);
注册表语言: ZHS16GBK 或者 ZHS16CGB231280
启动LISTENER: lsnrctl status (看状态)
lsnrctl start (启 动)