Wednesday, 4 September 2019

oswatcher


ps -ef |grep osw


Below 1 and 2 need to executed as root user.

1)OS watcher process.

Node 1
+++++++
[oracle@wdbfffadm01 oswbb]$ pwd
/home/oracle/oswbb/oswbb


Cd /home/oracle/oswbb/oswbb  --root user

./startOSW.sh


Output file

cd /opt/oracle.oswatcher/osw/archive



Run for 1 hour and issue

Cd /home/oracle/oswbb/oswbb  --root user


./stopOSW.sh


Node 2:

pxdwdbaffffdm02 :

[oracle@wdbadm02 oswbb]$ pwd
/home/oracle/oswbb

Cd /home/oracle/oswbb


./startOSW.sh

Output file in

 cd /opt/oracle.oswatcher/osw/archive


cd /home/oracle/oswbb


./stopOSW.sh


Thursday, 29 August 2019

ORA-20001: Statistics Advisor: Invalid task name


ORA-20001: Statistics Advisor: Invalid task name for the current user


Error

2018-03-07T01:38:40.435087-06:00
Errors in file E:\ORACLE\diag\rdbms\ic\ic\trace\ic_j000_532.trc:
ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_5501"
ORA-20001: Statistics Advisor: Invalid task name for the current user
ORA-06512: at "SYS.DBMS_STATS", line 47207
ORA-06512: at "SYS.DBMS_STATS_ADVISOR", line 882
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 20059
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 22201
ORA-06512: at "SYS.DBMS_STATS", line 47197
Cause:
Issue occurred while creating the database DBCA, the advisory package is not created properly. This issue is happening because of the unavailability of the Stats Advisor Tasks from the created database.
Solution
1. Connect with the SYSDBA privilege user:
2. Run the following query for checking advisory package:

col name for a30
select name, ctime, how_created
from sys.wri$_adv_tasks
where owner_name = 'SYS'
and name in ('AUTO_STATS_ADVISOR_TASK','INDIVIDUAL_STATS_ADVISOR_TASK');

no rows selected
3. Initialize the package with following commands.

EXEC dbms_stats.init_package();
4. Verify the package create. It will fixed the issue.

col name for a30
select name, ctime, how_created
from sys.wri$_adv_tasks
where owner_name = 'SYS'
and name in ('AUTO_STATS_ADVISOR_TASK','INDIVIDUAL_STATS_ADVISOR_TASK');

NAME                           CTIME     HOW_CREATED                            
------------------------------ --------- --------------       
AUTO_STATS_ADVISOR_TASK        05-DEC-18 CMD                                    
INDIVIDUAL_STATS_ADVISOR_TASK  05-DEC-18 CMD 

If the query based on "where owner_name = 'SYS'" condition does not show any rows but the error continues, please change the query as shown below to
see if a non-SYS user like SYSTEM owns those tasks for some reason:
$ sqlplus / as sysdba
select name, ctime, how_created,OWNER_NAME from sys.wri$_adv_tasks where name in ('AUTO_STATS_ADVISOR_TASK','INDIVIDUAL_STATS_ADVISOR_TASK');

If the OWNER is a non-SYS user, you have to drop the tasks as that user first and then try to solution mention in the Note again.
This was a case for one customer.
For example:
--- Connect as SYSTEM, for example, if that user owned the tasks and non SYS for some reason
SQL> conn system/&password DECLARE v_tname VARCHAR2(32767); BEGIN v_tname := 'AUTO_STATS_ADVISOR_TASK'; DBMS_STATS.DROP_ADVISOR_TASK(v_tname); END; / SQL> DECLARE v_tname VARCHAR2(32767); BEGIN v_tname := 'INDIVIDUAL_STATS_ADVISOR_TASK'; DBMS_STATS.DROP_ADVISOR_TASK(v_tname); END; / connect / as sysdba EXEC DBMS_STATS.INIT_PACKAGE();

Tuesday, 27 August 2019

What is a Cloud Architect?


Cloud computing architecture refers to the components and subcomponents required for cloud computing. These components typically consist of a front end platform, back end platforms, a cloud-based delivery, and a network. Combined, these components make up cloud computing architecture. Cloud solutions design is based on architectural procedures and methods that have been developed over the last 20 or so years.
A Cloud Architect is responsible for converting the technical requirements of a project into the architecture and design that will guide the final product. Often, Cloud Architects are also responsible for bridging the gaps between complex business problems and solutions in the cloud. Other members of a technology team, including DevOps engineers and developers, work with the Cloud Architect to ensure that the right technology or technologies are being built.

Friday, 23 August 2019

devops

devops

AWS DEVOPS DEVELPER


asm lib configuration on mapper design



ORACLEASM_SCANORDER="mpath dm" (OR ORACLEASM_SCANORDER="dm")

I found this on various documents on oracle site , still we will crosscheck with oracle once .



Also the below document

(How to Force ASM to Scan the Multipathed Device First using ASMLIB/oracleasm on RHEL 5/OL 5 and RHEL 6/OL 6 (Doc ID 1679409.1)


ASMLib/oracleasm can only be implemented on Linux OS.  When using multipathing, you want to FORCE oracleasm to scan the multipathed devices first

Below is the process mentioned

On all nodes:
1)  Shutdown all (DB and ASM):
You should stop all before restart ASMLib (eg: DB, ASM and HAS (crsctl stop crs for RAC) if you are in 11.2 - crsctl stop has) 

Then, on each node, one at a time, do the following steps that are dependent on the type of multipathing software:
2)  For backup, make a copy of your current /etc/sysconfig/oracleasm and /etc/sysconfig/oracleasm-_dev_oracleasm files
a) If using DM-Multipathing or Linux OS Native Multipathing:
1. Then, you want to change the following parameters in the  /etc/sysconfig/oracleasm-_dev_oracleasm file to which the /etc/sysconfig/oracleasm file is really linked to:

For example:

lrwxrwxrwx 1 root root 24 Jun 13 09:58 /etc/sysconfig/oracleasm -> oracleasm-_dev_oracleasm

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER="mpath dm" (OR ORACLEASM_SCANORDER="dm")

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE="sd"



 b) If using  EMC PowerPath Multipathing:
2. Then, you want to change the following parameters in the  /etc/sysconfig/oracleasm-_dev_oracleasm file to which the /etc/sysconfig/oracleasm file is really linked to:

For example:

lrwxrwxrwx 1 root root 24 Jun 13 09:58 /etc/sysconfig/oracleasm -> oracleasm-_dev_oracleasm

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER="emcpower"

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE="sd"

orachk


Request has been created to run the ./orachk and give us the output.

[oracle@pxdadm]01 orachk]$ . oraenv
ORACLE_SID = [+ASM1] ? +ASM1

[oracle@pxbadm01 ~]$ cd /home/oracle/orachk
[oracle@pxbadm01 orachk]$ pwd
/home/oracle/orachk
[oracle@pxbadm01 orachk]$ ls -lrt
total 324200
-rw-r--r--  1 oracle oinstall 331643669 Mar 15 08:37 orachk.zip
drwxr-xr-x 10 oracle oinstall      4096 Mar 15 09:42 orachk



[oracle@pxdadm01 orachk]$ ./orachk

Run the above and give us output to give the result for oracle support.

If there any issue with run please change the orachk owner with root user.

Featured post

Restircted session due to sync filed with ora-65177

Application is unable to connect the database due to restricted session. sql> show pdbs; SQL> show con_name CON_NAME -----------------...