How to rename a Datafile with Extension .dbf? For example we have added a datafile but we forgot to give the extension .dbf Step 1. Shut down the Database SQL> …
Read More »How to Find Database Object and it’s Corresponding Datafiles
How to Find Database Object and it’s Corresponding Datafiles SELECT DISTINCT t.ts#, t.name AS Tablespace_name, d.name AS DATAFILE, s.owner, s.segment_name, s.segment_type, s.bytes / 1024 / 1024 AS “MB” FROM v$tablespace t, v$datafile d, dba_segments s WHERE t.ts# = d.ts# AND t.name = s.tablespace_name AND s.owner = ‘APPS’;
Read More »How to Find CPU Usage for a Session
How to Find CPU Usage for a Session SET linesize 145 SET pagesize 9999 COLUMN sid format 9999 heading ‘SID’ COLUMN serial_id format 999999 heading ‘Serial#’ COLUMN session_status format a9 heading ‘Status’ justify right
Read More »Oracle Real Application Cluster Intro
Oracle Real Application Cluster Intro RAC Defination Oracle RAC stands for Oracle Real Application cluster. It is a clustering solution that ensures high availability of databases by providing instance failover …
Read More »Query To find the details of the Accounting Flexfield structure
SELECT gls.name, idfs.id_flex_num chart_of_accounts_id, idfs.segment_num, idfs.flex_value_set_id, fvs.flex_value_set_name, idfs.application_id, idfs.id_flex_code, idfs.application_column_name, idfs.segment_name, fvs.security_enabled_flag, ( CASE WHEN fvs.validation_type = ‘F’ THEN ‘Table’ WHEN fvs.validation_type = ‘I’ THEN ‘Independent’ WHEN fvs.validation_type = ‘D’ THEN ‘Dependent’ WHEN fvs.validation_type = ‘N’ THEN ‘None’ WHEN fvs.validation_type = ‘P’ THEN ‘Pair’ WHEN fvs.validation_type = ‘U’ THEN ‘Special’ ELSE ‘Unknown Type’ END ) validation_type, ( CASE WHEN fvs.validation_type = ‘F’ THEN fvt.application_table_name ELSE ‘Not Applicable’ END ) validation_table_name FROM gl_ledgers gls, fnd_id_flex_segments idfs, fnd_flex_value_sets fvs, fnd_flex_validation_tables fvt WHERE gls.chart_of_accounts_id (+) = idfs.id_flex_num AND fvs.flex_value_set_id = idfs.flex_value_set_id AND gls.ledger_id = &ledgerid …
Read More »Adding responsibility to SYSADMIN user resulted ORA-20001: FND_CANT_INSERT_USER_ROLE
ERROR Oracle error – 20001: ORA-20001: FND_CANT_INSERT_USER_ROLE (USERNAME=SYSADMIN) (ROLENAME=FND_RESP|FND|FND_FUNC_ADMINI|STANDARD) (ROUTINE=FND_USER_RESP_GROUPS_API.Insert_Assignment) has been detected in FND_USER_RESP_GROUPS_API.INSERT_ASSIGNMENT SOLUTION This Issue exists in default R12 installation Step 1. Run the concurrent program “Workflow …
Read More »Data Guard Vs SAN To SAN Replication
Data Guard Vs SAN to SAN Replication Oracle Data Guard SAN-to-SAN Implementation Cost Low High Database Aware Yes No Granularity of Replication Transaction level Disk Block Level Distance Limitations …
Read More »Comparison Between Oracle GoldenGate and DataGuard
Comparison Between Oracle GoldenGate and DataGuard Technical Points Oracle Dataguard / Active Dataguard Oracle Golden Gate Operating System Primary Database and Standby Database Should be same. (But 11g Onwards it …
Read More »Generating AWR Reports
Generating AWR Reports You can generate AWR reports by running SQL scripts, as described below :- # Generating an AWR Report @$ORACLE_HOME/rdbms/admin/awrrpt.sql # To generate an AWR report on …
Read More »RMAN Backup Script for Windows
RMAN Backup Script for Windows Create Batch file named as rmanbackup.cmd and copy the below given script in that batch file. set oracle_sid=orcl rman target sys/passwd nocatalog cmdfile=’c:\app\rman\rmanbkp.cmd’ log=’c:\app\rman\bkp_log.log’ ————— –rmanbackup.cmd run …
Read More »