oracle历史知识备注
江州ssl适用于网站、小程序/APP、API接口等需要进行数据传输应用场景,ssl证书未来市场广阔!成为创新互联建站的ssl证书销售渠道,可以享受市场价格4-6折优惠!如果有意向欢迎电话联系或者加微信:028-86922220(备注:SSL证书合作)期待与您的合作!
v_sql_time := lpad(trunc( ceil((v_beg_time - sysdate) * 24 * 60 * 60)/3600),2,'0')||':'||
lpad(trunc(mod(ceil((v_beg_time - sysdate) * 24 * 60 * 60),3600)/60),2,'0')||':'||
lpad(round(mod(ceil((v_beg_time - sysdate) * 24 * 60 * 60),60),2),2,'0')
sp_etl_run_log(v_proname,v_sql_time,v_step,v_sql_code,v_run_msg,v_row_count,v_beg_time,sysdate,'sp_fin_trans_realtime');
oracle 两个时间相减默认的是天数
oracle 两个时间相减默认的是天数*24 为相差的小时数
oracle 两个时间相减默认的是天数*24*60 为相差的分钟数
oracle 两个时间相减默认的是天数*24*60*60 为相差的秒数
--MONTHS_BETWEEN(date2,date1)
给出date2-date1的月份
SQL> select months_between('19-12月-1999','19-3月-1999') mon_between from dual;
MON_BETWEEN
-----------
9
SQL>select months_between(to_date('2000.05.20','yyyy.mm.dd'),to_date('2005.05.20','yyyy.dd')) mon_betw from dual;
MON_BETW
---------
-60
Oracle计算时间差表达式
--获取两时间的相差豪秒数
select ceil((To_date('2008-05-02 00:00:00' , 'yyyy-mm-dd hh34-mi-ss') - To_date('2008-04-30 23:59:59' , 'yyyy-mm-dd hh34-mi-ss')) * 24 * 60 * 60 * 1000) 相差豪秒数 FROM DUAL;
/*
相差豪秒数
----------
86401000
1 row selected
*/
--获取两时间的相差秒数
select ceil((To_date('2008-05-02 00:00:00' , 'yyyy-mm-dd hh34-mi-ss') - To_date('2008-04-30 23:59:59' , 'yyyy-mm-dd hh34-mi-ss')) * 24 * 60 * 60) 相差秒数 FROM DUAL;
/*
相差秒数
----------
86401
1 row selected
*/
--获取两时间的相差分钟数
select ceil(((To_date('2008-05-02 00:00:00' , 'yyyy-mm-dd hh34-mi-ss') - To_date('2008-04-30 23:59:59' , 'yyyy-mm-dd hh34-mi-ss'))) * 24 * 60) 相差分钟数 FROM DUAL;
/*
相差分钟数
----------
1441
1 row selected
*/
--获取两时间的相差小时数
select ceil((To_date('2008-05-02 00:00:00' , 'yyyy-mm-dd hh34-mi-ss') - To_date('2008-04-30 23:59:59' , 'yyyy-mm-dd hh34-mi-ss')) * 24) 相差小时数 FROM DUAL;
/*
相差小时数
----------
25
1 row selected
*/
--获取两时间的相差天数
select ceil((To_date('2008-05-02 00:00:00' , 'yyyy-mm-dd hh34-mi-ss') - To_date('2008-04-30 23:59:59' , 'yyyy-mm-dd hh34-mi-ss'))) 相差天数 FROM DUAL;
/*
相差天数
----------
2
1 row selected
*/
----------------------------------------
注:天数可以2个日期直接减,这样更加方便
----------------------------------------
--获取两时间月份差
select (EXTRACT(year FROM to_date('2009-05-01','yyyy-mm-dd')) - EXTRACT(year FROM to_date('2008-04-30','yyyy-mm-dd'))) * 12 +
EXTRACT(month FROM to_date('2008-05-01','yyyy-mm-dd')) - EXTRACT(month FROM to_date('2008-04-30','yyyy-mm-dd')) months
from dual;
/*
MONTHS
----------
13
1 row selected
*/
--------------------------------------
注:可以使用months_between函数,更加方便
--------------------------------------
--获取两时间年份差
select EXTRACT(year FROM to_date('2009-05-01','yyyy-mm-dd')) - EXTRACT(year FROM to_date('2008-04-30','yyyy-mm-dd')) years from dual;
/*
YEARS
----------
1
select sysdate,add_months(sysdate,12) from dual; --加1年
select sysdate,add_months(sysdate,1) from dual; --加1月
select sysdate,TO_CHAR(sysdate+7,'yyyy-mm-dd HH24:MI:SS') from dual; --加1星期
select sysdate,TO_CHAR(sysdate+1,'yyyy-mm-dd HH24:MI:SS') from dual; --加1天
select sysdate,TO_CHAR(sysdate+1/24,'yyyy-mm-dd HH24:MI:SS') from dual; --加1小时
select sysdate,TO_CHAR(sysdate+1/24/60,'yyyy-mm-dd HH23:MI:SS') from dual; --加1分钟
select sysdate,TO_CHAR(sysdate+1/24/60/60,'yyyy-mm-dd HH23:MI:SS') from dual; --加1秒
select sysdate+7 from dual; --加7天
select dbms_lob.substr(clob_field),c.*,m.* from ;
spool的设置
SET echo off;
SET feedback off;
SET pagesize 0;
SET termout off;
SET linesize 10000;
SET heading off;
SET feedback off;
spool F:\dir\dd.csv;
select 'TRS_CREATE_TIME,TRANS_ID,PAYMENT_ID,PAY_TYPE,NEW_PAY_CHANNEL,BANK_ID,BANK_NAME,CHANNEL_ID,RSP_CODE,RSP_DESC,BANK_RSP_CODE,BANK_RSP_DESC,PRODUCT_CODE,SUB_TRANS_TYPE,CUSTOMER_ID,MERCHANT_NO,MERCHANT_NAME' from dual;
select xx||','||yy
from zz
where qq;
spool off;
SET echo off --在用start命令执行一个sql脚本时,是否显示脚本中正在执行的SQL语句;
SET feedback off --是否回显本次sql命令处理的记录条数,缺省为on;
SET heading off --是否显示列标题,缺省为on;
SET pagesize 50000 --设置每页有多少行数,缺省为14。当值设为0时,输出内容为一页且不显示列标题,为了避免分页,我们通常可设定为0。
SET termout off --是否在屏幕上显示输出的内容,或脚本中的命令的执行结果,缺省为on;
SET trimout on; --去除标准输出每行后面多余的空格,缺省为off;
SET timing off --显示每个sql语句花费的执行时间;
SET trimspool on --去除重定向(spool)输出每行的拖尾空格,缺省为off;
SET NULL text --显示时,用text值代替NULL值;
SET serveroutput off --是否显示用DBMS_OUTPUT.PUT_LINE包进行输出的信息;--编写存储过程时,大多会将必要的信息输出;
SET newpage none --设置页与页之间的分隔{1|n|NONE};当值为0时在每页开头有一个小的黑方框;当值为n时在页和页之间隔着n个空行;当为none 时,会在页和页之间没有任何间隔;
SET linesize 1000 --设置一行可以容纳的字符数{80|n};输出内容大于设置的行可容纳的字符数,则折行显示.据实际字符设置,过大导出速度慢;
SET wrap on --输出行长度大于设置行长度时(用set linesize n命令设置);值为on时,多余的字符另起一行显示,否则多余的字符将被切除,不予显示;
SET verify off --是否显示替代变量被替代前后的语句;
SET colsep' '; --域输出分隔符;
------------------------------------------------------------------
导出文本数据的建议格式:
SQL*PLUS环境设置--
SET echo off --在用start命令执行一个sql脚本时,不显示脚本中正在执行的SQL语句
SET heading off --不显示字段的名称
SET pagesize 0 --设置输出每页行数,为了避免分页,可设定为0。设置为0时,输出内容为一页且不显示列标题具有SET heading off 包含的功能。
SET newpage none --页与页之间没有分隔
SET trimout on --去除标准输出每行后面多余的空格
SET trimspool on --去除重定向(spool)输出每行的拖尾空格
SET linesize 1000 --设置一行可以容纳的字符数
SET feedback off --是否回显本次sql命令处理的记录条数,缺省为on;
工作运用时导出文本数据的常用格式:
SET echo off
SET pagesize 0
SET feedback off
SET trimout on
SET trimspool on
SET linesize 1000
spool 路径+文件名
需要执行的SQL代码
spool off
注:linesize 要稍微设置大些,免得数据被截断,它应和相应的 trimspool 结合使用防止导出的文本有太多的尾部空格。但是如果 linesize 设置太大,会大大降低导出的速度,另外在WINDOWS下导出最好不要用PLSQL导出,速度比较慢,直接用COMMEND下的 SQLPLUS 命令最小化窗口执行。
对于字段内包含很多回车换行符的应该给与过滤,形成比较规矩的文本文件。通常情况下,我们使用SPOOL方法,将数据库中的表导出为文本文件的时候会采用两种方法,如下述:
方法一:采用以下格式脚本
set colsep '|' --设置|为列分隔符
set trimspool on
set linesize 120
set pagesize 2000
set newpage 1
set heading off
set term off
set num 18
set feedback off
spool 路径+文件名
select * from tablename;
spool off
方法二:采用以下脚本
set trimspool on
set linesize 120
set pagesize 2000
set newpage 1
set heading off
set term off
spool 路径+文件名
select col1||','||col2||','||col3||','||col4||'..' from tablename;
spool off
比较以上方法,即方法一采用设定分隔符然后由sqlplus自己使用设定的分隔符对字段进行分割,方法二将分隔符拼接在SELECT语句中,即手工控制输出格式。
在实践中,发现通过方法一导出来的数据具有很大的不确定性,这种方法导出来的数据再由sqlldr导入的时候出错的可能性在95%以上,尤其对大批量的数据表,如100万条记录的表更是如此,而且导出的数据文件狂大。
而方法二导出的数据文件格式很规整,数据文件的大小可能是方法一的1/4左右。经这种方法导出来的数据文件再由sqlldr导入时,出错的可能性很小,基本都可以导入成功。
有网友在linux 服务器上直接编辑脚本实现:
将***v_sendsms_task表中的数据导出到文本(数据库Oracle 9i 操作系统 SUSE LINUX Enterprise Server 9)
spool_test.sh脚本如下:
#!/bin/sh
DB_USER=zxdbm_ismp #DB USER
DB_PWD=zxin_smap #DB PASSWORD
DB_SERV=zx10_40_43_133 #DB SERVICE NAME
sqlplus -s $DB_USER/$DB_PWD@$DB_SERV$amp;set trimspool on
set linesize 120
set pagesize 2000
set newpage 1
set heading off
set term off
spool promt.txt
select taskindex||'|'||commonindex||'|'||tasktype||'|'||to_number(to_char(sysdate,'YYYYMMDD')) from ***v_sendsms_task;
spool off
EOF
执行./spool_test.sh后生成sp_test.txt,内容如下:
83|115|1|20080307
85|115|11|20080307
86|115|10|20080307
84|115|2|20080307
6|5|14|20080307
7|5|12|20080307
9|5|15|20080307
注:上面自测例中,spool promt.txt中的目标生成文件promt.txt,在HP-UNX环境下的shell脚本中调用Oracle的spool函数,如果将上述逻辑代码封装为一个function,然后来调用这个function的话,则在shell脚本中最终是不会生成promt.txt文件的。只能直接执行逻辑代码,封装后则spool函数失效。
对于promt.txt在相对路径下,下面2中方法在shell环境中执行时,两者只能择一,两者并存则spool函数会失效。假设promt.txt文件生成的路径为:/home/zxin10/zhuo/batchoperate/spoolfile
方式[1]
echo "start spool in shell.."
sqlplus -s zxdbm_ismp/zxin_smap$amp;set pagesize 0
set echo off feed off term off heading off trims off
set colsep '|'
set trimspool on
set linesize 10000
set trimspool on
set linesize 120
set newpage 1
spool /home/zxin10/zhuo/batchoperate/spoolfile/promt.txt
select batchindex||'|'||productid||'|'||contentid||'|'||optype||'|'||uploadfile from zxdbm_700.s700_batch_operation where status=1;
spool off
EOF
echo "end.."
方式[2]
echo "start spool in shell.."
cd /home/zxin10/zhuo/batchoperate/spoolfile
sqlplus -s zxdbm_ismp/zxin_smap$amp;set pagesize 0
set echo off feed off term off heading off trims off
set colsep '|'
set trimspool on
set linesize 10000
set trimspool on
set linesize 120
set newpage 1
spool promt.txt
select batchindex||'|'||productid||'|'||contentid||'|'||optype||'|'||uploadfile from zxdbm_700.s700_batch_operation where status=1;
spool off
EOF
echo "end.."
因此,实践中建议大家使用方法二手工去控制spool文件的格式,这样可以减小出错的可能性,避免走很多弯路。
1.查询系统当前SCN两条命令
SQL> select current_scn from v$database;
SQL> select dbms_flashback.get_system_change_number from dual; --1781893
2.数据库全局-检查点 SCN,在控制文件中。
SYS@bys1> select dbid,checkpoint_change# from v$database;
DBID CHECKPOINT_CHANGE#
3957527513 1753478
3.当前数据文件SCN.在控制文件中。即checkpoint scn,表示该数据文件最近一次执行检查点操作时的SCN
SQL> select name,checkpoint_change# from v$datafile;
NAME CHECKPOINT_CHANGE#
/u01/oradata/bys1/system01.dbf 1753478
/u01/oradata/bys1/sysaux01.dbf 1753478
SQL> select file#,name,checkpoint_change#,to_char(checkpoint_time,'yyyy-mm-dd hh34:mi:ss') cptime from v$datafile;
FILE# NAME CHECKPOINT_CHANGE# CPTIME
1 /u01/oradata/bys1/system01.dbf 1753478 2013-09-11 23:00:52
2 /u01/oradata/bys1/sysaux01.dbf 1753478 2013-09-11 23:00:52
4.查询数据文件头SCN,在数据文件头
SQL> select name,checkpoint_change# from v$datafile_header;
NAME CHECKPOINT_CHANGE#
/u01/app/oracle/oradata/bys001/system01.dbf 1198546
5.数据文件结束SCN,在控制文件中。
LAST_CHANGE#,如果数据库非正常关闭值为NULL.正常关闭是关闭时的SCN.
实例恢复就是在打开数据库时检查此参数确定是否需要恢复。
数据库OPEN时LAST_CHANGE#也为NULL,因为不确定SCN多少时关闭。
SQL> select name,last_change# from v$datafile;
NAME LAST_CHANGE#
/u01/app/oracle/oradata/bys001/system01.dbf
6.日志中所含SCN范围
SQL> select GROUP#,sequence#,STATUS,FIRST_CHANGE#,to_char(FIRST_TIME,'yyyy/mm/dd:hh34:mi:ss') time from V$log;
GROUP# SEQUENCE# STATUS FIRST_CHANGE# TIME
1 49 INACTIVE 1713778 2013/09/11:10:10:08
2 50 INACTIVE 1744790 2013/09/11:21:34:23
3 51 CURRENT 1753478 2013/09/11:23:00:52
查询某个存储过程的执行状态?是否在运行中?
SELECT '(' || s.sid || ') - ' || username||' is running '||o.kglnaobj as sessusr, --'(' || s.sid || ') - ' || username AS "(session) - username",
p.KGLPNMOD as proc_state, --为2时就代表存储过程在执行
o.kglhDNSp
FROM V$SESSION s,
sys.x$kglob o,
sys.x$kglpn p
WHERE upper(o.kglnaobj) LIKE upper('%p_insert_tbl%')
AND p.kglpnhdl = o.kglhdadr
AND s.SADDR = p.kglpnuse
and o.KGLHDNSP=1
and p.KGLPNMOD=2;
以sys用户运行上面的sql语句,也只能查出当前连接上系统
这个也只能查出当前的连接进Oracle数据库的用户名!
其实,还是查不出存储过程p_insert_tbl的状态的!
--查询存储过程的各种信息
select *
from all_source t
where /*lower(t.text) like '%pay_succs_rate%' and*/ t.name='SP_RPT_MIS_COM_DAY_V3_S3' order by 4;
select *
from all_dependencies t
where t.name='SP_RPT_CREDIT_PAY_INFO_SUBDIV';
select * from V$SQL_BIND_CAPTURE ;
select * from all_procedures;
select * from user_arguments where procedure_name='SP_TRUNCAT'
现需要提取存储过程信息,因为数据源为oracle8i,可是8中没有提供诸如user_procedues这样的view来提供存储过程信息,只能在user_arguments这个view中可以找到存储过程的一些信息,
可是user_arguments不包括所有的存储过程,例如没有参数的存储过程,而且如果这个存储过程是在一个包(package)中时,到哪里才能找到这个存储过程的信息啊!
--【】v$process 该视图提供的信息,都是oracle服务进程的信息,没有客户端程序相关的信息
服务进程分两类,一是后台的,一是dedicate/shared server
pid, serial# 这是oracle分配的PID
spid 这才是操作系统的pid
program 这是服务进程对应的操作系统进程名
--【】v$session 该视图主要提供的是一个数据库connect的信息,
<1>主要是client端的信息
machine 在哪台机器上
terminal 使用什么终端
osuser 操作系统用户是谁
program 通过什么客户端程序,比如TOAD
process 操作系统分配给TOAD的进程号
logon_time 在什么时间
username 以什么oracle的帐号登录
command 执行了什么类型的SQL命令
sql_hash_value SQL语句信息
<2>有一些是server端的信息:
paddr 即v$process中的server进程的addr
server 服务器是dedicate/shared
还有其它一些信息,可以理解为是client/server共享的信息,主要是针对这个session而言的
create or replace function func_get_json_extract(pcharjson varchar2, --json字段值
pcharsub varchar2, --要取的map对
pnum number default 1, --第几次出现
psepchar varchar2 default '"', --value引号
psepfield varchar2 default ':' --key分隔符
)
return varchar2 IS
v_charjson varchar2(4000) := pcharjson;
v_charsub varchar2(4000) := psepchar||pcharsub||psepchar||psepfield||psepchar;
v_subval varchar2(4000);
begin
select substr(v_charjson,
i.poscod+i.len,
posend-(poscod+len)) into v_subval
from (select instr(v_charjson,v_charsub,1,pnum) as poscod,
length(v_charsub) as len,
instr(v_charjson,v_charsub,1,pnum)+length(v_charsub) as posbeg,
instr(v_charjson,'"',instr(v_charjson,v_charsub,1,pnum)+length(v_charsub),1) as posend,
v_charjson
from dual t) i;
return v_subval;
EXCEPTION
WHEN others THEN
DBMS_OUTPUT.PUT_LINE('请检查参数重试!');
end;
alter session set nls_date_language='american' ; 修改该命令,让字符串格式,能顺利导入到 日期格式中
select to_char(sysdate,'yyyy"年"mm"月"dd"日"') from dual;
select to_char(sysdate,'month','nls_date_language=American') from dual;
安全-权限-Oracle自带用户
①Sysdba和dba的区别
新建时给的是系统权限sysdba,
后面使用到该用户的时候不能以normal状态登录plsql,
因为没有给用户赋予创建session的权限。只要用sys登录
grant connect,resource to xwm 给用户赋权就行了
dba是Oracle里的一种对象,Role 和User一样,是实实在在存在在Oracle里的物理对象,而sysdba是指的一种概念上的操作对象,在Oracle数据里并不存在。
所以说这两个概念是完全不同的。
dba是一种role对应的是对Oracle实例里对象的操作权限的集合,而sysdba是概念上的role是一种登录认证时的身份标识而已。
SYSDBA不是权限,当用户以SYSDBA身份登陆数据库时,登陆用户都会变成SYS。
sysdba身份登陆可以打开,关闭数据库,创建SPFILE,对数据库进行恢复操作等,而这些是DBA角色无法实现的。
Oracle自带用户
以下这些账户有的为了管理目的、有些为了数据库额外的功能、有些为了示例而存在。如果你启用了一些比较偏的功能还会自动新增一些用户,比如标签安全性、数据库保险箱啊等等。
这些账户每个你Google一番都能讲一个故事。。。
账户和访问表没有直接的关系,权限才是,拿SELECT ANY TABLE(查看任何表)为例,看看谁能查看任何表:
SQL> select grantee from dba_sys_privswhere privilege='SELECT ANY TABLE';
oracle中的帐户分为两类:
一类是必需的帐户
一类是存储各种应用的帐户
【】SYS 安装时用户指定/CHANGE_ON_INSTALL
描述:数据库管理帐户/执行数据库的管理任务,实例的数据字典都在SYS下/超级用户,老大
Recreation Script:$ORACLE_HOME/rdbms/admin/sql.bsq.Recover from backup or recreate the database.
Safe To Remove:No
Purpose:Anaccount used to perform. database administration tasks. Password is created atinstallation or database creation time.
【】SYSMAN OEM_TEMP/manager
描述:企业管理器帐户
Recreation Script:Createdas part of the dbconsole or Enterprise Manager build.
Safe To Remove:Yes
Purpose:Theaccount used to perform. Oracle Enterprise Manager database administrationtasks. The SYS and SYSTEM accounts can also perform. these tasks. Password iscreated at installation or database creation time.
【】SYSTEM 安装时用户指定
描述:数据库管理帐户/用于执行数据库管理任务,有少量的实例对象/权限也非常高,但是不具备以下权限:ALTER DATABASE LINK/ ALTERPUBLIC DATABASE LINK/ EXEMPT ACCESSPOLICY/ EXEMPT IDENTITY POLICY/ SYSDBA/ SYSOPER。其中SYSDBA和SYSOPER还能启动关闭数据库实例,所以SYSTEM当然不能启动关闭数据库实例了。
Recreation Script:$ORACLE_HOME/rdbms/admin/sql.bsq.Recover from backup or recreate the database.
Safe To Remove:No
Purpose:A defaultgeneric database administrator account for Oracle databases. For productionsystems, Oracle recommends creating individual database administrator accountsand not using the generic SYSTEM account for database administrationoperations. Password is created at installation or database creation time.
【】ANONYMOUS ANONYMOUS
描述:访问http的匿名用户帐户/用于访问ORACLE XML DB知识库的帐户。
Recreation Script:$ORACLE_HOME/rdbms/admin/catqm.sql
Safe To Remove:Yes
Purpose:Accountthat allows HTTP access to Oracle XML DB. It is used in place of theAPEX_PUBLIC_USER account when the Embedded PL/SQL Gateway (EPG) is installed inthe database. EPG is a Web server that can be used with Oracle Database. Itprovides the necessary infrastructure to create dynamic applications. See alsoXDB.
【】CTXSYS CTXSYS
描述:interMedia Text用户,是MEDIATEXT的用户,有CONNECT\RESOURCE\DBA权限
Recreation Script:$ORACLE_HOME/ctx/admin/ctxsys.sql
Safe To Remove:Yes
Purpose:Theaccount used to administer Oracle Text. Oracle Text enables the building oftext query applications and document classification applications. It providesindexing, word and theme searching, and viewing capabilities for text.
【】DBSNMP DBSNMP
描述:目录集成平台用户/具有NNECT\RESOUCEHE\SNMPAGENT 权限的角色,可用CATNSMP.SQL脚本删除此用户和角色
Recreation Script:$ORACLE_HOME/rdbms/admin/catsnmp.sql
Safe To Remove:Yes– run $ORACLE_HOME/rdbms/admin/catnsnmp.sql
Purpose:Theaccount used by the Management Agent component of Oracle Enterprise Manager tomonitor and manage the database. Password is created at installation ordatabase creation time.
【】DIP DIP
描述:目录集成平台的帐户(DIRECTORY INTEGERATION PLATFORM)
Recreation Script:$ORACLE_HOME/rdbms/admin/catdip.sql
Safe To Remove:Yes
Purpose:Theaccount used by the Directory Integration Platform. (DIP) to synchronize thechanges in Oracle Internet Directory with the applications in the database.
【】EXFSYS EXFSYS
描述:表达式过滤器帐户(EXPRESSIO FILTER)
Recreation Script:$ORACLE_HOME/rdbms/admin/exfsys.sql
Safe To Remove:Yes
Purpose:Theaccount used internally to access the EXFSYS schema, which is associated withthe Rules Manager and Expression Filter feature. This feature enables thebuilding of complex PL/SQL rules and expressions. The EXFSYS schema containsthe Rules Manager and Expression Filter DDL, DML, and associated metadata.
【】MDDATA MDDATA
描述:oracle空间数据帐户
Recreation Script:$ORACLE_HOME/md/admin/catmd.sql
Safe To Remove:Yes
Purpose:Theschema used by Oracle Spatial for storing Geocoder and router data. See alsoSPATIAL_CSW_ADMIN_USR , SPATIAL_WFS_ADMIN_USR and MDSYS.
【】MDSYS MDSYS
描述:oracle空间数据媒体管理员/空间数据(SPATIAL)\媒介(INTERMEDIA)\音频(AUDIO)\视频(VIDEO)和图像管理员帐户
Recreation Script:$ORACLE_HOME/ord/admin/ordinst.sql
Safe To Remove:Yes
Purpose:TheOracle Spatial and Oracle Multimedia Locator administrator account. See alsoSPATIAL_CSW_ADMIN_USR , MDDATA and SPATIAL_WFS_ADMIN_USR.
【】MGMT_VIEW MGMT_VIEW
描述:不拥有任何对象,仅用于查询 SYSMAN 用户对象。安装OMS时自动创建的。
Recreation Script:$ORACLE_HOME/sysman/admin/emdrep/bin/RepManager
Safe To Remove:Yes
Purpose:Anaccount used by Oracle Enterprise Manager Database Control. Password israndomly generated at installation or database creation time. Users do not needto know this password.
【】OLAPSYS MANGER
描述:用于创建olap元数据/用于创建OLAP元数据的用户。包括OLAP_DBA\RESOURCE\CONNECT角色
Recreation Script:$ORACLE_HOME/olap/admin/amdsys.sql
Safe To Remove:Yes
Purpose:Theaccount that owns the OLAP Catalog (CWMLite). This account has been deprecated,but is retained for backward compatibility.
【】ORDPLUGINS ORDPLUGINS
描述:ORACLE INTERMEDIA和VIDEO的用户名,有CONNECT和RESURCE角色,与第三方连接
Recreation Script:$ORACLE_HOME/ord/admin/ordinst.sql
Safe To Remove:Yes
Purpose:TheOracle Multimedia user. Plug-ins supplied by Oracle and third-party, formatplug-ins are installed in this schema. Oracle Multimedia enables OracleDatabase to store, manage, and retrieve images, audio, video, DICOM formatmedical images and other objects, or other heterogeneous media data integratedwith other enterprise information. See also ORDSYS and SI_INFORMTN_SCHEMA.
【】ORDSYS ORDSYS
描述:image管理员/ORACLE INTERMEDIA和VIDEO的用户名,有CONNECT和RESOURCE角色
Recreation Script:$ORACLE_HOME/ord/admin/ordinst.sql
Safe To Remove:Yes
Purpose:TheOracle Multimedia administrator account. See also ORDPLUGINS and SI_INFORMTN_SCHEMA.
【】OUTLN OUTLN
描述:拥有connect和resource角色
Recreation Script:$ORACLE_HOME/rdbms/admin/sql.bsq.Recover from backup or recreate the database.
Safe To Remove:No
Purpose:Theaccount that supports plan stability. Plan stability prevents certain databaseenvironment changes from affecting the performance characteristics ofapplications by preserving execution plans in stored outlines. OUTLN acts as arole to centrally manage metadata associated with stored outlines.
【】SCOTT Tiger
描述:简单的样例帐户
Recreation Script:$ORACLE_HOME/rdbms/admin/utlsampl.sql
Safe To Remove:Yes
Purpose:Anaccount used by Oracle sample programs and examples.
【】HR hr
描述:简单的样例帐户
Recreation Script:$ORACLE_HOME/demo/schema/human_resources/hr_main.sql
Safe To Remove:Yes– run $ORACLE_HOME/demo/schema/drop_sch.sql
Purpose:Theaccount that owns the Human Resources schema included in the Oracle SampleSchemas. See also BI, OE, SH, IX and PM.
【】SI_INFORMTN_SCHEMA oracleineterMedia,video用户
描述:静止图像标准浏览帐户
Recreation Script:$ORACLE_HOME/ord/admin/ordinst.sql
Safe To Remove:Yes
Purpose:Theaccount that stores the information views for the SQL/MM Still Image Standard.See also ORDPLUGINS and ORDSYS.
【】WK_TEST WK_TEST
描述:同wksys/管理ORACLE 10g ULTRASEARCH的帐户,和WKSYS有一样的作用
Recreation Script:$ORACLE_HOME/ultrasearch/admin/wk0csys.sql
Safe To Remove:Yes
Purpose:Theinstance administrator for the default instance, WK_INST. After unlocking thisaccount and assigning this user a password, then the cached schema passwordmust also be updated using the administration tool Edit Instance Page. UltraSearch provides uniform. search-and-location capabilities over multiplerepositories, such as Oracle databases, other ODBC compliant databases, IMAPmail servers, HTML documents managed by a Web server, files on disk, and more.See also WKSYS
【】WKPROXY
描述:ORACLE 10g与代理服务器有关的帐户
Recreation Script:$ORACLE_HOME/ultrasearch/admin/wk0csys.sql
Safe To Remove:Yes
Purpose:Anadministrative account of Application Server Ultra Search.
【】WKSYS WKSYS
描述:同wk_test/管理ORACLE 10g AS ULTRASEARCH帐户,与WK_TEST有一样的作用
Recreation Script:$ORACLE_HOME/ultrasearch/admin/wk0csys.sql
Safe To Remove:Yes
Purpose:AnUltra Search database super-user. WKSYS can grant super-user privileges toother users, such as WK_TEST. All Oracle Ultra Search database objects areinstalled in the WKSYS schema. See also WK_TEST
【】WMSYS WMSYS
描述:工作空间管理帐户/工作实景管理的帐户
Recreation Script:$ORACLE_HOME/rdbms/admin/owmctab.plb
Safe To Remove:Yes
Purpose:Theaccount used to store the metadata information for Oracle Workspace Manager.
【】XDB CHANGE_ON_INSTALL
描述:ORACLE 10G XML DB帐户
Recreation Script:$ORACLE_HOME/rdbms/admin/catqm.sql
Safe To Remove:Yes
Purpose:Theaccount used for storing Oracle XML DB data and metadata. See also ANONYMOUS.
【】ORACLE_OCM
描述:Oracle预定义的非管理员用户
Recreation Script:$ORACLE_HOME/rdbms/admin/catocm.sql
Safe To Remove:Yes
Purpose:Thisaccount contains the instrumentation for configuration collection used by theOracle Configuration Manager.
【】BI
描述:
Recreation Script:$ORACLE_HOME/demo/schema/bus_intelligence/bi_main.sql
Safe To Remove:Yes-run$ORACLE_HOME/demo/schema/drop_sch.sql
Purpose:Theaccount that owns the Business Intelligence schema included in the OracleSample Schemas. See also HR, OE, SH, IX and PM.
【】OE
描述:
Recreation Script:$ORACLE_HOME/demo/schema/order_entry/oe_main.sql
Safe To Remove:Yes– run $ORACLE_HOME/demo/schema/drop_sch.sql
Purpose:Theaccount that owns the Order Entry schema included in the Oracle Sample Schemas.See also BI, HR, SH, IX and PM.
【】IX
描述:
Recreation Script:$ORACLE_HOME/demo/schema/info_exchange/ix_main.sql
Safe To Remove:Yes– run $ORACLE_HOME/demo/schema/drop_sch.sql
Purpose:Theaccount that owns the Information Transport schema included in the OracleSample Schemas. See also BI, HR, OE, SH and PM.
【】PM
描述:
Recreation Script:$ORACLE_HOME/demo/schema/product_media/pm_main.sql
Safe To Remove:Yes– run $ORACLE_HOME/demo/schema/drop_sch.sql
Purpose:Theaccount that owns the Product Media schema included in the Oracle SampleSchemas. See also BI, HR, OE, SH and IX.
【】SH
描述:
Recreation Script:$ORACLE_HOME/demo/schema/sales_history/sh_main.sql
Safe To Remove:Yes– run $ORACLE_HOME/demo/schema/drop_sch.sql
Purpose:Theaccount that owns the Sales History schema included in the Oracle SampleSchemas and is only available for Enterprise Edition installations. See alsoBI, HR, OE, IX and PM.
【】APEX_030200
描述:
Recreation Script:$ORACLE_HOME/apex/apexins.sql
Safe To Remove:Yes
Purpose:Partof the Oracle Application Express Suite - (Oracle APEX, previously named OracleHTML DB) which is a freeware software development environment. It allows a fastdevelopment cycle to be achieved to create web based applications. The accountowns the Application Express schema and metadata. See also APEX_PUBLIC_USER andFLOW_FILES.
【】APEX_PUBLIC_USER
描述:
Recreation Script:$ORACLE_HOME/apex/apexins.sql
Safe To Remove:Yes
Purpose:Partof the Oracle Application Express Suite - (Oracle APEX, previously named OracleHTML DB) which is a freeware software development environment. It allows a fastdevelopment cycle to be achieved to create web based applications. Thisminimally privileged account is used for Application Express configuration withOracle HTTP Server and mod_plsql. See also APEX_030200 and FLOW_FILES.
【】APPQOSSYS
描述:
Recreation Script:$ORACLE_ADMIN/rdbms/admin/catqos.sql
Safe To Remove:Yes
Purpose:Usedfor storing/managing all data and metadata required by Oracle Quality ofService Management.
【】FLOWS_FILES
描述:
Recreation Script:$ORACLE_HOME/apex/apexins.sql
Safe To Remove:Yes
Purpose:Partof the Oracle Application Express Suite - (Oracle APEX, previously named OracleHTML DB) which is a freeware software development environment. It allows a fastdevelopment cycle to be achieved to create web based applications. This accountowns the Application Express uploaded files. See also APEX_030200 andAPEX_PUBLIC_USER.
【】OWBSYS
描述:
Recreation Script:$ORACLE_HOME/owb/UnifiedRepos/cat_owb.sql
Safe To Remove:Yes
Purpose:Theaccount for administrating the Oracle Warehouse Builder repository. Access thisaccount during the installation process to define the base language of therepository and to define Warehouse Builder workspaces and users. A datawarehouse is a relational or multidimensional database that is designed forquery and analysis. See also OWBSYS_AUDIT.
【】OWBSYS_AUDIT
描述:
Recreation Script:$ORACLE_HOME/owb/UnifiedRepos/cat_owb.sql
Safe To Remove:Yes
Purpose:Thisaccount is used by the Warehouse Builder Control Center Agent to access the heterogeneousexecution audit tables in the OWBSYS schema.
【】SPATIAL_CSW_ADMIN_USR
描述:
Recreation Script:$ORACLE_HOME/md/admin/sdocswpv.sql
Safe To Remove:Yes
Purpose:TheCatalog Services for the Web (CSW) account. It is used by the Oracle SpatialCSW cache manager to load all record type metadata, and record instances fromthe database into the main memory for the record types that are cached. Seealso SPATIAL_WFS_ADMIN_USR, MDDATA and MDSYS.
【】SPATIAL_WFS_ADMIN_USR
描述:
Recreation Script:$ORACLE_HOME/md/admin/sdowfspv.sql
Safe To Remove:Yes
Purpose:TheWeb Feature Service (WFS) account. It is used by the Oracle Spatial WFS cachemanager to load all feature type metadata, and feature instances from thedatabase into main memory for the feature types that are cached. See alsoSPATIAL_CSW_ADMIN_USR , MDDATA and MDSYS.
【】XS$NULL
描述:
Recreation Script:$ORACLE_HOME/rdbms/admin/sql.bsq.Recover from backup or recreate the database.
Safe To Remove:No
Purpose:Aninternal account that represents the absence of a user in a session. BecauseXS$NULL is not a user, this account can only be accessed by the Oracle Databaseinstance. XS$NULL has no privileges and no one can authenticate as XS$NULL, norcan authentication credentials ever be assigned to XS$NULL.
【】LBACSYS
描述:
Recreation Script:$ORACLE_HOME/rdbms/admin/catlbacs.sql
Safe To Remove:Yes
Purpose:Theaccount used to administer Oracle Label Security (OLS). It is created only whenthe Label Security custom option is installed.
【】ORDDATA
描述:
Recreation Script:$ORACLE_HOME/ord/admin/ordisysc.sql
Safe To Remove:Yes
Purpose:Thisaccount contains the Oracle Multimedia DICOM data model.
【】TSMSYS
描述:Oracle?10g的所有目录上的特点及与此相关的观点/表的新特征是储存在TSMSYS用户下
Recreation Script:
Safe To Remove:
Purpose:
【】DMSYS
描述:Oracle数据挖掘账号
Recreation Script:
Safe To Remove:
Purpose:
网页题目:oracle历史知识备注
当前链接:http://pwwzsj.com/article/jcogio.html