Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
32 views44 pages

Rough Work

The document contains various SQL commands and configurations related to Oracle database management, including tablespace management, user creation, and recovery catalog setup. It also includes email addresses, phone numbers, and file paths relevant to database operations. Additionally, there are links to external resources and commands for file manipulation in Unix.

Uploaded by

Naresh Sathra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views44 pages

Rough Work

The document contains various SQL commands and configurations related to Oracle database management, including tablespace management, user creation, and recovery catalog setup. It also includes email addresses, phone numbers, and file paths relevant to database operations. Additionally, there are links to external resources and commands for file manipulation in Unix.

Uploaded by

Naresh Sathra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 44

metalink

instance top is unique for each


/u03/STAGE/stageapps/inst/apps/STAGE_appserver1

ALTER TABLESPACE TEMP ADD TEMPFILE '/u03/tirdb/devdata/temp01.dbf' SIZE 100M;


flashback table scott.emp to before drop;

[email protected]

[email protected]

[email protected]
[email protected]

9811098110 vodafone

Office SCO 191 - 192, Sector 34-A,


Chandigarh - 160 022

Phone : +91-172-4612000 / 4613000 / 4646749 / 5012986 /


5012886/5012186/5012286/5007986
+91-172-2612 447 (Direct - Export Deptt.)
Fax : +91-172-4614000
E-mail : [email protected]

http://appserver2.dbaquest.com:8041/

alter tablespace temp add tempfile '/u03/oracle/proddata/temp01.dbf' reuse;

[email protected]

[email protected]
sapient1234

[email protected]
Houston789

[email protected]

/u01/app/oracle/product/10.2.0/db_1/Opatch

http://www.appsdba.info/index.php?
module=pagemaster&PAGE_user_op=view_page&PAGE_id=48&M
MN_position=36:36

http://www.appsdba.info/index.php?
module=pagemaster&PAGE_user_op=view_page&PAGE_id=24&MMN_position=13:13
http://onlineappsdba.com/index.php/2008/10/17/oracle-database-recovery-scenario-
and-solution/ (14-Nov-2011)
http://avdeo.com/2007/12/12/oracle-database-10g-recovery-scenario/
http://www.dbatutor.com/2010/12/oracle-database-recovery-scenarios.html

[email protected]
[email protected]

9810406131 gurinder pal

rac-srvctl add service -s ERP -d DEVRAC -r DEVRAC1 for adding services

/u01/accounts/batch8/tirbase1/ora10g/oradata/TIRTEST/system01.dbf

/u01/accounts/batch8/tirbase1/ora10g/oradata/TIRTEST/control01.ctl
/u01/accounts/batch8/tirbase1/ora10g/oradata/TIRTEST

/u01/accounts/batch8/tirbase1/ora10g/oradata/TIRTEST/system01.dbf
/u01/accounts/batch8/tirbase1/ora10g/oradata/TIRTEST/system01.dbf

/u01/accounts/batch8/tir_backupe
/u01/accounts/batch8/tirbase1/ora10g/oradata/backup/bk1

'/u01/accounts/batch8/SANDEEPBASE/database/flash_recovery/SONU/archivelog/
2011_04_25/o1_mf_1_8_%u_.arc'

recover database using backup controlfile until cancel

/u01/accounts/batch8/SANDEEPBASE/database/sonu

/u01/accounts/batch8/tirbase1/ora10g/admin/TIRTEST/udump

/u01/accounts/batch8/tirclon/ora10g
alter database backup controlfile to trace;
tkprof prod_ora_18797.trc 27ctrl.sql

create undo tablespace UNDOTBS02 datafile


'/u01/accounts/batch8/tirbase1/ora10g/oradata/TIRTEST/undotbs02.dbf' SIZE 200M;

/accounts/batch8/tirclon/recovery

@/u01/accounts/batch8/sqls/tablespace_utilization.sql

@/u01/accounts/batch8/sqls/segs_in_tbsp.sql

@/u01/accounts/batch8/sqls/segs_tbsp_count.sql

select 'alter table '||owner||'.'||table_name||'move tablespace USERS2 ' from


dba_tables where tablespace_name='USERS';

select 'alter table '||owner||'.'||table_name||' move tablespace SANDEEPTBS; '


from dba_tables where tablespace_name='SAYATBS';

select 'alter table ' ||owner||'.'||table_name||' move tablespace USERS2;' from


dba_tables where tablespace_name ='USERS';

select 'alter tablespace '||tablespace_name||' begin backup; ' from


dba_tablespaces;
select 'alter tablespace '||tablespace_name||' end backup; ' from
dba_tablespaces;

scp -r common.tar.gz oracle@appserver1:/export/home/oracle

tar -cvzf proddata.tar.gz *

tar: undo01.dbf: file changed as we read it


You have mail in /var/spool/mail/oraprod

