Print Thread
Change login information
#23196 07/06/06 02:26 PM
Joined: Dec 2003
Posts: 14
T
TMoore Offline OP
Member
OP Offline
Member
T
Joined: Dec 2003
Posts: 14
Hi guys

I put this in AfterConnect.sql :

BEGIN
dbms_application_info.set_module(module_name => 'my_progs',action_name => 'none');
END;

I works fine, but when I fire SQL Window it did not use AfterConnect.sql.

How to change it, I know I can write this same statmement in SQL Window.

cheers

Re: Change login information
#23197 07/06/06 07:38 PM
Joined: Aug 1999
Posts: 22,216
Member
Offline
Member
Joined: Aug 1999
Posts: 22,216
Did you add a trailing slash like this?
Code
BEGIN
  dbms_application_info.set_module(module_name => 'my_progs',action_name => 'none');
END;
/


Marco Kalter
Allround Automations
Re: Change login information
#23198 07/10/06 07:25 PM
Joined: Dec 2003
Posts: 14
T
TMoore Offline OP
Member
OP Offline
Member
T
Joined: Dec 2003
Posts: 14
Marco it works fine in session window, but
when I fire sql window and pass select sysdate from dual I see that in module I see pl/sql developer.

How pass dbms_application code automaticly via login.sql file?

Re: Change login information
#23199 07/11/06 07:30 PM
Joined: Aug 1999
Posts: 22,216
Member
Offline
Member
Joined: Aug 1999
Posts: 22,216
You should not use login.sql. You will need to use the AfterConnect.sql script, which runs for all sessions.


Marco Kalter
Allround Automations
Re: Change login information
Marco Kalter #39064 11/19/10 10:52 AM
Joined: Nov 2010
Posts: 2
K
Member
Offline
Member
K
Joined: Nov 2010
Posts: 2
Hi Marco,

Your code works fine for SQL Window. But when I run the following sql: select module, action, client_info,action,program from v$session;
I can still see Main Session with Module=PL/SQL Developer. Is there any possibiliy to change this name as well?

Many thanks.
Regards,

Re: Change login information
Karolski #39067 11/19/10 11:01 AM
Joined: Aug 1999
Posts: 22,216
Member
Offline
Member
Joined: Aug 1999
Posts: 22,216
Can you modify the shortcut and add the NoAppInfo parameter? For example:

"C:\Program Files\PLSQL Developer\plsqldev.exe" NoAppInfo

Now PL/SQL Developer will no longer set the application info, and will not override anything you have set yourself.


Marco Kalter
Allround Automations
Re: Change login information
Marco Kalter #39070 11/19/10 02:14 PM
Joined: Nov 2010
Posts: 2
K
Member
Offline
Member
K
Joined: Nov 2010
Posts: 2
It works!
Thanks a lot!


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.023s Queries: 14 (0.006s) Memory: 2.5251 MB (Peak: 3.0447 MB) Data Comp: Off Server Time: 2024-05-11 12:07:44 UTC
Valid HTML 5 and Valid CSS