alter table schemaname.tablename move tablespace same_tablespace nologging; select 'alter index '||owner||'.

'||index_name||' rebuild nologging;' from dba_indexes where owner = 'xxxx' and table_name in ( ) The following parameters can now be altered using the ALTER SYSTEM syntax rather than needing the server to be bounced:
• • • • • •

SHARED_POOL_SIZE LARGE_POOL_SIZE OPEN_CURSORS SESSION_CACHED_CURSORS CPU_COUNT LOG_CHECKPOINTS_TO_ALERT

alter table schemaname.tablename move;-------will move the table in same tablespace and with same name but remove the fraganmantation. alter table WILLOW2K.MUL_QUOTE_ELE move; then rebuilt the index : ALTER INDEX schemaname.tablename REBUILD ONLINE; ALTER INDEX index WILLOW2K.X_QIPARM_1 rebuild ONLINE;

To drop and recreate the temp tablespace :

SQL> drop tablespace temp SQL> create temporary tablespace temp tempfile '/oradata1/oradata/uatfrwi/prodfrwi_temp01.dbf' size 1951m; SQL> alter database default temporary tablespace temp; alter database default temporary tablespace temp *

ERREUR à la ligne 1 : ORA-02231: option absente ou non valide pour ALTER DATABASE SQL> select count(1), temporary_tablespace from dba_users group by temporary_tablespace; COUNT(1) TEMPORARY_TABLESPACE ---------- -----------------------------2 SYSTEM 944 TEMP SQL> alter tablespace temp add tempfile '/oradata20/oradata/uatfrwi/prodfrwi_temp02.dbf' size 1951m; Espace de tables (TABLESPACE) modifié. dba_tables;…………………….to find last analyzed date dba_segment v$sort_segment SQL> exec dbms_stats.gather_schema_stats('IMANAGE',20,NULL,NULL,NULL,'ALL', TRUE) ; PL/SQL procedure successfully completed. SQL> show user USER is "SYS" SQL> !uname -a SunOS gecfsprd11 5.8 Generic_117350-36 sun4u sparc SUNW,Sun-Fire

1) Location of apps Password : cmfstctdbd01(oracle): grep apps/util/dba/bin/csg01/csg01_all.sh ORA_SCRIPTS="/mmfd88/oracle/mmfd88db/9.2.0/appsutil/scripts/mmfd88 _cmfstctdbd01" # ${ORA_SCRIPTS}/addlnctl.sh start apps_mmfd88 ${APPL_SCRIPTS}/adstrtal.sh apps/apps11id88

${APPL_SCRIPTS}/adstpall.sh apps/apps11id88 # ${ORA_SCRIPTS}/addlnctl.sh stop apps_mmfd88 2) How to change the apps password: Shut down the app environment Start up the database and listener Export APPLSYS.FND_USER and APPLSYS.FND_ORACLE_USERID tables. If you are changing the APPS Password in addition to product passwords, you must first run the FNDCPASS command as follows to change the APPLSYS (and APPS automatically changes) password (in this example, the password is changed to welcome): FNDCPASS apps/crep34sppa req3sppa o system/sysdba1 SYSTEM APPLSYS

Run the FNDCPASS command as follows to change the Module (like GL) password (in this example, the password is changed to welcome (there is a script in /util/dba/mmfd45/admin/changepass.sh) : FNDCPASS apps/req43sppa 0 Y system/sysdba1 ORACLE GL req43laog FNDCPASS apps/req43sppa 0 Y system/sysdba1 ORACLE fa req43laog FNDCPASS apps/req43sppa 0 Y system/sysdba1 ORACLE ap req43laog FNDCPASS apps/req43sppa 0 Y system/sysdba1 ORACLE po req43laog FNDCPASS apps/req43sppa 0 Y system/sysdba1 ORACLE hr req43laog FNDCPASS apps/req43sppa 0 Y system/sysdba1 ORACLE ax req43laog FNDCPASS apps/req43sppa 0 Y system/sysdba1 ORACLE ak req43laog FNDCPASS apps/req43sppa 0 Y system/sysdba1 ORACLE ar req43laog FNDCPASS apps/req43sppa 0 Y system/sysdba1 ORACLE ce req43laog If you changed the APPS (and APPLSYS) password, update the password in these files: iAS_TOP/Apache/modplsql/cfg/wdbsvr.app ORACLE_HOME/reports60/server/CGIcmd.dat Change APPS Password on the /util/dba/bin/$SID/$SID_all.sh script Change APPS Password in the analyze job scheduled in Oracle’s cron. _______________________________________________________________ _________

Optional step if you change the APPLSYSPUB password (not normally changed) If you changed the APPLSYSPUB password, update the password in these files: FND_TOP/resource/appsweb.cfg OA_HTML/bin/appsweb.cfg FND_TOP/secure/<host_name>_<dbname>.dbc mmfp47 - uk10

3)TO START THE WORKFLOW MAILER Set Environment - APPSORA.env Run command --nohup WFMAIL apps/redkite 0 Y $FND_TOP/resource/wfmail.cfg & it will execute the scripts - display the oracle workflow mailer ... ( enter after it stops) after that Bounced Apache

4) Interface scripts: /mmfp77/custom/db_server/zzgeint/custom/deployment/inbound_interfaces/bin /mmfp77/custom/db_server/zzgeint/custom/deployment/inbound_interfaces/bin ciohcmfglp02(oracle): nohup ./gl_daemon.sh & [1] 26654 ciohcmfglp02(oracle): Sending output to /export/home/oracle/nohup.out ciohcmfglp02(oracle): nohup ./gecc_intf_main.sh & [2] 27420 ciohcmfglp02(oracle): Sending output to /export/home/oracle/nohup.out Getting Interface Code Script starting: Wed Nov 14 09:19:13 EST 2007" hfsapps (mmfp77)$ps -ef|grep hfsapps

hfsapps 20426 959 0 08:49:42 ? 0:00 in.ftpd hfsapps 29519 27141 0 09:19:13 pts/7 0:00 sh gecc_intf_main.sh hfsapps 27141 26945 0 09:14:03 pts/7 0:00 -sh hfsapps 413 29690 0 09:19:59 pts/7 0:00 sleep 10 hfsapps 29690 27141 0 09:19:19 pts/7 0:00 /bin/ksh gl_daemon.sh hfsapps 29525 29519 0 09:19:13 pts/7 0:00 sleep 600 hfsapps 427 27141 0 09:20:07 pts/7 0:00 grep hfsapps

5) TO START THE WORKFLOW MAILER Set Environment - APPSORA.env Run command --nohup WFMAIL apps/redkite 0 Y $FND_TOP/resource/wfmail.cfg & it will execute the scripts - display the oracle workflow mailer ... ( enter after it stops) after that Bounced Apache 7) Patch applied : select count(1) from apps.ad_bugs where BUG_NUMBER='3123915';

8)To get SID fro PID : select sid from v$session where PADDR = (select ADDR from v$process where spid =&osprd); 9) To get sid from concurrent request : Select req.request_id, request_date,actual_completion_date,status_code,sess.sid,sess.audsid,

sess.process,sess.status,sess.module,action from v$session sess , apps.fnd_concurrent_requests req where sess.audsid=req.oracle_session_id and sess.PROCESS=req.os_process_id and req.request_id=<request id>;

6) Now we need to run the autoconfig. Backup the following files before running autoconfig $APPL_TOP/*.env $OA_HMTL/bin/<Context_Name>.cfg $FND_TOP/resource/<Context_Name>.cfg $IAS_ORACLE_HOME/Apache/Apache/conf/httpd.conf $IAS_ORACLE_HOME/Apache/Jserv/etc/ssp_init.txt Finally run autoconfig on both the servers apps node, check all the cfg and txt files...for the changes... Bounce everything...check the application and discoverer... ========================================================================= ===== 7) RUN CMCLEAN TAKE CCM DOWN RUN THE FOLLIWING SQL runing cmclean. On DB tier 1.down the concureent manager 2sqlplus as spps/appspassword. >@C:\cmclean.sql REM REM FILENAME REM cmclean.sql REM DESCRIPTION REM Clean out the concurrent manager tables REM NOTES REM Usage: sqlplus <apps_user/apps_passwd> @cmclean REM REM REM $Id: cmclean.sql,v 1.4 2001/04/07 15:55:07 pferguso Exp $ REM REM REM +======================================================================+

set verify off; set head off; set timing off set pagesize 1000 column manager format a20 heading 'Manager short name' column pid heading 'Process id' column pscode format a12 heading 'Status code' column ccode format a12 heading 'Control code' column request heading 'Request ID' column pcode format a6 heading 'Phase' column scode format a6 heading 'Status' WHENEVER SQLERROR EXIT ROLLBACK; DOCUMENT WARNING : Do not run this script without explicit instructions from Oracle Support *** Make sure that the managers are shut down *** *** before running this script *** *** If the concurrent managers are NOT shut down, *** *** exit this script now !! *** accept answer prompt 'If you wish to continue type the word ''dual'': ' set feed off select null from &answer; set feed on REM Update process status codes to TERMINATED prompt prompt -- Updating invalid process status codes in FND_CONCURRENT_PROCESSES set feedback off set head on break on manager SELECT concurrent_queue_name manager, concurrent_process_id pid, process_status_code pscode FROM fnd_concurrent_queues fcq, fnd_concurrent_processes fcp WHERE process_status_code not in ('K', 'S') AND fcq.concurrent_queue_id = fcp.concurrent_queue_id AND fcq.application_id = fcp.queue_application_id; set head off set feedback on

UPDATE fnd_concurrent_processes SET process_status_code = 'K' WHERE process_status_code not in ('K', 'S'); REM Set all managers to 0 processes prompt prompt -----------------------------------------------------------------------prompt -- Updating running processes in FND_CONCURRENT_QUEUES prompt -- Setting running_processes = 0 and max_processes = 0 for all managers UPDATE fnd_concurrent_queues SET running_processes = 0, max_processes = 0; REM Reset control codes prompt prompt -----------------------------------------------------------------------prompt -- Updating invalid control_codes in FND_CONCURRENT_QUEUES set feedback off set head on SELECT concurrent_queue_name manager, control_code ccode FROM fnd_concurrent_queues WHERE control_code not in ('E', 'R', 'X') AND control_code IS NOT NULL; set feedback on set head off UPDATE fnd_concurrent_queues SET control_code = NULL WHERE control_code not in ('E', 'R', 'X') AND control_code IS NOT NULL; REM Also null out target_node for all managers UPDATE fnd_concurrent_queues SET target_node = null; REM REM Set all 'Terminating' requests to Completed/Error Also set Running requests to completed, since the managers are down

prompt prompt -----------------------------------------------------------------------prompt -- Updating any Running or Terminating requests to Completed/Error set feedback off set head on SELECT request_id request, phase_code pcode,

status_code scode FROM fnd_concurrent_requests WHERE status_code = 'T' OR phase_code = 'R' ORDER BY request_id; set feedback on set head off UPDATE fnd_concurrent_requests SET phase_code = 'C', status_code = 'E' WHERE status_code ='T' OR phase_code = 'R';

REM REM

Set all Runalone flags to 'N' This has to be done differently for Release 10

prompt prompt -----------------------------------------------------------------------prompt -- Updating any Runalone flags to 'N' prompt set serveroutput on set feedback off declare c pls_integer := dbms_sql.open_cursor; upd_rows pls_integer; vers varchar2(50); tbl varchar2(50); col varchar2(50); statement varchar2(255); begin select substr(release_name, 1, 2) into vers from fnd_product_groups; if vers >= 11 then tbl := 'fnd_conflicts_domain'; col := 'runalone_flag'; else tbl := 'fnd_concurrent_conflict_sets'; col := 'run_alone_flag'; end if;

statement := 'update ' || tbl || ' set ' || col || '=''N'' where ' || col || ' = ''Y'''; dbms_sql.parse(c, statement, dbms_sql.native); upd_rows := dbms_sql.execute(c); dbms_sql.close_cursor(c); dbms_output.put_line('Updated ' || upd_rows || ' rows of ' || col || ' in ' || tbl || ' to ''N'''); end; /

prompt prompt -----------------------------------------------------------------------prompt Updates complete. prompt Type commit now to commit these updates, or rollback to cancel. prompt -----------------------------------------------------------------------prompt set feedback on REM <= Last REM statment ----------------------------------------------------========================================================================= ================================================================ To check the installed language SQL> select NLS_LANGUAGE from fnd_languages where installed_flag in ('B','I'); Should give NLS_LANGUAGE -----------------------------AMERICAN JAPANESE update APPLSYS.FND_PROFILE_OPTION_VALUES 2 set PROFILE_OPTION_VALUE ='http://stctcmfglq01.mmf.capital.ge.com:8038/OA_HTML/' 3 where PROFILE_OPTION_VALUE ='http://ciohcmfglp02.mmf.capital.ge.com:8050/OA_HTML/'; select PROFILE_OPTION_ID,PROFILE_OPTION_VALUE APPLSYS.FND_PROFILE_OPTION_VALUES where PROFILE_OPTION_VALUE '%ciohcmfglp02%' or PROFILE_OPTION_VALUE like '%mmfp67%' ; from like

update APPLSYS.FND_PROFILE_OPTION_VALUES set PROFILE_OPTION_VALUE ='' where PROFILE_OPTION_VALUE ='ciohcmfglp02.mmf.capital.ge.com'; Tar files creation : 1) on server mmfdbq0003 /mmfq43/oracle/mmfq43db /mmfq43/oracle/mmfq43appl /mmfq43/oracle/mmfq43comn /mmfq43/oracle/mmfq43ora under the mountpoint /mmfq43/oracle 2) on server mmfglq0002 /mmfq43/oracle/mmfq43appl /mmfq43/oracle/mmfq43ora /mmfq43/oracle/mmfq43comn under the mountpoint /mmft32/oracle please transfer the above created tar files 1)from server mmfdbq0003:/mmfq43/oracle mmfq43db.07072006.tar mmfq43comn.07072006.tar mmfq43ora.07072006.tar mmfq43appl.07072006.tar to server stctcmfdbq01:/mmfu43/oracle 2) from server mmfglq002:/mmft32/oracle mmfq43comn.07072006.tar mmfq43appl.07072006.tar mmfq43ora.07072006.tar to server stctcmfglq01:/mmfu43 3) also please transfer the backup folders

/backup01/oradata/mmfq43/Saveb060706_1833 /backup02/oradata/mmfq43/Saveb060706_1833 /backup03/oradata/mmfq43/Saveb060706_1833 /backup04/oradata/mmfq43/Saveb060706_1833 /backup05/oradata/mmfq43/Saveb060706_1833 /backup06/oradata/mmfq43/Saveb060706_1833 to stctcmfdbq01:/mmfu43/oracle/mmfu43data

/mmfd67/oracle/mmfd67comn/admin/log/mmfd67_cmfstctgld02/10081435.log

/util/dba/bin/coldbackup.sh -p6 -s mmfq43 /backup01/oradata /backup02/oradata /backup03/oradata /backup04/oradata /backup05/oradata /backup06/oradata > /dev/null 2>&1 & Oracle Database : 1) To compile invalid objects : Sql> @$ORACLE_HOME/rdbms/utlrp.sql select status,object_type,object_name from dba_objects where owner='ESAM' and status='INVALID’

2) Disable all constraints for a Schema??? SQL> select 'alter table '||owner||'.'||table_name||' modify constraint '||constraint_name||' disable;' 2* from dba_constraints where owner = 'XXXXXXXXXXX' Read Only Access

select 'GRANT SELECT ON '||OWNER||'.'||OBJECT_NAME ||' TO CS_ITO_Ops;' from dba_objects where owner='UPCS' AND object_type in ('TABLE','SEQUENCE', 'SYNONYM')

3) How to create database link : create database link mmfp12_ls_qa connect to adminotfs identified by adminpass using '(DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=3.131.88.85)(PORT=1521)) (CONNECT_DATA=(SID=mmfp12)))'; mmfp12_ls_qa : link name '(DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=3.131.88.85)(PORT=1521)) (CONNECT_DATA=(SID=mmfp12)))'; : Target database connect to adminotfs identified by adminpass : Target database username and pasword

To check its working : SQL> select * from dual@csg01_mmfju67; D X 4)How to create user in oracle Database: CREATE USER username IDENTIFIED BY password DEFAULT TABLESPACE Tablespace name TEMPORARY TABLESPACE temporary Tablespace name QUOTA UNLIMITED ON Tablespace name; GRANT CREATE session, Select, create,Insert, Update, Delete rows,Delete sequences,Delete indices,Delete constraints TO username; 5) How to start lisner :

/util/dba/bin/tns_lsnr_cntl.sh start 6) select segment_name, partition_name, tablespace_name, bytes/1024/1024 size_in_MB from dba_segments where segment_name like 'INV_APPLIED_PAYMENTS%' and segment_type not in ('TABLE','SYNONYM') order by 3 7) To unlock the user account : Step : Check the status of user account SQL> select USERNAME,ACCOUNT_STATUS,EXPIRY_DATE from dba_users where username like 'AGCREGREP'; USERNAME ACCOUNT_STATUS EXPIRY_DATE ------------------------------ -------------------------------- --------------AGCREGREP LOCKED Step 2 : If it is locled then unlocked it : SQL> alter user AGCREGREP account unlock; User altered. Step 3 : Now check the status of account SQL> select USERNAME, ACCOUNT_STATUS from dba_users where username like 'AGCREGREP'; USERNAME ACCOUNT_STATUS ------------------------------ -------------------------------AGCREGREP OPEN 8) Parameters For The Import Oracle SID = cfd49 Host = mmfd0004 Compressed Dump File = /backup09/oradata/cfd49/export_WORKFLOW2_070702_3730.dmp.Z Parfile = /util/dba/parfiles/impworkflow2.par Report File = /util/dba/cfd49/reports/cfd49_import_15694.lst

select 'Drop '||object_type||' '||owner||'.'||object_name||' cascade constraints;' from dba_objects where owner='WORKFLOW2' and object_type='TABLE' select count(*),object_type from dba_objects where owner='WORKFLOW2' group by object_type; select 'Drop '||object_type||' '||owner||'.'||object_name||';' from dba_objects where owner='WORKFLOW2'; SQL> select count(*) from dba_objects where owner='WORKFLOW2'; COUNT(*) ---------1151 select distinct owner from dba_segments where owner like '%BBC%'

SQL> select object_type,count(*) from dba_objects where owner='WORKFLOW2' group by object_type; OBJECT_TYPE COUNT(*) ------------------ ---------DATABASE LINK 15 select 'Drop '||object_type||' '||owner||'.'||object_name||' cascade constraints;' from dba_objects where owner='HFSHBR' and object_type='TABLE' select count(*),object_type from dba_objects where owner='HFSHBR' group by object_type; select 'Drop '||object_type||' '||owner||'.'||object_name||';' from dba_objects where owner='HFSHBR';

nohup /util/dba/bin/compressed_import.sh cfd49 impworkflow2.par /backup09/oradata/cfd49/export_WORKFLOW2_070702_3730.dmp.Z & CREATE SEQUENCE UCM_OWNER.REM_STAGE_S START WITH 10001 MAXVALUE 999999999999999 MINVALUE 1 NOCYCLE CACHE 10 ORDER;

CREATE OR REPLACE TRIGGER UCM_OWNER.REM_STAGE_AUTONUM BEFORE INSERT ON UCM_OWNER.REM_STAGE FOR EACH ROW BEGIN IF :NEW.ROW_ID IS NULL THEN SELECT UCM_OWNER.REM_STAGE_S.NEXTVAL INTO :NEW.ROW_ID FROM DUAL; END IF; END; 9) How to create public synonym: create public synonym REM_STAGE_AUTONUM for UCM_OWNER.REM_STAGE_AUTONUM create public synonym REM_STAGE_AUTONUM for REM_STAGE_AUTONUM Create synonym for particular schema : create synonym U501603105.ed_proc for EDFDBE.call_volume_file grant execute on U501603105.ed_proc to U501603105 select 'CREATE SYNONYM KINTANA.' ||OBJECT_NAME|| ' FOR '|| OWNER||'.'||OBJECT_NAME|| ';' from dba_objects where object_type='PROCEDURE' AND OWNER='KINTANA' mmanuel Deva... directory name is DIR_Directory Emmanuel Deva... and the schema name is GEC_HFS_Directory Emmanuel Deva... i need access to these four tables, Emmanuel Deva... TBL_EXT_DIR_DAILY_UPDATES TBL_EXT_DIR_DAILY_UPDATES_TEST TBL_EXT_DIR_DELETES TBL_EXT_DIR_WEEKLY_UPDATES Please provide full access to "gec_hfs_directory_ora" user name. we need to select and edit all these four tables, TBL_EXT_DIR_DAILY_UPDATES

TBL_EXT_DIR_DAILY_UPDATES_TEST TBL_EXT_DIR_DELETES TBL_EXT_DIR_WEEKLY_UPDATES. which present in "GEC_HFS_DIRECTORY" schema in "New_DevDB" database create synonym GEC_HFS_DIRECTORY_ORA.TBL_EXT_DIR_DELETES for GEC_HFS_DIRECTORY.TBL_EXT_DIR_DELETES grant edit on GEC_HFS_DIRECTORY_ORA.TBL_EXT_DIR_DAILY_UPDATES_TEST to GEC_HFS_DIRECTORY_ORA grant read on DIRECTORY DIR_DIRECTORY to GEC_HFS_DIRECTORY_ORA;

select 'CREATE SYNONYM U501603105.' ||OBJECT_NAME|| ' FOR '|| OWNER||'.'||OBJECT_NAME|| ';' from dba_objects where object_type='PROCEDURE' AND OWNER='EDFCON' 10) How to resize datafile : alter database datafile ' 11) Imp sql : select name from v$database; select tablespace_name from dba_tablespaces select sum(bytes)/1024 from dba_data_files where tablespace_name like 'UNDO_TBS!'; select sum(bytes)/1024 from dba_free_space where tablespace_name like 'UNDO%' select file_name from dba_data_files; sso nihar sir 500931691 alter tablespace APPS_TS_INTERFACE add datafile ‘/mmft90/oracle/mmft90data/a_int02.dbf’ size 1955m ' resize 3999m;

13) To find the undotable space size: select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='UNDO_RBS1' 14) How to broken the job : SQL> exec dbms_job.broken(245,TRUE); PL/SQL procedure successfully completed. SQL> commit; cmfalgapora01(oracle): date Sun Aug 20 01:32:55 EDT 2006 cmfalgapora01(oracle): uptime 1:33am up 1:08, 2 users, load average: 0.06, 0.06, 0.07 cmfalgapora01(oracle): host Usage: host [-aCdlrTwv] [-c class] [-n] [-N ndots] [-t type] [-W time] [-R number] hostname [server] -a is equivalent to -v -t * -c specifies query class for non-IN data -C compares SOA records on authoritative nameservers -d is equivalent to -v -l lists all hosts in a domain, using AXFR -i Use the old IN6.INT form of IPv6 reverse lookup -N changes the number of dots allowed before root lookup is done -r disables recursive processing -R specifies number of retries for UDP packets -t specifies the query type -T enables TCP/IP mode -v enables verbose output -w specifies to wait forever for a reply -W specifies how long to wait for a reply cmfalgapora01(oracle): hostname cmfalgapora01 cmfalgapora01(oracle): ps-ef | grep -i inet ksh: ps-ef: not found cmfalgapora01(oracle): ps -ef |grep -i inet root 595 1 0 00:26:07 ? 0:01 /usr/lib/inet/inetd start root 720 1 0 00:26:35 ? 0:01 /usr/lib/inet/xntpd oracle 7935 7880 0 01:34:36 pts/3 0:00 grep -i inet cmfalgapora01(oracle): ============================================================ ============

Valid Oracle SIDs are : Num Oracle Sid Num Oracle Sid Num Oracle Sid 1 default 2 mdwp04 3 mmfp01 4 mmfp05 5 r8163 6 r8163s 7 r8172 8 r817 9 r9201 10 r9204_64 11 vdwp03 Type the Number of the Oracle SID or e to Exit : 11 Oracle SID = vdwp03, Oracle Home = /u01/app/oracle/product/9.2.0.4_64 mmfdwp0002(oracle): sqlplus "/ as sysdba" SQL*Plus: Release 9.2.0.4.0 - Production on Sun Dec 31 20:52:19 2006 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.4.0 - Production SQL> select name from v$database; NAME --------VDWP03 SQL> select count(*) from obid.jct0012_acctsched; COUNT(*) ---------3588698 SQL> select count(*) from obid.jct2612_acctsched ; COUNT(*) ---------0 SQL> ALTER SESSION ENABLE PARALLEL DML; Session altered.

SQL> INSERT /*+ PARALLEL(jct2612_acctsched,12) */ INTO jct2612_acctsched SELECT /*+ PARALLEL(jct0012_acctsched ,12) */ * FROM jct0012_acctsched ; INSERT /*+ PARALLEL(jct2612_acctsched,12) */ INTO jct2612_acctsched SELECT /*+ PARALLEL(jct0012_acctsched ,12) */ * FROM jct0012_acctsched * ERROR at line 1: ORA-00942: table or view does not exist SQL> conn obid Enter password: ERROR: ORA-01017: invalid username/password; logon denied Warning: You are no longer connected to ORACLE. SQL> conn obid_user/obid_user Connected. SQL> obid_user/obid_user SP2-0734: unknown command beginning "obid_user/..." - rest of line ignored. SQL> conn obid/obid12 ERROR: ORA-01017: invalid username/password; logon denied Warning: You are no longer connected to ORACLE. SQL> conn obid/obidzz ERROR: ORA-01017: invalid username/password; logon denied SQL> conn obid/obid ERROR: ORA-01017: invalid username/password; logon denied SQL> conn / as sysdba: SP2-0306: Invalid option. Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] where <logon> ::= <username>[/<password>][@<connect_string>] | / SQL> conn / as sysdba Connected.

