0.安装oracle、安装PL/SQL(要安装oracle11,10会提示空间不足)
1>. 环境变量设置
NLS_LANG = SIMPLIFIED CHINESE_CHINA.ZHS16GBK
TNS_ADMIN = D:\install\PLSQL\instantclient_11_2
2>. PL/SQL Developer 环境设置
1. 位置:工具 -> 首选项 -> 连接
2. 设置
Oracle主目录名 = D:\install\PLSQL\instantclient_11_2
OCI库 = D:\install\PLSQL\instantclient_11_2\oci.dll
3>. tnsnames.ora 文件需要手动创建并进行相应的设置,放置在PLSQL instantclient_11_2
1.使用system登录
2.创建用户并解锁
create user username identified by "password" account unlock;
3.授权
grant dba to username;
4.登录,normal身份
5.创建表空间
create tablespace spacename datafile 'F:\app\Administrator\oradata\orcl/SPACENAME.DBF' size 1024M autoextend on next 1024M maxsize 20480M;
6.指定表空间给用户
grant unlimited tablespace to username;
7.导入dmp语句
sqlplus中:
imp username/password@orcl file='d:\工作\需求\import\test.dmp' full=y ignore=y;
cmd中:
1.sqlplus username/password@orcl
2.host imp username/password@orcl file='d:\工作\需求\import\test.dmp' full=y ignore=y;