scp ./*.gz root@appserver1:/u02/appsohome.tar.gz

export DISPLAY=192.168.2.3:15.0

/u03/oracle/proddb/9.2.0/dbs/arch

/u01/accounts/orastage/db/devdb/9.2.0/appsutil/clone/bin for db tier for adcfgclone


/u01/accounts/orastage/db/devdb/9.2.0

[orastage@dbaquest bin]$ export ORACLE_HOME=/u01/accounts/orastage/db/devdb/9.2.0


[orastage@dbaquest bin]$ export PATH=$OARCLE_HOME/bin:$PATH
[orastage@dbaquest bin]$ export ORACLE_SID=dev

/u01/accounts/appltest/apps/devappl Java_top in cloming

select table_name,status,tablespace_name,index_name,owner from dba_indexes where


tablespace_name='USERS';

select owner,index_name,status from dba_indexes where tablespace_name='USERS';

SELECT index_name,index_type,partitioned,generated FROM user_indexes ORDER BY 1;

select USERNAME,ACCOUNT_STATUS,to_char(lock_date,'dd-mon-yyyy
hh:mi:ss'),to_char(EXPIRY_DATE ,'dd-mon-yyyy hh:mi:ss') from dba_users where
USERNAME='SANDEEP';

ALTER TABLE table_name MOVE LOB SYS_IL0000046588C00004$$ TABLESPACE USERS2;

select 'alter table '||table_name||' move tablespace YOUR_TS'||


chr(10)||'LOB(SYS_IL0000046588C00004$$)|| store as '||segment_name||
chr(10)||'(tablespace YOUR_TS);'from user_lobs

select USERNAME,ACCOUNT_STATUS,to_char(lock_date,'dd-mon-yyyy
hh:mi:ss'),to_char(EXPIRY_DATE ,'dd-mon-yyyy hh:mi:ss') from dba_users where
USERNAME='SANDEEP';

[email protected]

[email protected]

create user sandeep identified by saya default tablespace USERS temporary TEMP
quota 300M on tablespace USERS;

create user sandeep identified by saya default tablespaces USERS temporary TEMP

create table t(name varchar2(30));

select privilege from dba_sys_privs where grantee = 'RECOVERY_CATALOG_OWNER' ;

ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 2; 30335555

/u01/accounts/batch8/tirclon

/u01/accounts/batch8/tirbase

/u01/stage10g/database
/u01/accounts/batch8/tirbase/oraInventory/oraInst.loc

./runInstaller -invPtrLoc /u01/accounts/batch8/tirbase/oraInventory/oraInst.loc

/u01/accounts/batch8/manually_db
/u01/accounts/batch8/manually_db/ora10g

/u01/accounts/batch8/tirbase/ora10g/dbs

/u01/accounts/batch8/tirbase1/ora10g/rdbms/admin/catalog.sql

/u01/accounts/batch8/tirbase1/ora10g/rdbms/admin/catproc.sql

[email protected]

[batch8@dbaquest ~]$ . ./TIRBASE.env

[batch8@dbaquest ~]$ sqlplus

Error 6 initializing SQL*Plus


Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

select 'alter index '||owner||'.'||index_name||' Rebuild ; ' from dba_indexes where


tablespace_name='USERS'

[email protected]

/u01/accounts/batch8/tirbase1

alter system set


log_archive_dest='LOCATION=/u01/accounts/batch8/tirbase1/archivelog';

create tablespace tirath_tbs datafile


'/u01/accounts/batch8/tiroracle/oradata/admin/tirdb/data/tirath_100.dbf' size 20M
autoextend on next 10M maxsize 100M;
/u01/accounts/batch8/tiroracle/oradata/admin/tirdb/data/

reliance id 149415798 tch8/oraInventory/logs/installAction2011-03-13_09-43-


57AM.log

select name,value,isses_modifiable from v$parameter where


name='background_dump_dest';

data card 7428513274 180030005555 02230335555

[email protected]

xv4rhs

contractor id - CWKN492459

hair plantation -0091-9999163634

to get range of line in unix-

sed -n '3,6p' kavita -----correct command

sed -n '10q;6,10p' tirath2

tail +3 myfile | sed -e :a -e '$d;N;2,6ba' -e 'P;D'

use of find command

Search for file with a specific name in a set of files (-name)

find . -name "tirath2" -print find . -name "rmanclon" -print


find . -mtime "tirath" -print
find . -size "tirath" -print

This command will search in the current directory and all sub directories for a
file named rc.conf.

Note: The -print option will print out the path of any file that is found with that
name. In general -print wil print out the path of any file that meets the find
criteria.

find /u01/accounts/batch8 -not \( -name "*,v" -o -name ".*,v" \) '{}' \; -print

/u01/accounts/batch8

ICICI BANK Delhi (Mobile): 9818178000


ICICI BANK Mumbai: 28307777

Rajbir Dager
h.no 2458
sec-08
faridabad-121006

credit 4477478048196004 12/06 12/14 tirath sharma


otc - 954064 INTB(oTP-605575)

http://dbaserver.wordpress.com/about/
http://knol.google.com/k/oracle-applications-r12# (r12 sahred file system)
http://onlineappsdba.com/index.php/2009/12/09/oracle-apps-r12-distributed-multi-
node-installation-unixwindows/

SQL> exec dbms_resource_manager.create_pending_area();


exec dbms_resource_manager.create_plan( plan => 'TEST_RES', comment => 'Resource
plan/method for CPU resources');

PL/SQL procedure successfully completed.

*************************************************dba
work***************************

connect / as sysdba;
drop sequence psnoop_seq;
drop table psnoop;

create sequence psnoop_seq start with 1;

-- 9i
create table psnoop (
id number(6),
username varchar2(30),
value varchar(60)
)
tablespace tools;
-- 10g

create table psnoop (


id number(6),
username varchar2(30),
value varchar(60)
)
tablespace sysaux;

create user kavita identified by tirath profile TIR_TEST default tablespace users
temporary tablespace temp;
/

query for finding starting time of database

SELECT to_char (startup_time,'DD-MON-YYYY HH24: MI: SS') "DB Startup Time"


FROM sys.v_$instance;

select a.profile
, a.resource_name
, a.limit
, o.object_name function
, o.last_ddl_time
from dba_profiles a, dba_objects o
where resource_name = 'PASSWORD_VERIFY_FUNCTION'
and o.object_name(+) = a.limit
order by 1,2;

create profile t_profile limit password_verify_function verify_function_test;

SELECT name, value


FROM gv$parameter
WHERE name = 'resource_limit';

/u01/accounts/batch8/tirclon/ora10g/rdbms/admin/utlpwdmg.sql

pw_limit = PASSWORD_LIFE_TIME
PASSWORD_GRACE_TIME
PASSWORD_REUSE_TIME
PASSWORD_REUSE_MAX
FAILED_LOGIN_ATTEMPTS
PASSWORD_LOCK_TIME

l-00-960-971-1094

select a.name,b.status
from v$rollname a,
v$rollstat b
where a.name IN(select segment_name
from dba_segments)
and a.usn=b.usn;

select segment_name,owner,tablespace_name,status
from dba_rollback_segs;

select n.name,s.extents,s.rssize,s.hwmsize,s.xacts,s.status
from v$rollname n,v$rollstat s
where n.usn=s.usn;

/u01/accounts/batch8/tirbase1/ora10g/dbs

/* Steps For Configuring Recovery Catalog */

Step 1 :
Create A Seperate Database Or Tablespace For Storing RMAN Catalog.
In This Case We Are Storing The Recovery Catalog In The Same Database.

SQL> Create Tablespace Rman_Tablespace Datafile


'/u01/accounts/batch8/tirbase/ora10g/oradata/TIRTEST\Rman01.dbf' Size 20m
Autoextend On Next 1m;

Tablespace created.

Step 2 :
Create A Rman Repository Schema.

SQL> Create User Rman_User Identified By Rman Default Tablespace Rman_Tablespace


Temporary Tablespace Temp Quota Unlimited On Rman_Tablespace;

User created.

Step 3 :
Grant Privileges To The Rman User Setting The Default Tablespace To The One Create
In Step 1

SQL> Grant Connect,Resource To Rman_User;

Grant succeeded.

SQL> Grant Recovery_Catalog_Owner To Rman_User;

Grant succeeded.

Step 4 :
Create The Catalog Using RMAN
Invoke Rman Utility As Below :

$ORACLE_HOME\Bin> RMAN Catalog Rman_User/Rman@Service


Recovery Manager: Release 9.2.0.1.0 - Production

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


connected to recovery catalog database
recovery catalog is not installed

RMAN>

Now At The Rman Prompt Create The Catalog Into Tablespace Created In Step 1

RMAN> Create Catalog Tablespace Rman_Tablespace; Create Catalog Tablespace


rmantab;

recovery catalog created

Note : The Execution Of The Above Command Will Create Several Base Tables, View,
Synonyms ,
Packages, Etc .

RMAN> Exit

Step 5 :
Now Register Your Database Into The Recovery Catalog.

RMAN_USER SQL> Select * From DB_Database;

no rows selected

The Above Statement Proves That Your Database Is Not Yet Registered Into The
Recovery Catalog.

C:\>Rman Target /

Recovery Manager: Release 9.2.0.1.0 - Production

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

connected to target database: JUNEPT (DBID=1185895820)

RMAN> Connect Catalog Rman_User/Rman@Service

connected to recovery catalog database

RMAN> Register Database;

database registered in recovery catalog (A)


starting full resync of recovery catalog
full resync complete

Note : The Above Command Updates All The Base Tables For Storing The Database
Information Which Is Resistered.

To Prove The Above Said Issue The Following Commands :

RMAN_User SQL> Select Name From Rc_Database;


RMAN_User SQL> Select Tablespace_Name,Name From Rc_Datafile;
RMAN_User SQL> Select Name From Rc_Redo_Log;

/* The Configuration Of Recovery Catalog Is Completed. */


Create Tablespace Rman_Tablespace Datafile
'C:\Sql\Junept\Datafile\Rman01.dbf' Size 20m Autoextend On Next 1m;

db_recovery_file_dest_size

RMAN> run
{
allocate channel c1 type disk format '/u01/accounts/batch8/devbase/backup/%d%D%M%u
%p%c' maxpiecesize 100M;
allocate channel c2 type disk format '/u01/accounts/batch8/devbase/backup/%d%D%M%u
%p%c'maxpiecesize 100M;
backup database tag 'bkpmay03';
release channel c1;
release channel c2;
}

RMAN> run
{
allocate channel c1 type disk format '/u01/accounts/batch8/hemant/rmanbackup/%d%D
%M%u%p%c' maxpiecesize 300M;
allocate channel c2 type disk format '/u01/accounts/batch8/hemant/rmanbackup/%d%D
%M%u%p%c'maxpiecesize 300M;
backup database tag 'bkpsep17';
release channel c1;
release channel c2;
}

RMAN> run
{
allocate auxiliary channel c1 type disk format
'/u01/accounts/batch8/hemant/rmanbackup/%d%D%M%u%p%c' maxpiecesize 300M;
allocate channel c2 type disk format '/u01/accounts/batch8/hemant/rmanbackup/%d%D
%M%u%p%c' maxpiecesize 300M;
duplicate target database to dup;
}

RMAN>run
{
allocate channel c1 type disk format '/u01/accounts/batch8/tirbase1/backup/%d%D%M
%u%p%c' maxpiecesize 300M;
allocate channel c2 type disk format '/u01/accounts/batch8/tirbase1/backup/%d%D%M
%u%p%c'maxpiecesize 300M;
backup database tag 'bkpmay20';
release channel c1;
release channel c2;
}

