DBA1
DBA1
11:
Server Login
GHCCPNCRS01\Administrator
TCLGHCC\ctiadmin
P@ssw0rd
Piled up server
GHCCPNCVP0006
GHCCPNCVP0001
GHCCPNCVP0003
GHCCPNCVP0009
GHCCPNCVP0010
GHCCPNCVP0004
GHCCPNCVP0012
GHCCPNCVP0008
GHCCPNCVP0007
GHCCPNCVP0011
GHCCPNCVP0005
788515
513884
IM team Landline no : 020-666144444
IMP Links:
Timesheet: https://interpret.servion.com/sites/DynamicsAx/EmployeeServices/Enterprise%20Portal/default.aspx?
&WDPK=initial&WMI=EPPersonalInformation&redirected=1&WCMP=IN1&WMI=EPPersonalInformation
http://10.104.28.41/cvptemp1/MainPage.aspx
http://10.104.28.41/celinks/CELinks.aspx
http://10.104.28.41/cvpserver/Barring.aspx
ggpuneuser/ggpune20 –GSMDB
ggpunepost/ggpost20 - CDMDB
gghyuser/gghyd20 -HGSM
gghypost/ggpost20 -HCDMA
Root Password:
Username : root
ghccpune20
Password : ghcchyd20
Password:
connections:
ftp://172.17.4.100/Rajnish/
To find passwd to go ftp above mentioned link and right click on free space. Select “login as” . It will
show username. Passwd is same as username.
username – corptrng
passwd – same as username
Oracle Support
User Name = [email protected]
Pwd : Servion@123
Server:10.104.28
Server :IVR th
==========================
The given AC: 991196896 Del: 0712- 411471 is now available in IVR DB.
Problem/Issue Description:
Invalid number.
Problem/Issue Analysis:
Number not available in IVR Tables
Problem/Issue Resolution:
Due to some discrepancy data is not flown to IVR tables. By resolving this data is now updated in IVR tables
Connecting DB CDMADB:
Connecting DB HGSMDB:
Connecting DB HCDMADB:
OEM Links
PFB the OEM Links for all the DB with username and pwd.
https://ghcchyoda1.tclghcc.com:1158/em/console/database/instance/repDown?type=oracle_database
- hgsmdb
https://ghcchyoda1.tclghcc.com:5500/em/console/logon/logoff?event=load - hcdmadb
https://ghccpnoda1.tclghcc.com:1158/em GSMDB
https://ghccpnoda1.tclghcc.com:5500/em CDMADB
ODA version
Version:
./ggsci> Oracle GoldenGate Command Interpreter for Oracle
BANNER
--------------------------------------------------------------------------------
-----------------
2.check cluster services for below servers
--]$ crs_stat -t
1.grid@ghccpnoda1:~
2.grid@ghccpnoda2:~
3.grid@ghcchyoda1:~
4.grid@ghcchyoda1:~
--------------------
3.Checking tablespaces[GSMDB,CDMADB,HGSMDB,HCDMADB,Pune_Test]
Session count Query:hydp
Tablespace query :
SELECT a.tablespace_name,
ROUND (((c.BYTES - NVL (b.BYTES, 0)) / c.BYTES) * 100,2) percentage_used,
c.BYTES / 1024 / 1024/1024 space_allocated,
ROUND (c.BYTES / 1024 / 1024/1024 - NVL (b.BYTES, 0) / 1024 / 1024/1024,2) space_used,
ROUND (NVL (b.BYTES, 0) / 1024 / 1024/1024, 2) space_free,
c.DATAFILES
FROM dba_tablespaces a,
( SELECT tablespace_name,
SUM (BYTES) BYTES
FROM dba_free_space
GROUP BY tablespace_name
) b,
( SELECT COUNT (1) DATAFILES,
SUM (BYTES) BYTES,
tablespace_name
FROM dba_data_files
GROUP BY tablespace_name
)c
WHERE b.tablespace_name(+) = a.tablespace_name
AND c.tablespace_name(+) = a.tablespace_name
ORDER BY NVL (((c.BYTES - NVL (b.BYTES, 0)) / c.BYTES), 0) DESC;
Ivr_call_activity _query
-----------------
For creating TCD partitioning:goto Pune_test and open sqlworksheet(check the indexes are in valid before
partition)
Run this Query(change the dates accordingly)..
alter table CDRUSER.TERMINATION_CALL_DETAIL ADD PARTITION "DT_JAN21_2016" VALUES
LESS THAN (TIMESTAMP' 2016-01-21 23:59:59') TABLESPACE "TBS_CDR";
------------------
--------------------
Cd /u01/app/oracle/diag/rdbms/gsmdb/GSMDBl/trace
--------------------
7.AWR generating(remaining)
@$ORACLE_HOME/rdbms/admin/awrrpt.sql;
@$ORACLE_HOME/rdbms/admin/addmrpt.sql;
@$ORACLE_HOME/rdbms/admin/ashrpt.sql;
8.GG monitoring:
info all [to check all process]
info R_IVPR* [to check the Prepaid process]
info R_IVPO* [to check the Postpaid process]
11.For mapping..
connections-->GSMDB-->OTHER USERS-->ctiAPPSCONFIGUSER-->tbl_crm_cti_map(for postpaid mapping)
-->tbl_tipps_cti_map(for prepaid mapping)..
------------------------
*Login: pwd:
*puneoda1 ~]$ . oraenv
]? GSMDB
]$ export ORACLE_SID=GSMDB1
]$ rman target /
eg:for punuatdb:
AO employee update
EMP NO update:
CDMADB, HCDMADB
IVRPOSTUSER
TBL_EMP_DEAL_PROFILE_NEW
GSM,HGSM
CTIAPPsCONFIGUSER-
TBL_IVR_MENU_DESCRIPTION
(menu_id='AO- 900672’)
TNSORA
F:\app\administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN
Eg:
select count(1) from IVRPREUSER.GSM_TBL_PRE_IVR_PROFILE
--------------------------------------
To display all the details of table:
Eg:
select * from IVRPREUSER.GSM_TBL_PRE_IVR_PROFILE
----------------------------------------------------------
Details:
session count:
select count(1),machine,username from gv$session where machine like 'GHCC%' group by machine,username
order by count(1) desc;
*alert log file location.
cd /u01/app/oracle/diag/rdbms/gsmdb/GSMDB1/trace
/u01/app/oracle/diag/rdbms/gsmdb/GSMDB2/trace
/u01/app/oracle/diag/rdbms/cdmadb/CDMADB1/trace
/u01/app/oracle/diag/rdbms/cdmadb/CDMADB2/trace
/u01/app/oracle/diag/rdbms/hgsmdb/HGSMDB1/trace
/u01/app/oracle/diag/rdbms/hgsmdb/HGSMDB2/trace
/u01/app/oracle/diag/rdbms/hcdmadb/HCDMADB1/trace
/u01/app/oracle/diag/rdbms/hcdmadb/HCDMADB2/trace
=================================================================================
=
Unbar:
XFER_BARRED_DATE=>PREVIOUS_DATE
XFER_COUNT=>0
XFER_MONTHLY_COUNT=>0
XFER_DATE=>PREVIOUS_DATE
XFER_BARRED_DATE_198=>PREVIOUS_DATE
XFER_DATE_198=>PREVIOUS_DATE
XFER_COUNT_198=>0
cdmadb:
select XFER_BARRED_DATE,XFER_COUNT,XFER_MONTHLY_COUNT,XFER_DATE,XFER_
19/10/2016RED_DATE_PRH,XFER_DATE_PRH,XFER_COUNT_PRH from
IVRPOSTUSER.TBL_POS_IVR_PROFILE where mobile_num='65240027';
..........................................................
GSMDB:
select
XFER_BARRED_DATE,XFER_COUNT,XFER_MONTHLY_COUNT,XFER_DATE,XFER_BARRED_DATE_1
98,XFER_DATE_198,XFER_COUNT_198 from IVRPREUSER.GSM_TBL_PRE_IVR_PROFILE where
MOBILE_NUM in ('9786413962','8807419113');
select
XFER_BARRED_DATE,XFER_COUNT,XFER_MONTHLY_COUNT,XFER_DATE,XFER_BARRED_DATE_1
98,XFER_DATE_198,XFER_COUNT_198 from IVRPREUSER.GSM_TBL_PRE_IVR_PROFILE where
MOBILE_NUM ='9786413962';
+++++++++++++++++++++++++++++++++
bar:
for 121
1) XFER_BARRED_DATE - change to Current date - - format (08/02/2016)(DD/MM/YY)
2) XFER_DATE - change to Current date - - format (08/02/2016)
3) XFER_BARRED_TYPE - make it 4
4)XFER_MONTHLY_COUNT - 5001
for 198
4) XFER_BARRED_DATE_PRH - change to Current date - format (08/02/2016)
5) XFER_DATE_PRH - change to Current date -- format (08/02/2016)
6) XFER_BARRED_TYPE_PRH - Make it 4
7)XFER_MONTHLY_COUNT_198=5001
select
XFER_BARRED_DATE,XFER_DATE,XFER_BARRED_TYPE,XFER_BARRED_DATE_198,XFER_DATE_19
8,XFER_BARRED_TYPE_198 from IVRPREUSER.GSM_TBL_PRE_IVR_PROFILE where
mobile_num='8866691094';
FOR permanent barring:
insert the number and circle_id in tbl_hardstop_barring table.
table_name=GSM_IVR_CST_MST
TCSPOSTPAID-->TTLASR
table_name=GSM_IVR_CST_MST
TBL_REGNO_DTLS
Unlimited access:
For unlimited acces:first check whether it is active prpaid or postpaid number
Prepaid:
IVRPREUSER.GSM_TBL_PRE_IVR_PROFILE
ARPU category:Z,
XFER_BARRED_DATE=(null)
XFER_COUNT=(null)
XFER_DATE=(null)
XFER_BARRED_TYPE=0
XFER_MONTHLY_COUNT=(null) and same for 198.
Postpaid:
IVRPOSTUSER.TBL_POS_IVR_PROFILE
ARPU category:J,
XFER_BARRED_DATE=(null)
XFER_COUNT=(null)
XFER_DATE=(null)
XFER_BARRED_TYPE=0
XFER_MONTHLY_COUNT=(null) and same for 198.
Rebuild Index:
Creating index:
Alternate no:
if they ask to check alternate no, then check at attribute 7 column n GSM_IVR_ACCT_DEL_INT
Circles:
CDMA
AP--
GJ -
BH--
HP --
HR--
KA --
KL--
MP --
MU -=-
ND **
OR--
PB --
RJ --
MH --
RW --
TN --
UPE--
UPW --
WBC --
APRU Category:
Check ping
For example:Hyd
RMAN:
Archive log delete error:
1611563069
delete archivelog until time 'sysdate-1';
RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due
RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
RMAN-06210: List of Mismatched objects
RMAN-06211: ==========================
RMAN-06212: Object Type Filename/Handle
RMAN-06213: --------------- ---------------------------------------------------
RMAN-06214: Archivelog +RECO/gsmdb/archivelog/2016_06_30/thread_2_seq_6129. 647.915891371
ORA-00245: control file backup failed; target is likely on a local file system
ASM LOGIN
[grid@ghccpnoda2 ~]$ . oraenv
ORACLE_SID = [+GSMDB2] ? +ASM2
The Oracle base has been changed from /u01/app/oracle to /u01/app/grid
[grid@ghccpnoda2 ~]$ asmcmd
ASMCMD> ls
DATA/
RECO/
REDO/
ASMCMD> cd RECO
ASMCMD> pwd
+RECO
ASMCMD> ls
CDMADB/
GSMDB/
ASMCMD> cd +RECO/gsmdb/archivelog/2016_06_30
ASMCMD-8002: entry '2016_06_30' does not exist in directory '+RECO/gsmdb/archivelog/'
ASMCMD> cd gsm
ASMCMD-8002: entry 'gsm' does not exist in directory '+RECO/'
ASMCMD> ls
CDMADB/
GSMDB/
ASMCMD> pwd
+RECO
ASMCMD> cd /gsmdb/archivelog
ASMCMD> pwd
+RECO/gsmdb/archivelog
ASMCMD> ls
2016_07_28/
2016_07_29/
2016_07_30/
2016_07_31/
2016_08_01/
ASMCMD> cd 2016_07_28/
ASMCMD> ls
thread_1_seq_6952.429.918376661
thread_1_seq_6953.647.918387411
thread_1_seq_6954.424.918394681
thread_1_seq_6955.494.918403993
thread_1_seq_6956.502.918412565
thread_1_seq_6957.572.918420807
thread_1_seq_6958.521.918427801
thread_2_seq_6376.446.918386617
thread_2_seq_6377.469.918400361
thread_2_seq_6378.354.918413627
thread_2_seq_6379.470.918424493
ASMCMD>
ASM:
select group_number,name,type,total_mb,free_mb from v$asm_diskgroup;
select count(1) ,machine,username,status from gv$session where machine like 'GHCC%' group by machine,username,status
order by count(1) desc;
SPOOL ASM<#>_GENERIC_ASM_METADATA.html
SET ECHO ON
SELECT 'THIS ASM REPORT WAS GENERATED AT: ==)> ' , SYSDATE " " FROM DUAL;
SELECT 'INSTANCE NAME: ==)> ' , INSTANCE_NAME " " FROM V$INSTANCE;
SELECT 'HOSTNAME ASSOCIATED WITH THIS ASM INSTANCE: ==)> ' , MACHINE " " FROM V$SESSION
WHERE PROGRAM LIKE '%SMON%';
SELECT * FROM V$INSTANCE;
SUBSTR(C.COMPATIBLE_VERSION,1,12) AS COMPATIBLE
SHOW PARAMETER
SHOW SGA
! cat /tmp/GPNPTOOL.SQL
--DISPLAYS INFORMATION ABOUT THE INITIALIZATION PARAMETERS THAT ARE CURRENTLY IN EFFECT
IN THE INSTANCE.
SPOOL OFF
EXIT
(CASE WHEN RES12 LIKE '%H801_S_%' THEN substr(res12, (instr(res12,'H801_S_')+7)) WHEN RES12 LIKE
'%H802_S_%' THEN substr(res12, (instr(res12,'H802_S_')+7)) WHEN (RES12 LIKE '%H801_E_%' or RES12
LIKE '%H802_E_%') THEN 'E' ELSE '-' END) as IMEI_Count
--Need the CLI dump Nov for UPE, UPW, WBC, RW, OR, TN, AP, KL & KA,MP,GJ
EBS_MARKET_CODES=107,110,201,301,308,426,427,432,435,436,215,430,920,922,923,925,398,399,43
4,433,174,437,556,557,559,560,580,581,525,526,537,538,735,736,739,740,780,782,783,785,786,788,78
9,791
Hi Team,
PFB the ss for the same and confirm us whether you have made changes to the
RSA host key.
EX: Please follow the below steps to resolve the issue.
Q
/goldengate/ServionInLoader/servionloader
/home/oracle/ServionCdmaInLoader
Username:
HOST_NAME=172.17.24.77
PORT=22
USER=gsmservion
PASSWORD=Qwer@1234
HOST_NAME=172.17.7.161
PORT=22
USER=cdmaservion
PASSWORD=Qwer@1234
TCS-SystemAdmin-Employees' <[email protected]>;
'TCS-CRM Prod Support-Employees' <[email protected]>;
'TCS-Prepaid MCA PSG-Employees' <[email protected]>;
'TCS-Windows ADS-Employees' <[email protected]>;
'TCS-Prepaid DBA-Employees' <[email protected]>
Cc:
'Raju Bandari' <[email protected]>;
DBA Team;
Putineni Srinivasa Rao;
GHCCNOC <[email protected]>;
Hi Team,
The CDMA IN Dump FTP Password was expired. Request you to reset the SAME password and
update the status.
Please find the Screenshot for login getting failed for FTP. Kindly do the needful on priority.
Kindly check the IP 172.17.7.161
Username: cdmaservion
Kindly reset the same password.
10.104.20.13
/home/oracle/ServionCdmaInLoader/servionloader
->getincdma.sh
IVR Unbilled:
check in CDMADB(Egainuser) And HCDMADB (Egainunbilled)
cRONJOB:
10.104.28.13 (home/oracle/jobs/unbilled/loader
11:03PM
11:08PM
11:13PM
11:18PM
11:23PM
11:28PM
12:28AM
ps - ef | grep LOCAL=NO
kill -9 (ids)
T-Agent and T-Person
Command line (control file)
for eg:t_agent
1.copy the data from xcel to textpad,
2.replace all the gap with ,
3.replace null with space
4.copy the textpad to server (f disk folder-cdr)
5.---/open the cdr_load_agent..(specify the correct name)
6.truncate the table t_agent_new in puneuatdb (cdruser).(truncate table CDRUSER.T_AGENT_NEW;)
7.open administrator and run the command:
New T_AGENT:
Commands:
),
skillgroupname(skilltargetid,enterprisename) as
agentdetail (SKILLTARGETID,PERIPHERALNUMBER,PERSONID,FIRSTNAME,LASTNAME) as
RouterCallKeyDay,RouterCallKey,DateTime,PeripheralCallType,DigitsDialed,PeripheralCallKey,
CallDisposition,NetworkTime,Duration,RingTime,DelayTime,TimeToAband,HoldTime,TalkTime,
WorkTime,LocalQTime,CallSegmentTime,ConferenceTime,NetworkTargetID,TrunkGroupID,DNIS,
InstrumentPortNumber,AgentPeripheralNumber,ICRCallKey,ICRCallKeyParent,ICRCallKeyChild,
ANI,AnsweredWithinServiceLevel,Priority,Trunk,CallDispositionFlag,RouterCallKeySequenceNumber,
CED,CallTypeID,BadCallTag,ApplicationTaskDisposition,ApplicationData,NetQTime,CallTypeReportingDat
eTime,
NetworkSkillGroupQTime,EnterpriseQueueTime,PRECISIONQUEUEID) as
select AgentSkillTargetID,SkillGroupSkillTargetID,ServiceSkillTargetID,PeripheralID,RouteID,
RouterCallKeyDay,
RouterCallKey,DateTime,PeripheralCallType,DigitsDialed,PeripheralCallKey,
CallDisposition,NetworkTime,Duration,
RingTime,DelayTime,TimeToAband,HoldTime,TalkTime, WorkTime,LocalQTime,
CallSegmentTime,ConferenceTime,NetworkTargetID,TrunkGroupID,DNIS, InstrumentPortNumber,
AgentPeripheralNumber,ICRCallKey,ICRCallKeyParent,ICRCallKeyChild,
ANI,AnsweredWithinServiceLevel,
Priority,Trunk,CallDispositionFlag,RouterCallKeySequenceNumber,
CED,CallTypeID,BadCallTag,ApplicationTaskDisposition,
applicationdata,netqtime,calltypereportingdatetime,
networkskillgroupqtime,enterprisequeuetime,precisionqueueid
),
(
select RouterCallKey, RouterCallKeyDay, (case when max(CallDisposition) = 52 then 'AD' else 'CD'
end) as Hangup_Flag
),
callType1prepare(RouterCallKeyDay,RouterCallKey,CallTypeID, LocalQTime) As
),
RingTime,DelayTime,TimeToAband,HoldTime,
WorkTime,LocalQTime,CallSegmentTime,ConferenceTime,NetworkSkillGroupQTime,EnterpriseQueueTi
me,
CallTypeID,SkillGroupSkillTargetID,PRECISIONQUEUEID) as
),
CallType1(RouterCallKeyDay,RouterCallKey,DateTime, DigitsDialed, DNIS,
ANI,CallDisposition,NetworkTime,RingTime,DelayTime,TimeToAband,HoldTime,
WorkTime,LocalQTime,CallSegmentTime,ConferenceTime,NetworkSkillGroupQTime,EnterpriseQueueTi
me,CallTypeID,SkillGroupSkillTargetID) AS
CallType2
(RouterCallKeyDay,RouterCallKey,CallDisposition,CallTypeId,AgentSkillTargetID,SkillGroupSkillTargetID,
AgentPeripheralNumber,HoldTime,TalkTime,WorkTime, DateTime,
SELECT
RouterCallKeyDay,RouterCallKey,CallDisposition,CallTypeId,AgentSkillTargetID,SkillGroupSkillTargetID,Ag
entPeripheralNumber,HoldTime ,TalkTime,WorkTime,
WHERE PeripheralCallType =2
directory=DATA_PUMP_DIR
DUMPFILE=cdr_jun_july.dmp
logfile=cdr_jun_july.log
COMPRESSION=ALL
CONTENT=ALL
TABLES="CDRUSER.TERMINATION_CALL_DETAIL"
query=CDRUSER.TERMINATION_CALL_DETAIL:"where datetime< to_DATE('01-AUG-15 00:00:00','DD-
MON-YY HH24:MI:SS')"
----------------------------------------------------------------------------------------------------------------
1)Backup:
commit;
5) Index Creation:
6) Renaming Tables:
check with CM Team whether CDR is working fine.Get confirmation then go for the 7th step
IN: GSM
15 6 * * * /goldengate/ServionInLoader/servionloader/getingsm.sh
15 3 * * * /goldengate/ServionInLoader/servionloader/callsqlldr.sh
30 4 * * * /home/oracle/jobs/IN_count/gsm_in.sh
UNBILLED:
30 17 * * * /home/oracle/jobs/unbilled/insert.sh
30 7 * * * /home/oracle/jobs/unbilled/insert.sh
Screenpop:
00 * * * * /home/oracle/screenpop/screenpop.sh
10.104.28.13
IN: CDMA
00 2 * * * /home/oracle/ServionCdmaInLoader/servionloader/getincdma.sh
30 2 * * * /home/oracle/ServionCdmaInLoader/servionloader/callsqlldr.sh
57 3 * * * /home/oracle/jobs/IN_count/cdma_in.sh
HYD:
10.104.20.12
IN- GSM
15 6 * * * /goldengate/ServionInLoader/servionloader/getingsm.sh
15 3 * * * /goldengate/ServionInLoader/servionloader/callsqlldr.sh
UNBILLED:
0 1 * * * /home/oracle/jobs/unbilled/unbilled.sh
10.104.20.13
IN-CDMA
00 2 * * * /home/oracle/ServionCdmaInLoader/servionloader/getincdma.sh
30 2 * * * /home/oracle/ServionCdmaInLoader/servionloader/callsqlldr.sh
Procedure:
-SP_GET_BARRING_DETAILS
PKG_GSMPREPAID
spec
PROCEDURE SP_GET_BARRING_DETAILS
(
i_MDN_NUM IN NUMBER,
o_error_sts OUT VARCHAR2,
o_error_reason OUT VARCHAR2
);
body:
PROCEDURE SP_GET_BARRING_DETAILS
(
i_MDN_NUM IN NUMBER,
o_error_sts OUT VARCHAR2,
o_error_reason OUT VARCHAR2
)
IS
v_COUNT INT;
BEGIN
v_COUNT := 0;
SELECT COUNT(MOBILE_NUM) into v_COUNT from TBL_HARDSTOP_BARRING where
MOBILE_NUM=i_MDN_NUM;
IF(v_COUNT>=1) THEN
o_error_sts :='SU';
o_error_reason:='DATA AVAILABLE IN HARDSTOP BARRING';
ELSE
O_ERROR_STS:='NR';
o_error_reason:='DATA NOT AVAILABLE IN HARDSTOP BARRING';
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
o_error_sts := 'NR';
o_error_reason:= SQLERRM;
WHEN OTHERS THEN
o_error_sts := 'ER';
o_error_reason := SQLERRM;
END SP_GET_BARRING_DETAILS;
******************
Copyright***********
Connected to:
**For Hyd:
Same as pune
oracle@ghcchyoda1:~
Login: pwd:
~]$ . oraenv
] ? HGSMDB
]$ export ORACLE_SID=HGSMDB1
]$ sqlplus gghyduser/gghyd20
******************
Copyright***********
Connected to:
**For Pune(TCS end)[the only diff is we should copy the query from TCS_end notepad)
oracle@ghccpnoda1:~
Login: pwd:
~]$ . oraenv
] ? GSMDB
]$ export ORACLE_SID=GSMDB1
]$ sqlplus ggpuneuser/ggpune20
******************
Copyright***********
Connected to:
For Resize:
Night Acitivity 2:
*Login: pwd:
*puneoda1 ~]$ . oraenv
]? GSMDB
]$ export ORACLE_SID=GSMDB1
]$ rman target /
eg:for punuatdb:
---------------------------------------------------------------------------------
2.Prepaid Table Count: (2 PUNE sessions AND 1 HYD sessions)
For Pune,Hyd and Pune(tcs end)
open 3 sessions:
**For Pune:
oracle@ghccpnoda1:~
Login: pwd:
~]$ . oraenv
] ? GSMDB
]$ export ORACLE_SID=GSMDB1
]$ sqlplus ggpuneuser/ggpune20
******************
Copyright***********
Connected to:
**For Hyd:
Same as pune
oracle@ghcchyoda1:~
Login: pwd:
~]$ . oraenv
] ? HGSMDB
]$ export ORACLE_SID=HGSMDB1
]$ sqlplus ggpuneuser/gghyd20
******************
Copyright***********
Connected to:
SQL> run the query[copy from GG_Prepaid textfile and paste]
[copy the count]
run every queries from GG_Prepaid Notepad and paste the count in excel..
**For Pune(TCS end)[the only diff is we should copy the query from TCS_end notepad)
oracle@ghccpnoda1:~
Login: pwd:
~]$ . oraenv
] ? GSMDB
]$ export ORACLE_SID=GSMDB1
]$ sqlplus ggpuneuser/ggpune20
******************
Copyright***********
Connected to:
TABLESPACE RESIZE
For Resize:
====================================================================================
OPTIONS (direct=false,bindsize=5000000,rows=3000000,ERRORS=9999)
RECOVERABLE
load data
infile '/home/oracle/jobs/HVC/HVC_CDMA_FINAL.txt'
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1
export ORA_CRS_HOME=/u01/crs/oracle/product/11/app
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
export LD_LBRARY_PATH=$ORACLE_HOME/lib:$ORA_CRS_HOME/lib
export ORACLE_SID=GSMDB1
/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/sqlldr ivrpreuser/ivrpre2015
control=/home/oracle/jobs/HVC/priv.ctl
HVC BASE:
/home/oracle/jobs/HVC
Check whether the table has been updated. - 1126921 1217888 09th NOV 1126065
5) check whether the del no is having invalid charcters and new line space if yes update with the given
query.
commit;
6) make the existing P category as null:
GSM_TBL_PRE_IVR_PROFILE_NOV09 1221998 1222007
commit;
commit;
===========
Create table IVRPREUSER.ARPU_UPDATE2 as Select MOBILE_NUM from
IVRPREUSER.GSM_TBL_PRE_IVR_PROFILE_P9 /*only P Category Table*/
where MOBILE_NUM NOT in (Select SDCA_MDN from IVRPREUSER.GSM_PRIVILEGED_CALLER);
commit;
commit;
AFTER 12:00 AM
GSMDB GSMDB1
1. This .xlsx file will contain data for Customer Pincode & Store Address.
2. Cross check the .xlsx file & remove any blank space in the Store address column data.
3. Copy all the contents from .xlsx file & paste in .txt file and Replace the space by cap ‘^’ then save it.
EXAMPLE :
Here make sure the location for .txt is correct and fields terminated by ‘^’ and mention the column’s
PINCODE, ADDRESS as specified in above SS
Here we need only this two columns because data given in .xlsx file was for only PINCODE, ADDRESS.
If data is given for any other column then place the column name, only once get the confirmation from
IVR tem.
7. save the .ctl file
EXAMPLE:
Note: please specify the location where you keep the files, consider this SS as an EXAMPLE.
9. Go to the location where the .sh file is kept and run it.
Sh . privloader.sh
***********
Steps_For_Pincode_Mapping_activity
Step 1. modify the .xlsx sheet & save in .txt format, give a call how to modify to .txt
step 2. take backup of TBL_STORE_DETAILS.
Step 3. move the .txt file to 10.104.28.12 & palce anywhere & create .ctl & .sh file according to table
name & columns_name.
step 4. run .sh file & cross verify with pincodes in .txt file.
step 5. check tabele TBL_STORE_DETAILS.
Stored Procedure:
**MS SQL backup and Purging:
Query:
check count:
select count(1) from TBL_HOSTDETAILS_HP nolock
go to connection->Databases-->HPDB-->Programmability->StoredProcedures-->dbo.SHRINK_LOG
INDEX_Verification:
, p.partition_number AS [p#]
, fg.name AS [filegroup]
, p.rows
, au.total_pages AS pages
, CASE boundary_value_on_right
, rv.value
FROM sys.partitions p
ON p.object_id = i.object_id
ON p.object_id = o.object_id
ON p.partition_id = au.container_id
ON ps.data_space_id = i.data_space_id
ON f.function_id = ps.function_id
ON dds.partition_scheme_id = ps.data_space_id
ON dds.data_space_id = fg.data_space_id
LEFT OUTER JOIN sys.partition_range_values rv
ON f.function_id = rv.function_id
Goldengate:
lag
22: history
Error: OGG-01668
1006 ggsci
1007 cd dirchk/
1008 ls R_IVPR11*
1009 cp R_IVPR11.cpr R_IVPR11.cpr_old
1010 cp R_IVPR11.cps R_IVPR11.cps_old
1011 rm R_IVPR11.cpr
1012 rm R_IVPR11.cps
1013 mv R_IVPR11.cpr_old R_IVPR11.cpr
1014 mv R_IVPR11.cps_old R_IVPR11.cps
1015 cd ...
1016 cd ..
1017 ggsci
1018 history
2016-11-01 05:10:55 ERROR OGG-01172 Oracle GoldenGate Delivery for Oracle, r_ivpo5.prm:
Discard file (/goldengate/dirtmp/rep_ts5.dsc) exceeded max bytes (124000000).
2016-11-01 05:10:55 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, r_ivpo5.prm:
PROCESS ABENDING.
Troubleshooting:
[oracle@ghcchyoda1 ~]$ gg
[oracle@ghcchyoda1 goldengate]$ cd dirtmp
[oracle@ghcchyoda1 dirtmp]$ ll -lrt rep_ts5.dsc*
-rw-rw-rw- 1 oracle oinstall 123999954 Oct 30 18:15 rep_ts5.dsc_dellat er2
-rw-rw-rw- 1 oracle oinstall 123999954 Oct 30 18:51 rep_ts5.dsc_dellat er3
-rw-rw-rw- 1 oracle oinstall 124000189 Nov 1 05:10 rep_ts5.dsc
[oracle@ghcchyoda1 dirtmp]$ cp rep_ts5.dsc rep_ts5.dsc_bkp
[oracle@ghcchyoda1 dirtmp]$ ls
Alter Command.
2015-08-17 05:44:58 ERROR OGG-01161 Oracle GoldenGate Delivery for Oracle, r_ivpo17.prm: Bad
column index (70) specified for table TS.TTL_DEL_ADD_DTLS, max columns = 70.
2015-08-17 05:44:58 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, r_ivpo17.prm:
PROCESS ABENDING.
Start
Log Dump :
LOGDUMP has a command line interface that allows you to open files, format the display, and navigate
through a file including filtering data. To invoke the utility, go to the GoldenGate home directory and
type ”logdump”, as shown in the following example.
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
Gg_home:
Ls -al dirdat
./logdump
Open ./dirdat/ra000002
Env
count
GGS tokens:
TokenID x52 'R' ORAROWID Info x00 Length 20
4141 6a39 7554 4148 4f41 4143 672b 7941 4172 0001 | AAj9uTAHOAACg+yAAr..
GGS tokens:
TokenID x52 'R' ORAROWID Info x00 Length 20
4141 6a39 7554 4148 4f41 4143 672b 7941 4172 0001 | AAj9uTAHOAACg+yAAr..
GGS tokens:
TokenID x52 'R' ORAROWID Info x00 Length 20
4141 6a39 7554 4150 5741 4142 4854 4541 4244 0001 | AAj9uTAPWAABHTEABD..
*FileHeader* Partition 0
Total Data Bytes 1367
Avg Bytes/Record 1367
Others 1
TS.TTL_CUSTOMER_ATTRIBUTES Partition 4
Total Data Bytes 15305871
Avg Bytes/Record 225
Delete 215
Insert 10803
FieldComp 56843
Before Images 215
After Images 67646
Logdump 4675 >pos 22693875
Reading forward from RBA 22693875
Logdump 4676 >n
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 223 (x00df) IO Time : 2016/10/09 04:59:07.917.085
IOType : 15 (x0f) OrigNode : 255 (xff)
TransInd : . (x01) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 711945 AuditPos : 667708744
Continued : N (x00) RecCount : 1 (x01)
GGS tokens:
TokenID x52 'R' ORAROWID Info x00 Length 20
4141 6a39 7554 4148 4f41 4143 672b 7941 4172 0001 | AAj9uTAHOAACg+yAAr..
GGS tokens:
TokenID x52 'R' ORAROWID Info x00 Length 20
4141 6a39 7554 4150 5841 4142 476f 6341 4169 0001 | AAj9uTAPXAABGocAAi..
TokenID x4c 'L' LOGCSN Info x00 Length 0
TokenID x36 '6' TRANID Info x00 Length 0
GGS tokens:
TokenID x52 'R' ORAROWID Info x00 Length 20
4141 6a39 7554 4150 5841 4142 476f 6341 4135 0001 | AAj9uTAPXAABGocAA5..
GGS tokens:
TokenID x52 'R' ORAROWID Info x00 Length 20
4141 6a39 7554 4143 7341 4142 7261 4e41 4176 0001 | AAj9uTACsAABraNAAv..
TokenID x4c 'L' LOGCSN Info x00 Length 14
3134 3238 3739 3431 3232 3139 3635 | 14287941221965
TokenID x36 '6' TRANID Info x00 Length 14
3136 372e 3331 2e33 3733 3939 3237 | 167.31.3739927
LogDump utility:
To check tail file:
Gg_home:
Ls -al dirdat
./logdump
Open ./dirdat/ra000002
Env
count
if column name datatype differs for both pune and tcs end ..
GG POST:
select count(ACCT_NBR) from GSM_IVR_ACCT_DEL_INT;
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TTL_CIRCLES, KEYCOLS(CIRCLE_ID)
TTL_PRODUCT_MSTR,
KEYCOLS(COMPONENT_ID,PACKAGE_DESC,PACKAGE_ID,PRODUCT_DESC,PRODUCT_NUMBER,PROUDU
CT_TYPE_ID)
TTL_PUK_MSTR_NEW, KEYCOLS(ESN,MEID,CIRCLE_ID,CREATED_DATE)
TTL_IVR_BMF_TRANS_TYPE_MSTR, KEYCOLS(BMF_TRANS_TYPE,DESCRIPTION_TEXT)
TTL_ITEM_FEATURE_CODES_MSTR,
KEYCOLS(CIRCLE_ID,COMPONENT_ID,COMPONENT_ITEM_ID,PACKAGE_ID,PACKAGE_ITEM_ID,PRODU
CT_ACTIVE_IND,PRODUCT_NUMBER,PRODUCT_TYPE,SERVICE_SUB_TYPE
SERVICE_TYPE_ID,SHORT_CODE)
TTL_TARIFF_MSTR,
KEYCOLS(SRVC_TYPE_ID,PROUDUCT_TYPE_ID,PRODUCT_TYPE,PRODUCT_NUMBER,PKG_SPC_DESC,
PACKAGE_ID,NDB_INDICATOR,END_DATE,COMPONENT_ID,CIRCLE_ID,ATTRIBUTE6,ATTRIBUTE5,ATTRIB
UTE4,ATTRIBUTE3,ATTRIBUTE10);?
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Tables:
TTL_CIRCLES.....
TTL_PRODUCT_MSTR......
TTL_PUK_MSTR_NEW......
TTL_IVR_BMF_TRANS_TYPE_MSTR.....
TTL_ITEM_FEATURE_CODES_MSTR......
FND_LOOKUP_VALUES
TTL_TARIFF_MSTR
-I : ignore case
Process option that begin with character Oracle (same as task manager)
Echo $PATH
df –h
crs_stat –t
exitab:
The crontab is a list of commands that you want to run on a regular schedule, and also the name of the
command used to manage that list.
-e UserName Edits a copy of the user's crontab file or creates an empty file to edit if the crontab file
does not exist for a valid UserName. When editing is complete, the file is copied into the crontab
directory as the user's crontab file.
-l UserName Lists the user's crontab file.
-r UserName Removes the user's crontab file from the crontab directory.
:wq!---to save it
Queries:
Backup: CREATE TABLE IVRPREUSER.TBL_STORE_DETAILS_BACKUP as select * from
ivrpreuser.TBL_STORE_DETAILS;
SPOC:
IN DUMP:
[email protected]
9246229088
unbilled:
-------------
[email protected],
[email protected]
9295042506-crm hotline
dba tipps - 9246228905
GG:
---
Rajasekhar - 04066678710
9246228905
9985953329
mounika- 040-66675976
ITSME Ticket:
Document to raise ITSME Ticket.
https://itsme.tatatel.co.in/ITSME/
username :ba80447536
password: July@2016
2. INCIDENT DETALS.
3. BUSINESS AREA.
5. PROCESS AREA.
7. INCIDENT TYPE.
8. CIRCLE
9. URGENCY.
10.IMPACT
12. SUBMIT.
1. Process area :
3. INCIDENT TYPE:
FOR SERVICE REQUEST FOR INDUMPS.
1. MODULE
a) Service GROUP
b) SERVICE AREA.
c) SERVICE NAME
b) SERVER IP.
c) APPLICATION NAME
d) SERVICE TYPE
e) DESCRIPTION
f) IMPLIMENTATION TEAM
We have observed that there is an increase in the socket error count for Tele verification with a
procedure name : "ACE.tipps_cti_tv_dtls "
7417817176
9037318846
While doing TV customer faced ERROR on CTI and later verified through TIIPS and now it is showing as
TV Positive.
Kindly confirm why we are getting those errors while doing TV through CTI.
1. Wait time
2. Session count :
Reply all|
Fri 21-10-2016 07:22
To:
Chandrashekar Racha <[email protected]>;
GHCC HELPDESK <[email protected]>;
GHCC HELPDESK <[email protected]>;
GHCCNOC <[email protected]>
Cc:
Chandrasekhar Seethamraju <[email protected]>;
TTL-CCTTEAM_CIIG-Employees <[email protected]>;
Leads.tcl;
TCS-Prepaid DBA-Employees <[email protected]>;
DBA Team;
Rajasekhar Dorisetti <[email protected]>;
TCS-Postpaid DBA-Employees <[email protected]>;
TCS-CRM Prod Support-Employees <[email protected]>;
TCS-Network Ops-Employees <[email protected]>;
Naresh Pratap <[email protected]>;
TCS-Prepaid CRM PSG-Employees <IMCEAEX-
_O=TTSLMAIL_OU=First+20Administrative+20Group_cn=Recipients_cn=TCS-PrepaidCRMPSG-
[email protected]>
https://linux.die.net/man/1/dos2unix
Upload data:
Copy the numbers in texpad and save it on desktop with name KAC.
Copy and paste the text file into F drive.
For example suppose you have uploaded this on Pune side CDMA then to upload it on Hyd side CDMA,
use dblink.
Don`t forget to commit.
Additional Photon Bonanza Upload.
Additional Photon Bonanza offers for Photon customers: CDMA, Table name:
Control file:
OPTIONS (direct=false,bindsize=5000000,rows=3000000,ERRORS=9999)
RECOVERABLE
load data
infile '/home/oracle/jobs/PHOTON_SPEEDBOOSTER/PHOTON_INFO.txt'
Format:
9200001057,5,18-DEC-16,NO
9200001058,5,18-DEC-16,NO
9200001152,10,18-DEC-16,NO
9200001258,5,18-DEC-16,NO
9200001279,2,18-DEC-16,NO
9200001305,7,18-DEC-16,NO
9200001308,7,18-DEC-16,NO
Sh File:
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_2
export ORA_CRS_HOME=/u01/crs/oracle/product/11/app
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
export LD_LBRARY_PATH=$ORACLE_HOME/lib:$ORA_CRS_HOME/lib
export ORACLE_SID=CDMADB1
/u01/app/oracle/product/11.2.0.4/dbhome_2/bin/sqlldr ivrpostuser/ivrpost2015
control=/home/oracle/jobs/PHOTON_SPEEDBOOSTER/photon_speedbooster.ctl
3087CRQ201216 :
1) CHECK THE TABLE COUNT BEFORE AND AFTER UPLOADING: TBL_PHOTON_ADDITIONAL_INFO_NEW 104820
=================================================
HCDMADB HCDMADB1
THRESHOLD
GSMDB
10
TBS_CTIAPPSPREPAID
10
TBS_CTIAPPSCONFIGURATION
50
TBS_PGGPREPAID
30
TBS_PIVRPREPAID
HGSMDB
10
TBS_CTIAPPSPREPAID
10
TBS_CTIAPPSCONFIGURATION
30
TBS_HIVRPREPAID
50
TBS_GGPREPAID
CDMADB
50
TBS_PGGPOSTPAID
TBS_PIVRPOSTPAID
10
TBS_CDMA_TTSLDATA 20
HCDMADB
TBS_GGPOSTPAID 50
TBS_HIVRPOSTPAID 10
TBS_CDMA_TTSLDATA 20
PUNE
TBS_CDR 20
P:\MSSQL11.PRIIVRPNSC\MSSQL\DATA\2016\[Databasename]
**Change the Month to create File group if file group does not exist
-Stored Procedure:
[Alter_Partition_Function_next_month]
-Ensure table names are listed correctly. Please ensure procedure is run from [MHDB] only
-Check date.
Ex:
SET @StartDate = '2016-08-18 23:59:59.997'
SET @EndDate= '2016-08-31 23:59:59.997'
-Below steps to execute the Partition Function: Alter_Partition_Function_ next_month
-Alter Procedure:
-Change date:
Below ex for PB
use [PBDB]
alter PARTITION FUNCTION TBL_CCHOSTDETAILS_PB_PF() split RANGE('2016-08-18 23:59:59.997')
alter PARTITION SCHEME TBL_CCHOSTDETAILS_PB_PS NEXT USED
[PBDB_Aug2016]
Msg 7710, Level 16, State 1, Line 2
Warning: The partition scheme 'TBL_CCHOSTDETAILS_PB_PS' does not have any next used filegroup.
Partition scheme has not been changed.
Solution:
MA Base:
DAY1
1) Move all the files into the location /home/oracle/jobs/ARPULoader/ in 28.12 Server.
2) Truncate all arpu_tempdata tables in GSMDB (IVRPREUSER) - GSM (4 tables) and CDMA (1 table)
GSM Prepaid
CDMA Prepaid
3) Upload both the data and check with the given files for total count.
GSM -:
4 - tn,upe,upw,wbc - ARPU_TEMPDATA_4
CDMA -:
CHECK THE CONTROL FILE AND SH FILE AND CHANGE THE CIRCLE NAME AND FILE ACCORDINGLY IN
CTL FILE.
CONTROL FILE:
SHELL SCRIPT:
IN PUTTY goto /home/oracle/jobs/ directory and run SH FILE CHECK WITH MORE COMMAND AFTER
SAVING THE CTL AND SH FILE.
sh arpuloader.sh
Sample Output:
5) Check any characters available in the table. (For all the five tables)
Commit;
6) Check Del number and category are having new character or line space. For all the Arpu_Temp
tables (For all the five tables)
7) FOR NEW LINE SPACE ISSUE IN TABLE MOBILE_NUM AND CATEGORY: (IF YOU FIND THE RECORD
FOR ABOVE QUERY RUN THE UPDATE FOR THE COLUMN YOU CHECKED.)
=================================================
Commit;
8) Check the total count for all the circles. (For all the five tables)
1. Truncate the old Backup table and create the BKP table:
2. Insert into temp table from production table without arpu category:
commit;
4. Cross check the temp table name in procedure and validate once and then execute the procedure:
Conn to GSMDB with ss and excute the below procedure one by one.
execute ivrpreuser.SP_ARPUDATAINSERTION ;
execute ivrpreuser.SP_ARPUDATAINSERTION_1;
execute ivrpreuser.SP_ARPUDATAINSERTION_2;
execute ivrpreuser.SP_ARPUDATAINSERTION_3;
execute ivrpreuser.SP_ARPUDATAINSERTION_4;
5. Updating "P" category
Commit;
Commit;
HYD:
11. If no index, create the index or if already exists, rebuild the index:
stop the extract (x_pro1) & replicat (r_pro1) at both Pune & Hyd:
stop x_pro1
stop r_pro1
14. Validate the corresponding packaged & procedures in GSMDB and HGSMDB (IVRPREUSER) if
required.
Pune:
HYD:
start x_pro1
Info x_pro1
start r_pro1
check for rba change and also check stats for r_pro1.
USE TV_AR5_GJ
use TCL_CDR
Purging:
SQL Server Instance Name:-GHCCPNMFT03\MSCFTPSI
Login or unsaer name :Sa
Password :-P@ssw0rd
2) Below Query will show list of Primary and Secorndary Database files with log
file
PURGING : 10.104.28.151
User name sa
Password m3tr1ca@123
1) Select Database
3)/*new query windows: Below code will purge data from Tables */
4)/*Query will show mdf , ndf and ldf files available to particular DB.
Note: Shrink only those data files that are completed with Purging Activity.(Do it carefully)*/
DBCC SHRINKFILE (GJDB_APR2016, 1) /*Shrink file size to 1 MB or released unsued space from DB files
*/
User name sa
Password m3tr1ca@123
1) Select Database
USE GJDB /*Replace DB name in GJDB
3)/*new query windows: Below code will purge data from Tables */
4)/*Query will show mdf , ndf and ldf files available to particular DB.
10.104.28.39
2015-01-20 00:00:00.127
use TCL_CDR
Password :-P@ssw0rd
2) Below Query will show list of Primary and Secorndary Database files with log file
name AS FileName,
size/128.0 AS CurrentSizeMB,
FROM sys.database_files;
GO
Kindly check space available in drive before mentioning the Data file i.e mdf file. use on mdf or ndf file if its empty.
PFA Purging Document. Kindly perform activity daily for instance 10.104.28.151 Server .
Purging is completed till MAY month for circles AP,BH,GJ,UPW,MP,KA,PB.
MAX date of Purging is '2016-06-01 00:01:00.000'.
instance : 10.104.28.151\PRIVGQMPNSC
User name sa
Password m3tr1ca@123
1) Select Database
3)/*new query windows: Below code will purge data from Tables */
set @shour=0;
select @datetime='2016-04-30 00:00:23.000'; -- change this date as per the min date
begin
select @datetime;
set @shour=0;
WHILE @shour<=23
begin
select @shour;
set @shour=@shour+1;
end
select @datetime=@datetime+1;
end
4)/*Query will show mdf , ndf and ldf files available to particular DB.
name AS FileName,
size/128.0 AS CurrentSizeMB,
FROM sys.database_files;
GO
Note: Shrink only those data files that are completed with Purging Activity.(Do it carefully)*/
DBCC SHRINKFILE (GJDB_APR2016, 1) /*Shrink file size to 1 MB or released unsued space from DB files */
Logdump article:
Copyright (C) 1995, 2009, Oracle and/or its affiliates. All rights reserved.
Logdump 1 >ENV
Version : Linux, x86, 32bit (optimized) on Sep 29 2009 08:53:18
Logdump 2 >
As with the GGSCI utility, LOGDUMP increments the number at its command prompt for each command
entered. Even if you exit LOGDUMP, the number will increment when you return. This is because
LOGDUMP maintains a history of commands used.
The preceding example shows the output of the ENV command, which is one of many commands
required to be productive with LOGDUMP. Firstly we must tell LOGDUMP to open a file, and then specify
how much detail you require before scanning or filtering data. However, should you get stuck there is
always the HELP command to get you back on track, which incidentally shows many undocumented
commands.
Opening Files
Let’s start with the OPEN command. Before opening a file, we must choose one. Execute the following
Linux command from the GoldenGate home directory to list the available files.
[oracle@dbserver1 ggs]$ ls -l dirdat
-rw-rw-rw- 1 oracle oinstall 3859 Jun 19 17:10 INITLOAD01.DAT
-rw-rw-rw- 1 oracle oinstall 68929 Nov 9 13:28 sa000004
-rw-rw-rw- 1 oracle oinstall 68929 Nov 9 13:32 sa000005
-rw-rw-rw- 1 oracle oinstall 68929 Nov 9 13:35 sa000006
Command Description
FILEHEADER [on | off | detail] Controls whether or not the trail file header is
displayed and how much detail.
GHDR [on | off] Controls whether or not the record header is displayed
with each record.
DETAIL [on | off | data] Displays a list of columns that includes the column ID,
length, plus values in hex and ASCII. DATA adds hex
and ASCII data values to the column list.
USERTOKEN [detail] Displays the actual token data.
RECLEN [<# of bytes>] Controls how much of the record data is displayed in
characters
So, working through the list, enable the file header detail, GDHR, user token detail and record length
options.
Logdump 3 >fileheader detail
Logdump 4 >ghdr on
Logdump 6 >detail on
Logdump 7 >usertoken detail
Logdump 8 >reclen 128
Reclen set to 128
To view the header record we must step to the next Relative Byte Address (RBA). This is easy using
LOGDUMP, just type next or n.
2010/11/09 12:56:49.942.356 FileHeader Len 928 RBA 0
Name: *FileHeader*
3000 01a2 3000 0008 4747 0d0a 544c 0a0d 3100 0002 | 0...0...GG..TL..1...
0002 3200 0004 ffff fffd 3300 0008 02f1 bad1 bae9 | ..2.......3.........
Included in the header record is a wealth of information, given that we have enabled a detailed view.
The information is grouped by type with a list of related tokens, shown in the following example output.
GroupID x30 '0' TrailInfo Info x00 Length 418
TokenID x30 '0' Signature Info x00 Length 8
TokenID x31 '1' Compatibility Info x00 Length 2
TokenID x32 '2' Charset Info x00 Length 4
TokenID x33 '3' CreationTime Info x00 Length 8
TokenID x34 '4' URI Info x00 Length 38
TokenID x36 '6' Filename Info x00 Length 19
TokenID x37 '7' MultiPart Info x00 Length 1
TokenID x38 '8' Seqno Info x00 Length 4
TokenID x39 '9' FileSize Info xff Length 8
TokenID x3a ':' FirstCSN Info x00 Length 129
TokenID x3b ';' LastCSN Info xff Length 129
TokenID x3c '<' FirstIOTime Info x00 Length 8
TokenID x3d '=' LastIOTime Info xff Length 8
The equivalent transaction record in the remote Trail file is identical to that found in the local Trail file,
and is identifiable by the same Audit Position number.
Let’s query the USERS table in the SRC schema to see the actual record that we are viewing in
LOGDUMP.
SQL> select * from SRC.USERS
2 where USER_ID = 'TEST';
Miscellaneous Commands
The miscellaneous commands are useful for displaying additional information, and are listed in the
following table.
Command Description
HISTORY List previous commands
RECORD Display audit record
SKIP [<count>] Skip down <count> records
SFH Scans for the file header record
ENV Displays GoldenGate environment details
COUNT [detail] Count the records in the file
EXIT Exits LOGDUMP
This example highlights the power of the COUNT command:
Logdump 34 >count
LogTrail u01/app/oracle/product/ggs/dirdat/sa000004 has 602 records
Total Data Bytes 15703
Avg Bytes/Record 26
Delete 280
Insert 320
RestartOK 1
Others 1
Before Images 280
After Images 321
Average of 17 Transactions
Bytes/Trans ..... 2623
Records/Trans ... 35
Files/Trans ..... 1
Partition 0
RestartOK 1
After Images 1
*FileHeader* Partition 0
Total Data Bytes 928
Avg Bytes/Record 928
Others 1
SRC.USERS Partition 4
Total Data Bytes 14775
Avg Bytes/Record 24
Delete 280
Insert 320
Before Images 280
After Images 320
Filtering Records
You can do some pretty fancy stuff with LOGDUMP filtering. A whole suite of commands are set aside
for this. We can filter on just about anything that exists in the Trail file, such as process name, RBA,
record length, record type, even a string!
The following example shows the required syntax to filter on DELETE operations. Note that
LOGDUMP reports how many records have been excluded by the filter.
Logdump 52 >filter include iotype delete
Logdump 53 >n
Create Tablespace:
create tablespace TBS_TEST_NOV2016 datafile '+RECO' size 10G autoextend on next 10G;
maxsize 500
PRE_CTI_CUST_HIST
Steps:
*****
Log in to 10.104.28.13
. oraenv
GSMDB
export ORACLE_SID=GSMDB2
move the .dmp file (/home/oracle/bkp/PRE_CUST_HIST_SEP01_31.dmp) to our server from Winscp and
zip the file then move it to 10.104.20.11 i.e backup location (Bkps\PRE_CTI_CUST_HIST\2016).
Partitons Deletion:
---------
ADD Parition:
While performing the deletion & backup, check the BI- directional GG process at both pune & hyd.
After deletion index rebuild has to be done at both PUNE & HYD.(Mandatory)
Index rebuild: here check the index name from PRE_CTI_CUST_HIST table before rebuilding
-------------
IF u get error RESOURCE BUSY AND ACQUIRE WITH NOWAIT SPECIFIED OR TIME OUT, JUST WAIT FOR 5
TO 10 MINUTES OR OPEN NEW SQL ORACLE DEVELOPER then rerun index rebuild command.
After Index rebuild,Check whether all the indexes are valid at both pune & hyd.
REGIONAL lang
GUJ-- gujarat
PUN--pumjb
KAN--KARNATKA
TAM--TAMIL NADU
BEN==WEST BENGAL
MAR-
ORI—ORISSA
TEL--AP
MAL--KERALA
2. open 6 putty sessions . 5 for insertion & 1 for capturing the SCN.
3. 5 putty sessions has to be logged into postpaid DB(conn ggpunepost/ggpost20@CDMADB) & 1 putty session with
CRMPROD DB.(conn ivrgg/ivrgg@CRMPROD)
7. collect statistics
*************************************************************************************
Session alter:
--------------------------------------------------------------------------
---------------------------------------------------------------------
exec dbms_stats.gather_table_stats('GGPUNEPOST','TTL_DUNNING_BAR_PRODUCTS_t');
------------------------------------------------------------------------
------------------------------
---------------------------------------------------------------
exec dbms_stats.gather_table_stats('GGPUNEPOST','TTL_INTERACTION_KASH_DATA_t');
----------------------------------------------------------------
--------------------------------------------------------------------
-----------------------------------------
exec dbms_stats.gather_table_stats('GGPUNEPOST','TTL_CUST_DND_DTLS_t');
--------------------------------------------
---------------------------------
------------------------------------------
-----------------------------------------------
exec dbms_stats.gather_table_stats('GGPUNEPOST','TTL_UNBILLED_USG_DTLS_t');
----------------------------------------------
exec dbms_stats.gather_table_stats('GGPUNEPOST','TTL_DEPOSIT_LINES_t');
*************************************************************************************
*************************************************************************************
*************************************************************************************
replicat r_ivpo5
ASSUMETARGETDEFS
GETTRUNCATES
--MAXTRANSOPS 10000
LS(INTERACTION_ID);
RIBER_NBR);
R_NBR,ORDER_LINE_NBR);
-----END------
PUNE:
=======
Alter system set processes=1200 scope=spfile sid='GSMDB1';
Alter system set processes=1200 scope=spfile sid='GSMDB2';
---
Alter system set processes=1200 scope=spfile sid='CDMADB1';
Alter system set processes=1200 scope=spfile sid='CDMADB2';
=======
HYD:
=======
check for crs_stat -t and crsctl stat res -t before stoping and after starting
PUNE:
=========
srvctl stop instance -i GSMDB1 -d GSMDB
srvctl start instance -i GSMDB1 -d GSMDB
--
srvctl stop instance -i GSMDB2 -d GSMDB
srvctl start instance -i GSMDB2 -d GSMDB
--
srvctl stop instance -i CDMADB1 -d CDMADB
srvctl start instance -i CDMADB1 -d CDMADB
--
srvctl stop instance -i CDMADB2 -d CDMADB
srvctl start instance -i CDMADB2 -d CDMADB
==================================================================
check for crs_stat -t and crsctl stat res -t before stoping and after starting
HYD:
======
srvctl stop instance -i HCDMADB1 -d HCDMADB
srvctl start instance -i HCDMADB1 -d HCDMADB
--
srvctl stop instance -i HCDMADB2 -d HCDMADB
srvctl start instance -i HCDMADB2 -d HCDMADB
PUNE:
=======
Alter system set processes=1200 scope=spfile sid='*';
=======
HYD:
=======
check for crs_stat -t and crsctl stat res -t before stoping and after starting
PUNE:
=========
==================================================================
check for crs_stat -t and crsctl stat res -t before stoping and after starting
HYD:
======
--------------------------------------------------
crsctl stat
root-stop mgr
grid node 1
check for crs_stat -t and crsctl stat res -t ----check for all online before stoping and after starting
gird node 2
check for crs_stat -t and crsctl stat res -t ----check for all online before stoping and after starting
check for db connections
start mgr
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE ghccpnoda1
ONLINE ONLINE ghccpnoda2
ora.LISTENER.lsnr
ONLINE ONLINE ghccpnoda1
ONLINE ONLINE ghccpnoda2
ora.RECO.dg
ONLINE ONLINE ghccpnoda1
ONLINE ONLINE ghccpnoda2
ora.REDO.dg
ONLINE ONLINE ghccpnoda1
ONLINE ONLINE ghccpnoda2
ora.asm
ONLINE ONLINE ghccpnoda1 Started
ONLINE ONLINE ghccpnoda2 Started
ora.gsd
OFFLINE OFFLINE ghccpnoda1
OFFLINE OFFLINE ghccpnoda2
ora.net1.network
ONLINE ONLINE ghccpnoda1
ONLINE ONLINE ghccpnoda2
ora.ons
ONLINE ONLINE ghccpnoda1
ONLINE ONLINE ghccpnoda2
ora.reco.acfsvol.acfs
ONLINE ONLINE ghccpnoda1 mounted on /cloudfs
OFFLINE OFFLINE ghccpnoda2 volume /cloudfs off
line
ora.registry.acfs
ONLINE ONLINE ghccpnoda1
ONLINE ONLINE ghccpnoda2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ggpunresrc
1 ONLINE ONLINE ghccpnoda2
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE ghccpnoda2
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE ghccpnoda1
ora.cdmadb.db
1 ONLINE ONLINE ghccpnoda1 Open
2 ONLINE ONLINE ghccpnoda2 Open
ora.cvu
1 ONLINE ONLINE ghccpnoda1
ora.ghccpnoda1.vip
1 ONLINE ONLINE ghccpnoda1
ora.ghccpnoda2.vip
1 ONLINE ONLINE ghccpnoda2
ora.gsmdb.db
1 ONLINE ONLINE ghccpnoda1 Open
2 ONLINE ONLINE ghccpnoda2 Open
ora.oc4j
1 ONLINE ONLINE ghccpnoda1
ora.scan1.vip
1 ONLINE ONLINE ghccpnoda2
ora.scan2.vip
1 ONLINE ONLINE ghccpnoda1
oraggpun-vip
1 ONLINE ONLINE ghccpnoda2
[grid@ghccpnoda1 ~]$
DBlink
select * from dba_db_links;
Uploading data :
Modifying. Feedback
UPDATE /* +parallel(a,4)*/ IVRPREUSER.TBL_FEEDBACK_RPT SET
BALANCE_VALIDITY_Q2= '0' ,
BALANCE_VALIDITY_Q2_1= '0' ,
BALANCE_VALIDITY_Q2_1_SUB1= '0' ,
BALANCE_VALIDITY_Q2_1_SUB2= '0' ,
BALANCE_VALIDITY_Q2_2= '0' ,
BALANCE_VALIDITY_Q2_2_SUB1= '0' ,
BALANCE_VALIDITY_Q2_2_SUB2= '0' ,
BALANCE_VALIDITY_Q2_3= '0' ,
BALANCE_VALIDITY_Q2_3_SUB1= '0' ,
BALANCE_VALIDITY_Q2_3_SUB2= '0' ,
BALANCE_VALIDITY_Q2_4= '0' ,
BALANCE_VALIDITY_Q2_5= '0' ,
CMT_Q2= '0' ,
CMT_Q2_1= '0' ,
CMT_Q2_1_SUB1= '0' ,
CMT_Q2_1_SUB2= '0' ,
CMT_Q2_2= '0' ,
CMT_Q2_2_SUB1= '0' ,
CMT_Q2_2_SUB2= '0' ,
CMT_Q2_3= '0' ,
CMT_Q2_3_SUB1= '0' ,
CMT_Q2_3_SUB2= '0' ,
CMT_Q2_4= '0' ,
CMT_Q2_5= '0' ,
GPRS_Q2= '0' ,
GPRS_Q2_1= '0' ,
GPRS_Q2_1_SUB1= '0' ,
GPRS_Q2_1_SUB2= '0' ,
GPRS_Q2_2= '0' ,
GPRS_Q2_2_SUB1= '0' ,
GPRS_Q2_2_SUB2= '0' ,
GPRS_Q2_3= '0' ,
GPRS_Q2_3_SUB1= '0' ,
GPRS_Q2_3_SUB2= '0' ,
GPRS_Q2_4= '0' ,
GPRS_Q2_5= '0' ,
LAST_FIVE_DEDU_Q2= '0' ,
LAST_FIVE_DEDU_Q2_1= '0' ,
LAST_FIVE_DEDU_Q2_1_SUB1= '0' ,
LAST_FIVE_DEDU_Q2_1_SUB2= '0' ,
LAST_FIVE_DEDU_Q2_2= '0' ,
LAST_FIVE_DEDU_Q2_2_SUB1= '0' ,
LAST_FIVE_DEDU_Q2_2_SUB2= '0' ,
LAST_FIVE_DEDU_Q2_3= '0' ,
LAST_FIVE_DEDU_Q2_3_SUB1= '0' ,
LAST_FIVE_DEDU_Q2_3_SUB2= '0' ,
LAST_FIVE_DEDU_Q2_4= '0' ,
LAST_FIVE_DEDU_Q2_5= '0'
where CIRCLECODE in ('BH','JH','HP','HR','KL','MP','MU','OR','RJ','TN','UPE','UPW') and RDATE >= '25-NOV-16 00:00:00';
COMMIT;
COMMIT;
FEEDBACK
PREPAID:
select
RDATE,CIRCLECODE,CLI,BALANCE_VALIDITY,BALANCE_VALIDITY_Q1,BALANCE_VALIDITY_Q1_1,BALANCE_VALIDITY_Q
1_1_SUB1,BALANCE_VALIDITY_Q1_1_SUB2,
BALANCE_VALIDITY_Q1_1_SUB3,BALANCE_VALIDITY_Q1_2,BALANCE_VALIDITY_Q1_2_SUB1,BALANCE_VALIDITY_Q1_2_
SUB2,BALANCE_VALIDITY_Q1_2_SUB3,BALANCE_VALIDITY_Q1_3,
BALANCE_VALIDITY_Q1_3_SUB1,BALANCE_VALIDITY_Q1_3_SUB2,BALANCE_VALIDITY_Q1_3_SUB3,BALANCE_VALIDITY_
Q1_4,BALANCE_VALIDITY_Q1_5,CMT,CMT_Q1,CMT_Q1_1,CMT_Q1_1_SUB1,
CMT_Q1_1_SUB2,CMT_Q1_1_SUB3,CMT_Q1_2,CMT_Q1_2_SUB1,CMT_Q1_2_SUB2,CMT_Q1_2_SUB3,CMT_Q1_3,CMT_Q1_3_SUB
1,CMT_Q1_3_SUB2,CMT_Q1_3_SUB3,CMT_Q1_4,CMT_Q1_5,GPRS,GPRS_Q1,
GPRS_Q1_1,GPRS_Q1_1_SUB1,GPRS_Q1_1_SUB2,GPRS_Q1_1_SUB3,GPRS_Q1_2,GPRS_Q1_2_SUB1,GPRS_Q1_2_SUB2,GPRS_Q1_2
_SUB3,GPRS_Q1_3,GPRS_Q1_3_SUB1,GPRS_Q1_3_SUB2,GPRS_Q1_3_SUB3,
GPRS_Q1_4,GPRS_Q1_5,LAST_FIVE_DEDU,LAST_FIVE_DEDU_Q1,LAST_FIVE_DEDU_Q1_1,LAST_FIVE_DEDU_Q1_1_SUB1,LAS
T_FIVE_DEDU_Q1_1_SUB2,LAST_FIVE_DEDU_Q1_1_SUB3,LAST_FIVE_DEDU_Q1_2,
LAST_FIVE_DEDU_Q1_2_SUB1,LAST_FIVE_DEDU_Q1_2_SUB2,LAST_FIVE_DEDU_Q1_2_SUB3,LAST_FIVE_DEDU_Q1_3,LAST_F
IVE_DEDU_Q1_3_SUB1,LAST_FIVE_DEDU_Q1_3_SUB2,LAST_FIVE_DEDU_Q1_3_SUB3,
LAST_FIVE_DEDU_Q1_4,LAST_FIVE_DEDU_Q1_5
from IVRPREUSER.TBL_FEEDBACK_RPT
where RDATE >= '06-DEC-17 00:00:00' and RDATE <= '06-DEC-17 23:59:59';
Postpaid:
select
RDATE,CIRCLECODE,CLI,MYACCOUNT,MYACCOUNT_Q1,MYACCOUNT_Q1_1,MYACCOUNT_Q1_1_SUB1,MYACCOUNT_
Q1_1_SUB2,MYACCOUNT_Q1_1_SUB3,MYACCOUNT_Q1_2,MYACCOUNT_Q1_2_SUB1,MYACCOUNT_Q1_2_SUB2,MYACCO
UNT_Q1_2_SUB3,MYACCOUNT_Q1_3,MYACCOUNT_Q1_3_SUB1,MYACCOUNT_Q1_3_SUB2,MYACCOUNT_Q1_3_SUB3,MYA
CCOUNT_Q1_4,MYACCOUNT_Q1_5,CMT,CMT_Q1,CMT_Q1_1,CMT_Q1_1_SUB1,CMT_Q1_1_SUB2,CMT_Q1_1_SUB3,CMT_Q1
_2,CMT_Q1_2_SUB1,CMT_Q1_2_SUB2,CMT_Q1_2_SUB3,CMT_Q1_3,CMT_Q1_3_SUB1,CMT_Q1_3_SUB2,CMT_Q1_3_SUB3,CM
T_Q1_4,CMT_Q1_5,GPRS,GPRS_Q1,GPRS_Q1_1,GPRS_Q1_1_SUB1,GPRS_Q1_1_SUB2,GPRS_Q1_1_SUB3,GPRS_Q1_2,GPRS_Q1
_2_SUB1,GPRS_Q1_2_SUB2,GPRS_Q1_2_SUB3,GPRS_Q1_3,GPRS_Q1_3_SUB1,GPRS_Q1_3_SUB2,GPRS_Q1_3_SUB3,GPRS_Q1_
4,GPRS_Q1_5
from IVRPOSTUSER.TBL_FEEDBACK_RPT
where RDATE >= '06-DEC-17 00:00:00' and RDATE <= '06-DEC-17 23:59:59';
[email protected]
[email protected]
Escalation Matrix:
Team Contact No Email ID Remarks
CRBT 9986012411 [email protected] Faiyaz
Jokes
News 8860129988 [email protected] Prahalad
Pack
Cricket
Missed 8268327578 [email protected] Maharishi
call alert
[email protected] Sujoy
Bill Desk 022 - 61060668
[email protected] Hemang
USSD 040 64528653 Group id, anyone from the
[email protected]
team will respond
CRM : 04066678275
To : Whichever Dept. Issue relates to (GHCC HELPDESK <[email protected]>;
'TCS-Prepaid CRM PSG-Employees' <[email protected]>)
3.
Change the resource parameter to true
Should be TRUE
Table refresh:
Pune - REPLICATION PROCESS 11
1. Create all the respective tables.
2. open 5 putty sessions . 4 for insertion & 1 for capturing the SCN.
3. 4 putty sessions has to be logged into postpaid DB & 1 putty session with CRMPROD DB.(conn ivrgg/ivrgg@CRMPROD)
4. Query for capturing SCN - SELECT to_char(dbms_flashback.get_system_change_number) as current_scn FROM DUAL;
5. Insert & capture SCN parallely
6. create the indexes
7. collect statistics
8. Note the grants,synonym,and respective privileges from production table.
9. stop the replicat r_ivpo11
10.Move the newly created table into production.
11.Create respective synonyms & grants.
12.Validate the invalid packages- IVRPOSTUSER
13.alter the replicat with respective seqno & rba
14.start the replicat with SCN captured.
*************************************************************************************
CREATE TABLE GGPUNEPOST.TTL_IVR_PRE_ACT_TV_DTLS_t
( CUST_DEL_NUMBER VARCHAR2(20 BYTE),
CUST_SERVICE_TYPE VARCHAR2(30 BYTE),
CUST_CIRCLE_ID VARCHAR2(40 BYTE),
CUST_MARKET_CODE VARCHAR2(40 BYTE),
CUST_VERIF_STATUS VARCHAR2(100 BYTE),
CUST_AREA_CODE VARCHAR2(20 BYTE)
);
Session alter:
conn ggpunepost/ggpost20
commit;
exec dbms_stats.gather_table_stats('GGPUNEPOST','TTL_IVR_PRE_ACT_TV_DTLS_t');
-------------------------------------------------------------------------------------------------
commit;
exec dbms_stats.gather_table_stats('GGPUNEPOST','GSM_IVR_ACCT_DEL_INT_t');
--------------------------------------------------------------------------------------------------------------
commit;
exec dbms_stats.gather_table_stats('GGPUNEPOST','GSM_IVR_CUST_MST_t');
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
commit;
exec dbms_stats.gather_table_stats('GGPUNEPOST','GSM_IVR_CRM_SR_t');
*********************************************************************************************************************
stop r_ivpo11
*********************************************************************************************************************
*********************************************************************************************************************
replicat r_ivpo11
userid ggpunepost@CDMADB, password ggpost20
ASSUMETARGETDEFS
GETTRUNCATES
reperror (DEFAULT, DISCARD)
discardfile /goldengate/dirtmp/rep_ts11.dsc, purge , megabytes 124m
BATcHSQL
MAP TTLGASR.TTL_IVR_PRE_ACT_TV_DTLS, target ggpunepost.TTL_IVR_PRE_ACT_TV_DTLS,
KEYCOLS(CUST_DEL_NUMBER,CUST_VERIF_STATUS);
MAP TTLGASR.GSM_IVR_ACCT_DEL_INT, target ggpunepost.GSM_IVR_ACCT_DEL_INT,
KEYCOLS(ACCT_NBR,AREA_CODE,DEL_NBR);
MAP TTLGASR.GSM_IVR_CUST_MST, target ggpunepost.GSM_IVR_CUST_MST, KEYCOLS(ACCT_NBR);
MAP TTLGASR.GSM_IVR_CRM_SR, target ggpunepost.GSM_IVR_CRM_SR, KEYCOLS(SR_NUMBER);
*********************************************************************************************************************
***************************
*********************************************************************************************************************
***************************
Session alter:
conn gghydpost/ggpost20
COMMIT;
exec dbms_stats.gather_table_stats('GGHYDPOST','TTL_IVR_PRE_ACT_TV_DTLS_t');
---
commit;
exec dbms_stats.gather_table_stats('GGHYDPOST','GSM_IVR_ACCT_DEL_INT_t');
---
commit;
exec dbms_stats.gather_table_stats('GGHYDPOST','GSM_IVR_CUST_MST_t');
---
commit;
exec dbms_stats.gather_table_stats('GGHYDPOST','GSM_IVR_CRM_SR_t');
*********************************************************************************************************************
*********
stop r_ivpo11
*********************************************************************************************************************
**********
Synonym & grants:
*********************************************************************************************************************
***************************
replicat r_ivpo11
userid GGHYDPOST@HCDMADB, password ggpost20
ASSUMETARGETDEFS
GETTRUNCATES
reperror (DEFAULT, DISCARD)
discardfile /goldengate/dirtmp/rep_ts11.dsc, purge , megabytes 124m
BATcHSQL
MAP TTLGASR.TTL_IVR_PRE_ACT_TV_DTLS, target GGHYDPOST.TTL_IVR_PRE_ACT_TV_DTLS,
KEYCOLS(CUST_DEL_NUMBER,CUST_VERIF_STATUS);
MAP TTLGASR.GSM_IVR_ACCT_DEL_INT, target GGHYDPOST.GSM_IVR_ACCT_DEL_INT,
KEYCOLS(ACCT_NBR,AREA_CODE,DEL_NBR);
MAP TTLGASR.GSM_IVR_CUST_MST, target GGHYDPOST.GSM_IVR_CUST_MST, KEYCOLS(ACCT_NBR);
MAP TTLGASR.GSM_IVR_CRM_SR, target GGHYDPOST.GSM_IVR_CRM_SR, KEYCOLS(SR_NUMBER);
Passwords:
<username>ivrpreuser</username>
<password>ivrpre2015</password>
<username>ttlivr</username>
<password>ttlivr</password>
<username>ivrpostuser</username>
<password>ivrpost2015</password>
<username>ttlgasr</username>
<password>gAsr#567</password>
<username>CTIAPPSPREUSER</username>
<password>ctiapps</password>
<username>sa</username>
<password>m3tr1ca@123</password>
Parellel Replicate:
CDR Retention:
10.104.28.151
10.104.28.35
FOR TV DATA
Rename:
alter table cdruser.t_agent_new_dec7 rename to cdruser.t_agent_new
CTIDB 10.104.28.160
Now we are inserting data from [dbo].[t_Termination_Call_Detail] table to backup table [dbo].
[t_Termination_Call_Detail_bkp].
As discussed and confirmed from Pratik only 15 days data should be available in main
table [dbo].[t_Termination_Call_Detail].
HVC Upload:
CDMA
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_2
export ORA_CRS_HOME=/u01/crs/oracle/product/11/app
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
export LD_LBRARY_PATH=$ORACLE_HOME/lib:$ORA_CRS_HOME/lib
export ORACLE_SID=CDMADB1
/u01/app/oracle/product/11.2.0.4/dbhome_2/bin/sqlldr ivrpreuser/ivrpre2015
control=/home/oracle/jobs/HVC/priv.ctl
GSM
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_1
export ORA_CRS_HOME=/u01/crs/oracle/product/11/app
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
export LD_LBRARY_PATH=$ORACLE_HOME/lib:$ORA_CRS_HOME/lib
export ORACLE_SID=GSMDB1
/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/sqlldr ivrpreuser/ivrpre2015
control=/home/oracle/jobs/HVC/priv.ctl
---10.104.28.30
IVR Report DB (Secondary server)
------10.104.28.83
IVR Report Parser Service
---10.104.28.32
IVR Report Parser Service
--10.104.28.33
ACD Report DB (Primary server)
--10.104.28.34
ACD Report DB (Secondary server)
10.104.28.35 Archival Server(Backupe of 29 server) circle wise data movement activity)--scheduling jobs for this.
1.ACD Thin client and Window service
2.SSICM DB and CTI outbound DB for IVR report
---10.104.28.36
IVR Report Parser Service
---10.104.28.37 (Changed as 10.104.28.5)
VDI Middleware Server
-=--10.104.28.41
Internal Dashboard Server
Finding column
CDMA: Select
Market_code,acct_nbr from ggpunepost.gsm_ivr_cust_mst where acct_nbr in
(980233341,90992029)
CDMA: Select
acct_nbr,service_segment from ggpunepost.gsm_ivr_cust_mst where acct_nbr in
(980233341,90992029)
DBA Objects:
with calltypename(calltypeid,ENTERPRISENAME) AS
(
SELECT DISTINCT calltypeid,ENTERPRISENAME FROM cdruser.t_call_type_new
Where OSCC = 'TBS_PUN'
),
skillgroupname(skilltargetid,enterprisename) as
--(select skilltargetid,enterprisename from t_skill_group_new),
(SELECT SKILLTARGETID,enterprisename FROM cdruser.t_skill_group_new),
agentdetail (skilltargetid,peripheralnumber,personid,firstname,lastname) as
(select
A.SKILLTARGETID,A.PERIPHERALNUMBER,A.PERSONID,P.FIRSTNAME,P.LASTNAM
E from cdruser.T_AGENT_NEW A,cdruser.T_PERSON_NEW P WHERE
A.PERSONID=P.PERSONID),
TCDRecords
(AgentSkillTargetID,SkillGroupSkillTargetID,ServiceSkillTargetID,PeripheralID,Rou
teID,
RouterCallKeyDay,RouterCallKey,DateTime,PeripheralCallType,DigitsDialed,Perip
heralCallKey,
CallDisposition,NetworkTime,Duration,RingTime,DelayTime,TimeToAband,HoldTi
me,TalkTime,
WorkTime,LocalQTime,CallSegmentTime,ConferenceTime,NetworkTargetID,Trun
kGroupID,DNIS,
InstrumentPortNumber,AgentPeripheralNumber,ICRCallKey,ICRCallKeyParent,ICR
CallKeyChild,
ANI,AnsweredWithinServiceLevel,Priority,Trunk,CallDispositionFlag,RouterCallKe
ySequenceNumber,
CED,CallTypeID,BadCallTag,ApplicationTaskDisposition,ApplicationData,NetQTim
e,CallTypeReportingDateTime,
NetworkSkillGroupQTime,EnterpriseQueueTime,PRECISIONQUEUEID) as
(
select
AgentSkillTargetID,SkillGroupSkillTargetID,ServiceSkillTargetID,PeripheralID,Rout
eID, RouterCallKeyDay,
RouterCallKey,DateTime,PeripheralCallType,DigitsDialed,PeripheralCallKey,
CallDisposition,NetworkTime,Duration,
RingTime,DelayTime,TimeToAband,HoldTime,TalkTime, WorkTime,LocalQTime,
CallSegmentTime,ConferenceTime,NetworkTargetID,TrunkGroupID,DNIS,
InstrumentPortNumber,
AgentPeripheralNumber,ICRCallKey,ICRCallKeyParent,ICRCallKeyChild,
ANI,AnsweredWithinServiceLevel,
Priority,Trunk,CallDispositionFlag,RouterCallKeySequenceNumber,
CED,CallTypeID,BadCallTag,ApplicationTaskDisposition,
ApplicationData,NetQTime,CallTypeReportingDateTime,
NetworkSkillGroupQTime,EnterpriseQueueTime,PRECISIONQUEUEID
from cdruser.Termination_Call_Detail where STARTDATETIMEUTC >= '22-DEC-
2016 00:00:00'and STARTDATETIMEUTC < '23-DEC-2016 00:00:00'
),
CallDisposition(RouterCallKey, RouterCallKeyDay, Hangup_Flag) as
(
select RouterCallKey, RouterCallKeyDay, (case when max(CallDisposition) =
52 then 'AD' else 'CD' end) as Hangup_Flag
from TCDRecords A ,calltypename c WHERE A.CallTypeID=c.CallTypeID
group by RouterCallKey, RouterCallKeyDay --,calltypename c WHERE
A.CallTypeID=c.CallTypeID
),
callType1prepare(RouterCallKeyDay,RouterCallKey,CallTypeID, LocalQTime) As
(
select distinct RouterCallKeyDay,RouterCallKey,CallTypeID, (CASE WHEN
SUM(LocalQTime)=0 THEN MAX(DelayTime) ELSE SUM(LocalQTime) END)
from TCDRecords WHERE PeripheralCallType =1 group by
RouterCallKeyDay,RouterCallKey,CallTypeID
),
CallType1PrepareDistinct(RowNumber,RouterCallKeyDay,RouterCallKey,DateTim
e, DigitsDialed, DNIS, ANI,CallDisposition,NetworkTime,
RingTime,DelayTime,TimeToAband,HoldTime,
WorkTime,LocalQTime,CallSegmentTime,ConferenceTime,NetworkSkillGroupQTi
me,EnterpriseQueueTime,
CallTypeID,SkillGroupSkillTargetID,PRECISIONQUEUEID) as
(
select Row_Number() Over(Partition by
b.RouterCallKeyDay,b.RouterCallKey,b.CallTypeID Order By b.RouterCallKeyDay
desc,b.RouterCallKey desc, a.RouterCallKeySequenceNumber desc) As
RowNumber,
b.RouterCallKeyDay,b.RouterCallKey, DateTime, DigitsDialed, DNIS,
ANI,CallDisposition,NetworkTime,RingTime,DelayTime,TimeToAband,
HoldTime,WorkTime,b.LocalQTime, CallSegmentTime,ConferenceTime as
ConferenceTime, NetworkSkillGroupQTime,EnterpriseQueueTime,A.CallTypeID,
SkillGroupSkillTargetID,PRECISIONQUEUEID FROM TCDRecords a,
callType1prepare b
WHERE a.RouterCallKeyDay = b.RouterCallKeyDay and a.RouterCallKey =
b.RouterCallKey and a.CallTypeID = b.CallTypeID
),
CallType1(RouterCallKeyDay,RouterCallKey,DateTime, DigitsDialed, DNIS,
ANI,CallDisposition,NetworkTime,RingTime,DelayTime,TimeToAband,HoldTime,
WorkTime,LocalQTime,CallSegmentTime,ConferenceTime,NetworkSkillGroupQTi
me,EnterpriseQueueTime,CallTypeID,SkillGroupSkillTargetID) AS
( SELECT RouterCallKeyDay,RouterCallKey,DateTime, DigitsDialed, DNIS,
ANI,CallDisposition,NetworkTime,RingTime,DelayTime,TimeToAband,
HoldTime,WorkTime,LocalQTime, CallSegmentTime,ConferenceTime as
ConferenceTime,
NetworkSkillGroupQTime,EnterpriseQueueTime,CallTypeID,SkillGroupSkillTargetI
D
FROM CallType1PrepareDistinct WHERE RowNumber = 1 ),
CallType2
(RouterCallKeyDay,RouterCallKey,CallDisposition,CallTypeId,AgentSkillTargetID,
SkillGroupSkillTargetID, AgentPeripheralNumber,HoldTime,TalkTime,WorkTime,
DateTime,
DigitsDialed, DNIS, ANI,PRECISIONQUEUEID) As
(
SELECT
RouterCallKeyDay,RouterCallKey,CallDisposition,CallTypeId,AgentSkillTargetID,S
killGroupSkillTargetID,AgentPeripheralNumber,HoldTime ,TalkTime,WorkTime,
DateTime, DigitsDialed, DNIS, ANI,PRECISIONQUEUEID from TCDRecords
WHERE PeripheralCallType =2
)
select distinct P1.RouterCallKeyDay, P1.RouterCallKey, P1.DATETIME,
( TO_CHAR( p1.DateTime, 'DD-MON-YY'))AS CALL_DATE ,TO_CHAR( p1.DateTime,
'HH:MI:SS AM') AS tIME,
TO_CHAR(AD.PERIPHERALNUMBER) AS AGENT_ID, TO_CHAR(p1.ANI)AS
ANI ,AD.FIRSTNAME || ' ' || AD.LASTNAME AS AGENT_NAME,TO_CHAR(p2.DNIS) as
Extension,TO_CHAR(p1.DigitsDialed) as IVR_EXIT_VDN,
TO_CHAR(p2.TalkTime) as Talktime, TO_CHAR(p2.HoldTime) as Holdtime,
TO_CHAR(p2.WorkTime) as Worktime,TO_CHAR(p2.TalkTime + p2.HoldTime
+p2.WorkTime) as AHT,
TO_CHAR(p1.LocalQTime) as LocalQTime,TO_CHAR((p2.TalkTime +
p2.WorkTime+p1.LocalQTime)) as Duration,TO_CHAR(p1.calldisposition) as
calldisposition, TO_CHAR(CD.Hangup_Flag) as callEndReason,
TO_CHAR(ctn.ENTERPRISENAME) as call_type, (case when
P2.PRECISIONQUEUEID is not null then (select enterprisename from
cdruser.T_precision_queue
where PRECISIONQUEUEID=P2.PRECISIONQUEUEID ) else (select
enterprisename from cdruser.t_skill_group_new
where SKILLTARGETID=P2.SkillGroupSkillTargetID and rownum=1 ) end) AS
skillgroup
from CallType1 p1 left outer join CallType2 p2 on p1.RouterCallKey =
p2.RouterCallKey
and p1.RouterCallKeyDay = p2.RouterCallKeyDay and p1.CallTypeID =
p2.CallTypeId left outer join
CallDisposition CD on p1.RouterCallKey = CD.RouterCallKey
and p1.RouterCallKeyDay = CD.RouterCallKeyDay join calltypename ctn on
P1.CALLTYPEID=ctn.CALLTYPEID
LEFT OUTER JOIN agentdetail AD ON P2.AgentSkillTargetID=AD.SKILLTARGETID
LEFT OUTER JOIN SKILLGROUPNAME SGN
ON P2.SkillGroupSkillTargetID=SGN.SKILLTARGETID where
ctn.ENTERPRISENAME NOT LIKE '%PBD' --AND (p1.RouterCallKey=(select distinct
RouterCallKey from calltype1 where Rownum=1))
ORDER BY datetime DESC;
AWR report:
Hi,
1) send replicat <replicat_name>, status --- 2outputs with few min interval
2) info replicat <replicat_name>,showch
3) procstack <replicat PID> ---> with a 2 minute gap--issue it thrice
SID,Serial#,Instance
select username,machine,status from gv$session where machine like 'GHCC%' and status like 'SNIPED';
select SID,status, COUNT(STATUS) from gv$session where machine like 'GHCC%' and status like '%SNIP
%' GROUP BY STATUS,SID ;
select status, COUNT(STATUS) from gv$session where machine like 'GHCC%' and status like
query.sessions.txt
select sid || ',' || serial# || ',@' || inst_id from gv$session where status = 'SNIPED';
select 'alter system kill session ''' || sid || ',' || serial# || ',@' || inst_id || ''' ;' from gv$session
where status = 'SNIPED';
select SID,SERIAL#,INST_ID from gv$session where status like 'ACTIVE%' and machine
IN('GHCCPNCVP0006','GHCCPNCVP0001','GHCCPNCVP0003','GHCCPNCVP0009','GHCCPNCVP0010','GH
CCPNCVP0004','GHCCPNCVP0012','GHCCPNCVP0008','GHCCPNCVP0007','GHCCPNCVP0011','GHCCPNC
VP0005');
select status,count(*) from gv$session where machine like 'GHCC%' group by status;
select 'alter system kill session ''' || sid || ',' || serial# || ',@' || inst_id || ''' ;' from gv$session
where machine like 'GHCCPNCVP%' and status like 'INACTIVE%' ;
--select machine,status,'alter system kill session ''' || sid || ',' || serial# || ',@' || inst_id || ''' ;' from
gv$session where machine like 'GHCCPNCVP%' and STATUS NOT IN ('KILLED') ;
Piled up server
GHCCPNCVP0006
GHCCPNCVP0001
GHCCPNCVP0003
GHCCPNCVP0009
GHCCPNCVP0010
GHCCPNCVP0004
GHCCPNCVP0012
GHCCPNCVP0008
GHCCPNCVP0007
GHCCPNCVP0011
GHCCPNCVP0005
Screnshots:
Curremt_scn:
’
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>
SQL>
SQL>
SQL> create pfile ='./init_gsm.ora' from spfile;
File created.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@ghccpnoda1 pfile_1111]$ ls -lrt
total 0
[oracle@ghccpnoda1 pfile_1111]$ pwd
/home/oracle/pfile_1111
[oracle@ghccpnoda1 pfile_1111]$ ls
[oracle@ghccpnoda1 pfile_1111]$ cd ..
[oracle@ghccpnoda1 ~]$ pwd
/home/oracle
[oracle@ghccpnoda1 ~]$ find . -name init*.ora
[oracle@ghccpnoda1 ~]$ pwd
/home/oracle
[oracle@ghccpnoda1 ~]$ cd pfile_1111
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$ pwd
/home/oracle/pfile_1111
[oracle@ghccpnoda1 pfile_1111]$ cd ..
[oracle@ghccpnoda1 ~]$ chmod 755 pfile_1111
[oracle@ghccpnoda1 ~]$ pwd
/home/oracle
[oracle@ghccpnoda1 ~]$ cd pfile_1111
[oracle@ghccpnoda1 pfile_1111]$ pwd
/home/oracle/pfile_1111
[oracle@ghccpnoda1 pfile_1111]$ ls -lrt
total 0
[oracle@ghccpnoda1 pfile_1111]$ ss
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
File created.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@ghccpnoda1 pfile_1111]$ ls -lrt
total 4
-rw-r--r-- 1 oracle asmadmin 2389 Dec 25 11:24 init_gsm.ora
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$ grep -i processes init_gsm.ora
*.job_queue_processes=1000
*.processes=800
GSMDB1.processes=1200
GSMDB2.processes=1200
[oracle@ghccpnoda1 pfile_1111]$ . oraenv
ORACLE_SID = [GSMDB1] ? GSMDB
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@ghccpnoda1 pfile_1111]$ export ORACLE_SID=GSMDB1
[oracle@ghccpnoda1 pfile_1111]$ ss
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
File created.
SQL>
create pfile = '/home/oracle/pfile_1111/init_gsm_new.ora' from spfile ;
SQL>
File created.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@ghccpnoda1 pfile_1111]$ pwd
/home/oracle/pfile_1111
[oracle@ghccpnoda1 pfile_1111]$ ls -lrt
total 8
-rw-r--r-- 1 oracle asmadmin 2389 Dec 25 11:24 init_gsm.ora
-rw-r--r-- 1 oracle asmadmin 2390 Dec 25 13:03 init_gsm_new.ora
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$ ss
NAME
---------
GSMDB
File created.
SQL>
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@ghccpnoda1 pfile_1111]$ ls -lrt
total 12
-rw-r--r-- 1 oracle asmadmin 2389 Dec 25 11:24 init_gsm.ora
-rw-r--r-- 1 oracle asmadmin 2390 Dec 25 13:03 init_gsm_new.ora
-rw-r--r-- 1 oracle asmadmin 2390 Dec 25 13:18 init_gsm_afterchange.txt
[oracle@ghccpnoda1 pfile_1111]$ vi init_gsm_afterchange.txt
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$
[oracle@ghccpnoda1 pfile_1111]$ ss
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
Init_11111
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Produc
tion
With the Partitioning, Real Application Clusters, Automatic Storage Mana
gement, OLAP,
Data Mining and Real Application Testing options
SQL>
SQL>
SQL>
SQL>
SQL> create pfile ='./init_hgsm.ora' from spfile;
File created.
SQL>
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.
4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Mana
gement, OLAP,
Data Mining and Real Application Testing options
[oracle@ghcchyoda1 ~]$ ls d-lrt
ls: d-lrt: No such file or directory
[oracle@ghcchyoda1 ~]$ ls -lrt
total 5684
drwxr-x--- 3 oracle oinstall 4096 Jan 6 2014 oradiag_oracle
-rw-r--r-- 1 oracle oinstall 9357 Jan 29 2014 gghyd.txt
-rw-r--r-- 1 oracle oinstall 189 Mar 4 2014 afiedt.buf
-rw-r--r-- 1 oracle oinstall 705598 Jul 24 2014 exit.lst
-rw-r--r-- 1 oracle oinstall 16384 Aug 27 2014 cti.dmp
-rw-r--r-- 1 oracle oinstall 154 Sep 24 2014 dblink_script.sql
-rw-r--r-- 1 oracle oinstall 180224 Feb 4 2015 expcdmattsl1.dmp
-rw-r--r-- 1 oracle oinstall 39 Feb 9 2015 dumparp.bad
-rw-r--r-- 1 oracle oinstall 194 Feb 9 2015 dumparp.txt
drwxrwxrwx 2 oracle oinstall 4096 Mar 19 2015 datapump
drwxr-xr-x 2 root root 4096 Jul 26 2015 logs
-rwxrwxrwx 1 root root 267 Jul 26 2015 crs.sh
-rw-r--r-- 1 oracle oinstall 2749093 Sep 23 2015 delScript
-rw-r--r-- 1 oracle oinstall 6000 Jan 28 2016 vt0068.txt
drwxr-xr-x 3 oracle oinstall 4096 Jan 29 2016 orachk
-rw-r--r-- 1 oracle oinstall 243 Feb 5 2016 cronjob_node1.txt
drwxr-xr-x 7 oracle oinstall 4096 Feb 6 2016 sqlt
-rw-r--r-- 1 root root 8509 Feb 17 2016 scan1.txt
-rw-r--r-- 1 oracle oinstall 161532 Apr 21 2016 ggser.log
-rw-r--r-- 1 oracle oinstall 6832 Aug 1 03:49 ddl_list.sql
drwxrwxrwx 2 oracle oinstall 4096 Aug 20 03:25 DelScript
-rw-r--r-- 1 oracle oinstall 3123 Aug 26 10:27 query2.txt
-rw-r--r-- 1 oracle oinstall 467224 Aug 26 10:30 rman2.txt
drwxr-xr-x 2 oracle oinstall 4096 Nov 17 19:15 test
-rw-r--r-- 1 oracle oinstall 6358 Nov 21 08:49 logdump.hst
-rw-r--r-- 1 oracle oinstall 680623 Nov 24 16:26 awrrpt_1_25222_25223.h
tml
drwxr-xr-x 9 oracle oinstall 4096 Dec 15 12:17 jobs
-rw-r--r-- 1 oracle oinstall 692196 Dec 24 20:31 awrrpt_rac_25956_25957
.html
-rw-r--r-- 1 oracle oinstall 12100 Dec 25 04:07 inloader.log
[oracle@ghcchyoda1 ~]$ pwd
/home/oracle
[oracle@ghcchyoda1 ~]$ ls -lrt ini*
ls: ini*: No such file or directory
[oracle@ghcchyoda1 ~]$ pwd
/home/oracle
[oracle@ghcchyoda1 ~]$ mkdir init_1111
[oracle@ghcchyoda1 ~]$ cd init_1111
[oracle@ghcchyoda1 init_1111]$ cd ..
[oracle@ghcchyoda1 ~]$ chmod 755 init_1111
[oracle@ghcchyoda1 ~]$ cd init_1111
[oracle@ghcchyoda1 init_1111]$ ss
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@ghcchyoda1 init_1111]$ pwd
/home/oracle/init_1111
[oracle@ghcchyoda1 init_1111]$
[oracle@ghcchyoda1 init_1111]$
[oracle@ghcchyoda1 init_1111]$
[oracle@ghcchyoda1 init_1111]$
[oracle@ghcchyoda1 init_1111]$
[oracle@ghcchyoda1 init_1111]$ ss
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
File created.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@ghcchyoda1 init_1111]$ ls -lrt
total 4
-rw-r--r-- 1 oracle asmadmin 2374 Dec 25 11:27 init_hgsm.ora
[oracle@ghcchyoda1 init_1111]$ echo $ORACLE_SID
HGSMDB1
[oracle@ghcchyoda1 init_1111]$ grep -i processes init_gsm.ora
grep: init_gsm.ora: No such file or directory
[oracle@ghcchyoda1 init_1111]$ pwd
/home/oracle/init_1111
[oracle@ghcchyoda1 init_1111]$ ls -lrt
total 4
-rw-r--r-- 1 oracle asmadmin 2374 Dec 25 11:27 init_hgsm.ora
[oracle@ghcchyoda1 init_1111]$ grep -i processes init_hgsm.ora
*.job_queue_processes=1000
*.processes=1200
[oracle@ghcchyoda1 init_1111]$ sysdate
-bash: sysdate: command not found
[oracle@ghcchyoda1 init_1111]$ date
Sun Dec 25 13:22:43 IST 2016
[oracle@ghcchyoda1 init_1111]$
====
===
select count(*) from v$session;
Stopping Instance:
login as: grid
[email protected]'s password:
Last login: Sun Dec 25 12:36:41 2016 from ghccpncrs01.tclghcc.com
[grid@ghccpnoda1 ~]$ srvctl status database -d GSMDB
Instance GSMDB1 is running on node ghccpnoda1
Instance GSMDB2 is running on node ghccpnoda2
[grid@ghccpnoda1 ~]$ datt
-bash: datt: command not found
[grid@ghccpnoda1 ~]$ date
Sun Dec 25 13:12:00 IST 2016
[grid@ghccpnoda1 ~]$
[grid@ghccpnoda1 ~]$
[grid@ghccpnoda1 ~]$ srvctl stop database -d GSMDB -o immediate
[grid@ghccpnoda1 ~]$ srvctl status database -d GSMDB
Instance GSMDB1 is not running on node ghccpnoda1
Instance GSMDB2 is not running on node ghccpnoda2
[grid@ghccpnoda1 ~]$ srvctl start database -d GSMDB
[grid@ghccpnoda1 ~]$ srvctl status database -d GSMDB
Instance GSMDB1 is running on node ghccpnoda1
Instance GSMDB2 is running on node ghccpnoda2
[grid@ghccpnoda1 ~]$
/u01/app/11.2.0.4/grid/log/ghccpnoda1
[root@ghccpnoda1 ghccpnoda1]# ls -lrt
total 10608
drwxr-x--- 2 grid oinstall 4096 Jan 1 2014 srvm
drwxr-x--- 2 root oinstall 4096 Jan 1 2014 gnsd
drwxr-x--- 2 grid oinstall 4096 Jan 1 2014 diskmon
drwxr-x--- 4 grid oinstall 4096 Jan 1 2014 cvu
drwxrwxr-t 4 root oinstall 4096 Jan 1 2014 agent
drwxr-x--- 2 grid oinstall 4096 Jan 1 2014 admin
drwxr-xr-x 2 root oinstall 4096 Jan 1 2014 acfssec
drwxr-x--- 2 root oinstall 4096 Jan 1 2014 acfsreplroot
drwxr-x--- 2 grid oinstall 4096 Jan 1 2014 acfsrepl
drwxr-x--- 2 grid oinstall 4096 Jan 1 2014 acfslog
drwxr-xr-x 3 root root 4096 Jan 1 2014 acfs
drwxr-x--- 2 grid oinstall 4096 Jan 1 2014 mdnsd
drwxr-x--- 2 root oinstall 4096 Jan 1 2014 crfmond
drwxr-x--- 2 root oinstall 4096 Jan 1 2014 crflogd
drwxr-x--- 2 grid oinstall 4096 Jan 1 2014 evmd
drwxrwxr-t 5 grid oinstall 4096 Jan 9 2014 racg
drwxr-x--- 2 grid oinstall 4096 Jan 8 2016 gpnpd
-rw-rw-r-- 1 grid oinstall 10713936 Dec 24 00:13 alertghccpnoda1.log
drwxr-x--- 2 grid oinstall 4096 Dec 24 17:42 cssd
drwxrwxrwt 2 grid oinstall 40960 Dec 25 12:37 client
drwxr-x--- 2 root oinstall 4096 Dec 26 08:00 crsd
drwxr-x--- 2 root oinstall 4096 Dec 26 16:35 ctssd
drwxr-x--- 2 grid oinstall 4096 Dec 26 16:48 gipcd
drwxr-x--- 2 root oinstall 4096 Dec 26 17:11 ohasd
client folder
-----------
cd ./client/
Shell for GG
export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
export LD_LBRARY_PATH=$ORACLE_HOME/lib:$ORA_CRS_HOME/lib
export GGS_HOME=/goldengate
echo
echo "######################################################################"
echo `date +%d/%m/%Y\ %k:%M:%S`
echo
exit
EOF
New query:
sqlcmd -S CTGSMPNSC\PRICTGSMPNSC -U ctiobduser -P P@ssw0rd -s"," -Q "select
DateTime,ani,AgentPeripheralNumber,TalkTime,HoldTime,WorkTime,CallTypeID,SkillGroupSkillTargetID
from tcl_cdr_bkp.dbo.Termination_Call_Detail where DateTime>='2016-04-26 00:00:00' and
DateTime<='2016-04-26 23:59:59' and AgentPeripheralNumber is not null" > 2016-04-26.csv
Package:
SYSAUX
( kill -9 22731 )
==
DB LINK
Chmod 711 asmreport.sql /*711 means read and write mode and 777 means read mode*/
Enter password:welcome1
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options