Monday, August 24, 2015

Check connection to Linux server

Syntax:
traceroute -nT   -p
Example:
[root@ptud ~]# traceroute -nT 10.79.255.87 -p 22
traceroute to 10.79.255.87 (10.79.255.87), 30 hops max, 60 byte packets
 1  192.168.2.158  0.511 ms  1.071 ms  1.320 ms
 2  192.168.2.1  9.100 ms  9.121 ms  9.105 ms
 3  10.79.255.253  16.590 ms  16.575 ms  16.555 ms

 4  10.79.255.87  15.941 ms  15.818 ms  15.880 ms

Enabling TDE in Oracle Privileged Account Manager Data Store

Before that, you need to read the documents:
https://docs.oracle.com/cd/E52734_01/core/INOAM/opam.htm#INOAM98442
and
https://docs.oracle.com/cd/E11882_01/network.112/e40393.pdf
[oracle@PTUDServer3 oracle]$ cd $ORACLE_HOME
[oracle@PTUDServer3 db_1]$ mkdir wallet        
[oracle@PTUDServer3 admin]$ more sqlnet.ora 
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/12.1.0/db_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ENCRYPTION_WALLET_LOCATION = (SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=$ORACLE_HOME/wallet)))


[oracle@PTUDServer3 db_1]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Mon Aug 24 13:32:51 2015

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


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> alter system set encryption key identified by " your_password ";

System altered.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

