zoukankan      html  css  js  c++  java
  • 一些凌乱的Oracle设置及命令

    1.alter user scott account unlock;--解锁scott用户。
    2.set timing on/off;--显示/关闭执行时间。
    3.show user;--查看当前用户。
    4.select 列名1 别名,列名2 别名,...列名N 别名 from table_name;--返的回列名为别名(相当于select 列名 as 别名 from 表名)。
    5.select table_name from user_tables;--当前用户的表。
    6.show pagesize;--显示一页的大小。
    7.set pagesize 20;--设置显示页面的大小为20。
    8.show linesize;显示每行打印的字符。
    9.set linesize 100;设置每行打印的字符为100。
    10.create user xiaoming identified by xiaoming;--创建一个用户名为xiaoming密码为xiaoming的用户。
    11.grant create sesion,resource to xiaoming;--对用户xiaoming进行授权.
    12.alter user xiaoming identified by oracle;--将用户xiaoming的密码改为oracle。
    13.alter user drh default tablespace users temporary tablespace temp;--用户账户drh的默认表空间为users,而临时表空间为temp。
    14.alter user xiaoming account lock/ulock;--锁定/解锁用户xiaoming。
    15.rename old_table_name to new_table_name;--重命名表名。
    16.drop table table_name;删除表。

    好久没看Oracle的书籍了,今天随便翻翻,随手记下几行笔记,班门弄斧,让大家见笑了,此笔记仅仅作为个人学习参考之用!


     

  • 相关阅读:
    codeforces C. No to Palindromes!
    codeforces D. Pashmak and Parmida's problem
    codeforces C. Little Pony and Expected Maximum
    codeforces D. Count Good Substrings
    codeforces C. Jzzhu and Chocolate
    codeforces C. DZY Loves Sequences
    codeforces D. Multiplication Table
    codeforces C. Painting Fence
    hdu 5067 Harry And Dig Machine
    POJ 1159 Palindrome
  • 原文地址:https://www.cnblogs.com/aceboy/p/7820210.html
Copyright © 2011-2022 走看看