1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| select level as xh from dual connect by level <= 8;
select a.*, nvl(test, lag(a.test ignore nulls ) over(order by xh)) from cs12 a order by a.xh;
select regexp_replace('1测试S01','[' || unistr('\0391') || '-' || unistr('\9fa5') || ']','') from dual;
nohup expdp \"/ as sysdba\" PARALLEL=16 cluster=no COMPRESSION=ALL DUMPFILE=CS_%U.dmp DIRECTORY=NEW_DIR logfile=cs.log schemas=cs_user \ query= \"where lrrq\>\=to_date\(\'2022-01-01 00:00:00\'\,\'yyyy-mm-dd hh24:mi:ss\'\) or \(xgrq\>\=to_date\(\'2022-01-01 00:00:00\'\,\'yyyy-mm-dd hh24:mi:ss\'\) \)\" > cs.out 2>&1 &;
EXEC dbms_stats.gather_table_stats(ownname => 'USER',tabname => 'TABLENAME',cascade => TRUE,estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt => 'FOR ALL COLUMNS SIZE AUTO',degree=>16 );
select a.SQL_TEXT, a.SQL_FULLTEXT, a.ADDRESS || ',' || a.HASH_VALUE from v$sqlarea a where sql_fulltext like '%and t.cs = :1%'; select * from v$sql_plan where sql_id = '2n2yxg7h0chdt';
exec sys.dbms_shared_pool.purge('0700000B4EBA9AC8,3758506425', 'c');
|