08 August 2014

How to check your Current MySQL Version

How to check Mysql Version:-

[root@arjun mysql]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.19-enterprise-commercial-advanced MySQL Enterprise Server - Advanced Edition (Commercial)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SHOW VARIABLES LIKE "%version%";
+-------------------------+---------------------------------------------------------+
| Variable_name           | Value                                                   |
+-------------------------+---------------------------------------------------------+
| innodb_version          | 5.6.19                                                  |
| protocol_version        | 10                                                      |
| slave_type_conversions  |                                                         |
| version                 | 5.6.19-enterprise-commercial-advanced                   |
| version_comment         | MySQL Enterprise Server - Advanced Edition (Commercial) |
| version_compile_machine | x86_64                                                  |
| version_compile_os      | Linux                                                   |
+-------------------------+---------------------------------------------------------+
7 rows in set (0.10 sec)

mysql>

MySQL: Failed Registration of InnoDB as a Storage Engine

MySQL: Failed Registration of InnoDB as a Storage Engine

 Error:-

[ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
[ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Unknown/unsupported storage engine: InnoDB
[ERROR] Aborting

Verify your my.cnf file:-

[root@arjun mysql]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=root
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[root@arjun mysql]#

Solution :-

[root@arjun mysql]# ls
arjun.bangalore.bedford.local.err  ibdata1  ib_logfile0  ib_logfile1  kbace  mysql  RPM_UPGRADE_HISTORY  RPM_UPGRADE_MARKER-LAST  test
[root@arjun mysql]# mv ibdata1 ibdata1_old
[root@arjun mysql]# mv ib_logfile0 ib_logfile0_old
[root@arjun mysql]# mv ib_logfile1 ib_logfile1_old
[root@arjun mysql]# pwd
/var/lib/mysql

[root@arjun mysql]# service mysql start
Starting MySQL...                                          [  OK  ]

[root@arjun mysql]# ls
arjun.bangalore.bedford.local.err  auto.cnf  ibdata1_old  ib_logfile0_old  ib_logfile1_old  mysql       RPM_UPGRADE_HISTORY      test
arjun.bangalore.bedford.local.pid  ibdata1   ib_logfile0  ib_logfile1      kbace            mysql.sock  RPM_UPGRADE_MARKER-LAST
[root@arjun mysql]#

01 August 2014

RMAN-03008: error while performing automatic resync of recovery catalog

Error:-

[ortest@test ~]$ rman target / catalog rman/rman@RMAN

Recovery Manager: Release 11.2.0.3.0 - Production on Sun Apr 27 03:06:47 2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: TEST (DBID=723392534)
connected to recovery catalog database

RMAN> register database;

database registered in recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03008: error while performing automatic resync of recovery catalog
ORA-01580: error creating control backup file /u02/backup/PROD/RMAN/level0/cntrl_snap_PROD.ctl
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
Additional information: 1

RMAN> exit

SQL> select 'exec dbms_rcvcat.unregisterdatabase('||db_key||','||dbid||');' from rc_database where name='TEST';

'EXECDBMS_RCVCAT.UNREGISTERDATABASE('||DB_KEY||','||DBID||');'
--------------------------------------------------------------------------------
exec dbms_rcvcat.unregisterdatabase(12204,391554033);
exec dbms_rcvcat.unregisterdatabase(2959542,723392534);

SQL> exec dbms_rcvcat.unregisterdatabase(12204,391554033);

PL/SQL procedure successfully completed.

SQL> exec dbms_rcvcat.unregisterdatabase(2959542,723392534);

PL/SQL procedure successfully completed.

SQL> commit;

Commit complete.

SQL> select 'exec dbms_rcvcat.unregisterdatabase('||db_key||','||dbid||');' from rc_database where name='TEST';

no rows selected

SQL> select 'exec dbms_rcvcat.unregisterdatabase('||db_key||','||dbid||');' from rc_database where name='PROD';

no rows selected

SQL> exit



Solution:

[ortest@test dbs]$ rman target /

Recovery Manager: Release 11.2.0.3.0 - Production on Sun Apr 27 03:14:56 2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: TEST (DBID=723392534)

RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/TEST/oracle/db/tech_st/11.2.0/db_1/dbs/snapcf_TEST1.f';

using target database control file instead of recovery catalog

old RMAN configuration parameters:

CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u02/backup/PROD/RMAN/level0/cntrl_snap_PROD.ctl';


new RMAN configuration parameters:

CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/TEST/oracle/db/tech_st/11.2.0/db_1/dbs/snapcf_TEST1.f';

new RMAN configuration parameters are successfully stored

RMAN> exit


Recovery Manager complete.
[ortest@test dbs]$ rman target / catalog rman/rman@RMAN

Recovery Manager: Release 11.2.0.3.0 - Production on Sun Apr 27 03:15:28 2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: TEST (DBID=723392534)
connected to recovery catalog database

RMAN> show all;

starting full resync of recovery catalog
full resync complete
RMAN configuration parameters for database with db_unique_name TEST are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 6 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO 4296 M;
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/TEST/oracle/db/tech_st/11.2.0/db_1/dbs/snapcf_TEST1.f';

RMAN>

Ebusiness Suit R12.2.X Log file location

Few Logfile location on EBS R12.2.X


Admin server   -   $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/AdminServer/logs/AdminServer.log

oacore logfile  -  $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/oacore_server1/logs/oacore_server1.log

oacore out file  -  $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/oacore_server1/logs/oacore_server1.out

oacore diagnostic log -  $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/oacore_server1/logs/oacore_server1-diagnostic.log

oafm logfile -  $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/oafm_server1/logs/oafm_server1.log

oafm outfile -  $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/oafm_server1/logs/oafm_server1.out

oafm diagnostic log  - $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/oafm_server1/logs/oafm_server1-diagnostic.log

form server log  - $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/forms_server1/logs/forms_server1.log

form server access log  - $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/forms_server1/logs/access.log

form server out file  - $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/forms_server1/logs/forms_server1.out

form server diagnostic log  - $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/forms_server1/logs/forms_server1-diagnostic.log

forms-c4ws_server1 log  - $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/forms-c4ws_server1/logs/forms-c4ws_server1.log

forms-c4ws_server1 out file - $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/forms-c4ws_server1/logs/forms-c4ws_server1.out

forms-c4ws_server1 diagnostic log  -  $FMW_HOME/user_projects/domains/EBS_domain_$TWO_TASK/servers/forms-c4ws_server1/logs/forms-c4ws_server1-diagnostic.log