Monday, January 07, 2013

OID 11G 11.1.1.6.0 fails to start (privileged ports)

After failing to install OID with privileged ports (389/636), you may end up with
[2013-01-07T14:59:45+01:00] [OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: idm02.home.local] [pid: 6800] [tid: 0] Main:: sgslunlListen: IPV4 Bind failed (port=389), OS error=(13) [2013-01-07T14:59:45+01:00] [OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: idm02.home.local.nl] [pid: 6800] [tid: 0] Main:: sgslunlListen: IPV4 Bind failed (port=636), OS error=(13)
If not even MOS Document 1304644.1 can help (i.e. you have enabled IPV6, and you did the IP Address trick in opmn.xml), this might:
login your configuration database (the one you ran the rcu on), connect as user ODS, and manually update:
First, find the ID of the config:
select entryid from ct_dn where rdn = 'cn=oid1';
This results in 3000 for me. Now for the actual update:
update ds_attrstore set attrval=3060 where entryid=3000 and ottrname='orclnonsslport'; update ds_attrstore set attrval=3131 where entryid=3000 and ottrname='orclsslport'; commit;
Assuming you have all othe configurations reset to ports 3060 and 3131, you should now be able to startup oid.
This is, of course, a serious kludge which will probably render your installation supportless, so all usual disclaimers, precautions and warnings apply.

Tuesday, August 14, 2012

APEX and ACL trouble (ORA-31204)

Today, I had to resolve an issue with an APEX LDAP call, that succeeded in the developer database, but failed in test with an ORA-31204: DBMS_LDAP: PL/SQL - Invalid LDAP Session.
As this concerned 11G databases, my initial thought was: "Is an ACL defined?" On the other hand, I would have expected an error like "Access denied by ACL".
Anyway, check acl's:

column host format a30
column acl format a40
set pages 66 lines 132
select host, lower_port, upper_port, acl from dba_network_acls;

This resulted in to different lists; development had to more entries than test, and yes, test lacked an ACL where the LDAP server was mentioned. Checking the principals:

col principal for a30
select acl, principal from dba_network_acl_privileges;

This revealed APEX040100 was not in the list. The following code creates an ACL, adds the resolve privilege, and adds the LDAP server to this ACL:

begin
dbms_network_acl_admin.create_acl (
acl => 'ldap.xml',
description => 'Allow ldap queries',
principal => 'APEX_040100',
is_grant => TRUE,
privilege => 'connect'
);
end;
/


begin
dbms_network_acl_admin.add_privilege (
acl => 'ldap.xml',
principal => 'APEX_040100',
is_grant => TRUE,
privilege => 'resolve'
);
end;
/

begin
dbms_network_acl_admin.assign_acl(
acl => 'ldap.xml',
host => 'ldap.home.local'
);
end;
/

commit;

After that, not only the APEX user APEX_040100 is listed as principal for the newly created ACL, also the LDAP query now succeeds.

Tuesday, July 03, 2012

Apex 4.2 just over the hill (Early Adopter)

Just missed Joels entry, but APEX 4.2 Early Adopter is available. See his post here.

Tuesday, June 19, 2012

[OSSO] W14: mod_osso is loaded logfile flooding

If your application server logging is flooded with errors as below, make sure you have any mod_osso config file defined. it does not matter if it is correct, or not used.

[Thu May 24 15:55:42 2012] [warn] [client 127.0.0.1] [ecid: 10.xxx.yyy.zzz:12492:1337867740001,2] \n
[OSSO] W14: mod_osso is loaded but OssoConfigFile does not appear to be set.\n

http-500: oracle.ias.repository.schema.SchemaException

If a Single Sign On enabled Forms server fails to perform SSO, and the client gets a http-500 error, with the stack trace below, then check your variables "oid_formsid" and "formsid_group_dn" in formsweb.cfg ($ORACLE_HOME/forms/server/formsweb.cfg)

oracle.forms.net.ConnectionException: oracle.ias.repository.schema.SchemaException:
Unable to connect to Oracle Internet Directory Server.
Please verify that the correct Oracle Internet Directory Server parameters are specified in [Oracle Home of your server]/config/ias.properties.
Make sure that the Oracle Internet Directory Server specified in OIDhost, OIDport is up and running.
Base Exception : javax.naming.NamingException: [LDAP: error code 1 - User does not exist in directory for Proxy Switch]
at oracle.forms.servlet.FormsOIDContext.getOIDContext(Unknown Source)
at oracle.forms.servlet.FormsServlet.doRequest(Unknown Source)
at oracle.forms.servlet.FormsServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

CheckRepositoryPermission connectAs

When a Single Sign On Forms environment fails to login, and the client shows the following stack, check if the forms container is correctly referenced in $ORACLE_HOME/config/jazn-data.xml.

java.lang.SecurityException: access denied (oracle.ias.repository.schemaimpl.CheckRepositoryPermission connectAs)
at oracle.security.jazn.util.JAZNSecurityManager.verifyPermission(Unknown Source)
at oracle.ias.repository.SchemaManager.connectAs(SchemaManager.java:1280)
at oracle.forms.servlet.FormsOIDContext.getOIDContext(Unknown Source)
at oracle.forms.servlet.FormsServlet.doRequest(Unknown Source)
at oracle.forms.servlet.FormsServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Sunday, June 17, 2012

Resetting MS Windows Admin password

Of course, after all this time, I forgot the master password on the Windows Server image. Luckily, I have this bootable CDRom with password reset software. But this VMWare boots so damn quick, I can never complete the sequence Point Click to boot, CTRL-G, F2 fast enough to get into the BIOS and change the default boot options.

Luckily, you can edit the configuration file, the .vmx file. Open it, and add the following line:

bios.forceSetupOnce = "TRUE"


Now, I end up in the BIOS and can change the default boot sequence in order attempt to boot from CD first. And it works like a charm:


Resetting to an empty password works (did this once before), so I'll go for that:


And sure enough: after rebooting into the server, Administrator no longer has a password, and I'm in!


Ready to do some SSO/WNA exercises...