Visit Counter

Thursday, September 17, 2015

How to Remove Oracle 12c EM Express



How to Remove 12c EM Express


SQL> exec DBMS_XDB_CONFIG.sethttpsport(0);
or
SQL> exec DBMS_XDB_CONFIG.sethttpsport(null);


But this Functionality currently is not working Due to Bug 17535882 : DBMS_XDB_CONFIG.SETHTTPSPORT(0): ORA-30952: ILLEGAL CONFIGURATION OF HTTP/HTTPS ,

Which was closed as Duplicate of unpublished Bug 17213197 : ORA-44718: PORT CONFLICT IN XDB CONFIGURATION FILE LEADS TO INSTANCE CRASH
which will be Fixed in 12.1.0.2.0 Patchset and 12.2 Base Release.
Please Apply Patch 17213197 if available or upgrade to the Patchset where Bug 17213197 is fixed .

or You can use any of the following workarounds to unset the HTTPS port :

1- Remove The <sid>XDB Dispatcher setting :


SQL> alter system set dispatchers='';

System altered.

SQL> select name from V$DISPATCHER;

NAME
----
D000

SQL> ALTER SYSTEM SHUTDOWN 'D000';

System altered.

The Dispatcher stops accepting new connections and will wait until all of the sessions it handles are disconnected before shutting down.

SQL> ALTER SYSTEM SHUTDOWN IMMEDIATE 'D000';

System altered.

The IMMEDIATE keyword stops the Dispatcher from accepting new connections and immediately terminates all existing connections through that Dispatcher. After all sessions are cleaned up, the Dispatcher process shuts down.

2- Block the Current used Port from the OS level
.

Oracle 12c EM Express Configuration




Configure EM Express Port


SQL> select dbms_xdb_config.gethttport from dual;   (for http)

(0)

SQL> select dbms_xdb_config.gethttsport from dual;  (for https)

(0)



SQL> exec DBMS_XDB_CONFIG.setHTTPsport(5500);




SQL> exec DBMS_XDB_CONFIG.setHTTPport(1200);





SQL> select dbms_xdb_config.gethttport from dual;   (for http)

(1200)

SQL> select dbms_xdb_config.gethttsport from dual;  (for https)

(5500)



https://ora12.5500/em
http://ora12.1200/em



 

Wednesday, September 16, 2015

Authentication Refused: Bad Ownership or Modes for Directory /ora/oracle





I trying to install Oracle 12c RAC on Oracle Linux 6.


While configure SSH on both nodes getting error below

# /var/log/secure


Authentication Refused: Bad Ownership or Modes for Directory /ora/oracle



# chown oracle:oinstall /ora
# chown oracle:oinstall /ora/oracle

$ chmod go-w /ora
$ chmod go-w /ora/oracle
$ chmod 700   /ora/oracle/.ssh
$ chmod 600  /ora/oracle/.ssh/authorized_keys


# service ssh restart


$ ssh rac01 date
Thu sep 17 01:56:11 AST 2015
$ssh rac02 date
Thu sep 17 01:56:11 AST 2015


$ ssh rac02 date
Thu sep 17 01:56:11 AST 2015
$ssh rac01 date
Thu sep 17 01:56:11 AST 2015

Monday, August 3, 2015

ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below



RMAN> run {

2> allocate channel ch00 type 'SBT_TAPE';

3> send 'NB_ORA_CLIENT=lh-ora-rs';

4> recover database;

5> release channel ch00;

6> }

allocated channel: ch00

channel ch00: sid=1987 devtype=SBT_TAPE

channel ch00: Veritas NetBackup for Oracle - Release 7.6 (2014102721)

sent command to channel: ch00

Starting recover at 03-AUG-15

starting media recovery

Oracle Error:

ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below

ORA-01194: file 1 needs more recovery to be consistent

ORA-01110: data file 1: '/ora_dat/ssaerp/system01.dbf'

released channel: ch00

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of recover command at 08/03/2015 14:06:59

RMAN-06053: unable to perform media recovery because of missing log

RMAN-06025: no backup of log thread 1 seq 105266 lowscn 3956325323 found to rest ore

RMAN-06025: no backup of log thread 1 seq 105265 lowscn 3956321064 found to rest ore



I moved archive log files from production to Development server and try to recover database.


RMAN> run {

2> allocate channel t1 type disk;

3> recover database;

4> release channel t1;

5> }

allocated channel: t1

channel t1: sid=1987 devtype=DISK

Starting recover at 03-AUG-15

starting media recovery

archive log thread 1 sequence 105265 is already on disk as file /ora_dat/ssaerp/ archive1/1_105265_694624922.dbf

archive log thread 1 sequence 105266 is already on disk as file /ora_dat/ssaerp/ archive1/1_105266_694624922.dbf

Oracle Error:

ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below

ORA-01194: file 1 needs more recovery to be consistent

ORA-01110: data file 1: '/ora_dat/ssaerp/system01.dbf'