RMAN> run
{
allocate channel c1 type disk format '/u01/accounts/batch8/tirclon/backup1/%d%D%M%u
%p%c' maxpiecesize 100M ;
allocate channel c2 type disk format '/u01/accounts/batch8/tirclon/backup1/%d%D%M%u
%p%c' maxpiecesize 100M ;
BACKUP INCREMENTAL LEVEL = 1
FORMAT '/u01/accounts/batch8/tirclon/backup1/%d%D%M%u%p%c' maxpiecesize 100M;
backup database tag 'bkpmay04';
release channel c1;
release channel c2;
}

BACKUP INCREMENTAL LEVEL 1


TABLESPACE SYSTEM
DATAFILE '/u01/accounts/batch8/tirclon/backup1/tools01.dbf';

RUN
{
ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'e:/backup/%F.bck';
BACKUP INCREMENTAL LEVEL = 0 CUMULATIVE database
FORMAT 'e:/backup/%U';
BACKUP DATABASE TAG = 'weekly_backup';
}

RUN
{
ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'e:/backup/%F.bck';
BACKUP INCREMENTAL LEVEL = 1 CUMULATIVE database
FORMAT 'e:/backup/%U';
BACKUP DATABASE TAG = 'mon_tue_wed_backup';
}

RUN
{
ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'e:/backup/%F.bck';
BACKUP INCREMENTAL LEVEL = 2 CUMULATIVE database
FORMAT 'e:/backup/%U';
BACKUP DATABASE TAG = 'thu_fri_sat_backup';
}

1)

create tablespace rmantab datafile


'/u01/accounts/batch8/tirclon/ora10g/oradata/TIRTEST/rmantab02.dbf' size 50M;

2)

create user rman identified by rman default tablespace rmantab temporary


tablespace temp quota unlimited on rmantab;
LE
3)

grant recovery_catalog_owner to rman;

4)
@$ORACLE_HOME/rdbms/admin/catrman.sql

or

RMAN> connect catalog rman/rman@TIRPROD2

connected to recovery catalog database

RMAN> create catalog;

recovery catalog created

RMAN> connect target /

connected to target database: DEVDB (DBID=418992877)

RMAN> connect catalog rman/rman@TIRTEST

connected to recovery catalog database

RMAN> register database;

database registered in recovery catalog


starting full resync of recovery catalog
full resync complete

RMAN> backup database;

$> lsnrctl start TIRTEST1 /u01/accounts/batch8/tirclon/ora10g

$> tnsping TIRTEST1

run
{
set until time " to_date('07-may-2011 22:25:00','dd-mon-yyyy hh24:mi:ss')";
allocate channel c1 type disk;
allocate channel c2 type disk;
restore controlfile;
sql 'alter database mount';
restore database;
recover database;
sql 'alter database open resetlogs';
}

run
{
set until time "to_date('07-may-2011 23:31:00','dd-mon-yyyy hh24:mi:ss')";
restore controlfile;
sql 'alter database mount';
restore database;
recover database;
sql 'alter database open resetlogs';
}

> run
{
set until time "to_date('07-may-2011 22:25:00','dd-mon-yyyy hh24:mi:ss')";
restore database;
recover database;
sql 'alter database open resetlogs';
}

======================

SQL> create tablespace RMANCAT datafile


'/u01/accounts/batch8/tirbase1/oradata/TIRTEST2/rmancat01.dbf' size 100M;

Tablespace created.

SQL> create user rman identified by rman


2 default tablespace RMANCAT
3 temporary tablespace TEMP
4 quota unlimited on RMANCAT;

User created.

SQL> grant recovery_catalog_owner to rman;

Grant succeeded.

Listener- TIRPROD
service name TIRPROD2
Port 1790

$ exp full=y file=expsun.dmp log=expsun.log

insert into s values(1000);


/
insert into s values(1000);
/
insert into s values(1000);
/
insert into s values(1000);
/
insert into s values(1000);
/
insert into s values(1000);
/
insert into s values(1000);
/

select sum(bytes)/1024/1024 from dba_free_space


where tablespace_name ='SANDEEPTBS'

select sum(bytes)/1024/1024 from dba_free_space


where tablespace_name ='SAYATBS'

select extent_id, SUM(bytes) TOTAL_SIZE, blocks


from user_extents
where segment_name = 'S'
and segment_type = 'TABLE'
GROUP BY BYTES
/

select SUM(bytes) TOTAL_SIZE


from user_extents
where segment_name = 'S'
and segment_type = 'TABLE'
/

select blocks, empty_blocks,


avg_space, num_freelist_blocks
from user_tables
where table_name = 'S'
/

select NUM_ROWS, BLOCKS, EMPTY_BLOCKS, AVG_SPACE, AVG_ROW_LEN, NUM_ROWS,


NUM_FREELIST_BLOCKS
from all_tables where owner = 'DBUSR' and table_name = 's';

SELECT TABLE_NAME, EMPTY_BLOCKS*2048/1024 "Kb"


FROM DBA_TABLES
WHERE OWNER=UPPER('SYS') AND TABLE_NAME = UPPER('S');

/u01/accounts/batch8/tirbase/rmanclon

1)

backup database plus archivelog format '/u01/accounts/batch8/tirbase/backup/%d_%u_


%s';

2)

create pfile='initTIRPRODCLON.ora' from spfile;


3)

db_file_name_convert=(/u01/accounts/batch8/tirbase/ora10g/oradata/TIRPROD2,/u01/
accounts/batch8/tirbase/rmanclon/oradata)
log_file_name_convert=(/u01/accounts/batch8/tirbase/ora10g/oradata/TIRPROD2,/u01/
accounts/batch8/tirbase/rmanclon/oradata)

4)

orapwd file=${ORACLE_HOME}/dbs/orapw${ORACLE_SID} password=<your password>

orapwd file=$ORACLE_HOME/dbs/orapwhdev password=oracle8 entries=5 force=y

$ orapwd file=hdev password=oracle8 entries=5

select * from v$pwfile_users;

/u01/accounts/batch8/tirbase/ora10g/oradata/TIRPROD2

