一.备份Oracle数据库 1.使用数据库管理员账户登录 sqlplus system/system@orcl as sysdba; 2.创建备份目录,并指定备份目录(bak_dir)的物理路径 create or replace directory bak_dir as '/Oracle/OraBackupFile/Data'; 3.将“bak_dir”的读.写和执行权限赋给数据库用户(lpattendance) grant all on directory bak_dir to lpatte
oracle更新语法:1.一般语法 update tab set col = .... [where ...] =后可以有子查询,但是必须对于tab的每一列返回唯一一行与之对应,where是需要更新的表,部分更新必须加,否则相关子查询的更新会把没有匹配的更新为null,如 update tab a set a.col=(select b.col from b where a.id=b.id) where exists (select 1 from b where a.id=b.id)
今天在做 Oracle表字段更新时出现了特殊字符&,导致无法更新. 这个问题是第二次碰到了,所以在此记录下,以备后用. 举例: update t set col1='A&B' where ... 点击执行时,弹出了这个东东,是不是很奇怪? 百度过后知道&字符在Oracle中是特殊字符. 解决方法如下: update t set col1='A'||'&'||'B' where ...
1. 查看undo相关参数 SYS@LGR> show parameter undo NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ undo_management string AUTO undo_retention undo_tablespace string UNDOTBS1 1)undo_management:自动管理回滚段模式(AUM) 2)u
--找到存放dbf文件的路径--E:\oracle\product\10.2.0\oradata\orcl--可以通过此语句进行查询select * from v$datafile; --创建表空间create tablespace cxjm logging datafile 'E:\oracle\product\10.2.0\oradata\orcl\cxjm.dbf' size 50m autoextend on extent management local; drop user cxjm