Oracle四大应用服务之间的密切关系

  发布时间:2025-11-04 04:09:59   作者:玩站小弟   我要评论
复制SQL>Gruantdbatoscott SQL>createtabletest(namechar(10)); Tablecreated 。
Oracle四大应用服务之间的密切关系
复制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.
  • Tag:

相关文章

最新评论