select * from scott.emp versions between TIMESTAMP to_timestamp('14-may-2011


22:10:15', 'dd-mon-yyyy hh24:mi:ss') and to_timestamp('14-may-2011 22:25:15', 'dd-
mon-yyyy hh24:mi:ss');

SQL> create or replace directory DATA_PUMP_DIR1 as


'/u01/accounts/batch8/devbase/oradata/testdb/dump';

[batch8@dbaquest devbase]$ expdp scott/tiger directory=DATA_PUMP_DIR1 dumpfile=test


%u.dmp logfile=testexp.log full=y

SQL> grant EXP_FULL_DATABASE TO SCOTT;

Grant succeeded.

SQL> grant IMP_FULL_DATABASE TO SCOTT;

Grant succeeded.

/u01/accounts/batch8/devbase/oradata/tirdb

RMAN> connect catalog rman/rman@devdb connect catalog rman/rman@TIRTEST

connected to recovery catalog database

RMAN> connect auxiliary /

connected to auxiliary database: TIRDB (not mounted)

RMAN> connect target /

connected to target database: (not mounted)


RMAN>

connected to target database: PRODDB (DBID=490631712)

RMAN> connect target system/manager@proddb connect target tirath/tirath@PRODLIST

connected to target database: PRODDB (DBID=490631712)

RMAN>

RMAN> connect catalog rman/rman@devdb

connected to recovery catalog database

RMAN> connect target system/manager@proddb

connected to target database: PRODDB (DBID=490631712)

RMAN> connect auxiliary /

connected to auxiliary database: TIRDB (not mounted)

RMAN>
RMAN> run
{
allocate auxiliary channel c1 type disk;
allocate channel c2 type disk;
duplicate target database to dup;
}

RUN
{
ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL aux3 DEVICE TYPE DISK;
DUPLICATE TARGET DATABASE TO dup;
}

duplicate target database to dup;

@/test/u01/accounts/batch8/sqls/sess.sql
@/test/u01/accounts/batch8/sqls/peocess_det.sql
sql> exec dbms_stats.gather_database_stats;

SQL> exec dbms_system.set_sql_trace_in_session(142,20,TRUE);

Enter user-name: / as sysdba


ERROR:
ORA-01031: insufficient privileges

Enter user-name: sys as sysdba


Enter password:

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> alter user system identified by indian8;

User altered.

SQL> connect
Enter user-name: system/indian8@armaan
Connected.
SQL>

grant sysdba to tirath;

CREATE OR REPLACE DIRECTORY test_dir AS '/u01/accounts/batch8/SANDEEPBASE/tsexp';

CREATE OR REPLACE DIRECTORY test_dir AS '/u01/accounts/batch8/tirbase1/impdp';

expdp system/indian8@armaan tables=scott.t directory=TEST_DIR dumpfile=EMP_DEPT.dmp


logfile=expdpEMP_DEPT.log

impdp system/indian8@TIRTEST tables=scott.t directory=TEST_DIR


dumpfile=EMP_DEPT.dmp logfile=i mpdpEMP_DEPT.log

expdp system/indian8@armaan tables=scott.t directory=TEST_DIR dumpfile=EMP_DEPT.dmp


logfile=expdpEMP_DEPT.log

impdp system/indian8@TIRTEST tables=scott.t directory=TEST_DIR


dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log

expdp system/indian8@armaan schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp


logfile=expdpSCOTT.log

impdp system/indian8@TIRTEST schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp


logfile=impdpSCOTT.log

exp system/indian8@armaan file='/u01/accounts/batch8/exp/tirexp.dmp'


tables=scott.t3 log='/u01/accounts/batch8/exp/tirexp.log'

imp system/indian8@TIRTEST file='/u01/accounts/batch8/tirbase1/exp/tirexp.dmp'


fromuser=scott touser=scott tables=t3

exp system/indian8@armaan file='/u01/accounts/batch8/exp/tirexp_full1.dmp' full=y


log='/u01/accounts/batch8/exp/tirexp_full1.log'

imp system/indian8@TIRTEST
file='/u01/accounts/batch8/tirbase1/exp/tirexp_full1.dmp'
log='/u01/accounts/batch8/tirbase1/exp/tirexp_full1.log' fromuser=scott
touser=scott ignore=y

BEGIN
FOR i IN 1..100000 LOOP
INSERT INTO S (roll_no)
VALUES (i);
END LOOP;
END;
/

Manually snapshot - EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;

@/u01/accounts/batch8/sqls/blocked_sessions.sql
@/u01/accounts/batch8/sqls/sess.sql;

select sid,serial# from v$session where sid=144;


alter system kill session '144,53';

export ORACLE_HOME=/u01/accounts/batch8/rmanclon/ora10g
export ORACLE_SID=rmanclon
export PATH=$ORACLE_HOME/bin:$PATH

/u01/accounts/batch8/tirprod/oradata/TIRPROD/redo01.log

RMAN> connect catalog rman/rman@TIRTEST


connected to recovery catalog database

RMAN> CONNECT target tirath/tirath@PRODLIST

connected to target database: TIRPROD (DBID=2709103109)

RMAN> connect auxiliary /

connected to auxiliary database: RMANCLON (not mounted)

export TWO_TASK=PROD
sqlplus
sys/pass as sysdba

ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=0 SCOPE=BOTH;

ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=28508160 M SCOPE=BOTH;

RMAN> crosscheck archivelog all;


RMAN> change archivelog all validate;
RAMN> backup archivelog all;

RMAN> delete expired;

RMAN> list expired archivelog all;

sql> alter table s enable row movement;


sql>alter table s shrink space cascade;

CAT/proc/cpuinfo|grep processor wc-i

ps -ef | grep adcfg

1.Database must be in archive log mode.


2.We need all the archive log files from lost datafile created.

1.Login into che database

C:\>set oracle_sid=CHE

SQL*Plus: Release 11.1.0.7.0 - Production on Wed May 19 14:21:03 2010

Copyright (c) 1982, 2008, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> startup
ORACLE instance started.

Total System Global Area 535662592 bytes


Fixed Size 1348508 bytes
Variable Size 226495588 bytes
Database Buffers 301989888 bytes
Redo Buffers 5828608 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
ORA-01110: data file 9: 'D:\ORACLE\APP\ORADATA\CHE\TEST.DBF'

SQL> alter database datafile 9 offline;

Database altered.

SQL> alter database open;

Database altered.

SQL> select * from v$recover_file;

FILE# ERROR TIME


---------- ----------------------------------- ---------
9 FILE NOT FOUND

SQL> select file#,status from v$datafile;

FILE# STATUS
---------- -------
1 SYSTEM
2 ONLINE
3 ONLINE
4 ONLINE
5 ONLINE
6 ONLINE
7 ONLINE
8 ONLINE
9 RECOVER

9 rows selected.

We need to recover the datafile 9.

SQL> alter database create datafile 'D:\ORACLE\APP\ORADATA\CHE\TEST.DBF';

Database altered.

SQL>recover datafile 9;

rman>sql 'ALTER TABLESPACE USERS OFFLINE IMMEDIATE';


RECOVER TABLESPACE USERS;

select FILE_NAME,STATUS from dba_data_files where tablespace_name = 'USERS';

SELECT SUM(BYTES/1024/1024) FROM DBA_DATA_FILES WHERE


TABLESPACE_NAME='APPS_TS_SUMMARY';

cracking then orac 325 le apps dbajoyjeet banerjee

set archive log enable -> alter system archive log start
2 ;

ALTER SYSTEM SET


db_file_name_convert='("/u01/accounts/batch8/tirbase1/oradata/TIRTEST2","/u01/
accounts/batch8/standtestdata")' scope=spfile;
ALTER SYSTEM SET
log_file_name_convert='("/u01/accounts/batch8/tirbase1/oradata/TIRTEST2","/u01/
accounts/batch8/standtestdata")' scope=SPFILE;

ALTER SYSTEM SET


log_file_name_convert=('/u01/accounts/batch8/tirprod/oradata/TIRPROD/','/u01/
accounts/batch8/rmanclon/ora10g/')

alter system set


standby_archive_dest='/u01/accounts/batch8/standtestdata/archives';

alter database add standby logfile '/u01/accounts/batch8/standtestdata/redo01.log'


size 50M, '/u01/accounts/batch8/standtestdata/redo02.log' size 50M,
'/u01/accounts/batch8/standtestdata/redo03.log' size 50M;

SQL> recover managed standby database disconnect from session;


SQL> recover managed standby database cancel;

sql> select SEQUENCE#,archived,applied,status from v$archived_log order by 1;

explain plan

EXPLAIN PLAN SET STATEMENT_ID = 'my_statement' FOR SELECT * FROM EMPLOYEE_SAL;

Query for viewing the latest explain plan:

SELECT * FROM TABLE(dbms_xplan.display);

Query for viewing the explain plan created with a statement identifier:

SELECT * FROM TABLE (dbms_xplan.display(explain_plan_table_name, 'statement_id',


'type_of_plan'))

SQL> select object_type,object_name,owner from dba_objects where status='INVALID';

no rows selected

SQL> SElect object_type ,count(*) from dba_objects where status='INVALID' group by


object_type;
SELECT ARU_RELEASE_NAME FROM AD_BUGS WHERE ARU_RELEASE_NAME LIKE'%ATG%';

select APPLICATION_SHORT_NAME from ad_bugs where APPLICATION_SHORT_NAME like'%ATG


%';

select bug_number from ad_bugs where bug_number='4229931';

select patch_level
from fnd_product_installations
where patch_level like '%ATG%';

To implement the solution, please execute the following steps :

1.) Download and review the README for pre-requisites for Patch 4896755 -
'ADTMPL.DRV 115.127 DOESN'T INSTANTIATE/COPY ADGETLNXVER.SH'

2.) Apply Patch 4896755 in a TEST Environment.

3.) Retest the reported issue.

4.) If the issue is resolved, please migrate the solution as appropriate to other
Environments.

Update Steps

If the release level of your system is 11.5.10 or 11.5.10 CU1, follow the
instructions in this section to apply CU2.

Install and run the Technology Stack Validation utility to verify minimum
technology component versions and other configuration requirements. Install the
utility by applying patch 4318672 on all application tier server nodes. See the
patch readme file for instructions.

Follow the instructions provided by the utility to fix any failures or warnings
reported. Run it again on each node that reported a failure. We highly recommend
that you also correct all warnings.

Then, perform the following tasks in the order listed.

* Apply AD patch 4229931.


* Apply patch 4297568 on the concurrent processing server node.
* Apply the CU2 driver (u3460000.drv).
alter database backup controlfile to trace;

Database altered.

SQL>
SQL> show parameter user_d;

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
user_dump_dest string /u03/oracle/proddb/9.2.0/admin
/PROD_dbaquest/udump

perl adcfgclone.pl database


/test/TEST_APPS/db/testdb/9.2.0/appsutil/test1_dbaquest.xml

