For Example
SQL> desc rk
Name Null? Type
----------------------------------------- -------- ----------------------------
CONTENT_VALUE_SMALL VARCHAR2(512 CHAR)
SQL> select * from rk;
http://i.a.rk.net/v5cache/TBS/veryf/images/i0/3telecom_expo_400_304.jpg
Now you want to replace rk.net with xyz.net
SQL> update rk set CONTENT_VALUE_SMALL=replace(CONTENT_VALUE_SMALL,'http://i.a.rk','http://i.a.xyz');
Wednesday, October 31, 2007
Manual installation of Oracle Text 10g
Manual installation of Text 10gR1 (10.1.0.x) and (10.2.0.x)
1. Text dictionary, schema name CTXSYS, is created by calling following script from SQL*Plus connected as SYSDBA:
SQL> connect SYS/password as SYSDBA
SQL>@?/ctx/admin/catctx.sql CTXSYS SYSAUX TEMP NOLOCK
Where:CTXSYS - is the ctxsys user password
SYSAUX - is the default tablespace for ctxsys
TEMP - is the temporary tablespace for ctxsys
LOCK|NOLOCK - ctxsys user account will be locked or not
2. The next step is to install appropriate language-specific default preferences.To manually install US default preferences, for example, log into sqlplus as CTXSYS, and run 'drdefus.sql' as described below:
SQL> connect CTXSYS/password
SQL>@?/ctx/admin/defaults/drdefus.sql
1. Text dictionary, schema name CTXSYS, is created by calling following script from SQL*Plus connected as SYSDBA:
SQL> connect SYS/password as SYSDBA
SQL>@?/ctx/admin/catctx.sql CTXSYS SYSAUX TEMP NOLOCK
Where:CTXSYS - is the ctxsys user password
SYSAUX - is the default tablespace for ctxsys
TEMP - is the temporary tablespace for ctxsys
LOCK|NOLOCK - ctxsys user account will be locked or not
2. The next step is to install appropriate language-specific default preferences.To manually install US default preferences, for example, log into sqlplus as CTXSYS, and run 'drdefus.sql' as described below:
SQL> connect CTXSYS/password
SQL>@?/ctx/admin/defaults/drdefus.sql
Tuesday, October 30, 2007
Thursday, October 25, 2007
Find out last sql statement issued from the same session
select sql_text from v$sql
where hash_value = ( select prev_hash_value from v$session
where sid = (select sid from v$mystat where rownum = 1))
/
where hash_value = ( select prev_hash_value from v$session
where sid = (select sid from v$mystat where rownum = 1))
/
Subscribe to:
Posts (Atom)