select table_name from user_tables; grant connect to c##smith; select 'grant select on ' || table_name || 'to c##smith;' from user_tables;
grant select on EMP21 to c##smith; grant select on ORDER2 to c##smith; grant select on CRIME_TIME to c##smith; grant select on SALGRADE to c##smith; grant select on EMP_KIND1 to c##smith; grant select on EMP_KIND2 to c##smith; grant select on MARKET_2022 to c##smith; grant select on MARKET_2017 to c##smith; grant select on PRICE_2022 to c##smith; grant select on EMP_TEST to c##smith; grant select on EMP21_BACKUP to c##smith; grant select on EMP21_TEST to c##smith; grant select on EMP_NEW to c##smith; grant select on DEPT_NEW to c##smith; grant select on EMP_LSW to c##smith; grant select on EMP900 to c##smith; grant select on EMP902 to c##smith; grant select on DEPT900 to c##smith; grant select on INSURANCE to c##smith; grant select on USEDCAR to c##smith; grant select on INSURANCE2 to c##smith; grant select on KOREA_CANCER to c##smith; grant select on KOREA_CANCER2 to c##smith; grant select on CRIME_DAY to c##smith; grant select on BAE_ORDER to c##smith; grant select on EMP_11_08 to c##smith; grant select on TABLE_LIST_11_21 to c##smith; grant select on EMP_12 to c##smith; grant select on DEPT_12 to c##smith; grant select on CUPPANG_ORDER to c##smith; grant select on EMPLOYEES1 to c##smith; grant select on EMPLOYEES to c##smith; grant select on DEPARTMENTS to c##smith; grant select on EMP81 to c##smith; grant select on EMP82 to c##smith; grant select on EMP_TEST2 to c##smith; grant select on EMP500 to c##smith; grant select on DEPT901 to c##smith; grant select on TELECOM_TABLE to c##smith; grant select on DEPT to c##smith; grant select on EMP to c##smith; grant select on SYS_TEMP_FBT to c##smith; grant select on EMP_TEMP1 to c##smith; grant select on EMP_TEMP2 to c##smith; grant select on DEPT_TEM2 to c##smith;
create public synonym emp for c##scott.emp; select 'create public synonym ' || table_name || 'for c##scott.emp;' from user_tables; create public synonym EMP21 to c##smith; create public synonym ORDER2 to c##smith; create public synonym CRIME_TIME to c##smith; create public synonym SALGRADE to c##smith; create public synonym EMP_KIND1 to c##smith; create public synonym EMP_KIND2 to c##smith; create public synonym MARKET_2022 to c##smith; create public synonym MARKET_2017 to c##smith; create public synonym PRICE_2022 to c##smith; create public synonym EMP_TEST to c##smith; create public synonym EMP21_BACKUP to c##smith; create public synonym EMP21_TEST to c##smith; create public synonym EMP_NEW to c##smith; create public synonym DEPT_NEW to c##smith; create public synonym EMP_LSW to c##smith; create public synonym EMP900 to c##smith; create public synonym EMP902 to c##smith; create public synonym DEPT900 to c##smith; create public synonym INSURANCE to c##smith; create public synonym USEDCAR to c##smith; create public synonym INSURANCE2 to c##smith; create public synonym KOREA_CANCER to c##smith; create public synonym KOREA_CANCER2 to c##smith; create public synonym CRIME_DAY to c##smith; create public synonym BAE_ORDER to c##smith; create public synonym EMP_11_08 to c##smith; create public synonym TABLE_LIST_11_21 to c##smith; create public synonym EMP_12 to c##smith; create public synonym DEPT_12 to c##smith; create public synonym CUPPANG_ORDER to c##smith; create public synonym EMPLOYEES1 to c##smith; create public synonym EMPLOYEES to c##smith; create public synonym DEPARTMENTS to c##smith; create public synonym EMP81 to c##smith; create public synonym EMP82 to c##smith; create public synonym EMP_TEST2 to c##smith; create public synonym EMP500 to c##smith; create public synonym DEPT901 to c##smith; create public synonym TELECOM_TABLE to c##smith; create public synonym DEPT to c##smith; create public synonym EMP to c##smith; create public synonym SYS_TEMP_FBT to c##smith; create public synonym EMP_TEMP1 to c##smith; create public synonym EMP_TEMP2 to c##smith; create public synonym DEPT_TEM2 to c##smith;