Friday, February 6, 2015

Debugging requires the DEBUG CONNECT SESSION system privilege


Error : Issue with Debugging using PL/SQL Developer


ORA - 0131: Insufficient privilegesNote: Debugging requires the DEBUG CONNECT SESSION system privilege


Solution : 

grant DEBUG CONNECT SESSION to  <user_name> ;
grant DEBUG ANY PROCEDURE to <user_name>  ;

Ex User is apps :

SQL> grant DEBUG CONNECT SESSION to apps;

Grant succeeded.

SQL> grant DEBUG ANY PROCEDURE to apps;

Grant succeeded.

SQL> exit:

Wednesday, February 4, 2015

RC-50004: Fatal: Error occurred in ApplyDatabase: Control file creation failed / RC-00118 'Error occurred during creation of database

Error : in ApplyDBTier_01291502.log file

Exception occurred: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sudb2.corp.singiri.com)(PORT=1525))(CONNECT_DATA=(SERVICE_NAME=SUP1.corp.singiri.com)))
    Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

    Connection could not be obtained; returning null

-------------------ADX Database Utility Finished---------------

RC-00118: Error occurred during creation of database

Raised by oracle.apps.ad.clone.ApplyDatabase
StackTrace:
java.lang.Exception: Control file creation failed
     at oracle.apps.ad.clone.ApplyDatabase.doConf(ApplyDatabase.java:635)
     at oracle.apps.ad.clone.ApplyDatabase.doApply(ApplyDatabase.java:473)
     at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:366)
     at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:110)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
     at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
     at java.lang.Thread.run(Thread.java:637)


Solution A:

Step 1: To verify the apps password is valid ,which you provided by Target server while running adcfgclone.pl on dbTier

(Or)

Workaround:

1. Modify the Contextfile 'CTXORIG.xml', whcih is created by the pre-cloning script, which is found under the Database $ORACLE_HOME/appsutil/clone/context/db directory :

ORIGINAL :
<DB_LISTENER oa_var="s_db_listener" default=""><Name of the SOURCE DB listener></DB_LISTENER>

ACTION :

UPDATE the file with the SID name of the TARGET Instance, e.g. TEST :
<DB_LISTENER oa_var="s_db_listener" default=""><Name of the TARGET DB listener></DB_LISTENER>

Please Note :
The modification can be implemented after the pre-cloning STEPS - before STARTING the 'adcfgclone dbTier' . This works best when done on the target system, after you have copied the files from source.

If the Clone has already failed, the workaround/solution would be :

1. correct the s_db_listener value in the Target context file named '<SID>_<Hostname>.xml' located under the DB $ORACLE_HOME/appsutil
2. shutdown the target Database
3. execute 'perl adcfgclone.pl dbTier <physical Path to the DB Tier Contextfile>

 Error B:

System parameter file is $RDBMS_ORACLE_HOME/network/admin/clone_dbclone/listener.ora
Log messages written to $RDBMS_ORACLE_HOME/network/admin/clone.log
Error listening on: (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROCclone))
TNS-12555: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00525: Insufficient privilege for operation
Linux IA64 Error: 1: Operation not permitted
  
Solution B :


Please Apply the following solution:

1- change permission /var/tmp/ . oracle

[root@dbclone tmp]# chmod -R 777 .oracle/

++++++1153204.1,1329400.1,1350709.1 & 603104.1 ++++++

Forms Process (FRMWEB) Consumes 100% of CPU in Oracle Applications R12

SYMPTOMS
On Oracle Applications R12 when checking the top processes on the OS level for the middle tier, you find that forms process (frmweb)
almost consumes 100% of the CPU.
CAUSE

The root cause of the issue is that returning rows from LOVs in core forms causes the forms process to grow up into memory depending
on the number of rows returned.
When an end user login to forms and start working with LOV within core forms sometimes and according to the search criteria that the
user will provide to filter the results in LOV, it may fetch huge numbers of records in which causes the frmweb process to grow very
large, and in extreme cases this can even lock up the current process or even the whole machine.
So when executing a LOV query, every row is fetched into memory on the middle tier, the frmweb process can get extremely large, and
the larger it gets the more likely it is to start paging.
Eventually it starts consuming excessive CPU just paging the process in and out of memory, which is probably what you can see here in
this case as the amount of memory consumed when the LOV records are fetched into memory obviously depends on the amount of data
in each record.
This has been mentioned in the following bug:
Bug 6519700 - ESC: CSE: R12SIP: 6513826 FRMWEB RUNAWAY PROCESS CONSUMING 100% CPU-MIDDLE TIER

Solution :

To implement the solution, please execute the following steps:

Please be aware :

This solution has been identifed for a Forms Configuration using the SOCKET mode, whic is not the default mode in EBS R12.
You can use the solution also for the SERVLET mode - in this case you have to add the FORMS_RECORD_GROUP_MAX to the
default.env file.

Step 1.  Stop all services on the middle tier.

Step 2.  Set following forms environment variables:

FORMS_RECORD_GROUP_MAX to 10000 or if that proves too restrictive, increase it to 20000 or 30000. The higher the value is set may
impact existing resourses where that should be considered when changing it.
FORMS_CATCHTERM=0

In order to set the above forms variables so next time autoconfig run does not override those values, do the
following steps :

Step 1:-  For Forms Variable "FORMS_CATCHTERM" the context vairable name is: "s_forms_catchterm" and you can update the context file
located in ($INST_TOP/appl/admin/<SID_HOSTNAME.xml>)

Step 2:-  For other forms variable "FORMS_RECORD_GROUP_MAX" there is no variable defined in Autoconfig for that one and have to
customize the autoconfig for the forms variables to set that environment as following:
a).  Go to the autoconfig Template folder:
            $cd $AD_TOP/admin/template
b).  Create new directory named (custom)
$ mkdir custom
c). Make sure that new directory has same file permissions as ($AD_TOP/admin/template)

d). Copy the following autoconfig template to the new custom directory:
$cp $AD_TOP/admin/template/APPLSYS_ux.env $AD_TOP/admin/template/custom/APPLSYS_ux.env
e). Edit the file copied file under custom directory and add the following 2 lines at the end of section:
####################################
# Oracle Forms environment variables
####################################
FORMS_RECORD_GROUP_MAX=10000
export FORMS_RECORD_GROUP_MAX

f).  Save and exit from the file.

g). Next time autoconfig run, it will read the custom directory and check for any customizations there.


Step 3:- Run Autoconfig on the middle tier and make sure it is completed successfully.

Step 4:-  Startup all services.

Step 5:- Monitor the forms process to see its CPU usage, and you will see that form process usage is reduced and not causing any more CPU
consumption up to 100% as before.

Step 6:- Migrate the solution as appropriate to other environments.

IMPORTANT NOTE: If you find that setting (FORMS_RECORD_GROUP_MAX=30000) still too restrictive for certain LOV's then Oracle
product team needs to consider redesigning the LOV's in their form and at that time raise a new SR with the Oracle Support team so
they can raise a new bug with development for that specific LOV to get it redesigned but this may happen ONLY in RARE cases.


+++++++++(Doc ID 745711.1)+++++++++++