-
删除表空间: drop tablespace tablespace_name 删除表空间及数据: drop tablespace tablespace_name[including contents];查看全部
-
更改system用户默认表空间的语句是alter user system default tablespace xxx查看全部
-
数据文件,增加删除数据文件 alter tablespace tablespace_name add datafile 'xx.dbf' size xx; 查看表空间的数据文件 select file_name from dba_data_file where tablespace_name='表空间名字要大小'; 删除数据文件 alter tablespace tablespace_name drop datafile '表空间名字';不能删除表空间的第一个数据文件,要删除的话,必须删除整个表空间。查看全部
-
修改表空间的状态: 设置联机或脱机状态 alter tablespace tablespace offline|online;(脱机状态是不能使用的) 查看表空间状态 select sstatus from dba_tablespaces where tablespace_name='xxx'; 设置只读或者可读写状态: alter tablespace tablespace_name read only(只读)|read write(读写);查看全部
-
创建表空间查看全部
-
创建永久(临时)表空间: create[temporary]tablespace tablespace_name(表空间名字) tempfile|datafile xxx.dbf(数据库名字) size xxx(10m)(大小); 查看表空间: select 文件名 from dab_data_files where tablespace_name='xxx'; 查看临时表空间: select 文件名 from dba_temp_files where tablespace_name='xxx';查看全部
-
在Oracle数据库安装完成后,system用户默认的临时表空间和临时表空间分别是:system和temp查看全部
-
1.查看系统管理员表空间: desc dba_tablespaces select tablespace_name from dba_tablespaces; 2.查看普通用户表空间: desc user_tablespaces select tablespace_name form user_tablespaces;(scott权限比system小,用这个查询) 3.权限大的可以查询权限小的 4.查看SYSTEM默认表空间或临时表空间: select default_tablespace,temporary_tablespace from dba_users where username="SYSTEM"; 5.设置用户默认或临时表空间: alter user system default tablespace system;查看全部
-
表空间分类: 1.永久表空间 表、视图、存储过程、触发器等对象永久存储 2.临时表空间 数据库执行的中间执行过程 3.undo表空间 存储数据被修改前的数据查看全部
-
在sys,system,sysman,scott四个用户权限中,scott用户最低查看全部
-
启用用户语句: alter user username account unlock 启用scott用户: //先解锁 alter user scott account unlock //登录 connect scott/tiger查看全部
-
show user查看当前登陆用户(不用加分号) dba_users数据字典,数据字典是数据库提供的表,用于查看数据库的信息。 所以也可以用desc dba_users查看,出来一串小玩意。如果不想查那么多,只想查用户就要输入select username from dba_users;(这一条语句需要加分号)查看全部
-
sql plus 登陆 1 system/password 2 connect sys/password 【@ip+服务名】 as sysdba;查看全部
-
soctt默认密码是tiger查看全部
-
启用用户语句: alter user username account unlock 启用scott用户: //先解锁 alter user scott account unlock //登录 connect scott/tiger查看全部
举报
0/150
提交
取消