A user schema was created using the system user for the staging tables of a 10gR2 data warehouse on windows. I expdp'd out the system version, built new dbf's and impdp'd and remapped schema and tablspace to a new user name STAGEW. I ran a script to list the rows for comparison of the tables. How do I change this script to include a difference column? If possible I would like to keep it as a cmd line script rather than change it to a declared procedure. Here is my script
SQL> SELECT S.TABLE_NAME, S.NUM_ROWS AS SYSTEMROWS, T.NUM_ROWS AS STAGEWROWS
2 FROM DBA_TABLES s, DBA_TABLES T
3 WHERE s.TABLE_NAME = T.TABLE_NAME
4 AND s.OWNER = 'SYSTEM'
5 AND T.OWNER = 'STAGEW'
6 ORDER BY S.TABLE_NAME;
TABLE_NAME SYSTEMROWS STAGEWROWS
------------------------------ ---------- ----------
STAGE_1901 6571 6571
STAGE_1902 6571 6571
STAGE_1903 6560 6560
Just because these amts are identical do not think I made a mistake there are other rows where differences occur due to i/o errors
SQL> SELECT S.TABLE_NAME, S.NUM_ROWS AS SYSTEMROWS, T.NUM_ROWS AS STAGEWROWS
2 FROM DBA_TABLES s, DBA_TABLES T
3 WHERE s.TABLE_NAME = T.TABLE_NAME
4 AND s.OWNER = 'SYSTEM'
5 AND T.OWNER = 'STAGEW'
6 ORDER BY S.TABLE_NAME;
TABLE_NAME SYSTEMROWS STAGEWROWS
------------------------------ ---------- ----------
STAGE_1901 6571 6571
STAGE_1902 6571 6571
STAGE_1903 6560 6560
Just because these amts are identical do not think I made a mistake there are other rows where differences occur due to i/o errors