Oracle中使用IMP Dos命令 导入DIC数据库备份过程
Oracle中使用IMP Dos命令 导入DIC数据库备份过程
1.使用具有建立表空间和用户权限的用户登录Oracle;
2.建立需要的表空间;
3.建立需要的用户(用户名,密码,默认表空间,临时表空间,权限)
4.打开DOS窗口,在命令行中输入IMP;
5.用第三步中建立好的用户登录数据库;
6.输入DIC文件的完全路径,按照提示选择,即可导入。
相关文档:
创建表的语法
-创建表格语法:
create table 表名(
字段名1 字段类型(长度) 是否为空,
字段名2 字段类型 是否为空
);
-增加主键
alter table 表名 add constraint 主键名 primary key (字段名1);
-增加外键:
alter table 表名
  ......
alter table Tablename add(column1 varchar2(20),column2 number(7,2)...)
比如:
已有表A,结构如下
字段名 类型
------------ -------------
A VARCHAR2(10)
B NUMBER
现在要增加 ......
原文:ORA-00600 internal error code, arguments: [string], [string], [string], [string], [string], [string], [string], [string]
Cause This is the generic internal error number for Oracle program exceptions. It indicates that a process has encountered a low-level, unexpected condition. Causes of t ......
oracle clob 和blob问题的解决
整理了oracle clob 和blob问题的解决办法:
1:建议使用oracle 10的ojdbc14.jar,否则当保存clob的时候可能会出现套接字错误;
2:spring配置如下:
java代码:
<bean id="sessionFact ......
---创建表空间
create tablespace 表空间名字 datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss01.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss02.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\w ......