建立Oracle 11g資料庫後指令檔執行及相關配置

來源:互聯網
上載者:User

假如建立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,包含監聽程式及相關的服務名。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.