摘要:
ALTER USER TEST DEFAULT TABLESPACE TEST_DATA; ALTER USER TEST TEMPORARY TABLESPACE TEST_TMP; SELECT * FROM DBA_USERS A WHERE A.USERNAME='TEST'; SELECT 阅读全文
摘要:
1.找出重复数据 select count(1),uuid from ts.test group by uuid having count(1)>1 order by 1 desc ; 找出重复数据 select * from ts.test E WHERE E.ROWID > (SELECT MI 阅读全文
摘要:
DROP TABLESPACE BRS_DATA INCLUDING CONTENTS AND DATAFILES;DROP TABLESPACE BRS_IDX INCLUDING CONTENTS AND DATAFILES;DROP TABLESPACE BRS_TEMP INCLUDING 阅读全文
摘要:
--11g 以后关闭回收站 system 级别需要加 DEFERRED 参数; session 级别不需要 select name,isses_modifiable,issys_modifiable from v$parameter where name='recyclebin' SQL> show 阅读全文
摘要:
低版本 往 高版本 导入,导出的时候不用加version ; 高版本往低版本的时候 需要加 version expdp version (往低版本的时候 需要加 version 版本号是 impdp 端的) 阅读全文
摘要:
1.根据数据库现有模板创建PDB CREATE PLUGGABLE DATABASE ssptrad ADMIN USER sspIDENTIFIED BY oracle roles=(dba) file_name_convert=('/u01/app/oracle/oradata/ora12c/p 阅读全文
摘要:
select a.table_owner, a.table_name, a.max_partition from (select table_owner, table_name, max(partition_name) max_partition from dba_tab_partitions wh 阅读全文
摘要:
一、创建远程物化视图日志 源端: CREATE MATERIALIZED VIEW LOG ON tozwdb.test tablespace tozwdb_data WITH ROWID; 二、付权限 目标库 Create user tozwdb identified by tozwdb_dev; 阅读全文
摘要:
PDB启动随cdb自动启动命令: --单个PDB ORCLPDB alter pluggable database ORCLPDB save state;--PDB开启状态下,CDB重启,PDB随CDB启动 alter pluggable database ORCLPDB discard state 阅读全文