Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

find all string to the right of a character

muttleychessNov 7 2017 — edited Dec 3 2017

Hi

   I Put in  code procedure is

DBMS_APPLICATION_INFO.SET_ACTION('RUNNING#'||v_usuario_synchro)

  When other user try to access same procedure , I use code below

SELECT  ACTION

     FROM V$SESSION 

    WHERE ACTION LIKE 'RUNNING%'

    AND STATUS = 'ACTIVE';

How  can I  to get only  username( after word RUNNING and some character), I tried to use # to serp the name, but I was told that the username can start with any character

I Would like example:

'RUNNING##XPTO'   ==> returning '#XPTO'

''RUNNING#DUCK'  ==> return 'DUCK'

Using

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

PL/SQL Release 11.2.0.4.0 - Production

CORE    11.2.0.4.0    Production

TNS for Linux: Version 11.2.0.4.0 - Production

NLSRTL Version 11.2.0.4.0 - Production

This post has been answered by BluShadow on Nov 7 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2017
Added on Nov 7 2017
8 comments
500 views