1.在本机以管理员身份登录
sqlplus /nolog
conn/as sysdba
在其他机子登录本机
conn sys/sys@bts as sysdba
2.创建表空间
接着在登录的情况下:
create tablespace cms logging datafile 'd:txmc_data\txmc_space.dbf'
size 50m autoextend on next 50m maxsize 2048m extent management local;
创建临时表空间
create temporary tablespace stbss_tmp
tempfile 'd:\txmc_data\txmc_space_tmp.dbf'
size 50m
autoextend on
next 50m maxsize 2048m
extent management local;
3.导入dmp文件 不需要登录sqlplus
直接在命令行输入:imp test/test@bts file=d:\aioss0819.dmp full=y ignore=y commit=y
如果不能导入文件 说明该用户权限不足 授予管理员权限后 再撤销
授予权限
grant dba to test;
撤销权限
revoke dba from test;
创建用户
create user 用户名 identified by 密码 default tablespace 表空间名 temporary tablespace 临时表空间名;
grant connect, resource to 用户名
修改用户的使用的用户表空间
alter user user_name default tablespace new_tablespace_name;
sqlplus /nolog
conn/as sysdba
在其他机子登录本机
conn sys/sys@bts as sysdba
2.创建表空间
接着在登录的情况下:
create tablespace cms logging datafile 'd:txmc_data\txmc_space.dbf'
size 50m autoextend on next 50m maxsize 2048m extent management local;
创建临时表空间
create temporary tablespace stbss_tmp
tempfile 'd:\txmc_data\txmc_space_tmp.dbf'
size 50m
autoextend on
next 50m maxsize 2048m
extent management local;
3.导入dmp文件 不需要登录sqlplus
直接在命令行输入:imp test/test@bts file=d:\aioss0819.dmp full=y ignore=y commit=y
如果不能导入文件 说明该用户权限不足 授予管理员权限后 再撤销
授予权限
grant dba to test;
撤销权限
revoke dba from test;
创建用户
create user 用户名 identified by 密码 default tablespace 表空间名 temporary tablespace 临时表空间名;
grant connect, resource to 用户名
修改用户的使用的用户表空间
alter user user_name default tablespace new_tablespace_name;