0% found this document useful (0 votes)
117 views16 pages

Non-Asm To Asm

The document shows the output of the top command run on an Oracle database server. It lists the processes running on the server by CPU usage and memory usage. The top processes are related to Oracle ASM and database instances.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views16 pages

Non-Asm To Asm

The document shows the output of the top command run on an Oracle database server. It lists the processes running on the server by CPU usage and memory usage. The top processes are related to Oracle ASM and database instances.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 16

login as: oracle

oracle@192.168.0.104's password:
Last login: Sun Jan 13 22:23:21 2019
[oracle@rac1 ~]$ top
top - 23:28:01 up 1:10, 3 users, load average: 0.80, 0.45, 0.50
Tasks: 345 total, 1 running, 344 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.2 us, 6.0 sy, 0.0 ni, 91.3 id, 0.5 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 2798160 total, 326792 free, 952104 used, 1519264 buff/cache
KiB Swap: 2097148 total, 1200212 free, 896936 used. 999700 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND


1 root 20 0 202212 6448 4416 S 3.3 0.2 0:15.52 systemd
3651 oracle -2 0 1525832 8440 8168 S 2.0 0.3 1:35.78 asm_vktm_+asm
820 polkitd 20 0 542736 5888 4396 S 1.7 0.2 0:04.77 polkitd
17692 oracle -2 0 1583424 62332 59448 S 1.7 2.2 0:56.00 ora_vktm_orcl
864 dbus 20 0 69976 4332 2656 S 1.0 0.2 0:08.94 dbus-daemon
5027 oracle 20 0 3535308 164480 31344 S 1.0 5.9 1:03.50 gnome-shell
2725 oracle 20 0 1252352 28396 17328 S 0.7 1.0 0:40.52 oraagent.bin
5189 oracle 20 0 659228 9456 4360 S 0.7 0.3 0:00.58 gsd-power
31594 oracle 20 0 162144 4696 3752 R 0.7 0.2 0:00.15 top
9 root 20 0 0 0 0 S 0.3 0.0 0:07.65 rcuos/0
18 root 20 0 0 0 0 S 0.3 0.0 0:02.29 rcuos/1
528 root 20 0 39472 4788 4476 S 0.3 0.2 0:01.53 systemd-
journal
794 root 12 -8 84564 1268 1192 S 0.3 0.0 0:00.64 audispd
841 root 20 0 26440 2692 2492 S 0.3 0.1 0:01.95 systemd-logind
908 avahi 20 0 62244 2404 2304 S 0.3 0.1 0:01.29 avahi-daemon
1068 root 20 0 357952 4468 3584 S 0.3 0.2 0:03.77 firewalld
1700 root 20 0 115440 3068 2796 S 0.3 0.1 0:05.67 init.ohasd
2422 oracle 20 0 1315672 6776 0 S 0.3 0.2 0:32.75 ohasd.bin
2733 oracle 20 0 843120 3852 2128 S 0.3 0.1 0:15.23 cssdagent
2772 oracle 20 0 1203964 3396 3396 S 0.3 0.1 0:15.15 ocssd.bin
2912 oracle 20 0 303492 4224 3436 S 0.3 0.2 0:11.03 evmlogger.bin
3638 oracle 20 0 1525832 11424 11152 S 0.3 0.4 0:01.68 asm_psp0_+asm
3657 oracle 20 0 1526480 10196 9820 S 0.3 0.4 0:01.29 asm_gen0_+asm
5101 oracle 20 0 495288 1752 1580 S 0.3 0.1 0:01.47 mission-
control
5109 oracle 20 0 573696 5000 3600 S 0.3 0.2 0:00.40 gvfs-udisks2-
vo
5246 oracle 20 0 626180 6140 4320 S 0.3 0.2 0:00.57 gsd-
housekeepin
17726 oracle 20 0 1583968 81404 78120 S 0.3 2.9 0:01.08 ora_ckpt_orcl
17752 oracle 20 0 1584296 65080 61608 S 0.3 2.3 0:03.16 ora_fenc_orcl
2 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:05.79 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
7 root 20 0 0 0 0 S 0.0 0.0 0:06.46 rcu_sched
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/0
11 root rt 0 0 0 0 S 0.0 0.0 0:00.05 migration/0
12 root rt 0 0 0 0 S 0.0 0.0 0:00.04 watchdog/0
13 root rt 0 0 0 0 S 0.0 0.0 0:00.05 watchdog/1
14 root rt 0 0 0 0 S 0.0 0.0 0:00.03 migration/1
15 root 20 0 0 0 0 S 0.0 0.0 0:00.27 ksoftirqd/1
17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H
19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/1
20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper
21 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kdevtmpfs
22 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
23 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 perf
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ nmon
bash: nmon: command not found...
[oracle@rac1 ~]$ which nmon
/usr/bin/which: no nmon in
(/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/or
acle/bin)
[oracle@rac1 ~]$
[oracle@rac1 ~]$ top
top - 23:28:30 up 1:11, 3 users, load average: 1.02, 0.53, 0.52
Tasks: 345 total, 1 running, 344 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.7 us, 1.7 sy, 0.0 ni, 97.4 id, 0.0 wa, 0.0 hi, 0.2 si, 0.0 st
KiB Mem : 2798160 total, 326164 free, 951980 used, 1520016 buff/cache
KiB Swap: 2097148 total, 1200224 free, 896924 used. 999836 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND


