zoukankan      html  css  js  c++  java
  • 建库倒库

    创建表空间:
    (需要有相对应的路径d:database)
    --一体化系统表空间
    create tablespace LTLOBDATA01
    datafile 'd:databaseLTLOBDATA01.def' size 1G
    autoextend on next 100M maxsize unlimited logging
    extent management local autoallocate
    segment space management auto;


    -- 1 create user username
    create user bj1220
    identified by "1"
    default tablespace LTSYSDATA01
    temporary tablespace TEMP
    profile default
    account unlock;

    -- 3 grant role tempuser_role to username
    --grant tempuser_role to username;
    grant comment any table to bj1220;
    grant create any sequence to bj1220;
    grant create any table to bj1220;
    grant create any view to bj1220;
    grant alter any procedure to bj1220;
    grant create any procedure to bj1220;
    grant unlimited tablespace to bj1220;
    grant dba to bj1220;
    commit


    drop user 用户名 cascade;
    select * from v$session where username ='用户名'

    drop user EFM_PORTAL_LH01 cascade;
    select * from v$session where username ='EFM_PORTAL_LH01'
    select saddr,sid,serial#,paddr,username,status from v$session where username is not null and username = 'EFM_PORTAL_LH01'
    alter system kill session'74,52833'

    export.bat文件

    set username=HUILAI2017
    set password=HUILAI2017
    set filename=huilai.dmp
    set servername=192.168.100.97/orcl
    set cd=F:gxexport
    exp %username%/%password%@%servername% file=%cd%\%filename% log=%cd%\%username%.log

    pause

    import.bat文件

    set username=EFM_PORTAL_GX
    set password=EFM_PORTAL_GX
    set filename=efm_portal_650205.dmp
    set servername=127.0.0.1/orcl
    set cd=F:gx
    imp %username%/%password%@%servername% file=%cd%\%filename% full=y ignore=y buffer=40960000 commit=y

    pause

  • 相关阅读:
    java多线程调试
    nginx学习网站收录
    eclispe使用
    网站收集
    《TCP/IP详解卷1:协议》——第6章 ICMP:Internet控制报文协议(转载)
    深入理解计算机系统——第12章:用信号量同步线程
    《TCP/IP详解卷1:协议》——第5章 RARP:逆地址解析协议(转载)
    YYHS-Floor it(递推+矩阵乘法+快速幂)
    YYHS-数列
    (转)Tarjan应用
  • 原文地址:https://www.cnblogs.com/sx2zx/p/9264570.html
Copyright © 2011-2022 走看看