DROP VIEW user1.V_table1;
/* Formatted on 17/06/2013 09:02:28 (QP5 v5.163.1008.3004) */
(
SUB_ID,
ORG_MOB_TYPE,
MOB_TYPE,
ISDN,
IMSI,
IN_ID,
CEN_CODE,
CREATE_DATETIME,
SEGMENT_ID,
ACTIVE_DATETIME,
PRELOAD_AMOUNT,
ACTIVE_AMOUNT
)
AS
SELECT SUB_ID,
ORG_MOB_TYPE,
MOB_TYPE,
ISDN,
IMSI,
IN_ID,
CEN_CODE,
CREATE_DATETIME,
SEGMENT_ID,
ACTIVE_DATETIME,
PRELOAD_AMOUNT,
ACTIVE_AMOUNT
FROM user1.table1
UNION ALL
SELECT SUB_ID,
ORG_MOB_TYPE,
MOB_TYPE,
ISDN,
IMSI,
IN_ID,
CEN_CODE,
CREATE_DATETIME,
SEGMENT_ID,
ACTIVE_DATETIME,
PRELOAD_AMOUNT,
ACTIVE_AMOUNT
FROM user11.table1
UNION ALL
SELECT SUB_ID,
ORG_MOB_TYPE,
MOB_TYPE,
ISDN,
IMSI,
IN_ID,
CEN_CODE,
CREATE_DATETIME,
SEGMENT_ID,
ACTIVE_DATETIME,
PRELOAD_AMOUNT,
ACTIVE_AMOUNT
FROM user13.table1
UNION ALL
SELECT SUB_ID,
ORG_MOB_TYPE,
MOB_TYPE,
ISDN,
IMSI,
IN_ID,
CEN_CODE,
CREATE_DATETIME,
SEGMENT_ID,
ACTIVE_DATETIME,
PRELOAD_AMOUNT,
ACTIVE_AMOUNT
FROM user14.table1;
DROP PUBLIC SYNONYM V_table1;
CREATE OR REPLACE PUBLIC SYNONYM V_table1 FOR user1.V_table1;