3651 oracle -2 0 1525832 8440 8168 S 1.7 0.3 1:36.31 asm_vktm_+asm
17692 oracle -2 0 1583424 62332 59448 S 1.3 2.2 0:56.57 ora_vktm_orcl
31873 oracle 20 0 162144 4724 3776 R 1.3 0.2 0:00.15 top
2725 oracle 20 0 1252352 28396 17328 S 1.0 1.0 0:40.79 oraagent.bin
9 root 20 0 0 0 0 S 0.3 0.0 0:07.69 rcuos/0
15 root 20 0 0 0 0 S 0.3 0.0 0:00.28 ksoftirqd/1
834 root 20 0 21680 2140 1984 S 0.3 0.1 0:03.22 irqbalance
860 root 20 0 317992 3836 3496 S 0.3 0.1 0:21.53 vmtoolsd
864 dbus 20 0 69976 4332 2656 S 0.3 0.2 0:09.00 dbus-daemon
2422 oracle 20 0 1315672 6776 0 S 0.3 0.2 0:32.87 ohasd.bin
2733 oracle 20 0 843120 3852 2128 S 0.3 0.1 0:15.32 cssdagent
2912 oracle 20 0 303492 4224 3436 S 0.3 0.2 0:11.12 evmlogger.bin
17180 root 20 0 0 0 0 S 0.3 0.0 0:02.20 kworker/0:2
17684 oracle 20 0 1583424 63964 61088 S 0.3 2.3 0:01.07 ora_psp0_orcl
17712 oracle 20 0 1584260 94828 91216 S 0.3 3.4 0:02.31 ora_dbrm_orcl
17746 oracle 20 0 1589164 96232 92092 S 0.3 3.4 0:00.16 ora_lreg_orcl
17752 oracle 20 0 1584296 65080 61608 S 0.3 2.3 0:03.21 ora_fenc_orcl
31453 oracle 20 0 165252 4100 2724 S 0.3 0.1 0:00.16 sshd
1 root 20 0 202212 6448 4416 S 0.0 0.2 0:15.55 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:05.79 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
7 root 20 0 0 0 0 S 0.0 0.0 0:06.49 rcu_sched
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/0
11 root rt 0 0 0 0 S 0.0 0.0 0:00.05 migration/0
12 root rt 0 0 0 0 S 0.0 0.0 0:00.04 watchdog/0
13 root rt 0 0 0 0 S 0.0 0.0 0:00.05 watchdog/1
14 root rt 0 0 0 0 S 0.0 0.0 0:00.03 migration/1
17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H
18 root 20 0 0 0 0 S 0.0 0.0 0:02.30 rcuos/1
19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/1
20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper
21 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kdevtmpfs
22 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
23 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 perf
24 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd
25 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback
26 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd
27 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto
28 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd
29 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset
30 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd
31 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 md
32 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 devfreq_wq
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.4G 0 1.4G 0% /dev
tmpfs 18G 1.3G 17G 8% /dev/shm
tmpfs 1.4G 11M 1.4G 1% /run
tmpfs 1.4G 0 1.4G 0% /sys/fs/cgroup
/dev/mapper/ol_rac1-root 50G 37G 14G 74% /
/dev/mapper/ol_rac1-var 7.0G 2.0G 5.1G 29% /var
/dev/sda1 1014M 222M 793M 22% /boot
tmpfs 274M 28K 274M 1% /run/user/54321
/dev/sr0 4.2G 4.2G 0 100% /run/media/oracle/OL-7.5
Server.x86_64
[oracle@rac1 ~]$ cd /
[oracle@rac1 /]$ mkdir backup
mkdir: cannot create directory �backup�: File exists
[oracle@rac1 /]$ ls -lrt
total 36
drwxr-xr-x. 2 root root 6 Apr 11 2018 srv
drwxr-xr-x. 2 root root 6 Apr 11 2018 media
lrwxrwxrwx. 1 root root 7 Aug 17 20:29 bin -> usr/bin
lrwxrwxrwx. 1 root root 7 Aug 17 20:29 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 Aug 17 20:29 lib64 -> usr/lib64
lrwxrwxrwx. 1 root root 8 Aug 17 20:29 sbin -> usr/sbin
drwxr-xr-x. 13 root root 4096 Aug 17 20:29 usr
drwxr-xr-x. 3 root root 18 Aug 17 21:34 mnt
drwxr-xr-x. 21 root root 4096 Aug 18 00:16 var
drwxrwxr-x. 3 oracle oinstall 17 Aug 18 00:40 u01
-rw-r--r--. 1 root root 26 Aug 18 17:18 TFA.txt
drwxr-xr-x. 5 root root 46 Aug 19 16:25 opt
drwxrwxrwx. 2 oracle oinstall 41 Aug 19 23:45 software
drwxr-xr-x. 5 root root 47 Aug 20 00:30 home
dr-xr-xr-x. 4 root root 4096 Aug 20 03:51 boot
drwxr-xr-x. 3 root root 19 Aug 20 05:21 backup
drwxr-xr-x. 2 root root 6 Oct 25 21:18 ACFS
dr-xr-x---. 8 root root 4096 Nov 29 17:42 root
drwxr-xr-x. 144 root root 8192 Jan 13 16:39 etc
dr-xr-xr-x. 356 root root 0 Jan 13 22:17 proc
dr-xr-xr-x. 13 root root 0 Jan 13 22:17 sys
drwxr-xr-x. 22 root root 3620 Jan 13 22:18 dev
drwxr-xr-x. 40 root root 1300 Jan 13 22:24 run
drwxrwxrwt. 17 root root 4096 Jan 13 23:28 tmp
[oracle@rac1 /]$ cd backup/
[oracle@rac1 backup]$ ls -lrt
total 4
drwxrwxr-x. 2 oracle oinstall 4096 Jan 13 16:33 racdb
[oracle@rac1 backup]$ cd racdb
[oracle@rac1 racdb]$ ls
c-982249389-20180820-01 c-982249389-20180820-02 c-982249389-20190113-00
ora_df984635676_s6_s1 ora_df984635704_s8_s1 snapcf_racdb.f
[oracle@rac1 racdb]$
[oracle@rac1 racdb]$ cd ..
[oracle@rac1 backup]$ pwd
/backup
[oracle@rac1 backup]$ mkdir orcl
mkdir: cannot create directory �orcl�: Permission denied
[oracle@rac1 backup]$ ls
racdb
[oracle@rac1 backup]$ ls-lrt
bash: ls-lrt: command not found...
[oracle@rac1 backup]$ ls -lrt
total 4
drwxrwxr-x. 2 oracle oinstall 4096 Jan 13 16:33 racdb
[oracle@rac1 backup]$ ls -ld
drwxr-xr-x. 3 root root 19 Aug 20 05:21 .
[oracle@rac1 backup]$
[oracle@rac1 backup]$ cd racdb
[oracle@rac1 racdb]$ mkdir orcl_bkp
[oracle@rac1 racdb]$
[oracle@rac1 racdb]$ cd orcl_bkp/
[oracle@rac1 orcl_bkp]$ pwd
/backup/racdb/orcl_bkp
[oracle@rac1 orcl_bkp]$
[oracle@rac1 orcl_bkp]$
[oracle@rac1 orcl_bkp]$ echo $ORACLE_HOME

