Need to set module name = username in V$sqlarea

Hi All,
I tried to set module name same as schema name in v$sqlarea, generally it was sql*plus. For that i created one after database logon trigger, but it didn't work for all users, it is only working for SYS schema only.
CREATE OR REPLACE TRIGGER LOGIN_USERS_TRIG_NEW
AFTER LOGON ON DATABASE
declare
v_dbuser varchar2(32) ;
begin
select sys_context('USERENV','SESSION_USER') into v_dbuser from dual;
dbms_application_info.set_module(v_dbuser);
end;
result will verify from
select module , parsing_schema_name from v$sqlarea;
so if i am logging with scott user then in v$sqlarea table module name should be scott only. so whatever queries was executed from scott all queries module name should scott only.
Like that for all users. Please suggest is there any other option.
Thanks in advance,

user583843 wrote:
Hi All,
I tried to set module name same as schema name in v$sqlarea, generally it was sql*plus. For that i created one after database logon trigger, but it didn't work for all users, it is only working for SYS schema only.
CREATE OR REPLACE TRIGGER LOGIN_USERS_TRIG_NEW
AFTER LOGON ON DATABASE
declare
v_dbuser varchar2(32) ;
begin
select sys_context('USERENV','SESSION_USER') into v_dbuser from dual;
dbms_application_info.set_module(v_dbuser);
end;
result will verify from
select module , parsing_schema_name from v$sqlarea;
so if i am logging with scott user then in v$sqlarea table module name should be scott only. so whatever queries was executed from scott all queries module name should scott only.
Like that for all users. Please suggest is there any other option.
Thanks in advance,in which schema's context, is trigger fired & run?
with Oracle everything is denied; except that which is explicitly GRANTed.
is SCOTT allowed to EXECUTE TRIGGER?
is SCOTT allowed to access SYS_CONTEXT?
etc.

