oracle导入、导出
exp user/password@orcl file=** full=y;--导出
imp user/password @orcl file=*** full=y;--导入
create user username identified by password;--创建用户
create tablespace tablespacename datafile 'd:\data.dbf' size xxxm;--创建表空间
tablespacename:表空间的名字
d:\data.dbf':表空间的存储位置
xxx表空间的大小,m单位为兆(M)
alert user username default tablespace tablespacename;--默认表空间
grant create session,create table,unlimited tablespace to username;--赋权限
grant dba to username;
使用navicat for Oracle 连Oracle时,出现错误,
连接oracle的时候,提示
cannot load oci dll,193
http://www.oracle.com/technetwork/cn/topics/winsoft-095945-zhs.html
下载对应的oracle版本,我需要连接的oracle版本是10
所以下载的软件包是
instantclient-basic-win32-10.2.0.4.zip
instantclient-sqlplus-win32-10.2.0.4.zip
首先解压第一个包,放到D盘,那么路径为D:\instantclient_10_2
打开第2个包,将里面所有的文件复制到D:\instantclient_10_2里面
打开Navicat->工具->选项->其他->OCI
选择
OCI libray (oci.dll)*: D:\instantclient_10_2\oci.dll
SQL*Plus: D:\instantclient_10_2\sqlplus.exe