[oracle@rac1 orcl_bkp]$ . oraenv


ORACLE_SID = [oracle] ? orcl
The Oracle base has been set to /u01/app/oracle
[oracle@rac1 orcl_bkp]$ echo $ORACLE_HOME
/u01/app/oracle/product/12.2.0/db_1
[oracle@rac1 orcl_bkp]$ cd $ORACLE_HOME/dbs
[oracle@rac1 dbs]$ ls -lrt
total 10392
-rw-r--r--. 1 oracle oinstall 3079 May 15 2015 init.ora
-rw-r-----. 1 oracle oinstall 24 Aug 20 05:01 lkRACDB
-rw-r-----. 1 oracle oinstall 3584 Aug 20 05:05 orapwracdb
-rw-r-----. 1 oracle oinstall 10600448 Aug 20 05:35 snapcf_racdb.f
-rw-r-----. 1 oracle oinstall 3584 Aug 20 05:47 spfileracdb.ora
-rw-r--r--. 1 oracle oinstall 1132 Aug 20 05:47 initracdb.ora
-rw-rw----. 1 oracle oinstall 1544 Jan 13 17:11 hc_racdb.dat
-rw-r-----. 1 oracle dba 24 Jan 13 22:41 lkORCL
-rw-r-----. 1 oracle oinstall 3584 Jan 13 22:47 orapworcl
-rw-rw----. 1 oracle dba 1544 Jan 13 22:51 hc_orcl.dat
-rw-r-----. 1 oracle dba 3584 Jan 13 22:51 spfileorcl.ora
[oracle@rac1 dbs]$ cp *orcl* /backup/racdb/orcl_bkp/.
[oracle@rac1 dbs]$
[oracle@rac1 dbs]$ pwd
/u01/app/oracle/product/12.2.0/db_1/dbs
[oracle@rac1 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Sun Jan 13 23:32:26 2019

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

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> select name from v$datafile


2 union
3 select name from v$controlfile
4 union
5 select member from v$logfile;

NAME
--------------------------------------------------------------------------------
/u01/app/oracle/fast_recovery_area/orcl/ORCL/controlfile/o1_mf_g3pwhloj_.ctl
/u01/app/oracle/fast_recovery_area/orcl/ORCL/onlinelog/o1_mf_1_g3pwhvm8_.log
/u01/app/oracle/fast_recovery_area/orcl/ORCL/onlinelog/o1_mf_2_g3pwhzkl_.log
/u01/app/oracle/fast_recovery_area/orcl/ORCL/onlinelog/o1_mf_3_g3pwj7t8_.log
/u01/app/oracle/oradata/ORCL/controlfile/o1_mf_g3pwhl2o_.ctl
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_sysaux_g3pwf4h5_.dbf
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_system_g3pwcdkr_.dbf
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_undotbs1_g3pwg88x_.dbf
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_users_g3pwg9kl_.dbf
/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_1_g3pwhon7_.log
/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_2_g3pwhpb7_.log

NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_3_g3pwj4g4_.log

12 rows selected.

SQL> show parameter orcl


SQL> show parameter db_uni

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
db_unique_name string orcl
SQL>
SQL>
SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL>
SQL> select name from v$tempfile;
select name from v$tempfile
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

SQL> startup
ORACLE instance started.

Total System Global Area 1157627904 bytes


Fixed Size 8619936 bytes
Variable Size 838862944 bytes
Database Buffers 301989888 bytes
Redo Buffers 8155136 bytes
Database mounted.
Database opened.
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@rac1 dbs]$ sqlplus "/ as sysdba"

