oracle 基本命令:
启动数据库服务和监听器
net start OracleXETNSListener
net start OracleServiceXE
登录,修改密码
sqlplus / as sysdba
alter user sys identified by password;
reference:
- http://www.oschina.net/question/1428332_141874
- http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
select username from dba_users; #查询所有用户
drop user <user_name> cascade; #删除用户
select tablespace_name, status from dba_tablespaces; #查看表空间及状态
drop tablespace <tablespace_name> including contents and datafiles; #删除表空间
前提:删除表空间之前要确认该表空间没有被其他用户使用之后再做删除
如何导入dmp文件
创建临时表空间和表空间
SQL> create temporary tablespace user_temp
2 tempfile 'D:\oracle_table_space\sgc_temp.dbf'
3 size 50m
4 autoextend on
5 next 50m maxsize 2048m
6 extent management local;
表空间已创建。
SQL> create tablespace user_data
2 logging
3 datafile 'D:\oracl