Recently i encountered one issue to configure Oracle Forms and Reports Standalone to point to custom directory.
Below is the solution for that
Got to httpd.conf file which is located in ORACLE_HOME/Apache/Apache/conf directory.
Before changing anything in httpd.conf, take backup of httpd.conf.
Change DocumentRoot value to your directory as shown below
DocumentRoot "your custom directory"
Hope this helps!!!
Saturday, July 24, 2010
How to change Oracle forms and reports standalone configuration for custom directory???
How to change the logo on the connection page of discoverer portal
Below is a way change the logo on the connection page of discoverer portal
Go to
E:\Oracle\10gAS_BI\j2ee\OC4J_BI_Forms\applications\discoverer\discoverer\images
change logo_plus.gif to logo_plus_bak.gif and place your logo there and rename it to logo_plus.gif.
Now relogin to the Discoverer portal you will see your logo there.
Enjoy!!!
How to extract the DB Links DDL with the encripted password???
SET LONG 9000 — to print the complete string
SELECT DBMS_METADATA.GET_DDL (‘DB_LINK’,a.db_link,a.owner) FROM dba_db_links a;
Hope this helps as it has helped in alot of times.
Monday, June 7, 2010
How to change OAS port to 80???
If you are on a UNIX system and you are changing the Listen port to a number less than 1024, perform these steps before you change the Oracle HTTP Server Listen port.
By default, Oracle HTTP Server runs as a non-root user (the user that installed Oracle Application Server). On UNIX systems, if you change the Oracle HTTP Server Listen port number to a value less than 1024, you must enable Oracle HTTP Server to run as root, as follows:
execute the below command as root
cd ORACLE_HOME/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl
change the value of port and Listen in httpd.conf to 80 and restart the OAS as Oracle user.
For more information refer to the below link.http://download.oracle.com/docs/cd/B32110_01/core.1013/b32196/ports.htm#CIHJEEJH
How to assign 2 ports to the same website on the same server (OAS)
I recently have to assign 2 ports to same portal on the same OAS server.
Below is the example to do the same.
add the below entries according to ur requirement in httpd.conf
Listen 80
Listen 8080
NameVirtualHost 172.20.30.40:80
NameVirtualHost 172.20.30.40:8080
<VirtualHost 172.20.30.40:80>
ServerName www.example1.com
DocumentRoot /www/domain-80
</VirtualHost>
<VirtualHost 172.20.30.40:8080>
ServerName www.example1.com
DocumentRoot /www/domain-8080
</VirtualHost>
<VirtualHost 172.20.30.40:80>
ServerName www.example2.org
DocumentRoot /www/otherdomain-80
</VirtualHost>
<VirtualHost 172.20.30.40:8080>
ServerName www.example2.org
DocumentRoot /www/otherdomain-8080
</VirtualHost>
The above information have been collected from the below link
http://httpd.apache.org/docs/2.0/vhosts/examples.html
Thursday, June 3, 2010
orcladmin password expired???
Beginning with OID version 9.0.4, the default value for Password Expiry Time is set to 5184000 (60 days). Unless you have changed the default password policies from the installation defaults, exactly 60 days from the date of installation all passwords will automatically expire. Furthermore, if you keep trying to login using the old password, there exists the possibility that you will exceed the max grace logins exceeded, and consequently the account becomes locked.
To clarify the fact that the superuser, cn=orcladmin ldapbind succeeds you need to understand the following:
1. There are 2 orcladmin accounts, the superuser account, cn=orcladmin and the REALM administrator cn=orcladmin. For example cn=orcladmin,cn=users,dc=oracle,dc-com.
2. The superuser account is hard coded and you cannot see it in the Oracle Directory Manager nor the Oracle Directory Services Manager in 11g.
3. When you login to OIDDAS the REALM administrator account is the one that is being used. Since this user account exists within the REALM it is also under control of the default password policies.
Solution:
Step 1. If the superuser, cn=orcladmin account is locked, use the oidpasswd utility to unlock the super user orcladmin account, for example:
$ oidpasswd connect=asdb unlock_su_acct=true
This unlocks the OID Super User account, cn=orcladmin ONLY. Do not confuse this account with the default realm cn=orcladmin,cn=users,dc=xxxxx,dc=yyyyy. Again, they are two separate accounts. After resetting the orcladmin super user account, you will still not be able to login to SSO using the orcladmin account until you complete all steps in this document. Do not reset any other account passwords at this time (on this step).
Step 2. Launch the Oracle Directory Manager Console (or the ODSM for 11g).
Pre-11g:
on Unix, type oidadmin at the unix prompt
on Windows, Start->Programs->Oracle - SID->Integrated Management Tools/Oracle Internet Directory
11g:
Open a browser to the Oracle Fusion Middleware Enterprise Manager.
Select the OID instance
Click the OID dropdown list in the right frame
Select Oracle Directory Services Manager
Step 3. Login as "cn=orcladmin" and navigate to Password Policy Management area.
Edit each of these and change the pwdmaxage to an appropriate value:
5184000 = 60 days (default)
7776000 = 90 days
10368000 = 120 days
15552000 = 180 days
31536000 = 1 year
999999999 = never expire
Note: Realm policies can be different than the root policy, so if in doubt change both policies the first time, then change the realm policy one to different values as desired.
Step 4. Launch Oracle Directory Manager (or ODSM if 11g as previously described) and navigate to Entry Management and the Users container under your default realm (for example:
cn=orcladmin,cn=users,dc=oracle,dc=com)
Reset the UserPassword field by entering a new value.
After you have changed the cn=orcladmin for the REALM, you should be able to login to SSO/OIDDAS and reset/change any user passwords that have expired or are locked.
Note: at 11g there is not SSO nor OIDDAS, but you can still use the ODSM to reset user passwords.
Pre-11g Only
Rerun the odisrvreg utility to reset the DIP randomly generated password, for example:
odisrvreg -D cn=orcladmin -w -p 3060
Already Registered...Updating DIS password...
DIS registration successful
If you are unsure of your OID Port, check $ORACLE_HOME/install/portlist.ini file, which shows the ports at install time.
The above information have been collected from metalink.oracle.com
Wednesday, April 21, 2010
How to unzip cpio files on IBM AIX???
I faced a lot of problems to unzip .cpio files on IBM AIX. The errors which i used to get was out of phase, the file is not proper. After doing some R&D i found that to unzip on IBM AIX used the below command.
cpio -idcmv [cpio_filename]
It has worked for me. Hope this helps to you also......