SQL*Plus: Release 12.2.0.1.0 Production on Sun Jan 13 23:38:35 2019

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

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> sho parameter cont

NAME TYPE VALUE


------------------------------------ -----------
------------------------------
containers_parallel_degree integer 65535
control_file_record_keep_time integer 7
control_files string /u01/app/oracle/oradata/ORCL/c
ontrolfile/o1_mf_g3pwhl2o_.ctl
, /u01/app/oracle/fast_recover
y_area/orcl/ORCL/controlfile/o
1_mf_g3pwhloj_.ctl
control_management_pack_access string DIAGNOSTIC+TUNING
SQL> select sum(bytes/1024/1024) from dba_data_files;

SUM(BYTES/1024/1024)
--------------------
1345

SQL> alter system set control_files='+DATA' scope=spfie;


alter system set control_files='+DATA' scope=spfie
*
ERROR at line 1:
ORA-00922: missing or invalid option

SQL> alter system set control_files='+DATA' scope=spfile;

System altered.

SQL> shut immediate


Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.

Total System Global Area 1157627904 bytes


Fixed Size 8619936 bytes
Variable Size 838862944 bytes
Database Buffers 301989888 bytes
Redo Buffers 8155136 bytes
ORA-00205: error in identifying control file, check alert log for more info

SQL> shut immediate