/test/TEST_APPS/db/testdb/9.2.0/jre/1.4.2

/test/TEST_APPS/backupdir

/test/TEST_APPS/db/testdata
/test/TEST_APPS/db/testdb/9.2.0

/test/TEST_APPS/apps/testappl/admin

/test/TEST_APPS/apps/testora/iAS/network/admin/test1_dbaquest/tnsnames.ora

R12-Installiation
path

/u02/stage/appsR12/startCD/Disk1/rapidwiz

apps database clone

/u03/oracle/proddb/9.2.0/admin/PROD_dbaquest/udump
alter database backup controlfile to trace;

per adcfgclone.pl dbTechStack(on database tier)

problem :- No write permissions to the Inventory pointed by:


/u03/STAGE/stagedb/devdb/9.2.0/inventoryds
Rapid Clone needs to be able to write to the inventory
Please run the script /tmp/orainstRoot.sh as root

Restart adclone.pl after performing required corrections.

ERROR: Failed to execute /u03/tirdb/devdb/9.2.0/appsutil/clone/bin/adclone.pl


Ans-to addd inventory path in orainst.loc in /etc directory

/u03/tirdb/devdb/9.2.0/dbs/control.sql

2) @/u03/tirdb/devdb/9.2.0/appsutil/install/TIRDEV_appserver1/adupdlib.sql

3) perl adcfgclone.pl database


/u03/tirdb/devdb/9.2.0/appsutil/TIRDEV_appserver1.xml

2):

export LD_ASSUME_KERNEL=2.4.19 (TO set from previous version)

/u03/tirapps/devcomn/clone/bin

perl adcfgclone.pl appsTier(on apps tier)(LISTENER AND DATABASE MUST BE UP)

Unable to initialize threads: cannot find class java/lang/Thread


Could not create Java VM
/u03/tirapps/devora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno,
version GLIBC_2.0 not defined in file libc.so.6 with link time reference
(libzip.so)
Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM
/u03/tirapps/devora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno,
version GLIBC_2.0 not defined in file libc.so.6 with link time reference
(libzip.so)
Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM
/u03/tirapps/devora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno,
version GLIBC_2.0 not defined in file libc.so.6 with link time reference
(libzip.so)

Unable to initialize threads: cannot find class java/lang/Thread


Could not create Java VM
/u03/tirapps/devora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno,
version GLIBC_2.0 not defined in file libc.so.6 with link time reference
(libzip.so)
Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM
/u03/tirapps/devora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno,
version GLIBC_2.0 not defined in file libc.so.6 with link time reference
(libzip.so)
Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM

.end err out.

****************************************************
Check logfile /u03/tirapps/devcomn/admin/log/TIRDEV_appserver1/07102022.log for
details

The new APPL_TOP context file has been created :


/u03/tirapps/devappl/admin/TIRDEV_appserver1.xml

Log file located at /u03/tirapps/devcomn/clone/bin/CloneContext_07090347.log

Running Rapid Clone with command:


perl /u03/tirapps/devcomn/clone/bin/adclone.pl
java=/u03/tirapps/devcomn/clone/bin/../jre/1.3.1 mode=apply
stage=/u03/tirapps/devcomn/clone/bin/.. component=appsTier method=CUSTOM
appctxtg=/u03/tirapps/devappl/admin/TIRDEV_appserver1.xml showProgress
contextValidated=true

No write permissions to the Inventory pointed by:


/u03/tirdb/devdb/9.2.0/inventory
Rapid Clone needs to be able to write to the inventory
Please run the script /tmp/orainstRoot.sh as roott s

Restart adclone.pl after performing required corrections.

ERROR: Failed to execute /u03/tirapps/devcomn/clone/bin/adclone.pl

Running Rapid Clone with command:


perl /u03/tirapps/devcomn/clone/bin/adclone.pl
java=/u03/tirapps/devcomn/clone/bin/../jre/1.3.1 mode=apply
stage=/u03/tirapps/devcomn/clone/bin/.. component=appsTier method=CUSTOM
appctxtg=/u03/tirapps/devappl/admin/TIRDEV_appserver1.xml showProgress
contextValidated=true

Beginning application tier Apply - Wed Jul 6 11:23:11 2011


Log file located at
/u03/tirapps/devappl/admin/TIRDEV_appserver1/log/ApplyAppsTier_07061123.log
\ 50% completed
ERROR while running Apply...

ERROR: Failed to execute /u03/tirapps/devcomn/clone/bin/adclone.pl

Ans:bcoz the context file is not able to connect to database so we need to run this
(with listener should be down) (we got this error while running on apps tier
cloning)

perl adcfgclone.pl database /u03/tirdb/devdb/9.2.0/appsutil/TIRDEV_appserver1.xml


(now first we run this on database tier)

3)
Beginning database Apply - Wed Jul 6 15:39:22 2011
Log file located at
/u03/tirdb/devdb/9.2.0/appsutil/log/TIRDEV_appserver1/ApplyDatabase_07060339.log
RC-50004: Fatal: Error occurred in ApplyDatabase:
Cannot proceed with ApplyDatabase - the paths/ports in the context file are not
valid.

Ans:

export LD_ASSUME_KERNEL=2.4.17.0

/u03/tirapps/devcomn/clone/bin
/u03/tirapps/devora/iAS/inventory

select owner,object_name,object_type from dba_objects where object_name like 'FND


%' group by owner,object_name,object_type;

select owner,object_name,object_type from dba_objects where


object_name='GL_LEDGER_BALANCES';

select owner,object_name,object_type from dba_objects where object_name like 'FND


%' ORDER BY OWNER group by owner,object_name,object_type;

select object_name,owner from dba_objects where object_name like 'FND%' and


owner='APPS' group by object_name,owner;

select object_name,owner from dba_objects where object_name like 'FND%' and


owner='APPLSYS' group by object_name,owner;

select object_type,count(*) from dba_objects where object_name like 'FND%' and


owner='APPLSYS' group by object_type;

select * from dba_synonyms where synonym_name='GL_LEDGER_SET_NORM_ASSIGN';

ps -ef | grep appsweb_PROD_dbaquest.cfg

ps -ef |grep -i connectMode $COMMON_TOP/html/bin/appsweb_PROD_dbaquest.cfg

/u03/oracle/prodappl/fnd/11.5.0/resource

/u03/oracle/prodora/iAS/Apache/Jserv/etc

diff PROD_dbaquest_07july2011.xml PROD_dbaquest.xml

/u03/oracle/prodappl/ad/11.5.0/bin

/u03/tirdb/devarchive
rpm -Uvh libaio-0.3.96-7.i386.rpm
/etc/init.d/oracleasm createdisk VOL3 /dev/sdb1
/etc/init.d/oracleasm deletedisk VOL3
/etc/init.d/oracleasm listdisks
mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs
umount

/stage/10gR2/rdbms/clusterware/cluvfy/runcluvfy.sh stage -pre crsinst -n rac1,rac2

/u03/tirdb/devdata/

CREATE TEMPORARY TABLESPACE TEMP TEMPFILE '\mypath_to_temp\TEMP02' SIZE 256M REUSE


AUTOEXTEND ON NEXT 256M MAXSIZE 8192M EXTENT MANAGEMENT LOCAL;

ALTER DATABASE TEMPORARY TABLESPACE TEMP REUSE;

CREATE TEMPORARY TABLESPACE temp TEMPFILE '/u03/tirdb/devdata/temp01.dbf' SIZE


100M;

CREATE TEMPORARY TABLESPACE TEMP02 TEMPFILE '/u03/tirdb/devdata/temp01.dbf' SIZE


100M;
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP02;

[tirapps@appserver1 devcomn]$ cd ..
[tirapps@appserver1 ~]$ ls
devappl devcomn devora
[tirapps@appserver1 ~]$ cd devora
[tirapps@appserver1 devora]$ pwd
/u03/tirapps/devora
[tirapps@appserver1 devora]$ cd ..
[tirapps@appserver1 ~]$ ls
devappl devcomn devora
[tirapps@appserver1 ~]$ cd devcomn
[tirapps@appserver1 devcomn]$ ls
admin clone html java _pages portal rgf temp util
[tirapps@appserver1 devcomn]$ cd ..
[tirapps@appserver1 ~]$ ls
devappl devcomn devora
[tirapps@appserver1 ~]$ cd devra
-bash: cd: devra: No such file or directory
[tirapps@appserver1 ~]$ cd devora
[tirapps@appserver1 devora]$ ls
8.0.6 iAS
[tirapps@appserver1 devora]$ cd 8*
[tirapps@appserver1 8.0.6]$ pwd
/u03/tirapps/devora/8.0.6

