假如建立Oracle資料庫時,沒有建立執行個體,沒有SCOTT使用者,也沒有EMP檔案。
需要執行下面的一些指令檔:
路徑:{ORACLE_HOME}\RDBMS\ADMIN
1、sql>@ ..\utlsampl.sql (********)
用於建立SCOTT使用者,及其該使用者下面的一些表,如EMP,DEPT
執行後會直接退出sql命令頁面,返回到cmd。再次進入,使用
select username from dba_users order by username; 即可以看到scott使用者已建立。
sql>conn scott/tiger; 即可查看錶emp的資料
2、sql>@ ..\catalog.sql (*******)
Creates the views of the data dictionary tables, the dynamic performance views, and public synonyms for many of the views. Grants PUBLIC access to the synonyms
3、sql>@ ..\catproc.sql(*******)
Runs all scripts required for or used with PL/SQL.
4、sql>@ ..\PUPBLD.SQL:(***)
Required for SQL*Plus. Enables SQL*Plus to disable commands by
5、sql>@ ..\DBMSSTDX.SQL:
Before a trigger can be created, the user SYS must run this SQL script
6、sql>@ ..\STANDARD.SQL:
Before run PL/SQL, the user SYS must run this SQL script
查看當前資料庫的版本,是否與系統版本相符:如32位/64位
select * from v$version; (sys)
防止開機啟動慢,進入services.msc關閉oracle的相關服務,在需要時開啟,即改為手動,而非開機啟動。
配置Net Configuration Assistant,包含監聽程式及相關的服務名。