ORA-01507: database not mounted

ORACLE instance shut down.


SQL> startup nomount
ORACLE instance started.

Total System Global Area 1157627904 bytes


Fixed Size 8619936 bytes
Variable Size 838862944 bytes
Database Buffers 301989888 bytes
Redo Buffers 8155136 bytes
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@rac1 dbs]$ rman target /

Recovery Manager: Release 12.2.0.1.0 - Production on Sun Jan 13 23:45:08 2019

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

connected to target database: ORCL (not mounted)

RMAN> restore controlfile to '+DATA' from


'/u01/app/oracle/oradata/ORCL/controlfile/o1_mf_g3pwhl2o_.ctl';

Starting restore at 13-JAN-19


using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=258 device type=DISK

channel ORA_DISK_1: copied control file copy


Finished restore at 13-JAN-19

RMAN> mount database;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "database": expecting one of: ""
RMAN-01007: at line 1 column 7 file: standard input

RMAN> alter database mount;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of sql statement command at 01/13/2019 23:46:45
ORA-00205: error in identifying control file, check alert log for more info

RMAN> exit

Recovery Manager complete.


[oracle@rac1 dbs]$ sqlplus "/ as sysdba"

SQL*Plus: Release 12.2.0.1.0 Production on Sun Jan 13 23:48:12 2019


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

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> alter database mount;


alter database mount
*
ERROR at line 1:
ORA-00205: error in identifying control file, check alert log for more info

SQL> sho parameter spfile;

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
spfile string /u01/app/oracle/product/12.2.0
/db_1/dbs/spfileorcl.ora
SQL> sho parameter control

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
control_file_record_keep_time integer 7
control_files string +DATA
control_management_pack_access string DIAGNOSTIC+TUNING
SQL> alter system set control_files='+DATA/ORCL/CONTROLFILE/current.266.997487167'
scope=spfile;

System altered.

SQL> shut immidiate


SP2-0717: illegal SHUTDOWN option
SQL> shut down
SP2-0717: illegal SHUTDOWN option
SQL> shutdown
ORA-01507: database not mounted

ORACLE instance shut down.


SQL> SQL> startup mount
ORACLE instance started.

Total System Global Area 1157627904 bytes


Fixed Size 8619936 bytes
Variable Size 838862944 bytes
Database Buffers 301989888 bytes
Redo Buffers 8155136 bytes
Database mounted.
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@rac1 dbs]$ rman target /

Recovery Manager: Release 12.2.0.1.0 - Production on Sun Jan 13 23:51:18 2019

Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID=1525264202, not open)

RMAN> show all;

using target database control file instead of recovery catalog


RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
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 UNLIMITED; # default
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 RMAN OUTPUT TO KEEP FOR 7 DAYS; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO
'/u01/app/oracle/product/12.2.0/db_1/dbs/snapcf_orcl.f'; # default