SQL> INSERT /*+ PARALLEL(obid.jct2612_acctsched,12) */ INTO obid.jct2612_acctsched SELECT /*+ PARALLEL(obid.jct0012_acctsched , 12) */ * FROM obid.jct0012_acctsched ; ^CINSERT /*+ PARALLEL(obid.jct2612_acctsched,12) */ INTO obid.jct2612_acctsched SELECT /*+ PARALLEL(obid.jct0012_acctsched , 12) */ * FROM obid.jct0012_acctsched * ERROR at line 1: ORA-01013: user requested cancel of current operation

SQL> ^C SQL> SQL> SQL> select count(*) from obid.jct2612_acctsched ; COUNT(*) ---------0 SQL> ALTER SESSION ENABLE PARALLEL DML; Session altered. SQL> INSERT /*+ PARALLEL(obid.jct2612_acctsched,12) */ INTO obid.jct2612_acctsched SELECT /*+ PARALLEL(obid.jct0012_acctsched , 12) */ * FROM obid.jct0012_acctsched ; INSERT /*+ PARALLEL(obid.jct2612_acctsched,12) */ INTO obid.jct2612_acctsched SELECT /*+ PARALLEL(obid.jct0012_acctsched , 12) */ * FROM obid.jct0012_acctsched * ERROR at line 1: ORA-01631: max # extents (200) reached in table OBID.JCT2612_ACCTSCHED SQL> INSERT /*+ PARALLEL(obid.jct2612_acctsched,12) */ INTO obid.jct2612_acctsched SELECT /*+ PARALLEL(obid.jct0012_acctsched , 12) */ * FROM obid.jct0012_acctsched ; 3588698 rows created. SQL> select count(*) from obid.jct2612_acctsched ; ^Cselect count(*) from obid.jct2612_acctsched

* ERROR at line 1: ORA-01013: user requested cancel of current operation

SQL> select count(*) from obid.jct0013_subledg ; COUNT(*) ---------50100749 SQL> commit; Commit complete. SQL> select count(*) from obid.jct2612_acctsched ; ^Cselect count(*) from obid.jct2612_acctsched * ERROR at line 1: ORA-01013: user requested cancel of current operation

SQL> select count(*) from obid.jjct2613_subledg; select count(*) from obid.jjct2613_subledg * ERROR at line 1: ORA-00942: table or view does not exist SQL> select count(*) from obid.jct2613_subledg; COUNT(*) ---------0 SQL> INSERT /*+ PARALLEL(obid.jct2613_subledg,12) */ INTO obid.jct2613_subledg SELECT /*+ PARALLEL(obid.jct0013_subledg ,12) */ * FROM obid.jct0013_subledg ; INSERT /*+ PARALLEL(obid.jct2613_subledg,12) */ INTO obid.jct2613_subledg SELECT /*+ PARALLEL(obid.jct0013_subledg ,12) */ * FROM obid.jct0013_subledg * ERROR at line 1:

ORA-01631: max # extents (200) reached in table OBID.JCT2613_SUBLEDG SQL> INSERT /*+ PARALLEL(obid.jct2613_subledg,12) */ INTO obid.jct2613_subledg SELECT /*+ PARALLEL(obid.jct0013_subledg ,12) */ * FROM obid.jct0013_subledg ;

select * from v$session select * from v$session_longops where time_remaining>0 select * from dba_segments where segment_name=upper('jct2613_subledg') ALTER index OBID.jct2634_asset_info_ix STORAGE (MAXEXTENTS UNLIMITED)

insert into obid.jct2634_asset_info select * from obid.jct0034_asset_info; commit rollback truncate table obid.jct2634_asset_info reuse storage select count(1) from obid.jct2634_asset_info; jct0034_asset_info to jct2634_asset_info

select * from dba_users select 4802969600/(1024*1024*1024) from dual select sum(bytes)/(1024*1024*1024) from dba_free_space where tablespace_name='OBID_DATA1'

SQL> select default_tablespace from dba_users where username ='OBID'; DEFAULT_TABLESPACE -----------------------------OBID_DATA1 SQL> select sum(bytes)/1024/1024 from dba_free_space where tablespace_name='OBID_DATA1'; SUM(BYTES)/1024/1024 -------------------3916.04688 SQL> select name from v$database; NAME --------IVFS_T14 SQL> select tablespace_name from dba_segments 2 where segment_name='S_ORG_EXT'; TABLESPACE_NAME -----------------------------SIEBELDATA_16K SQL> select sum(bytes)/1024/1024/1024 from dba_free_space 2 where tablespace_name='SIEBELDATA_16K'; SUM(BYTES)/1024/1024/1024 ------------------------.529174805 SQL> select file_name from dba_data_files 2 where tablespace_name='SIEBELDATA_16K' order by file_name; FILE_NAME ------------------------------------------------------------------------------/d011/oradata/IVFS_T14/siebeldata_16k_01.dbf /d011/oradata/IVFS_T14/siebeldata_16k_02.dbf SQL> !df -k /d011 Filesystem kbytes used avail capacity Mounted on /dev/vx/dsk/dbq0003_d011_vg/d011 262144000 259160761 2796807 99% /d011

There is no sufficent space in mount point. We need to talk with our onsite team to provide space in that mount point. select file_name from dba_data_files where tablespace_name='DWV_OD_INDEX' select sum(bytes)/1024/1024/1024 from dba_free_space where tablespace_name='DWV_OD_INDEX' alter tablespace DWV_OD_INDEX add datafile '/d902/oradata/mmfd01/dwv_od_index_f4.dbf' size 1951M; alter user dwv_owner quota unlimited on DWV_OD_INDEX desc dba_ts_quotas select * from dba_ts_quotas where username ='DWV_OWNER'; select * from dba_segments 15) How alter max_extents : SQL:CRM2> select owner, table_name, max_extents 2 from dba_tables 3 where owner='SOWNER' and table_name='S_ORG_EXT'; OWNER TABLE_NAME MAX_EXTENTS ------------------------------ ------------------------------ ----------SOWNER S_ORG_EXT 4096 SQL:CRM2> alter table sowner.s_org_ext storage (maxextents 8192); Table altered. SQL:CRM2> select owner, table_name, max_extents 2 from dba_tables 3 where owner='SOWNER' and table_name='S_ORG_EXT'; OWNER TABLE_NAME MAX_EXTENTS ------------------------------ ------------------------------ ----------SOWNER S_ORG_EXT 8192

16 )Which user is using how many temp : SELECT b.tablespace, b.segfile#, b.segblk#, b.blocks, a.sid, a.serial#, a.username, a.osuser, a.status FROM v$session a,v$sort_usage b WHERE a.saddr = b.session_addr ORDER BY b.tablespace, b.segfile#, b.segblk#, b.blocks; 17 ) startup force to recycle the database when not able to login due to max number of process exceeds . 18) SQL> select l1.sid, ' IS BLOCKING ', l2.sid from v$lock l1, v$lock l2 where l1.block =1 and l2.request > 0 and l1.id1=l2.id1 and l1.id2=l2.id2; 2 3 4 5 SID 'ISBLOCKING' ---------- ------------- ---------50 IS BLOCKING 100 IS BLOCKING SID 100 76

select * from v$locked_object where object_id in (select object_id from dba_objects where object_name='FND_FLEX_HASH')

SQL> select sid,serial# from v$session where sid in *50,100); select sid,serial# from v$session where sid in *50,100) * ERROR at line 1: ORA-00936: missing expression SQL> select sid,serial# from v$session where sid in (50,100); SID SERIAL# ---------- ---------50 18347 100 24873 SQL> alter system kill session '50,18347';

System altered. SQL> select sid,serial# , status from v$session where sid in (50,100); SID SERIAL# STATUS ---------- ---------- -------50 18347 KILLED

Who is using which UNDO or TEMP segment? SELECT TO_CHAR(s.sid)||','||TO_CHAR(s.serial#) sid_serial, 2 NVL(s.username, 'None') orauser, 3 s.program, 4 r.name undoseg, 5 t.used_ublk * TO_NUMBER(x.value)/1024||'K' "Undo" 6 FROM sys.v_$rollname r, 7 sys.v_$session s, 8 sys.v_$transaction t, 9 sys.v_$parameter x 10 WHERE s.taddr = t.addr 11 AND r.usn = t.xidusn(+) 12 AND x.name = 'db_block_size'

$ uname -X 17) Manual export : userid=system/sysdba1 owner=CAPS_HDB_OWNER grants=y indexes=y consistent=n constraints=y

compress=n rows=y log=/backup04/oradata/cfp41/exp81758.log file=/backup04/oradata/cfp41/exp81758_1.dmp filesize=1951m exp parfile=ITG81758_exp.par or select 'Drop '||object_type||' '||owner||'.'||object_name||' cascade constraints;' from dba_objects where owner='DW' and object_type='TABLE' select count(*),object_type from dba_objects where owner='HFSHBR' group by object_type; select 'Drop '||object_type||' '||owner||'.'||object_name||';' from dba_objects where owner='DW';

imp system/sysdba1 PARFILE=/util/dba/parfiles/par_import_128477_pipe.par log=pipeline2.log 17)Which session is using how much CPU : set pages 100 column SID format 9999999 column COMMAND format 9999999 column CPU format 9999999 column USERNAME format 9999999 column PROGRAM format 9999999 select ss.sid,se.command,ss.value cpu ,se.username,se.program from v$sesstat ss, v$session se where ss.statistic# in (select statistic# from v$statname where name = 'CPU used by this session') and se.sid=ss.sid and ss.sid>6 order by 3;

SQL> select sum(BYTES)/1024/1024 from dba_segments where SEGMENT_NAME='GL_BALANCES' and OWNER='GL'; SUM(BYTES)/1024/1024 -------------------12823.4375

