1.文件要与数据库表的编码保持一致;
2.导入时指定编码
(1)csv:LOAD DATA LOCAL INFILE 'C:\mytable.csv' INTO TABLE `mytable` character set utf8 FIELDS TERMINATED BY ',' ESCAPED BY '\' LINES TERMINATED BY '
'......
2015-07-13 06:50:59
查询死锁SQL
SELECT /*+ rule */ s.username,
decode(l.type,'TM','TABLE LOCK',
'TX','ROW LOCK',
NULL) LOCK_LEVEL,
o.owner,o.object_name,o.object_type,
s.sid,s.serial#,s.terminal,s.machine,s.program,s.osuser
FROM v$session s,v$lock l,dba_objects o
WHERE l.sid = s.sid
AND l.id1 = o.object_id(+)
AND s.username is NOT NULL ;......
2015-07-08 17:33:41
sql> archive log list; #查看是不是归档方式
sql> alter system set log_archive_start=true scope=spfile; #启用主动归档
sql> alter system set log_archive_dest=''location=/oracle/ora9/oradata/arch'' scope=spfile;
#设置归档路径
sql> alter system set log_archive_dest_1=''location=/oracle/ora9/oradata/arch1'' scope=spfile;
sql> alter system set log_archive_dest_2=''location=/oracle/ora9/oradata/arch2'' scope=spfile;......
2015-07-08 17:26:57