RMAN> backup as copy database format '+DATA';

Starting backup at 13-JAN-19


allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=256 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001
name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_system_g3pwcdkr_.dbf
output file name=+DATA/ORCL/DATAFILE/system.267.997487563 tag=TAG20190113T235243
RECID=1 STAMP=997487594
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile copy
input datafile file number=00003
name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_sysaux_g3pwf4h5_.dbf
output file name=+DATA/ORCL/DATAFILE/sysaux.268.997487599 tag=TAG20190113T235243
RECID=2 STAMP=997487612
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004
name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_undotbs1_g3pwg88x_.dbf
output file name=+DATA/ORCL/DATAFILE/undotbs1.269.997487615 tag=TAG20190113T235243
RECID=3 STAMP=997487616
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
channel ORA_DISK_1: starting datafile copy
input datafile file number=00007
name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_users_g3pwg9kl_.dbf
output file name=+DATA/ORCL/DATAFILE/users.270.997487617 tag=TAG20190113T235243
RECID=4 STAMP=997487618
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 13-JAN-19

Starting Control File and SPFILE Autobackup at 13-JAN-19


piece
handle=/u01/app/oracle/fast_recovery_area/orcl/ORCL/autobackup/2019_01_13/o1_mf_s_9
97486956_g3q0kd4n_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 13-JAN-19

RMAN> report schema;

Report of database schema for database with db_unique_name ORCL

List of Permanent Datafiles


===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 800 SYSTEM ***
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_system_g3pwcdkr_.dbf
3 470 SYSAUX ***
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_sysaux_g3pwf4h5_.dbf
4 70 UNDOTBS1 ***
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_undotbs1_g3pwg88x_.dbf
7 5 USERS ***
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_users_g3pwg9kl_.dbf

List of Temporary Files


=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1 32 TEMP 32767
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_temp_g3pwks8g_.tmp

RMAN> switch database to copy;

datafile 1 switched to datafile copy "+DATA/ORCL/DATAFILE/system.267.997487563"


datafile 3 switched to datafile copy "+DATA/ORCL/DATAFILE/sysaux.268.997487599"
datafile 4 switched to datafile copy "+DATA/ORCL/DATAFILE/undotbs1.269.997487615"
datafile 7 switched to datafile copy "+DATA/ORCL/DATAFILE/users.270.997487617"

RMAN> report schema;

Report of database schema for database with db_unique_name ORCL

List of Permanent Datafiles


===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 800 SYSTEM *** +DATA/ORCL/DATAFILE/system.267.997487563
3 470 SYSAUX *** +DATA/ORCL/DATAFILE/sysaux.268.997487599
4 70 UNDOTBS1 ***
+DATA/ORCL/DATAFILE/undotbs1.269.997487615
7 5 USERS *** +DATA/ORCL/DATAFILE/users.270.997487617

List of Temporary Files


=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1 32 TEMP 32767
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_temp_g3pwks8g_.tmp

RMAN> report schema;

Report of database schema for database with db_unique_name ORCL

List of Permanent Datafiles


===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 800 SYSTEM *** +DATA/ORCL/DATAFILE/system.267.997487563
3 470 SYSAUX *** +DATA/ORCL/DATAFILE/sysaux.268.997487599
4 70 UNDOTBS1 ***
+DATA/ORCL/DATAFILE/undotbs1.269.997487615
7 5 USERS *** +DATA/ORCL/DATAFILE/users.270.997487617

List of Temporary Files


=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1 32 TEMP 32767
/u01/app/oracle/oradata/ORCL/datafile/o1_mf_temp_g3pwks8g_.tmp

RMAN> SWITCH TEMPFILE 1 TO COPY;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "tempfile": expecting one of: "database, database
root, datafile, pluggable, tablespace"
RMAN-01007: at line 1 column 8 file: standard input

RMAN> EXIT

Recovery Manager complete.


[oracle@rac1 dbs]$ sqlplus "/ as sysdba'
> "

SQL*Plus: Release 12.2.0.1.0 Production on Sun Jan 13 23:58:20 2019

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

