<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當(dāng)前位置: 首頁 - 科技 - 知識(shí)百科 - 正文

        Oracle導(dǎo)入另外user的table

        來源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-09 11:46:20
        文檔

        Oracle導(dǎo)入另外user的table

        Oracle導(dǎo)入另外user的table:本實(shí)驗(yàn)是關(guān)于data 的exp 一個(gè)用戶scott 下面imp到另外一個(gè)用戶 中。 ---------在instance = sheng 的導(dǎo)出scott.emp [Oracle@aora 本實(shí)驗(yàn)是關(guān)于data 的exp 一個(gè)用戶scott 下面imp到另外一個(gè)用戶 中。 ---------在instance = s
        推薦度:
        導(dǎo)讀Oracle導(dǎo)入另外user的table:本實(shí)驗(yàn)是關(guān)于data 的exp 一個(gè)用戶scott 下面imp到另外一個(gè)用戶 中。 ---------在instance = sheng 的導(dǎo)出scott.emp [Oracle@aora 本實(shí)驗(yàn)是關(guān)于data 的exp 一個(gè)用戶scott 下面imp到另外一個(gè)用戶 中。 ---------在instance = s

        本實(shí)驗(yàn)是關(guān)于data 的exp 一個(gè)用戶scott 下面imp到另外一個(gè)用戶 中。 ---------在instance = sheng 的導(dǎo)出scott.emp [Oracle@aora

        本實(shí)驗(yàn)是關(guān)于data 的exp 一個(gè)用戶scott 下面imp到另外一個(gè)用戶 中。

        ---------
        在instance = sheng 的導(dǎo)出scott.emp

        [Oracle@aoracle ~]$ exp scott/oracle tables=emp file='/u01/rman/file01.txt';

        Export: Release 10.2.0.1.0 - Production on Fri Dec 16 09:56:22 2011

        Copyright (c) 1982, 2005, Oracle. All rights reserved.


        Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
        With the Partitioning, OLAP and Data Mining options
        Export done in US7ASCII character set and AL16UTF16 NCHAR character set
        server uses ZHS16GBK character set (possible charset conversion)

        About to export specified tables via Conventional Path ...
        . . exporting table EMP 14 rows exported
        EXP-00091: Exporting questionable statistics.
        EXP-00091: Exporting questionable statistics.
        Export terminated successfully with warnings.

        下面imp到另外一個(gè)用戶的table 中。

        下面建立另外一個(gè)user:
        SQL> select name from v$tablespace;

        NAME
        ------------------------------
        SYSTEM
        UNDOTBS2
        SYSAUX
        USERS
        TEMP

        SQL> create tablespace TB_DBS datafile '/u02/sheng/tbsdbs01.dbf' size 20m;

        Tablespace created.

        SQL> select name from v$tablespace;

        NAME
        ------------------------------
        SYSTEM
        UNDOTBS2
        SYSAUX
        USERS
        TEMP
        TB_DBS

        6 rows selected.

        SQL> create user dbs identified by dbs default tablespace tb_dbs;

        User created.

        SQL> select username,account_status from dba_users where username like 'DBS%';

        USERNAME ACCOUNT_STATUS
        ------------------------------ --------------------------------
        DBSNMP OPEN
        DBS OPEN

        下面連一下:
        SQL> CONN DBS/DBS
        ERROR:
        ORA-01045: user DBS lacks CREATE SESSION privilege; logon denied


        Warning: You are no longer connected to ORACLE.

        SQL> grant create session ,resource to dbs;

        Grant succeeded.

        SQL> conn dbs/dbs
        Connected.
        SQL> select * from tab;

        no rows selected

        SQL>

        好,,下面把scott 用戶下的emp table imp 到dbs 用戶下:

        [oracle@aoracle ~]$ imp system/manager file='/u01/rman/file01.txt' fromuser=scott touser=dbs;

        Import: Release 10.2.0.1.0 - Production on Fri Dec 16 10:54:29 2011

        Copyright (c) 1982, 2005, Oracle. All rights reserved.


        Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
        With the Partitioning, OLAP and Data Mining options

        Export file created by EXPORT:V10.02.01 via conventional path

        Warning: the objects were exported by SCOTT, not by you

        import done in US7ASCII character set and AL16UTF16 NCHAR character set
        import server uses ZHS16GBK character set (possible charset conversion)
        . importing SCOTT's objects into DBS
        . . importing table "EMP" 14 rows imported
        IMP-00017: following statement failed with ORACLE error 942:
        "ALTER TABLE "EMP" ADD CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO") REFEREN"
        "CES "DEPT" ("DEPTNO") ENABLE NOVALIDATE"
        IMP-00003: ORACLE error 942 encountered
        ORA-00942: table or view does not exist
        About to enable constraints...
        IMP-00017: following statement failed with ORACLE error 2430:
        "ALTER TABLE "EMP" ENABLE CONSTRAINT "FK_DEPTNO""
        Import terminated successfully with warnings.

        SQL> select count(*) from emp;

        COUNT(*)
        ----------
        14

        SQL> show user;
        USER is "DBS"
        SQL>

        linux

        聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        Oracle導(dǎo)入另外user的table

        Oracle導(dǎo)入另外user的table:本實(shí)驗(yàn)是關(guān)于data 的exp 一個(gè)用戶scott 下面imp到另外一個(gè)用戶 中。 ---------在instance = sheng 的導(dǎo)出scott.emp [Oracle@aora 本實(shí)驗(yàn)是關(guān)于data 的exp 一個(gè)用戶scott 下面imp到另外一個(gè)用戶 中。 ---------在instance = s
        推薦度:
        • 熱門焦點(diǎn)

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 亚洲国产午夜福利在线播放| 午夜网站免费版在线观看| 伊人久久大香线蕉亚洲五月天| 337P日本欧洲亚洲大胆精品| 日本久久久免费高清| 亚洲AV成人精品日韩一区| 成年女人18级毛片毛片免费| 亚洲综合色区中文字幕| 最近中文字幕mv手机免费高清| 在线亚洲午夜片AV大片| 日韩伦理片电影在线免费观看| 精品国产日韩亚洲一区91| yy6080亚洲一级理论| 本免费AV无码专区一区| 久久精品国产亚洲av成人| 98精品全国免费观看视频| a级毛片免费完整视频| 亚洲AV无码乱码国产麻豆穿越| 秋霞人成在线观看免费视频| 午夜无遮挡羞羞漫画免费| 亚洲精品无码国产片| 国产嫩草影院精品免费网址| v片免费在线观看| 亚洲阿v天堂在线| 国产人在线成免费视频| 亚洲欧美自偷自拍另类视 | 毛片无码免费无码播放| 亚洲国产美女精品久久| 免费看的成人yellow视频| 亚洲阿v天堂在线2017免费| 亚洲精品视频在线| 韩国日本好看电影免费看| 一级有奶水毛片免费看| 亚洲国产精品张柏芝在线观看| 国产99视频精品免费视频7| 中文在线免费不卡视频| 亚洲第一成人在线| 激情综合色五月丁香六月亚洲| 1000部免费啪啪十八未年禁止观看| 亚洲av成人一区二区三区在线播放| 久久亚洲欧洲国产综合|