Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 7

login as: oracle

oracle@towpsddb01's password:
Last unsuccessful login: Thu Nov 10 09:58:36 2022 on ssh from 10.32.3.75
Last login: Mon Nov 14 01:03:33 2022 on ssh from 10.32.3.77
*******************************************************************************
* *
* This is a Stanley Black and Decker Computer System. *
* This computer system is provided only for authorized use. *
* SBDK computer systems may be monitored for all lawful purposes. *
* Information may be examined, recorded, copied and used for authorized *
* purposes. All information, including personal information, sent over this *
* system may be monitored. Unauthorized use may subject you to criminal *
* prosecution. Evidence of unauthorized use collected during monitoring may *
* be used for criminal or adverse action. *
* *
*******************************************************************************

PSOFT DB Development
*******************************************************************************
[YOU HAVE NEW MAIL]
oracle@towpsddb01:/apps/oracle
> ps -ef|grep pn^?
oracle@towpsddb01:/apps/oracle
> ps -ef|grep pmon
oracle 42270872 1 0 01:41:19 - 0:00 ora_pmon_pa91d1
oracle 52428904 1 0 01:02:14 - 0:00 ora_pmon_ps92d1
oracle 54132910 1 0 01:16:31 - 0:00 ora_pmon_ps92d2
oracle 13304068 1 0 00:53:53 - 0:00 ora_pmon_ps92dev
oracle 28115366 1 0 00:47:56 - 0:00 ora_pmon_pa91dev
oracle 44695910 1 0 01:34:07 - 0:00 ora_pmon_psesdev
oracle 51118588 1 0 01:16:47 - 0:00 ora_pmon_ps92tst
oracle 65536476 1 0 01:10:57 - 0:00 ora_pmon_pa91tst
oracle@towpsddb01:/apps/oracle
>
oracle@towpsddb01:/apps/oracle
> cat /etc/oratab
B
#

# This file is used by ORACLE utilities. It is created by root.sh


# and updated by either Database Configuration Assistant while creating
# a database or ASM Configuration Assistant while creating ASM instance.

# A colon, ':', is used as the field terminator. A new line terminates


# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third field indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
# 20200623 JRS INC2390187 Removed ps92imp from startup, allow pa91dev to startup
#
ps92tst:/oracle/PSTEST/12.1.0:Y
pa91tst:/oracle/PSTEST/12.1.0:Y
psesdev:/oracle/PSDSES/12.1.0:Y
#ps92sit:/oracle/PSDEVL/12.1.0:N
#ps92cfg:/oracle/PSDEVL/12.1.0:N
#ps92imp:/oracle/PSDEVL/12.1.0:Y
pa91dev:/oracle/PSDEVL/12.1.0:Y
#ps92upg:/oracle/PSDEVL/11.2.0.4:N
ps92d1:/oracle/PSDEVL/12.1.0:Y
ps92dev:/oracle/PSDEVL/12.1.0:Y
ps92d2:/oracle/PSDEVL/12.1.0:Y
oracle@towpsddb01:/apps/oracle
>
oracle@towpsddb01:/apps/oracle
>
oracle@towpsddb01:/apps/oracle
>
oracle@towpsddb01:/apps/oracle
> export ORACLE_SID=ps92d1
oracle@towpsddb01:/apps/oracle
> export ORACLE_HOME=/oracle/PSDEVL/12.1.0
oracle@towpsddb01:/apps/oracle
> export PATH=$ORACLE_HOME/bin:$PATH
oracle@towpsddb01:/apps/oracle
> sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Mon Nov 14 02:13:25 2022

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 name ,open_mode from v$database;

NAME OPEN_MODE
--------- --------------------
PS92D1 READ WRITE

SQL> select name ,open_mode,dbid from v$database;

NAME OPEN_MODE DBID


--------- -------------------- ----------
PS92D1 READ WRITE 587181399

SQL> select name from v$tempfile;

NAME
--------------------------------------------------------------------------------
/oracle/PSDEVL/oradata01/ps92d1/temp01.dbf
/oracle/PSDEVL/oradata01/ps92d1/pstemp01.dbf
/oracle/PSDEVL/oradata02/ps92d1/psgtt01.dbf

SQL> shutdown immediate


Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup mount


ORACLE instance started.

Total System Global Area 5368709120 bytes


Fixed Size 6155008 bytes
Variable Size 3506439424 bytes
Database Buffers 1828716544 bytes
Redo Buffers 27398144 bytes
Database mounted.
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit
Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing
options
oracle@towpsddb01:/apps/oracle

> nid target=/

DBNEWID: Release 12.1.0.2.0 - Production on Mon Nov 14 02:19:29 2022

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

Connected to database PS92D1 (DBID=587181399)

Connected to server version 12.1.0

Control Files in database:


/oracle/PSDEVL/oradata01/ps92d1/control01.ctl
/oracle/PSDEVL/oradata02/ps92d1/control02.ctl
/oracle/PSDEVL/oradata01/ps92d1/control03.ctl