SQL*Plus: Release 12.2.0.1.0 Production

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

Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.

Usage 1: sqlplus -H | -V

-H Displays the SQL*Plus version and the


usage help.
-V Displays the SQL*Plus version.

Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]

<option> is: [-AC] [-C <version>] [-L] [-M "<options>"] [-NOLOGINTIME] [-R
<level>]
[-S]

-AC Enable Application Continuity.


-C <version> Sets the compatibility of affected commands to the
version specified by <version>. The version has
the form "x.y[.z]". For example, -C 10.2.0
-L Attempts to log on just once, instead of
reprompting on error.
-M "<options>" Sets automatic HTML or CSV markup of output. The options
have the form:
{HTML html_options|CSV csv_options}
See SQL*Plus User's Guide for detailed HTML and CSV options.
-NOLOGINTIME Don't display Last Successful Login Time.
-R <level> Sets restricted mode to disable SQL*Plus commands
that interact with the file system. The level can
be 1, 2 or 3. The most restrictive is -R 3 which
disables all user commands interacting with the
file system.
-S Sets silent mode which suppresses the display of
the SQL*Plus banner, prompts, and echoing of
commands.

<logon> is: {<username>[/<password>][@<connect_identifier>] | / }


[AS {SYSDBA | SYSOPER | SYSASM | SYSBACKUP | SYSDG | SYSKM | SYSRAC}]
[EDITION=value]

Specifies the database account username, password and connect


identifier for the database connection. Without a connect
identifier, SQL*Plus connects to the default database.

The AS SYSDBA, AS SYSOPER, AS SYSASM, AS SYSBACKUP, AS SYSDG,


AS SYSKM and AS SYSRAC options are database administration privileges.

<connect_identifier> can be in the form of Net Service Name


or Easy Connect.

