如何备份Oracle数据库:
MD F:\DB_BAK\%date:~0,10%
EXP userid=bszlhr/bszlhr@ORCL_14 file=F:\DB_BAK\%date:~0,10%\bszlhr%date:~0,10%.dmp log=f:\DB_BAK\%date:~0,10%\log_bszlhr_%date:~0,10%.log
buffer=64000 owner=bszlhr
-----创建信用信息的表----------
create table GCCredit(
itemID number(10,0),
EmpID number(10,0),
CreditCots varchar2(100),
Notes varchar(100)
)
select * from GCCredit
GCV_Credit
-------创建信用信息的视图------
CREATE OR REPLACE VIEW GCV_Credit (
filepath,
unitid,
deptno,
empno,
empname,
position,
itemid,
empid,
creditcots,
notes
)
AS
Select emp.FilePath ,emp.UnitID, emp.DeptNo, emp.EmpNo, emp.EmpName,emp.position,
c.itemid,c.empid,c.creditcots,c.notes
from GCCredit c, GCEmployee emp
WHERE emp.EmpID = c.EmpID
select * from GCV_Credit
----1.用来查询所需要的应用程序------------------
select * from gc_appobjects where obj_class like '%Credit%';
-----2.用来查询所需要的数据对象-----------------
select * from gc_dbobjects where obj_class like '%Credit%';
------3.用来查询数据对象中所包含的字段--------
select * from gc_columns where obj_id in (
select obj_id from gc_dbobjects where obj_class like '%Credit%');
1. 在oracle中如何获取前10条的记录:
select * from tablename where rownum<11 order by colname desc
2. 在oracle中的多表连接查询,
Oracle多表连接与子查询
Posted on 2009-07-02 13:17 仲宏伟(anmo) 阅读(456) 评论(0) 编辑 收藏
1:等值连接
迪卡尔集连接
select ename, a.deptno as a_deptno,b.deptno as b_deptno ,b.dn
1.Oracle为客户端开启会话有两种方式:共享服务和专用服务。在专用服务情况下,监听器为连接请求创建新进程(Unix环境下是Process,Windows下我想应该是Thread吧);共享服务情况下,监听器将客户请求交给Dispatcher,由Dispatcher安排多客户的作业。SQL Server在默认情况下自动为客户端连接创建线程,当有非常多的客 ......
DBWn进程负责将脏数据块写入磁盘。它是一个非常重要的进程,随着内存的增加,一个DBWn进程可能不够用了。从oracle8i起,我们可以为系统配置多个DBWn进程。初始化参数db_writer_process决定了启动多少个DBWn进程。每个DBWn进程都会分配一个cache lru chain latch。
DBWn作为一个后台进程, ......