DB基本操作(oracle)

來源:互聯網
上載者:User

標籤:

建立使用者drop user lztest4 cascade;create user lztest4 identified by lztest123;alter user lztest4 default tablespace COMMON_CABLE;grant connect ,resource,dba to lztest4; drop user lztest3 cascade;create user lztest3 identified by lztest123;alter user lztest3 default tablespace COMMON_CABLE;grant connect ,resource,dba to lztest3; 建立使用者drop user lztest8 cascade;create user lztest8 identified by lztest123;alter user lztest8 default tablespace COMMON_CABLE;grant connect ,resource,dba to lztest8;  drop tablespace common_cable INCLUDING CONTENTS AND DATAFILES; 建立資料表空間create tablespace COMMON_CABLEdatafile ‘E:/COMMON_CABLE.dbf‘   size 1500M   autoextend on next 5M maxsize 3000M;  匯出資料庫exp lztest/[email protected] file=lztest.dmp grants=y;exp lztest7/[email protected] file=lztest7.dmp grants=y;exp lztest6/[email protected] file=lztest6.dmp grants=y;exp lztest5/[email protected] file=lztest5.dmp grants=y; exp lztest6/[email protected] file=f:\lztest6.dmp grants=y;  imp lztest3/[email protected] file=f:\lztest6.dmp tablespaces=common_cable full=y;  匯入資料庫不需要到檔案的目錄,使用預設的目錄imp lztest1/[email protected] file=f:/li/lztest.dmp full=y;imp lztest4/[email protected] file=f:\bak.dmp tablespaces=common_cable full=y;imp lztest8/[email protected] file=f:\bak.dmp tablespaces=common_cable full=y;imp lztest21/[email protected] file=f:\lztesty.dmp tablespaces=common_cable full=y;imp lztest21/[email protected] file=f:\lztesty.dmp tablespaces=common_cable full=y; Microsoft Windows [版本 6.1.7600]著作權 (c) 2009 Microsoft Corporation。著作權所有,並保留一切權利。 C:\Users\Administrator>imp lzcable/[email protected] file=f:/lztestBAK.dmp tablespaces=common_cable full=yimp lztest8/[email protected] file=f:/bak.dmp tablespaces=common_cable full=yimp lztest7/[email protected] file=f:/bak.dmp tablespaces=common_cable full=yimp lztest6/[email protected] file=f:/bak.dmp tablespaces=common_cable full=yimp lztest9/[email protected] file=f:/bak.dmp tablespaces=common_cable full=yimp lztest5/[email protected] file=f:/bak.dmp tablespaces=common_cable full=y imp lztest4/[email protected] file=f:/bak.dmp tablespaces=common_cable full=yimp lztest5/[email protected] file=f:/bak.dmp tablespaces=common_cable full=yimp lztest8/[email protected] file=lztest7.dmp tablespaces=common_cable full=yimp lztest6/[email protected] file=lztest6.dmp tablespaces=common_cable full=y   exp lztest/[email protected] file=f:\lztest6.dmp grants=y;exp lztestorcl/[email protected] file=f:\lztest6.dmp grants=y;  exp lztest/[email protected] file=f:\lztest6.dmp grants=y;exp lztestorcl/[email protected] file=f:\lztest6.dmp grants=y;  exp lztz/[email protected] file=f:\lztz.160314.2.dmp grants=y;exp lztest50/[email protected] file=f:\lztest50.dmp grants=y;imp lztest1/[email protected] file=f:/li/lztest.dmp full=y;imp lztest50/[email protected] file=e:/lztest12345.dmp full=y; exp lztest50/[email protected] file=E:\lztest50.dmp grants=y;imp lztest51/[email protected] file=E:\lztest50.dmp  full=y;imp lztz51/[email protected] file=E:\lztz50.dmp  full=y; imp lztz52/[email protected] file=E:\lztz50.dmp  full=y;  imp lztest53/[email protected] file=E:\lztest50.dmp  full=y;imp lztest55/[email protected] file=E:\lztest50.dmp  full=y; imp lztest55/[email protected] file=F:\lztest123456.dmp  full=y;imp lztest88/[email protected] file=F:\lztest320.dmp  full=y; imp gas_lztz/[email protected] file=D:\lztz54.dmp  full=y;  create user lztest88 identified by lztest123;grant connect ,resource,dba to lztest88; alter user lztest88 default tablespace COMMON_CABLE;exp lztz50/[email protected] file=/home/oracle/lztz320.dmp grants=y;exp lztz50/[email protected] file=f:\lztz321.dmp grants=y; exp lztz50/[email protected] file=/home/oracle/lztz321.dmp grants=y;

DB基本操作(oracle)

聯繫我們

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