@[<net_service_name> | [//]Host[:Port]/<service_name>]

<net_service_name> is a simple name for a service that resolves


to a connect descriptor.

Example: Connect to database using Net Service Name and the


database net service name is ORCL.

sqlplus myusername/mypassword@ORCL

Host specifies the host name or IP address of the database


server computer.

Port specifies the listening port on the database server.

<service_name> specifies the service name of the database you


want to access.

Example: Connect to database using Easy Connect and the


Service name is ORCL.

sqlplus myusername/mypassword@Host/ORCL

The /NOLOG option starts SQL*Plus without connecting to a


database.

The EDITION specifies the value for Session Edition.


<start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]

Runs the specified SQL*Plus script from a web server (URL) or the
local file system (filename.ext) with specified parameters that
will be assigned to substitution variables in the script.

When SQL*Plus starts, and after CONNECT commands, the site profile
(e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
(e.g. login.sql in the working directory) are run. The files may
contain SQL*Plus commands.

Refer to the SQL*Plus User's Guide and Reference for more information.
[oracle@rac1 dbs]$ sqlplus "/ as sysdba"

SQL*Plus: Release 12.2.0.1.0 Production on Sun Jan 13 23:58:29 2019

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

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> alter database rename file


'/u01/app/oracle/oradata/ORCL/datafile/o1_mf_temp_g3pwks8g_.tmp' to
'+DATA/o1_mf_temp_g3pwks8g_.tmp';

Database altered.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@rac1 dbs]$ rman target /

Recovery Manager: Release 12.2.0.1.0 - Production on Sun Jan 13 23:59:58 2019

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

connected to target database: ORCL (DBID=1525264202, not open)

RMAN> report schema;

using target database control file instead of recovery catalog


Report of database schema for database with db_unique_name ORCL

List of Permanent Datafiles


===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 800 SYSTEM *** +DATA/ORCL/DATAFILE/system.267.997487563
3 470 SYSAUX *** +DATA/ORCL/DATAFILE/sysaux.268.997487599
4 70 UNDOTBS1 ***
+DATA/ORCL/DATAFILE/undotbs1.269.997487615
7 5 USERS *** +DATA/ORCL/DATAFILE/users.270.997487617

List of Temporary Files


=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1 32 TEMP 32767 +DATA/o1_mf_temp_g3pwks8g_.tmp

RMAN> exit

Recovery Manager complete.


[oracle@rac1 dbs]$ sqlplus "/ as sysdba"

SQL*Plus: Release 12.2.0.1.0 Production on Mon Jan 14 00:00:29 2019

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

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> select member from v$logfile;

MEMBER
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_3_g3pwj4g4_.log
/u01/app/oracle/fast_recovery_area/orcl/ORCL/onlinelog/o1_mf_3_g3pwj7t8_.log
/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_2_g3pwhpb7_.log
/u01/app/oracle/fast_recovery_area/orcl/ORCL/onlinelog/o1_mf_2_g3pwhzkl_.log
/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_1_g3pwhon7_.log
/u01/app/oracle/fast_recovery_area/orcl/ORCL/onlinelog/o1_mf_1_g3pwhvm8_.log

6 rows selected.

SQL> alter database rename file


'/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_3_g3pwj4g4_.log' to
'+DATA/o1_mf_3_g3pwj4g4_.log';

Database altered.

SQL> alter database rename file


'/u01/app/oracle/fast_recovery_area/orcl/ORCL/onlinelog/o1_mf_3_g3pwj7t8_.log' to
'+FRA/o1_mf_3_g3pwj7t8_.log';

Database altered.

SQL> alter database rename file


'/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_2_g3pwhpb7_.log' to
'+DATA/o1_mf_2_g3pwhpb7_.log';

Database altered.

SQL> alter database rename file


'/u01/app/oracle/fast_recovery_area/orcl/ORCL/onlinelog/o1_mf_2_g3pwhzkl_.log' to
'+FRA/o1_mf_2_g3pwhzkl_.log';

Database altered.

SQL> alter database rename file


'/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_1_g3pwhon7_.log' to
'+FRA/o1_mf_2_g3pwhzkl_.log';
alter database rename file
'/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_1_g3pwhon7_.log' to
'+FRA/o1_mf_2_g3pwhzkl_.log'
*
ERROR at line 1:
ORA-01511: error in renaming log/data files
ORA-01523: cannot rename data file to '+FRA/o1_mf_2_g3pwhzkl_.log' - file
already part of database

SQL> alter database rename file


'/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_1_g3pwhon7_.log' to
'+DATA/o1_mf_1_g3pwhon7_.log';

Database altered.

SQL> alter database rename file


'/u01/app/oracle/fast_recovery_area/orcl/ORCL/onlinelog/o1_mf_1_g3pwhvm8_.log' to
'+FRA/o1_mf_1_g3pwhvm8_.log';

Database altered.

SQL> alter database open;

Database altered.

SQL> select name from v$datafile


union
select name from v$controlfile
union
select member from v$logfile; 2 3 4 5

NAME
--------------------------------------------------------------------------------
+DATA/ORCL/CONTROLFILE/current.266.997487167
+DATA/ORCL/DATAFILE/sysaux.268.997487599
+DATA/ORCL/DATAFILE/system.267.997487563
+DATA/ORCL/DATAFILE/undotbs1.269.997487615
+DATA/ORCL/DATAFILE/users.270.997487617
+DATA/o1_mf_1_g3pwhon7_.log
+DATA/o1_mf_2_g3pwhpb7_.log
+DATA/o1_mf_3_g3pwj4g4_.log
+FRA/o1_mf_1_g3pwhvm8_.log
+FRA/o1_mf_2_g3pwhzkl_.log
+FRA/o1_mf_3_g3pwj7t8_.log

11 rows selected.

SQL> create spfile='+FRA' from memory;

File created.

SQL> show parameter spfile

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
spfile string /u01/app/oracle/product/12.2.0
/db_1/dbs/spfileorcl.ora
SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 1157627904 bytes


Fixed Size 8619936 bytes
Variable Size 838862944 bytes
Database Buffers 301989888 bytes
Redo Buffers 8155136 bytes
Database mounted.
Database opened.
SQL> show parameter spfile

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
spfile string +FRA/ORCL/PARAMETERFILE/spfile
.287.997488541
SQL>
SQL>
SQL>
SQL>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy