WWSSO_APP_USER_MGR.EDIT_USER
When trying to change a user's password normally (manually) via portal, the "Edit User" screen asks for an Admin password. If I enter portal30 as the password (for portal30 user), it accepts it as expected.
However, when I create an application component (dynamic page) with the followong content...
<CODE>
<FORM ACTION=/pls/PORTAL30_SSO/portal30_sso.wwsso_app_user_mgr.edit_user METHOD=POST NAME=EditUserForm>
<INPUT TYPE=TEXT NAME=P_USERNAME VALUE="TESTUSER">
<INPUT TYPE=TEXT NAME=P_ADMINPWD VALUE="portal30">
<INPUT TYPE=TEXT NAME=P_password VALUE="oracle">
<INPUT TYPE=TEXT NAME=P_password_confirm VALUE="oracle">
<INPUT TYPE=TEXT NAME=P_activate_on VALUE="09-JAN-2001">
<INPUT TYPE=TEXT NAME=P_terminate_on VALUE="">
<INPUT TYPE=TEXT NAME=P_role VALUE="USER">
<INPUT TYPE=TEXT NAME=P_request VALUE="OK">
<INPUT TYPE=TEXT NAME=P_action VALUE="">
<INPUT TYPE=TEXT NAME=P_back VALUE="http://<server>/pls/portal30/">
<INPUT TYPE=SUBMIT VALUE="Change Password">
<INPUT TYPE=SUBMIT VALUE="Cancel" onClick="reset();return (false);">
</FORM>
</CODE>
...and try running the application component then it always pops up the "Edit User' screen again when I click "Submit" in the above form. On this form, it never accepts portal30 as the admin password anymore. Any ideas why?
Thanks
There is another thread that should give you the answer to this. The search link is in the upper right; I know it's a little hard to spot but it's very useful once you do.
Similar Messages
-
Hi,
I created user in Apex system without privileges.
Next I want to provision privileges using APEX_UTIL.EDIT_USER Procedure.
But when I try to set p_developer_roles param to ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL in web interface of apex I see the next values: User is workspace administrator - yes; User is a developer - yes; other privilege attributes are NO! When I login I can access to Application Builder but not to SQL Workshop.
In short if i try to provision any developers privileges changes not appearing in web interface, but also i can access to Application Builder if I have that privilege. When I provision SQL:MONITOR:DATA_LOADER privilege I also see:
User is workspace administrator - no; User is a developer - yes; other privilege attributes are NO and I can't access to SQL Workshop!
APEX_UTIL.CREATE_USER Procedure with same values for p_developer_privs param work fine...
Help me to resolve this issue.Please, help
-
Where are these api's stored in the database for apex?
I don't know if my version of APEX has the apex_util.edit_user API. Can You tell me how I can find it?
Forgive me if I'm reading this wrong here, but I suspect that you have the validation the wrong way round.
Firstly, I am assuming that when you say "validation" you mean the in-built apex validation items, rather than some custom process. If so, validation messages are only triggered upon failure i.e. if you want the validation to check that passwords are exactly 8 characters long, the validation should be: length(:P90_PASSWORD) = 8 This means that passwords which are 0-7 or >8 characters in length will fail the validation and thus trigger the validation failure message.
Remember: the purpose of apex validation is to confirm validity - not find invalidity - and thus should be written accordingly. It's a subtle distinction but important! -
Sql server 2012 Logon trigger not working for certain logins
Hello. I created a login trigger to insert data for each login in a table, and it works for all logins except one that is format domain\login
and the login ends with the dollar sign(actual name is domain\CTXDEVDCSI1$).
I had been using varchar, but after reading other forum posts, I changed the varchar's to nvarchar's, but it still fails for that id.
The errors written to the sql server error log were the usual "login failed due to trigger execution".
I had granted insert on the rvvlogindata table in dsa to public, and only one id wasn't able to login after that.
Any suggestions would be much appreciated!
Here's the modified table ddl:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[rvvlogindata](
[sessionId] [int] NULL,
[LoginTime] [datetime] NULL,
[HostName] [nvarchar](50) NULL,
[ProgramName] [nvarchar](300) NULL,
[LoginName] [nvarchar](50) NULL,
[ClientHost] [nvarchar](50) NULL
) ON [PRIMARY]
GO
Here's the logon trigger code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create trigger [LOGIN_IP_RESTRICTION] on all server for logon
as
Begin
Declare @LogonTriggerData xml,
@EventTime datetime,
@LoginName nvarchar(50),
@ClientHost nvarchar(50),
@HostName nvarchar(50),
@AppName nvarchar(300)
Set @LogonTriggerData = eventdata()
set @EventTime = @LogonTriggerData.value('(/EVENT_INSTANCE/PostTime)[1]', 'datetime')
set @LoginName = @LogonTriggerData.value('(/EVENT_INSTANCE/LoginName)[1]', 'varchar(50)')
set @ClientHost = @LogonTriggerData.value('(/EVENT_INSTANCE/ClientHost)[1]', 'varchar(50)')
set @HostName = HOST_NAME()
set @AppName = APP_NAME()
insert into dsa.dbo.rvvlogindata
sessionId,
LoginTime,
HostName,
ProgramName,
LoginName,
ClientHost
select @@spid,
@EventTime,
convert(nvarchar(50),@HostName),
convert(nvarchar(300),@AppName),
convert(nvarchar(50),@LoginName),
convert(nvarchar(50),@ClientHost)
END
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
ENABLE TRIGGER [LOGIN_IP_RESTRICTION] ON ALL SERVER
GOErland, I wanted to add more info to my reply earlier today.
sp_who2 showed no blocking, activity monitor from my local PC SSMS showed no major waits or high i/o or cpu activity.
I was wondering if you have any suggestions on how to find out what was the cause of the 5+ minute wait for SSMS on the remote desktop to respond and fully come up.
I definitely can't put this in production with this hanging delay possibly occurring there.
I was connecting as read_user when it hung.
sp_who2 output at the time was:
1 BACKGROUND sa . . NULL LOG WRITER 54631 0 04/10
06:59:43
1 0
2 BACKGROUND sa . . NULL RECOVERY WRITER 8673 0 04/10 06:59:43
2 0
3 BACKGROUND sa . . NULL LAZY WRITER 300691 0 04/10
06:59:43
3 0
4 BACKGROUND sa . . NULL RESOURCE MONITOR 1207010 0 04/10 06:59:43
4 0
5 BACKGROUND sa . . NULL XE TIMER 38828 0 04/10
06:59:43
5 0
6 BACKGROUND sa . . NULL XE DISPATCHER 1404 0 04/10
06:59:43
6 0
7 BACKGROUND sa . . master SIGNAL HANDLER 0 0 04/10 06:59:43
7 0
8 BACKGROUND sa . . NULL LOCK MONITOR 179978 0 04/10
06:59:43
8 0
9 sleeping sa . . master TASK MANAGER 0 11 04/21
08:37:04
9 0
10 sleeping sa . . master TASK MANAGER 0 0 04/10
06:59:44
10 0
11 BACKGROUND sa . . master TRACE QUEUE TASK 546 0 04/10 06:59:44
11 0
12 BACKGROUND sa . . NULL SYSTEM_HEALTH_MO 4930 0 04/10 06:59:44
12 0
13 BACKGROUND sa . . NULL RECEIVE 422 0 04/10
06:59:45
13 0
14 BACKGROUND sa . . master CHECKPOINT 79137 31811 04/10
06:59:46
14 0
15 BACKGROUND sa . . master TASK MANAGER 1606 0 04/10
06:59:46
15 0
16 BACKGROUND sa . . NULL UNKNOWN TOKEN 0 0 04/10 06:59:46
16 0
17 sleeping sa . . master TASK MANAGER 0 74 04/21
08:37:04
17 0
18 sleeping sa . . master TASK MANAGER 0 0 04/21
08:18:49
18 0
19 sleeping sa . . master TASK MANAGER 0 0 04/21
08:30:29
19 0
20 sleeping sa . . master TASK MANAGER 0 1 04/21
08:37:14
20 0
21 sleeping sa . . master TASK MANAGER 0 7 04/21
08:30:59
21 0
22 sleeping sa . . master TASK MANAGER 16 4 04/21
08:37:44
22 0
23 sleeping sa . . master TASK MANAGER 0 15 04/21
08:39:24
23 0
25 BACKGROUND sa . . master BRKR EVENT HNDLR 0 95 04/10 06:59:48
25 0
30 BACKGROUND sa . . master BRKR TASK 0 0 04/10
06:59:48
30 0
31 BACKGROUND sa . . master BRKR TASK 16926 0 04/10
06:59:48
31 0
32 BACKGROUND sa . . master BRKR TASK 0 0 04/10
06:59:48
32 0
34 BACKGROUND sa . . master BRKR TASK 10701 0 04/10
06:59:48
34 0
51 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
03:16:56
51 0
52 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
52 0
53 sleeping NT AUTHORITY\SYSTEM SQLDEV2012 . msdb AWAITING COMMAND 0 0 04/10
06:59:58 SQLAgent - Email Logger 53 0
54 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:51 Citrix:Broker#1 54 0
55 sleeping edit_user ASDEV1 . dsa AWAITING
COMMAND 0 0 04/21 08:55:27 jTDS
55 0
56 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
56 0
57 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
57 0
58 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
58 0
59 sleeping NT AUTHORITY\SYSTEM SQLDEV2012 . msdb AWAITING COMMAND 124 242 04/10
06:59:59 SQLAgent - Generic Refresher 59 0
60 sleeping NT AUTHORITY\SYSTEM SQLDEV2012 . msdb AWAITING COMMAND 2790 1160 04/21
08:55:00 SQLAgent - Job invocation engine 60 0
61 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
61 0
62 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
62 0
63 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
63 0
64 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
64 0
65 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
65 0
66 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
03:16:56
66 0
67 sleeping reports_adm REPORTSDEVSI2 . JBOSS_Cluster_CRServer2011 AWAITING COMMAND 0 0 04/21
08:52:12 jTDS
67 0
68 sleeping edit_user DCMA10685 . dsa AWAITING COMMAND 0 0 04/21
08:56:47 jTDS
68 0
69 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:49 Citrix:Configuration 69 0
70 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 1794 7120 04/21
08:51:37 Microsoft SQL Server Management Studio 70 0
71 sleeping xsp_user XSPDEVSI2 . xspv5 AWAITING COMMAND 0 0 04/21
08:58:52 .Net SqlClient Data Provider 71 0
72 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:56:01 Citrix:Monitor 72 0
73 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:30 Citrix:Monitor 73 0
74 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 16 2 04/21
08:53:37 Microsoft SQL Server Management Studio - Query 74 0
75 sleeping rvanveen DCMA8460 . loginaudit AWAITING COMMAND 0 22 04/21
08:50:29 Microsoft SQL Server Management Studio - Query 75 0
76 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:07
76 0
77 sleeping adm_jbossportal ASDEV1 . jbossportal AWAITING
COMMAND 0 0 04/21 08:40:27 jTDS
77 0
78 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 110 542 04/21
08:46:17 Microsoft SQL Server Management Studio - Query 78 0
79 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
79 0
80 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:54 Citrix:MachineCreation 80 0
81 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
08:08:29
81 0
82 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:02:13
82 0
83 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:02:15
83 0
84 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:44 Citrix:Monitor 84 0
85 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:11:05
85 0
86 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:53 Citrix:AdIdentity 86 0
87 sleeping DAIWA_USA\admsql SQLDEV2012 . master AWAITING COMMAND 15 2 04/21
08:56:20 Microsoft SQL Server Management Studio - Query 87 0
88 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:36 Citrix:SiteServices 88 0
89 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:42 Citrix:Host 89 0
90 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:47 Citrix:ConfigurationLogging 90 0
91 RUNNABLE rvanveen DCMA8460 . master SELECT INTO
15 51 04/21 08:58:46 Microsoft SQL Server Management Studio - Query 91 0
92 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 63 30 04/21
08:52:34 Microsoft SQL Server Management Studio - Query 92 0
94 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:53 Citrix:DelegatedAdmin 94 0
95 sleeping DAIWA_USA\admsql SQLDEV2012 . loginaudit AWAITING COMMAND 173 27 04/21
08:56:10 Microsoft SQL Server Management Studio 95 0
96 sleeping xsp_user XSPDEVSI2 . xspv5 AWAITING COMMAND 0 0 04/21
08:58:33 .Net SqlClient Data Provider 96 0
97 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
08:10:07
97 0
98 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 31 38 04/21
08:00:31
98 0
99 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
08:10:12
99 0
100 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 282 04/21
08:10:14
100 0
101 sleeping DAIWA_USA\admsql SQLDEV2012 . master AWAITING COMMAND 0 8 04/21
08:56:50 Microsoft SQL Server Management Studio 101 0
102 sleeping DAIWA_USA\admsql SQLDEV2012 . master AWAITING COMMAND 31 0 04/21
08:54:57 Microsoft SQL Server Management Studio 102 0
103 sleeping read_user SQLDEV2012 . master AWAITING COMMAND 0 8 04/21
08:57:09 Microsoft SQL Server Management Studio 103 0
104 sleeping read_user SQLDEV2012 . dsa AWAITING COMMAND 0 0 04/21
08:57:09 Microsoft SQL Server Management Studio 104 0
105 sleeping rvanveen DCMA8460 . tempdb AWAITING COMMAND 8875 336 04/21
08:58:54 Microsoft SQL Server Management Studio 105 0
106 sleeping read_user SQLDEV2012 . master AWAITING COMMAND 16 0 04/21
08:57:39 Microsoft SQL Server Management Studio 106 0
107 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:47 Citrix:EnvTest 107 0
108 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 2200 8514 04/21
08:00:31
108 0
109 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
109 0
110 sleeping rvanveen DCMA8460 . master AWAITING COMMAND 0 0 04/21
08:58:48 Microsoft SQL Server Management Studio 110 0
113 sleeping Citrix_adm CTXDEVSI1 . XenApp6 AWAITING COMMAND 284 777 04/21
08:51:33 Citrix IMA 113 0
119 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:42 Citrix:ConfigurationLoggingData 119 0
120 sleeping AMERICAS\CTXDEVDCSI1$ CTXDEVDCSI1 . CitrixXDFarm1 AWAITING COMMAND 0 0 04/21
08:58:26 Citrix:Storefront 120 0
125 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/16
13:55:16
125 0
126 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 16 0 04/16
11:25:30
126 0
131 sleeping echouliak DCMA10685 . master AWAITING COMMAND 139 8 04/14
15:26:55 Microsoft SQL Server Management Studio 131 0
135 sleeping echouliak DCMA10685 . dsa AWAITING COMMAND 0 0 04/14
15:24:52 Microsoft SQL Server Management Studio - Query 135 0
136 sleeping echouliak DCMA10685 . dsa AWAITING COMMAND 0 0 04/14
15:00:17 Microsoft SQL Server Management Studio - Query 136 0
140 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
140 0
145 sleeping edit_user INFADEVFS2 . dsa AWAITING COMMAND 0 0 04/21
07:05:56
145 0 -
ORA-00164: autonomous transaction disallowed within distributed transaction
I have been trying to solve this problem for weeks now, I have posted this question everywhere I can think of, but I havent really received and answer that has helped, so now I am going to post it here hoping for an answer.
We are running 9iAS on Solaris and when the following stuff is run we are getting ORA-00164 errors. If you refresh the page a bunch of time the problem goes away. But it comes back the next time you try to execute the procedure again. Here are the cases when the problem shows up.
Editing the style:
PROCEDURE : PORTAL30.wwpob_app_style.edit_style
Saving changes to the banner for a page
PROCEDURE : PORTAL30.wwptl_banner.savecustom
Logging out
PROCEDURE : PORTAL30.wwsec_app_priv.logout
After setting the default user group and applying the changes:
PROCEDURE : PORTAL30.wwsec_app_user_mgr.edit_user
Creating a new group:
PROCEDURE : PORTAL30.wwsec_app_group_mgr.create_group
Opening the add portlet screen:
PROCEDURE : PORTAL30.wwv_main.main
There are a few other places but I don't have them documented. In ALL cases the problem goes away once we start and stop the Apache using the following comands:
/app/oracle/n_portal/Apache/Apache/bin/apachectl stop
ps -ef | grep httpd | grep n_portal
/app/oracle/n_portal/Apache/Apache/bin/apachectl start
After starting and stopping Apache the problem is gone for a little while (20-30 mins) then it starts coming back slowly (sometimes the problem is there then it is not). Once the problem is back if you continually press refresh on the browser (5-10 times) the page might appear, if the page does not appear you will see the
ORA-00164: autonomous transaction disallowed within distributed transaction
The following error appears in apache log (50% of the time) when Autonomous Transaction error shows up on the screen:-
DSHttpSessionBindingListenerImpl.valueUnbound : closing DS session : DSSession id = 5225534324468880950975536484
215 PortalSession id = 521335001720MERAJ
DSHttpSessionBindingListenerImpl.valueUnbound : closing DS session : DSSession id = -638034231325135430097553725
8001 PortalSession id = 992335001711JDALGLIESH
These errors might be related to dynamic services but we were had the problem long before Dynamic services was installed.
We want to start pre-production user testing as we have just had 11 developers building portlets for the company, but we cant do much with this error popping up every time a user wants to test it. We have one of the Oracle consultants here and he has asked the oracle developer group what the problem could be, and they seem to think it might be related to our use of DB links however, we never get the problem when we try to run a portlet that uses a database link.
Please help.
Jeff Dalgliesh
nullJay,
My name is Craig McCauley. I'm an Oracle Technical Manager working onsite at Unocal Indonesia. I'm with the Portal group in ATS.
When I got here the first thing we did was bump up init.ora parameters and apache confif parameters as suggested by the iPlatform group. We have thes sessions parameter (in init.ora) bumped up from 100 to 700. I'm watching v$session and the get these AT messages with as few as 70 total db sessions. Any help your group can give will be greatly appreciated.
Unocal is planning on implementing Oracle Portal globally - as a common interface. They have similar installs in Thailand and Houston and thus far have not seen the AT messages (although there has not been much development going on at those sites).
Thanks,
Craig -
User's changing their own password
Is it possible to allow user to change their own password when logged onto a portal applicastion I have written ?
Presumably, the application you say you have written, is a Login Server partner application. So changing the user's password means changing it on the login server.
The URL that you need to go to, to do this, is something like: http://server.domain.com/pls/portal30_sso/portal30_sso.wwsso_app_user_mgr.change_password?p_done_url=xxxxx
Where xxxxx is the URL where you want control to go after the user submits their new password.
null -
Hi,
I am trying to trigger apex_util.edit_user procedure.
But first I need set security group id. I queried SELECT provisioning_company_id FROM APEX_040000.wwv_flow_companies where short_name='MIS' and tried apex_util.set_security_group_id (3587726189450463).
But error is occued:
Error report:
ORA-20001: Security Group ID (your workspace identity) is invalid.
ORA-06512: at "APEX_040000.HTMLDB_UTIL", line 3175
ORA-06512: at line 2
And also select * from apex_workspaces returned empty list... apex_util.find_security_group_id (p_workspace => 'MIS') return 0user13830503 wrote:
Hi,
I am trying to trigger apex_util.edit_user procedure.
But first I need set security group id. I queried SELECT provisioning_company_id FROM APEX_040000.wwv_flow_companies where short_name='MIS' and tried apex_util.set_security_group_id (3587726189450463).
But error is occued:You should use:
l_workspace_id := apex_util.find_security_group_id (p_workspace => 'MIS');
apex_util.set_security_group_id (p_security_group_id => l_workspace_id);See http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#AEAPI512
Error report:
ORA-20001: Security Group ID (your workspace identity) is invalid.
ORA-06512: at "APEX_040000.HTMLDB_UTIL", line 3175
ORA-06512: at line 2
And also select * from apex_workspaces returned empty list... apex_util.find_security_group_id (p_workspace => 'MIS') return 0Debug the apex_workspaces view to find out why its not showing up your workspace
I guess it will be something to do with the schema you are trying to access from! -
Hi All,
we created Users and Accounts using RIDC.
Now need to map user Account mapping programmatically.
Let me know any suggestion.
Thanks to all.Hi ,
Infact while creating the user itself this could have been done using the following :
ADD_USER with the following parameters :
HDA format with optional parameters:
@Properties LocalData
IdcService=ADD_USER
dName=jsmith
dUserAuthType=LOCAL
dFullName=Jennifer Smith
dPassword=password
dEmail=[email protected]
@end
@ResultSet UserAttribInfo
2
dUserName
AttributeInfo
jsmith
role,admin,15,role,contributor,15
@end
Now that the users are all created you will need to use the EDIT_USER service call to add accounts to the users :
The format for doing this is described with the mandatory and optional parameters : http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/c04_core.htm#CSSRG2678
Hope this helps .
Thanks
Srinath -
Mapviewer admin change password
i want o know how can o exactly be able to execute this :
You can change the passwd by typing the following from the
oc4j/j2ee/home directory:
java -jar oc4j.jar -install
i run it in a command line inside the correct path but it turned out error, pls help me do this...
thank you.You should use mgr not admin:
portal30_sso.wwsso_app_user_mgr.change_password
John -
Hi,
I have create an aplication, when someone whant´s to access a restrict area must make a register and then make the login. The data of the register is in the table users that i have create, so all the users can only see the webpage.
Is it possible to give to some users administrator previleges, so they can acess to the application builder and access to all information ao the application , like tables etc.
Thank´sHi Lionel,
I have a few questions for you:
Do you actually want these users to be developers / administrators in your application? You may want to carefully consider this. If they truly are capable of developing and administering your application then okay... If not then letting end users loose in the back end of APEX is only going to end in tears...
What do you need them to actually see - is it the table data? You could make a few application reports on those tables if needed and set some conditional displays for certain user groups and of course allow editing of the data if required.
What other application information would you want your users to have access to?
Is the register used to audit certain page visits (or something like that)?
Are you using the 10g XE database with original APEX version (2.1.0.00.39)? If so then I think each workspace has its own schema and the owner (schema) is the workspace administrator. I think there is a way to set users as developers in this version of APEX however I am not sure how to do it in the GUI. Take a look at the EDIT_USER procedure -maybe that can help. If you are on APEX 3.0.1 then you can manage users and flag them as developers (or administrators) of the workspace by going to the Home>Administration>Manage Application Express Users page and editing the user you want to.
Cheers,
Mike -
How to Use API to create Page/Book and etc. rather than using Workshop
Hi Anyone,
Can anyone suggest me where I can get sample using Bea API to create such as Book/Page and etc..
I can not find from eDoc that bea provide.
Thanks
MarkLooks like your fetch_user into l_developer_role overwrites its default value and then your use of lv_developer_role in edit_user passes in null.
Scott -
Hi all,
I try to manage Users and -groups not with workspace administration but by HTML_UTIL. So I need to display all of the Usergroups and select mor than one group for a user and insert/edit this groups for the user.
How can I select mor than 1 item from a LOV? and use it with HTML_UTIL.CREATE_USER and HTML_UTIL.EDIT_USER
Thanks for yout help
SiegwinNot sure if this is what you're asking, but certainly, one of the things you'd need to do is write your own PL/SQL procedure that loops through the selected rows of your UI element (whether it be a multi-select list, checkboxes or whatever) and perform the actions that you require.
Have you attempted anything yet? What parts of this do you need help with?
Earl -
Programmatically Delete Portal user Cache
Hi! I have a problem re-using the "Portal User Profile" portlet to put on my own portal page. It is not able to execute unless i am Portal Administrator (PORTAL). The requirement is that I need to clear the cache for a Particular User.
<br><br>
I tweaked the Portal User Profile Portlet and from the "View Source", was able to construct the following HTML and place it in an "HTML Portlet". But when I submit, it doesn't work. Am I missing something...? Any Help is greatly appreciated.
<br><br>
Thanks
Ram
<br>
HTML Code
<head><br>
<script type="text/javascript">
function buttonClearCacheSubmit(){
document.UserProfile.p_username.value=document.UserProfile.username.value;
document.UserProfile.username.value="";
document.UserProfile.submit();
</script>
</head><br>
<font style="portlettext1">Clear the cache in Web Cache for User</font><br>
<form name="UserProfile" method="POST" action="/pls/portal30/portal30.wwsec_app_user_mgr.edit_user" enctype="multipart/form-data"><br>
<input name="username" type="text" size="30" maxlength="30"><br>
<input type="button" name="p_request" value="OK" onClick="javascript:buttonClearCacheSubmit()"><br>
<input type="hidden" name="p_username" value=""><br>
<input type="hidden" name="p_clearcache value="Y"><br>
<input type="hidden" name="p_action" value="TAB1"><br>
<input type="hidden" name="p_back" value="http%3A%2F%2Fhostname.domain%3A7778%2Fportal%2Fpage%3F_pageid%3D428%2C61204%26_dad%3Dportal30%26_schema%3DPORTAL30"><br>
</form><br>I'm glad with this (default) behaviour, although I would have no problems with a cascaded delete as an option.
We use portal for our intranet site, and a default cascaded delete, would mean that if a worker leaves our company, and therefore his account would be deleted, all his contributions to the intranet would be deleted too.
Ton -
User index not working as expected..
Hi all,
we have a ldap to which two instances running on two diff boxes are connected, there are approx 4000 users and all these users show up in instance one but for some strange reasons only 1000 odd users show up in instance two, ldap has been configured accordingly for maxhits....the ume index on the instance two was deleted and recreated but has not solved the prob...instance one is ep6 and instance two is ep7.0 ? can anyone who knows what might have gone wrong throw some light on this please ?
thanks in advance,
Anupama.Thanks for the reply Scott, I have just had one of those Homer Simpson Doh! moments. I was copying the code into this post and then realised that I was actually using the value of the username item that has changed in the first parameter which attempts to get the userid:
htmldb_util.edit_user(
p_user_id => htmldb_util.get_user_id(UPPER(:P18_USER_NAME))
,p_user_name => UPPER(:P18_USER_NAME)
,p_web_password => x_default_pw
,p_new_password => x_default_pw
,p_developer_roles => x_developer_privs
,p_group_ids => x_group_ids);
and quickly realised that this would not work as it was a value that could have been modified. so I created a new hidden item to store the original and modified the call to:
htmldb_util.edit_user(
p_user_id => htmldb_util.get_user_id(UPPER(:P18_ORIG_USER_NAME))
,p_user_name => UPPER(:P18_USER_NAME)
,p_web_password => x_default_pw
,p_new_password => x_default_pw
,p_developer_roles => x_developer_privs
,p_group_ids => x_group_ids);
and it works as expected.
Thanks for your help.
Stuart -
Unable to edit user information from User Admin applet
Hi
I'm unable to update user information from user admin applet. After selecting a particular user, i'm updating his full name and trying to save the details. When i click on save i'm getting below error
"Unable to execute service EDIT_USER and function addUserAttributes",(System Error: Unable to execute query 'uUsersClassifiedMarkings(UPDATE Users SET uClassifiedMarkings='No Markings'WHERE(uClassifiedMarkings is null OR uClassifiedMarkings="))'.ORA-00904:"UCLASSIFIEDMARKINGS":invalid Identifier java.sql.SQLSyntaxException: ORA-00904:"UCLASSIFIEDMARKINGS": invalid identifier)
Kindly let know what is issue or how to resolve this errorOk,lets give it a shot. Can you please check if you have any Security Classifications added by navigating to Records->Configure->Security->Security Classification
If you do not see any entries here, then use the Add button to add the following
- No Markings
- Secret
- Top Secret
- Confidential
Now try to update the user info using the admin applet. In the edit window assign Security Classification to "No Markings" and try submitting the update. Let us know what is the outcome.
I completely agree with William on his analysis. Please try these steps if you are working on a Dev/POC instance.
Regards,
- Anand
Maybe you are looking for
-
Started browser as usual. Browser informed me that the 3.16.7 version was not secure; I should upgrade to 4.0 First problem was the kaspersky was not compatible. Second problem was hp photo not compatible. Third is the browser user interface is too d
-
What are the uses of declaring a class "final"?
Can any one please tell me the uses of declaring a class "final"? I know that final classes cannot be extended. Other than this, Is there any thing that will improve the compiler time for the final classes?
-
Problem mit Adobe Acrobat 9.3.2 Pro Extended und Microsoft Office 2010
Hallo zusammen, es ist zum verzweifeln. Geht das nicht oder bin ich zu dämlich? in Office 2007 lauft AA wunderbar, nur in der 2010er taucht kein Menüpunkt auf. Was mache ich falsch. Herzlichen Dank für Eure Hilfe. Mankeimeister
-
Hello All, We are currently implementing R12 (Sourcing, Purchasing etc) for one of the customer in APAC region, and we have to modify standard RFQ and PO XSL-FO reports. We are able to modify XSL files. But if we have to add new fields, we need to mo
-
Help need div to expand to height of browser
Hi is it possible with CSS to get a div to expand to the height of the browser (IE6, IE7 FF etc.). On this design I need to have the 'Nav column' and 'main content area' to end at the bottom of the browser. It works OK when the content in the 'main c