released channel: t1

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of recover command at 08/03/2015 14:13:32

RMAN-06053: unable to perform media recovery because of missing log

RMAN-06102: no channel to restore a backup or copy of log thread 1 seq 105264 lo wscn 3956321028

RMAN-06102: no channel to restore a backup or copy of log thread 1 seq 105263 lo wscn 3956315146

RMAN-06102: no channel to restore a backup or copy of log thread 1 seq 105262 lo wscn 3956283401

RMAN> run {

2> allocate channel t1 type disk;

3> recover database;

4> release channel t1;

5> }

allocated channel: t1

channel t1: sid=1987 devtype=DISK

Starting recover at 03-AUG-15

starting media recovery

archive log thread 1 sequence 105262 is already on disk as file /ora_dat/ssaerp/archive1/1_105262_694624922.dbf

archive log thread 1 sequence 105263 is already on disk as file /ora_dat/ssaerp/archive1/1_105263_694624922.dbf

archive log thread 1 sequence 105264 is already on disk as file /ora_dat/ssaerp/archive1/1_105264_694624922.dbf

archive log thread 1 sequence 105265 is already on disk as file /ora_dat/ssaerp/archive1/1_105265_694624922.dbf

archive log thread 1 sequence 105266 is already on disk as file /ora_dat/ssaerp/archive1/1_105266_694624922.dbf

archive log filename=/ora_dat/ssaerp/archive1/1_105262_694624922.dbf thread=1 sequence=105262

archive log filename=/ora_dat/ssaerp/archive1/1_105263_694624922.dbf thread=1 sequence=105263

archive log filename=/ora_dat/ssaerp/archive1/1_105264_694624922.dbf thread=1 sequence=105264

archive log filename=/ora_dat/ssaerp/archive1/1_105265_694624922.dbf thread=1 sequence=105265

archive log filename=/ora_dat/ssaerp/archive1/1_105266_694624922.dbf thread=1 sequence=105266

archive log filename=/ora_dat/ssaerp/archive1/1_105267_694624922.dbf thread=1 sequence=105267

archive log filename=/ora_dat/ssaerp/archive1/1_105268_694624922.dbf thread=1 sequence=105268

archive log filename=/ora_dat/ssaerp/archive1/1_105269_694624922.dbf thread=1 sequence=105269

archive log filename=/ora_dat/ssaerp/archive1/1_105270_694624922.dbf thread=1 sequence=105270

archive log filename=/ora_dat/ssaerp/archive1/1_105271_694624922.dbf thread=1 sequence=105271

archive log filename=/ora_dat/ssaerp/archive1/1_105272_694624922.dbf thread=1 sequence=105272

archive log filename=/ora_dat/ssaerp/archive1/1_105273_694624922.dbf thread=1 sequence=105273

archive log filename=/ora_dat/ssaerp/archive1/1_105274_694624922.dbf thread=1 sequence=105274

archive log filename=/ora_dat/ssaerp/archive1/1_105275_694624922.dbf thread=1 sequence=105275

archive log filename=/ora_dat/ssaerp/archive1/1_105276_694624922.dbf thread=1 sequence=105276

archive log filename=/ora_dat/ssaerp/archive1/1_105277_694624922.dbf thread=1 sequence=105277

archive log filename=/ora_dat/ssaerp/archive1/1_105278_694624922.dbf thread=1 sequence=105278

unable to find archive log

archive log thread=1 sequence=105279

released channel: t1

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of recover command at 08/03/2015 14:25:51

RMAN-06054: media recovery requesting unknown log: thread 1 seq 105279 lowscn 3956590616





RMAN> alter database open resetlogs;

database opened

RMAN>
 

Connection requested by invalid server. check to make sure that the configuration


Error:

Connection requested by invalid server.

Solution:

Add master server address in bp.conf

# /usr/openv/netbackup/bp.conf

    SERVER = backupserver-baan

Wednesday, July 29, 2015

Enable Xmanager in Solaris 10






# uname -a
SunOS SUN-2 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V240


 # svccfg

svc:> select cde-login
svc:/application/graphical-login/cde-login> listprop arg
dtlogin/args astring

svc:/application/graphical-login/cde-login> setprop dtlogin/args=astring:" -udpPort 177"
svc:/application/graphical-login/cde-login> quit


# svcadm restart cde-login


# ps -ef |grep dtlogin
root 25145 23150 0 06:22:50 pts/1 0:00 grep dtlogin
root 24997 1 0 06:22:01 ? 0:00 /usr/dt/bin/dtlogin -daemon -udpPort 177

Tuesday, July 28, 2015

Changing Mount point in Solaris 10 Sparc





# cd /

#  umount /data1

# mkdr /ora

#  mount /dev/md/dsk/d6  /ora


#  vi  /etc/vfstab

/ora              (Existing name is data1)


# df -h

# cat /etc/vfstab

#  metastat