Change database ID of database PS92D1? (Y/[N]) => y

Proceeding with operation


Changing database ID from 587181399 to 697635571
Control File /oracle/PSDEVL/oradata01/ps92d1/control01.ctl - modified
Control File /oracle/PSDEVL/oradata02/ps92d1/control02.ctl - modified
Control File /oracle/PSDEVL/oradata01/ps92d1/control03.ctl - modified
Datafile /oracle/PSDEVL/oradata01/ps92d1/system01.db - dbid changed
Datafile /oracle/PSDEVL/oradata01/ps92d1/sysaux01.db - dbid changed
Datafile /oracle/PSDEVL/oradata01/ps92d1/psundots01.db - dbid changed
Datafile /oracle/PSDEVL/oradata01/ps92d1/psdefault.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/aaapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/aalarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/adapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/amapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/avapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/bdapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/bnapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/bnlarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ccapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/coapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/cuaudit.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/cularg1.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/cularg2.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/cularg3.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/cularge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/diapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/dtapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eobfapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eocfapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eocmapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eocmlrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eocmwrk.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eocuapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoculrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eodsapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eodslrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoecapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoeclrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoecwrk.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoeiapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoeilrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoewapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoewlrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoewwrk.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoiuapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoiulrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoiuwrk.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eolarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoltapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eoppapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eopplrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eotpapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eotplrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/epapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/eplarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/erapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/erlarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/erwork.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/faapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/falarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/fgapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/fglarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/fsapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/giapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/gpapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/gpdeapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hpapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrapp1.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrapp2.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrapp3.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrapp4.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrapp5.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrapp6.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrapp7.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrimage.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrlarg1.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrlarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrsapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrsarch.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrslarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrswork.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/hrwork.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/htapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/inapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/paapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/palarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pcapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pclarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/piapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pilarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/piwork.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/poapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/psimage.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/psimage2.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/psimgr.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/psindex.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptamsg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptappe.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptaudit.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptcmstar.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptlock.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptprc.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptprjwk.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptrpts.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/psmatvw.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pttbl.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pttlrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pttree.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/ptwork.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pvapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/py0lrg.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pyapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pylarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pywork.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/saapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/sacapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/salarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/srapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/stapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/stlarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/stwork.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/tlapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/tllarge.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/tlwork.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/waapp.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/pstable.db - dbid changed
Datafile /oracle/PSDEVL/oradata01/ps92d1/temp01.db - dbid changed
Datafile /oracle/PSDEVL/oradata01/ps92d1/pstemp01.db - dbid changed
Datafile /oracle/PSDEVL/oradata02/ps92d1/psgtt01.db - dbid changed
Control File /oracle/PSDEVL/oradata01/ps92d1/control01.ctl - dbid changed
Control File /oracle/PSDEVL/oradata02/ps92d1/control02.ctl - dbid changed
Control File /oracle/PSDEVL/oradata01/ps92d1/control03.ctl - dbid changed
Instance shut down

Database ID for database PS92D1 changed to 697635571.


All previous backups and archived redo logs for this database are unusable.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database ID.
DBNEWID - Completed succesfully.

oracle@towpsddb01:/apps/oracle
> bash
bash-4.3$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Mon Nov 14 02:21:11 2022

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

Connected to an idle instance.

SQL> startup mount;


ORACLE instance started.

Total System Global Area 5368709120 bytes


Fixed Size 6155008 bytes
Variable Size 3506439424 bytes
Database Buffers 1828716544 bytes
Redo Buffers 27398144 bytes
Database mounted.

SQL> alter database open resetlogs;

Database altered.

SQL> exec dbms_feature_usage_internal.cleanup_database(FALSE);

PL/SQL procedure successfully completed.

SQL> select name ,open_mode,dBid from v$database;

NAME OPEN_MODE DBID


--------- -------------------- ----------

PS92D1 READ WRITE 697635571

bash-4.3$ sqlplus rman/R8anb#up@rmanbkp

SQL*Plus: Release 11.2.0.4.0 Production on Wed Nov 16 00:47:54 2022

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

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

SQL> select db_key, dbid, name from rc_database where name ='PS92D1';

DB_KEY DBID NAME


---------- ---------- --------
2551160702 697635571 EANZTST

SQL>execute dbms_rcvcat.unregisterdatabase(2551160702 , 697635571);


PL/SQL procedure successfully completed.

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

bash-4.3$ rman target / catalog rman/R8anb#up@rmanbkp

Recovery Manager: Release 12.1.0.2.0 - Production on Mon Nov 14 02:26:43 2022

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

connected to target database: PS92D1 (DBID=697635571)


connected to recovery catalog database
recovery catalog schema release 19.12.00.00. is newer than RMAN release

RMAN> register database;

database registered in recovery catalog


starting full resync of recovery catalog
full resync complete

RMAN> resync catalog;

starting full resync of recovery catalog


full resync complete

RMAN>

You might also like