-
dba_tablespaces user_tablespaces user_users db_users查看全部
-
desc dba_tablespaces select tablespace_name from dba_tablespaces; SYSTEM 系统表空间 存储系统信息 SYSAUX 辅助表空间 UNDOTBS1 存储撤销信息undo表空间 TEMP 临时表空间 USERS 永久性表空间,存储数据库对象 user_tablespaces desc user_tablespaces select tablespace_name from user_tablespaces; 1 SYSTEM 2 SYSAUX 3 UNDOTBS1 4 TEMP 5 USERS查看全部
-
启用用户语句: alter user username account unlock 启用scott用户: //先解锁 alter user scott account unlock //登录 connect scott/tiger查看全部
-
1.sys,system(密码是自己设置的)权限最高,前者高于后者 sysman(密码是自己输入的) scott 默认密码tiger 2.system用户登录: [username/password] [@sever] [as sysdba|sysoper] syste/root @orcl as sysdba orcl就是自己设置的服务名 3.sys权限必须是SYSDBA或者SYSOPER sql语句不区分大小写查看全部
-
desc dba_tablespaces select tablespace_name from dba_tablespaces; SYSTEM 系统表空间 存储系统信息 SYSAUX 辅助表空间 UNDOTBS1 存储撤销信息undo表空间 TEMP 临时表空间 USERS 永久性表空间,存储数据库对象 user_tablespaces desc user_tablespaces select tablespace_name from user_tablespaces; 1 SYSTEM 2 SYSAUX 3 UNDOTBS1 4 TEMP 5 USERS查看全部
-
表空间分类: 1.永久表空间 表、视图、存储过程、触发器等对象永久存储 2.临时表空间 数据库执行的中间执行过程 3.undo表空间 存储数据被修改前的数据查看全部
-
select id as "编号",username as 用户名, salary 工资 from users;查看全部
-
select constraint_name from user_constraints where table_name='USERINFO_P1';查看全部
-
create table table_new as select column1,.....|* from table_old查看全部
-
insert into userinfo values (1,'xxx','123','xxx@126.com',sysdate); 误:sysdate()查看全部
-
alter table table_name rename column column_name to new_column_name;查看全部
-
create table typeinfo( typeid varchar2(2) primary key, typename varchar2(20)); create table userinfo( id varchar2(10) primary key, username varchar2(20), typeid_new varchar2(2) references typeinfo(typeid)); ---在 insert into userinfo(id,username,typeid_new) values('11','张三','01'); insert into typeinfo(typeid,typename) values('01','医生'); insert into userinfo(id,username,typeid_new) values('11','张三','01'); insert into userinfo(id,username,typeid_new) values('12','李四','02'); insert into userinfo(id,username,typeid_new) values('12','李四',null);查看全部
-
【常见错误】添加主键约束之前会检查当前表是否违反需要添加的主键约束,如果违反:ORA-02437: 无法验证 (SYSTEM.PK_ID_NAME) - 违反主键查看全部
-
ALTER TABLE USERINFO_1 MODIFY NAME VARCHAR2(20) PRIMARY KEY; 无法添加主键约束!查看全部
-
创建永久(临时)表空间: 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';查看全部
举报
0/150
提交
取消