/u03/nayan/oratest/testdb/9.2.0/appsutil/clone/bin
pathced description

patch no-(1)
==============================================================================
CALCULATION FAILING REPEATEDLY DUE TO DEADLOCK BETWEEN TWO CHILD PROCESSES.
==============================================================================

patch no-(2)

==============================================================================
CHANGES IN CHILD RATE TABLES NOT AFFECTING INCREMENTAL CALC
==============================================================================

Whenever changes are made in the Commission Rates ( Rate Tiers ) the
changes are not processed during the next Incremental Run. This patch will
fix the issue by tracking the changes done in Rate Tiers properly.

Patch (3).

==============================================================================
OIC CALCULATION PERFORMANCE ISSUES (REVERT PHASE)
==============================================================================

Patch(4).

==============================================================================
Inventory Interface fails for Internal Orders if the Receiving Organization's
Accounting Period is Closed
==============================================================================

==============================================================================
CALCULATION RETURNING INCORRECT COMMISSION RATE
==============================================================================

==============================================================================
WHILE CALCULATING FOR BONUS COMMISSION TYPE GETTING ERROR
==============================================================================

==============================================================================
BR11510: DEADLOCKS DETECTED DURING DATA LOAD AND CALCULATION PROGRAMS ORA-000060
==============================================================================

SPLIT NOT WORKING FOR 'BONUS' FORMULA, FORMULA GENERATION CODE ISSUE

==============================================================================
ONDEMAND:BONUS CALC PROCESSES THE ASSOCIATES WITH NO BONUS CALC COMPONENTS
==============================================================================

==============================================================================
LAST CALCULATION CHILD PROCESS STARTS AFTER ALL OTHER CHILD PROCESSES HAVE ENDED
==============================================================================
To skip an adpatch job in adctrl use undocumented option 8 (See below):

--------------------------------- start adctrl output -----------------------------

AD Controller Menu
---------------------------------------------------

1. Show worker status

2. Tell worker to restart a failed job

3. Tell worker to quit

4. Tell manager that a worker failed its job

5. Tell manager that a worker acknowledges quit

6. Restart a worker on the current machine

7. Exit

Enter your choice [1] : 8

Enter the worker number(s)/range(s) or 'all' for all workers,


or press [Return] to go back to the menu : 2

@/u01/accounts/batch8/oraclebase/ora10g/rdbms/admin/dbmsxpln.sql;

Rac Patch NO -
6111516 ABILITY TO RECOVER DATABASE TO A PREVIOUS INCARNATION THROUGH GRID
CONTROL
5102941 BLACKOUT START AND END TIMES NOT SET CORRECTLY

==============================================================================
Description
==============================================================================

This is the interoperability patch for 10GR1 on 11.5.10 version of Applications.

error while applying patch-

I was applying a patch (the cXXXXXXX.drv one)


And this error occurs:

------------

Warning=> unable to locate /data/appldev/devcomn/java/apps.zip file.

Signing product JAR files in JAVA_TOP -


/data/appldev/devcomn/java
using entity PROD_sf-v480 and certificate 1.
Successfully created javaVersionFile.

Generating product JAR files in JAVA_TOP -


/data/appldev/devcomn/java with command:

adjava -ms128m -mx256m -nojit oracle.apps.ad.jri.adjmx


@/data/appldev/devappl/admin/DEV/out/genjars.c md

Failed to generate product JAR files in JAVA_TOP -


/data/appldev/devcomn/java.

adogjf() Unable to generate jar files under JAVA_TOP

AutoPatch error:
Failed to generate the product JAR files

AutoPatch error:
Error updating master archive

An error occurred while Updating Oracle Applications Java files.


Continue as if it were successful [No] :
-------------

When appling interim patch, opatch reports invalid platform: 0 [ID 468861.1]
SEVERE:OUI-67020:Interim Patch '5632264' is not applicable to OH
'/opt/app/oracle/product/10.2.0'... Platforms not compatible
INFO:
Using user-defined value, OPatch will treat this system as platform ID '0'.

Solution

1. Unset the OPATCH_PLATFORM_ID=0

unset OPATCH_PLATFORM_ID

2. Attempt to re-apply the patch.

opatch apply

After Applying Patch 8427903 Receive Error "Invalid Package


Apps.Inv_rcv_std_rcpt_apis" [ID 1117834.1]

Solution

To implement the solution, please execute the following steps:


1) Please download and review the readme for Patch 4551595
2) Please apply Patch 4551595 in a test environment.
3) Successful patch installation checks:
$INV_TOP/patch/115/sql/INVCRDIS.pls 115.2.11590.4
$INV_TOP/patch/115/sql/INVCRDIB.pls 115.2.11590.4
$INV_TOP/patch/115/sql/INVSTDRB.pls 115.126.11590.54

4) Please COMPILE all Invalids as required


5) Please retest the issue.
6) If the issue is resolved, please migrate the solution as appropriate to other
environments.

alter package apps.INV_RCV_STD_RCPT_APIS compile body;

Applying Patch.5161329 Gives An Error ORA-06512 AT APPS.APPS_DDL line 15 [ID


577333.1]
When attempting to applying Patch.5161329 the worker fails with the following
error:

ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "APPS.APPS_DDL", line 15
ORA-06512: at line 334
ORA-06510: PL/SQL: unhandled user-defined exception

Error: "adjava: not found" While Running Adpatch [ID 1097563.1]

Solution

1. Source the APPS Environment ($APPL_TOP/APPS<SID>_<HOST>.env)

2. Execute following command :

adrelink.sh force=y "ad adjava"

Or

adrelink.sh force=y "ad all"

Note : Adding "all" will relink all binaries under the "$AD_TOP/bin". The "all"
option only works for the AD product.

error

Adpatch Failed On MSC_OE_DATA_TEMP.xdf With Unable To Get The Database Connection:


The Network Adapter Could Not Establish The Connection [ID 1263944.1]

Solution

To implement the solution, please execute the following steps :


=============================================

1. Clean the fnd_nodes table as described in


'Steps to Clean Nonexistent Nodes or IP Addresses from FND_NODES'

Execute following commands in sqlplus :


SQL> EXEC FND_CONC_CLONE.SETUP_CLEAN;
COMMIT;
EXIT;

2. Run AutoConfig on all tiers, firstly on the DB tier and then the APPS tiers, to
repopulate the required system tables.

@/u01/accounts/batch8/oraclebase/ora10g/rdbms/admin/utlxplan.sql;

5.3.6.1 Running the ashrpt.sql Report

To generate a text report of ASH information, run the ashrpt.sql script at the SQL
prompt:

@$ORACLE_HOME/rdbms/admin/ashrpt.sql

First, you need to specify whether you want an HTML or a text report.

Enter value for report_type: text

Specify the time frame to collect ASH information by first specifying the begin
time in minutes prior to the system date.

Enter value for begin_time: -10

Next, enter the duration in minutes that the report for which you want to capture
ASH information from the begin time. The default duration of system date minus
begin time is accepted in the following example:

Enter value for duration:

The report in this example will gather ASH information beginning from 10 minutes
before the current time and ending at the current time. Next, accept the default
report name or enter a report name. The default name is accepted in the following
example:

Enter value for report_name:


Using the report name ashrpt_1_0310_0131.txt

The session history report is generated.


5.3.6.2 Running the ashrpti.sql Report

If you want to specify a database and instance before setting the time frame to
collect ASH information, run the ashrpti.sql report at the SQL prompt to generate a
text report:

@$ORACLE_HOME/rdbms/admin/ashrpti.sql

First, specify whether you want an HTML or a text report. After that, a list of the
database Ids and instance numbers displays, similar to the following:
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
----------- -------- ------------ ------------ ------------
3309173529 1 MAIN main dlsun1690
3309173529 1 TINT251 tint251 stint251

Enter the values for the database identifier (dbid) and instance number (inst_num)
at the prompts.

Enter value for dbid: 3309173529


Using 3309173529 for database id
Enter value for inst_num: 1

1) TKPROF: Yes, it is still used but the FOREGROUND_DUMP_DEST is no longer


used. There is info in the Oracle docs on this. Here is the syntax:

