Query to get the multiple plan for a SQL ID in database.
Please use the below query to get the multiple plan hash value for a SQL ID.WITHp AS (SELECT plan_hash_value FROM gv$sql_plan WHERE sql_id = TRIM('&&sql_id.') AND other_xml IS NOT NULL...
View ArticlePassword protection for listener
SummaryTo avoid inadvertent stopping of your listener or to prevent unauthorized access to your listener, you may set up password protection for your listener.There are two ways to set a password:1....
View ArticleRedologs information
Redologs informationSummaryIn one script all the information about the redologs.SELECT col1 REDOLOG_INFO FROM(SELECT 1 ID, 'Redolog groups : ' || COUNT(*) col1 FROM v$logUNIONSELECT 2 ID,...
View ArticlePGA usage by sessions
PGA usage by sessionsSummaryEvery session takes something from the PGA memorySELECT DECODE(TRUNC(SYSDATE - LOGON_TIME), 0, NULL, TRUNC(SYSDATE - LOGON_TIME) || ' Days' || ' + ')...
View ArticleSTATISTICS
STATISTICSGather stats for schemaBegindbms_stats.gather_schema_stats(ownname => 'SCOTT', --- schema name options => 'GATHER AUTO',estimate_percent => dbms_stats.auto_sample_size,method_opt...
View ArticleHow to set or unset a hidden parameter
How to set or unset a hidden parameterSummaryDisplays a list of one or all the hidden parameters.SELECT a.ksppinm AS parameter, a.ksppdesc AS description, b.ksppstvl AS session_value,...
View ArticleOPP Error Oracle.apps.xdo.XDOException: Error Creating Lock File
BI Publisher (formerly XML Publisher) Requests Are Failing With Error "OPP Error Oracle.apps.xdo.XDOException: Error Creating Lock FileErrororacle.apps.xdo.XDOException: Error creating lock file...
View ArticleORA-09925: Unable to create audit trail file
$ sqlplus / as sysdbaORA-09925: Unable to create audit trail fileLinux-x86_64 Error: 28: No space left on deviceAdditional information: 9925ORA-09925: Unable to create audit trail fileLinux-x86_64...
View ArticleMount/dismount ASM diskgroups
-- For mount a diskgroup,(This is instance specific, for mounting on all nodes, run the same on all nodes)SQL>alter diskgroup DATA mount; orasmcmd>mount DATA-- For umount a diskgroup,(This is...
View ArticleMSG-00102: Error Message :ORA-20100: File o0000071.tmp creation for FND_FILE...
ERROR:If a PL/SQL Concurrent Program can't write to an external file, you will receive an error message similar to:MSG-00102: Error Message :ORA-20100: File o0000071.tmp creation for FND_FILE...
View ArticleHow do we know how many users are connected to Oracle Applications.
How do we know how many users are connected to Oracle Applications.1. Enable Profile Option "Sign-On Audit" at "Form" level.2. Run "Purge Signon Audit" request.3. Security:Users -> Monitor" option4...
View ArticleGet cpu memory info of db server
Get cpu memory info of db serverset pagesize 200set lines 200col name for a21col stat_name for a25col value for a13col comments for a56select STAT_NAME,to_char(VALUE) as VALUE ,COMMENTS from v$osstat...
View ArticleSSL(Secure Socket Layer) Implementation With APEX.
Description:To establish a secure connection over the XML DB with SSL using TCPS (Secure Socket Layer).Requirements:1. A wallet is required to be able to set up an SSL connection.2....
View ArticleCREATING RECOVERY CATALOG
CREATE RECOVERY CATALOGTARGET DB : MACAWCATALOG DB : ORACATALOG SCHEMA: CATCHECK LISTENER RUN FOR BOTH TARGET AND CATALOG DATABASECheck database conectivity using tnspingIN CATALOG DATABASE CREATE...
View ArticleORA-01652 - ORA-01555
ORA-01652 UNABLE TO EXTEND TEMP SEGMENTThis error is caused because of Failing to allocate an extent of the required number of blocks for a temporary segment in the tablespace indicated.Increasing the...
View ArticleQuery to Find the session creating more redo
Query to Find the session creating more redo set pages 1000 lines 1000SELECT s.sid, s.serial#, s.username, s.program,i.block_changesFROM v$session s, v$sess_io iWHERE s.sid = i.sidORDER BY 5 desc;
View ArticleRMAN Auxiliary connect fails with ORA-01031: INSUFFICIENT PRIVILEGES
Analysis :There may be a mismatch in the "case" of characters between these items on the host where the auxiliary database resides:1) The entry in the listener.ora file for service_name for the...
View Articleopatchauto Fails With OPATCHAUTO-72050: System instance creation failed.
Analysis :[root@rachost1 24917825]# /u01/app/12.1.0/grid/OPatch/opatchauto apply -analyzeOPatchauto session is initiated at Thu Jun 29 21:32:01 2017System initialization log file is...
View ArticleQuery To Get Form Personalizations Details
1) Query to Get Form Personalization Details ( Oracle Applications ) from Database.FND_FORM_CUSTOM_RULES - The Rules for the form customization's. A rule must have 1 more more FND_FORM_CUSTOM_SCOPES...
View ArticleSteps to change dbname using NID
SHUTDOWN IMMEDIATESTARTUP MOUNTInvoke the DBNEWID utility (nid) specifying the new DBNAME from the command line using a user with SYSDBA privilegenid TARGET=sys/password@TSH1 DBNAME=TSH2
View Article