zoukankan      html  css  js  c++  java
  • 数据库创建表空间,用户、密码,授权

    数据库创建表空间,用户、密码,授权
    C:Userswangfg>sqlplus /nolog

    SQL*Plus: Release 10.2.0.1.0 - Produc

    Copyright (c) 1982, 2005, Oracle. Al

    SQL> connect sys/wangfg as sysdba
    已连接。
    SQL> create tablespace tos2016 datafile 'F:oracleproduct10.2.0oradataorcl os2016.dbf' size 20M autoextend on next 20m;

    备注:orcl为数据库实例名。

    表空间已创建。

    SQL> create user tos2016 identified by ehl1234 default tablespace tos2016 temporary tablespace temp;

    用户已创建。

    SQL> grant connect to tos2016 ;


    授权成功。

    SQL> grant dba to tos2016 ;

    SQL> exit

    删除库

    drop user tos2014 cascade;
    drop tablespace tos2014 including contents and datafiles;

  • 相关阅读:
    网络编程基础
    面试题
    面试题合集
    异常
    三个重要的模块loggning,hashlib,configparse
    面向对象进阶
    单例模式
    反射
    封装
    开发规范
  • 原文地址:https://www.cnblogs.com/wangfg/p/5112391.html
Copyright © 2011-2022 走看看