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;
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/99414.html
標籤:Oracle
上一篇:各位大蝦:最近正在撰寫PB WEB應用程式,請問如何實作:在客戶端web瀏覽后在客戶端打開客戶端本地D盤的EXCEL檔案?是用GETFILENAME()嗎?
下一篇:請問PB是否可以做型別的轉換
