[db2]-运维

创建表空间

create tablespace first datafile ‘D:\ts.ora’ size 100m 创建表空间,名称为first 位置在D盘的ts文件中

创建用户名

2 CREATE USER uatlw990667 PROFILE “DEFAULT” IDENTIFIED BY “231231Aa”
DEFAULT TABLESPACE “TEST” ; 创建用户 TEST为表空间(TEST必须带有引号,而且必须大写)

赋权

3 grant dba to uatlw990667给新建的用户名 赋予权限

4 select * from v$tablespace 查询所有的表空间

5 select username from dba_users 查询所有用户名

desc dba_data_files 查询超级管理员文件

desc table_name 看表的基本结构

            看生成表的脚本语句

6 @ c:\wbc_basedata.sql 执行脚本的方法

7 delete from BASICINFO 删除表BASICINFO中的所有数据

8 删除一个用户下的所有的表:
当不涉及权限:
select ‘drop table ‘||table_name||’;’
from cat
where table_type=‘TABLE’

将会输出一批删除表的sql语句,这些SQL语句执行一下就可以了。(需要有drop table的权限)

9 有权限就删除用户名,重新添加用户名:drop user uat cascade

10查询一个用户名下有多少张表: Select Count(*) From User_Tables

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.3.0 -Dpackaging=jar -Dfile=C:/Users/Administrator/yycgrepository/repository/com/oracle/ojdbc14/10.2.0.1.0/ojdbc14.jar

The panel is used as a container for other contents.
It is the base component for building other components such as layout, tabs, accordion, etc.
It also provides built-in collapsible, closable, maximizable and minimizable behavior and other customized behavior.
Panels can be easily embedded into any position of web page

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值