Home » Developer & Programmer » Forms » How to get details of USER... (oracle 10g, forms 6i)
How to get details of USER... [message #457883] Wed, 26 May 2010 04:51 Go to next message
snsiddiqui
Messages: 172
Registered: December 2008
Senior Member
I want to save ip address, os username, terminal information at the time of record insertion/updation therefore I am using sys_context function but it gives me error at the time of form compilation.

ERROR:
ORA-00600: internal error code, arguments: [17069],[134386616],[],[],[],[],[],[]

My user has already DBA privilege.

Please help me to resolve this issue or if you guys have any other suggestion/option then please update me.

I will be very gratefull to all of you.
Re: How to get details of USER... [message #457898 is a reply to message #457883] Wed, 26 May 2010 05:41 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I think that Forms 6i can't directly use SYS_CONTEXT. Therefore, try to create a stored function and call it from a form.
Re: How to get details of USER... [message #457902 is a reply to message #457883] Wed, 26 May 2010 05:48 Go to previous messageGo to next message
gregor
Messages: 86
Registered: March 2010
Location: Germany
Member
Hi snsiddiqui,
1.) sys_context is not working in a RAC-enviroment.
- What are your OS and Database Version-numbers?
2.) look in your bdump-folder, in the Alert.Log file, for the ora-00600 error. 2.1) Get the trace-file number found with the ora-00600 error. 2.2) search in the udump folder for that trace file number. There should be explained, what's going wrong.

Re: How to get details of USER... [message #457909 is a reply to message #457902] Wed, 26 May 2010 06:16 Go to previous messageGo to next message
snsiddiqui
Messages: 172
Registered: December 2008
Senior Member
Dear GREGOR

I am not using RAC enviroment.
OS is WINDOWS XP and Database version is

Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production

There isn't any error in ALERT.LOG and also there isn't any trace file with this error number.
Re: How to get details of USER... [message #457916 is a reply to message #457909] Wed, 26 May 2010 07:00 Go to previous messageGo to next message
gregor
Messages: 86
Registered: March 2010
Location: Germany
Member
Hi snsiddiqui,
1.) the path to "alert_<SID>.log" file is defined as the database parameter "log_archive_dest%" or %user_dump%
You can see this values in: - sqlplus (connect as sys) at sqlprompt type:
SQL> show parameters %dump%
and than:
SQL> show parameters log_archive%
( you alternative see it in the spfile<SID>.ora or init<SID>.ora)

2. what your FORMS Version?
Re: How to get details of USER... [message #457921 is a reply to message #457916] Wed, 26 May 2010 07:12 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Forms version is specified at the top of the thread - under the private messaging link.

I suspect the problem is what Littlefoot described, there's all sorts of DB stuff that forms 6i just doesn't like.
Re: How to get details of USER... [message #457944 is a reply to message #457921] Wed, 26 May 2010 08:57 Go to previous messageGo to next message
gregor
Messages: 86
Registered: March 2010
Location: Germany
Member
hi ,
I have tested sys_context,
Littlefoot is correct , forms 6i doesn't like SYS_CONTEXT. (however my Error: sys_context must be declared / Forms 6.0.8.22.1 DB 11)
- in Forms 10.2 / DB 10.2.04 , sys_context works fine.

GG
Re: How to get details of USER... [message #457999 is a reply to message #457883] Wed, 26 May 2010 11:35 Go to previous messageGo to next message
Manyanye Amos
Messages: 18
Registered: October 2004
Location: Zimbabwe
Junior Member
It means that your table is corrupt.Use the following command to resolve the issue. ANALYZE TABLE employees COMPUTE STATISTICS. Substitute employees table with your actual table.
Re: How to get details of USER... [message #458007 is a reply to message #457999] Wed, 26 May 2010 12:06 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I don't think I understand what you've just said (about a table being corrupt). What table? It is SYS_CONTEXT we are discussing.
Re: How to get details of USER... [message #458072 is a reply to message #458007] Thu, 27 May 2010 04:08 Go to previous messageGo to next message
Manyanye Amos
Messages: 18
Registered: October 2004
Location: Zimbabwe
Junior Member
I mean the table you are inserting the details that are being retained by the sys_context function, can you show me the whole code please?

Regards,
Re: How to get details of USER... [message #458075 is a reply to message #458072] Thu, 27 May 2010 04:15 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
The fact is: Forms 6i can't directly use SYS_CONTEXT. It fails long before anyone tries to insert anything into a table. You don't even need a table; SYS_CONTEXT would fail anyway, as soon as you try to use it.
Re: How to get details of USER... [message #458085 is a reply to message #458075] Thu, 27 May 2010 05:40 Go to previous messageGo to next message
Manyanye Amos
Messages: 18
Registered: October 2004
Location: Zimbabwe
Junior Member
With forms 6i client-server we used USERENV('terminal') and the other parameters like sid, but it failed on web versions because it returns values from the application server.
Re: How to get details of USER... [message #461693 is a reply to message #458085] Mon, 21 June 2010 01:14 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
See what results you obtain from running the following:
   select upper(osuser), upper(terminal)
     into v_osuser, v_terminal
     from v$session
    where sid = (select distinct sid
                            from v$mystat);

Also look at the bits and pieces available in 'd2kwutil'.

David
Previous Topic: APPLICATION ALERT
Next Topic: i can call it from Toad but i can't from forms
Goto Forum:
  


Current Time: Thu Sep 19 18:01:06 CDT 2024