Usage: tkprof tracefile outputfile [explain= ] [table= ]


[print= ] [insert= ] [sys= ] [sort= ]
table=schema.tablename Use 'schema.tablename' with 'explain=' option.
explain=user/password Connect to ORACLE and issue EXPLAIN PLAN.
print=integer List only the first 'integer' SQL statements.
aggregate=yes|no
insert=filename List SQL statements and data inside INSERT statements.
sys=no TKPROF does not list SQL statements run as user SYS.
record=filename Record non-recursive statements found in the trace
file.
sort=option Set of zero or more of the following sort options:
prscnt number of times parse was called
prscpu cpu time parsing
prsela elapsed time parsing
prsdsk number of disk reads during parse
prsqry number of buffers for consistent read during parse
prscu number of buffers for current read during parse
prsmis number of misses in library cache during parse
execnt number of execute was called
execpu cpu time spent executing
exeela elapsed time executing
exedsk number of disk reads during execute
exeqry number of buffers for consistent read during execute
execu number of buffers for current read during execute
exerow number of rows processed during execute
exemis number of library cache misses during execute
fchcnt number of times fetch was called
fchcpu cpu time spent fetching
fchela elapsed time fetching
fchdsk number of disk reads during fetch
fchqry number of buffers for consistent read during fetch
fchcu number of buffers for current read during fetch
fchrow number of rows fetched
userid userid of user that parsed the cursor
relog error :

Question:ORA-00368: checksum error in redo log block

Database is can not open,The Error message is :

ORA-00368: checksum error in redo log block

ORA-00353: log corruption near block 60807 change

26080386 time 02/18/2004 19:28:19

ORA-00312: online log 2 thread 1:

'/datacenter/oracle/oradata/test/redo02.log'

Solution:

I guess Your Online redo log no. 2 has been currupted. If your database was in
ARCHIEVELOG mode, then perform incomplete recovery clear that redo log and create
the new one.

If your database was in NOARCHIVELOG mode, then restore the last most recent
backup. (loss of data)

You should also make sure to implement multiplexing of redo logs on different disks
in future.

The following usage is most commonly used:


$ patch -p1 < {/path/to/patch/file}

To apply a patch, one could run the following command in a shell:


$ patch < /path/to/file

Patches can be undone, or reversed, with the '-R' option:


$ patch -R < /path/to/file

When Apache web server is shutdown gracefully then i guess httpd.pid file do not
exist. It exist only when Apache process is running.
If it exist then it prevent starting of Apache Web Server.

My question is what causes httpd.pid file still present even if apache process is
shutdown ?

It can happen if the apache process exits abnormally (hard kill, crash, etc.). In
this case you can remove the pid file before restarting. This pid mechanism is very
common with other processes/apps, syslogd, sshd, etc.
What is the purpose of applsyspub/pub and guest/oracle?

1. APPLSYSPUB/PUB

APPLSYSPUB is a public schema that grants access to the Oracle applications initial
sign-on forms. The default password is PUB. The OS environment variable GWYUID
in .env is for this. There is no need to change it.

APPLYSYPUB has no data objects, only synonyms to APPS.

APPLSYSPUB is a gateway user and used for connection purposes. When you sign on to
Oracle Applications, you initially connect to the public schema, APPLSYSPUB. Once
your user name and password are verified, Oracle Applications connects your to the
APPS schema and allows you to choose a responsibility. You can then use the
professional interface or the HTML interface to access data that resides in a
product schema.

APPLSYSPUB/PUB appears in contextfile, dbc file and env file. Dbc file and env file
are populated with the value in contextfile.

2. GUEST/ORACLE

The application account GUEST is used by the foundation layers in order to


establish user sessions where the user identity is not yet known. End users should
not actually be logging into this account directly.

Some additional points:


2.A. GUEST User is used to connect to RDBMS to render the login page.
The name/password can be anything for GUEST user but it should be same in the .dbc
file and Profile Option (Guest User Password).
Check the GUEST user information (name can be different according to your Instance)
a. Run following SQL:

SQL>select user_name, start_date, end_date from fnd_user where user_name = 'GUEST';

This should return one row, end_date should be NULL or in advance of today's date,
and start_date should be before today's date.

b. Validate the GUEST username/password combinations from the DBC file.


Using the GUEST_USER_PWD value in the DBC file run the following sql:

SQL>select fnd_web_sec.validate_login('GUEST',' ') from dual ;

This should return Yes.

2.B. To set it permanently across the Applications, change the following parameters
in _.xml and run autoconfig on the middle
tier:

What role APPLSYSPUB user plays in oracle applications?

Intially oracle applications connects to this public schema, APPLSYSPUB This schema
has sufficient privileges to perform the authentication of an Applications User
(FND user), which includes running PL/SQL packages to verify the username/password
combination and the privilege to record the success or failure of a login attempt.

The public ORACLE username and password that grants access to the Oracle E-Business
Suite initial sign-on form. The default is APPLSYSPUB/PUB.

Once had changed the APPLSYSPUB password must propagate the change to application
tier configuration files. If the instance is Autoconfig enabled, must edit the
CONTEXT file on each tier prior to running Autoconfig.

In the CONTEXT file, locate the autoconfig variable �s_gwyuid_pass� and set it to
the new password, then run AutoConfig in each applicatins nodes.

Always change password of APPLSYSPUB with FNDCPASS

$ FNDCPASS APPS/[apps_pwd] 0 Y SYSTEM/[system_pwd] ORACLE APPLSYSPUB [new_pwd]

0 & Y are flags for FNDCPASS


0 is request id (request ID 0 is assigned to request ID's which are not submitted
via Submit Concurrent Request Form)
'Y' indicates that this method is directly invoked from the command-line and not
from the Submit Request Form.

If you are not using AutoConfig you must manually edit the following configuration
files :

1) FND_TOP/resource/appsweb.cfg
2) OA_HTML/bin/appsweb.cfg
3) FND_TOP/secure/HOSTNAME_DBNAME.dbc

All application tier processes (Apaches) must be restarted following the password
change and password propagation.

Don't mix up to levels of authorization.


APPLSYSPUB/PUB - is DB username which is used by any utility to
retrieve APPS schema password for further logins.
GUEST/ORACLE - is EBS username with no or max limited privileges to
execute some authorization function.

I think both used during regular an End used authorization process.


First of all connection to DB using APPLSYSPUB/PUB then to EBS using
GUEST/ORACLE.
End of the day APPS user is used to establish final connection.
May be APPS connections came in to the action in between listed above.

What is RRA?

Ans: RRA stands for Report Review Agent. RRA is nothing but FNDFS which is

part of apps listener. RRA job is to pick the log/out file from the file system and

show on the editor when u press view log/out button in �View concurrent request

form�.
What is apps listener?

Ans: Apps listener is the combination of FNDFS and FNDSM. FNDSM is service

manager which will monitor application services on that node when GSM: enable

profile value is �Y�.

How to Take Cold / Offline Backup of database using RMAN?

To take the cold backup by using RMAN, the database must needs to be mounted.

Following example shows Cold backup of database using RMAN

run {
shutdown immediate;
startup mount;
allocate channel c1 device type disk format �/oracle/%U�;
backup database;
release channel c1;
alter database open;
}

How to Take Hot / Online Backup of database using RMAN?

Following example shows Hot backup of database using RMAN

run {
allocate channel c1 device type disk format �/oracle/%U�;
backup database;
release channel c1;
}

How to take backup of archive logs using RMAN?

Following example shows Cold / Offline Backup with archive log,

run {
shutdown immediate;
startup mount;
allocate channel c1 device type disk FORMAT �/orabkp/%U�;
backup database;

allocate channel c2 type disk FORMAT=�/orabkp/arch/Arch_BKP_%t_%U�;

backup archivelog all;


release channel c1;

release channel c2;

alter database open;


}

Following example shows Hot / Online Backup with archive log,