What should be exact Undo Retention? SQL > SELECT d.undo_size/(1024*1024) "ACTUAL UNDO SIZE [MByte]", SUBSTR (e.value, 1,25) "UNDO RETENTION [Sec]", ROUND((d.undo_size / (to_number(f.value) * g.undo_block_per_sec))) "OPTIMAL UNDO RETENTION [Sec]" FROM ( SELECT SUM(a.bytes) undo_size FROM v$datafile a, v$tablespace b, dba_tablespaces c WHERE c.contents = 'UNDO' AND c.status = 'ONLINE' AND b.name = c.tablespace_name AND a.ts# = b.ts# ) d, v$parameter e, v$parameter f, ( SELECT MAX(undoblks/((end_time-begin_time)*3600*24)) undo_block_per_sec FROM v$undostat )g WHERE e.name = 'undo_retention' AND f.name = 'db_block_size' Temp segment USED by users Query 1: SQL > select V$TEMPSEG_USAGE.USERNAME, SESSION_NUM, sid, BLOCKS, STATUS, SERVER, SCHEMA#, OSUSER, MACHINE, TERMINAL, LOGON_TIME from V$TEMPSEG_USAGE, V$SESSION WHERE SESSION_NUM = SERIAL#

and STATUS = 'INACTIVE' order by blocks desc Query 2: SQL > SELECT s.sid "SID", s.username "User", s.program "Program", u.tablespace "Tablespace", u.contents "Contents", u.extents "Extents", u.blocks*8/1024 "Used Space in MB", q.sql_text "SQL TEXT", a.object "Object", k.bytes/1024/1024 "Temp File Size" FROM V$SESSION S, V$SORT_USAGE U, V$ACCESS A, DBA_TEMP_FILES K, V$SQL Q

WHERE s.saddr=u.session_addr AND s.sql_address=q.address AND s.sid=a.sid AND u.tablespace=k.tablespace_name; Total time remaining for PL/SQL Package or SQL script select substr(sql_text, instr(sql_text,'INTO "'),30) table_name, rows_processed, round ((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes, trunc (rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_min from sys.v_$sqlarea where sql_text like 'INSERT %INTO "%' and command_type = 2 and open_versions > 0; What SQL is a User Currently Executing? SQL > Select a.sid, a.username, s.sql_text, a.status From V$SESSION A, V$SQLTEXT S Where a.sql_address = s.address And a.sql_hash_value = s.hash_value And a.username like ‘HR%’ Order by a.username, a.sid, s.piece; Which parameter file is Instance using? SQL > Select Decode (Count(*), 1, ‘Spfile’, ‘Pfile’)

From V$SPPARAMETER Where rownum=1 and isspecified=’TRUE’; Table Locks:

set linesize 132 pagesize 66 column Kill heading 'Kill String' format a13 column res heading 'Resource Type' format 999 column id1 format 9999990 column id2 format 9999990 column lmode heading 'Lock Held' format a20 column request heading 'Lock Requested' format a20 column serial# format 99999 column username format a10 heading "Username" column terminal heading Term format a6 column tab format a35 heading "Table Name" column owner format a9 column Address format a18 spool lock.lst select nvl(S.USERNAME,'Internal') username, nvl(S.TERMINAL,'None') terminal, L.SID||','||S.SERIAL# Kill, U1.NAME||'.'||substr(T1.NAME,1,20) tab, decode(L.LMODE,1,'No Lock', 2,'Row Share', 3,'Row Exclusive', 4,'Share', 5,'Share Row Exclusive', 6,'Exclusive',null) lmode, decode(L.REQUEST,1,'No Lock', 2,'Row Share', 3,'Row Exclusive', 4,'Share', 5,'Share Row Exclusive', 6,'Exclusive',null) request from V$LOCK L, V$SESSION S, SYS.USER$ U1, SYS.OBJ$ T1 where L.SID = S.SID and T1.OBJ# = decode(L.ID2,0,L.ID1,L.ID2) and U1.USER# = T1.OWNER#

and S.TYPE != 'BACKGROUND' order by 1,2,5 / spool off Hanging Concurrent Program SQL> SELECT A.request_id, S.sid, S.serial#, P.pid, P.spid From FND_CONCURRENT_REQUESTS A, FND_CONCURRENT_PROCESSES B V$PROCESS P, V$SESSION S Where A.controlling_manager=B.concurrent_process_id And B.oracle_process_id=P.pid And A.request_id=&request_id And A.phase_code=’P’; Move table alter table XX_GL_BTCH_LINES_TEMP move tablespace GLX;

// Query to find the products installed and their patch set level // Tables -- fnd_product_installations & fnd_application_tl select b.application_name,a.status,a.patch_level from fnd_product_installations a,fnd_application_tl b where a.application_id = b.application_id and a.STATUS = 'I' and a.patch_level like '%AD%' or <whatever is the product>

.

select decode(nvl(a.APPLICATION_short_name,'Not Found'), 'SQLAP','AP','SQLGL','GL','OFA','FA', 'Not Found','id '||to_char(fpi.application_id), a.APPLICATION_short_name) apps, decode(fpi.status,'I','Installed','S','Shared', 'N','Inactive',fpi.status) status, fpi.product_version, nvl(fpi.patch_level,'-- Not Available --') Patchset,

to_char(fpi.last_update_date,'dd-Mon-RRRR') "Update Date" from fnd_oracle_userid o, fnd_application a, fnd_product_installations fpi where fpi.application_id = a.application_id(+) and fpi.oracle_id = o.oracle_id(+) order by 1,2

Bookmark Fixed font Go to End Doc ID: Note:1072328.6 Subject: How to Reset only the SYSADMIN Password Type: PROBLEM Status: PUBLISHED Content Type: TEXT/PLAIN Creation Date: 09-JUN-1999 Last Revision Date: 04-DEC-2001 PROBLEM DESCRIPTION ------------------You have forgotten the SYSADMIN applications password and cannot login. You know the apps and applsys passwords but does not want to follow the steps to reset all passwords since resetting applsys would require re-registering all applications user passwords. How can you reset only the SYSADMIN password? SOLUTION DESCRIPTION -------------------The applsys password provides the basis for all user passwords so resetting applsys will require re-registering all user passwords. If there are any other users with System Administrator privileges, then they can reset the SYSADMIN user's password from within applications. Otherwise SYSADMIN can be reset without affecting other users as follows: 1. Log in to SQL*Plus as applsys 2. Backup FND_USER and FND_ORACLE_USERID tables using create table FND_USER_BAK as select * from FND_USER; create table FND_ORACLE_USERID_BAK as select * from FND_ORACLE_USERID; 3. update FND_USER set ENCRYPTED_FOUNDATION_PASSWORD =' 2DF3E509EB6A33F9607959C0976E25D997166FAB694ACDDAE466414791A 44411', ENCRYPTED_USER_PASSWORD=' D2FCA9810D86BCA9BE944D3E2E7A4A9E6CDF89AAD633179B701774083F 907C13' where user_name='SYSADMIN'; sql>commit; The SYSADMIN password is now set to WELCOME.

18) Tablespace ( free, used…) set pages 100 BREAK ON REPORT COMPUTE SUM OF BYTES USED FREE ON REPORT column dummy noprint column bytes format 9999999 column used format 9999999 column free format 9999999 column pct_used format 9999999 select a.tablespace_name name, b.tablespace_name dummy, (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ))/(1024*1024) (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ))/(1024*1024) (sum(a.bytes)/count( distinct b.file_id ))/(1024*1024) used, (sum(a.bytes)/count( distinct b.file_id ))/(1024*1024) free, 100 * ( (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) (sum(a.bytes)/count( distinct b.file_id ) )) / (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) pct_used from sys.dba_free_space a, sys.dba_data_files b where a.tablespace_name = b.tablespace_name group by a.tablespace_name, b.tablespace_name 19) Jobs : col what format a30 select job,what,instance,last_date,last_sec,next_Date,next_sec,failures,broken from dba_jobs 20)To get PID from SPID select 'Sid, Serial#, Aud sid : '|| s.sid||' , '||s.serial#||' , '|| s.audsid||chr(10)|| 'DB User / OS User : '||s.username|| ' / '||s.osuser||chr(10)|| 'Machine - Terminal : '|| s.machine||' - '|| s.terminal||chr(10)|| 'OS Process Ids : '|| s.process||' (Client) '||p.spid||' (Server)'|| chr(10)|| 'Client Program Name : '||s.program || chr(10) || 'SQL Hash Value : ' || s.sql_hash_value || chr(10) || 'Previous Hash Value :' || s.prev_hash_value "Session Info" from v$process p,v$session s where p.addr = s.paddr and p.spid=&spid

bytes,

select a.sid,a.serial#,spid,substr(a.username,1,10),substr(a.program,1,20),a.terminal, spid,a.osuser,logon_time,a.status from v$session a,v$process b where a.paddr=b.addr; 21) Login information of user : column Machine format a30 column osuser format a15 column "User name" format a15 column Program format a30 column "Login Time" format a20 select a.sid,serial#,substr(a.username,1,10) "User Name",substr(a.program,1,30) "Program" ,substr(to_char(a.logon_time,'DDMON-RR:HH24:MI:SS'),1,20)"Login Time", b.physical_reads "Physical Reads",a.machine "Machine",a.osuser,a.status from v$session a ,v$sess_io b where a.sid=b.sid and a.username is not null order by 6 22)Free space in all Tablespace : COL TABLESPACE_NAME FORMAT A18 HEADING "TABLESPACE" COL SUM(BYTES/1024/1024) HEADING 'M.B.' COL SUM(BLOCKS) HEADING 'BLOCKS' SELECT TABLESPACE_NAME, round(SUM(BYTES/1024/1024),0) "Space (MB)" FROM sys.DBA_FREE_SPACE GROUP BY TABLESPACE_NAME 23) Disable all constraints for a Schema??? SQL> select 'alter table '||owner||'.'||table_name||' modify constraint '||constraint_name||' disable;' 2* from dba_constraints where owner = 'XXXXXXXXXXX' Rows imported: select substr(sql_text,instr(sql_text,'INTO "'),30) table_name, rows_processed,

round((sysdateto_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes, trunc(rows_processed/ ((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_minute from sys.v_$sqlarea where sql_text like 'INSERT %INTO "%' and command_type = 2 and open_versions > 0 1)To unlock the user account : Step : Check the status of user account SQL> select USERNAME,ACCOUNT_STATUS,EXPIRY_DATE from dba_users where username like 'AGCREGREP'; USERNAME ACCOUNT_STATUS EXPIRY_DATE ------------------------------ -------------------------------- --------------AGCREGREP LOCKED Step 2 : If it is locled then unlocked it : SQL> alter user AGCREGREP account unlock; User altered. Stepp 3 : Now check the status of account SQL> select USERNAME,ACCOUNT_STATUS from dba_users where username like 'AGCREGREP'; USERNAME ACCOUNT_STATUS ------------------------------ -------------------------------AGCREGREP OPEN

23)For Appsquery User :

1. Supply sql*net connection string from production database. 2. Create APPSQUERY account in each production environment. 3. Grant APPSQUERY select on all FND_ tables. 4. Grant APPSQUERY select on all tables that the APPS account can select from. 5. Grant APPSQUERY select on all CUSTOM, GINTF, GEINT, GESECURE, any other custom schema tables. 6. Grant APPSQUERY execute on all CUSTOM, GINTF, GEINT, GESECURE, and any other custom schema packages, procedures and functions. Note that the execute rights on the packages is so that APPSQUERY can see the content of the packages in the ALL_SOURCE view: e.g. SELECT TEXT FROM ALL_SOURCE WHERE OWNER='CUSTOM'

set echo off set pause off set head off set feedback off set verify off set pagesize 0 -spool appsquerygen.&2..&1 select '-- ' from dual;

select '-- ' from dual; select '-- this is a generated script - do not edit' from dual; select '-- run appsquery.sh to regenerate ' from dual; select '-- ' from dual; select '-- ' from dual; select 'set echo on' from dual; --- sequences, tables, views -select 'grant select on '||owner||'.'||object_name||' to appsquery_role;' from dba_objects where ( object_type = 'SEQUENCE' or object_type = 'TABLE' or object_type = 'VIEW' ) and owner = upper('&1') ; select 'exit;' from dual; spool off

set echo on set pause on set feedback on set head on set verify on

select 'GRANT SELECT ON '||OWNER||'.'||OBJECT_NAME||' TO APPSQUERY;' FROM DBA_OBJECTS WHERE OWNER='HR';

WHERE OBJECT IN (T,V,MVIEWS,SYSNMS,SEQUENCE)

20) Exporting and importing statistics with DBMS_STATS DBMS_STATS also includes routines for gathering statistics and storing them outside the dictionary. This does not influence the optimizer. Most of the procedures in this package as mentioned above have three common parameters - STATID, STATTAB and STATOWN that are related to user processing of statistics. Advantages of this feature: 1. Estimated statistics at different percentages could be stored and used for testing. 2. Statistics generated on one database could be transferred to another database. DBMS_STATS.CREATE_STAT_TABLE DBMS_STATS.CREATE_STAT_TABLE creates a user statistics table for storing dictionary statistics.

Call syntax dbms_stats.create_stat_table(ownname, stattab, tblspace);
• •

stattab - statistics table name. tblspace - tablespace to be used.

e.g.: creating a user statistics table. SQL> exec dbms_stats.create_stat_table(ownname => 'SYS', stattab => 'STAT_AT_5PC', > tblspace => 'SYSTEM'); PL/SQL procedure successfully completed. SQL> desc stat_at_5pc Name Null? Type ----------------------------------------------------- -------- ---------------STATID VARCHAR2(30) TYPE CHAR(1) VERSION NUMBER FLAGS NUMBER C1 VARCHAR2(30) C2 VARCHAR2(30) C3 VARCHAR2(30) C4 VARCHAR2(30) C5 VARCHAR2(30) N1 NUMBER N2 NUMBER N3 NUMBER N4 NUMBER N5 NUMBER N6 NUMBER N7 NUMBER N8 NUMBER N9 NUMBER N10 NUMBER N11 NUMBER N12 NUMBER D1 DATE R1 RAW(32) R2 RAW(32) CH1 VARCHAR2(1000) DBMS_STATS.EXPORT_TABLE_STATS

DBMS_STATS.EXPORT_TABLE_STATS retrieves table statistics for a particular table and puts it in the user statistics table. Call syntax dbms_stats.export_table_stats(ownname, tabname, partname, stattab, statid, cascade, statown);

cascade - column and index statistics are also exported.

e.g.: exporting AM01 stat for testing purpose, including table and indexes. SQL> exec dbms_stats.export_table_stats(ownname => 'SYS', tabname => 'AM01', > stattab => 'STAT_AT_5PC', cascade => true, statown => 'SYS'); PL/SQL procedure successfully completed. DBMS_STATS.EXPORT_COLUMN_STATS DBMS_STATS.EXPORT_COLUMN_STATS retrieves column statistics for a particular table and puts it in the user statistics table. Call syntax dbms_stats.export_table_stats(ownname, tabname, colname, partname, stattab, statid, statown); DBMS_STATS.EXPORT_INDEX_STATS DBMS_STATS.EXPORT_INDEX_STATS retrieves index statistics for a particular index and puts it in the user statistics table. Call syntax dbms_stats.export_index_stats(ownname, indname, partname, stattab, statid, statown); DBMS_STATS.EXPORT_SCHEMA_STATS DBMS_STATS.EXPORT_SCHEMA_STATS retrieves statistics for a schema and puts it in the user statistics table. Call syntax dbms_stats.export_schema_stats(ownname, stattab, statid, statown);

DBMS_STATS.EXPORT_DATABASE_STATS DBMS_STATS.EXPORT_DATABASE_STATS retrieves statistics for the complete database and puts it in the user statistics table. Call syntax dbms_stats.export_database_stats(stattab, statid, statown); DBMS_STATS.IMPORT_TABLE_STATS DBMS_STATS.IMPORT_TABLE_STATS retrieves statistics for a table from a user statistics table and stores it in dictionary. Call syntax dbms_stats.import_table_stats(ownname, tabname, partname, stattab, statid, cascade, statown); e.g.: importing statistics for table am01, including column and indexes. SQL> exec dbms_stats.import_table_stats(ownname => 'SYS', tabname => 'AM01', > stattab => 'STAT_AT_5PC', cascade => true, statown => 'SYS'); PL/SQL procedure successfully completed. DBMS_STATS.IMPORT_COLUMN_STATS DBMS_STATS.IMPORT_COLUMN_STATS retrieves statistics for a column from a user statistics table and stores it in dictionary. Call syntax dbms_stats.import_column_stats(ownname, tabname, colname, partname, stattab, statid, statown); DBMS_STATS.IMPORT_INDEX_STATS Retrieve statistics for an index from a user statistics table and store it in dictionary. Call syntax dbms_stats.import_index_stats(ownname, indname, partname, stattab, statid, statown);

DBMS_STATS.IMPORT_SCHEMA_STATS DBMS_STATS.IMPORT_SCHEMA_STATS Rretrieves statistics for a schema from a user statistics table and stores it in dictionary. Call syntax dbms_stats.import_schema_stats(ownname, stattab, statid, statown); DBMS_STATS.IMPORT_DATABASE_STATS DBMS_STATS.IMPORT_DATABASE_STATS retrieves statistics for the database from a user statistics table and stores it in dictionary. Call syntax dbms_stats.import_schema_stats(stattab, statid, statown); DBMS_STATS.DROP_STAT_TABLE DBMS_STATS.DROP_STAT_TABLE drops a user statistics table. Call syntax dbms_stats.drop_stat_table(ownname, stattab); e.g.: dropping my stat table. SQL> exec dbms_stats.drop_stat_table(ownname => 'SYS', stattab => 'STAT_AT_5PC'); PL/SQL procedure successfully completed.

We will continue with Histograms and DML Monitoring in the next installment of this series

Q

Q)

alter USER GEC_HFS_NOVUS_V2_NEW IDENTIFIED BY VALUES '1F2FBAE304682AAF';

alter USER ACBS_DM_NEW IDENTIFIED BY VALUES '7C4D92DFB8FFD06A';

alter USER GEC_HFS_BBC IDENTIFIED BY VALUES 'D02A3EC1835A39CF';

exec dbms_job.broken(224,TRUE); exec dbms_job.broken(283,TRUE);

exec dbms_job.broken(244,TRUE); exec dbms_job.broken(303,TRUE); exec dbms_job.broken(245,TRUE); exec dbms_job.broken(246,TRUE); exec dbms_job.broken(247,TRUE);

exec dbms_job.broken(363,TRUE); exec dbms_job.broken(364,TRUE);

SQL> sho user USER is "GEC_HFS_NOVUS_V2_NEW" SQL> exec dbms_job.broken(224,TRUE);

exec dbms_job.broken(15772,TRUE); 15772 PL/SQL procedure successfully completed.

SQL> commit;

Commit complete.

SQL> sho user USER is "ACBS_DM_NEW"

SQL> exec dbms_job.broken(283,TRUE);

PL/SQL procedure successfully completed.

SQL> commit;

Commit complete.

SQL> exec dbms_job.broken(363,TRUE);

PL/SQL procedure successfully completed. SQL> commit; Commit complete. SQL> exec dbms_job.broken(364,TRUE);

PL/SQL procedure successfully completed.

SQL> commit; Commit complete. SQL> sho user USER is "GEC_HFS_BBC" SQL> exec dbms_job.broken(244,TRUE); PL/SQL procedure successfully completed. SQL> commit; Commit complete. SQL> exec dbms_job.broken(303,TRUE); PL/SQL procedure successfully completed. SQL> commit; Commit complete.

SQL> exec dbms_job.broken(245,TRUE); PL/SQL procedure successfully completed. SQL> commit; Commit complete. SQL> exec dbms_job.broken(246,TRUE); PL/SQL procedure successfully completed. SQL> commit; Commit complete. SQL> exec dbms_job.broken(247,TRUE); PL/SQL procedure successfully completed. SQL> commit; Commit complete.

How to create a folder and giving privileges to run "run_sqlplus.sh" script for an user.

r) Create a folder at /util/dba/batchscripts Example: mkdir /util/dba/batchscripts/<Folder_name> Note: This folder name will be same as the schema name, in which user wants to run the scripts. e.g. DWC_RSK_OWNER 2) Change the folder's permission to 777 Example: chmod -R 777 /util/dba/batchscripts/<Folder_name>

3) Add the user entry in /util/dba/dbfiles/orauserids.dat as follows... ORA_USER[Next_number_from_the_sequence]='<username>/<schma_name >/<password>' Example: ORA_USER[48]='u500872422/dwc_rsk_owner/xxxxxxx' Note : Please take the backup of the file before adding the entries. 12) Steps for RefRreSh using HOtbaCkup Method - I Stpe.1 Start the database in nomount state. Create the controlfile

