Usefull sql scripts

1. Number of Responsibilities assigned to users. Order by count desc.
============================================
select b.user_name,count(a.responsibility_id)
from fnd_user_resp_groups_direct a,
    fnd_user b
    where a.end_date is null and
    a.user_id=b.user_id and
    b.end_date is null
    group by b.USER_name
    order by 2 desc    ;
============================================

2. Profile options changed in the last 3 days with user name, who changed that.

select
a.profile_option_id "ID",
a.profile_option_name "short_name",
c.user_profile_option_name "Full Name",
b.last_update_date "updated on",
b.last_updated_by "updated_by_ID",
d.user_name "Login_name"
from
fnd_profile_options a,
fnd_profile_option_values b,
fnd_profile_options_tl c,
fnd_user d
where
a.profile_option_id=b.profile_option_id
and
a.profile_option_name=c.profile_option_name
and
b.last_updated_by=d.user_id
and
b.last_update_date > (sysdate -3 )
order by 4 desc;
Connecting to an Oracle DB using JDBC URL


There is a connection option, called JDBC_URL, available on widely used DB Management tools like TOAD, sqldeveloper, etc.

Most of the dbas prefer tns connections and they have less preference to connections using jdbc url.

Here, I will explain you, how to make a jdbc connection to oracle db using sqldeveloper.

Step 1: Click on the new connection.
Step 2: provide Connection name, username, password details.
Step 3: Select "advanced" on connection type.
Step 4: Copy the tns connection details from tnsnames.ora file (without connection name) and prepend "jdbc:oracle:thin:@" with the tns connection details.
Example:
jdbc:oracle:thin:@DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=host-name)(PORT=1521))
(CONNECT_DATA=
(SID=DEV)
)
)


Step 5: Paste this block on the space provided for "Custome JDBC URL".

Test the connection and voila !!!

Oracle Backup and Recovery scenarios

Guys,

The following link contains "Oracle Disaster scenarios with possible options for db recovery".

Oracle Database Disaster and Recovery Scenarios

This purely based on my view and experience.

I kindly requests those, who has different views and options, can put their comments below.

Dear Friends,
 
On this new year with new dreams, new hopes, new aspirations and a desire to achieve new horizons I am stepping into a new beginning, yes its my marriage ceremony!!! With joyful heart I genially invite you and your family to grace this occasion and shower your love and blessings.
 
Kindly make the occasion more memorable and cheerful.
Find enclosed invitation for more details. (Treat as hard copy please).
Those who couldn't read Tamil, please click on the following link for an e-invitation.
My E-Invitation
Also in here
 

Regards
 
Sundar K

How to Configure WebUtil on 10gAS

See link

http://baigsorcl.blogspot.com/2010/01/open-file-dailog-box-example-using.html

TNS-12555 while installing Apps using rapidwiz

Error Msg:
LSNRCTL for Linux: Version 9.2.0.6.0 - Production on 06-OCT-2008 13:10:08

Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.

Starting /d01/oracle/proddb/9.2.0/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 9.2.0.6.0 - Production
System parameter file is /d01/oracle/proddb/9.2.0/network/admin/PROD_linuxerp/listener.ora
Log messages written to /d01/oracle/proddb/9.2.0/network/admin/prod.log
Error listening on: (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROCPROD))
TNS-12555: TNS:permission denied
 TNS-12560: TNS:protocol adapter error
  TNS-00525: Insufficient privilege for operation
   Linux Error: 1: Operation not permitted

Symptom:
  While installing EBS using rapidwiz ora-12555 popped up at the end of 20% saying "failed to run external process".

Cause:
   file permission under "/var/tmp/.oracle" is not proper.

Solution:
  Metalink Note: 472386.1

  Change file permission to oracle.dba under /var/tmp/.oracle and retry.

how to create OID user?

how to create oid user?

goto http://:/oiddas  (usually the port will be 7777)

login as orcladmin

goto Directory

Click on create

create the user and save.

Finally test it with sso.

 SPACE MANAGEMENT :: 1. Table space usuage: ============== SELECT tablespaces.tablespace_name,          allocated.total_alloc allocated_mb, ...