run {
allocate channel c1 device type disk FORMAT �/orabkp/%U�;
backup database;

allocate channel c2 type disk FORMAT=�/orabkp/arch/Arch_BKP_%t_%U�;

backup archivelog all;


release channel c1;

release channel c2;

What is RMAN Full Backup?

RMAN Full backup is different from whole database backup. Whole database backup
contains all datafiles, control files, archive log files of target database. Where
as Full backup may contain one or more datafiles, control files and archive log
files.

In Full backup oracle server process reads all files of database and copies all
blocks in to backup sets. It skips the datafile blocks that have never changed or
used. Full backup contains all datafile block.

It doesn�t happen with control file or archive log file. Means, Server process does
not skips blocks when backing up control file or archive log file.

Full backup is not a part of incremental backup, we can create and restore full
backup of datafiles, control files, archive log files using this backup.

How to take RMAN Full backup?

Full backup can be taken with the help of BACKUP FULL command.

Following example shows Full backup,

run {
allocate channel c1 device type disk FORMAT �/orabkp/%U�;
BACKUP FULL;

release channel c2;

[email protected]
[email protected]
[email protected]

Oracle Apps DBA

HI,

I have 4+ years of IT Experience with 3+ Years of experience as a oracle apps


DBA.My resume, which is below, provides additional information on my background and
qualifications.
I look forward to hearing from you as soon as possible to arrange time for an
interview.Please find an word doc attachment.
Thanks & Regards
Tirath
9873833101

ORACLE_HOME=/u03/tirdb/devdb/devdb/9.2.0

HOME=/u03/tirdb

DB_HOME=/u01/oracle/playdb/9.2.0; export DB_HOME


IAS_HOME=/u01/oracle/playora/iAS; export IAS_HOME
APACHE_HOME=$IAS_HOME/Apache/Apache; export APACHE_HOME
APPL_TOP=/u01/oracle/playappl; export APPL_TOP
COMMON_TOP=/u01/oracle/playcomn; export COMMON_TOP
CLIENT_HOME=/u01/oracle/playora/8.0.6; export CLIENT_HOME

http://appserver1.oracleace.com:8049/oa_servlets/AppsLogin

HOME_URL VARCHAR2(240)
QUERY_SET NOT NULL NUMBER
MAX_ROWS NUMBER(15)
WEBMASTER_EMAIL VARCHAR2(80)
SESSION_COOKIE_NAME VARCHAR2(30)
WINDOW_COOKIE_NAME VARCHAR2(30)
SESSION_COOKIE_DOMAIN VARCHAR2(30)
SESSION_COOKIE VARCHAR2(240)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NUMBER

select
QUERY_SET,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOG
IN from icx_parameters

insert into ICX_PARAMETERS


values('http://appserver1.oracleace.com:8049/OA_HTML/AppsLogin',25,'','','','','','
',1,'15-MAY-00',1,'15-MAY-00',1);
ALTER TABLESPACE TEMP ADD TEMPFILE '/u03/tirapps/UATDATA/temp01.dbf' size 100M;

select FILE_NAME from dba_data_files where tablespace_name = 'TEMP';

CREATE TEMPORARY TABLESPACE TEMP TEMPFILE '/u03/oradata/TESTDB/temp_01.dbf' SIZE


1000M AUTOEXTEND ON NEXT 100M MAXSIZE 5000M
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1024K

Archive Log Related Commands


Start Archive Logging alter system archive log start;
Stop Archive Logging alter system archive log stop;
Force archiving of all log files alter system archive log all;
Force archiving of the current log file alter system archive log current;

@/u03/tirdb/proddb/9.2.0/begin_bk.sql;
@/u03/tirdb/proddb/9.2.0/end_bk.sql;

Autoconfig in Oracle Apps R12 adautocfg.sh

Autoconfig is tool/utility to reconfigure your Oracle Application configuration


files using context (XML file) and template files, more information here and here
This post covers steps to run Autoconfig in Oracle Apps R12 (steps are similar to
11i, only change is location of autoconfig script and log files)
.
A) Running Autoconfig on R12 environment Application Tier

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Oracle Apps DBA

HI,

I have 4+ years of IT Experience as a oracle apps DBA.My resume, which is below,


provides additional information on my background and qualifications.I look forward
to hearing from you as soon as possible to arrange time for an interview.Please
find an word doc attachment.

Thanks & Regards


Tirath
8929694954

ear Mrs. Mellish:

It was certainly wonderful news when you called this afternoon to offer me the
position as assistant buyer for Greenley Corp. Please consider this letter my
formal acceptance.

I am pleased to accept your offer at a salary of $29,000 annually.

As we agreed, my starting date will be July 28 to enable me to finish a summer


computer class that will enhance my skills for Greenley Corp.

I also understand that I will receive full company pay and benefits during the 12-
week training program and that I am considered probationary during that time.

Thank you again, Mrs. Mellish, for offering me this wonderful opportunity, and do
let me know if I can do anything in advance of my start date to facilitate the
paperwork, or if there are any areas you'd like me to be reading up on.

Thank you for offering me the position of Assistant Accountant with Open Door
Company. I am pleased to accept this offer and look forward to starting employment
with your company on November 1, 2011.

As we discussed my starting salary will be $40 000 and health and life insurance
benefits will be provided after 60 days of employment.

Thank you again for giving me this wonderful opportunity. I am eager to join your
team and make a positive contribution to the company.

If there is any further information or paperwork you need me to complete, please


let me know and I will arrange it as soon as possible.

Sincerely,
Extensive experience on supporting complex production systems
Expertise in Cloning Database and Applications.
Extensive knowledge on AD Utilities
Exposure to RMAN Backup and recovery.
Expertise in various Recovery methods and scenarios.
Expertise on 11i and R12.
Experienced in different Backup methods.
Well versed with export/import and export dump import dump tools
Having expert knowledge in Configuring and maintaining RMAN.
Having expert knowledge in Database up gradation.
Good experience in Creating Users, Responsibilities, Menus and Form
Functions.
Troubleshoot performance issues and bugs within packages, using explain plan
and TKPROF.
Monitor the growth of database to ensure the smooth running of daily
activities.
Monitoring of alert log files and trace files and periodic purge.
Having good experience with the tools like data pump(Expdp & Impdp) and
traditional export/import.
Monitoring the Concurrent Managers & Tuning the concurrent Programs
Cloning from Production and development instances.
Converted forms SOCKET to SERVLET forms mode.
Good Knowledge on AWR and performance tuning.

Dear Shiva
,
As we discussed , I am very pleased to accept the position of software engineer
with �Company name�. Thank you for the opportunity. I am eager to make a positive
contribution to the company and to work with everyone on the �Company name�team.
Again, thank you.

Thanks & Regards


Tirath Attri
9873833101

Dear Shiva
,
As we discussed , I am very pleased to accept the offer . Thank you for the
opportunity. I am eager to make a positive contribution to the company and to work
with everyone on the Ionnor solutions team.Again, thank you.

Thanks & Regards


Tirath Attri
9873833101

Dear Shiva,
I am very pleased to accept your offer of a position as a software Enginner. I have
been very impressed with everyone whom I have met during my interviews and I look
forward to joining your staff.

Thank you for everything that you did to make the interviewing process such a
pleasant experience. I am very excited to have the opportunity to become a part of
IONNOR.

Thanks & Regards


Tirath Attri
9873833101

[email protected]

Town�s Pride, Site # 7,8,Near PCA Stadium,Mohali,Phase-9.


Phone � 0172 (2214297/ 5097615).

Dear Mr. Tirath,


Further to our discussion, we are pleased to offer you the Job of Senior Software
Engineer at IONNOR Solutions.
Kindly find the attached copy of your Offer Letter and revert to this email with
your acceptance, we would like you to join ASAP or latest by on or before 12th
December 2011.
On the date of joining kindly bring the following documents along with you:
1. Four passport size photographs and one 6� X 8� size photograph
2. Original Education certificates with one photocopy of each
3. Experience Certificate/s
4. Latest Salary slip
5. Residence proof (Passport/Ration Card/ PAN/Driving License)
6. Passport in Original and one Photocopy
Apart from the above documents you would be required to submit copy of Form 16, if
any (as income proof) and send us the filled new joiner form ASAP to proceed with
making necessary arrangements for joining.
NOTE: Request you to send us the scanned copies of above mentioned documents.
Reporting Time-10:00 AM IST
Looking forward to see you soon.
Thanks and Regards,

Siva Sankar Padhi,


Assistant Manager � Recruitments.

ION NOR
E-96/E-50, Phase VIII, S.A.S Nagar,
Mohali -160071, Punjab, India
Tel: +91 172 4306000/01/02/03/04
Fax: +91 172 4306005
www.ionnor.com
Town�s Pride, Site # 7,8,Near PCA Stadium,Mohali,Phase-9.
Phone � 0172 (2214297/ 5097615).

You might also like