zoukankan      html  css  js  c++  java
  • oracle操作语句

    --cmd 启动oracle数据库

    sqlplus /nolog

    --链接
    conn / as sysdba;

     --删除本地文件 表空间

    --drop tablespace sjbook_data including contents and datafiles;
    --drop tablespace sjbooks_temp including contents and datafiles;

    --重新创建表空间
    create temporary tablespace sjbooks_temp
    tempfile 'E:ProjectTeam3沈局大数据客运databasesjbooks_temp.dbf'
    size 100m
    autoextend on
    next 100m maxsize 2048m
    extent management local;

    create tablespace sjbook_data
    logging
    datafile 'E:ProjectTeam3沈局大数据客运databasesjbook_data.dbf'
    size 100m
    autoextend on
    next 100m maxsize 15000m
    extent management local;

    --创建用户 emp_sjbooks 密码quickhigh 

    create user temp_sjbooks identified by quickhigh
    default tablespace sjbook_data
    temporary tablespace sjbooks_temp;

    grant connect,resource,dba to temp_sjbooks;
    grant create any sequence to temp_sjbooks;
    grant create any table to temp_sjbooks;
    grant delete any table to temp_sjbooks;
    grant insert any table to temp_sjbooks;
    grant select any table to temp_sjbooks;
    grant unlimited tablespace to temp_sjbooks;
    grant execute any procedure to temp_sjbooks;
    grant update any table to temp_sjbooks;
    grant create any view to temp_sjbooks;

    //还原
    imp system/Quickhigh0411@SJBOOKS file=D:SJBOOKS20170815.dmp fromuser=(sjbooks) touser=(sjbooks)

    //备份
    exp system/quickhigh@SJBOOK file=F:DatabaseSJBOOKS201811261442.dmp owner=(sjbooks)

    select count(*) from dba_tables where OWNER = 'SJBOOKS'


    增加表空间:
    alter tablespace BUSINESS_DATA add datafile 'D:appzgoradataSJBOOKSBUSINESS_DATA2.DBF' SIZE 500M autoextend on ;

    萌橙 你瞅啥?
  • 相关阅读:
    [noip2011d2t2]聪明的质检员 二分+前缀和优化
    [noip2016d2t2]蚯蚓
    KMP
    杨辉三角(二项式定理)&&组合数 【noip 2011/2016 d2t1】
    bzoj1615 [Usaco2008 Mar]The Loathesome Hay Baler麻烦的干草打包机
    [noip2015 pjt3]求和
    [周记]8.28~9.3
    [noip2011 d1t3] Mayan游戏
    react基础用法二(组件渲染)
    react基础用法一(在标签中渲染元素)
  • 原文地址:https://www.cnblogs.com/daimaxuejia/p/10020328.html
Copyright © 2011-2022 走看看