利用系統自帶腳本utlsampl.sql創建scott用戶及樣本數據

SQL>  select * from v$version;


BANNER

--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

PL/SQL Release 11.2.0.1.0 - Production

CORE    11.2.0.1.0      Production

TNS for Linux: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production


SQL> select USERNAME,ACCOUNT_STATUS,DEFAULT_TABLESPACE,TEMPORARY_TABLESPACE,CREATED from dba_users where USERNAME = 'SCOTT';


no rows selected

2.創建 腳本路徑$ORACLE_HOME/rdbms/admin/utlsampl.sql


SQL> @?/rdbms/admin/utlsampl.sql

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

建立完成以後會自動退出sqlplus,請重新登錄既可.,我在這裏耽誤了好多時間,希望同行看到我的文章後,不要多走彎路。

運行sqlplus /nolog

SQL> conn scott/tiger

Connected.

SQL> select * from tab;

TNAME

------------------------

DEPT

EMP

BONUS

SALGRADE

查看當前用戶的所有的


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章