CREATE CONTROLFILE REUSE SET DATABASE "IGEN_D14" RESETLOGS NOARCHIVELOG -- SET STANDBY TO MAXIMIZE PERFORMANCE MAXLOGFILES 255 MAXLOGMEMBERS 3 MAXDATAFILES 1022 MAXINSTANCES 1 MAXLOGHISTORY 1361 LOGFILE GROUP 1 ( '/d011/oradata/IGEN_D14/redo01a.log', '/d011/oradata/IGEN_D14/redo01b.log'

) SIZE 50M, -- STANDBY LOGFILE DATAFILE '/d011/oradata/IGEN_D14/siebelindex_17.dbf', '/d011/oradata/IGEN_D14/siebeldata_14.dbf', '/d011/oradata/IGEN_D14/siebelindex_18.dbf' CHARACTER SET WE8MSWIN1252 ;

Step.2 SQL> Recover Automatic Using Backup controlfile Until time '2006-0606:02:08:45'; Media recovery complete.

Note: Timestamp u can get from backup dump ex: /backup01/oradata/ICEF_P1/b060605_2230/IVFS_P14_recovery.info SQL> alter database open resetlogs;

Database altered.

SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/d007/oradata/IGEN_D14/temp01.dbf'

2 SIZE 1999M REUSE AUTOEXTEND OFF;

Tablespace altered.

SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/d007/oradata/IGEN_D14/temp02.dbf' 2 SIZE 1049624576 REUSE AUTOEXTEND OFF;

Tablespace altered.

SQL> alter database rename global_name to IGEN_D14;

Database altered.

Method - II

Create controlfile. after that… SQL> select * from v$logfile;

GROUP#

STATUS TYPE

MEMBER

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

2 1

STALE ONLINE STALE ONLINE

/u01/THIRU/redo02.log /u01/THIRU/redo01.log

SQL> recover database using backup controlfile; ORA-00279: change 13516949 generated at 06/07/2006 06:27:44 needed for thread 1 ORA-00289: suggestion : /u01/app/oracle/product/9.2.0/dbs/arch1_8440.dbf ORA-00280: change 13516949 for thread 1 is in sequence #8440

Specify log: {<RET>=suggested | filename | AUTO | CANCEL} /u01/THIRU/redo01.log

SQL> recover database using backup controlfile; ORA-00279: change 13516949 generated at 06/07/2006 06:27:44 needed for thread 1 ORA-00289: suggestion : /u01/app/oracle/product/9.2.0/dbs/arch1_8440.dbf ORA-00280: change 13516949 for thread 1 is in sequence #8440

Specify log: {<RET>=suggested | filename | AUTO | CANCEL} /u01/THIRU/redo02.log

Log applied. Media recovery complete. SQL> SQL> alter database open resetlogs;

Database altered. 12 ) SQL> select * from v$controlfile; _______________________________________________________________ ______________ STATUS NAME ------- ---------------------------------------/d002/oradata/ICEF_S14/control01.ctl /r002/oradata/ICEF_S14/control02.ctl SQL> select * from v$logfile; _______________________________________________________________ ______________ GROUP# STATUS TYPE MEMBER ---------- ------- ------- ---------------------------------------10 ONLINE /r002/oradata/ICEF_S14/redo10a.log 10 ONLINE /r002/oradata/ICEF_S14/redo10b.log 9 ONLINE /r002/oradata/ICEF_S14/redo09a.log 9 ONLINE /r002/oradata/ICEF_S14/redo09b.log 8 ONLINE /r002/oradata/ICEF_S14/redo08a.log 8 ONLINE /r002/oradata/ICEF_S14/redo08b.log 7 ONLINE /r002/oradata/ICEF_S14/redo07a.log 7 ONLINE /r002/oradata/ICEF_S14/redo07b.log 6 ONLINE /r002/oradata/ICEF_S14/redo06a.log 6 ONLINE /r002/oradata/ICEF_S14/redo06b.log 5 ONLINE /r002/oradata/ICEF_S14/redo05a.log GROUP# STATUS TYPE MEMBER

---------- ------- ------- ---------------------------------------5 ONLINE /r002/oradata/ICEF_S14/redo05b.log 4 ONLINE /r002/oradata/ICEF_S14/redo04a.log 4 ONLINE /r002/oradata/ICEF_S14/redo04b.log 3 ONLINE /r002/oradata/ICEF_S14/redo03a.log 3 ONLINE /r002/oradata/ICEF_S14/redo03b.log 2 ONLINE /r002/oradata/ICEF_S14/redo02a.log 2 ONLINE /r002/oradata/ICEF_S14/redo02b.log 1 ONLINE /r002/oradata/ICEF_S14/redo01a.log 1 ONLINE /r002/oradata/ICEF_S14/redo01b.log 20 rows selected. SQL> select file_name from dba_data_files; _______________________________________________________________ ______________ FILE_NAME -------------------------------------------------------------------------------/d002/oradata/ICEF_S14/system01.dbf /d002/oradata/ICEF_S14/undo_rbs01.dbf /d002/oradata/ICEF_S14/undo_rbs02.dbf /d002/oradata/ICEF_S14/tools01.dbf /d002/oradata/ICEF_S14/users01.dbf /d002/oradata/ICEF_S14/precise_tbs_01.dbf /d002/oradata/ICEF_S14/siebeldata_01.dbf /d002/oradata/ICEF_S14/siebeldata_02.dbf /d002/oradata/ICEF_S14/siebeldata_03.dbf /d002/oradata/ICEF_S14/siebeldata_04.dbf /d002/oradata/ICEF_S14/siebeldata_05.dbf FILE_NAME -------------------------------------------------------------------------------/d002/oradata/ICEF_S14/siebeldata_06.dbf /d002/oradata/ICEF_S14/siebeldata_07.dbf /d002/oradata/ICEF_S14/siebeldata_08.dbf /d002/oradata/ICEF_S14/siebeldata_09.dbf /d002/oradata/ICEF_S14/siebeldata_10.dbf /d002/oradata/ICEF_S14/siebeldata_11.dbf /d002/oradata/ICEF_S14/siebeldata_12.dbf /d002/oradata/ICEF_S14/siebeldata_16k_01.dbf /d002/oradata/ICEF_S14/siebeldata_16k_02.dbf /d002/oradata/ICEF_S14/siebeldata_16k_03.dbf /d002/oradata/ICEF_S14/siebelindex_01.dbf

FILE_NAME -------------------------------------------------------------------------------/d002/oradata/ICEF_S14/siebelindex_02.dbf /d002/oradata/ICEF_S14/siebelindex_03.dbf /d002/oradata/ICEF_S14/siebelindex_04.dbf /d002/oradata/ICEF_S14/siebelindex_05.dbf /d002/oradata/ICEF_S14/siebelindex_06.dbf /d002/oradata/ICEF_S14/siebelindex_07.dbf /d002/oradata/ICEF_S14/siebelindex_08.dbf /d002/oradata/ICEF_S14/siebelindex_09.dbf /d002/oradata/ICEF_S14/siebelindex_10.dbf /d002/oradata/ICEF_S14/siebelindex_11.dbf /d002/oradata/ICEF_S14/siebelindex_12.dbf FILE_NAME -------------------------------------------------------------------------------/d002/oradata/ICEF_S14/siebelindex_13.dbf /d002/oradata/ICEF_S14/siebelindex_14.dbf /d002/oradata/ICEF_S14/siebelindex_15.dbf /d002/oradata/ICEF_S14/siebelindex_16.dbf /d002/oradata/ICEF_S14/siebelindex_17.dbf /d002/oradata/ICEF_S14/undo_rbs03.dbf /d002/oradata/ICEF_S14/siebeldata_13.dbf /d002/oradata/ICEF_S14/siebeldata_14.dbf /d002/oradata/ICEF_S14/siebelindex_18.dbf /d002/oradata/ICEF_S14/siebeldata_15.dbf /d002/oradata/ICEF_S14/siebeldata_16.dbf FILE_NAME -------------------------------------------------------------------------------/d002/oradata/ICEF_S14/siebelindex_19.dbf /d002/oradata/ICEF_S14/siebelindex_20.dbf /d002/oradata/ICEF_S14/siebeldata_17.dbf /d002/oradata/ICEF_S14/siebelindex_21.dbf /d002/oradata/ICEF_S14/siebeldata_18.dbf /d002/oradata/ICEF_S14/siebelindex_22.dbf 50 rows selected. SQL> SQL> select file_name,bytes/1024/1024 from dba_temp_files; _______________________________________________________________ ______________ FILE_NAME BYTES/1024/1024

---------------------------------------- --------------/d002/oradata/ICEF_S14/temp02.dbf /d002/oradata/ICEF_S14/temp01.dbf

1000 1951

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++ cmfalgaqsbdb02(oracle): ls -ltr total 21387930 -rw-r--r-- 1 oracle dba 10887168 Oct 1 17:18 ctl_bk.bin -rw-r--r-- 1 oracle dba 16999963 Oct 1 17:18 ICEF_P14_35523.arc.Z -rw-r--r-- 1 oracle dba 19128118 Oct 1 17:18 ICEF_P14_35524.arc.Z -rw-r--r-- 1 oracle dba 18890688 Oct 1 17:19 ICEF_P14_35525.arc.Z -rw-r--r-- 1 oracle dba 19180158 Oct 1 17:19 ICEF_P14_35526.arc.Z -rw-r--r-- 1 oracle dba 17247521 Oct 1 17:19 ICEF_P14_35527.arc.Z -rw-r--r-- 1 oracle dba 15960059 Oct 1 17:19 ICEF_P14_35528.arc.Z -rw-r--r-- 1 oracle dba 12197277 Oct 1 17:19 ICEF_P14_35529.arc.Z -rw-r--r-- 1 oracle dba 15347385 Oct 1 17:19 ICEF_P14_35530.arc.Z -rw-r--r-- 1 oracle dba 4982 Oct 1 17:19 ICEF_P14files.rco -rw-r--r-- 1 oracle dba 334 Oct 1 17:19 ICEF_P14_recovery.info -rw-r--r-- 1 oracle dba 11755 Oct 1 17:19 icef_p14_ora_5722.trc -rw-r--r-- 1 oracle dba 20248 Oct 1 17:19 ICEF_P14_hotbackup_5661.lst -rw-r--r-- 1 oracle dba 4696115 Oct 1 17:19 ICEF_P14_35531.arc.Z -rw-r--r-- 1 oracle dba 733099 Oct 1 17:19 precise_tbs_01.dbf.Z -rw-r--r-- 1 oracle dba 2862 Oct 1 17:19 initICEF_P14.ora -rw-r--r-- 1 oracle dba 8326 Oct 1 17:19 ICEF_P14files.txt -rw-r--r-- 1 oracle dba 944311673 Oct 1 17:30 siebeldata_01.dbf.Z -rw-r--r-- 1 oracle dba 808606243 Oct 1 17:39 siebeldata_08.dbf.Z -rw-r--r-- 1 oracle dba 803203695 Oct 1 17:48 siebeldata_09.dbf.Z -rw-r--r-- 1 oracle dba 1010909071 Oct 1 18:00 siebeldata_15.dbf.Z -rw-r--r-- 1 oracle dba 296455954 Oct 1 18:03 siebeldata_16k_01.dbf.Z -rw-r--r-- 1 oracle dba 1335101054 Oct 1 18:18 siebelindex_01.dbf.Z -rw-r--r-- 1 oracle dba 1378156719 Oct 1 18:34 siebelindex_05.dbf.Z -rw-r--r-- 1 oracle dba 1426926341 Oct 1 18:49 siebelindex_06.dbf.Z -rw-r--r-- 1 oracle dba 1087520717 Oct 1 19:02 siebelindex_13.dbf.Z -rw-r--r-- 1 oracle dba 1059517165 Oct 1 19:14 siebelindex_14.dbf.Z -rw-r--r-- 1 oracle dba 648494316 Oct 1 19:21 undo_rbs02.dbf.Z cmfalgaqsbdb02(oracle): ls -ltr|wc -l 29 cmfalgaqsbdb02(oracle): ls -ltr *Z|wc -l 21 cmfalgaqsbdb02(oracle): pwd /d002/oradata/ICEF_S14 cmfalgaqsbdb02(oracle):

-221 Goodbye. cmfalgaqsbdb02(oracle): pwd /d002/oradata/ICEF_S14 cmfalgaqsbdb02(oracle): ftp 3.131.89.235 Connected to 3.131.89.235. 220 cmfciohpsbdb02 FTP server (SunOS 5.8) ready. Name (3.131.89.235:orasuppt): 331 Password required for orasuppt. Password: 230 User orasuppt logged in. ftp> bin 200 Type set to I. ftp> prompt Interactive mode off. ftp> hash Hash mark printing on (8192 bytes/hash mark). ftp> cd /backup22/oradata/ICEF_P14/b071001_0522 250 CWD command successful. ftp> mget *

Step to refresh from cold backup : Soruce : CHIRU Target : PAVAN Step 1: Get the list of dbf's and ctrl files. SQL> select name from v$datafile; NAME -------------------------------------------------------------------------------/u01/CHIRU/system01.dbf /u01/CHIRU/undo01.dbf /u01/CHIRU/user_data01.dbf /u01/CHIRU/user_data02.dbf /u01/CHIRU/system02.dbf /u01/CHIRU/roll_seg01.dbf SQL> select name from v$controlfile; NAME

-------------------------------------------------------------------------------/u01/CHIRU/control01.ctl Step 2: Close the database Copy the files to PAVAN (Target) cp -rp /u01/CHIRU/system01.dbf /u01/PAVAN/ cp -rp /u01/CHIRU/undo01.dbf /u01/PAVAN/ cp -rp /u01/CHIRU/user_data01.dbf /u01/PAVAN/ cp -rp /u01/CHIRU/user_data02.dbf /u01/PAVAN/ cp -rp /u01/CHIRU/system02.dbf /u01/PAVAN/ cp -rp /u01/CHIRU/roll_seg01.dbf /u01/PAVAN/ cp -rp /u01/CHIRU/control01.ctl /u01/PAVAN/ cp initCHIRU.ora initPAVAN.ora Step 3: Starup Nomount Step 4: Create Control file: CREATE CONTROLFILE REUSE SET DATABASE "PAVAN" RESETLOGS NOARCHIVELOG -- SET STANDBY TO MAXIMIZE PERFORMANCE MAXLOGFILES 16 MAXLOGMEMBERS 2 MAXDATAFILES 30 MAXINSTANCES 1 MAXLOGHISTORY 8152 LOGFILE GROUP 1 '/u01/PAVAN/redo01.log' SIZE 500K, GROUP 2 '/u01/PAVAN/redo02.log' SIZE 500K -- STANDBY LOGFILE DATAFILE '/u01/PAVAN/system01.dbf', '/u01/PAVAN/undo01.dbf', '/u01/PAVAN/user_data01.dbf', '/u01/PAVAN/user_data02.dbf', '/u01/PAVAN/system02.dbf', '/u01/PAVAN/roll_seg01.dbf' CHARACTER SET US7ASCII ; Step 5: Open the database

SQL> alter database open resetlogs; Database altered. SQL> select name from v$database; NAME --------PAVAN Step 6: Add the tempfiles if needed. SQL> select name from v$tempfile; no rows selected SQL> alter tablespace TEMP add tempfile '/u01/PAVAN/temp01.tmp' size 2m; Tablespace altered. SQL> select name from v$tempfile; NAME -------------------------------------------------------------------------------/u01/PAVAN/temp01.tmp Change the Global_Name. Step 7: SQL> select global_name from global_name; GLOBAL_NAME -------------------------------------------------------------------------------CHIRU Change The Global_Name SQL> alter database rename global_name to PAVAN; Database altered. SQL> select global_name from global_name; GLOBAL_NAME

-------------------------------------------------------------------------------PAVAN

Db restore from coldbackup : cfp10 db restore : Step 1 Check the backup from which we need to restor the db Step 2 save the backup if it is ok Step 3 Stop the database i.e cfp10_all.sh stop Step 4 Run the script coldrestore.sh i.e coldrestore.sh -p5 -s cfp10 /backup01/oradata/cfp10/b061105_0340 & location of script coldrestore.sh :-->/util/dba/bin Step 5 Check the logfile of recovery location of logfile :-->/util/dba/cfp10/reports Step 6 start the database cfp10_all.sh start location of script cfp10_all.sh :-->/util/dba/bin/cfp10 Step 7 Confirm with user Recovery of databse after applying the archive……put the archive at default location and recover the db auto : SQL> recover database using backup controlfile until cancel; ORA-00279: andring 5689807580814 skapad vid 03/08/2008 23:45:49 behovs for

tr?den 1 ORA-00289: forslag : /prd07recovery/oradata/prodsewi/arch_1_2886.arc ORA-00280: andring 5689807580814 for tr?den 1 ar i sekvens nr 2886

Ange logg: {<RET>=suggested | filename | AUTO | CANCEL} auto ORA-00279: andring 5689807684415 skapad vid 03/09/2008 08:15:54 behovs for tr?den 1 ORA-00289: forslag : /prd07recovery/oradata/prodsewi/arch_1_2887.arc ORA-00280: andring 5689807684415 for tr?den 1 ar i sekvens nr 2887 ORA-00278: loggfilen '/prd07recovery/oradata/prodsewi/arch_1_2886.arc' behovs inte langre for denna ?terhamtning

ORA-00279: andring 5689807729260 skapad vid 03/09/2008 19:02:07 behovs for tr?den 1 ORA-00289: forslag : /prd07recovery/oradata/prodsewi/arch_1_2888.arc ORA-00280: andring 5689807729260 for tr?den 1 ar i sekvens nr 2888 ORA-00278: loggfilen '/prd07recovery/oradata/prodsewi/arch_1_2887.arc' behovs inte langre for denna ?terhamtning

select spid,a.sid,a.serial# from v$session a, v$process b where a.paddr=b.addr and sid=18 select * from v$process select * from dba_dml_locks where name='INV_CUSTOMER_COMMENT' SQL> desc v$locked_object Name Null? Type ----------------------------------------- -------- ---------------------------XIDUSN NUMBER XIDSLOT NUMBER XIDSQN NUMBER OBJECT_ID NUMBER SESSION_ID NUMBER ORACLE_USERNAME VARCHAR2(30) OS_USER_NAME VARCHAR2(30) PROCESS VARCHAR2(12) LOCKED_MODE NUMBER SQL> select SESSION_ID='2 85'; SESSION_ID, ORACLE_USERNAME from v$locked_object where

SESSION_ID ORACLE_USERNAME ---------- -----------------------------285 APPS 285 APPS SQL> select SESSION_ID, ORACLE_USERNAME, OBJECT_ID from v$locked_object where SESSION_ID='285'; SESSION_ID ORACLE_USERNAME ---------- ------------------------------ ---------285 APPS 28547 285 APPS 28736 OBJECT_ID

