rasti.hil@hilandco.com +41 79 367-9677

reset weblogic password

Backup the WLS Domain
cd $DOMAIN_HOME/..
tar –cvf $DOMAIN_HOME`date +%y%m%d`.tar $DOMAIN_HOME

mv $DOMAIN_HOME/security/DefaultAuthenticatorInit.ldift /tmp/

source /oracle/product/FM/user_projects/domains/PFRDDomain/bin/setDomainEnv.sh


Run the Java command:
java weblogic.security.utils.AdminAccount weblogic pwd $DOMAIN_HOME/security

ls –l $DOMAIN_HOME/security


Delete the contents inside the file [boot.properties] under
ls -l $DOMAIN_HOME/servers/AdminServer/security

Rename/delete the folder:
ls -l $DOMAIN_HOME/servers/AdminServer/data/ldap
rm $DOMAIN_HOME/servers/AdminServer/data/ldap
ls -l $DOMAIN_HOME/servers/AdminServer/data/ldap

DB Deregistration Operation

sqlplus "sys/password as sysdba"
execute dbms_ias_version.set_component_loading (
component_id=>'MRC',
component_name=>'Oracle Application Server Metadata Repository Version',
schema_name=>'SYS' );
execute dbms_ias_version.set_component_valid( component_id=>'MRC' );

Apache Redirect BaseUrl


RewriteEngine On
RweriteRule ^/$ /apex/f?p=1

Portal Konfiguration

cd %DOMAIN_HOME%\bin
notepad setDomainEnv.cmd
set EXT_PRE_CLASSPATH=%ORACLE_HOME%\jdbc\lib\ojdbc6.jar

cd $DOMAIN_HOME/bin
vi setDomainEnv.sh
EXT_PRE_CLASSPATH=$ORACLE_HOME/jdbc/lib/ojdbc6.jar


$ORACLE_HOME/common/bin/wlst.sh
connect('weblogic', 'pwd', 'localhost:7002')

listCred(map="oracle.portal.dads", key="/pls/portal")
listCred("WEBCACHE","/pfrd_inst/webcache1/INVALIDATION")


setPortalWebcacheConfig(dad_name='portal',host='oastest.net',inv_port='8093',inv_user='invalidator',inv_passwd='pwd')

setPortalOIDConfig(dad_name='portal',host='oastest.net',port='3060',protocol=false,admin_user='cn=orcladmin',admin_passwd='pwd')

BEGIN
DBMS_NETWORK_ACL_ADMIN.drop_ACL (
acl => 'portal-permissions.xml');
END;
/

BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
acl => 'portal-permissions.xml',
description => 'Network connection permission for dev11_portal',
principal => 'PORTAL',
is_grant => TRUE,
privilege => 'connect');
END;
/

BEGIN
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (
acl => 'portal-permissions.xml',
host => '*',
lower_port => null,
upper_port => null);
END;
/
commit;
/

SELECT * FROM dba_network_acls


Listen 8110
NameVirtualHost *:8110


DocumentRoot F:\oracle\product\fm\pfrd\pfrd_inst\config\OHS\ohs1\htdocs
ServerName intranet
OssoConfigFile F:\oracle\product\fm\pfrd\pfrd_inst\config\OHS\ohs1\httpintranet.conf
OssoSecureCookies off

Flashback package body

declare 
vclob clob;
begin
for c1 in (select text
            from all_source as of timestamp
             to_timestamp('02-05-2011 12:51:00', 'DD-MM-YYYY HH24:MI:SS')
                 where name = 'PACKAGE NAME'
                   and type = 'PACKAGE BODY'
                   and owner = 'SCHEMA NAME')
    
    loop
     vclob :=vclob||c1.text;
    end loop;
    insert into tempTable (v_clob) values (vclob);
end ;