本文共 3072 字,大约阅读时间需要 10 分钟。
1.目标:在数据库中,安装Oracle Text组件:
SQL> select COMP_ID,COMP_NAME,VERSION,STATUS,SCHEMA from user_registry where comp_id='CONTEXT';COMP_ID COMP_NAME VERSION STATUS SCHEMA----------------------------------------------------------------------------------CONTEXT Oracle Text 11.2.0.4.0 VALID CTXSYS
SQL> connect SYS/password as SYSDBASQL> spool text_install.txtSQL> @?/ctx/admin/catctx.sql change_on_install SYSAUX TEMP NOLOCK
SQL> connect "CTXSYS"/"change_on_install"SQL> @?/ctx/admin/defaults/dr0defin.sql "AMERICAN";SQL> connect SYS/password as SYSDBASQL> alter user ctxsys account lock password expire;SQL> spool off
SQL> select comp_name, status, substr(version,1,10) as version from dba_registry where comp_id = 'CONTEXT';COMP_NAME STATUS VERSION--------------------------------------------------------------------------------Oracle Text VALID 11.2.0.4.0
4.1执行脚本前:spool,生成日志spool /home/oracle/text_oinstall.text4.2执行脚本:创建数据字典、用户报错SQL> @?/ctx/admin/catctx.sql text_install sysaux temp nolock;
4.3:查询日志文件:/home/oracle/text_oinstall.text...creating user CTXSYScreate user ctxsys*ERROR at line 1:ORA-28003: password verification for the specified password failedORA-20008: Password must contain at least one digit, one character 4.4分析报错:提示密码过于简单:概要文件参数指定,不满足密码 4.5:根据执行的脚本:查询CREATE USER操作Rem CTXSYS.sql - schema creation amd granting privilegesRem ====================================================@@ctxsys.sql &pass &tbs &ttbs &dolockcreate user ctxsysidentified by &pass default tablespace &tbs temporary tablespace &ttbs;#根据:脚本的内容发现,密码为输入的第一个变量 4.6:查询数据库的概要文件:默认DEFAULTSQL> select count(*),PROFILE from dba_users group by profile; COUNT(*) PROFILE---------- ------------------------------ 1 SHIXI 10 DEFAULT #查询概要文件的密码函数验证:SQL> select profile,resource_name,LIMIT from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_VERIFY_FUNCTION'; PROFILE RESOURCE_NAME LIMIT------------------------------ --------------------------------DEFAULT PASSWORD_VERIFY_FUNCTION VERIFY_FUNCTION #修改为NULLSQL> alter profile default limit Password_verify_function null; #实验成功后:还原概要文件中的密码函数验证SQL> select profile,resource_name,LIMIT from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_VERIFY_FUNCTION'; PROFILE RESOURCE_NAME LIMIT------------------------------ --------------------------------DEFAULT PASSWORD_VERIFY_FUNCTION NULL
转载地址:http://dmlyz.baihongyu.com/