SQL> select SESSION_ID, ORACLE_USERNAME, OBJECT_ID, ORACLE_USERNAME, OS_USER_NAM E, PROCESS, LOCKED_MODE from v$locked_object where SESSION_ID='285'; SESSION_ID ORACLE_USERNAME OBJECT_ID ---------- ------------------------------ ---------ORACLE_USERNAME OS_USER_NAME ------------------------------ ------------------------------ -----------LOCKED_MODE

PROCESS

----------285 APPS APPS 2 285 APPS APPS 2

28547 oracle 28736 oracle 26681 26681

APPLICATIOCS RELATED QUERY Discoverer launch url http://ciohcmfglp01.mmf.capital.ge.com:8020/discwb4/html/discolaunch.htm?EUL=GEEUL_US APACHE CACHE CLEAN After checking the logs for apache,it was showing fine. Tried to removing the files from COMN_TOP/_pages after stopping the apache and then started it. Patch log files location more /cfst67/oracle/cfst67appl/admin/cfst67/log/c3016320.log|grep error To create a appsquery account ========================================================================= ============ Please create an APPSQUERY Account on mmfp46... Follow the following instructions... document... 1.cd /mmfp26/oracle/mmfp26appl/PATCH/appsquery (COPY THE FILES FROM HERE to mmfp46, $APPL_TOP/PATCH/appsquery directory). SQL> select sum(BYTES)/1024/1024 from dba_free_space where TABLESPACE_NAME='TS_EDFSTG'; SUM(BYTES)/1024/1024 -------------------28290.5625 Anil Kumar Nagir... SUM(BYTES)/1024/1024 -------------------28146.5625 Anil Kumar Nagir... select sum(BYTES)/1024/1024 from dba_temp_files where TABLESPACE_NAME='TEMP'; SUM(BYTES)/1024/1024 -------------------1494

Anil Kumar Nagir... SQL> select sum(BYTES)/1024/1024/1024 from dba_temp_files where TABLESPACE_NAME='TEMP'; SUM(BYTES)/1024/1024/1024 ------------------------1.45898438 DB version Upgrade : 9.2.0.6 (32 bit) ---------------This is a checklist of steps to be performed to upgrade an existing Oracle 9.2.X.X database to Oracle version 9.2.0.6. note1: if the database to be upgraded is not already Oracle 9.2 (9.2.0.1, 9.2.0.2, 9.2.0.3, 9.2.0.4, 9.2.0.5) then refer to other documentation on upgrading a database to Oracle 9i and use the 9.2.0.6 ORACLE_HOME note2: this checklist assumes: 1) the 9.2.0.6 software has already been installed on the server 2) there is no clustering in place for the database being upgraded

_ generate and save a list of objects which are in an invalid state prior to the upgrade select owner,object_name,object_type from dba_objects where status='INVALID' order by owner;

_ take a full cold backup of the database (a sufficient backup to be used to restore in case of a problem may already exist from a regularly scheduled backup) - shutdown database at this point (DO NOT ABORT) _ copy the init.ora from the existing ORACLE_HOME to the 9.2.0.6 ORACLE_HOME _ verify the new init.ora in the 9.2.0.6 ORACLE_HOME has a minimum size of 150MB specified for both SHARED_POOL_SIZE and JAVA_POOL_SIZE _ change the ORACLE_HOME in oratab to the 9.2.0.6 home _ set environment to 9.2.0.6 HOME now that oratab has been modified (. appsel or . oraenv)

_ cd $ORACLE_HOME/rdbms/admin _ sqlplus /nolog SQL> connect / as sysdba SQL> startup migrate SQL> spool patch_<SID>.log SQL> @catpatch.sql (time will vary but to date has taken 15 - 20 minutes) SQL> spool off SQL> !more patch_<SID>.log (review patch log for errors and inspect the list of components displayed at the bottom if Real Application Clusters is invalid and not using RAC then this is OK - currently no databases are RAC enabled) note: catpatch.sql can be rerun if errors are found SQL> shutdown SQL> exit _ if resized the shared_pool_size or java_pool_size earlier, they can now be set back _ start the database: /util/dba/bin/<SID>/<SID>_all.sh start _ sqlplus /nolog SQL> connect / as sysdba SQL> select * from v$version;

(should now reflect 9.2.0.6)

_ Need to recompile objects that became invalid during the upgrade Can either: A) identify invalid objects and recompile them manually - or B) execute @?/rdbms/admin/utlrp.sql (this may take awhile) _ generate a list of objects that are now in an invalid state - compare this list to the list created earilier and verify nothing was "broken" during the upgrade - fix as necessary _ update the ORACLE_HOME for the database just upgraded in the listener.ora and reload the listener (be certain when reloading the listener your ORACLE_HOME is set to the ORACLE_HOME of the listener which may not be the 9.2.0.6 ORACLE_HOME just upgraded to) _ may need to take a database backup after all is complete - for development and QA this may not be required however for a production DB in archivelog mode should have a backup to recover from and apply archive logs if necessary _ rename the old init.ora in the previous ORACLE_HOME

SAMPLE: mv init<SID>.ora init<SID>.ora.upg9206 _ upgrade DB inventory to reflect 9.2.0.6 (be certain to update the Janurary 2005 Critical patch to Yes)

Note : When tables are manually created before data is imported, the CREATE TABLE statement in the export dump file will fail because the table already exists. To avoid this failure and continue loading data into the table, set the import parameter IGNORE=y. Otherwise, no data will be loaded into the table because of the table creation error.

A full export does not export triggers owned by schema SYS. You must manually re-create SYS triggers either before or after the full import. Oracle Corporation recommends that you re-create them after the import in case they define actions that would impede progress of the import.

BUFFER determines the number of rows in the array inserted by Import. The following formula gives an approximation of the buffer size that inserts a given array of rows: buffer_size = rows_in_array * maximum_row_size For tables containing LONG, LOB, BFILE, REF, ROWID, UROWID, or DATE columns, rows are inserted individually. The size of the buffer must be large enough to contain the entire row, except for LOB and LONG columns. If the buffer cannot hold the longest row in a table, Import attempts to allocate a larger buffer http://www.rdbprime.com/Oracle/Oracle_Docs/Oracle9iDB_Server/server.920/a 96652/ch02.htm dict database_properties

Profile setting in oracle

ITG138704

How to move Lobs : Use the view : Dba_lobs ALTER TABLE <name> MOVE LOB(<column_name>) STORE AS (TABLESPACE <new_tablespace_name>) EDFWIN = STGDB EDFSUN = CUBDB CCPMPROD =EEF_P24 3.219.188.118

select 'grant SELECT on ' || owner || '.' || object_name || ' to U501603105;' from dba_objects where object_type IN ('TABLE','VIEW','MATERIALIZED VIEW') and owner IN ('EDFDBE','PDM_DBE','PDM_STG','SDM_DBE','SDM_STG','EDF INF','EDFREP','EDFCON','EDFPDM','EDFPDMR','EDFPDMT','ED FDBER','DWH_ARCHIVE','EDFMDJ','EDFSTG2'); select 'create synonym U501603105.' || object_name || ' for ' || owner || '.' || object_name ||';' from dba_objects where object_type in ('TABLE','VIEW','MATERIALIZED VIEW') and owner IN ('EDFDBE','PDM_DBE','PDM_STG','SDM_DBE','SDM_STG','EDF INF','EDFREP','EDFCON','EDFPDM','EDFPDMR','EDFPDMT','ED FDBER','DWH_ARCHIVE','EDFMDJ','EDFSTG2');

I am trying to compile the package, I am getting an error ORA-03113: end-of-file on communication channel We are facing issue in MMFV90 from last 15 days. Issue is: ORA-03113: end-of-file on communication channel After flushing the shared pool (alter system flush shared_pool;), problem gets resolved. http://www.rdbprime.com/Oracle/Oracle_Docs/Oracle9iDB_Server/server.920/a 96524/c01_02intro.htm#3591 http://www.akadia.com/services/ora_statspack_survival_guide.html http://www.akadia.com/services/ora_statspack_survival_guide.html

grant create,debug procedure to starfish references grant debug any procedure to starfish; grant execute on object to user; grant select on sys.dba_source to U501603105; alter database archivelog; alter database noarchivelog; EXEC DBMS_STATS.gather_database_stats; EXEC DBMS_STATS.gather_database_stats(estimate_percent => 15); EXEC DBMS_STATS.gather_schema_stats('SCOTT'); ... www.oraclebase.com/articles/8i/CostBasedOptimizerAndDatabaseStatistics.php - 21k -

select * from user_objects where object_type = 'INDEX' and status ='INVALID' ---and status ='VALID'

select * from user_indexes where status ='Invalid'

select * from dict;

alter session set nls_date_format='dd.mm.yyyy';

http://www.adp-gmbh.ch/ora/misc/static_dictionary_views.html#objects

set define off

=================================================== User is getting following error while inserting the data : Parul Mishra/GE ... ORA-00001: unique constraint (DWR_OWNER.CRDT_CSTM_DTLS_MTHEND_PKI) violated Salil Chaudhary/... this is different error Parul Mishra/GE ... but there is no such table in my DB Salil Chaudhary/... what is the query you are running ? Parul Mishra/GE... let me check Salil Chaudhary/... this is index name Salil Chaudhary/... table name is Salil Chaudhary/... CRDT_CSTM_DTLS_CAL_MTHEND CRDT_CSTM_DTLS_CAL_MTHEND SQL> select table_name from all_indexes where index_name='CRDT_CSTM_DTLS_MTHEND_PKI';

TABLE_NAME -----------------------------CRDT_CSTM_DTLS_CAL_MTHEND CRDT_CSTM_DTLS_CAL_MTHEND Parul Mishra/GE... Parul Mishra/GE... Salil Chaudhary/... Parul Mishra/GE... Salil Chaudhary/... Parul Mishra/GE... but what shd i do from my end can u suggest ? its inserting duplicate rows yes i got it so pls check your query i deleted those old records

Parul Mishra/GE... thanks Salil Chaudhary/... wc This error means that an attempt has been made to insert a record with a duplicate (unique) key. This error will also be generated if an existing record is updated to generate a duplicate (unique) key. Typically this is a duplicate primary key, but it need not be the primary key ======================================== G00695998 5446

exp_casplan2a_141155.par nohup /util/dba/bin/compressed_export.sh mmfp89 exp_casplan2a_141155.par /backup05/oradata/mmfp89/ & Parameters For The Export Oracle SID = mmfp89 Host = ciohcmfdbp01 Compressed Dump File = /backup05/oradata/mmfp89//exp_casplan2a_141155_080304_14411.dmp.Z Parfile = /util/dba/parfiles/exp_casplan2a_141155.par Report File = /util/dba/mmfp89/reports/mmfp89_export_14411.lst

Nohup /util/dba/bin/compressed_export.sh mmfd89 exp_casplan1a_141155.par /backup04/oradata/mmfd89 & CASPLAN1A While trying to migrate FSGs from MMFD67, which is an 11.5.9 instance to CSV01, which is an 11.5.10 instance, we get an error. On Metal ink we found a note, which requires a couple of database files (.pls files) to be on the same patch/patch set level. Attached document has more details. Can you please

analyze and suggest what patch needs to be applied and when it can be applied. This is a development environment and we need to be able to complete this critical activity as part of our project…. grant execute on object to user; grant select on sys.dba_source to U501603105;

For 32 bit architecture, the shmmax value should be set at half the physical memory up to a maximum of 4294967295. For a server with 6G of memory we can set this value to 3G (half physical memory) using the following command as the root user. echo 3221225472 > /proc/sys/kernel/shmmax Alternatively it can be set in the /etc/sysctl.conf file with the following entry The contents of your /etc/sysctl.conf file may look something like this: kernel.shmmax = 3221225472 kernel.shmmni = 4096 kernel.shmall = 2097152 kernel.sem = 1000 32000 100 150 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 kernel.shm-use-bigpages = 2

EDFDBE.CALL_PIPELINE_SUM_PIPE

create public synonym 141548_ U501603105 for EDFDBE.CALL_PIPELINE_SUM_PIPE

f60gen module=form_name.fmb userid=apps/apps output_file=form_name.fmx module_type=form batch=yes compile_all=special ITG#141383 ukkinua08ceefge(oracle): cat tableimport.sh if [ -f ~/.bashrc ]; then . ~/.bashrc fi

PATH=$PATH:$HOME/bin

export PATH unset USERNAME

. /util/dba/bin/oracle.env ORACLE_SID=EEF_Q02; export ORACLE_SID ORAENV_ASK=NO . oraenv unset ORAENV_ASK

rm /export/home/oracle/dataimport.log

#! /bin/ksh sqlplus -s system/sysdba1<<E-OF>>/export/home/oracle/dataimport.log prompt prompt ================================== prompt $ORACLE_SID Data Import Status prompt ================================== @/export/home/oracle/dataimport_q02.sql exit E-O-F . /util/dba/bin/oracle.env ORACLE_SID=EEF_Q12; export ORACLE_SID ORAENV_ASK=NO . oraenv unset ORAENV_ASK

#! /bin/ksh sqlplus -s system/sysdba1<<E-OF>>/export/home/oracle/dataimport.log prompt prompt ================================== prompt $ORACLE_SID Data Import Status prompt ================================== @/export/home/oracle/dataimport_q12.sql

prompt ===================================================== ==================== ======= prompt Note : In case of any issues, please contact DBA team on SameTime to reso lve it. prompt ===================================================== ==================== ======= exit E-O-F cd /export/home/oracle mailx -s "Import Status on ukkinua08ceefge for ITG#141383" michael.anderson6@ge. com,sebastien.lacraz@ge.com,charlotte.joyce@ge.com,deepak.dugg al@ge.com,appsdba@ birlasoft.com,sudarsanam.swamy@gecapital.com <dataimport.log; ukkinua08ceefge(oracle): cat dataimport_q02.sql set feedback on truncate table ADE.AUD_FLT_CUSTOMER; insert into ADE.AUD_FLT_CUSTOMER select * from ADE.AUD_FLT_CUSTOMER@DBLINK_Q02P01; commit; select count(1) from ADE.AUD_FLT_CUSTOMER; truncate table ADE.PMS_BENELUX; insert into ADE.PMS_BENELUX select * from ADE.PMS_BENELUX@DBLINK_Q02P01; commit;

select count(1) from ADE.PMS_BENELUX; truncate table ADE.PMS_BENELUX_DERIVED_DATA; insert into ADE.PMS_BENELUX_DERIVED_DATA select * from ADE.PMS_BENELUX_DERIVED_DATA@DBLINK_Q02P01; commit; select count(1) from ADE.PMS_BENELUX_DERIVED_DATA; select 'Completed at '||to_char(sysdate,'dd-mon-yy:hh:mi') as "Completed Date" from dual; ukkinua08ceefge(oracle):

