摘要:
V_PROC_SQL := 'BEGIN ' || V_SUBAPP_PROC_NAME || '(:V_SUBAPP_IN_PARAMS,:V_SUBAPP_OUT_PARAMS); END;'; EXECUTE IMMEDIATE V_PROC_SQL USING IN V_SUBAPP_IN_ 阅读全文
摘要:
DROP TABLE TEST_SPLIT PURGE; CREATE TABLE TEST_SPLIT(DATA_ID NUMBER(10), NAME VARCHAR2(100)); INSERT INTO TEST_SPLIT VALUES(1,'语文'); INSERT INTO TEST_ 阅读全文
摘要:
CREATE TABLE AGGTEST(NAME VARCHAR2(10),TYP VARCHAR2(10)); SELECT T.* FROM AGGTEST T; NAME TYP alley GCGC jacky GCGC pr ICGC candy GCGC dc ICGC alley G 阅读全文
摘要:
V_SQL CLOB; V_SQL := DBMS_LOB.SUBSTR(V_SQL,DBMS_LOB.GETLENGTH(V_SQL)-2,1) || ' IS NOT NULL'; EXECUTE IMMEDIATE V_SQL USING V_PARAM1,V_PARAM2; COMMIT; 阅读全文
摘要:
--批量重建分区表索引 UNUSABLE的分区索引都重建了 DECLARE V_SQL VARCHAR2(2000); BEGIN FOR J IN (SELECT INDEX_NAME,PARTITION_NAME,STATUS,TABLESPACE_NAME FROM USER_IND_PART 阅读全文
摘要:
DECLARE V_BEGIN_DT DATE; IN_PART_TYPE VARCHAR2(30):= 'PM_MAX'; STR_PART_DT VARCHAR2(30); STR_DT VARCHAR2(30); BEGIN FOR I IN(SELECT TABLE_NAME,MAX(PAR 阅读全文
摘要:
--add partition by MONTH (Compress) 20230213 --SELECT TABLE_NAME,PARTITION_NAME,COMPRESSION,T.* FROM USER_TAB_PARTITIONS T WHERE TABLE_NAME = 'TEST_CO 阅读全文
摘要:
--BRD:根据渠道安排随机分配置靓号 -- Create table create table T_LUCKY_ITEM ( BILL_ID VARCHAR2(20), BILL_LEVEL VARCHAR2(10), ORG_ID VARCHAR2(20), FREE_01 VARCHAR2(1 阅读全文
摘要:
SELECT SCOTT.PKG_UTIL.FUNC_GET_BASE_RATE@DBLINK(T.BUSI_DT, DECODE(T.RATE_CODE,'OD_LPR','LPR','PBOC'), date'2022-10-31', ADD_MONTHS(date'2022-10-31',3) 阅读全文
摘要:
MV_TEST在Schema1下创建,Schema2下无法进行刷新解决方法Instead of ALTER ANY MATERIALIZED VIEW try GRANT ALTER ON MV_TEST to Schema2: ERROR at line 1:ORA-01031: insuffic 阅读全文