1.1、查看数据库状态

select open_mode from v$database;

1.2、查看数据库日志

select * from v$diag_info;

1.3、查看当前数据库路径

select name from v$datafile;

1.4、创建表空间

create tablespace test datafile 'C:\app\Administrator\oradata\orcl\test01.dbf' size 10m;

1.5、创建用户

create user hi identified by man default tablespace test;
grant dba to hi;

1.6、创建表

conn hi/man;
create table emp01 (id number(12) primary key,name varchar(20));

1.7、数据插入

insert into emp01 values (1,'Zhangsan');
insert into emp01 values (2,'Lisi');
commit;

1.8、查询表

select * from emp01;

 

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2021-05-02
  • 2021-12-05
  • 2021-11-21
  • 2021-06-23
  • 2022-12-23
猜你喜欢
  • 2021-09-19
  • 2021-06-17
  • 2022-12-23
  • 2021-06-28
  • 2021-06-13
相关资源
相似解决方案