Oracle 建立資料庫及匯入資料

來源:互聯網
上載者:User

一 建立資料庫

1  sql>conn / as sysdba // 使用sys 登陸

2  sql>create tablespace space1 datafile 'D:\oracle\JG.dbf' size 1000M autoExtend on;  //space1 資料表空間名稱,建立資料表空間

3 create user user1 identified by 123 default tablespace space1 ; //建立使用者和密碼

4 grant connect,resource,dba to Username; //使用者受許可權

5 commit; //提交

二,匯入:oracle.dmp //oracle資料庫檔案

1 運行 > cmd

2 C:\Users\Administrator> imp   //斷行符號

3 一步一步下去,注意 選項,忽略存在的表選擇yes,

 三 , Oracle佔用8080連接埠問題的解決

1 運行 >cmd >netstat -ano |findstr "8080"   查看是否是oracle佔用

2 進入oracle,sql>

3 sys登陸,

sql>conn / as sysdba // 使用sys 登陸

4 修改連接埠

sql>call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',9081));

5 提交  sql>commit;

6 重新整理  sql>exec dbms_xdb.cfg_refresh;







聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.