select l1.sid, ' IS BLOCKING ', l2.sid from v$lock l1, v$lock l2 where l1.block =1 and l2.request > 0 and l1.id1=l2.id1 and l1.id2=l2.id2 ========================================= MAPPING> CMN_1022 Database driver error... CMN_1022 [ALTER TABLE a_New_Volume_Sales_Cur ENABLE PRIMARY KEY ORA-02437: cannot validate (EDFDBE.SYS_C0046133) - primary key violated Database driver error... primary key violated : means table has some duplicate rows or null value so check that or run the query alter table table name enable no validate Thanks for pointing that out. It seems after the clone the WF sql got overwritten by the production version. I made changes in the URL to make it point to d67 (eg. http://cmfstctgld02.mmf.capital.ge.com:8044/requestlog/). However I now get a file not found error. Attached are the e-mail notifications. Could you please look into it and let me know why the files cannot be found. The actual location of the files is

Interface Log File: /mmfd67/oracle/mmfd67comn/admin/log/mmfd67_cmfstctdbd01/l2250332.req Journal Import Out File: /mmfd67/oracle/mmfd67comn/admin/out/mmfd67_cmfstctdbd01/o2250334.out http://cmfciohpglap02.mmf.capital.ge.com:8050/requestlog/l2250154.req Job for inserting Branch LEs from GOLDNET to LED is not working properly. Please analyze anf fix the broken job. Job Name: LED.BRANCHLE Dababase : ICEF_P20 Schema: LED SQL> select job, what, BROKEN from user_jobs; JOB WHAT B ---------- -------------------- 41 LED.BRANCHLE;

N

Broken job has been fixed. We need to monitor the job and will confirm by 13-March-08. The application job is looping. We are removing the job from the production database until the loop is fixed. Closing the case for now. Please constact us in case any issue. Discoverer link : http://ukkinua14ceefge.mmf.capital.ge.com:8031/discwb4/html/english/ms_ie/st art_ie.htm ============================================================ ========= Gather table stats: SQL> exec dbms_stats.gather_table_stats(ownname => 'EDFDBE',tabname => 'T_CSE_STG_COL_DWH_ACTUAL',estimate_percent => 5, cascade => true); PL/SQL procedure successfully completed. After getting the confirmation,Plz gather schema stats for BLUEWIRE and DDI as.. exec dbms_stats.gather_schema_stats('BLUEWIRE',5,NULL,NULL,NULL,' ALL',TRUE);

exec dbms_stats.gather_schema_stats('DDI',5,NULL,NULL,NULL,'ALL',TR UE);

================================================= SQL> select (FREE_BLOCKS)*8096/1024/1024/1024 from v$sort_segment where TABLESPACE_NAME='USERTEMP';

(FREE_BLOCKS)*8096/1024/1024/1024 --------------------------------14.0516415

After getting the confirmation,Plz gather schema stats for BLUEWIRE and DDI as.. exec dbms_stats.gather_schema_stats('BLUEWIRE',5,NULL,NULL,NULL,' ALL',TRUE); exec dbms_stats.gather_schema_stats('DDI',5,NULL,NULL,NULL,'ALL',TR UE);

Good to know you guys took this case and attended on time but one correction. Pl. follow it in future. Information in the case not enough. Hence in the first place, communicate either over phone or same time with customer and take the missing details. What we did was just yanked the case, created a default user under USERS tablesace and closed the case..

Customer came to us saying that its closed and didn’t work for them. Its our duty to go a step further and ask them the missing details. Hence please take care Regards swamy FYI What was done CREATE USER TDIRECTOR IDENTIFIED BY VALUES '4F3EC0E9801F3977' DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; GRANT CONNECT TO TDIRECTOR; GRANT RESOURCE TO TDIRECTOR; ALTER USER TDIRECTOR DEFAULT ROLE ALL; What could have been done after asking or leaving a communication to customer. CREATE USER TDIRECTOR IDENTIFIED BY VALUES '4F3EC0E9801F3977' DEFAULT TABLESPACE TDIRECTOR_DATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; GRANT DROP USER TO TDIRECTOR; GRANT ALTER USER TO TDIRECTOR; GRANT CREATE USER TO TDIRECTOR; GRANT CREATE VIEW TO TDIRECTOR WITH ADMIN OPTION; GRANT CREATE TABLE TO TDIRECTOR WITH ADMIN OPTION; GRANT QUERY REWRITE TO TDIRECTOR WITH ADMIN OPTION; GRANT CREATE SESSION TO TDIRECTOR WITH ADMIN OPTION; GRANT CREATE TRIGGER TO TDIRECTOR WITH ADMIN OPTION; GRANT CREATE SEQUENCE TO TDIRECTOR WITH ADMIN OPTION; GRANT CREATE PROCEDURE TO TDIRECTOR WITH ADMIN OPTION; GRANT SELECT ANY TABLE TO TDIRECTOR; ALTER USER TDIRECTOR QUOTA UNLIMITED ON TDIRECTOR_DATA; GRANT SELECT ON SYS.DBA_FREE_SPACE TO TDIRECTOR; GRANT SELECT ON SYS.DBA_REGISTRY TO TDIRECTOR;

GRANT SELECT ON GRANT SELECT ON GRANT SELECT ON GRANT SELECT ON

SYS.DBA_ROLES TO TDIRECTOR; SYS.DBA_TABLESPACES TO TDIRECTOR; SYS.DBA_USERS TO TDIRECTOR; SYS.V_$INSTANCE TO TDIRECTOR;

Create synonym for particular schema : create synonym U501603105.ed_proc for EDFDBE.call_volume_file grant execute on U501603105.ed_proc to U501603105 select 'CREATE SYNONYM KINTANA.' ||OBJECT_NAME|| ' FOR '|| OWNER||'.'||OBJECT_NAME|| ';' from dba_objects where object_type='PROCEDURE' AND OWNER='KINTANA' mmanuel Deva... directory name is DIR_Directory Emmanuel Deva... and the schema name is GEC_HFS_Directory Emmanuel Deva... i need access to these four tables, Emmanuel Deva... TBL_EXT_DIR_DAILY_UPDATES TBL_EXT_DIR_DAILY_UPDATES_TEST TBL_EXT_DIR_DELETES TBL_EXT_DIR_WEEKLY_UPDATES Please provide full access to "gec_hfs_directory_ora" user name. we need to select and edit all these four tables, TBL_EXT_DIR_DAILY_UPDATES TBL_EXT_DIR_DAILY_UPDATES_TEST TBL_EXT_DIR_DELETES TBL_EXT_DIR_WEEKLY_UPDATES. which present in "GEC_HFS_DIRECTORY" schema in "New_DevDB" database create synonym GEC_HFS_DIRECTORY_ORA.TBL_EXT_DIR_DELETES for GEC_HFS_DIRECTORY.TBL_EXT_DIR_DELETES grant insert on GEC_HFS_DIRECTORY_ORA. TBL_EXT_DIR_DAILY_UPDATES to GEC_HFS_DIRECTORY_ORA grant read on DIRECTORY DIR_DIRECTORY to GEC_HFS_DIRECTORY_ORA; Limitations on external tables

Because external tables are new, Oracle has not yet perfected their use. In Oracle9i the feature has several limitations, including: No support for DML. External tables are read-only, but the base data can be edited in any text editor. Poor response for high-volume queries. External tables have a processing overhead and are not suitable for large tables.

f60gen Module=CUSTOM.pll Userid= apps/fltappss01 Module_Type=LIBRARY Output_File=CUSTOM.plx compile_all=yes debug=yes SQL> Import on condition ITG# 143811: ukkinua01ceefge $ vi cub_143299.par "cub_143299.par" 5 lines, 216 characters userid=system/sysdba1 file=CubdbTab143299_new.dmp tables=(consisdev.A_CONTRACT_PORTFOLIO_EXTATTR) log=CubdbTab143299_new.log query='where month_key < 39326' "cub_143299.par" 5 lines, 157 characters ukkinua01ceefge $ exp parfile=cub_143299.par Export: Release 9.2.0.6.0 - Production on Tue Mar 25 15:00:08 2008 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.6.0 - Production

Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set

About to export specified tables via Conventional Path ... Current user changed to CONSISDEV . . exporting table A_CONTRACT_PORTFOLIO_EXTATTR exported EXP-00091: Exporting questionable statistics. Export terminated successfully with warnings. ukkinua01ceefge $ 1946 rows

cmfkwukprdb01(oracle): imp parfiles=imp_CUBDB_DEV_EDFDBE.par LRM-00101: unknown parameter name 'parfiles'

IMP-00022: failed to process parameters, type 'IMP HELP=Y' for help IMP-00000: Import terminated unsuccessfully cmfkwukprdb01(oracle): cat imp_CUBDB_DEV_EDFDBE.par userid=system/sysdba1 buffer=2000000 grants=n fromuser=consisdev touser=EDFCON tables=(A_CONTRACT_PORTFOLIO_EXTATTR) indexes=n

commit=y constraints=y rows=y file=/backup01/oradata/CUBDB/CubdbTab143299_new.dmp log=/backup01/oradata/CUBDB/Tab143299_new.log ignore=y cmfkwukprdb01(oracle): imp parfile=imp_CUBDB_DEV_EDFDBE.par

Import: Release 9.2.0.6.0 - Production on Tue Mar 25 15:12:39 2008

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.6.0 - Production Export file created by EXPORT:V09.02.00 via conventional path import done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set . importing CONSISDEV's objects into EDFCON . . importing table "A_CONTRACT_PORTFOLIO_EXTATTR" imported Import terminated successfully without warnings. cmfkwukprdb01(oracle): 1946 rows

EDFWIN = STGDB EDFSUN = CUBDB CCPMPROD =EEF_P24 3.219.188.118 ITG138801

i)

DWC_PARTNER_MONTHLY_SNP copy data in the following three partitions 1.e. DWC_PARTNER_MONTHLY_SNP_200801 ,DWC_PARTNER_MONTHLY_SNP_200802 and DWC_PARTNER_MONTHLY_SNP_200803 of the table in MMFD01 (UAT) to the corresponding partitions in MMFP01.

Parfile : "exp_tab_mmfd01.par" 12 lines, 246 characters mmfd0004(oracle): vi exp_tab_mmfd01.par "exp_tab_mmfd01.par" 12 lines, 246 characters userid=system/sysdba1 tables=(dwv_owner.DWC_PARTNER_MONTHLY_SNP:DWC_PARTNER_MO NTHLY_SNP_200801, dwv_owner.DWC_PARTNER_MONTHLY_SNP:DWC_PARTNER_MONTHLY_ SNP_200802, dwv_owner.DWC_PARTNER_MONTHLY_SNP:DWC_PARTNER_MONTHLY_ SNP_200803, ) grants=y indexes=y CONSISTENT=y

compress=n rows=y direct=y file=$DMPFILE constraints=y For partition table export : schemaname.tablename:partition name For import : nothing extra

Sql for creating grants and synonyms :

select 'grant SELECT on ' || owner || '.' || object_name || ' to U501603105;' from dba_objects where object_type IN ('TABLE','VIEW','MATERIALIZED VIEW') and owner IN ('EDFDBE','PDM_DBE','PDM_STG','SDM_DBE','SDM_STG','EDFINF','EDFRE P','EDFCON','EDFPDM','EDFPDMR','EDFPDMT','EDFDBER','DWH_ARCHIVE' ,'EDFMDJ','EDFSTG2'); select 'create synonym U501603105.' || object_name || ' for ' || owner || '.' || object_name ||';' from dba_objects where object_type in ('TABLE','VIEW','MATERIALIZED VIEW') and owner IN ('EDFDBE','PDM_DBE','PDM_STG','SDM_DBE','SDM_STG','EDFINF','EDFRE P','EDFCON','EDFPDM','EDFPDMR','EDFPDMT','EDFDBER','DWH_ARCHIVE' ,'EDFMDJ','EDFSTG2');

select 'grant SELECT on ' || owner || '.' || object_name || ' to BO_GLMADHOCUSER;' from dba_objects where object_type IN ('TABLE','VIEW','MATERIALIZED VIEW') and owner IN (‘ODS_REPL’); select 'create synonym BO_OLMUSER.' || object_name || ' for ' || owner || '.' || object_name ||';' from dba_objects where object_type in ('TABLE','VIEW','MATERIALIZED VIEW') and owner IN (‘OLMUSER ');

EDF_STG

select 'create synonym U501603105.' || object_name || ' for ' || owner || '.' || object_name ||';' from dba_objects where object_type in ('TABLE','VIEW','MATERIALIZED VIEW') and owner IN (EDFSTG');

The first step in the installation is the creation of the PERFSTAT user, which owns all PL/SQL code and database objects created, including the Statspack tables, constraints, and the Statspack package. During installation, you are prompted for the PERFSTAT user's password, default tablespace, and temporary tablespace. The default tablespace is used to create all Statspack objects, such as tables and indexes. The temporary tablespace is used for sorttype activities. See Also: Oracle9i Database Concepts for more information on temporary tablespaces Note:

A password is mandatory and should be kept confidential.

Do not specify the SYSTEM tablespace for the PERFSTAT user's DEFAULT or TEMPORARY tablespaces. If SYSTEM is specified, the installation aborts with an error specifying the problem. Oracle Corporation does not recommend using the SYSTEM tablespace to store statistics data or for sorting. Use a TOOLS tablespace to store the data, and use your instance's TEMP tablespace for sorting. To recover from this error, run the de-install (SPDROP.SQL) script, then rerun the installation. During installation, the DBMS_SHARED_POOL and DBMS_JOB PL/SQL packages are created. DBMS_SHARED_POOL pins the Statspack package in the shared pool. DBMS_JOB is created on the assumption that you want to schedule periodic snapshots automatically using DBMS_JOB.

When installing the Statspack package, you can either change to the ORACLE_HOME/rdbms/admin directory, or fully specify the ORACLE_HOME/rdbms/admin directory when calling the installation script, SPCREATE.SQL. To install Statspack, perform the following:
• • • • •

Start SQL*Plus. Connect as a user with SYSDBA privilege. For example: SQL> CONNECT / AS SYSDBA Run the SPCREATE.SQL script. o On UNIX platforms, enter the following: o SQL> @?/rdbms/admin/spcreate
o o o o

On Windows platforms, enter the following: SQL> @%ORACLE_HOME%\rdbms\admin\spcreate

Enter appropriate information when prompted for the PERFSTAT user's password, default tablespace, and temporary tablespace.

The SPCREATE.SQL install script runs the following scripts automatically: • • • SPCUSR.SQL: Creates the user and grants privileges SPCTAB.SQL: Creates the tables SPCPKG.SQL: Creates the package

To ensure that no errors were encountered during the installation, check the SPCUSR.LIS, SPCTAB.LIS, and SPCPKG.LIS output files. For example: ORACLE_HOME/bin/spcusr.lis ORACLE_HOME/bin/spctab.lis ORACLE_HOME/bin/spcpkg.lis

SQL> conn perfstat/perfstat Connected. SQL> show user USER is "PERFSTAT" SQL> @?/rdbms/admin/spauto.sql PL/SQL procedure successfully completed.

Job number for automated statistics collection for this instance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ Note that this job number is needed when modifying or removing the job: JOBNO ---------9 Job queue process ~~~~~~~~~~~~~~~~~ Below is the current setting of the job_queue_processes init.ora parameter - the value for this parameter must be greater

than 0 to use automatic statistics gathering: NAME_COL_PLUS_SHOW_PARAM ---------------------------------------------------------------- ----------VALUE_COL_PLUS_SHOW_PARAM -----------------------------------------------------------------------------job_queue_processes 1 Next scheduled run ~~~~~~~~~~~~~~~~~~ The next scheduled run for this job is: JOB NEXT_DATE NEXT_SEC ---------- --------- -------9 27-MAR-08 12:00:00 SQL> exec dbms_job.run(9); PL/SQL procedure successfully completed. SQL> exec dbms_job.run(9); PL/SQL procedure successfully completed. SQL> @?/rdbms/admin/spreport.sql Current Instance ~~~~~~~~~~~~~~~~ DB Id DB Name Inst Num Instance integer TYPE

----------- ------------ -------- -----------3627348222 EEF_Q01 1 EEF_Q01

Instances in this Statspack schema ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DB Id

Inst Num DB Name

Instance

Host

----------- -------- ------------ ------------ -----------3627348222 1 EEF_Q01 fge Using 3627348222 for database Id Using 1 for instance number EEF_Q01 ukkinua08cee

Completed Snapshots Snap Instance DB Name Snap Id Snap Started Level Comment

------------ ------------ --------- ----------------- ----- -------------------EEF_Q01 EEF_Q01 1 27 Mar 2008 10:59 5 5 5 5

2 27 Mar 2008 10:59 3 27 Mar 2008 11:02 4 27 Mar 2008 11:02 Specify the Begin and End Snapshot Ids

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Enter value for begin_snap: 25 06 * * 5 /util/dba/bin/stats/9.2.0/statspack.ksh EEF_Q01 > /dev/null 2>&1 30 07 * * 5 /util/dba/bin/stats/9.2.0/statspack.ksh EEF_Q01 > /dev/null 2>&1 ============================================================ ===============

stats pack report : step : 1 To drop the stats pack user : SQL> CONNECT / AS SYSDBA SQL> @?/rdbms/admin/spdrop Step 2 : crate new statspack user SQL> @?/rdbms/admin/spcreate Step 3 : To take a snapshot SQL> CONNECT perfstat/my_perfstat_password SQL> EXECUTE statspack.snap; Step 4 : Automates Statspack statistics collection SQL> @?/rdbms/admin/spauto.sql Step 5 : To generate Statspack report SQL> @?/rdbms/admin/spreport.sql ITG# 144181 "ORA-08103: object no longer exists" The issues is with table DWC_OWNER.DWC_TMP_CONTACT. This is a known issue. Please rename this table to some other name to hold a proof of bad data with Oracle Support. Then, recreate this table with the entire DDL including grants.

SQL> select count(1) from v$session; COUNT(1) ---------352 SQL> show parameter processes NAME TYPE VALUE

------------------------------------ ----------- -----------------------------processes integer 600exp

Help regarding the profile option "Concurrent:Report Access Level" : I need to check the output and log of a request run by another user from a certain X responsibility, when I am accessing oracle apps through the same X responsibility. For this there is this profile options "Concurrent:Report Access Level" which needs to be set to either USER or responsibility. I did this and also bounced csd01.But it is still not happening. Please help me know if there is anything else I need to set for this. I am testing out this in csd01. SQL> drop user DISKOGE cascade;

SELECT grantee FROM dba_role_privs WHERE granted_role IN (SELECT grantee FROM dba_role_privs WHERE granted_role='EXP_FULL_DATABASE'); ============================================================ =============== EXP-00079: Data in table "ACCOUNT_FORECAST_KEY" is protected. Conventional path may only be exporting partial table. Sol : Grant EXEMPT ACCESS POLICY to system;

Neeraj Goyal/G... Rohit Baweja/G... Neeraj Goyal/G...

shmmax ki problem hai Neeraj Goyal/GE... /ect ke andar system.ctl hogi

How do you change the SYSADMIN password? Sol : 1. Keep all services running. 2. Login via the OS level by way of the applmgr user. 3. Run your environment scripts a. cd $APPL_TOP b. run APPSORA.env c. the above should also run <sid>_<node>.env, but you can verify by running it. d. cd admin e. run adovars.env 4. cd $FND_TOP/bin 5. Run FNDCPASS to change the SYSADMIN password (IMPORTANT: Change ONLY the SYSADMIN password) FNDCPASS apps/apps 0 Y system/manager USER SYSADMIN <New Password> 6. Restart the Apache, Forms, Reports, 8.0.6 listener and concurrent manager services. 7. To test, login into the applications as the SYSADMIN user and the new password. 8. Verify that a concurrent program such as Active Users runs.

post clone kee time ora 600 ata tha too kya karte hai : agar 10g hai to maxloghistory ko half kar dete hai controlfile creation mein mein…..

Inenetd refreshed

Note 100709.1 Top 8 init.ora Parameters Affecting Performance Note 148511.1 Oracle9i New Feature: Dynamic Buffer Cache Advisory Note 147806.1 Oracle9i New Feature Automated SQL Execution Memory Management

Note 148346.1 Oracle9i Monitoring Automated SQL Execution Memory Management Note 148495.1 Oracle9i New Feature Dynamic SGA Note 259394.1 Init.ora Parameter "STATISTICS_LEVEL" Reference Note Note 147806.1 Oracle9i New Feature Automated SQL Execution Memory Management Note 148346.1 Oracle9i Monitoring Automated SQL Execution Memory Management Note 223730.1 Automatic PGA Memory Managment in 9i Note:223730.1 Automatic PGA Memory Managment in 9i and 10g 181665.1 Release 11i Adpatch Basics ============================================================ ========= Gather table stats : exec dbms_stats.gather_table_stats(ownname => 'EDFDBE',tabname => 'T_CSE_STG_COL_DWH_ACTUAL',estimate_percent => 5, cascade => true); Gather Partition stats : SQL> exec dbms_stats.gather_table_stats(ownname=>'DWV_OWNER',tabname=>'DWC_ PARTNER_MONTHLY_SNP',partname=>'DWC_PARTNER_MONTHLY_SNP_ 200801',estimate_percent=>5,degree=>4); alter index dwv_owner.DWC_PARTNER_MONTHLY_SNP_AK2 rebuild partition DWC_PARTNER_MONTHLY_SNP_200801; Create synonym :

create synonym BO_RENREPORTING.asset_valuation_details for renaissance.asset_valuation_details; How to create virtual directory in oracle : HFS_LOG_DIR : /ap01/hfsstage/log SQL> create directory HFS_LOG_DIR as 'ap01/hfsstage/log'; Directory created.

DBMS_JOB.REMOVE (15772); DBMS_JOB.REMOVE (43);

SQL> select WHAT from dba_jobs; WHAT -------------------------------------------------------------------------------job_control_run; RUN_HOT_QUOTES_EXTRACT; CREATE_FLEXILEASE_GRID; statspack.snap; PROCESS_MULTIQUOTES; options_set_ignore; auto_report.initialise_reports; PHX_CLI.CLI_FLEX_GRID.TRFR_CTRL; 18 ligne(s) sélectionnée(s). SQL> select JOB,what from dba_jobs; JOB ---------WHAT -------------------------------------------------------------------------------18170 job_control_run;

17286 RUN_HOT_QUOTES_EXTRACT; 18 ligne(s) sélectionnée(s).

SQL> conn perfstat/perfstat ERROR: ORA-01017: nom d'utilisateur/mot de passe non valide; connexion refusée Attention : vous n'êtes plus connecté à ORACLE. SQL> exec dbms_job.broken(15772,TRUE); SP2-0640: Non connecté SP2-0641: "EXECUTE" nécessite une connexion au serveur SQL> exec dbms_job.broken(15772,TRUE); SP2-0640: Non connecté SP2-0641: "EXECUTE" nécessite une connexion au serveur SQL> conn perfstat/perfstat ERROR: ORA-01017: nom d'utilisateur/mot de passe non valide; connexion refusée SQL> alter user perfstat identified by perfstat; SP2-0640: Non connecté SQL> conn /as sysdba Connecté. SQL> alter user perfstat identified by perfstat;

Utilisateur modifié.

SQL> conn perfstat/perfstat Connecté. SQL> exec dbms_job.broken(15772,TRUE); Procédure PL/SQL terminée avec succès. Salil Chaudhary/... who is running Salil Chaudhary/... $ ps -ef |grep snp
• • •

oracle 1544 oracle 1542 oracle 1546

1 0 Apr 06 ? 1 0 Apr 06 ? 1 0 Apr 06 ?

43:10 ora_snp1_uatitwi 40:31 ora_snp0_uatitwi 39:23 ora_snp2_uatitwi

exec dbms_job.broken(15772,TRUE); Aatif Ansari/GE ... found a script on the net Aatif Ansari/GE ... select 'You may need to increase the SHARED_POOL_RESERVED_SIZE' Description, 'Request Failures = '||REQUEST_FAILURES Logic from v$shared_pool_reserved where REQUEST_FAILURES > 0 and 0 != ( select to_number(VALUE) from v$parameter where NAME = 'shared_pool_reserved_size') union select 'You may be able to decrease the SHARED_POOL_RESERVED_SIZE' Description, 'Request Failures = '||REQUEST_FAILURES Logic from v$shared_pool_reserved where REQUEST_FAILURES < 5 and 0 != ( select to_number(VALUE) from v$parameter where NAME = 'shared_pool_reserved_size') Aatif Ansari/GE ... to check for pool size

============================================================ === Custom.pll compile : f60gen Module=CUSTOM.pll Userid=apps/fltappss01 Module_Type=LIBRARY Output_File=CUSTOM.plx compile_all=yes debug=yes ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ How to set the format of column : column OBJECT_NAME format a20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ http://www.orafaq.com/wiki/Import_Export_FAQ#Can_one_monitor_how_fast_a _table_is_imported.3F : For export/import

================================================== SQL> ALTER INDEX WILLOW2K.QMD_RU_I REBUILD ONLINE; ALTER INDEX WILLOW2K.QMD_RU_I REBUILD ONLINE * FEHLER in Zeile 1: ORA-08108: Dieser Index-Typ kann nicht online erstellt oder neu erstellt werden SQL> select OWNER from dba_indexes where INDEX_NAME='QMD_RU_I'; OWNER -----------------------------WILLOW2K

SQL> ALTER INDEX WILLOW2K.QMD_RU_I REBUILD; Index wurde geändert.

SQL> select INDEX_TYPE from dba_indexes where INDEX_NAME='QMD_RU_I'; INDEX_TYPE --------------------------FUNCTION-BASED NORMAL
• • • • • • • • • • • • • • • • • • • • •

fact: Oracle Server - Enterprise Edition 8.1 symptom: Index rebuild online fails symptom: ORA-08108: may not build or rebuild this type of index online cause: There are a number of restrictions on the type of index which can be built online in Oracle 8i. Online rebuilds are not permitted for: REVERSE KEY INDEXES FUNCTIONAL INDEXES DEFERRABLE UNIQUE CONSTRAINTS INDEX ORGANIZED TABLES Additionally the rebuild of indexes online is not permitted when any one of the following options are specified: SPLIT PARTITION COMPUTE STATISTICS UNUSABLE

ITG#146678 ORA-01116: error in opening database file 22, ORA-01110:data file 22:'/mmfq90/oracle/mmfq90data/a_txn_data01.dbf ORA-27041:unable to open file, SVR4 Error: 24: Too many open files, Sol : cmfkwukprdb01(oracle): ulimit unlimited

using ulimit u can check the max number of file u can open on server. Karun Ponnumut... a ok, we have to probably apply RDBMS Patch Karun Ponnumut... Just update the case saying that this is a known issue and it needs a RDBMS Patch 5257698 Karun Ponnumu... and request them to create ITG for the same.

SQL> drop tablespace capplan6a_ts including contents and datafiles; Tablespace dropped. SQL> select name from v$database; NAME --------MMFD91 SQL> create tablespace cfaplan4a_ts datafile '/d001/oradata/mmfd91/cfaplan4a.dbf' size 500m; Problem Description : HI Please setup the profile option and env files for HFS QA MMFQ77. you can refer production (MMFP77) or DEV (MMFD77). Server name: stctcmfglq02.mmf.capital.ge.com we need the profile option setup for Starting HFS Interface Engine. Thanks Sandeep *** NOTES AND STATUS CHANGE 04/15/2008 04:05:49 AM Mohan_Mohit Action Type: Manager review need more clarification on the case. Pls. ping us at 501027654 on sametime.

*** NOTES 04/15/2008 08:29:17 PM Sharma_Anil1 Action Type: Manager review Sandeep Khand... Hi Anil Sandeep Khand... How are you Anil K Sharma hi Anil K Sharma fine Sandeep Khand... regarding case G00853135 Anil K Sharma yes Sandeep Khand... for hfsapps user the profile is not setup in QA mmfQ77. Sandeep Khand... request is to set the profile and appsora.env files. Sandeep Khand... as in mmfd77 or mmfp77 Anil K Sharma wait Sandeep Khand... Hi Anil K Sharma yes Sandeep Khand... are you working on setting up the profiles Anil K Sharma its db server Anil K Sharma i need to check with DBA team Sandeep Khand... apps server Sandeep Khand... stctcmfglq02.mmf.capital.ge.com Anil K Sharma which id ? Sandeep Khand... hfsapps Anil K Sharma checking Anil K Sharma appsora.env is the file Anil K Sharma path? Sandeep Khand... actually HFS interface engine uses the hfsapps profile to process interface feeds. Sandeep Khand... path is /export/home/hfsapps Sandeep Khand... . /mmfq77/oracle/mmfq77appl/APPSORA.env Anil K Sharma for this oracle team has to give approval Sandeep Khand... I am oracle application team. Anil K Sharma i mean DBA team Sandeep Khand... request is to set it up as mmfd77 or mmfp77 Anil K Sharma give me 10 min Sandeep Khand... ok Anil K Sharma i will let u know Sandeep Khand... thanks The requested file is owned by DBA. Dispatching the case to DBA team for approval. Sol : Approve to set as p77 by nitin ============================================================ =========

exec dbms_stats.gather_table_stats(ownname =>'DWC_OWNER',tabname => 'DWC_EFG_VOLUME_FACT',estimate_percent => 5,cascade => true); ======================================================

alter database tempfile '/u06/oradata/proditwi/temp01.dbf’ resize 1990m; SQL> set timing on SQL> select * from dual; D X Elapsed: 00:00:00.01

============================================================ === alter tablespace app_data offline; alter tablespace app_date rename datafile '/u01/oracle/U1/data01.dbf ' TO '/u02/oracle/U1/data04.dbf ' ; alter tablespace app_data online; sqlplus: ALTER TABLESPACE cust_ts OFFLINE; linux> mv 'OLDFILE.DBF ' 'NEWFILE.DBF' sqlplus: ALTER TABLESPACE cust_ts RENAME datafile '/u01/app/oracle/mysid/oldname.dbf' TO '/u01/app/oracle/mysid/newname.dbf'

ALTER TABLESPACE WILLFINIDX OFFLINE;

mv '/u06/oradata/produkwi/produkwi_willfinidx01.dbf' '/u12/oradata/produkwi/produkwi_willfinidx01.dbf'

ALTER TABLESPACE WILLFINIDX RENAME datafile '/u06/oradata/produkwi/produkwi_willfinidx01.dbf' TO '/u12/oradata/produkwi/produkwi_willfinidx01.dbf'

ALTER TABLESPACE WILLFINIDX ONLINE;

SQL> select STATUS from dba_tablespaces where TABLESPACE_NAME='WILLFINIDX';

STATUS --------ONLINE ukkinua08ceefge(oracle): cat imp_Minerva.par userid=system/sysdba1 buffer=2000000 fromuser=MINERVA touser=MINERVAUKPER grants=y

ignore=y indexes=y rows=y constraints=y commit=y file=$DMPFILE ukkinua08ceefge(oracle): nohup /util/dba/bin/compressed_import.sh EEF_Q15 imp_Minerva.par /backup99/oradata/EEF_Q15//exp_EEF_Q15_080416_9847.dmp.Z & [1] 799

ukkinua08ceefge(oracle): Sending output to nohup.out

Parfile may be like : $ cat imp.par userid="/ as sysdba" buffer=2000000 full=n fromuser=GDB,INFOREP,INFODOM touser=GDB,INFOREP,INFODOM rows=y commit=y file=/backup04/GDBPROD_1.dmp log=/backup04/GDBPROD_xx.log

corpsysfin: I ran IE program and did not get wf notification. I checked the notif ID is 64827. Please check mailer services. The query "select * from WF_NOTIFICATIONS where begin_date>sysdate-0.5 order by notification_id" gives status of this ID. =====================================================

How to enable constraints : select 'alter table '||owner||'.'||table_name||' modify constraint '||constraint_name||' disable;' from dba_constraints where owner='MINERVAUKPER' ====================================================== Import from local system: imp userid=system/password@dbnam parfile= abc.par make the parfile in notepad with name abc.par

buffer=2000000 fromuser=sysTEM touser=MWIN_PM rows=y file=D:\SYSTEM_22_04_2008.dmp log=D:\imp5.log userid=system/sysdba1 file=CubdbTab148096_new.dmp tables=( EDFCON. A_CONTRACT_PORTFOLIO)

log=CubdbTab143299_new.log query='where MONTH_KEY >= 39417’

userid=system/sysdba1 fromuser= EDFCON touser= EDFDBE file=/backup03/CubdbTab148096_new.dmp log=/backup03/CubdbTab148096_new.log statistics=recalculate

BACKUP : exp_tables_148096.dmp

For mater.views : GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON IMNG_ADMIN.TEMP_JC_2 TO IMANAGE;

These rights required :%s/string1/string2/g it will find out the string1 and replaces with string2 at all occurrences : %s/ /d001/oradata/CSE_D48 / /cse_q48/cse_q48_db/oradata/CSE_Q48 /g

alter tablespace WILLFLEET coalesce

STATISTICS Export Completed on gecfsprd11 server : 8hrs approx (25 GB approx) File Transfer from gecfsprd11 to cseloukdudb03 server : 6hrs approx Import Completed on cseloukdudb03 server : 35 hrs (6GB per hours approx) Status PRDIMNG.IMANAGE schema OBJECT_TYPE COUNT(1) ------------------ ---------DATABASE LINK 5 FUNCTION 7 INDEX 345 INDEX PARTITION 2201 MATERIALIZED VIEW 18 PACKAGE 10 PACKAGE BODY 9 PROCEDURE 3 SEQUENCE 19 TABLE 168 TABLE PARTITION 1040 TYPE 2 SQL> select count(1) from dba_objects where owner='IMANAGE' and status='INVALID'; COUNT(1) ---------18 SQL> select count(1) from dba_objects where owner='IMANAGE' and object_type='MATERIALIZED VIEW' AND status='VALID'; COUNT(1) ---------10 CSE_D48.IMANAGE schema -

OBJECT_TYPE COUNT(1) ------------------- ---------INDEX 345 PROCEDURE 3 TABLE PARTITION 1040 TABLE 168 TYPE 2 FUNCTION 7 MATERIALIZED VIEW 14 PACKAGE BODY 9 INDEX PARTITION 2201 PACKAGE 10 SEQUENCE 19 SQL> select count(1) from dba_objects where owner='IMANAGE' and status='INVALID'; COUNT(1) ---------3 OBJECT_TYPE OBJECT_NAME -------------------------------------------------------------------------------PROCEDURE CHECK_AVERAGE_WAIT PACKAGE Imanage_Pkg_Dboard_10FEB PACKAGE BODY IMANAGE_IREPORT_PKG SQL> select count(1) from dba_objects where owner='IMANAGE' and object_type='MATERIALIZED VIEW' AND status='VALID'; COUNT(1) ---------14 London Server Hostname : cseloukdudb03 Database Name : CSE_D48 Username/Password : IMANAGE/IMANAGE1 TNSENTRY CSE_D48 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(Host = cse_d48.comfin.ge.com)(Port = 1521)) (CONNECT_DATA = (SID = CSE_D48)) )

Complete Rman backup : !/bin/ksh export HOME_ORACLE=/export/home/oracle . $HOME_ORACLE/.profile export ORACLE_SID=cbrm export ORAENV_ASK=NO . oraenv export ORAENV_ASK=YES export TODAY=`date +%d%m%y`; rm /backup03/rman/cbrm/* mv /backup02/rman/cbrm/* /backup03/rman/cbrm/ mv /backup01/rman/cbrm/* /backup02/rman/cbrm/ rman target / nocatalog cmdfile $RMAN_HOME/cbrm_full_hot_bkup.rman msglog $RMAN_HOME/cbrm_full_h ot_bkup.log append Default users in 10g SYS SYSTEM EBADMIN ORASUPPT OUTLN TSMSYS SYSTEM SYSTEM TOOLS USERS SYSTEM SYSTEM

DIP DBSNMP

SYSTEM SYSAUX

select PRIVILEGE from dba_sys_privs where GRANTEE='CBRM';

SQL> select count(1), SEGMENT_TYPE from dba_segments where owner='CBRM' group by SEGMENT_TYPE;

COUNT(1) SEGMENT_TYPE ---------- -----------------6 LOBINDEX 6 LOBSEGMENT 104 TABLE 82 INDEX

SQL> select table_name from dba_tables where owner='CBRM';

Neeraj Goyal/GE... SELECT DBMS_METADATA.GET_DDL('TABLESPACE', tablespace_name) FROM DBA_tablespaces; Neeraj Goyal/GE... select 'create tablespace ' || df.tablespace_name || chr(10) || ' datafile ''' || df.file_name || ''' size ' || df.bytes || decode(autoextensible,'N',null, chr(10) || ' autoextend on maxsize ' || maxbytes) || chr(10)

|| 'default storage ( initial ' || initial_extent || decode (next_extent, null, null, ' next ' || next_extent ) || ' minextents ' || min_extents || ' maxextents ' || decode(max_extents,'2147483645','unlimited',max_extents) || ') ;' from dba_data_files df, dba_tablespaces t where df.tablespace_name=t.tablespace_name

/oralog/oradata/testpowi/bdump> sqlplus "/ as sysdba"

SQL*Plus: Release 8.1.7.0.0 - Production on Ve Mai 2 10:21:47 2008

(c) Copyright 2000 Oracle Corporation. All rights reserved.

ERROR: ORA-00020: maximum number of processes (50) exceeded

Entrez le nom utilisateur : internal Connecté. SQL> shutdown abort Instance ORACLE arrêtée. ORA-28604: table too fragmented to build bitmap index (440626545,192,192)" Move the table and rebuild the index

ALTER DATABASE DATAFILE ‘/oradata1/prodeuri/prodeuri/users02.dbf' RESIZE 100M exec dbms_stats.gather_table_stats(ownname => ' GL',tabname => ‘JG_ZZ_TA_RULE_SETS’,estimate_percent => 5, cascade => true); ANALYZE TABLE DWC_FF_OWNER.dwc_tmp_oas_docline ESTIMATE STATISTICS SAMPLE 20 PERCENT;

DWC_FF_OWNER.dwc_tmp_oas_docline

willow2k,interface,intf_audit and phx_cli schmas dbms_stats.gather_schema_stats(‘GL’,5,NULL,NULL,NULL,'ALL',TRUE); JE_GL_BATCHES / GL_CODE_COMBINATIONS / GL_JE_HEADERS/ GL_JE_LINES / GL_PERIODS / Import: Release 10.2.0.3.0 - Production on Mon May 12 10:45:37 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved. =========================================== Import log file gies following error after full import of the db without data and for next schema wise data import : IMP-00058: ORACLE error 1017 encountered ORA-01017: invalid username/password; logon deniedUsername: IMP-00000: Import terminated unsuccessfully Import Ran 3 seconds Import Complete

System password changed during full import ….rest it back and work fine

Please Create a read only user ID for EEF_Q02 and EEF_Q01 database on ukkinua08ceefge : Sol : SQL> create user U501590258 identified by welcome12 DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP;

User created.

SQL> grant connect,select any table to U501590258;

Grant succeeded.

SQL> conn U501590258/welcome12 Connected.

But in this case user has to put schema name before selecting any data i.e Schemaname.tablename

===================================================== Relink receiving executables. cd $PO_TOP/bin

$ adrelink force=y ranlib=y "PO RCVOLTM" $ adrelink force=y ranlib=y "PO RVCTP" Bounce the Receiving Transaction Manager. a. $ps -ef | grep RCVOLTM (to see how many processes are running) b. Deactivate Receiving Transaction Manager (System Administrator > Concurrent > Manager > Administer) c. $ps -ef | grep RCVOLTM (repeat until no processes are running) d. Restart Receiving Transaction Manager Verify rvacj.lpc file version is at 115.30 or higher. If not apply Patch 2019427. cd $PO_TOP/bin strings -a RVCTP|grep -i 'Header: rvacj.lpc'

Verify rvtth.lpc file version is at 115.27 or higher. If not apply Patch 2191407. cd $PO_TOP/bin strings -a RVCTP|grep -i 'Header: rvtth.lpc' Verify if 11i.INV.G(2004922) or a patch containing this patch has been applied. If so, Patch 2217071 is required and should be applied. As a workaround, test changing the RCV: Processing Mode profile option to Immediate or Batch and verify if the problem is reproducible.

cmfstctdbd01(oracle): find /csv01 -name RCVPRETB.pls -print /csv01/oracle/csv01appl/po/11.5.0/patch/115/sql/RCVPRETB.pls

/csv01/oracle/csv01appl/PATCH/6665228/po/patch/115/sql/RCVPRETB.pls / csv01/oracle/csv01appl/PATCH/6665228/backup/csv01/cmfstctdbd01/po/patch/ 115/sql/RCVPRETB.pls

cfp10 db restore :

Step 1 Check the backup from which we need to restor the db

Step 2 save the backup if it is ok

Step 3 Stop the database i.e cfp10_all.sh stop

Step 4 Run the script coldrestore.sh i.e coldrestore.sh -p5 -s cfp10 /backup01/oradata/cfp10/b061105_0340 &

location of script coldrestore.sh :-->/util/dba/bin

Step 5 Check the logfile of recovery

location of logfile :-->/util/dba/cfp10/reports

Step 6 start the database

cfp10_all.sh start

location of script cfp10_all.sh :-->/util/dba/bin/cfp10

Step 7 Confirm with user

mmfdbp0003(oracle): pwd /util/dba/bin/cfp10 mmfdbp0003(oracle): ls -ltr total 16 -rwxr-x--- 1 oracle dba -rwxr-x--- 1 oracle dba 1590 Oct 14 2004 cfp10_db_cntl.sh 1289 Oct 14 2004 cfp10_all.sh

mmfdbp0003(oracle): cd ../../bin/cfp10

mmfdbp0003(oracle): ls cfp10_all.sh cfp10_db_cntl.sh

mmfdbp0003(oracle): cfp10_all.sh start

COMP_RTN="gzip"

#User defined Function function email_errors { # Email the DBA group when errors occur mmfdbp0003(oracle): crontab -l|grep cfp10 ## * cfp10* 40 03 * * 0-6 /util/dba/bin/coldbackup.sh -p5 -s cfp10 /backup01/oradata /backup02/oradata /backup03/oradata /backup04/oradata /backup05/oradata > /dev/null 2>&1 01 08 * * 0 /util/dba/bin/batch_sqlplus.sh cfp10 analyze_riskanalyst.sql > /dev/null 2>&1 mmfdbp0003(oracle): coldrestore.sh -p5 -s cfp10 /backup01/oradata/cfp10/b061105_0340 & 23228 mmfdbp0003(oracle): pwd /util/dba/bin

mmfdbp0003(oracle): cd ../cfp10/reports mmfdbp0003(oracle): ls -ltr total 200 -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba -rw-r--r-- 1 oracle dba 8111 Oct 26 03:45 cfp10_coldbackup_19579.lst 8069 Oct 27 03:46 cfp10_coldbackup_710.lst 8048 Oct 28 03:45 cfp10_coldbackup_24126.lst 8039 Oct 29 03:45 cfp10_coldbackup_10902.lst 696 Oct 29 08:10 cfp10_sqlplus_2661.lst 8050 Oct 30 03:45 cfp10_coldbackup_16019.lst 8079 Oct 31 03:45 cfp10_coldbackup_13505.lst 8060 Nov 1 03:45 cfp10_coldbackup_2465.lst 8115 Nov 2 03:45 cfp10_coldbackup_6195.lst 8061 Nov 3 03:45 cfp10_coldbackup_16586.lst 8038 Nov 4 03:45 cfp10_coldbackup_8435.lst 8027 Nov 5 03:45 cfp10_coldbackup_23312.lst 694 Nov 5 08:10 cfp10_sqlplus_341.lst 1361 Nov 5 12:10 cfp10_restore_23228.lst

mmfdbp0003(oracle): more cfp10_restore_23228.lst Starting Restore for Database cfp10 Sun Nov 5 12:10:40 EST 2006 Process Id = 23228

PARM=/backup01/oradata/cfp10/b061105_0340

Parameters For This Restore Are: RECOVERY FILE = /backup01/oradata/cfp10/b061105_0340/cfp10files.rco INFO FILE = /backup01/oradata/cfp10/b061105_0340/cfp10_recovery.info LOG = LOG

SID_NAME = cfp10 PARALLEL = 5

Number of File to be Restored = 15

5 Jobs will be Submitted

Spawning background Job(1) with the Following Parameters Recovery File Log File = /util/dba/dbfiles/cfp10/cfp10_rco.1

= /util/dba/dbfiles/cfp10/cfp10_log.1

Spawning background Job(2) with the Following Parameters Recovery File Log File = /util/dba/dbfiles/cfp10/cfp10_rco.2

= /util/dba/dbfiles/cfp10/cfp10_log.2

Spawning background Job(3) with the Following Parameters Recovery File Log File = /util/dba/dbfiles/cfp10/cfp10_rco.3

= /util/dba/dbfiles/cfp10/cfp10_log.3

Spawning background Job(4) with the Following Parameters Recovery File Log File = /util/dba/dbfiles/cfp10/cfp10_rco.4

= /util/dba/dbfiles/cfp10/cfp10_log.4

Spawning background Job(5) with the Following Parameters Recovery File Log File = /util/dba/dbfiles/cfp10/cfp10_rco.5

= /util/dba/dbfiles/cfp10/cfp10_log.5

Waiting for Background Processes to complete mmfdbp0003(oracle): mmfdbp0003(oracle): mmfdbp0003(oracle): mmfdbp0003(oracle): mmfdbp0003(oracle): tail -f cfp10_restore_23228.lst Spawning background Job(4) with the Following Parameters

Recovery File Log File

= /util/dba/dbfiles/cfp10/cfp10_rco.4

= /util/dba/dbfiles/cfp10/cfp10_log.4

Spawning background Job(5) with the Following Parameters Recovery File Log File = /util/dba/dbfiles/cfp10/cfp10_rco.5

= /util/dba/dbfiles/cfp10/cfp10_log.5

Waiting for Background Processes to complete

Printing Log File = /util/dba/dbfiles/cfp10/cfp10_log.1

Uncompressing /backup01/oradata/cfp10/b061105_0340/riskanalyst_data_f1.dbf.Z TO /d007/oradata/cfp10/riskanalyst_data_f1.dbf

Uncompress Successful

Uncompressing /backup02/oradata/cfp10/b061105_0340/users01.dbf.Z TO /d007/oradata/cfp10/users01.dbf

Uncompress Successful

Uncompressing /backup02/oradata/cfp10/b061105_0340/riskanalyst_index_f1.dbf.Z TO /d007/oradata/cfp10/riskanalyst_index_f1.dbf

Uncompress Successful Sun Nov 5 12:13:56 EST 2006 Uncompress ended

Printing Log File = /util/dba/dbfiles/cfp10/cfp10_log.2

Uncompressing /backup02/oradata/cfp10/b061105_0340/redo01a.log.Z TO /r001/oradata/cfp10/redo01a.log

Uncompress Successful

Uncompressing /backup02/oradata/cfp10/b061105_0340/redo01b.log.Z TO /d007/oradata/cfp10/redo01b.log

Uncompress Successful

Uncompressing /backup02/oradata/cfp10/b061105_0340/redo02a.log.Z TO /r001/oradata/cfp10/redo02a.log

Uncompress Successful Sun Nov 5 12:10:50 EST 2006 Uncompress ended

Printing Log File = /util/dba/dbfiles/cfp10/cfp10_log.3

Uncompressing /backup02/oradata/cfp10/b061105_0340/redo02b.log.Z TO /d007/oradata/cfp10/redo02b.log

Uncompress Successful

Uncompressing /backup02/oradata/cfp10/b061105_0340/control1.ctl.Z TO /d007/oradata/cfp10/control1.ctl

Uncompress Successful

Uncompressing /backup02/oradata/cfp10/b061105_0340/control2.ctl.Z TO /r001/oradata/cfp10/control2.ctl

Uncompress Successful Sun Nov 5 12:10:45 EST 2006 Uncompress ended

Printing Log File = /util/dba/dbfiles/cfp10/cfp10_log.4

Uncompressing /backup03/oradata/cfp10/b061105_0340/tools01.dbf.Z TO /d007/oradata/cfp10/tools01.dbf

Uncompress Successful

Uncompressing /backup03/oradata/cfp10/b061105_0340/riskanalyst_data_f3.dbf.Z

TO

/d007/oradata/cfp10/riskanalyst_data_f3.dbf

Uncompress Successful

Uncompressing /backup04/oradata/cfp10/b061105_0340/undo_rbs01.dbf.Z TO /d007/oradata/cfp10/undo_rbs01.dbf

Uncompress Successful Sun Nov 5 12:12:55 EST 2006 Uncompress ended

Printing Log File = /util/dba/dbfiles/cfp10/cfp10_log.5

Uncompressing /backup04/oradata/cfp10/b061105_0340/temp01.dbf.Z TO /d007/oradata/cfp10/temp01.dbf

Uncompress Successful

Uncompressing /backup05/oradata/cfp10/b061105_0340/system01.dbf.Z TO /d007/oradata/cfp10/system01.dbf

Uncompress Successful

Uncompressing /backup05/oradata/cfp10/b061105_0340/riskanalyst_index_f2.dbf.Z TO /d007/oradata/cfp10/riskanalyst_index_f2.dbf

Uncompress Successful

Sun Nov 5 12:14:23 EST 2006 Uncompress ended

Sun Nov 5 12:14:23 EST 2006 The Job Ran 223 seconds Restore Complete

^Cmmfdbp0003(oracle): pwd /util/dba/cfp10/reports mmfdbp0003(oracle): cd ../../bin/cfp10 mmfdbp0003(oracle): ls cfp10_all.sh cfp10_db_cntl.sh

mmfdbp0003(oracle): cfp10_all.sh start Start the database instance cfp10.

SID Set To cfp10 Starting up cfp10 Instance Sun Nov 5 12:15:02 EST 2006 0

SQL*Plus: Release 9.2.0.8.0 - Production on Sun Nov 5 12:15:02 2006

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

SQL> Connected to an idle instance. SQL> ORACLE instance started.

Total System Global Area 117674644 bytes Fixed Size Variable Size Database Buffers Redo Buffers Database mounted. Database opened. SQL> Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production mmfdbp0003(oracle): df -k /d007 Filesystem kbytes used avail capacity Mounted on 455316 bytes 100663296 bytes 16384000 bytes 172032 bytes

/dev/vx/dsk/dbp03_d007_vg/d007 251658240 241389209 9627258 mmfdbp0003(oracle): Steps for RefRreSh using HOtbaCkup Method - I Stpe.1 97% /d007

Start the database in nomount state. Create the controlfile

CREATE CONTROLFILE REUSE SET DATABASE "IGEN_D14" RESETLOGS NOARCHIVELOG -- SET STANDBY TO MAXIMIZE PERFORMANCE MAXLOGFILES 255 MAXLOGMEMBERS 3 MAXDATAFILES 1022 MAXINSTANCES 1 MAXLOGHISTORY 1361 LOGFILE GROUP 1 ( '/d011/oradata/IGEN_D14/redo01a.log', '/d011/oradata/IGEN_D14/redo01b.log' ) SIZE 50M, -- STANDBY LOGFILE DATAFILE '/d011/oradata/IGEN_D14/siebelindex_17.dbf', '/d011/oradata/IGEN_D14/siebeldata_14.dbf', '/d011/oradata/IGEN_D14/siebelindex_18.dbf' CHARACTER SET WE8MSWIN1252 ;

Step.2 SQL> Recover Automatic Using Backup controlfile Until time '2006-0606:02:08:45'; Media recovery complete. Note: Timestamp u can get from backup dump ex: /backup01/oradata/ICEF_P1/b060605_2230/IVFS_P14_recovery.info SQL> alter database open resetlogs; Database altered. SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/d007/oradata/IGEN_D14/temp01.dbf' 2 SIZE 1999M REUSE AUTOEXTEND OFF; Tablespace altered. SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/d007/oradata/IGEN_D14/temp02.dbf' 2 SIZE 1049624576 REUSE AUTOEXTEND OFF; Tablespace altered. SQL> alter database rename global_name to IGEN_D14; Database altered. Method - II Create controlfile. after that…

SQL> select * from v$logfile; GROUP# STATUS TYPE MEMBER

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

2

STALE ONLINE

/u01/THIRU/redo02.log

1

STALE ONLINE

/u01/THIRU/redo01.log

SQL> recover database using backup controlfile;

ORA-00279: change 13516949 generated at 06/07/2006 06:27:44 needed for thread 1

ORA-00289: suggestion : /u01/app/oracle/product/9.2.0/dbs/arch1_8440.dbf

ORA-00280: change 13516949 for thread 1 is in sequence #8440

Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

/u01/THIRU/redo01.log SQL> recover database using backup controlfile; ORA-00279: change 13516949 generated at 06/07/2006 06:27:44 needed for thread 1 ORA-00289: suggestion : /u01/app/oracle/product/9.2.0/dbs/arch1_8440.dbf ORA-00280: change 13516949 for thread 1 is in sequence #8440 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} /u01/THIRU/redo02.log Log applied. Media recovery complete. SQL> SQL> alter database open resetlogs; Database altered. GE Real Estate - DALLAS Oracle Financials Steps to Start and stop the FPROD database (REDBA)--- 3.174.240.138 NOTE: If .profile gets automatically deleted, restore from /export/home/orah/PROFILE_PRODUCTION RDBMS - 8.1.7.4.0 Oracle Applications - 11.5.7 (Single Node Instance) Hostname - orafinprdcrege Location - Stamford SYSADMIN password - SYSADMIN STOP a) Stopping FPROD Application Services: 1. Login to Server using applmgr/apps123 2. cd $COMN_TOP 3. ./stopFPRODapps.sh script

-------------------------------------------------4. su - applh 5. password: applh 6. cd $COMN_TOP 7. ./stopFHISTapps.sh script b) Stopping FPROD Database Services: 1. login to server using oracle/ora234 2. svrmgrl 3. connect interal/critical 4. shutdown immediate -------------------------------------------------5. su - orah 6. password : orah 7. svrmgr 8. connect interal/urgent 8. shutdown immediate Note: Is to be done 5:00 PM EST on fridays on user request START a) Start FPROD Database 1. login to server using oracle/ora234 2. svrmgr1 3. connect interal/critical 4. startup --------------------------------------------------5. su - orah 6. password : orah 7. svrmgr 8. connect interal/urgent 8. startup b) Start FPROD Application 1. Login to Server using applmgr/apps123 2. cd $COMN_TOP 3. ./startFPRODapps.sh script --------------------------------------------------4. su - applh 5. password: applh 6. cd $COMN_TOP 7. ./startFHISTapps.sh script 8. Check the application by loging into it.

Note: we need to start the services before 7:45 AM EST on saturday When its asked, pl do the following. 1. stop apps - applmgr/apps123 Cd $COMN_TOP and use the stop script 2. stop db - oracle/ora234 Svrmgrl - connect internal/critical Shutdown immediate. When you have to start - start db first then apps. Also start the listener as oracle lsnrct start fprod ______________________________________________ From: Wallace, Walter (GE, Corporate) Sent: Monday, January 28, 2008 2:41 PM To: Brauer, Christine (GE Comm Fin) Cc: @COMFIN UNIX Support; @COMFIN ESS ONCALL DBA; Desu, Rao (GE Comm Fin, non-ge) Subject: RE: Status on orafinprdcrege - HBA replacement Mon 1/28 5pm We're set for this change at 5pm. Does anyone need to be involved before the server shutdown / after the change is complete? I'll ask oncall person from unix team and DBA team to join and shut down databases. http://gis.kintana.corporate.ge.com/itg/web/knta/crt/RequestDetail.jsp? REQUEST_ID=5258240 </exchweb/bin/redir.asp? URL=http://gis.kintana.corporate.ge.com/itg/web/knta/crt/RequestDetail.jsp? REQUEST_ID=5258240> The "15" bridge is reserved: Toll Free Number: 1-866-617-3588 Toll Number: 210-795-0366 Dial Comm Number: *202-2000 User Access Code: 13131315 How to stop and start informatica : Script location : Chandan Panda... stpo atart se Salil Chaudhary/... location batana Chandan Panda... just a sec Chandan Panda... cmfalgadinfoap01(pserver7): pwd /opt2/pserver7/Informatica/pcserver cmfalgadinfoap01(pserver7): cd /opt2/pserver7/ cmfalgadinfoap01(pserver7): ls

Informatica License PA Reports sqlnet.log cmfalgadinfoap01(pserver7): cd Scripts

Scripts

TeraData

core

cmfalgadinfoap01(pserver7): ls -lrt total 2920 -rwxr-xr-x 1 pserver7 pserver7 84 Oct 27 2005 stop_PA -rwxr-xr-x 1 pserver7 pserver7 74 Oct 27 2005 start_PA_jboss_bkgrnd -rwxr-xr-x 1 pserver7 pserver7 72 Oct 31 2005 eraseCache.sh -rwxr-xr-x 1 pserver7 pserver7 221 Nov 1 2005 start_Alpha_DEV_pmserver_bkgrnd -rwxr-xr-x 1 pserver7 pserver7 87 Nov 2 2005 start_PA_jboss_server -rwxr-xr-x 1 pserver7 pserver7 1019 Nov 3 2005 pserver7check.sh -rwxr-xr-x 1 pserver7 pserver7 204 Nov 10 2005 backup_DEV.sh -rw-rw-r-- 1 pserver7 pserver7 1299 Nov 10 2005 Informatica_DEV_Trans.sh -rwxr-xr-x 1 pserver7 pserver7 82 Nov 16 2005 run_cleanup.sh -rwxr-xr-x 1 pserver7 pserver7 3580 Nov 16 2005 wipeout_oldfiles.sh -rwxr-xr-x 1 pserver7 pserver7 269 Mar 8 2006 stop_servers -rwxr-xr-x 1 pserver7 pserver7 956 Mar 13 2006 file_maint.sh -rwxr-xr-x 1 pserver7 pserver7 583 Apr 26 2006 repository_backup_DEV.sh -rwxr-xr-x 1 pserver7 pserver7 231 Apr 27 2006 start_servers -rw-rw-r-- 1 pserver7 pserver7 1056 May 17 2006 wipeout.dat -rwxr-xr-x 1 pserver7 pserver7 357732 Jun 5 2006 sscan.sol -rw-rw-r-- 1 pserver7 pserver7 97605 Jun 5 2006 sscmfalgadinfoap01.xml -rwxr-xr-x 1 pserver7 pserver7 6836 Jun 6 2006 pmstack -rw-rw-r-- 1 pserver7 pserver7 1007902 Oct 21 2006 poweranalyzer.out.bkup -rwxr-xr-x 1 pserver7 pserver7 284 Apr 16 10:41 move_folder.sh -rw-r--r-- 1 pserver7 pserver7 704 May 21 16:20 poweranalyzer.out -rw-r--r-- 1 pserver7 pserver7 0 May 21 16:20 nohup.out cmfalgadinfoap01(pserver7): ls -lrt *stop* -rwxr-xr-x 1 pserver7 pserver7 84 Oct 27 2005 stop_PA -rwxr-xr-x 1 pserver7 pserver7 269 Mar 8 2006 stop_servers cmfalgadinfoap01(pserver7): stop_servers Informatica(tm) PMCMD, version [7.1.3], build [0627], 32-bit Copyright (c) Informatica Corporation 1994 - 2005 All Rights Reserved. Invoked at Thu May 22 14:06:25 2008 ERROR: Cannot connect to Informatica Server [cmfalgadinfoap01:5999]. Completed at Thu May 22 14:06:25 2008

Sent shutdown request to Informatica Repository Server running at cmfalgadinfoap01:7001 cmfalgadinfoap01(pserver7): start_servers cmfalgadinfoap01(pserver7): Sending output to nohup.out cmfalgadinfoap01(pserver7): cd /opt2/pserver7/Informatica/pcserver cmfalgadinfoap01(pserver7): pmcmd ping cmfalgadinfoap01:5999 Informatica(tm) PMCMD 7.1.3 (0627) Copyright (c) Informatica Corporation 1994 - 2005 All Rights Reserved. Invoked at Thu May 22 14:08:59 2008 pmcmd is starting. [Release 7.1.3 0627] Warning: This command will be deprecated in future release. Informatica Server is alive. Disconnecting from Informatica Server Completed at Thu May 22 14:09:00 2008 cmfalgadinfoap01(pserver7):

Sign up to vote on this title
UsefulNot useful