本文章共4508字,分3页,当前第3页,快速翻页:1 2 3
select SYS_CONTEXT('USERENV','HOST') host_name from dual;
set sqlprompt &hname>
--------------------------------------------------------------------------------
登录SQL*PLUS的欢迎信息就变成如下所示:
[zhangleyi@as orcl]$ sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.4.0 - Production on Mon Jan 5 20:10:44 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
Welcome to Zhangleyi's SQL*PLUS!
[A]只需要把密码加上双引号即可,连接时加不加引号都可以。
SQL> create user test identified by "123";
用户已创建
SQL> grant connect to test;
授权成功。
SQL> conn test/123@fs8dev;
已连接。
SQL> conn test/"123"@fs8dev;
已连接。
SQL>
[Q]listener.log文件太大
[A]D:\oracle\ora81\network\LOG\listener.log,不能删除或改名文件,只能删除文件的内容。
[Q]将大约150万条记录插入一个表,每行的大小大约170byte,表的大小约为255M,索引130M,总共约400M,归档日志大约2G ???
[A] (1) 在数据仓库系统中,应尽量使用不写重做日志的操作.
在操作完成后作一次联机热备份以便提供恢复。
(2) 用直接路径的方式将数据装入到不使用重做日志的表。
(3) using skip_index_maintenance.
(4)
rebuilding the indexes afterwards in parallel with nologging.
The redo you see generated in the non-indexed example is
used to protect the data dictionary
example:
IXDBA.NET技术社区
insert /*+ append */ into mytest select * from all_objects;
alter index t_idx unusable;
alter session set skip_unusable_indexes=true;
insert into mytest select * from all_objects;
conclusion:
a direct path load into a non-logged table with skip index
maintenance -- no redo to speak of
Suggestion:
Doing hot backup the affected datafiles as soon as possible
after the load! so you have something you can recover from...
select a.name, b.value
from v$statname a, v$mystat b
where a.statistic# = b.statistic#
and lower(a.name) like '%' || lower('&1')||'%'
--and b.value >0
[Q]怎么样利用光标更新数据
[A] 这个好像比较别扭,还是把“光标”改成“游标”比较正常。
阅读更多内容 :<<上一页 · 1 · 2 · 3