Similar Messages

  • Need to set module name same as  username in V$sqlarea

    Hi Gurus,
    I tried to set module name same as schema name in v$sqlarea, generally it was sql*plus. For that i created one after database logon trigger, but it didn't work for all users, it is only working for SYS schema only.
    CREATE OR REPLACE TRIGGER LOGIN_USERS_TRIG_NEW
    AFTER LOGON ON DATABASE
    declare
    v_dbuser varchar2(32) ;
    begin
    select sys_context('USERENV','SESSION_USER') into v_dbuser from dual;
    dbms_application_info.set_module(v_dbuser);
    end;
    result will verify from
    select module , parsing_schema_name from v$sqlarea;
    so if i am logging with scott user then in v$sqlarea table module name should be scott only. so whatever queries was executed from scott all queries module name should scott only.
    Like that for all users. Please suggest is there any other option.
    If i execute the same plsql code in scott session , it is working, but when i set with logon trigger it didn't set.
    see if i execute:
    SQL> exec DBMS_APPLICATION_INFO.set_module(USER, 'Initialized');
    PL/SQL procedure successfully completed.
    SQL> SELECT sys_context('USERENV', 'MODULE') FROM DUAL;
    SYS_CONTEXT('USERENV','MODULE')
    SCOTT
    but the same with trigger it didn't set. Any idea.
    Thanks in advance,

    hi i take a trace of the session. in that trace statement is showing.
    -bash-3.00$ cat orcl_ora_4407.trc
    Trace file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4407.trc
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1
    System name: Linux
    Node name: localhost.localdomain
    Release: 2.6.9-42.0.0.0.1.ELsmp
    Version: #1 SMP Sun Oct 15 14:02:40 PDT 2006
    Machine: i686
    Instance name: orcl
    Redo thread mounted by this instance: 1
    Oracle process number: 20
    Unix process pid: 4407, image: [email protected] (TNS V1-V3)
    *** 2011-10-04 23:07:35.726
    *** SESSION ID:(43.19) 2011-10-04 23:07:35.726
    *** CLIENT ID:() 2011-10-04 23:07:35.726
    *** SERVICE NAME:(SYS$USERS) 2011-10-04 23:07:35.726
    *** MODULE NAME:(SYS) 2011-10-04 23:07:35.726
    *** ACTION NAME:() 2011-10-04 23:07:35.726
    CLOSE #1:c=0,e=93,dep=1,type=1,tim=1317749855723627
    =====================
    PARSING IN CURSOR #2 len=47 dep=1 uid=0 oct=3 lid=0 tim=1317749855729023 hv=2145557917 ad='47aca488' sqlid='049t4sdzy57cx'
    select dummy from dual where USER = 'SCOTT'
    END OF STMT
    PARSE #2:c=1000,e=969,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3752461848,tim=1317749855729018
    EXEC #2:c=1000,e=1434,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3752461848,tim=1317749855732048
    FETCH #2:c=0,e=15,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3752461848,tim=1317749855732153
    STAT #2 id=1 cnt=0 pid=0 pos=1 obj=0 op='FILTER (cr=0 pr=0 pw=0 time=0 us)'
    STAT #2 id=2 cnt=0 pid=1 pos=1 obj=116 op='TABLE ACCESS FULL DUAL (cr=0 pr=0 pw=0 time=0 us cost=2 size=2 card=1)'
    CLOSE #2:c=0,e=11,dep=1,type=1,tim=1317749855734625
    =====================
    PARSING IN CURSOR #1 len=47 dep=1 uid=84 oct=3 lid=84 tim=1317749855737092 hv=2145557917 ad='47aca488' sqlid='049t4sdzy57cx'
    select dummy from dual where USER = 'SCOTT'
    END OF STMT
    PARSE #1:c=1999,e=1933,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=3752461848,tim=1317749855737087
    EXEC #1:c=0,e=51,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=3752461848,tim=1317749855737654
    FETCH #1:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=3752461848,tim=1317749855738075
    STAT #1 id=1 cnt=0 pid=0 pos=1 obj=0 op='FILTER (cr=0 pr=0 pw=0 time=0 us)'
    STAT #1 id=2 cnt=0 pid=1 pos=1 obj=116 op='TABLE ACCESS FULL DUAL (cr=0 pr=0 pw=0 time=0 us cost=2 size=2 card=1)'
    CLOSE #1:c=0,e=7,dep=1,type=1,tim=1317749855738544
    XCTEND rlbk=0, rd_only=1, tim=1317749855744024
    XCTEND rlbk=0, rd_only=1, tim=1317749855745025
    *** 2011-10-04 23:07:40.799
    =====================
    PARSING IN CURSOR #2 len=406 dep=0 uid=0 oct=47 lid=0 tim=1317749860799353 hv=4178600252 ad='478e46c0' sqlid='8z5gn0mwj0s9w'
    declare
    v_dbuser varchar2(32) ;
    var_sid NUMBER;
    var_serial NUMBER;
    begin
    select sys_context('USERENV','SESSION_USER') into v_dbuser from dual;
    SELECT SID, serial#
    INTO var_sid, var_serial
    FROM v$session
    WHERE SYS_CONTEXT ('USERENV', 'SESSIONID') = audsid;
    sys.dbms_application_info.set_module(v_dbuser, null);
    SYS.DBMS_SYSTEM.set_sql_trace_in_session (var_sid, var_serial, TRUE);
    end;
    END OF STMT
    PARSE #2:c=76988,e=109996,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,plh=0,tim=1317749860799344
    =====================
    PARSING IN CURSOR #1 len=54 dep=1 uid=0 oct=3 lid=0 tim=1317749860821371 hv=552310686 ad='4793b5d0' sqlid='2yzdahhhfr5wy'
    SELECT SYS_CONTEXT('USERENV','SESSION_USER') FROM DUAL
    END OF STMT
    PARSE #1:c=19997,e=19894,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,plh=1388734953,tim=1317749860821362
    EXEC #1:c=0,e=39,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=1388734953,tim=1317749860822306
    FETCH #1:c=0,e=58,p=0,cr=0,cu=0,mis=0,r=1,dep=1,og=1,plh=1388734953,tim=1317749860822419
    STAT #1 id=1 cnt=1 pid=0 pos=1 obj=0 op='FAST DUAL (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=1)'
    CLOSE #1:c=1000,e=687,dep=1,type=3,tim=1317749860823263
    =====================
    PARSING IN CURSOR #1 len=86 dep=1 uid=0 oct=3 lid=0 tim=1317749860845379 hv=3278699504 ad='4793b444' sqlid='dv6dxh31qtyzh'
    SELECT SID, SERIAL# FROM V$SESSION WHERE SYS_CONTEXT ('USERENV', 'SESSIONID') = AUDSID
    END OF STMT
    PARSE #1:c=21996,e=22022,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,plh=644658511,tim=1317749860845371
    EXEC #1:c=0,e=76,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=644658511,tim=1317749860846365
    FETCH #1:c=1000,e=1085,p=0,cr=0,cu=0,mis=0,r=1,dep=1,og=1,plh=644658511,tim=1317749860847543
    STAT #1 id=1 cnt=1 pid=0 pos=1 obj=0 op='NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us cost=0 size=117 card=1)'
    STAT #1 id=2 cnt=1 pid=1 pos=1 obj=0 op='NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us cost=0 size=104 card=1)'
    STAT #1 id=3 cnt=1 pid=2 pos=1 obj=0 op='FIXED TABLE FULL X$KSUSE (cr=0 pr=0 pw=0 time=0 us cost=0 size=78 card=1)'
    STAT #1 id=4 cnt=1 pid=2 pos=2 obj=0 op='FIXED TABLE FIXED INDEX X$KSLWT (ind:1) (cr=0 pr=0 pw=0 time=0 us cost=0 size=26 card=1)'
    STAT #1 id=5 cnt=1 pid=1 pos=2 obj=0 op='FIXED TABLE FIXED INDEX X$KSLED (ind:2) (cr=0 pr=0 pw=0 time=0 us cost=0 size=13 card=1)'
    CLOSE #1:c=0,e=8,dep=1,type=3,tim=1317749860848409
    EXEC #2:c=46992,e=47145,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=0,tim=1317749860848519
    *** 2011-10-04 23:07:48.446
    CLOSE #2:c=0,e=44,dep=0,type=0,tim=1317749868446462
    =====================
    PARSING IN CURSOR #1 len=36 dep=0 uid=0 oct=47 lid=0 tim=1317749868452507 hv=4128301241 ad='43cc3bbc' sqlid='5t10uu7v11s5t'
    BEGIN DBMS_OUTPUT.ENABLE(NULL); END;
    END OF STMT
    PARSE #1:c=5999,e=5409,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,plh=0,tim=1317749868452500
    EXEC #1:c=1000,e=1082,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=0,tim=1317749868454166
    CLOSE #1:c=0,e=27,dep=0,type=0,tim=1317749868456571
    =====================
    PARSING IN CURSOR #2 len=48 dep=1 uid=0 oct=3 lid=0 tim=1317749868460092 hv=2334772408 ad='4c94ceb4' sqlid='cjk1ffy5kmm5s'
    select obj# from oid$ where user#=:1 and oid$=:2
    END OF STMT
    PARSE #2:c=1000,e=1645,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=1964104430,tim=1317749868460085
    EXEC #2:c=1000,e=531,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=1964104430,tim=1317749868461643
    FETCH #2:c=1999,e=1461,p=0,cr=3,cu=0,mis=0,r=1,dep=1,og=4,plh=1964104430,tim=1317749868463587
    STAT #2 id=1 cnt=1 pid=0 pos=1 obj=500 op='TABLE ACCESS BY INDEX ROWID OID$ (cr=3 pr=0 pw=0 time=0 us cost=2 size=24 card=1)'
    STAT #2 id=2 cnt=1 pid=1 pos=1 obj=501 op='INDEX UNIQUE SCAN I_OID1 (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)'
    CLOSE #2:c=0,e=7,dep=1,type=3,tim=1317749868464199
    =====================
    PARSING IN CURSOR #1 len=54 dep=1 uid=0 oct=3 lid=0 tim=1317749868465603 hv=2201826955 ad='4c97e470' sqlid='0m78skf1mudnb'
    select audit$,properties from type_misc$ where obj#=:1
    END OF STMT
    PARSE #1:c=1000,e=422,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3506511888,tim=1317749868465597
    EXEC #1:c=0,e=39,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3506511888,tim=1317749868466196
    FETCH #1:c=0,e=726,p=0,cr=3,cu=0,mis=0,r=1,dep=1,og=4,plh=3506511888,tim=1317749868467149
    STAT #1 id=1 cnt=1 pid=0 pos=1 obj=502 op='TABLE ACCESS CLUSTER TYPE_MISC$ (cr=3 pr=0 pw=0 time=0 us cost=2 size=46 card=1)'
    STAT #1 id=2 cnt=1 pid=1 pos=1 obj=3 op='INDEX UNIQUE SCAN I_OBJ# (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)'
    CLOSE #1:c=0,e=144,dep=1,type=1,tim=1317749868467616
    =====================
    PARSING IN CURSOR #2 len=185 dep=1 uid=0 oct=3 lid=0 tim=1317749868469076 hv=1850944673 ad='4c9d8f00' sqlid='3ktacv9r56b51'
    select owner#,name,namespace,remoteowner,linkname,p_timestamp,p_obj#, nvl(property,0),subname,type#,d_attrs from dependency$ d, obj$ o where d_obj#=:1 and p_obj#=obj#(+) order by order#
    END OF STMT
    PARSE #2:c=1000,e=478,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=4184428695,tim=1317749868468625
    EXEC #2:c=999,e=923,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=4184428695,tim=1317749868470434
    FETCH #2:c=3000,e=2985,p=0,cr=7,cu=0,mis=0,r=1,dep=1,og=4,plh=4184428695,tim=1317749868473470
    FETCH #2:c=0,e=571,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=4184428695,tim=1317749868474130
    STAT #2 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT ORDER BY (cr=7 pr=0 pw=0 time=0 us cost=11 size=327 card=3)'
    STAT #2 id=2 cnt=1 pid=1 pos=1 obj=0 op='NESTED LOOPS OUTER (cr=7 pr=0 pw=0 time=0 us cost=10 size=327 card=3)'
    STAT #2 id=3 cnt=1 pid=2 pos=1 obj=104 op='TABLE ACCESS BY INDEX ROWID DEPENDENCY$ (cr=4 pr=0 pw=0 time=0 us cost=4 size=81 card=3)'
    STAT #2 id=4 cnt=1 pid=3 pos=1 obj=106 op='INDEX RANGE SCAN I_DEPENDENCY1 (cr=3 pr=0 pw=0 time=0 us cost=3 size=0 card=3)'
    STAT #2 id=5 cnt=1 pid=2 pos=2 obj=18 op='TABLE ACCESS BY INDEX ROWID OBJ$ (cr=3 pr=0 pw=0 time=0 us cost=2 size=82 card=1)'
    STAT #2 id=6 cnt=1 pid=5 pos=1 obj=36 op='INDEX RANGE SCAN I_OBJ1 (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)'
    CLOSE #2:c=0,e=10,dep=1,type=1,tim=1317749868474627
    =====================
    PARSING IN CURSOR #2 len=56 dep=1 uid=0 oct=3 lid=0 tim=1317749868475584 hv=3993603298 ad='4c9d8298' sqlid='8swypbbr0m372'
    select order#,columns,types from access$ where d_obj#=:1
    END OF STMT
    PARSE #2:c=1000,e=926,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=893970548,tim=1317749868475577
    EXEC #2:c=0,e=50,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=893970548,tim=1317749868476239
    FETCH #2:c=0,e=132,p=0,cr=2,cu=0,mis=0,r=0,dep=1,og=4,plh=893970548,tim=1317749868476597
    STAT #2 id=1 cnt=0 pid=0 pos=1 obj=105 op='TABLE ACCESS BY INDEX ROWID ACCESS$ (cr=2 pr=0 pw=0 time=0 us cost=3 size=161 card=7)'
    STAT #2 id=2 cnt=0 pid=1 pos=1 obj=108 op='INDEX RANGE SCAN I_ACCESS1 (cr=2 pr=0 pw=0 time=0 us cost=2 size=0 card=7)'
    CLOSE #2:c=0,e=12,dep=1,type=1,tim=1317749868477440
    =====================
    PARSING IN CURSOR #2 len=47 dep=1 uid=0 oct=3 lid=0 tim=1317749868481084 hv=1023521005 ad='4ca12498' sqlid='cb21bacyh3c7d'
    select metadata from kopm$ where name='DB_FDO'
    END OF STMT
    PARSE #2:c=1000,e=830,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3452538079,tim=1317749868481079
    EXEC #2:c=0,e=54,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3452538079,tim=1317749868481617
    FETCH #2:c=1000,e=385,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3452538079,tim=1317749868482481
    STAT #2 id=1 cnt=1 pid=0 pos=1 obj=552 op='TABLE ACCESS BY INDEX ROWID KOPM$ (cr=2 pr=0 pw=0 time=0 us cost=1 size=108 card=1)'
    STAT #2 id=2 cnt=1 pid=1 pos=1 obj=553 op='INDEX UNIQUE SCAN I_KOPM1 (cr=1 pr=0 pw=0 time=0 us cost=0 size=0 card=1)'
    CLOSE #2:c=0,e=11,dep=1,type=1,tim=1317749868482607
    =====================
    PARSING IN CURSOR #5 len=406 dep=0 uid=0 oct=47 lid=0 tim=1317749868920033 hv=4178600252 ad='478e46c0' sqlid='8z5gn0mwj0s9w'
    declare
    v_dbuser varchar2(32) ;
    var_sid NUMBER;
    var_serial NUMBER;
    begin
    select sys_context('USERENV','SESSION_USER') into v_dbuser from dual;
    SELECT SID, serial#
    INTO var_sid, var_serial
    FROM v$session
    WHERE SYS_CONTEXT ('USERENV', 'SESSIONID') = audsid;
    sys.dbms_application_info.set_module(v_dbuser, null);
    SYS.DBMS_SYSTEM.set_sql_trace_in_session (var_sid, var_serial, TRUE);
    end;
    END OF STMT
    PARSE #5:c=3000,e=2993,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=0,tim=1317749868920026
    =====================
    PARSING IN CURSOR #6 len=54 dep=1 uid=0 oct=3 lid=0 tim=1317749868921319 hv=552310686 ad='4793b5d0' sqlid='2yzdahhhfr5wy'
    SELECT SYS_CONTEXT('USERENV','SESSION_USER') FROM DUAL
    END OF STMT
    PARSE #6:c=1000,e=234,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=1388734953,tim=1317749868921314
    EXEC #6:c=0,e=33,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=1388734953,tim=1317749868921426
    FETCH #6:c=0,e=37,p=0,cr=0,cu=0,mis=0,r=1,dep=1,og=1,plh=1388734953,tim=1317749868921496
    STAT #6 id=1 cnt=1 pid=0 pos=1 obj=0 op='FAST DUAL (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=1)'
    CLOSE #6:c=0,e=8,dep=1,type=3,tim=1317749868922312
    =====================
    PARSING IN CURSOR #6 len=86 dep=1 uid=0 oct=3 lid=0 tim=1317749868922414 hv=3278699504 ad='4793b444' sqlid='dv6dxh31qtyzh'
    SELECT SID, SERIAL# FROM V$SESSION WHERE SYS_CONTEXT ('USERENV', 'SESSIONID') = AUDSID
    END OF STMT
    PARSE #6:c=0,e=38,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=644658511,tim=1317749868922408
    EXEC #6:c=0,e=523,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,plh=644658511,tim=1317749868923008
    FETCH #6:c=1000,e=1034,p=0,cr=0,cu=0,mis=0,r=1,dep=1,og=1,plh=644658511,tim=1317749868924071
    STAT #6 id=1 cnt=1 pid=0 pos=1 obj=0 op='NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us cost=0 size=117 card=1)'
    STAT #6 id=2 cnt=1 pid=1 pos=1 obj=0 op='NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us cost=0 size=104 card=1)'
    STAT #6 id=3 cnt=1 pid=2 pos=1 obj=0 op='FIXED TABLE FULL X$KSUSE (cr=0 pr=0 pw=0 time=0 us cost=0 size=78 card=1)'
    STAT #6 id=4 cnt=1 pid=2 pos=2 obj=0 op='FIXED TABLE FIXED INDEX X$KSLWT (ind:1) (cr=0 pr=0 pw=0 time=0 us cost=0 size=26 card=1)'
    STAT #6 id=5 cnt=1 pid=1 pos=2 obj=0 op='FIXED TABLE FIXED INDEX X$KSLED (ind:2) (cr=0 pr=0 pw=0 time=0 us cost=0 size=13 card=1)'
    CLOSE #6:c=0,e=7,dep=1,type=3,tim=1317749868925014
    EXEC #5:c=5000,e=4799,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=0,tim=1317749868925309
    =====================
    PARSING IN CURSOR #6 len=52 dep=0 uid=0 oct=47 lid=0 tim=1317749868931018 hv=1029988163 ad='47885f94' sqlid='9babjv8yq8ru3'
    BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES); END;
    END OF STMT
    PARSE #6:c=2000,e=1998,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,plh=0,tim=1317749868931012
    =====================
    PARSING IN CURSOR #7 len=132 dep=1 uid=0 oct=3 lid=0 tim=1317749868933509 hv=2328831744 ad='4c975250' sqlid='ga9j9xk5cy9s0'
    select /*+ index(idl_sb4$ i_idl_sb41) +*/ piece#,length,piece from idl_sb4$ where obj#=:1 and part=:2 and version=:3 order by piece#
    END OF STMT
    PARSE #7:c=0,e=199,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=1697022209,tim=1317749868933503
    EXEC #7:c=0,e=121,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=1697022209,tim=1317749868934465
    FETCH #7:c=1000,e=975,p=0,cr=4,cu=0,mis=0,r=1,dep=1,og=4,plh=1697022209,tim=1317749868935481
    FETCH #7:c=0,e=28,p=0,cr=3,cu=0,mis=0,r=1,dep=1,og=4,plh=1697022209,tim=1317749868936446
    FETCH #7:c=0,e=37,p=0,cr=1,cu=0,mis=0,r=0,dep=1,og=4,plh=1697022209,tim=1317749868937047
    STAT #7 id=1 cnt=2 pid=0 pos=1 obj=227 op='TABLE ACCESS BY INDEX ROWID IDL_SB4$ (cr=6 pr=0 pw=0 time=0 us cost=3 size=18 card=1)'
    STAT #7 id=2 cnt=2 pid=1 pos=1 obj=238 op='INDEX RANGE SCAN I_IDL_SB41 (cr=4 pr=0 pw=0 time=9 us cost=2 size=0 card=1)'
    CLOSE #7:c=0,e=14,dep=1,type=1,tim=1317749868937451
    =====================
    PARSING IN CURSOR #7 len=132 dep=1 uid=0 oct=3 lid=0 tim=1317749868938386 hv=4260389146 ad='4c9747c4' sqlid='cvn54b7yz0s8u'
    select /*+ index(idl_ub1$ i_idl_ub11) +*/ piece#,length,piece from idl_ub1$ where obj#=:1 and part=:2 and version=:3 order by piece#
    END OF STMT
    PARSE #7:c=1000,e=902,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3246118364,tim=1317749868938380
    EXEC #7:c=0,e=537,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3246118364,tim=1317749868939041
    FETCH #7:c=1000,e=365,p=0,cr=4,cu=0,mis=0,r=1,dep=1,og=4,plh=3246118364,tim=1317749868939444
    FETCH #7:c=0,e=19,p=0,cr=1,cu=0,mis=0,r=0,dep=1,og=4,plh=3246118364,tim=1317749868939513
    STAT #7 id=1 cnt=1 pid=0 pos=1 obj=224 op='TABLE ACCESS BY INDEX ROWID IDL_UB1$ (cr=4 pr=0 pw=0 time=0 us cost=3 size=44 card=2)'
    STAT #7 id=2 cnt=1 pid=1 pos=1 obj=235 op='INDEX RANGE SCAN I_IDL_UB11 (cr=3 pr=0 pw=0 time=0 us cost=2 size=0 card=2)'
    CLOSE #7:c=0,e=10,dep=1,type=1,tim=1317749868940075
    =====================
    PARSING IN CURSOR #7 len=135 dep=1 uid=0 oct=3 lid=0 tim=1317749868940494 hv=1115215392 ad='4c973d38' sqlid='c6awqs517jpj0'
    select /*+ index(idl_char$ i_idl_char1) +*/ piece#,length,piece from idl_char$ where obj#=:1 and part=:2 and version=:3 order by piece#
    END OF STMT
    PARSE #7:c=999,e=390,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=1319326155,tim=1317749868940488
    EXEC #7:c=1000,e=269,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=1319326155,tim=1317749868941383
    FETCH #7:c=0,e=592,p=0,cr=4,cu=0,mis=0,r=1,dep=1,og=4,plh=1319326155,tim=1317749868942015
    FETCH #7:c=0,e=20,p=0,cr=1,cu=0,mis=0,r=0,dep=1,og=4,plh=1319326155,tim=1317749868942341
    STAT #7 id=1 cnt=1 pid=0 pos=1 obj=225 op='TABLE ACCESS BY INDEX ROWID IDL_CHAR$ (cr=4 pr=0 pw=0 time=0 us cost=3 size=20 card=1)'
    STAT #7 id=2 cnt=1 pid=1 pos=1 obj=236 op='INDEX RANGE SCAN I_IDL_CHAR1 (cr=3 pr=0 pw=0 time=0 us cost=2 size=0 card=1)'
    CLOSE #7:c=0,e=10,dep=1,type=1,tim=1317749868942446
    =====================
    PARSING IN CURSOR #7 len=132 dep=1 uid=0 oct=3 lid=0 tim=1317749868943358 hv=1684122946 ad='4c9732ac' sqlid='39m4sx9k63ba2'
    select /*+ index(idl_ub2$ i_idl_ub21) +*/ piece#,length,piece from idl_ub2$ where obj#=:1 and part=:2 and version=:3 order by piece#
    END OF STMT
    PARSE #7:c=1000,e=883,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=2317816222,tim=1317749868943351
    EXEC #7:c=0,e=549,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=2317816222,tim=1317749868944005
    FETCH #7:c=2000,e=1322,p=1,cr=4,cu=0,mis=0,r=1,dep=1,og=4,plh=2317816222,tim=1317749868945367
    FETCH #7:c=0,e=28,p=0,cr=3,cu=0,mis=0,r=1,dep=1,og=4,plh=2317816222,tim=1317749868945473
    STAT #7 id=1 cnt=2 pid=0 pos=1 obj=226 op='TABLE ACCESS BY INDEX ROWID IDL_UB2$ (cr=5 pr=1 pw=0 time=0 us cost=3 size=40 card=2)'
    STAT #7 id=2 cnt=2 pid=1 pos=1 obj=237 op='INDEX RANGE SCAN I_IDL_UB21 (cr=3 pr=0 pw=0 time=9 us cost=2 size=0 card=2)'
    CLOSE #7:c=0,e=540,dep=1,type=1,tim=1317749868946060
    EXEC #6:c=22996,e=23633,p=1,cr=49,cu=0,mis=1,r=1,dep=0,og=1,plh=0,tim=1317749868955046

  • Setting module name in OCI program

    Hi,
    I have been struggling with setting the module name from my OCI program. Below is the code in which
    I create the environment, connect, attempt to set the module attribute, wait for key input, and clean up
    and exit after getting the key input.
    That I can tell, I have called OCISetAttr as the documentation says I should and none of my return values
    indicate a problem. Yet when I v$session, I get what I presume is the default value of the module
    and not the value I set in the code("moduletest").
    The programs physical filename is oci101.exe. It also connects to the Oracle instance as a user named
    oci101. I check v$session with this query:
    select username, module from v$session where username is not null;
    And the output is this:
    USERNAME MODULE
    OCI101 oci101.exe
    SYSTEM SQL*Plus
    I should see a MODULE column value of "moduletest" for the OCI101 user.
    Not sure what I'm missing. Any ideas?? Here is the code:
    // Begin code:
    OCIEnv* envhp;
    ub2 charset_id = 0;
    ub2 ncharset_id = 0;
    ub4 mode = OCI_DEFAULT;
    const sword env_rc = OCIEnvNlsCreate(
    &envhp, mode,
    (void*)0, // user-defined context for custom memory allocation
    (void* (*)(void*, size_t))0, // user-defined malloc
    (void* (*)(void*, void *, size_t))0, // user-defined realloc
    (void(*)(void*, void*))0, // // user-defined free
    (size_t)0, // extra user memory
    (void **)0,
    charset_id, ncharset_id
    OCIError* errhp;
    const sword err_rc = OCIHandleAlloc(
    (dvoid *) envhp, (dvoid **) &errhp,
    OCI_HTYPE_ERROR, (size_t) 0, (dvoid **) 0
    checkerr(err_rc, errhp);
    OCISvcCtx* svchp = 0;
    const sword l2rc = OCILogon2(
    envhp, errhp, &svchp,
    (const OraText*)zusername, (ub4)strlen(zusername),
    (const OraText*)zpassword, (ub4)strlen(zpassword),
    (const OraText*)zdatabase, (ub4)strlen(zdatabase),
    mode
    checkerr(l2rc, errhp);
    // Set the module attrbute
    // Extract the session handle into sessionhp.
    OCISession *sessionhp = 0;
    ub4 sh_size = 0;
    sword oci_attr_get_status = OCIAttrGet ( svchp,
    OCI_HTYPE_SVCCTX,
    &sessionhp,
    &sh_size,
    OCI_ATTR_SESSION,
    errhp );
    checkerr(oci_attr_get_status, errhp);
    // Set the module
    sword oas_rc = OCIAttrSet(sessionhp, OCI_HTYPE_SESSION,(void *)"moduletest",
    strlen("moduletest"), OCI_ATTR_MODULE, errhp);
    checkerr(oas_rc, errhp);
    getchar();
    // Cleanup:
    if (svchp) { // 0 when already disconnected
    OCISvcCtx*const tmp_svchp = svchp;
    svchp = 0; // reset svchp on error or not
    const sword lorc = OCILogoff(tmp_svchp, errhp);
    checkerr(lorc, errhp);
    const sword rc = OCIHandleFree(envhp, OCI_HTYPE_ENV);
    // End Code.
    Thanks for any help . . .
    Karl

    Hi Karl,
    I'm certainly not an OCI expert, but after setting the module attribute the value is updated upon the next statement execution in my experience. There may be other ways in which this can happen, but I have not seen those cases.
    Here is a short example:
    #include <stdio.h>
    #include <string.h>
    #include <malloc.h>
    #include <oci.h>
    int main(int argc, char *argv[]) {
      OCIEnv      *envhp = NULL;  /* OCI Environment handle     */
      OCIError    *errhp = NULL;  /* OCI Error handle           */
      OCISvcCtx   *svchp = NULL;  /* OCI Service Context handle */
      OCISession  *usrhp = NULL;  /* OCI User Session handle    */
      OCIStmt     *stmtp = NULL;  /* OCI Statement handle       */
      /* the statement to execute   */
      /* this is purely for example */
      oratext *sqlstmt = "begin null; end;";
      /* connection information */
      oratext *username = "scott";
      oratext *password = "tiger";
      oratext *database = "orademo";
      /* used to hold the results of each OCI call */
      sword result = 0;
      /* Initialize and create a default environment */
      result = OCIEnvCreate(&envhp,
                            OCI_DEFAULT,
                            (dvoid *) 0,
                            0,
                            0,
                            0,
                            (size_t) 0,
                            (dvoid **) 0);
      /* allocate an error handle */
      result = OCIHandleAlloc((dvoid *) envhp,
                              (dvoid **) &errhp,
                              OCI_HTYPE_ERROR,
                              0,
                              (dvoid **) 0);
      /* create connection */
      result = OCILogon2(envhp,
                         errhp,
                         &svchp,
                         username,
                         (ub4) strlen(username),
                         password,
                         (ub4) strlen(password),
                         database,
                         (ub4) strlen(database),
                         OCI_DEFAULT);
      /* get the user session handle */
      result = OCIAttrGet(svchp,
                          OCI_HTYPE_SVCCTX,
                          (void *) &usrhp,
                          NULL,
                          OCI_ATTR_SESSION,
                          errhp);
      /* set the module attribute */
      result = OCIAttrSet(usrhp,
                          OCI_HTYPE_SESSION,
                          (void *) "My Module",
                          (ub4) strlen("My Module"),
                          OCI_ATTR_MODULE,
                          errhp);
      /* allocate the statement handle */
      result = OCIHandleAlloc((dvoid *) envhp,
                              (dvoid **) &stmtp,
                              OCI_HTYPE_STMT,
                              0,
                              (dvoid **) 0);
      /* prepare the statement for execution */
      result = OCIStmtPrepare(stmtp,
                              errhp,
                              sqlstmt,
                              (ub4) strlen((char *) sqlstmt),
                              OCI_NTV_SYNTAX,
                              OCI_DEFAULT);
      /* execute the statement - after execution the */
      /* MODULE value should be updated in v$session */
      result = OCIStmtExecute(svchp,
                              stmtp,
                              errhp,
                              (ub4) 1,
                              (ub4) 0,
                              (CONST OCISnapshot *) NULL,
                              (OCISnapshot *) NULL,
                              OCI_DEFAULT);
      /* print a simple prompt    */
      /* view session in SQL*Plus */
      printf("program paused, ENTER to continue...");
      getchar();
      /* disconnect from the server */
      result = OCILogoff(svchp,
                         errhp);
      /* deallocate the environment handle */
      /* OCI will deallocate child handles */
      result = OCIHandleFree((void *) envhp,
                             OCI_HTYPE_ENV);
      return OCI_SUCCESS;
    }When the program is paused I see this in SQL*Plus in my test:
    SQL> select sid, username, program, module from v$session where username = 'SCOTT';
           SID USERNAME         PROGRAM                          MODULE
           136 SCOTT            OCIModuleTest.exe                My ModulePerhaps that is a bit of help.
    Regards,
    Mark
    Edited by: Mark Williams on Dec 22, 2008 11:06 AM
    Tidied up the sample a bit.

  • Need Appointment Function Module Name to Read any Opportunity  No.

    Hello Gurus
    Can anyone  tell me the Appointment  type Function Module Name where Header_guid and  Appt_type are to be supplied .
    Means i want to only read(not to change or create)  an opportunity no for a particular Appointment type(Date_type).  I tried for the following FMs:
    1.CRM_APPOINTMENT_READ_OW
    2.CRM_APPOINTMENT_DETERMINE_OW
    3.CRM_APPOINTMENT_CHECK_OW
    thanks in advance
    Madhusudan

    Hello Madhusudan,
    for the activities you can use the following coding (example):
    -Beginn-
      CALL FUNCTION 'BAPI_ACTIVITYCRM_GETDETAILMULT'
        TABLES
          guid   = lt_guid
          header = lt_header
          date   = lt_bapibus20001_app_dis.
      CALL FUNCTION '/DKVES/SM_ACTIVITY_GETFROMBUPA'
        EXPORTING
          iv_partner  = lv_partner
        TABLES
          et_contacts = lt_sm_activity_simple.
      LOOP AT lt_sm_activity_simple INTO ls_sm_activity_simple.
        CLEAR ls_bapibus20001_app_dis.
        READ TABLE lt_bapibus20001_app_dis INTO ls_bapibus20001_app_dis
        WITH KEY ref_guid = ls_sm_activity_simple-activity_guid appt_type = 'ORDERPLANNED'.
          ls_order_aktiv-date_from = ls_bapibus20001_app_dis-date_from.
        APPEND ls_order_aktiv TO lt_order_aktiv.
      ENDLOOP.
    -end-
    If you want the other 'one order Objects' you can perhaps modify the selection.
    I hope that helps
    Torsten

  • I need the function module name

    i got the requirement to post data to FBS1 FB01 FBV1 transaction before posting the data to transaction i need to check the data in the iternal table for validity . this can be hadled by function modules or bapi
    if any now the name please reply

    hi  santaliestra.
    XBLNR(16) TYPE C,                  " Reference
    BLDAT(10) TYPE C,                  " Document date
    BUDAT(10) TYPE C,                  " Posting date
    BKTXT(25) TYPE C,                  " Short text
    BLART(2)  TYPE C,                  " Document type
    WAERS(5)  TYPE C,                  " Currency
    BUKRH(4)  TYPE C,                  " Company code in Header
        STODT(10) TYPE C,                  " Reversal date
        STGRD(2)  TYPE C,                  " Reason
        BUKRS(4)  TYPE C,                  " Company code
        GSBER(4)  TYPE C,                  " Business area
        HKONT(10) TYPE C,                  " Account number
        KOSTL(10) TYPE C,                  " Cost center
        AUFNR(12) TYPE C,                  " Order number
        PROJK(8)  TYPE C,                  " Wbs
        NPLNR(12) TYPE C,                  " Network
        VORNR(4)  TYPE C,                  " Network activity
        PRCTR(10) TYPE C,                  " Profit center
        ZUONR(18) TYPE C,                  " Assignment number
        PERNR(8)  TYPE C,                  " Personnel number
        VBUND(6)  TYPE C,                  " Trading parnter
        WRBTR(13) TYPE C,                  " Amount
        DMBTR(13) TYPE C,                  " Amount
        MWSKZ(2)  TYPE C,                  " Tax code
        SGTXT(50) TYPE C,                  " Item text
        MATNR(18) TYPE C,                  " Material
        LZBKZ(3)  TYPE C,                  " Bank indicator
        LANDL(3)  TYPE C,                  " Supplying country
        WWCNT(3)  TYPE C,                  " Ship to country
        WWPRL(2)  TYPE C,                  " Product line
        WWPG1(5)  TYPE C,                  " Product group
        WERKS(4)  TYPE C,                  " Plant
        BZIRK(6)  TYPE C,                  " Sales district
        BATR2(3)  TYPE C,                  " Bus. Attr 2
        WWPL4(11) TYPE C,                  " Product level 4
        WWPL5(14) TYPE C,                  " Product level 5
        PRODT(18) TYPE C,                  " Product
        KNDNR(10) TYPE C,                  " Customer
        VKORG(4)  TYPE C,                  " Sales org.
        VTWEG(2)  TYPE C,                  " Distribution channel
        SPART(2)  TYPE C,                  " Division
        VKBUR(4)  TYPE C,                  " Sales office
        INDUS(4)  TYPE C,                  " Industry
        CSGRP(2)  TYPE C,                  " Customer group
        MTNR1(18) TYPE C,                  " Material
        VKGRP(3)  TYPE C,                  " Sales group
        BATR1(18) TYPE C,                  " Bus. Attr 1
        WWPL3(8)  TYPE C,                  " Product level 3
        FKART(4)  TYPE C,                  " Billing type
        MGENT(8)  TYPE C,                  " Management entity
        WWPL6(18) TYPE C,                  " Product level 6
    for these fields i need to check for validity .

  • Do we need to set up Name Server?

    Hi all,
    I am creating a Software Component in the SLD. During one of the steps, it request us to setup the Name Server. May I know what is the use for this name server? Can we do without the Name Server? And if we cannot, how do we configure the Name Server? And how do we know what type of name server to create?
    Thanks in advance.
    Regards

    Hi,
    You can leave it. It is used declaring it as the name server for the development infrastructure. In this case, the role of the server must be name server. The name server checks the <b>uniqueness of names and enables you to define name prefixes</b>. The name server is a role of a SLD. The other role is the landscape server role. The setup of the name server takes place in the same way as the setup of the SLD server.
    So when you create your project in NWDS using NWDI track then the name will come as the prefix of the project. If you want to use name server you need to registerit. For more information see the note SAP Note 710315. Here is a link I think it will clear you enough.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/e9905fe1582d53e10000000a422035/content.htm
    Thanks
    Chandan

  • Urgent ...Need for  function module name.

    I have a requirement to print label using smartforms,in transaction VL02N.In which i need to get the name1(ship to information) information at run time as the
    user can change the Address in Stock transport order (most likely) or at the Delivery at the run time. We need to find a function module that reads the run time structure data (VTTPVB\name1) and gives us the data.
    Any pointers on this regards would be helpful
    With Thanks and Regards
    Arun T
    [email protected]

    Hi Sap Surfer,  
    VTTK and VTTP are the delivery tables here all the details with respect to delivery is stored and retrieved.
    To get the name1 and address fields the partner function plays a vital role and thus you can achieve this from VBPA.
    By selecting the correct partner function the right information can be retrieved.
    The structure contains data only during the transaction or the transaction programs run thus it is not advisible to get data from that so data is usually fetched from Tables.
    Hope this solves your query.
    Reward Points if useful.
    Thanks,
    Tej..

  • I was given a nano and need to set up name and sync under me; how do I do this, undoing the link to the person I got it from?

    I am currently looking at the manual under syncing with itunes, step 2 and it does not pull up for me to automatically to be able to put my info in so I am assuming it is using prior users.

    Hello Jenamin,
    After reviewing your post, I have located an article that can help in this situation. It contains helpful advice concerning restoring devices:
    Restoring iPod to factory settings
    http://support.apple.com/kb/ht1339
    Additional Information
    How to rename your iPod
    iPod does not appear in iTunes or on the desktop, an exclamation point or sad iPod icon appears onscreen
    iPod only shows an Apple logo and doesn't start up
    Your Windows PC doesn't recognize iPod
    iPod doesn't appear in iTunes or on my Mac desktop
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • I accidentally set up my new ipad in itunes under the name of my existing ipad and need to set it up as a new device. Help. I cannot find a way to start fresh.

    I accidentally set up my new ipad in itunes under the name of my existing ipad and need to set it up as a new device. Help. I cannot find a way to start fresh.

    That's probably not a good idea to try to share apps since you will have to switch ID's each time you update apps and sync apps from iTunes.
    And technically - according to Apple's terms - you cannot share apps using different ID's. You can actually lock yourself out of an ID for 90 days if you switch ID's and if you associate the iPad with another ID.
    The bold type is a copy and paste from the site that I referenced below.
    When you turn on iTunes Match or Automatic Downloads, or when you download past purchases on an iOS device or computer, that device or computer becomes associated with your Apple ID. This article describes how to manage these associations.
    http://support.apple.com/kb/ht4627

  • HT1311 I have changed the apple ID on my iphone successfully - can I now just connect to the itunes account on our PC which is in my husbands name? as both of our iphones used to connect to it when under his apple account. Or do i need to set up itunes my

    I have successfully changed my apple account using my iphone. Can i now just plug my iphone into my pc using the itunes account in my husbands name (this used to be my apple id too) or do I need to set up a whole new itunes in my name and download all music etc to that from scratch...........i am not very technical so very basic answers would be appreciated!!

    Hello erbim,
    Thanks for using Apple Support Communities.
    The Apple ID you sign in with will allow you access to the purchases made on that ID.
    For more information on this, take a look at this article:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Best of luck,
    Mario

  • Need help in setting file name with special characters in attachment

    Hi
    We have a requirement where we need to set the file name that contains special characters (like Russian) and send mauil using Java mail.
    If we set the file name as such, the attachment in the email contains garbled filename
    Can you pl let me know how to resolve this?
    We should use the file name as attachment name and this will have say special characters. The receiver who gets the mail should get with the correct attachment name
    One important point.. the attachments are opened from MS outlook.
    Thanks and regards
    Ram
    Edited by: 884910 on 13 Sep, 2011 5:00 AM

    Read the FAQ carefully. You don't need to call encodeText unless you're using a really
    old version of JavaMail.
    And, it depends on whether the mail reader you're using is handling encoded parameters
    according to the (new) MIME standard, or according to the (old) non-standard hack.
    Sadly, without knowing what mail reader the recipient is using, it's impossible to use
    encoded filenames that will work everywhere.

  • Hi i need function module name  regarding dates

    Hi ,
    i need some function module which is taken month and year and it will give last date of that month in that year , i think there is some function module
    pls can u help me

    data: start_date type sy-datum,
          end_date type sy-datum.
    parameters: p_spbup type spbup.
    start-of-selection.
      start_date = p_spbup.
      start_date+6(2) = '01'.
      call function 'LAST_DAY_OF_MONTHS'
           exporting
                day_in            = start_date
           importing
                last_day_of_month = end_date.
      write:/ start_date, end_date.
    Use Function modules for finding last day of month:
    RE_LAST_DAY_OF_MONTH
    RP_LAST_DAY_OF_MONTHS
    SLS_MISC_GET_LAST_DAY_OF_MONTH
    Regards
    Vasu

  • Need to the domain name and computer name in offline mode

    Hi,
    I can not able to login to the windows system, the password i am using is correct. But im getting error "the login method using is incorrect, please contact network admin". I forgot the domain name i set to login to the system. Now Currently i
    dont have the recovery/windows7 disks.  I have Unix in my machine as well. so i have mounted the windows7 parition in linux, and trying to find out the computer\domain name.  so please suggest which file i need to search to get the details.
    Thanks,
    Ravi

    Hi Ravi,
    If you want to know more information about domain name, please take a look at the following article.
    http://technet.microsoft.com/en-us/library/cc731265(v=ws.10).aspx
    Based on my research, the computer name and domain name are stored in the registry key.
    We could find computer name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName.
    And we can find domain name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Domain.
    Have you ever  joined a domain?
    If yes, please contact the network admin as mentioned.
    And we can type Domain name\Username and then password to login.
    If you haven’t, we could try to type Computer name\username(.\username) and then the password to login the computer.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • How to set dynamic name of the mail attachment according to source file ?

    Hi,gurus:
    Our scenario is like below:
    Sending files from an FTP server to another FTP server without using the integraiton repositary,and the file name is not changed .Now, we want to also send the file to some with by mail adapter.The scenario  now works by using two business services in receiver determination.But the name of the attachment is "untitled.xml".We know how to set the file name staticly,but how to set the name dynamicly according to the source file name ?
    I have checked miachel's blog "XI: Dynamic name in the mail attachment - pseudo "variable substitution"(/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution),but how can I get the source file name?
    And another question:Must we restart the adapter or j2ee engine to make the user defined module work?

    Hi,
    >>>but how can I get the source file name?
    form dynamicconfiguration (ASMA)
    >>>And another question:Must we restart the adapter or j2ee engine to make the user defined module work?
    no need for a restart
    Regards,
    Michal Krawczyk

  • Setting Column Names in Dynamic Pivot Query

    Hi all,
    I'm having trouble setting column names in a dynamic pivot query and was wondering if someone could please help me figure out what I need to do.
    To help you help me, I've setup an example scenario in my hosted account. Here's the login info for my hosted site at [http://apex.oracle.com]
    Workspace: MYHOSTACCT
    Username : DEVUSER1
    Password : MYDEVACCTAnd, here is my test application info:
    ID     : 42804
    Name   : dynamic query test
    Page   : 1
    Table 1: PROJECT_LIST         (Alias = PL...  Listing of Projects)
    Table 2: FISCAL_YEAR          (Alias = FY...  Lookup table for Fiscal Years)
    Table 3: PROJECT_FY           (Alias = PF...  Intersection table containing project fiscal years)
    Table 4: PROJECT_FY_HEADCOUNT (Alias = PFH... Intersection table containing headcount per project and fiscal year)Please forgive the excessive normalization for this example, as I wanted to keep the table structure similar to my real application, which has much more going on.
    In my sample, I have the "Select Criteria" region, where the user specifies the project and fiscal year range that he or she would like to report. Click the Search button, and the report returns the project headcount in a pivoted fashion for the fiscal year range specified.
    I've got it working using a hard-coded query, which is displayed in the "Hardcoded Query" region. In this query, I basically return all years, and set conditions on each column which determines whether that column should be displayed or not based on the range selected by the user. While this works, it is not ideal, as there could be many more fiscal years to account for, and this is not very dynamic at all. Anytime a fiscal year is added to the FISCAL_YEAR table, I'd have to update this page.
    So, after reading all of the OTN SQL pivot forums and "Ask Tom" pivot thread, I've been able to create a second region labeled "Dynamic Query" in which I've created a dynamic query to return the same results. This is a much more savvy solution and works great; however, the column names are generic in the report.
    I had to set the query to parse at runtime since the column selection list is dynamic, which violates SQL rules. Can anyone please help me figure out how I can specify my column names in the dynamic query region to get the same column values I'm getting in the hardcoded region?
    Please let me know if you need anymore information, and many thanks in advance!
    Mark

    Hi Tony,
    Thanks so much for your response. I've had to study up on the dbms_sql package to understand your function... first time I've used it. I've fed my dynamic query to your function and see that it returns a colon delimited list of the column names; however, I think I need a little more schooling on how and where exactly to apply the function to actually set the column names in APEX.
    From my test app, here is the code for my dynamic query. I've got it in a "PL/SQL function body returning sql query" region:
    DECLARE 
      v_query      VARCHAR2(4000);
      v_as         VARCHAR2(4);
      v_range_from NUMBER;
      v_range_to   NUMBER;         
    BEGIN
      v_range_from := :P1_FY_FROM;
      v_range_to   := :P1_FY_TO;
      v_query      := 'SELECT ';
      -- build the dynamic column selections by looping through the fiscal year range.
      -- v_as is meant to specify the column name as (FY10, FY11, etc.), but it's not working.
      FOR i IN v_range_from.. v_range_to  LOOP
        v_as    := 'FY' || SUBSTR(i, 3, 4);
        v_query := v_query || 'MAX(DECODE(FY_NB,' || i || ',PFH_HEADCOUNT,0)) '
          || v_as || ',';
      END LOOP;
      -- add the rest of the query to the dynamic column selection
      v_query := rtrim(v_query,',') || ' FROM ('
        || 'SELECT FY_NB, PFH_HEADCOUNT FROM ('
        || 'SELECT FY_ID, FY_NB FROM FISCAL_YEAR) A '
        || 'LEFT OUTER JOIN ('
        || 'SELECT FY_ID, PFH_HEADCOUNT '
        || 'FROM PROJECT_FY_HEADCOUNT '
        || 'JOIN PROJECT_FY USING (PF_ID) '
        || 'WHERE PL_ID = ' || :P1_PROJECT || ') B '
        || 'ON A.FY_ID = B.FY_ID)';
      RETURN v_query;
    END;I need to invoke GET_QUERY_COLS(v_query) somewhere to get the column names, but I'm not sure where I need to call it and how to actually set the column names after getting the returned colon-delimited list.
    Can you (or anyone else) please help me get a little further? Once again, feel free to login to my host account to see it first hand.
    Thanks again!
    Mark

Maybe you are looking for

  • My iPod touch screen got wet and now it won't register any touch.

    I had just gotten out of the ocean and when I went to check my texts, my hair dripped a bunch of water onto my iPod's screen. I wiped it off, but when I tried to scroll through my inbox it didn't register. I was able to get it to turn off, but it too

  • What is needed to get javac compiler?

    I down loaded and installed jdk-6u6-windows-i586-p.exe. This runs files fine if the compiled .class files are there. When I create a nes .java file and try to compile it using javac, I get errors not recognizing javac command. What do I need to be ab

  • Problem when using SDO operations

    Hello everyone, I'm trying to execute some spatial SQL queries and I've come up with a problem: If I enter the following query, the spatial operation (in this case SDO_INSIDE) is executed perfectly and data is returned: SELECT SUM(fact.quant) as SUM_

  • Acrobat reader plugin displays last page in IExplorer

    For some reason, when I open a PDF using IExplorer, the acrobat reader displays the last page of the PDF document (instead of the first page). Not sure why this is happening, because it works ok when I use other browsers (like firefox, chrome and ope

  • I forgot my passcode any idea how i can get on to my device?

    i have forgotten to link my iphone to itunes and i have forgotten my passcode any idea how i can get on to my device