IAM_HOME/opam/sql/opamxencrypt.sql
[oracle@PTUDServer3 oracle]$ sqlplus opam_opam/******** @opamxencrypt.sql

SQL*Plus: Release 12.1.0.1.0 Production on Mon Aug 24 13:35:12 2015

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

Last Successful login time: Mon Aug 24 2015 11:50:50 +07:00

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> SET FEEDBACK 1
SQL> SET NUMWIDTH 10
SQL> SET LINESIZE 80
SQL> SET TRIMSPOOL ON
SQL> SET TAB OFF
SQL> SET PAGESIZE 100
SQL>
SQL> alter table flexsecfield modify attr_val encrypt using 'AES256';

Table altered.

SQL> commit;

Commit complete.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

Setting Up Non-TDE Mode for Oracle Privileged Account Manager

Firstly, you need to read the document:
https://docs.oracle.com/cd/E52734_01/core/INOAM/opam.htm#INOAM98326

[omss@ptudvtg149 ~]$ export ORACLE_HOME=/home/omss/fmw/Oracle_IDM1
[omss@ptudvtg149 ~]$ export ANT_HOME=/home/omss/fmw/modules/org.apache.ant_1.7.1
[omss@ptudvtg149 ~]$ export JAVA_HOME=/home/omss/setup/jdk
[omss@ptudvtg149 ~]$ export ANT_OPTS="-Xmx512M -XX:MaxPermSize=512m"
[omss@ptudvtg149 ~]$
[omss@ptudvtg149 ~]$ $ORACLE_HOME/opam/bin/opam.sh -url https://192.168.2.149:18102/opam -x modifyglobalconfig -propertyname tdemode -propertyvalue false -u weblogic -p ***************
Using OPAM Server URL: https://192.168.2.149:18102/opam
Global Config updated Successfully
[omss@ptudvtg149 ~]$

Note:
ORACLE_HOME/opam/bin/opam.sh -url OPAM_Server_Url -x modifyglobalconfig -propertyname tdemode -propertyvalue false -u OPAM_APPLICATION_CONFIGURATOR_USER -p Password

Saturday, August 22, 2015

How to set security ssh on linux


[root@App1 ~]# vi /etc/ssh/sshd_config
### insert the command to apply only monitor, survey, oam user OS can ssh from anywhere, others ### cannot ssh from other machine
AllowUsers monitor survey oam

Now, Restart sshd
[root@App1 ~]# /etc/init.d/sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]
[root@App1 ~]#

Monitoring memory and CPU using JVisualVM

[oracle@App1 ~]$ export JAVA_HOME=/u01/app/software/jdk/
[oracle@App1 ~]$ cd $JAVA_HOME/bin
[oracle@App1 bin]$ ls
appletviewer  javac           jconsole  jps         native2ascii  serialver
apt           javadoc         jcontrol  jrunscript  orbd          servertool
ControlPanel  javafxpackager  jdb       jsadebugd   pack200       tnameserv
extcheck      javah           jhat      jstack      policytool    unpack200
idlj          javap           jinfo     jstat       rmic          wsgen
jar           java-rmi.cgi    jmap      jstatd      rmid          wsimport
jarsigner     javaws          jmc       jvisualvm   rmiregistry   xjc
java          jcmd            jmc.ini   keytool     schemagen
[oracle@App1 bin]$ ./jvisualvm 


P6 Primavera Database Tuning - Use turned Table Statics

Run P6 db scripts that set table statistics (orpm_stats_gather.sql)
These scripts can be found at
/database/scripts/common/aux_script
They adjust statistics to be off for certain dynamic tables

[oracle@App1 software]$ cd P6_R151/p6suite/database/scripts/common/aux_script/
[oracle@App1 aux_script]$ ls
orpm_stats_gather_b.sql  orpm_stats_gather_c.sql  orpm_stats_gather.sql
[oracle@App1 aux_script]$ sqlplus admuser/*********

SQL*Plus: Release 12.1.0.1.0 Production on Sat Aug 22 16:33:32 2015

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

Last Successful login time: Sat Aug 22 2015 16:29:23 +07:00

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> @orpm_stats_gather.sql

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.

Saving stats in PM_8X_STATS StatId=BACKUP_PRE_201508221633

PL/SQL procedure successfully completed.

Default collecting for ACCOUNT 1 of 361
Default collecting for ACTIVITYCODEHIERARCHY 2 of 361
Default collecting for ACTIVITYCODETYPESECURITY 3 of 361
Default collecting for ACTIVITYSPREAD 4 of 361
Default collecting for ACTVCODE 5 of 361
Default collecting for ACTVCODEX 6 of 361
Default collecting for ACTVTYPE 7 of 361
Default collecting for ADDTASKPROC 8 of 361
Default collecting for ADDTASKPROCX 9 of 361
Default collecting for ADMIN_CONFIG 10 of 361
Default collecting for ALERT 11 of 361
Default collecting for ALERTPARAM 12 of 361
Default collecting for ATTR_MASTER 13 of 361
Default collecting for BASETYPE 14 of 361
Default collecting for BGPLOG 15 of 361
Default collecting for BRE_REGISTRY 16 of 361
Default collecting for BUDGCHNG 17 of 361
Default collecting for BUDGCHNGX 18 of 361
Default collecting for CALENDAR 19 of 361
Default collecting for CALENDARX 20 of 361
Default collecting for CBS 21 of 361
Default collecting for CHGHEAD 22 of 361
Default collecting for CHGTASK 23 of 361
Default collecting for CHGTASKACTV 24 of 361
Default collecting for CHGTASKACTVX 25 of 361
Default collecting for CHGTASKMEMO 26 of 361
Default collecting for CHGTASKMEMOX 27 of 361
Default collecting for CHGTASKPROC 28 of 361
Default collecting for CHGTASKPROCX 29 of 361
Default collecting for CHGTASKX 30 of 361
Default collecting for CHGTRSRC 31 of 361
Default collecting for CHGTRSRCX 32 of 361
Default collecting for CHGUDFVALUE 33 of 361
Default collecting for CHGUDFVALUEX 34 of 361
Default collecting for COSTACCOUNTHIERARCHY 35 of 361
Default collecting for COSTSECURITY 36 of 361
Default collecting for COSTTYPE 37 of 361
Default collecting for CURRTYPE 38 of 361
Default collecting for CURRTYPEX 39 of 361
Default collecting for DASHBOARD 40 of 361
Default collecting for DASHUSER 41 of 361
Default collecting for DELTASKPROC 42 of 361
Default collecting for DELTASKPROCX 43 of 361
Default collecting for DISCUSSION 44 of 361
Default collecting for DISCUSSION_READ 45 of 361
Default collecting for DLTACCT 46 of 361
Default collecting for DLTACTV 47 of 361
Default collecting for DLTOBS 48 of 361
Default collecting for DLTROLE 49 of 361
Default collecting for DLTRSRC 50 of 361
Default collecting for DLTRSRL 51 of 361
Default collecting for DLTUSER 52 of 361
Default collecting for DM_ATTR 53 of 361
Default collecting for DOC 54 of 361
Default collecting for DOCCATG 55 of 361
Default collecting for DOCREVIEW 56 of 361
Default collecting for DOCREVIEWTASK 57 of 361
Default collecting for DOCSTAT 58 of 361
Default collecting for DOCUMENT 59 of 361
Default collecting for DOCUMENTX 60 of 361
Default collecting for DOC_FOLDER 61 of 361
Default collecting for DOC_RECENT 62 of 361
Default collecting for DOC_VERSION 63 of 361
Default collecting for DR$DOCVER_DOCDATA_QSI$I 64 of 361
Default collecting for DR$DOCVER_DOCDATA_QSI$K 65 of 361
Default collecting for DR$DOCVER_DOCDATA_QSI$N 66 of 361
Default collecting for DR$DOCVER_DOCDATA_QSI$R 67 of 361
Default collecting for EPSHIERARCHY 68 of 361
Default collecting for EPSSPREAD 69 of 361
Default collecting for EXPPROJ 70 of 361
Default collecting for EXTAPP 71 of 361
Default collecting for FACTOR 72 of 361
Default collecting for FACTVAL 73 of 361
Default collecting for FILTPROP 74 of 361
Default collecting for FINDATES 75 of 361
Default collecting for FORMCATG 76 of 361
Default collecting for FORMPROJ 77 of 361
Default collecting for FORMTMPL 78 of 361
Default collecting for FUNDSRC 79 of 361
Default collecting for GATEWAYDEPLOYMENT 80 of 361
Default collecting for GATEWAYPROVIDER 81 of 361
Default collecting for GATEWAYSYNCACTION 82 of 361
Default collecting for GCHANGE 83 of 361
Default collecting for GLOBALSECURITY 84 of 361
Default collecting for HQDATA 85 of 361
Default collecting for HQUERY 86 of 361
Default collecting for ISSUHIST 87 of 361
Default collecting for ITERATION 88 of 361
Default collecting for ITERTASK 89 of 361
Default collecting for ITERTEAM 90 of 361
Default collecting for JOBLOG 91 of 361
Default collecting for JOBRPT 92 of 361
Default collecting for JOBSET 93 of 361
Default collecting for JOBSVC 94 of 361
Default collecting for LOCATION 95 of 361
Default collecting for MANAGEMENT_REQUEST 96 of 361
Default collecting for MAPPING_CENTER_STAFF 97 of 361
Default collecting for MDRT_17416$ 98 of 361
Default collecting for MDRT_1741D$ 99 of 361
Default collecting for MDXT_17416$ 100 of 361
Default collecting for MDXT_17416$_BKTS 101 of 361
Default collecting for MDXT_17416$_MBR 102 of 361
Default collecting for MDXT_1741D$ 103 of 361
Default collecting for MDXT_1741D$_BKTS 104 of 361
Default collecting for MDXT_1741D$_MBR 105 of 361
Default collecting for MD_ADDITIONAL_PROPERTIES 106 of 361
Default collecting for MD_APPLICATIONFILES 107 of 361
Default collecting for MD_APPLICATIONS 108 of 361
Default collecting for MD_CATALOGS 109 of 361
Default collecting for MD_CODE_REGEX 110 of 361
Default collecting for MD_COLUMNS 111 of 361
Default collecting for MD_CONNECTIONS 112 of 361
Default collecting for MD_CONSTRAINTS 113 of 361
Default collecting for MD_CONSTRAINT_DETAILS 114 of 361
Default collecting for MD_DERIVATIVES 115 of 361
Default collecting for MD_FILE_ARTIFACTS 116 of 361
Default collecting for MD_GROUPS 117 of 361
Default collecting for MD_GROUP_MEMBERS 118 of 361
Default collecting for MD_GROUP_PRIVILEGES 119 of 361
Default collecting for MD_INDEXES 120 of 361
Default collecting for MD_INDEX_DETAILS 121 of 361
Default collecting for MD_MIGR_DEPENDENCY 122 of 361
Default collecting for MD_MIGR_PARAMETER 123 of 361
Default collecting for MD_MIGR_WEAKDEP 124 of 361
Default collecting for MD_NUMROW$SOURCE 125 of 361
Default collecting for MD_NUMROW$TARGET 126 of 361
Default collecting for MD_OTHER_OBJECTS 127 of 361
Default collecting for MD_PACKAGES 128 of 361
Default collecting for MD_PARTITIONS 129 of 361
Default collecting for MD_PRIVILEGES 130 of 361
Default collecting for MD_PROJECTS 131 of 361
Default collecting for MD_REGISTRY 132 of 361
Default collecting for MD_REPOVERSIONS 133 of 361
Default collecting for MD_SCHEMAS 134 of 361
Default collecting for MD_SEQUENCES 135 of 361
Default collecting for MD_STORED_PROGRAMS 136 of 361
Default collecting for MD_SYNONYMS 137 of 361
Default collecting for MD_TABLES 138 of 361
Default collecting for MD_TABLESPACES 139 of 361
Default collecting for MD_TRIGGERS 140 of 361
Default collecting for MD_USERS 141 of 361
Default collecting for MD_USER_DEFINED_DATA_TYPES 142 of 361
Default collecting for MD_USER_PRIVILEGES 143 of 361
Default collecting for MD_VIEWS 144 of 361
Default collecting for MEMOTYPE 145 of 361
Default collecting for MIGRLOG 146 of 361
Default collecting for MIGR_DATATYPE_TRANSFORM_MAP 147 of 361
Default collecting for MIGR_DATATYPE_TRANSFORM_RULE 148 of 361
Default collecting for MIGR_GENERATION_ORDER 149 of 361
Default collecting for MTXSCRTYP 150 of 361
Default collecting for NEXTKEY 151 of 361
Default collecting for NONWORK 152 of 361
Default collecting for NOTE 153 of 361
Default collecting for OBS 154 of 361
Default collecting for OBSPROJ 155 of 361
Default collecting for PCATTYPE 156 of 361
Default collecting for PCATUSER 157 of 361
Default collecting for PCATUSERX 158 of 361
Default collecting for PCATVAL 159 of 361
Default collecting for PCATVALX 160 of 361
Default collecting for PC_KEY_XREF 161 of 361
Default collecting for PC_PROCESS_STAT 162 of 361
Default collecting for PFOLIO 163 of 361
Default collecting for PFOLIOX 164 of 361
Default collecting for PHASE 165 of 361
Default collecting for PLPROJREF 166 of 361
Default collecting for POBS 167 of 361
Default collecting for PREFER 168 of 361
Default collecting for PRMAUDIT 169 of 361
Default collecting for PRMQUEUE 170 of 361
Default collecting for PROCGROUP 171 of 361
Default collecting for PROCITEM 172 of 361
Default collecting for PROFILE 173 of 361
Default collecting for PROFPRIV 174 of 361
Default collecting for PROFPRIVX 175 of 361
Default collecting for PROJCOST 176 of 361
Default collecting for PROJCOSTX 177 of 361
Default collecting for PROJDEPLMENT 178 of 361
Default collecting for PROJECT 179 of 361
Default collecting for PROJECTCODEHIERARCHY 180 of 361
Default collecting for PROJECTCOSTCBSSPREAD 181 of 361
Default collecting for PROJECTSECURITY 182 of 361
Default collecting for PROJECTSPREAD 183 of 361
Default collecting for PROJECTX 184 of 361
Default collecting for PROJEST 185 of 361
Default collecting for PROJFUND 186 of 361
Default collecting for PROJFUNDX 187 of 361
Default collecting for PROJISSU 188 of 361
Default collecting for PROJISSUX 189 of 361
Default collecting for PROJPCAT 190 of 361
Default collecting for PROJPCATX 191 of 361
Default collecting for PROJPROP 192 of 361
Default collecting for PROJRISK 193 of 361
Default collecting for PROJSET 194 of 361
Default collecting for PROJTHRS 195 of 361
Default collecting for PROJWBS 196 of 361
Default collecting for PROJWBSX 197 of 361
Default collecting for PROJWSRPT 198 of 361
Default collecting for PRPFOLIO 199 of 361
Default collecting for PUBUSER 200 of 361
Default collecting for QUERYLIB 201 of 361
Default collecting for RCATTYPE 202 of 361
Default collecting for RCATVAL 203 of 361
Default collecting for RCATVALX 204 of 361
Default collecting for REITTYPE 205 of 361
Default collecting for RELEASE 206 of 361
Default collecting for RELITEMS 207 of 361
Default collecting for RELITER 208 of 361
Default collecting for RELPROJ 209 of 361
Default collecting for REPORTDATE 210 of 361
Default collecting for REPORTTIME 211 of 361
Default collecting for RESOURCEASSIGNMENTCBSSPREAD 212 of 361
Default collecting for RESOURCEASSIGNMENTSPREAD 213 of 361
Default collecting for RESOURCECODEHIERARCHY 214 of 361
Default collecting for RESOURCEHIERARCHY 215 of 361
Default collecting for RESOURCELIMIT 216 of 361
Default collecting for RFOLIO 217 of 361
Default collecting for RFOLIOX 218 of 361
Default collecting for RISK 219 of 361
Default collecting for RISKCTRL 220 of 361
Default collecting for RISKIMPACT 221 of 361
Default collecting for RISKMIT 222 of 361
Default collecting for RISKMITIMP 223 of 361
Default collecting for RISKMITX 224 of 361
Default collecting for RISKMTXSCR 225 of 361
Default collecting for RISKRSPPLN 226 of 361
Default collecting for RISKRSPPLNX 227 of 361
Default collecting for RISKSCRMTX 228 of 361
Default collecting for RISKSCRTHR 229 of 361
Default collecting for RISKSCRTYP 230 of 361
Default collecting for RISKTYPE 231 of 361
Default collecting for RISKX 232 of 361
Default collecting for RLFOLIO 233 of 361
Default collecting for RLFOLIOX 234 of 361
Default collecting for ROLELIMIT 235 of 361
Default collecting for ROLERATE 236 of 361
Default collecting for ROLERATEX 237 of 361
Default collecting for ROLES 238 of 361
Default collecting for ROLFOLIO 239 of 361
Default collecting for RPT 240 of 361
Default collecting for RPTBATCH 241 of 361
Default collecting for RPTGROUP 242 of 361
Default collecting for RPTLIST 243 of 361
Default collecting for RSRC 244 of 361
Default collecting for RSRCANDASH 245 of 361
Default collecting for RSRCANVIEW 246 of 361
Default collecting for RSRCCURV 247 of 361
Default collecting for RSRCCURVX 248 of 361
Default collecting for RSRCHOUR 249 of 361
Default collecting for RSRCHOURX 250 of 361
Default collecting for RSRCLOC 251 of 361
Default collecting for RSRCPROP 252 of 361
Default collecting for RSRCRATE 253 of 361
Default collecting for RSRCRATEX 254 of 361
Default collecting for RSRCRCAT 255 of 361
Default collecting for RSRCRCATX 256 of 361
Default collecting for RSRCROLE 257 of 361
Default collecting for RSRCROLEX 258 of 361
Default collecting for RSRCSEC 259 of 361
Default collecting for RSRCSECX 260 of 361
Default collecting for RSRCX 261 of 361
Default collecting for RSRFOLIO 262 of 361
Default collecting for SCENARIO 263 of 361
Default collecting for SCENPROJ 264 of 361
Default collecting for SCENROLE 265 of 361
Default collecting for SCENUSER 266 of 361
Default collecting for SETTINGS 267 of 361
Default collecting for SHIFT 268 of 361
Default collecting for SHIFTPER 269 of 361
Default collecting for SNAPGROUP 270 of 361
Default collecting for SNAPPROJ 271 of 361
Default collecting for SNAPSHOT 272 of 361
Default collecting for SPIDMAP 273 of 361
Default collecting for STAFF_DOINGBY 274 of 361
Default collecting for STAGE_MIGRLOG 275 of 361
Default collecting for SUMPROJCOST 276 of 361
Default collecting for SUMTASK 277 of 361
Default collecting for SUMTASKSPREAD 278 of 361
Default collecting for SUMTRSRC 279 of 361
Default collecting for TASK 280 of 361
Default collecting for TASKACTV 281 of 361
Default collecting for TASKACTVX 282 of 361
Default collecting for TASKCBSX 283 of 361
Default collecting for TASKDOC 284 of 361
Default collecting for TASKDOCX 285 of 361
Default collecting for TASKFDBK 286 of 361
Default collecting for TASKFIN 287 of 361
Default collecting for TASKFINX 288 of 361
Default collecting for TASKMEMO 289 of 361
Default collecting for TASKMEMOX 290 of 361
Default collecting for TASKNOTE 291 of 361
Default collecting for TASKPRED 292 of 361
Default collecting for TASKPREDX 293 of 361
Default collecting for TASKPROC 294 of 361
Default collecting for TASKPROCX 295 of 361
Default collecting for TASKRISK 296 of 361
Default collecting for TASKRISKX 297 of 361
Default collecting for TASKRSRC 298 of 361
Default collecting for TASKRSRCX 299 of 361
Default collecting for TASKSUM 300 of 361
Default collecting for TASKSUMFIN 301 of 361
Default collecting for TASKUSER 302 of 361
Default collecting for TASKWKSP 303 of 361
Default collecting for TASKX 304 of 361
Default collecting for TEMPKEYS 305 of 361
Default collecting for THRSPARM 306 of 361
Default collecting for TIMESHT 307 of 361
Default collecting for TIMESHTX 308 of 361
Default collecting for TMPLCATG 309 of 361
Default collecting for TPROJMAP 310 of 361
Default collecting for TRAKVIEW 311 of 361
Default collecting for TRSRCFIN 312 of 361
Default collecting for TRSRCFINX 313 of 361
Default collecting for TRSRCSUM 314 of 361
Default collecting for TRSRCSUMFN 315 of 361
Default collecting for TSAUDIT 316 of 361
Default collecting for TSDATES 317 of 361
Default collecting for TSDELEGATE 318 of 361
Default collecting for UACCESS 319 of 361
Default collecting for UDFCODE 320 of 361
Default collecting for UDFCODEX 321 of 361
Default collecting for UDFTYPE 322 of 361
Default collecting for UDFVALUE 323 of 361
Default collecting for UDFVALUEX 324 of 361
Default collecting for UEVNTREG 325 of 361
Default collecting for UMEASURE 326 of 361
Default collecting for USERCOL 327 of 361
Default collecting for USERDATA 328 of 361
Default collecting for USERENG 329 of 361
Default collecting for USEROBS 330 of 361
Default collecting for USEROBSX 331 of 361
Default collecting for USEROPEN 332 of 361
Default collecting for USERS 333 of 361
Default collecting for USERSET 334 of 361
Default collecting for USERSX 335 of 361
Default collecting for USERWKSP 336 of 361
Default collecting for USESSAUD 337 of 361
Default collecting for USROPNVAL 338 of 361
Default collecting for VIEWPREF 339 of 361
Default collecting for VIEWPROP 340 of 361
Default collecting for VWPREFDASH 341 of 361
Default collecting for VWPREFDATA 342 of 361
Default collecting for VWPREFUSER 343 of 361
Default collecting for WBRSCAT 344 of 361
Default collecting for WBSBUDG 345 of 361
Default collecting for WBSBUDGX 346 of 361
Default collecting for WBSHIERARCHY 347 of 361
Default collecting for WBSMEMO 348 of 361
Default collecting for WBSMEMOX 349 of 361
Default collecting for WBSRSRC 350 of 361
Default collecting for WBSRSRCX 351 of 361
Default collecting for WBSRSRC_QTY 352 of 361
Default collecting for WBSRSRC_QTYX 353 of 361
Default collecting for WBSSPREAD 354 of 361
Default collecting for WBSSTEP 355 of 361
Default collecting for WBSSTEPX 356 of 361
Default collecting for WKFLTMPL 357 of 361
Default collecting for WKFLUSER 358 of 361
Default collecting for WORKFLOW 359 of 361
Default collecting for WORKSPACE 360 of 361
Default collecting for WRK_LOG_RESULTS 361 of 361

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.

SQL> 

Friday, August 21, 2015

How to start P6 Primavera R15.1 server step by step

 First, we start AdminServer

[access@ptud PrimaveraP6EPPM]$ pwd
/home/access/fmw/user_projects/domains/PrimaveraP6EPPM

[access@ptud PrimaveraP6EPPM]$ ls
autodeploy  console-ext           init-info  nodemanager  servers
bin         edit.lok              lib        pending      startWebLogic.sh
config      fileRealm.properties  log.out    security     tmp
[access@ptud PrimaveraP6EPPM]$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m  -XX:MaxPermSize=256m
.
CLASSPATH=/home/access/setup/jdk/lib/tools.jar:/home/access/fmw/wlserver/server/lib/weblogic_sp.jar:/home/access/fmw/wlserver/server/lib/weblogic.jar:/home/access/fmw/wlserver/../oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b3/lib/ant-contrib.jar:/home/access/fmw/wlserver/modules/features/oracle.wls.common.nodemanager_2.0.0.0.jar:/home/access/fmw/wlserver/../oracle_common/modules/com.oracle.cie.config-wls-online_8.1.0.0.jar:/home/access/fmw/wlserver/common/derby/lib/derbyclient.jar:/home/access/fmw/wlserver/common/derby/lib/derby.jar:/home/access/fmw/wlserver/server/lib/xqrl.jar
.
PATH=/home/access/fmw/wlserver/server/bin:/home/access/fmw/wlserver/../oracle_common/modules/org.apache.ant_1.9.2/bin:/home/access/setup/jdk/jre/bin:/home/access/setup/jdk/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/access/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Starting WLS with line:
/home/access/setup/jdk/bin/java -server   -Xms256m -Xmx512m  -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/home/access/fmw/wlserver/server/lib/weblogic.policy  -Dweblogic.ProductionModeEnabled=true   -Djava.endorsed.dirs=/home/access/setup/jdk/jre/lib/endorsed:/home/access/fmw/wlserver/../oracle_common/modules/endorsed  -da -Dwls.home=/home/access/fmw/wlserver/server -Dweblogic.home=/home/access/fmw/wlserver/server     -Dweblogic.utils.cmm.lowertier.ServiceDisabled=true  weblogic.Server












[
  Version: V3
  Subject: CN=CACERT, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
  Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4

  Key:  Sun RSA public key, 512 bits
  modulus: 9550192877869244258838480703390456015046425375252278279190673063544122510925482179963329236052146047356415957587628011282484772458983977898996276815440753
  public exponent: 65537
  Validity: [From: Fri Mar 22 03:12:27 ICT 2002,
               To: Wed Mar 23 03:12:27 ICT 2022]
  Issuer: CN=CACERT, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
  SerialNumber: [    33f10648 fcde0deb 4199921f d64537f4]

Certificate Extensions: 1
[1]: ObjectId: 2.5.29.15 Criticality=true
KeyUsage [
  Key_CertSign
]

]
  Algorithm: [MD5withRSA]
  Signature:
0000: 9D 26 4C 29 C8 91 C3 A7   06 C3 24 6F AE B4 F8 82  .&L)......$o....
0010: 80 4D AA CB 7C 79 46 84   81 C4 66 95 F4 1E D8 C4  .M...yF...f.....
0020: E9 B7 D9 7C E2 23 33 A4   B7 21 E0 AA 54 2B 4A FF  .....#3..!..T+J.
0030: CB 21 20 88 81 21 DB AC   90 54 D8 7D 79 63 23 3C  .! ..!...T..yc#<

]. The system is vulnerable to security attacks, since it trusts certificates signed by the demo trusted CA.>


Aug 21, 2015 9:00:49 AM weblogic.wsee.WseeCoreMessages logWseeServiceStarting
INFO: The Wsee Service is starting













Secondly, We  run scripts to start p6.

[access@ptud scripts]$ pwd
/home/access/p6/scripts
[access@ptud scripts]$ ls
domain.properties    primaveraConfig.secure   stop_Primavera.py
domain_validator.py  primaveraKeyfile.secure  stop_Primavera.sh
newp6eppm.jar        start_Primavera.py
primavera_config.py  start_Primavera.sh

[access@ptud scripts]$ ./start_Primavera.sh
CLASSPATH=/home/access/setup/jdk/lib/tools.jar:/home/access/fmw/wlserver/server/lib/weblogic_sp.jar:/home/access/fmw/wlserver/server/lib/weblogic.jar:/home/access/fmw/wlserver/../oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b3/lib/ant-contrib.jar:/home/access/fmw/wlserver/modules/features/oracle.wls.common.nodemanager_2.0.0.0.jar:

PATH=/home/access/fmw/wlserver/server/bin:/home/access/fmw/wlserver/../oracle_common/modules/org.apache.ant_1.9.2/bin:/home/access/setup/jdk/jre/bin:/home/access/setup/jdk/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/access/bin:/home/access/fmw/wlserver/../oracle_common/modules/org.apache.maven_3.0.5/bin

Your environment has been set.

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

PRM-Starting Primavera Admin Server, Managed Servers, and Deployments
PRM-Connecting to Node Manager...
Connecting to Node Manager ...



PRM-Node Manager does not appear to be running. Attempting to start and reconnect...
Connecting to Node Manager ...
Successfully Connected to Node Manager.
PRM-Starting AdminServer
Starting server AdminServer ...
Error Starting server AdminServer: weblogic.nodemanager.NMException: Received error message from Node Manager Server: [Server start command for WebLogic server 'AdminServer' failed due to: [Server failed to start up but Node Manager was not aware of the reason]. Please check Node Manager log and/or server 'AdminServer' log for detailed information.]. Please check Node Manager log for details.
Connecting to t3://localhost:7005 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "PrimaveraP6EPPM".

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

PRM-Starting managed server P6
Starting server P6 ...................................................................
Server with name P6 started successfully
PRM-Starting managed server P6IntegrationAPI
Starting server P6IntegrationAPI ............................................
Server with name P6IntegrationAPI started successfully
PRM-Starting managed server P6WebServices
Starting server P6WebServices .......................................................................................................................
Server with name P6WebServices started successfully
PRM-Starting managed server TeamMember
Starting server TeamMember ..................................................................................................................................
Server with name TeamMember started successfully
PRM-Starting managed server p6procloudconnect
Starting server p6procloudconnect ..................................................................................................................................................
Server with name p6procloudconnect started successfully
PRM-Attempting to start deployments in case they were not started automatically
dr--   PrimaveraAPI
dr--   p6
dr--   p6help
dr--   p6procloudconnect
dr--   p6tm
dr--   p6ws
dr--   tmhelp

PRM-Starting deployment PrimaveraAPI
Starting application PrimaveraAPI.

...Completed the start of Application with status completed
Current Status of your Deployment:
Deployment command type: start
Deployment State : completed
Deployment Message : no message
PRM-Starting deployment p6
Starting application p6.

....Completed the start of Application with status completed
Current Status of your Deployment:
Deployment command type: start
Deployment State : completed
Deployment Message : no message
PRM-Starting deployment p6help
Starting application p6help.

.Completed the start of Application with status completed
Current Status of your Deployment:
Deployment command type: start
Deployment State : completed
Deployment Message : no message
PRM-Starting deployment p6procloudconnect
Starting application p6procloudconnect.

.Completed the start of Application with status completed
Current Status of your Deployment:
Deployment command type: start
Deployment State : completed
Deployment Message : no message
PRM-Starting deployment p6tm
Starting application p6tm.

.Completed the start of Application with status completed
Current Status of your Deployment:
Deployment command type: start
Deployment State : completed
Deployment Message : no message
PRM-Starting deployment p6ws
Starting application p6ws.

.Completed the start of Application with status completed
Current Status of your Deployment:
Deployment command type: start
Deployment State : completed
Deployment Message : no message
PRM-Starting deployment tmhelp
Starting application tmhelp.

.Completed the start of Application with status completed
Current Status of your Deployment:
Deployment command type: start
Deployment State : completed
Deployment Message : no message
Disconnected from weblogic server: AdminServer
Successfully disconnected from Node Manager.
PRM-Startup Complete
PRM-Completed. Returned error level: 0


Exiting WebLogic Scripting Tool.


Now P6 web we can access via  browser

You can shutdown P6 run scripts:
[access@ptud scripts]$ ls
domain.properties    primaveraConfig.secure   stop_Primavera.py
domain_validator.py  primaveraKeyfile.secure  stop_Primavera.sh
newp6eppm.jar        start_Primavera.py
primavera_config.py  start_Primavera.sh
[access@ptud scripts]$ ./stop_Primavera.sh
CLASSPATH=/home/access/setup/jdk/lib/tools.jar:/home/access/fmw/wlserver/server/lib/weblogic_sp.jar:/home/access/fmw/wlserver/server/lib/weblogic.jar:/home/access/fmw/wlserver/../oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b3/lib/ant-contrib.jar:/home/access/fmw/wlserver/modules/features/oracle.wls.common.nodemanager_2.0.0.0.jar:

PATH=/home/access/fmw/wlserver/server/bin:/home/access/fmw/wlserver/../oracle_common/modules/org.apache.ant_1.9.2/bin:/home/access/setup/jdk/jre/bin:/home/access/setup/jdk/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/access/bin:/home/access/fmw/wlserver/../oracle_common/modules/org.apache.maven_3.0.5/bin

Your environment has been set.

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

PRM-Stopping Primavera Admin Server, Managed Servers, and Deployments
PRM-This will NOT attempt to stop the Node Manager as it may be
PRM-needed for other servers on this machine.
Connecting to t3://localhost:7005 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "PrimaveraP6EPPM".

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

PRM-Shutting down managed server P6
Shutting down the server P6 with force=true while connected to AdminServer ...
.....
PRM-Shutting down managed server P6IntegrationAPI
Shutting down the server P6IntegrationAPI with force=true while connected to AdminServer ...
..............
PRM-Shutting down managed server P6WebServices
Shutting down the server P6WebServices with force=true while connected to AdminServer ...
...
PRM-Shutting down managed server TeamMember
Shutting down the server TeamMember with force=true while connected to AdminServer ...
...
PRM-Shutting down managed server p6procloudconnect
Shutting down the server p6procloudconnect with force=true while connected to AdminServer ...
........
PRM-Shutting down AdminServer
Shutting down the server AdminServer with force=true while connected to AdminServer ...
..WLST lost connection to the WebLogic Server that you were
connected to, this may happen if the server was shutdown or
partitioned. You will have to re-connect to the server once the
server is available.
Disconnected from weblogic server: AdminServer
Disconnected from weblogic server: AdminServer
PRM-Shutdown Complete


Exiting WebLogic Scripting Tool.

Wednesday, August 12, 2015

Find tablespace belong to a schema in Oracle Database

Syntax:
SELECT DISTINCT TABLESPACE_NAME FROM DBA_SEGMENTS WHERE OWNER='SCHEMA_NAME';

Example:

[oracle@PTUD-SV01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Wed Aug 12 09:24:04 2015

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


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> SELECT DISTINCT TABLESPACE_NAME FROM DBA_SEGMENTS WHERE OWNER='MPS';

TABLESPACE_NAME
------------------------------
MPS_TRANSLOG
MPS_TRANSLOG_MPI
MPS_TRANSLOG_MPI_BAK
BAK_TRANSACTION_EBP_2
BAK_TRANSACTION_MO_2
MPS_SMSLOG
MPS_SMSLOG_BAK
MPS_TRANSLOG_EBP_BAK
USERS
MPS_DEFAULT
BAK_SUBSCRIPTION_LOGS_2

TABLESPACE_NAME
------------------------------
BAK_TRANSACTION_MT_2
MPS_SUBSCRIPTIONS
BAK_SMSGW_MO_LOGS_2
MPS_INFO
MPS_TRANSLOG_EBP
MPS_TRANSLOG_MPI_1
BAK_SMSGW_MT_LOGS_2
BAK_TRANSACTION_MPI_2

19 rows selected.


SQL> 

Thursday, August 6, 2015

How to upgrade java version

[omss@ptud ~]$ java -version
java version "1.7.0_65"

[root@ptud omss]# ln -s -v /home/omss/jdk/bin/java /usr/bin/java
`/usr/bin/java' -> `/home/omss/jdk/bin/java'

[root@ptud omss]# ln -s -v /home/omss/jdk/bin/javac /usr/bin/javac
ln: creating symbolic link `/usr/bin/javac': File exists
[root@ptud omss]# rm -fr  /usr/bin/javac
[root@ptud omss]# ln -s -v /home/omss/jdk/bin/javac /usr/bin/javac
`/usr/bin/javac' -> `/home/omss/jdk/bin/javac'

[root@ptud omss]# java -version
java version "1.7.0_80"

Tuesday, August 4, 2015

How to start/stop Oracle Unified Directory 11gR2


[omss@ptud bin]$ pwd
/home/omss/middleware/asinst_1/OUD/bin

[omss@ptud bin]$ ./start-ds 
[04/Aug/2015:09:50:22 +0700] category=CORE severity=INFORMATION msgID=132 msg=The Directory Server is beginning the configuration bootstrapping process
[04/Aug/2015:09:50:22 +0700] category=CORE severity=NOTICE msgID=458886 msg=Oracle Unified Directory 11.1.2.3.0 (build 20150414142803Z, R1504140602) starting up
[04/Aug/2015:09:50:24 +0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381717 msg=Installation Directory:  /home/omss/middleware/Oracle_OUD
[04/Aug/2015:09:50:24 +0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381719 msg=Instance Directory:      /home/omss/middleware/asinst_1/OUD
[04/Aug/2015:09:50:24 +0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381713 msg=JVM Information: 1.7.0_76-b13 by Oracle Corporation, 64-bit architecture, 2374828032 bytes heap size
[04/Aug/2015:09:50:24 +0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381714 msg=JVM Host: localhost, running Linux 2.6.32-504.el6.x86_64 amd64, 6071373824 bytes physical memory size, number of processors available 4
[04/Aug/2015:09:50:24 +0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381715 msg=JVM Arguments: "-Xms2316m", "-Xmx2316m", "-XX:+UseCompressedOops", "-Xmn512m", "-XX:MaxTenuringThreshold=1", "-XX:+UseConcMarkSweepGC", "-XX:CMSInitiatingOccupancyFraction=55", "-Dorg.opends.server.scriptName=start-ds"
[04/Aug/2015:09:50:24 +0700] category=ACCESS_CONTROL severity=INFORMATION msgID=12582978 msg=Added 10 Global Access Control Instruction (ACI) attribute types to the access control evaluation engine
[04/Aug/2015:09:50:24 +0700] category=BACKEND severity=INFORMATION msgID=9437595 msg=Local DB backend virtualAcis does not specify the number of lock tables: defaulting to 97
[04/Aug/2015:09:50:24 +0700] category=JEB severity=NOTICE msgID=8847402 msg=The database backend cn=virtualAcis,cn=Workflow Elements,cn=config containing 0 entries has started
[04/Aug/2015:09:50:25 +0700] category=BACKEND severity=INFORMATION msgID=9437595 msg=Local DB backend userRoot does not specify the number of lock tables: defaulting to 97
[04/Aug/2015:09:50:25 +0700] category=BACKEND severity=INFORMATION msgID=9437594 msg=Local DB backend userRoot does not specify the number of cleaner threads: defaulting to 24 threads
[04/Aug/2015:09:50:25 +0700] category=BACKEND severity=INFORMATION msgID=9437615 msg=Local DB backend userRoot does not specify the percentage of the heap space to allocate to the database cache: defaulting to 35 percent
[04/Aug/2015:09:50:25 +0700] category=BACKEND severity=INFORMATION msgID=9437613 msg=Local DB backend userRoot does not specify the size of the file handle cache: sizing automatically to use 100 file descriptors
[04/Aug/2015:09:50:25 +0700] category=JEB severity=NOTICE msgID=8847402 msg=The database backend cn=userRoot,cn=Workflow Elements,cn=config containing 1 entries has started
[04/Aug/2015:09:50:25 +0700] category=EXTENSIONS severity=INFORMATION msgID=1048797 msg=DIGEST-MD5 SASL mechanism using a server fully qualified domain name of: localhost
[04/Aug/2015:09:50:25 +0700] category=CORE severity=INFORMATION msgID=731 msg=LDAP Connection Handler 0.0.0.0 port 1389 does not specify the number of request handler threads: sizing automatically to use 8 threads
[04/Aug/2015:09:50:25 +0700] category=CORE severity=INFORMATION msgID=720 msg=No worker queue thread pool size specified: sizing automatically to use 24 threads
[04/Aug/2015:09:50:25 +0700] category=PROTOCOL severity=NOTICE msgID=2556180 msg=Started listening for new connections on Administration Connector 0.0.0.0 port 4444
[04/Aug/2015:09:50:25 +0700] category=PROTOCOL severity=NOTICE msgID=2556180 msg=Started listening for new connections on LDAP Connection Handler 0.0.0.0 port 1389
[04/Aug/2015:09:50:25 +0700] category=CORE severity=NOTICE msgID=458887 msg=The Directory Server has started successfully
[04/Aug/2015:09:50:25 +0700] category=CORE severity=NOTICE msgID=458891 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerStarted, alert ID 458887):  The Directory Server has started successfully

[omss@ptud bin]$ ./stop-ds 
Stopping Server...

[04/Aug/2015:09:50:11 +0700] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend cn=userRoot,cn=Workflow Elements,cn=config is now taken offline
[04/Aug/2015:09:50:11 +0700] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend cn=virtualAcis,cn=Workflow Elements,cn=config is now taken offline
[04/Aug/2015:09:50:11 +0700] category=CORE severity=NOTICE msgID=458955 msg=The Directory Server is now stopped

Monday, August 3, 2015

How to set Security Mode "Fustion Middleware" on Bi Publisher

1) Navigate to ${OBIEE}/user_projects/domains/bifoundation_domain/config/bipublisher/repository/Admin/Configuration directory

[obiee@ptudvtg149 Configuration]$ pwd
/home/obiee/middleware/user_projects/domains/bifoundation_domain/config/bipublisher/repository/Admin/Configuration

2) Open the file xmlp-server-config.xml
[obiee@ptudvtg149 Configuration]$ vi xmlp-server-config.xml

3) Set the following profile option: