
复制SQL> Gruant dba to scott               SQL> createtable test(namechar(10));               Table created.               SQL> createtable system.test(namechar(10));               Table created.               SQL> insertinto test values(scott);               1 row created.               SQL> insertinto system.test values(system);               1 row created.               SQL> commit;               Commit complete.               SQL> conn system/manager               Connected.               SQL> select * from test;               NAME            ----------              system               SQL> ALTER SESSION SET CURRENT_SCHEMA = scott; --改变用户缺省schema名              Session altered.               SQL> select * from test;               NAME            ----------              scott               SQL> select owner ,用服
table_name from dba_tables where table_name=upper(test);               OWNER TABLE_NAME               ------------------------------ ------------------------------              SCOTT TEST               SYSTEM TEST              1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.            
(责任编辑:系统运维)